diff --git a/.all-contributorsrc b/.all-contributorsrc index 4ceabcb4877..2ba87729dd6 100644 --- a/.all-contributorsrc +++ b/.all-contributorsrc @@ -1830,7 +1830,7 @@ }, { "login": "Yanshuming1", - "name": "xiaoming student", + "name": "linDong", "avatar_url": "https://avatars.githubusercontent.com/u/118667222?v=4", "profile": "https://github.com/Yanshuming1", "contributions": [ @@ -1982,6 +1982,60 @@ "contributions": [ "code" ] + }, + { + "login": "QBH-insist", + "name": "QBH-insist", + "avatar_url": "https://avatars.githubusercontent.com/u/39401478?v=4", + "profile": "https://github.com/QBH-insist", + "contributions": [ + "code" + ] + }, + { + "login": "jiangsh-ui", + "name": "jiangsh", + "avatar_url": "https://avatars.githubusercontent.com/u/86990361?v=4", + "profile": "https://github.com/jiangsh-ui", + "contributions": [ + "code" + ] + }, + { + "login": "keaifafafa", + "name": "Keaifa", + "avatar_url": "https://avatars.githubusercontent.com/u/83876361?v=4", + "profile": "https://github.com/keaifafafa", + "contributions": [ + "code" + ] + }, + { + "login": "loong95", + "name": "Loong", + "avatar_url": "https://avatars.githubusercontent.com/u/16333958?v=4", + "profile": "https://github.com/loong95", + "contributions": [ + "code" + ] + }, + { + "login": "ceekay47", + "name": "Chandrakant Vankayalapati", + "avatar_url": "https://avatars.githubusercontent.com/u/104664857?v=4", + "profile": "https://github.com/ceekay47", + "contributions": [ + "code" + ] + }, + { + "login": "MRgenial", + "name": "b_mountain", + "avatar_url": "https://avatars.githubusercontent.com/u/49973336?v=4", + "profile": "https://github.com/MRgenial", + "contributions": [ + "code" + ] } ], "contributorsPerLine": 7, diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json new file mode 100644 index 00000000000..349fa4ad299 --- /dev/null +++ b/.devcontainer/devcontainer.json @@ -0,0 +1,38 @@ +{ + "name": "Hertzbeat DevContainer", + "image": "mcr.microsoft.com/devcontainers/base:ubuntu", + "features": { + "ghcr.io/devcontainers/features/java:1": { + "version": "17", + "installMaven": "true", + "installGradle": "false" + }, + "ghcr.io/devcontainers/features/node:1": { + "version": "20" + }, + "ghcr.io/devcontainers/features/git-lfs:1.1.0": {} + }, + "customizations": { + "vscode": { + "settings": {}, + // same extensions as Gitpod, should match /.gitpod.yml + "extensions": [ + "vscjava.vscode-java-pack", + "editorconfig.editorconfig", + "dbaeumer.vscode-eslint", + "stylelint.vscode-stylelint", + "DavidAnson.vscode-markdownlint", + "ms-azuretools.vscode-docker", + "cweijan.vscode-database-client2", + "GitHub.vscode-pull-request-github" + ] + } + }, + "portsAttributes": { + "4200": { + "label": "Hertzbeat Web", + "onAutoForward": "notify" + } + }, + "postCreateCommand": "java -version" +} diff --git a/.github/ISSUE_TEMPLATE/config.yml b/.github/ISSUE_TEMPLATE/config.yml index a168e9d1a55..8d9fbbce9e5 100644 --- a/.github/ISSUE_TEMPLATE/config.yml +++ b/.github/ISSUE_TEMPLATE/config.yml @@ -20,6 +20,3 @@ contact_links: - name: Community Support url: https://github.com/apache/hertzbeat/discussions about: Please ask and answer questions here. - - name: Security Bug Bounty - url: https://github.com/apache/hertzbeat/issues - about: Please report security vulnerabilities here. diff --git a/.github/workflows/backend-build-test.yml b/.github/workflows/backend-build-test.yml index 5e31c48b5b0..7202646ebad 100644 --- a/.github/workflows/backend-build-test.yml +++ b/.github/workflows/backend-build-test.yml @@ -22,7 +22,7 @@ name: Backend CI on: push: - branches: [ master, dev ] + branches: [ master, dev, action* ] paths-ignore: - '**.md' - 'home/**' @@ -39,33 +39,43 @@ on: - 'material/**' jobs: - build: + backend-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 - - name: Set up JDK 17 - uses: actions/setup-java@v1 - with: - java-version: 17 + - uses: actions/checkout@v4 + - uses: ./script/ci/github-actions/setup-deps + - name: Build with Maven run: mvn clean -B package -Prelease --file pom.xml + - name: Upload coverage reports to Codecov uses: codecov/codecov-action@v4.0.1 with: token: ${{ secrets.CODECOV_TOKEN }} + - name: Build Image - env: - IMAGE_PUSH: false - IMAGE_LOAD: true - IMAGE_PLATFORM: linux/amd64 - run: | - docker buildx create --use --name myBuilder --driver docker-container - docker buildx use myBuilder + uses: docker/build-push-action@v3 + with: + context: ./dist + file: ./script/docker/server/Dockerfile + push: false + tags: apache/hertzbeat:test - ./script/docker/server/build.sh - name: Run E2E run: | sudo curl -L https://github.com/docker/compose/releases/download/v2.23.0/docker-compose-linux-x86_64 -o /usr/local/bin/docker-compose sudo chmod u+x /usr/local/bin/docker-compose + + cd e2e + sudo docker-compose version + sudo docker-compose up --exit-code-from testing --remove-orphans - cd e2e && ./start.sh + # upload application logs + - name: Upload logs & API test reports + uses: actions/upload-artifact@v3 + if: always() + with: + name: hz-logs-${{ github.run_id }} + path: | + e2e/logs/ + e2e/report/ diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 2fa2bb96114..c227d2e23ea 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -47,7 +47,7 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL diff --git a/.github/workflows/doc-build-test.yml b/.github/workflows/doc-build-test.yml index cb67cfaee2d..18c14eda37c 100644 --- a/.github/workflows/doc-build-test.yml +++ b/.github/workflows/doc-build-test.yml @@ -28,91 +28,37 @@ on: - 'home/**' jobs: - build: + docs-build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: fetch-depth: 0 - - name: Check filename in home/blog - run: | - TARGET_DIR="./home/blog" - invalid_files=() - while IFS= read -r -d '' file; do - filename=$(basename "$file") - if [[ ! "$filename" =~ ^[_a-z0-9-]+(\.[_a-z0-9-]+)*$ ]]; then - invalid_files+=("$file") - fi - done < <(find "$TARGET_DIR" -type f -print0) - if [ ${#invalid_files[@]} -ne 0 ]; then - echo "Error: The following files have invalid names:(File name should only contain lowercase letters, numbers, and hyphens.)" - for invalid_file in "${invalid_files[@]}"; do - echo "$invalid_file" - done - exit 1 - else - echo "All file names are valid." - fi - - name: Check filename in home/docs - run: | - TARGET_DIR="./home/docs" - invalid_files=() - while IFS= read -r -d '' file; do - filename=$(basename "$file") - if [[ ! "$filename" =~ ^[_a-z0-9-]+(\.[_a-z0-9-]+)*$ ]]; then - invalid_files+=("$file") - fi - done < <(find "$TARGET_DIR" -type f -print0) - if [ ${#invalid_files[@]} -ne 0 ]; then - echo "Error: The following files have invalid names:(File name should only contain lowercase letters, numbers, and hyphens.)" - for invalid_file in "${invalid_files[@]}"; do - echo "$invalid_file" - done - exit 1 - else - echo "All file names are valid." - fi - - name: Check filename in /zh-cn/docusaurus-plugin-content-blog - run: | - TARGET_DIR="./home/i18n/zh-cn/docusaurus-plugin-content-blog" - invalid_files=() - while IFS= read -r -d '' file; do - filename=$(basename "$file") - if [[ ! "$filename" =~ ^[_a-z0-9-]+(\.[_a-z0-9-]+)*$ ]]; then - invalid_files+=("$file") - fi - done < <(find "$TARGET_DIR" -type f -print0) - if [ ${#invalid_files[@]} -ne 0 ]; then - echo "Error: The following files have invalid names:(File name should only contain lowercase letters, numbers, and hyphens.)" - for invalid_file in "${invalid_files[@]}"; do - echo "$invalid_file" - done - exit 1 - else - echo "All file names are valid." - fi - - name: Check filename in /home/i18n/zh-cn/docusaurus-plugin-content-docs/current + - uses: actions/setup-python@v4 + with: + python-version: '3.8' + + - name: Check Markdown + uses: DavidAnson/markdownlint-cli2-action@v16 + with: + globs: './home/**/*.md' + + - name: Check filenames + run: python ./script/ci/docs/check_file_name.py ./script/ci/docs/check_file_name.json + + - name: Dead Link Check run: | - TARGET_DIR="./home/i18n/zh-cn/docusaurus-plugin-content-docs/current" - invalid_files=() - while IFS= read -r -d '' file; do - filename=$(basename "$file") - if [[ ! "$filename" =~ ^[_a-z0-9-]+(\.[_a-z0-9-]+)*$ ]]; then - invalid_files+=("$file") + sudo npm install -g markdown-link-check@3.8.7 + for file in $(find ./home -name "*.md"); do + if ! grep -Fxq "$file" ./script/ci/exclude_files.txt; then + markdown-link-check -c ./script/ci/link_check.json -q "$file" fi - done < <(find "$TARGET_DIR" -type f -print0) - if [ ${#invalid_files[@]} -ne 0 ]; then - echo "Error: The following files have invalid names:(File name should only contain lowercase letters, numbers, and hyphens.)" - for invalid_file in "${invalid_files[@]}"; do - echo "$invalid_file" - done - exit 1 - else - echo "All file names are valid." - fi + done + - name: NPM INSTALL working-directory: home run: npm install + - name: NPM BUILD working-directory: home run: npm run build diff --git a/.github/workflows/doc-pdf-builder.yml b/.github/workflows/doc-pdf-builder.yml index 805d4f7bf4d..7e0e97dddb5 100644 --- a/.github/workflows/doc-pdf-builder.yml +++ b/.github/workflows/doc-pdf-builder.yml @@ -53,4 +53,3 @@ jobs: path: docs-en.pdf if-no-files-found: error retention-days: 1 - diff --git a/.github/workflows/frontend-build-test.yml b/.github/workflows/frontend-build-test.yml index 4479b300120..6893d21b4e2 100644 --- a/.github/workflows/frontend-build-test.yml +++ b/.github/workflows/frontend-build-test.yml @@ -34,7 +34,7 @@ jobs: build: runs-on: ubuntu-latest steps: - - uses: actions/checkout@v2 + - uses: actions/checkout@v4 - name: Yarn Install working-directory: web-app run: yarn diff --git a/.github/workflows/license-checker.yml b/.github/workflows/license-checker.yml index a1f31996e2b..faccbd0550a 100644 --- a/.github/workflows/license-checker.yml +++ b/.github/workflows/license-checker.yml @@ -32,7 +32,7 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 with: submodules: true - name: Check license header diff --git a/.github/workflows/nightly-build.yml b/.github/workflows/nightly-build.yml new file mode 100644 index 00000000000..d41d6528839 --- /dev/null +++ b/.github/workflows/nightly-build.yml @@ -0,0 +1,72 @@ +# 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. + +name: Nightly CI + +on: + schedule: + # trigger at 00:00 everyday + - cron: '0 0 * * *' + push: + branches: [ action* ] + +jobs: + build: + runs-on: ubuntu-latest + if: ${{ github.repository == 'apache/hertzbeat' }} + steps: + - uses: actions/checkout@v4 + - uses: ./script/ci/github-actions/setup-deps + + - name: Build the Frontend + run: | + cd web-app + yarn install + yarn package + + - name: Build the Backend + run: | + mvn clean install + mvn clean package -Prelease -DskipTests + cd collector + mvn clean package -Pcluster -DskipTests + + - uses: docker/setup-qemu-action@v3 + - uses: docker/setup-buildx-action@v3 + - name: Log in to Docker Hub + uses: docker/login-action@v3 + with: + username: ${{ secrets.DOCKERHUB_USER }} + password: ${{ secrets.DOCKERHUB_TOKEN }} + + - name: Build and Push Server + uses: docker/build-push-action@v6 + with: + context: ./dist + file: ./script/docker/server/Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: apache/hertzbeat:nightly + + - name: Build and Push Collector + uses: docker/build-push-action@v6 + with: + context: ./dist + file: ./script/docker/collector/Dockerfile + platforms: linux/amd64,linux/arm64 + push: true + tags: apache/hertzbeat-collector:nightly diff --git a/collector/src/main/resources/META-INF/spring.factories b/.gitmodules similarity index 82% rename from collector/src/main/resources/META-INF/spring.factories rename to .gitmodules index 771bb51c6bc..a7ef9fc5dde 100644 --- a/collector/src/main/resources/META-INF/spring.factories +++ b/.gitmodules @@ -1,3 +1,4 @@ +# # 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. @@ -12,6 +13,9 @@ # 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.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.hertzbeat.collector.config.CollectorAutoConfiguration +[submodule "script/helm/hertzbeat-helm-chart"] + path = script/helm/hertzbeat-helm-chart + url = git@github.com:apache/hertzbeat-helm-chart.git + branch = main diff --git a/.gitpod.yml b/.gitpod.yml new file mode 100644 index 00000000000..c13fbe042c8 --- /dev/null +++ b/.gitpod.yml @@ -0,0 +1,53 @@ +tasks: + + - name: Run backend + before: cd manager + command: | + gp sync-await setup-backend + mvn spring-boot:run + + - name: Run frontend + before: cd web-app + command: | + gp sync-await setup-frontend + yarn start --public-host "`gp url 4200`" + openMode: split-right + + - name: Setup backend + init: | + sdk install java 17.0.11.fx-zulu < /dev/null + sdk default java 17.0.11.fx-zulu < /dev/null + mvn clean install -DskipTests + command: | + gp sync-done setup-backend + exit 0 + + - name: Setup frontend + init: | + cd web-app && yarn install + command: | + gp sync-done setup-frontend + exit 0 + openMode: split-right + +vscode: + extensions: + - vscjava.vscode-java-pack + - editorconfig.editorconfig + - dbaeumer.vscode-eslint + - stylelint.vscode-stylelint + - DavidAnson.vscode-markdownlint + - ms-azuretools.vscode-docker + - cweijan.vscode-database-client2 + - GitHub.vscode-pull-request-github + +ports: + - port: 4200 + name: Hertzbeat + onOpen: open-browser + + - port: 1157 + onOpen: ignore + + - port: 1158 + onOpen: ignore diff --git a/.licenserc.yaml b/.licenserc.yaml index 8eaea845764..4266e3e085b 100644 --- a/.licenserc.yaml +++ b/.licenserc.yaml @@ -62,6 +62,8 @@ header: - '.stylelintrc' - '.prettierignore' - '.prettierrc.js' + - '.gitpod.Dockerfile' + - '.gitpod.yml' - 'karma.conf.js' - 'proxy.conf.js' - '.helmignore' @@ -92,12 +94,12 @@ header: - 'web-app/src/style.less' - 'web-app/src/test.ts' - 'web-app/src/typings.d.ts' - + comment: on-failure dependency: files: - pom.xml - web-app/package.json - + diff --git a/.markdownlint-cli2.jsonc b/.markdownlint-cli2.jsonc new file mode 100644 index 00000000000..b1e0dd33d08 --- /dev/null +++ b/.markdownlint-cli2.jsonc @@ -0,0 +1,45 @@ +// +// 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. +// +{ + "config": { + "default": true, + "MD001": true, + "MD052": false, + "MD003": false, + "MD013": { + "line_length": 600, + "code_blocks": false, + "tables": false + }, + "MD024": { + "siblings_only": true + }, + "MD025": true, + "MD029": true, + "MD033": false, + "MD036": false, + "MD040": true, + "MD045": false, + "MD046": true, + "MD047": true + }, + "ignore": [ + "node_modules/", + "target/", + "dist/" + ] +} diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index f7c9e37b12f..d75b6de2042 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -68,23 +68,23 @@ Of course, if you have a good idea, you can also propose it directly on GitHub D 1. First you need to fork your target [hertzbeat repository](https://github.com/apache/hertzbeat). 2. Then download the code locally with git command: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` + ```shell + git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended + ``` 3. After the download is complete, please refer to the getting started guide or README file of the target repository to initialize the project. 4. Then, you can refer to the following command to submit the code: -```shell -git checkout -b a-feature-branch #Recommended -``` + ```shell + git checkout -b a-feature-branch #Recommended + ``` 5. Submit the coed as a commit, the commit message format specification required: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` + ```shell + git add + git commit -m '[docs]feature: necessary instructions' #Recommended + ``` 6. Push to the remote repository -```shell -git push origin a-feature-branch -``` + ```shell + git push origin a-feature-branch + ``` 7. Then you can initiate a new PR (Pull Request) on GitHub. Please note that the title of the PR needs to conform to our spec, and write the necessary description in the PR to facilitate code review by Committers and other contributors. @@ -127,7 +127,7 @@ With the above steps, you are a contributor to HertzBeat. Repeat the previous st [Join the Mailing Lists](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) : Mail to `dev-subscribe@hertzbeat.apache.org` to subscribe mailing lists. -Add WeChat account `tan-cloud` to pull you into the WeChat group. +Add WeChat account `ahertzbeat` to pull you into the WeChat group. ## 🥐 Architecture @@ -218,23 +218,23 @@ Add WeChat account `tan-cloud` to pull you into the WeChat group. 1. 首先您需要 Fork 目标仓库 [hertzbeat repository](https://github.com/apache/hertzbeat). 2. 然后 用git命令 将代码下载到本地: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` + ```shell + git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended + ``` 3. 下载完成后,请参考目标仓库的入门指南或者 README 文件对项目进行初始化。 4. 接着,您可以参考如下命令进行代码的提交, 切换新的分支, 进行开发: -```shell -git checkout -b a-feature-branch #Recommended -``` + ```shell + git checkout -b a-feature-branch #Recommended + ``` 5. 提交 commit , commit 描述信息需要符合约定格式: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` + ```shell + git add + git commit -m '[docs]feature: necessary instructions' #Recommended + ``` 6. 推送到远程仓库 -```shell -git push origin a-feature-branch -``` + ```shell + git push origin a-feature-branch + ``` 7. 然后您就可以在 GitHub 上发起新的 PR (Pull Request)。 请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 @@ -277,7 +277,7 @@ git pull upstream master [Join the Mailing Lists](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) : Mail to `dev-subscribe@hertzbeat.apache.org` to subscribe mailing lists. -Add WeChat account `tan-cloud` to pull you into the WeChat group. +Add WeChat account `ahertzbeat` to pull you into the WeChat group. ### 模块 diff --git a/README.md b/README.md index 69d3deba52f..7f966fde011 100644 --- a/README.md +++ b/README.md @@ -18,6 +18,7 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/apache/hertzbeat?style=%20for-the-badge&logo=docker&label=DockerHub%20Download)](https://hub.docker.com/r/apache/hertzbeat) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/hertzbeat)](https://artifacthub.io/packages/search?repo=hertzbeat) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) +[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod&color=green)](https://gitpod.io/#https://github.com/apache/hertzbeat) **Home: [hertzbeat.apache.org](https://hertzbeat.apache.org)** **Email: Mail to `dev-subscribe@hertzbeat.apache.org` to subscribe mailing lists** @@ -109,32 +110,36 @@ ##### 1:Install quickly via docker -1. Just one command to get started: +1. Just one command to get started -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```shell + docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat + ``` 2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 3. Deploy collector clusters (Optional) -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : set the collector unique identity name. -- `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. -- `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. -- `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : set the collector unique identity name. + - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. + - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. + - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache.org/docs/start/docker-deploy) ##### 2:Install via package -1. Download the release package `hertzbeat-xx.tar.gz` [GITHUB Release](https://github.com/apache/hertzbeat/releases) +1. Download the release package `hertzbeat-xx.tar.gz` [Download](https://hertzbeat.apache.org/docs/download) 2. Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` (optional) 3. Run command `$ ./bin/startup.sh ` or `bin/startup.bat` 4. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 5. Deploy collector clusters (Optional) - - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [GITHUB Release](https://github.com/apache/hertzbeat/releases) + - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [Download](https://hertzbeat.apache.org/docs/download) - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` ```yaml collector: @@ -167,7 +172,7 @@ Install the postgresql/mysql database, victoria-metrics/iotdb/tdengine database Detailed steps refer to [Install via Docker-Compose](script/docker-compose/README.md) -##### 5. Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm charts +##### 5: Install All(hertzbeat+collector+postgresql+tsdb) via kubernetes helm charts Install HertzBeat cluster in a Kubernetes cluster by Helm chart. @@ -438,7 +443,7 @@ Thanks to these wonderful people, welcome to join us: aias00
aias00

💻 Jin
Jin

📖 YuLuo
YuLuo

💻 - xiaoming student
xiaoming student

💻 + linDong
linDong

💻 lwjxy
lwjxy

💻 @@ -461,6 +466,12 @@ Thanks to these wonderful people, welcome to join us: jiawei.guo
jiawei.guo

💻 + QBH-insist
QBH-insist

💻 + jiangsh
jiangsh

💻 + Keaifa
Keaifa

💻 + Loong
Loong

💻 + Chandrakant Vankayalapati
Chandrakant Vankayalapati

💻 + b_mountain
b_mountain

💻 @@ -478,7 +489,7 @@ Thanks to these wonderful people, welcome to join us: [Chat On Discord](https://discord.gg/Fb6M73htGr) -WeChat Group : Add friend `tan-cloud` and invite to the group. +WeChat Group : Add friend `ahertzbeat` and invite to the group. WeChat Public : Search ID `usthecom`. @@ -513,6 +524,15 @@ CNCF Observability And Analysis - Monitoring Landscape. [![Star History Chart](https://api.star-history.com/svg?repos=apache/hertzbeat&type=Date)](https://star-history.com/#apache/hertzbeat&Date) +## Contributors + +### Monthly Active Contributors + +[![Monthly Active Contributors](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorMonthlyActivity&repo=apache/hertzbeat)](https://git-contributor.com?chart=contributorMonthlyActivity&repo=apache/hertzbeat) + +### GitHub Contributor Over Time + +[![GitHub Contributor Over Time](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorOverTime&repo=apache/hertzbeat)](https://git-contributor.com?chart=contributorOverTime&repo=apache/hertzbeat) ## 🛡️ License [`Apache License, Version 2.0`](https://www.apache.org/licenses/LICENSE-2.0.html) diff --git a/README_CN.md b/README_CN.md index 7393545aa01..7b414e5d583 100644 --- a/README_CN.md +++ b/README_CN.md @@ -18,6 +18,7 @@ [![Docker Pulls](https://img.shields.io/docker/pulls/apache/hertzbeat?style=%20for-the-badge&logo=docker&label=DockerHub%20Download)](https://hub.docker.com/r/apache/hertzbeat) [![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/hertzbeat)](https://artifacthub.io/packages/search?repo=hertzbeat) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) +[![Contribute with Gitpod](https://img.shields.io/badge/Contribute%20with-Gitpod-908a85?logo=gitpod&color=green)](https://gitpod.io/#https://github.com/apache/hertzbeat) **官网: [hertzbeat.apache.org](https://hertzbeat.apache.org)** @@ -41,7 +42,7 @@ > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助用户快速搭建自有监控系统。 ----- +---- ![hertzbeat](home/static/img/home/1.png) @@ -49,7 +50,7 @@ ![hertzbeat](home/static/img/home/9.png) ----- +---- ## 🥐 模块 @@ -110,30 +111,34 @@ 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```shell + docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat + ``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` -3. 部署采集器集群(可选) +3. 部署采集器集群(可选) + + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 - - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 - - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。 - - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。 + - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主 HertaBeat 服务的对外 IP。 + - `-e MANAGER_PORT=1158` : 配置连接主 HertzBeat 服务的对外端口,默认1158。 + -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.apache.org/docs/start/docker-deploy) +更多配置详细步骤参考 [通过 Docker 方式安装 HertzBeat](https://hertzbeat.apache.org/docs/start/docker-deploy) ##### 方式二:通过安装包安装 -1. 下载您系统环境对应的安装包 `hertzbeat-xx.tar.gz` [GITHUB Release](https://github.com/apache/hertzbeat/releases) +1. 下载您系统环境对应的安装包 `hertzbeat-xx.tar.gz` [Download](https://hertzbeat.apache.org/docs/download) 2. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml` (可选) 3. 部署启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` 4. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` -5. 部署采集器集群(可选) - - 下载采集器安装包 `hertzbeat-collector-xx.tar.gz` 到规划的另一台部署主机上 [GITHUB Release](https://github.com/apache/hertzbeat/releases) +5. 部署采集器集群(可选) + - 下载采集器安装包 `hertzbeat-collector-xx.tar.gz` 到规划的另一台部署主机上 [Download](https://hertzbeat.apache.org/docs/download) - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主 HertzBeat 服务的对外 IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` ```yaml collector: @@ -164,7 +169,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN 通过 [Docker-Compose 部署脚本](script/docker-compose) 一次性把 postgresql/mysql 数据库, victoria-metrics/iotdb/tdengine 时序数据库和 hertzbeat 安装部署。 -详细步骤参考 [通过Docker-Compose安装HertzBeat](script/docker-compose/README.md) +详细步骤参考 [通过 Docker-Compose 安装 HertzBeat](script/docker-compose/README.md) ##### 方式五:Kubernetes Helm Charts 部署 hertzbeat+collector+postgresql+tsdb @@ -437,7 +442,7 @@ Thanks these wonderful people, welcome to join us: aias00
aias00

💻 Jin
Jin

📖 YuLuo
YuLuo

💻 - xiaoming student
xiaoming student

💻 + linDong
linDong

💻 lwjxy
lwjxy

💻 @@ -460,6 +465,12 @@ Thanks these wonderful people, welcome to join us: jiawei.guo
jiawei.guo

💻 + QBH-insist
QBH-insist

💻 + jiangsh
jiangsh

💻 + Keaifa
Keaifa

💻 + Loong
Loong

💻 + Chandrakant Vankayalapati
Chandrakant Vankayalapati

💻 + b_mountain
b_mountain

💻 @@ -477,7 +488,7 @@ Thanks these wonderful people, welcome to join us: [Chat On Discord](https://discord.gg/Fb6M73htGr) -微信交流群 : 加 `tan-cloud` 好友邀请进群. +微信交流群 : 加 `ahertzbeat` 好友邀请进群. 微信公众号 : 搜索 ID `usthecom`. @@ -514,6 +525,15 @@ CNCF Observability And Analysis - Monitoring Landscape. [![Star History Chart](https://api.star-history.com/svg?repos=apache/hertzbeat&type=Date)](https://star-history.com/#apache/hertzbeat&Date) +## Contributors + +### Monthly Active Contributors + +[![Monthly Active Contributors](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorMonthlyActivity&repo=apache/hertzbeat)](https://git-contributor.com?chart=contributorMonthlyActivity&repo=apache/hertzbeat) + +### GitHub Contributor Over Time + +[![GitHub Contributor Over Time](https://contributor-overtime-api.git-contributor.com/contributors-svg?chart=contributorOverTime&repo=apache/hertzbeat)](https://git-contributor.com?chart=contributorOverTime&repo=apache/hertzbeat) ## 🛡️ License [`Apache License, Version 2.0`](https://www.apache.org/licenses/LICENSE-2.0.html) diff --git a/alerter/pom.xml b/alerter/pom.xml index dcbce501f23..896bbba9fb7 100644 --- a/alerter/pom.xml +++ b/alerter/pom.xml @@ -73,13 +73,19 @@ cn.afterturn easypoi-annotation - 4.3.0 + ${easy-poi.version} compile org.apache.poi poi - 4.1.1 + ${poi.version} + compile + + + org.apache.poi + poi-ooxml + ${poi.version} compile diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/AlerterProperties.java b/alerter/src/main/java/org/apache/hertzbeat/alert/AlerterProperties.java index 486dbaef3fe..73cdd212e56 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/AlerterProperties.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/AlerterProperties.java @@ -19,22 +19,26 @@ import lombok.Getter; import lombok.Setter; +import org.apache.hertzbeat.common.config.BaseKafkaProperties; +import org.apache.hertzbeat.common.constants.ConfigConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * alerter prop config */ -@Component -@ConfigurationProperties(prefix = "alerter") + @Getter @Setter +@Component +@ConfigurationProperties(prefix = + ConfigConstants.FunctionModuleConstants.ALERTER) public class AlerterProperties { /** * Alarm content console link */ - private String consoleUrl = "https://console.tancloud.cn"; + private String consoleUrl = "https://console.tancloud.io"; /** * WeWork webhook url @@ -92,25 +96,13 @@ public static class EntranceProperties { */ @Getter @Setter - public static class KafkaProperties { + public static class KafkaProperties extends BaseKafkaProperties { + /** * Whether the kafka data entry is started */ private boolean enabled = true; - - /** - * kafka's connection server url - */ - private String servers = "127.0.0.1:9092"; - /** - * The name of the topic that receives the data - */ - private String topic; - /** - * Consumer Group ID - */ - private String groupId; - } } + } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/calculate/CalculateAlarm.java b/alerter/src/main/java/org/apache/hertzbeat/alert/calculate/CalculateAlarm.java index 2542a58ac2f..ec75b4c5146 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/calculate/CalculateAlarm.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/calculate/CalculateAlarm.java @@ -123,7 +123,7 @@ private void startCalculate() { calculate(metricsData); } } catch (InterruptedException ignored) { - + Thread.currentThread().interrupt(); } catch (Exception e) { log.error("calculate alarm error: {}.", e.getMessage(), e); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/config/AlerterAutoConfiguration.java b/alerter/src/main/java/org/apache/hertzbeat/alert/config/AlerterAutoConfiguration.java index b0afa2c5b8a..f75e01aacc6 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/config/AlerterAutoConfiguration.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/config/AlerterAutoConfiguration.java @@ -17,11 +17,18 @@ package org.apache.hertzbeat.alert.config; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.context.annotation.ComponentScan; /** * Alert auto configuration. */ -@ComponentScan(basePackages = "org.apache.hertzbeat.alert") + +@AutoConfiguration +@ComponentScan(basePackages = ConfigConstants.PkgConstant.PKG + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.ALERT) public class AlerterAutoConfiguration { } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergeController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergeController.java index df38ea5a95c..f3b97409db9 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergeController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergeController.java @@ -23,6 +23,7 @@ import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; +import java.util.Objects; import org.apache.hertzbeat.alert.service.AlertConvergeService; import org.apache.hertzbeat.common.entity.alerter.AlertConverge; import org.apache.hertzbeat.common.entity.dto.Message; @@ -69,11 +70,10 @@ public ResponseEntity> modifyAlertConverge(@Valid @RequestBody Ale public ResponseEntity> getAlertConverge( @Parameter(description = "Alarm Converge ID", example = "6565463543") @PathVariable("id") long id) { AlertConverge alertConverge = alertConvergeService.getAlertConverge(id); - if (alertConverge == null) { - return ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertConverge not exist.")); - } else { - return ResponseEntity.ok(Message.success(alertConverge)); - } + + return Objects.isNull(alertConverge) + ? ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertConverge not exist.")) + : ResponseEntity.ok(Message.success(alertConverge)); } } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergesController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergesController.java index 3d6fb584e72..48334781155 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergesController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertConvergesController.java @@ -21,9 +21,6 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.CriteriaBuilder; -import jakarta.persistence.criteria.Predicate; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hertzbeat.alert.service.AlertConvergeService; @@ -31,11 +28,7 @@ import org.apache.hertzbeat.common.entity.dto.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -63,31 +56,7 @@ public ResponseEntity>> getAlertConverges( @Parameter(description = "Sort mode: asc: ascending, desc: descending", example = "desc") @RequestParam(defaultValue = "desc") String order, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pages", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (ids != null && !ids.isEmpty()) { - CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); - for (long id : ids) { - inPredicate.value(id); - } - andList.add(inPredicate); - } - if (StringUtils.hasText(search)) { - Predicate predicate = criteriaBuilder.or( - criteriaBuilder.like( - criteriaBuilder.lower(root.get("name")), - "%" + search.toLowerCase() + "%" - ) - ); - andList.add(predicate); - } - Predicate[] predicates = new Predicate[andList.size()]; - return criteriaBuilder.and(andList.toArray(predicates)); - }; - Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); - Page alertConvergePage = alertConvergeService.getAlertConverges(specification, pageRequest); + Page alertConvergePage = alertConvergeService.getAlertConverges(ids, search, sort, order, pageIndex, pageSize); return ResponseEntity.ok(Message.success(alertConvergePage)); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefineController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefineController.java index 33f4292bacb..9da2e018640 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefineController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefineController.java @@ -24,6 +24,7 @@ import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; import java.util.List; +import java.util.Objects; import java.util.stream.Collectors; import org.apache.hertzbeat.alert.service.AlertDefineService; import org.apache.hertzbeat.common.entity.alerter.AlertDefine; @@ -76,11 +77,10 @@ public ResponseEntity> getAlertDefine( @Parameter(description = "Alarm Definition ID", example = "6565463543") @PathVariable("id") long id) { // Obtaining Monitoring Information AlertDefine alertDefine = alertDefineService.getAlertDefine(id); - if (alertDefine == null) { - return ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertDefine not exist.")); - } else { - return ResponseEntity.ok(Message.success(alertDefine)); - } + + return Objects.isNull(alertDefine) + ? ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertDefine not exist.")) + : ResponseEntity.ok(Message.success(alertDefine)); } @DeleteMapping(path = "/{id}") diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefinesController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefinesController.java index 2150f06800f..7579c05df3d 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefinesController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertDefinesController.java @@ -21,10 +21,7 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.CriteriaBuilder; -import jakarta.persistence.criteria.Predicate; import jakarta.servlet.http.HttpServletResponse; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hertzbeat.alert.service.AlertDefineService; @@ -32,11 +29,7 @@ import org.apache.hertzbeat.common.entity.dto.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PostMapping; @@ -67,51 +60,7 @@ public ResponseEntity>> getAlertDefines( @Parameter(description = "Sort mode: asc: ascending, desc: descending", example = "desc") @RequestParam(defaultValue = "desc") String order, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pages", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (ids != null && !ids.isEmpty()) { - CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); - for (long id : ids) { - inPredicate.value(id); - } - andList.add(inPredicate); - } - if (StringUtils.hasText(search)) { - Predicate predicate = criteriaBuilder.or( - criteriaBuilder.like( - criteriaBuilder.lower(root.get("app")), - "%" + search.toLowerCase() + "%" - ), - criteriaBuilder.like( - criteriaBuilder.lower(root.get("metric")), - "%" + search.toLowerCase() + "%" - ), - criteriaBuilder.like( - criteriaBuilder.lower(root.get("field")), - "%" + search.toLowerCase() + "%" - ), - criteriaBuilder.like( - criteriaBuilder.lower(root.get("expr")), - "%" + search.toLowerCase() + "%" - ), - criteriaBuilder.like( - criteriaBuilder.lower(root.get("template")), - "%" + search.toLowerCase() + "%" - ) - ); - andList.add(predicate); - } - if (priority != null) { - Predicate predicate = criteriaBuilder.equal(root.get("priority"), priority); - andList.add(predicate); - } - Predicate[] predicates = new Predicate[andList.size()]; - return criteriaBuilder.and(andList.toArray(predicates)); - }; - Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); - Page alertDefinePage = alertDefineService.getAlertDefines(specification, pageRequest); + Page alertDefinePage = alertDefineService.getAlertDefines(ids, search, priority, sort, order, pageIndex, pageSize); return ResponseEntity.ok(Message.success(alertDefinePage)); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertReportController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertReportController.java index 89b67fd1899..1f803ec8117 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertReportController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertReportController.java @@ -20,16 +20,10 @@ import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.tags.Tag; -import java.util.Date; -import java.util.Optional; import lombok.extern.slf4j.Slf4j; -import org.apache.hertzbeat.alert.dto.CloudAlertReportAbstract; import org.apache.hertzbeat.alert.dto.GeneralCloudAlertReport; -import org.apache.hertzbeat.alert.enums.CloudServiceAlarmInformationEnum; import org.apache.hertzbeat.alert.service.AlertService; -import org.apache.hertzbeat.common.entity.dto.AlertReport; import org.apache.hertzbeat.common.entity.dto.Message; -import org.apache.hertzbeat.common.util.JsonUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.PathVariable; @@ -54,40 +48,7 @@ public class AlertReportController { @Operation(summary = "Interface for reporting external alarm information of cloud service") public ResponseEntity> addNewAlertReportFromCloud(@PathVariable("cloud") String cloudServiceName, @RequestBody String alertReport) { - CloudServiceAlarmInformationEnum cloudService = CloudServiceAlarmInformationEnum - .getEnumFromCloudServiceName(cloudServiceName); - - AlertReport alert = null; - if (cloudService != null) { - try { - CloudAlertReportAbstract cloudAlertReport = JsonUtil - .fromJson(alertReport, cloudService.getCloudServiceAlarmInformationEntity()); - assert cloudAlertReport != null; - alert = AlertReport.builder() - .content(cloudAlertReport.getContent()) - .alertName(cloudAlertReport.getAlertName()) - .alertTime(cloudAlertReport.getAlertTime()) - .alertDuration(cloudAlertReport.getAlertDuration()) - .priority(cloudAlertReport.getPriority()) - .reportType(cloudAlertReport.getReportType()) - .labels(cloudAlertReport.getLabels()) - .annotations(cloudAlertReport.getAnnotations()) - .build(); - } catch (Exception e) { - log.error("[alert report] parse cloud service alarm content failed! cloud service: {} conrent: {}", - cloudService.name(), alertReport); - } - } else { - alert = AlertReport.builder() - .content("error do not has cloud service api") - .alertName("/api/alerts/report/" + cloudServiceName) - .alertTime(new Date().getTime()) - .priority(1) - .reportType(1) - .build(); - } - Optional.ofNullable(alert).ifPresent(alertReportPresent -> - alertService.addNewAlertReport(alertReportPresent)); + alertService.addNewAlertReportFromCloud(cloudServiceName, alertReport); return ResponseEntity.ok(Message.success("Add report success")); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilenceController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilenceController.java index 56e9af3f022..6e6e1d7f458 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilenceController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilenceController.java @@ -23,6 +23,7 @@ import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; +import java.util.Objects; import org.apache.hertzbeat.alert.service.AlertSilenceService; import org.apache.hertzbeat.common.entity.alerter.AlertSilence; import org.apache.hertzbeat.common.entity.dto.Message; @@ -69,11 +70,10 @@ public ResponseEntity> modifyAlertSilence(@Valid @RequestBody Aler public ResponseEntity> getAlertSilence( @Parameter(description = "Alarm Silence ID", example = "6565463543") @PathVariable("id") long id) { AlertSilence alertSilence = alertSilenceService.getAlertSilence(id); - if (alertSilence == null) { - return ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertSilence not exist.")); - } else { - return ResponseEntity.ok(Message.success(alertSilence)); - } + + return Objects.isNull(alertSilence) + ? ResponseEntity.ok(Message.fail(MONITOR_NOT_EXIST_CODE, "AlertSilence not exist.")) + : ResponseEntity.ok(Message.success(alertSilence)); } } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilencesController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilencesController.java index 60fa156ea00..1b209b1093c 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilencesController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertSilencesController.java @@ -21,9 +21,6 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.CriteriaBuilder; -import jakarta.persistence.criteria.Predicate; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hertzbeat.alert.service.AlertSilenceService; @@ -31,11 +28,7 @@ import org.apache.hertzbeat.common.entity.dto.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; @@ -63,33 +56,8 @@ public ResponseEntity>> getAlertSilences( @Parameter(description = "Sort mode: asc: ascending, desc: descending", example = "desc") @RequestParam(defaultValue = "desc") String order, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pages", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (ids != null && !ids.isEmpty()) { - CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); - for (long id : ids) { - inPredicate.value(id); - } - andList.add(inPredicate); - } - if (StringUtils.hasText(search)) { - Predicate predicate = criteriaBuilder.or( - criteriaBuilder.like( - criteriaBuilder.lower(root.get("name")), - "%" + search.toLowerCase() + "%" - ) - ); - andList.add(predicate); - } - Predicate[] predicates = new Predicate[andList.size()]; - return criteriaBuilder.and(andList.toArray(predicates)); - }; - Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); - Page alertSilencePage = alertSilenceService.getAlertSilences(specification, pageRequest); - Message> message = Message.success(alertSilencePage); - return ResponseEntity.ok(message); + Page alertSilencePage = alertSilenceService.getAlertSilences(ids, search, sort, order, pageIndex, pageSize); + return ResponseEntity.ok(Message.success(alertSilencePage)); } @DeleteMapping diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertsController.java b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertsController.java index 65aac1e0419..d2970b3eaae 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertsController.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/controller/AlertsController.java @@ -21,9 +21,6 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.CriteriaBuilder; -import jakarta.persistence.criteria.Predicate; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hertzbeat.alert.dto.AlertSummary; @@ -32,9 +29,6 @@ import org.apache.hertzbeat.common.entity.dto.Message; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -67,41 +61,8 @@ public ResponseEntity>> getAlerts( @Parameter(description = "Sort Type", example = "desc") @RequestParam(defaultValue = "desc") String order, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pagination", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - - if (ids != null && !ids.isEmpty()) { - CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); - for (long id : ids) { - inPredicate.value(id); - } - andList.add(inPredicate); - } - if (monitorId != null) { - Predicate predicate = criteriaBuilder.like(root.get("tags").as(String.class), "%" + monitorId + "%"); - andList.add(predicate); - } - if (priority != null) { - Predicate predicate = criteriaBuilder.equal(root.get("priority"), priority); - andList.add(predicate); - } - if (status != null) { - Predicate predicate = criteriaBuilder.equal(root.get("status"), status); - andList.add(predicate); - } - if (content != null && !content.isEmpty()) { - Predicate predicateContent = criteriaBuilder.like(root.get("content"), "%" + content + "%"); - andList.add(predicateContent); - } - Predicate[] predicates = new Predicate[andList.size()]; - return criteriaBuilder.and(andList.toArray(predicates)); - }; - Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); - Page alertPage = alertService.getAlerts(specification, pageRequest); - Message> message = Message.success(alertPage); - return ResponseEntity.ok(message); + Page alertPage = alertService.getAlerts(ids, monitorId, priority, status, content, sort, order, pageIndex, pageSize); + return ResponseEntity.ok(Message.success(alertPage)); } @DeleteMapping diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/dto/AlertDefineDTO.java b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/AlertDefineDTO.java new file mode 100644 index 00000000000..0cf72fedae8 --- /dev/null +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/AlertDefineDTO.java @@ -0,0 +1,59 @@ +/* + * 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.hertzbeat.alert.dto; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import cn.afterturn.easypoi.excel.annotation.ExcelTarget; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import java.util.List; +import lombok.Data; +import org.apache.hertzbeat.common.entity.manager.TagItem; + +/** + * Data transfer object for alert configuration + */ + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +@ExcelTarget(value = "AlertDefineDTO") +public class AlertDefineDTO { + @Excel(name = "App") + private String app; + @Excel(name = "Metric") + private String metric; + @Excel(name = "Field") + private String field; + @Excel(name = "Preset") + private Boolean preset; + @Excel(name = "Expr") + private String expr; + @Excel(name = "Priority") + private Byte priority; + @Excel(name = "Times") + private Integer times; + @Excel(name = "Tags") + private List tags; + @Excel(name = "Enable") + private Boolean enable; + @Excel(name = "RecoverNotice") + private Boolean recoverNotice; + @Excel(name = "Template") + private String template; +} diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/dto/ExportAlertDefineDTO.java b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/ExportAlertDefineDTO.java new file mode 100644 index 00000000000..fb7f25f33fd --- /dev/null +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/ExportAlertDefineDTO.java @@ -0,0 +1,38 @@ +/* + * 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.hertzbeat.alert.dto; + +import cn.afterturn.easypoi.excel.annotation.Excel; +import cn.afterturn.easypoi.excel.annotation.ExcelTarget; +import com.fasterxml.jackson.annotation.JsonIgnoreProperties; +import com.fasterxml.jackson.annotation.JsonInclude; +import lombok.Data; + +/** + * Export data transfer objects for alert configurations + */ + +@Data +@JsonInclude(JsonInclude.Include.NON_NULL) +@JsonIgnoreProperties(ignoreUnknown = true) +@ExcelTarget(value = "ExportAlertDefineDTO") +public class ExportAlertDefineDTO { + + @Excel(name = "AlertDefine") + private AlertDefineDTO alertDefine; +} diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/dto/TenCloudAlertReport.java b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/TenCloudAlertReport.java index 6ea51c1b047..99846e6a14b 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/dto/TenCloudAlertReport.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/dto/TenCloudAlertReport.java @@ -174,7 +174,7 @@ public Map getAnnotations() { @Override public String getContent() { StringBuilder contentBuilder = new StringBuilder(); - // 判断类型 + // Check Type. if (EVENT.equals(getAlarmType())) { contentBuilder .append("[") @@ -225,5 +225,3 @@ public String getContent() { } } - - diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduce.java b/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduce.java index 2aea1ea7cf1..8b8dbb257d9 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduce.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduce.java @@ -60,21 +60,15 @@ public boolean filterConverge(Alert currentAlert) { // restored alert boolean isHasIgnore = false; Map tags = currentAlert.getTags(); - if (tags.containsKey(CommonConstants.IGNORE)) { + if (Objects.requireNonNull(tags).containsKey(CommonConstants.IGNORE)) { isHasIgnore = true; tags.remove(CommonConstants.IGNORE); } - int alertHash = Objects.hash(CommonConstants.ALERT_PRIORITY_CODE_CRITICAL) - + Arrays.hashCode(tags.keySet().toArray(new String[0])) - + Arrays.hashCode(tags.values().toArray(new String[0])); + int alertHash = generateAlertHash(CommonConstants.ALERT_PRIORITY_CODE_CRITICAL, tags); converageAlertMap.remove(alertHash); - alertHash = Objects.hash(CommonConstants.ALERT_PRIORITY_CODE_EMERGENCY) - + Arrays.hashCode(tags.keySet().toArray(new String[0])) - + Arrays.hashCode(tags.values().toArray(new String[0])); + alertHash = generateAlertHash(CommonConstants.ALERT_PRIORITY_CODE_EMERGENCY, tags); converageAlertMap.remove(alertHash); - alertHash = Objects.hash(CommonConstants.ALERT_PRIORITY_CODE_WARNING) - + Arrays.hashCode(tags.keySet().toArray(new String[0])) - + Arrays.hashCode(tags.values().toArray(new String[0])); + alertHash = generateAlertHash(CommonConstants.ALERT_PRIORITY_CODE_WARNING, tags); converageAlertMap.remove(alertHash); if (isHasIgnore) { tags.put(CommonConstants.IGNORE, CommonConstants.IGNORE); @@ -132,9 +126,7 @@ public boolean filterConverge(Alert currentAlert) { if (evalInterval <= 0) { return true; } - int alertHash = Objects.hash(currentAlert.getPriority()) - + Arrays.hashCode(currentAlert.getTags().keySet().toArray(new String[0])) - + Arrays.hashCode(currentAlert.getTags().values().toArray(new String[0])); + int alertHash = generateAlertHash(currentAlert.getPriority(), currentAlert.getTags()); Alert preAlert = converageAlertMap.get(alertHash); if (preAlert == null) { currentAlert.setTimes(1); @@ -165,4 +157,12 @@ public boolean filterConverge(Alert currentAlert) { } return true; } + + private int generateAlertHash(byte priority, Map tags) { + List keyList = tags.keySet().stream().filter(Objects::nonNull).sorted().toList(); + List valueList = tags.values().stream().filter(Objects::nonNull).sorted().toList(); + return Objects.hash(priority) + + Arrays.hashCode(keyList.toArray(new String[0])) + + Arrays.hashCode(valueList.toArray(new String[0])); + } } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduce.java b/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduce.java index 8a807a003cf..5f8a0b0633a 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduce.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduce.java @@ -18,7 +18,6 @@ package org.apache.hertzbeat.alert.reduce; import java.time.LocalDateTime; -import java.time.LocalTime; import java.util.List; import java.util.Map; import java.util.Optional; @@ -84,32 +83,16 @@ public boolean filterSilence(Alert alert) { } } if (match) { - LocalDateTime nowDate = LocalDateTime.now(); if (alertSilence.getType() == 0) { // once time - boolean startMatch = alertSilence.getPeriodStart() == null || nowDate.isAfter(alertSilence.getPeriodStart().toLocalDateTime()); - boolean endMatch = alertSilence.getPeriodEnd() == null || nowDate.isBefore(alertSilence.getPeriodEnd().toLocalDateTime()); - if (startMatch && endMatch) { - int times = Optional.ofNullable(alertSilence.getTimes()).orElse(0); - alertSilence.setTimes(times + 1); - alertSilenceDao.save(alertSilence); - return false; - } + return checkAndSave(LocalDateTime.now(), alertSilence); } else if (alertSilence.getType() == 1) { // cyc time - int currentDayOfWeek = nowDate.toLocalDate().getDayOfWeek().getValue(); + int currentDayOfWeek = LocalDateTime.now().toLocalDate().getDayOfWeek().getValue(); if (alertSilence.getDays() != null && !alertSilence.getDays().isEmpty()) { boolean dayMatch = alertSilence.getDays().stream().anyMatch(item -> item == currentDayOfWeek); if (dayMatch) { - LocalTime nowTime = nowDate.toLocalTime(); - boolean startMatch = alertSilence.getPeriodStart() == null || nowTime.isAfter(alertSilence.getPeriodStart().toLocalTime()); - boolean endMatch = alertSilence.getPeriodEnd() == null || nowTime.isBefore(alertSilence.getPeriodEnd().toLocalTime()); - if (startMatch && endMatch) { - int times = Optional.ofNullable(alertSilence.getTimes()).orElse(0); - alertSilence.setTimes(times + 1); - alertSilenceDao.save(alertSilence); - return false; - } + return checkAndSave(LocalDateTime.now(), alertSilence); } } } @@ -117,4 +100,26 @@ public boolean filterSilence(Alert alert) { } return true; } + + /** + * Check AlertSilence start and end match, to save alertSilence obj. + * @param times LocalDateTime. + * @param alertSilence {@link AlertSilence} + * @return boolean + */ + private boolean checkAndSave(LocalDateTime times, AlertSilence alertSilence) { + + boolean startMatch = alertSilence.getPeriodStart() == null || times.isAfter(alertSilence.getPeriodStart().toLocalDateTime()); + boolean endMatch = alertSilence.getPeriodEnd() == null || times.isBefore(alertSilence.getPeriodEnd().toLocalDateTime()); + + if (startMatch && endMatch) { + + int time = Optional.ofNullable(alertSilence.getTimes()).orElse(0); + alertSilence.setTimes(time + 1); + alertSilenceDao.save(alertSilence); + return false; + } + + return true; + } } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertConvergeService.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertConvergeService.java index b41fdc5efb8..4d71a868b6a 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertConvergeService.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertConvergeService.java @@ -17,11 +17,10 @@ package org.apache.hertzbeat.alert.service; +import java.util.List; import java.util.Set; import org.apache.hertzbeat.common.entity.alerter.AlertConverge; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; /** * management interface service for alert converge @@ -67,9 +66,13 @@ public interface AlertConvergeService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest Paging parameters + * @param convergeIds Alarm Converge ID List + * @param search Search Name + * @param sort Sort field + * @param order Sort mode: asc: ascending, desc: descending + * @param pageIndex List current page + * @param pageSize Number of list pages * @return The query results */ - Page getAlertConverges(Specification specification, PageRequest pageRequest); + Page getAlertConverges(List convergeIds, String search, String sort, String order, int pageIndex, int pageSize); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertDefineService.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertDefineService.java index 74319167a81..dabad05a38e 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertDefineService.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertDefineService.java @@ -113,11 +113,16 @@ public interface AlertDefineService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest Paging parameters + * @param defineIds Alarm Definition ID List + * @param search Search-Target Expr Template + * @param priority Alarm Definition Severity + * @param sort Sort field + * @param order Sort mode: asc: ascending, desc: descending + * @param pageIndex List current page + * @param pageSize Number of list pages * @return The query results */ - Page getAlertDefines(Specification specification, PageRequest pageRequest); + Page getAlertDefines(List defineIds, String search, Byte priority, String sort, String order, int pageIndex, int pageSize); /** * Query the associated monitoring list information based on the alarm definition ID diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertService.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertService.java index 2bc6b182e64..67aa0b59f4a 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertService.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertService.java @@ -23,7 +23,6 @@ import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.dto.AlertReport; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; import org.springframework.data.jpa.domain.Specification; /** @@ -40,11 +39,18 @@ public interface AlertService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest pagination parameters + * @param alarmIds Alarm ID List + * @param monitorId Monitor ID + * @param priority Alarm level + * @param status Alarm Status + * @param content Alarm content fuzzy query + * @param sort Sort field + * @param order Sort Type + * @param pageIndex List current page + * @param pageSize Number of list pagination * @return search result */ - Page getAlerts(Specification specification, PageRequest pageRequest); + Page getAlerts(List alarmIds, Long monitorId, Byte priority, Byte status, String content, String sort, String order, int pageIndex, int pageSize); /** * Delete alarms in batches according to the alarm ID list @@ -76,6 +82,13 @@ public interface AlertService { */ void addNewAlertReport(AlertReport alertReport); + /** + * Save external alarms of cloud services + * @param cloudServiceName cloud service name,Such as tencloud + * @param alertReport alert report json string + */ + void addNewAlertReportFromCloud(String cloudServiceName, String alertReport); + /** * Dynamic conditional query * @param specification Query conditions diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertSilenceService.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertSilenceService.java index 3e7e114e4f1..36846b6b44d 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertSilenceService.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/AlertSilenceService.java @@ -17,11 +17,10 @@ package org.apache.hertzbeat.alert.service; +import java.util.List; import java.util.Set; import org.apache.hertzbeat.common.entity.alerter.AlertSilence; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; /** * management interface service for alert silence @@ -67,9 +66,13 @@ public interface AlertSilenceService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest Paging parameters + * @param silenceIds Alarm Silence ID + * @param search Search Name + * @param sort Sort field + * @param order Sort mode: asc: ascending, desc: descending + * @param pageIndex List current page + * @param pageSize Number of list pages * @return The query results */ - Page getAlertSilences(Specification specification, PageRequest pageRequest); + Page getAlertSilences(List silenceIds, String search, String sort, String order, int pageIndex, int pageSize); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertConvergeServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertConvergeServiceImpl.java index a4d05b47e56..bbfdf0592c9 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertConvergeServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertConvergeServiceImpl.java @@ -17,6 +17,10 @@ package org.apache.hertzbeat.alert.service.impl; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.Predicate; +import java.util.ArrayList; +import java.util.List; import java.util.Set; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.alert.dao.AlertConvergeDao; @@ -28,9 +32,11 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.StringUtils; /** * implement for alert converge service @@ -72,7 +78,30 @@ public void deleteAlertConverges(Set convergeIds) throws RuntimeException } @Override - public Page getAlertConverges(Specification specification, PageRequest pageRequest) { + public Page getAlertConverges(List convergeIds, String search, String sort, String order, int pageIndex, int pageSize) { + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (convergeIds != null && !convergeIds.isEmpty()) { + CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); + for (long id : convergeIds) { + inPredicate.value(id); + } + andList.add(inPredicate); + } + if (StringUtils.hasText(search)) { + Predicate predicate = criteriaBuilder.or( + criteriaBuilder.like( + criteriaBuilder.lower(root.get("name")), + "%" + search.toLowerCase() + "%" + ) + ); + andList.add(predicate); + } + Predicate[] predicates = new Predicate[andList.size()]; + return criteriaBuilder.and(andList.toArray(predicates)); + }; + Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); return alertConvergeDao.findAll(specification, pageRequest); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineAbstractImExportServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineAbstractImExportServiceImpl.java index 2900b0fe3af..121e17a9a5e 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineAbstractImExportServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineAbstractImExportServiceImpl.java @@ -17,22 +17,17 @@ package org.apache.hertzbeat.alert.service.impl; -import cn.afterturn.easypoi.excel.annotation.Excel; -import cn.afterturn.easypoi.excel.annotation.ExcelTarget; -import com.fasterxml.jackson.annotation.JsonIgnoreProperties; -import com.fasterxml.jackson.annotation.JsonInclude; import jakarta.annotation.Resource; import java.io.InputStream; import java.io.OutputStream; import java.time.LocalDate; import java.util.List; -import java.util.stream.Collectors; -import lombok.Data; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.alert.dto.AlertDefineDTO; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; import org.apache.hertzbeat.alert.service.AlertDefineImExportService; import org.apache.hertzbeat.alert.service.AlertDefineService; import org.apache.hertzbeat.common.entity.alerter.AlertDefine; -import org.apache.hertzbeat.common.entity.manager.TagItem; import org.springframework.beans.BeanUtils; import org.springframework.context.annotation.Lazy; import org.springframework.util.CollectionUtils; @@ -51,7 +46,7 @@ public void importConfig(InputStream is) { var formList = parseImport(is) .stream() .map(this::convert) - .collect(Collectors.toUnmodifiableList()); + .toList(); if (!CollectionUtils.isEmpty(formList)) { formList.forEach(alertDefine -> { alertDefineService.validate(alertDefine, false); @@ -65,7 +60,7 @@ public void exportConfig(OutputStream os, List configList) { var monitorList = configList.stream() .map(it -> alertDefineService.getAlertDefine(it)) .map(this::convert) - .collect(Collectors.toUnmodifiableList()); + .toList(); writeOs(monitorList, os); } @@ -105,47 +100,4 @@ protected String fileNamePrefix() { return "hertzbeat_alertDefine_" + LocalDate.now(); } - /** - * Export data transfer objects for alert configurations - */ - @Data - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonIgnoreProperties(ignoreUnknown = true) - @ExcelTarget(value = "ExportAlertDefineDTO") - protected static class ExportAlertDefineDTO { - @Excel(name = "AlertDefine") - private AlertDefineDTO alertDefine; - } - - /** - * Data transfer object for alert configuration - */ - @Data - @JsonInclude(JsonInclude.Include.NON_NULL) - @JsonIgnoreProperties(ignoreUnknown = true) - @ExcelTarget(value = "AlertDefineDTO") - protected static class AlertDefineDTO { - @Excel(name = "App") - private String app; - @Excel(name = "Metric") - private String metric; - @Excel(name = "Field") - private String field; - @Excel(name = "Preset") - private Boolean preset; - @Excel(name = "Expr") - private String expr; - @Excel(name = "Priority") - private Byte priority; - @Excel(name = "Times") - private Integer times; - @Excel(name = "Tags") - private List tags; - @Excel(name = "Enable") - private Boolean enable; - @Excel(name = "RecoverNotice") - private Boolean recoverNotice; - @Excel(name = "Template") - private String template; - } } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineExcelImExportServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineExcelImExportServiceImpl.java index 88fa777ba45..5ea86d30d63 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineExcelImExportServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineExcelImExportServiceImpl.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.alert.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.ExcelFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.ExcelFile.TYPE; import com.fasterxml.jackson.core.type.TypeReference; import java.io.IOException; import java.io.InputStream; @@ -25,8 +27,11 @@ import java.util.List; import java.util.Objects; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.alert.dto.AlertDefineDTO; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; import org.apache.hertzbeat.common.entity.manager.TagItem; import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.poi.hssf.usermodel.HSSFWorkbook; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; import org.apache.poi.ss.usermodel.CellType; @@ -45,8 +50,6 @@ @Slf4j @Service public class AlertDefineExcelImExportServiceImpl extends AlertDefineAbstractImExportServiceImpl { - public static final String TYPE = "EXCEL"; - public static final String FILE_SUFFIX = ".xlsx"; /** * Export file type @@ -73,7 +76,7 @@ public String getFileName() { * @return form list */ @Override - List parseImport(InputStream is) { + public List parseImport(InputStream is) { try (Workbook workbook = WorkbookFactory.create(is)) { Sheet sheet = workbook.getSheetAt(0); List alertDefines = new ArrayList<>(); @@ -95,17 +98,6 @@ List parseImport(InputStream is) { } } - private TagItem extractTagDataFromRow(Row row) { - String name = getCellValueAsString(row.getCell(7)); - if (StringUtils.hasText(name)) { - TagItem tagItem = new TagItem(); - tagItem.setName(name); - tagItem.setValue(getCellValueAsString(row.getCell(8))); - return tagItem; - } - return null; - } - private List extractTagDataFromRow(Cell cell) { String jsonStr = getCellValueAsString(cell); if (StringUtils.hasText(jsonStr)) { @@ -184,9 +176,9 @@ private AlertDefineDTO extractAlertDefineDataFromRow(Row row) { * @param os output stream */ @Override - void writeOs(List exportAlertDefineList, OutputStream os) { + public void writeOs(List exportAlertDefineList, OutputStream os) { try { - Workbook workbook = WorkbookFactory.create(true); + Workbook workbook = new HSSFWorkbook(); String sheetName = "Export AlertDefine"; Sheet sheet = workbook.createSheet(sheetName); sheet.setDefaultColumnWidth(20); diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineJsonImExportServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineJsonImExportServiceImpl.java index 75bf8b09734..cb705841dd5 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineJsonImExportServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineJsonImExportServiceImpl.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.alert.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.JsonFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.JsonFile.TYPE; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; @@ -25,6 +27,7 @@ import java.util.List; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; import org.springframework.stereotype.Service; /** @@ -34,8 +37,6 @@ @RequiredArgsConstructor @Service public class AlertDefineJsonImExportServiceImpl extends AlertDefineAbstractImExportServiceImpl { - public static final String TYPE = "JSON"; - public static final String FILE_SUFFIX = ".json"; private final ObjectMapper objectMapper; @@ -50,7 +51,7 @@ public String getFileName() { } @Override - List parseImport(InputStream is) { + public List parseImport(InputStream is) { try { return objectMapper.readValue(is, new TypeReference<>() { }); @@ -61,7 +62,7 @@ List parseImport(InputStream is) { } @Override - void writeOs(List exportAlertDefineList, OutputStream os) { + public void writeOs(List exportAlertDefineList, OutputStream os) { try { objectMapper.writeValue(os, exportAlertDefineList); } catch (IOException ex) { diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineServiceImpl.java index b29add88a95..e37fdb86ce8 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineServiceImpl.java @@ -17,9 +17,12 @@ package org.apache.hertzbeat.alert.service.impl; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.Predicate; import jakarta.servlet.http.HttpServletResponse; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; +import java.util.ArrayList; import java.util.Comparator; import java.util.HashMap; import java.util.List; @@ -34,15 +37,20 @@ import org.apache.hertzbeat.alert.dao.AlertMonitorDao; import org.apache.hertzbeat.alert.service.AlertDefineImExportService; import org.apache.hertzbeat.alert.service.AlertDefineService; +import org.apache.hertzbeat.common.constants.ExportFileConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.alerter.AlertDefine; import org.apache.hertzbeat.common.entity.alerter.AlertDefineMonitorBind; import org.apache.hertzbeat.common.entity.manager.Monitor; +import org.apache.hertzbeat.common.util.FileUtil; import org.apache.hertzbeat.common.util.JexlExpressionRunner; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.StringUtils; @@ -67,6 +75,8 @@ public class AlertDefineServiceImpl implements AlertDefineService { private final Map alertDefineImExportServiceMap = new HashMap<>(); + private static final String CONTENT_TYPE = MediaType.APPLICATION_OCTET_STREAM_VALUE + SignConstants.SINGLE_MARK + "charset=" + StandardCharsets.UTF_8; + public AlertDefineServiceImpl(List alertDefineImExportServiceList) { alertDefineImExportServiceList.forEach(it -> alertDefineImExportServiceMap.put(it.type(), it)); } @@ -147,7 +157,50 @@ public AlertDefine getMonitorBindAlertAvaDefine(long monitorId, String app, Stri } @Override - public Page getAlertDefines(Specification specification, PageRequest pageRequest) { + public Page getAlertDefines(List defineIds, String search, Byte priority, String sort, String order, int pageIndex, int pageSize) { + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (defineIds != null && !defineIds.isEmpty()) { + CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); + for (long id : defineIds) { + inPredicate.value(id); + } + andList.add(inPredicate); + } + if (StringUtils.hasText(search)) { + Predicate predicate = criteriaBuilder.or( + criteriaBuilder.like( + criteriaBuilder.lower(root.get("app")), + "%" + search.toLowerCase() + "%" + ), + criteriaBuilder.like( + criteriaBuilder.lower(root.get("metric")), + "%" + search.toLowerCase() + "%" + ), + criteriaBuilder.like( + criteriaBuilder.lower(root.get("field")), + "%" + search.toLowerCase() + "%" + ), + criteriaBuilder.like( + criteriaBuilder.lower(root.get("expr")), + "%" + search.toLowerCase() + "%" + ), + criteriaBuilder.like( + criteriaBuilder.lower(root.get("template")), + "%" + search.toLowerCase() + "%" + ) + ); + andList.add(predicate); + } + if (priority != null) { + Predicate predicate = criteriaBuilder.equal(root.get("priority"), priority); + andList.add(predicate); + } + Predicate[] predicates = new Predicate[andList.size()]; + return criteriaBuilder.and(andList.toArray(predicates)); + }; + Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); return alertDefineDao.findAll(specification, pageRequest); } @@ -180,31 +233,20 @@ public void export(List ids, String type, HttpServletResponse res) throws throw new IllegalArgumentException("not support export type: " + type); } var fileName = imExportService.getFileName(); - res.setHeader("content-type", "application/octet-stream;charset=UTF-8"); - res.setContentType("application/octet-stream;charset=UTF-8"); + res.setHeader(HttpHeaders.CONTENT_TYPE, CONTENT_TYPE); + res.setContentType(CONTENT_TYPE); res.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + URLEncoder.encode(fileName, StandardCharsets.UTF_8)); - res.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); + res.setHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, HttpHeaders.CONTENT_DISPOSITION); imExportService.exportConfig(res.getOutputStream(), ids); } @Override public void importConfig(MultipartFile file) throws Exception { - var fileName = file.getOriginalFilename(); - if (!StringUtils.hasText(fileName)) { - return; - } - var type = ""; - if (fileName.toLowerCase().endsWith(AlertDefineJsonImExportServiceImpl.FILE_SUFFIX)) { - type = AlertDefineJsonImExportServiceImpl.TYPE; - } - if (fileName.toLowerCase().endsWith(AlertDefineExcelImExportServiceImpl.FILE_SUFFIX)) { - type = AlertDefineExcelImExportServiceImpl.TYPE; - } - if (fileName.toLowerCase().endsWith(AlertDefineYamlImExportServiceImpl.FILE_SUFFIX)) { - type = AlertDefineYamlImExportServiceImpl.TYPE; - } + + var type = FileUtil.getFileType(file); + var fileName = FileUtil.getFileName(file); if (!alertDefineImExportServiceMap.containsKey(type)) { - throw new RuntimeException("file " + fileName + " is not supported."); + throw new RuntimeException(ExportFileConstants.FILE + " " + fileName + " is not supported."); } var imExportService = alertDefineImExportServiceMap.get(type); imExportService.importConfig(file.getInputStream()); diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineYamlImExportServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineYamlImExportServiceImpl.java index 2dacffe4aa4..f0598e8e5d7 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineYamlImExportServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertDefineYamlImExportServiceImpl.java @@ -17,26 +17,27 @@ package org.apache.hertzbeat.alert.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.YamlFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.YamlFile.TYPE; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; import java.nio.charset.StandardCharsets; import java.util.List; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; import org.springframework.stereotype.Service; import org.yaml.snakeyaml.DumperOptions; import org.yaml.snakeyaml.Yaml; /** - * Configure the import and export Yaml format + * Configure the import and export Yaml format. */ + @Slf4j @Service public class AlertDefineYamlImExportServiceImpl extends AlertDefineAbstractImExportServiceImpl { - public static final String TYPE = "YAML"; - public static final String FILE_SUFFIX = ".yaml"; - @Override public String type() { return TYPE; @@ -48,13 +49,13 @@ public String getFileName() { } @Override - List parseImport(InputStream is) { + public List parseImport(InputStream is) { Yaml yaml = new Yaml(); return yaml.load(is); } @Override - void writeOs(List exportAlertDefineList, OutputStream os) { + public void writeOs(List exportAlertDefineList, OutputStream os) { DumperOptions options = new DumperOptions(); options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); options.setIndent(2); diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertServiceImpl.java index ffdca29f9a9..b411ecdd810 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertServiceImpl.java @@ -17,26 +17,35 @@ package org.apache.hertzbeat.alert.service.impl; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.Predicate; import java.math.BigDecimal; import java.math.RoundingMode; import java.time.Instant; import java.time.LocalDateTime; import java.time.ZoneId; +import java.util.ArrayList; +import java.util.Date; import java.util.HashSet; import java.util.List; import java.util.Map; +import java.util.Optional; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.alert.dao.AlertDao; import org.apache.hertzbeat.alert.dto.AlertPriorityNum; import org.apache.hertzbeat.alert.dto.AlertSummary; +import org.apache.hertzbeat.alert.dto.CloudAlertReportAbstract; +import org.apache.hertzbeat.alert.enums.CloudServiceAlarmInformationEnum; import org.apache.hertzbeat.alert.reduce.AlarmCommonReduce; import org.apache.hertzbeat.alert.service.AlertService; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.dto.AlertReport; +import org.apache.hertzbeat.common.util.JsonUtil; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; @@ -61,7 +70,38 @@ public void addAlert(Alert alert) throws RuntimeException { } @Override - public Page getAlerts(Specification specification, PageRequest pageRequest) { + public Page getAlerts(List alarmIds, Long monitorId, Byte priority, Byte status, String content, String sort, String order, int pageIndex, int pageSize) { + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + + if (alarmIds != null && !alarmIds.isEmpty()) { + CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); + for (long id : alarmIds) { + inPredicate.value(id); + } + andList.add(inPredicate); + } + if (monitorId != null) { + Predicate predicate = criteriaBuilder.like(root.get("tags").as(String.class), "%" + monitorId + "%"); + andList.add(predicate); + } + if (priority != null) { + Predicate predicate = criteriaBuilder.equal(root.get("priority"), priority); + andList.add(predicate); + } + if (status != null) { + Predicate predicate = criteriaBuilder.equal(root.get("status"), status); + andList.add(predicate); + } + if (content != null && !content.isEmpty()) { + Predicate predicateContent = criteriaBuilder.like(root.get("content"), "%" + content + "%"); + andList.add(predicateContent); + } + Predicate[] predicates = new Predicate[andList.size()]; + return criteriaBuilder.and(andList.toArray(predicates)); + }; + Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); return alertDao.findAll(specification, pageRequest); } @@ -121,6 +161,43 @@ public void addNewAlertReport(AlertReport alertReport) { alarmCommonReduce.reduceAndSendAlarm(buildAlertData(alertReport)); } + @Override + public void addNewAlertReportFromCloud(String cloudServiceName, String alertReport) { + CloudServiceAlarmInformationEnum cloudService = CloudServiceAlarmInformationEnum + .getEnumFromCloudServiceName(cloudServiceName); + + AlertReport alert = null; + if (cloudService != null) { + try { + CloudAlertReportAbstract cloudAlertReport = JsonUtil + .fromJson(alertReport, cloudService.getCloudServiceAlarmInformationEntity()); + assert cloudAlertReport != null; + alert = AlertReport.builder() + .content(cloudAlertReport.getContent()) + .alertName(cloudAlertReport.getAlertName()) + .alertTime(cloudAlertReport.getAlertTime()) + .alertDuration(cloudAlertReport.getAlertDuration()) + .priority(cloudAlertReport.getPriority()) + .reportType(cloudAlertReport.getReportType()) + .labels(cloudAlertReport.getLabels()) + .annotations(cloudAlertReport.getAnnotations()) + .build(); + } catch (Exception e) { + log.error("[alert report] parse cloud service alarm content failed! cloud service: {} conrent: {}", + cloudService.name(), alertReport); + } + } else { + alert = AlertReport.builder() + .content("error do not has cloud service api") + .alertName("/api/alerts/report/" + cloudServiceName) + .alertTime(new Date().getTime()) + .priority(1) + .reportType(1) + .build(); + } + Optional.ofNullable(alert).ifPresent(this::addNewAlertReport); + } + @Override public List getAlerts(Specification specification) { @@ -137,9 +214,7 @@ private Alert buildAlertData(AlertReport alertReport){ StringBuilder sb = new StringBuilder(); if (alertReport.getContent() == null || alertReport.getContent().length() <= 0){ StringBuilder finalSb = sb; - annotations.forEach((k, v) -> { - finalSb.append(k).append(":").append(v).append("\n"); - }); + annotations.forEach((k, v) -> finalSb.append(k).append(":").append(v).append("\n")); } else { sb = new StringBuilder(alertReport.getContent()); } diff --git a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertSilenceServiceImpl.java b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertSilenceServiceImpl.java index a8a347af5b4..9a960863a12 100644 --- a/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertSilenceServiceImpl.java +++ b/alerter/src/main/java/org/apache/hertzbeat/alert/service/impl/AlertSilenceServiceImpl.java @@ -17,7 +17,11 @@ package org.apache.hertzbeat.alert.service.impl; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.Predicate; +import java.util.ArrayList; import java.util.Arrays; +import java.util.List; import java.util.Set; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.alert.dao.AlertSilenceDao; @@ -29,9 +33,11 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.StringUtils; /** * management interface service implement for alert silence @@ -77,7 +83,30 @@ public void deleteAlertSilences(Set silenceIds) throws RuntimeException { } @Override - public Page getAlertSilences(Specification specification, PageRequest pageRequest) { + public Page getAlertSilences(List silenceIds, String search, String sort, String order, int pageIndex, int pageSize) { + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (silenceIds != null && !silenceIds.isEmpty()) { + CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); + for (long id : silenceIds) { + inPredicate.value(id); + } + andList.add(inPredicate); + } + if (StringUtils.hasText(search)) { + Predicate predicate = criteriaBuilder.or( + criteriaBuilder.like( + criteriaBuilder.lower(root.get("name")), + "%" + search.toLowerCase() + "%" + ) + ); + andList.add(predicate); + } + Predicate[] predicates = new Predicate[andList.size()]; + return criteriaBuilder.and(andList.toArray(predicates)); + }; + Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); return alertSilenceDao.findAll(specification, pageRequest); } diff --git a/alerter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/alerter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 0becd31fa85..bbff659d5c8 100644 --- a/alerter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/alerter/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -org.apache.hertzbeat.alert.config.AlerterAutoConfiguration \ No newline at end of file +org.apache.hertzbeat.alert.config.AlerterAutoConfiguration diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergeControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergeControllerTest.java new file mode 100644 index 00000000000..64aca2bd273 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergeControllerTest.java @@ -0,0 +1,124 @@ +/* + * 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.hertzbeat.alert.controller; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import org.apache.hertzbeat.alert.service.AlertConvergeService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.AlertConverge; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * test case for {@link AlertConvergeController} + */ + +@ExtendWith(MockitoExtension.class) +public class AlertConvergeControllerTest { + + private MockMvc mockMvc; + + @Mock + private AlertConvergeService alertConvergeService; + + private AlertConverge alertConverge; + + @InjectMocks + private AlertConvergeController alertConvergeController; + + @BeforeEach + void setUp() { + + this.mockMvc = standaloneSetup(alertConvergeController).build(); + + alertConverge = AlertConverge.builder() + .name("test") + .creator("admin") + .modifier("admin") + .id(1L) + .build(); + } + + @Test + void testAddNewAlertConverge() throws Exception { + + doNothing().when(alertConvergeService).validate(any(AlertConverge.class), eq(false)); + doNothing().when(alertConvergeService).addAlertConverge(any(AlertConverge.class)); + + mockMvc.perform(post("/api/alert/converge") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(alertConverge)) + ).andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Add success")); + } + + @Test + void testModifyAlertConverge() throws Exception { + + doNothing().when(alertConvergeService).validate(any(AlertConverge.class), eq(true)); + doNothing().when(alertConvergeService).modifyAlertConverge(any(AlertConverge.class)); + + mockMvc.perform(put("/api/alert/converge") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(alertConverge)) + ).andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Modify success")); + } + + @Test + void testGetAlertConvergeExists() throws Exception { + + when(alertConvergeService.getAlertConverge(1L)).thenReturn(alertConverge); + + mockMvc.perform(get("/api/alert/converge/{id}", 1L) + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.data.id").value(alertConverge.getId())); + } + + @Test + void testGetAlertConvergeNotExists() throws Exception { + + when(alertConvergeService.getAlertConverge(1L)).thenReturn(null); + + mockMvc.perform(get("/api/alert/converge/{id}", 1L) + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.MONITOR_NOT_EXIST_CODE)) + .andExpect(jsonPath("$.msg").value("AlertConverge not exist.")); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergesControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergesControllerTest.java new file mode 100644 index 00000000000..dd52237962e --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertConvergesControllerTest.java @@ -0,0 +1,120 @@ +/* + * 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.hertzbeat.alert.controller; + + +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import java.util.Arrays; +import java.util.HashSet; +import java.util.List; +import org.apache.hertzbeat.alert.service.AlertConvergeService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.AlertConverge; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageImpl; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + + +/** + * test case for {@link AlertConvergesController} + */ + +@ExtendWith(MockitoExtension.class) +class AlertConvergesControllerTest { + + private MockMvc mockMvc; + + @Mock + private AlertConvergeService alertConvergeService; + + @InjectMocks + private AlertConvergesController alertConvergesController; + + private List alertConvergeList; + + @BeforeEach + void setUp() { + + this.mockMvc = standaloneSetup(alertConvergesController).build(); + + AlertConverge alertConverge1 = AlertConverge.builder() + .name("Converge1") + .id(1L) + .build(); + + AlertConverge alertConverge2 = AlertConverge.builder() + .name("Converge2") + .id(2L) + .build(); + + alertConvergeList = Arrays.asList(alertConverge1, alertConverge2); + } + + @Test + void testGetAlertConverges() throws Exception { + + Page alertConvergePage = new PageImpl<>( + alertConvergeList, + PageRequest.of(0, 8, Sort.by("id").descending()), + alertConvergeList.size() + ); + + when(alertConvergeService.getAlertConverges(null, null, "id", "desc", 0, 8)).thenReturn(alertConvergePage); + + mockMvc.perform(get("/api/alert/converges") + .param("pageIndex", "0") + .param("pageSize", "8") + .param("sort", "id") + .param("order", "desc") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.data.content[0].id").value(1)) + .andExpect(jsonPath("$.data.content[0].name").value("Converge1")) + .andExpect(jsonPath("$.data.content[1].id").value(2)) + .andExpect(jsonPath("$.data.content[1].name").value("Converge2")); + } + + @Test + void testDeleteAlertDefines() throws Exception { + + doNothing().when(alertConvergeService).deleteAlertConverges(eq(new HashSet<>(Arrays.asList(1L, 2L)))); + + mockMvc.perform(delete("/api/alert/converges") + .param("ids", "1,2") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } +} + diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefineControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefineControllerTest.java index fa2fe11c615..95a3637f265 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefineControllerTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefineControllerTest.java @@ -97,8 +97,8 @@ void setUp() { void addNewAlertDefine() throws Exception { // Simulate the client sending a request to the server mockMvc.perform(MockMvcRequestBuilders.post("/api/alert/define") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(this.alertDefine))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(this.alertDefine))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -107,8 +107,8 @@ void addNewAlertDefine() throws Exception { @Test void modifyAlertDefine() throws Exception { mockMvc.perform(MockMvcRequestBuilders.put("/api/alert/define") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(this.alertDefine))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(this.alertDefine))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -121,7 +121,7 @@ void getAlertDefine() throws Exception { .thenReturn(this.alertDefine); mockMvc.perform(MockMvcRequestBuilders.get("/api/alert/define/" + this.alertDefine.getId()) - .contentType(MediaType.APPLICATION_JSON)) + .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.data.id").value(alertDefine.getId())) @@ -138,8 +138,8 @@ void getAlertDefine() throws Exception { @Test void deleteAlertDefine() throws Exception { mockMvc.perform(MockMvcRequestBuilders.delete("/api/alert/define/" + this.alertDefine.getId()) - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(this.alertDefine))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(this.alertDefine))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -148,8 +148,8 @@ void deleteAlertDefine() throws Exception { @Test void applyAlertDefineMonitorsBind() throws Exception { mockMvc.perform(MockMvcRequestBuilders.post("/api/alert/define/" + this.alertDefine.getId() + "/monitors") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(this.alertDefineMonitorBinds))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(this.alertDefineMonitorBinds))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -161,7 +161,7 @@ void getAlertDefineMonitorsBind() throws Exception { .thenReturn(this.alertDefineMonitorBinds); mockMvc.perform(MockMvcRequestBuilders.get("/api/alert/define/" + this.alertDefine.getId() + "/monitors") - .contentType(MediaType.APPLICATION_JSON)) + .contentType(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.data[0].id").value(alertDefineMonitorBinds.get(0).getId())) diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefinesControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefinesControllerTest.java index 62ce3fb82c2..0af84fba1fc 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefinesControllerTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertDefinesControllerTest.java @@ -68,7 +68,7 @@ class AlertDefinesControllerTest { String order = "asc"; Integer pageIndex = 1; Integer pageSize = 7; - + // Parameter collection Map content = new HashMap<>(); @@ -98,29 +98,29 @@ void getAlertDefines() throws Exception { // Test the correctness of the mock // Although objects cannot be mocked, stubs can be stored using class files -// Mockito.when(alertDefineService.getAlertDefines(Mockito.any(Specification.class), Mockito.argThat(new ArgumentMatcher() { -// @Override -// public boolean matches(PageRequest pageRequestMidden) { -// // There are three methods in the source code that need to be compared, namely getPageNumber(), getPageSize(), getSort() -// if(pageRequestMidden.getPageSize() == pageRequest.getPageSize() && -// pageRequestMidden.getPageNumber() == pageRequest.getPageNumber() && -// pageRequestMidden.getSort().equals(pageRequest.getSort())) { -// return true; -// } -// return false; -// } -// }))).thenReturn(new PageImpl(new ArrayList())); + // Mockito.when(alertDefineService.getAlertDefines(Mockito.any(Specification.class), Mockito.argThat(new ArgumentMatcher() { + // @Override + // public boolean matches(PageRequest pageRequestMidden) { + // // There are three methods in the source code that need to be compared, namely getPageNumber(), getPageSize(), getSort() + // if(pageRequestMidden.getPageSize() == pageRequest.getPageSize() && + // pageRequestMidden.getPageNumber() == pageRequest.getPageNumber() && + // pageRequestMidden.getSort().equals(pageRequest.getSort())) { + // return true; + // } + // return false; + // } + // }))).thenReturn(new PageImpl(new ArrayList())); AlertDefine define = AlertDefine.builder().id(9L).app("linux").metric("disk").field("usage").expr("x").times(1).tags(new LinkedList<>()).build(); - Mockito.when(alertDefineService.getAlertDefines(Mockito.any(), Mockito.any())).thenReturn(new PageImpl<>(Collections.singletonList(define))); + Mockito.when(alertDefineService.getAlertDefines(null, null, null, "id", "desc", 1, 10)).thenReturn(new PageImpl<>(Collections.singletonList(define))); mockMvc.perform(MockMvcRequestBuilders.get( - "/api/alert/defines") - .param("ids", ids.toString().substring(1, ids.toString().length() - 1)) - .param("priority", priority.toString()) - .param("sort", sort) - .param("order", order) - .param("pageIndex", pageIndex.toString()) - .param("pageSize", pageSize.toString())) + "/api/alert/defines") + .param("ids", ids.toString().substring(1, ids.toString().length() - 1)) + .param("priority", priority.toString()) + .param("sort", sort) + .param("order", order) + .param("pageIndex", pageIndex.toString()) + .param("pageSize", pageSize.toString())) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.data.content").value(new ArrayList<>())) @@ -142,8 +142,8 @@ void getAlertDefines() throws Exception { @Test void deleteAlertDefines() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/alert/defines") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(ids))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(ids))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertReportControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertReportControllerTest.java index cb7f4e04588..e2dc1bf3ff8 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertReportControllerTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertReportControllerTest.java @@ -41,20 +41,20 @@ */ @ExtendWith(MockitoExtension.class) class AlertReportControllerTest { - + private MockMvc mockMvc; @Mock private AlertService alertService; - + @InjectMocks private AlertReportController alertReportController; - + @BeforeEach void setUp() { this.mockMvc = MockMvcBuilders.standaloneSetup(alertReportController).build(); } - + @Test void addNewAlertReportTencent() throws Exception { TenCloudAlertReport.Dimensions dimensions = new TenCloudAlertReport.Dimensions(); @@ -86,14 +86,14 @@ void addNewAlertReportTencent() throws Exception { alarmPolicyInfo.setConditions(conditions); TenCloudAlertReport report = TenCloudAlertReport.builder() - .sessionId("123") - .alarmStatus("1") - .alarmType("event") - .durationTime(2) - .firstOccurTime("2023-08-14 11:11:11") - .alarmObjInfo(alarmObjInfo) - .alarmPolicyInfo(alarmPolicyInfo) - .build(); + .sessionId("123") + .alarmStatus("1") + .alarmType("event") + .durationTime(2) + .firstOccurTime("2023-08-14 11:11:11") + .alarmObjInfo(alarmObjInfo) + .alarmPolicyInfo(alarmPolicyInfo) + .build(); mockMvc.perform( MockMvcRequestBuilders .post("/api/alerts/report/tencloud") @@ -105,16 +105,16 @@ void addNewAlertReportTencent() throws Exception { .andExpect(content().json("{\"data\":null,\"msg\":\"Add report success\",\"code\":0}")) .andReturn(); } - + @Test void addNewAlertReport() throws Exception { GeneralCloudAlertReport generalCloudAlertReport = new GeneralCloudAlertReport(); generalCloudAlertReport.setAlertDateTime("2023-02-22T07:27:15.404000000Z"); mockMvc.perform(MockMvcRequestBuilders - .post("/api/alerts/report") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(generalCloudAlertReport)) + .post("/api/alerts/report") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(generalCloudAlertReport)) ) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertSilenceControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertSilenceControllerTest.java new file mode 100644 index 00000000000..2ddd2f236c9 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertSilenceControllerTest.java @@ -0,0 +1,122 @@ +/* + * 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.hertzbeat.alert.controller; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import org.apache.hertzbeat.alert.service.AlertSilenceService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.AlertSilence; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * tes case for {@link AlertSilenceController} + */ + +@ExtendWith(MockitoExtension.class) +class AlertSilenceControllerTest { + + private MockMvc mockMvc; + + @Mock + private AlertSilenceService alertSilenceService; + + private AlertSilence alertSilence; + + @InjectMocks + private AlertSilenceController alertSilenceController; + + @BeforeEach + void setUp() { + + this.mockMvc = standaloneSetup(alertSilenceController).build(); + + alertSilence = AlertSilence.builder() + .id(1L) + .name("Test Silence") + .type((byte) 1) + .build(); + } + + @Test + void testAddNewAlertSilence() throws Exception { + + doNothing().when(alertSilenceService).validate(any(AlertSilence.class), eq(false)); + doNothing().when(alertSilenceService).addAlertSilence(any(AlertSilence.class)); + + mockMvc.perform(post("/api/alert/silence") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(alertSilence))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + void testModifyAlertSilence() throws Exception { + + doNothing().when(alertSilenceService).validate(any(AlertSilence.class), eq(true)); + doNothing().when(alertSilenceService).modifyAlertSilence(any(AlertSilence.class)); + + mockMvc.perform(put("/api/alert/silence") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(alertSilence))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + void testGetAlertSilence() throws Exception { + + when(alertSilenceService.getAlertSilence(1L)).thenReturn(alertSilence); + + mockMvc.perform(get("/api/alert/silence/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.data.id").value(1)) + .andExpect(jsonPath("$.data.name").value("Test Silence")); + } + + @Test + void testGetAlertSilenceNotExists() throws Exception { + + when(alertSilenceService.getAlertSilence(1L)).thenReturn(null); + + mockMvc.perform(get("/api/alert/silence/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.MONITOR_NOT_EXIST_CODE)) + .andExpect(jsonPath("$.msg").value("AlertSilence not exist.")); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertsControllerTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertsControllerTest.java index c35ee78f02b..69e330dedf5 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertsControllerTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/controller/AlertsControllerTest.java @@ -39,7 +39,7 @@ import org.springframework.data.domain.PageImpl; import org.springframework.data.domain.PageRequest; import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; +import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; import org.springframework.test.web.servlet.setup.MockMvcBuilders; @@ -67,40 +67,37 @@ void setUp() { ids = LongStream.rangeClosed(1, 10).boxed().collect(Collectors.toList()); } - // todo: fix this test + @Test void getAlerts() throws Exception { String sortField = "id"; - String orderType = "asc"; + String orderType = "desc"; + Byte priority = 1; + Byte status = 1; + Long monitorId = 1L; + String content = "test"; int pageIndex = 0; int pageSize = 10; - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, Sort.by(new Sort.Order(Sort.Direction.fromString(orderType), sortField))); - Page alertPage = new PageImpl<>(Collections.singletonList(Alert.builder().build())); - Mockito.when( - alertService.getAlerts( - Mockito.any(Specification.class) - , Mockito.argThat( - argument -> - argument.getPageNumber() == pageRequest.getPageNumber() - && argument.getPageSize() == pageRequest.getPageSize() - && argument.getSort().equals(pageRequest.getSort()) - ) - ) - ) + + Page alertPage = new PageImpl<>( + Collections.singletonList(Alert.builder().build()), + PageRequest.of(pageIndex, pageSize, Sort.by(sortField).descending()), + ids.size() + ); + Mockito.when(alertService.getAlerts(ids, monitorId, priority, status, content, sortField, orderType, pageIndex, pageSize)) .thenReturn(alertPage); - mockMvc.perform( - MockMvcRequestBuilders - .get("/api/alerts") - .param("ids", ids.stream().map(String::valueOf).collect(Collectors.joining(","))) - .param("monitorId", "1") - .param("priority", "1") - .param("status", "1") - .param("content", "test") - .param("sort", sortField) - .param("order", orderType) - .param("pageIndex", String.valueOf(pageIndex)) - .param("pageSize", String.valueOf(pageSize)) - ) + mockMvc.perform(MockMvcRequestBuilders + .get("/api/alerts") + .param("ids", ids.stream().map(String::valueOf).collect(Collectors.joining(","))) + .param("monitorId", String.valueOf(monitorId)) + .param("priority", String.valueOf(priority)) + .param("status", String.valueOf(status)) + .param("content", content) + .param("sort", sortField) + .param("order", orderType) + .param("pageIndex", String.valueOf(pageIndex)) + .param("pageSize", String.valueOf(pageSize)) + .accept(MediaType.APPLICATION_JSON)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.data.content.length()").value(1)) diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmCommonReduceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmCommonReduceTest.java new file mode 100644 index 00000000000..43e0890deb5 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmCommonReduceTest.java @@ -0,0 +1,134 @@ +/* + * 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.hertzbeat.alert.reduce; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Collections; +import java.util.HashMap; +import java.util.Map; +import org.apache.hertzbeat.alert.dao.AlertMonitorDao; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.Tag; +import org.apache.hertzbeat.common.queue.CommonDataQueue; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link AlarmCommonReduce} + */ + +@ExtendWith(MockitoExtension.class) +class AlarmCommonReduceTest { + + @Mock + private AlarmSilenceReduce alarmSilenceReduce; + + @Mock + private AlarmConvergeReduce alarmConvergeReduce; + + @Mock + private CommonDataQueue dataQueue; + + @Mock + private AlertMonitorDao alertMonitorDao; + + private AlarmCommonReduce alarmCommonReduce; + + private Alert testAlert; + + @BeforeEach + void setUp() { + + testAlert = Alert.builder().build(); + alarmCommonReduce = new AlarmCommonReduce( + alarmSilenceReduce, + alarmConvergeReduce, + dataQueue, + alertMonitorDao + ); + } + + @Test + void testReduceAndSendAlarmNoMonitorId() { + + when(alarmConvergeReduce.filterConverge(testAlert)).thenReturn(true); + when(alarmSilenceReduce.filterSilence(testAlert)).thenReturn(true); + + alarmCommonReduce.reduceAndSendAlarm(testAlert); + + verify(dataQueue).sendAlertsData(testAlert); + verify(alertMonitorDao, never()).findMonitorIdBindTags(anyLong()); + } + + @Test + void testReduceAndSendAlarmWithMonitorId() { + + Map tags = new HashMap<>(); + tags.put(CommonConstants.TAG_MONITOR_ID, "123"); + testAlert.setTags(tags); + + doReturn(Collections.singletonList( + Tag.builder() + .name("newTag") + .tagValue("tagValue") + .build()) + ).when(alertMonitorDao).findMonitorIdBindTags(123L); + when(alarmConvergeReduce.filterConverge(testAlert)).thenReturn(true); + when(alarmSilenceReduce.filterSilence(testAlert)).thenReturn(true); + + alarmCommonReduce.reduceAndSendAlarm(testAlert); + + assertTrue(testAlert.getTags().containsKey("newTag")); + assertEquals("tagValue", testAlert.getTags().get("newTag")); + verify(dataQueue).sendAlertsData(testAlert); + } + + @Test + void testReduceAndSendAlarmConvergeFilterFail() { + + when(alarmConvergeReduce.filterConverge(testAlert)).thenReturn(false); + + alarmCommonReduce.reduceAndSendAlarm(testAlert); + + verify(dataQueue, never()).sendAlertsData(testAlert); + verify(alarmSilenceReduce, never()).filterSilence(any(Alert.class)); + } + + @Test + void testReduceAndSendAlarmSilenceFilterFail() { + + when(alarmConvergeReduce.filterConverge(testAlert)).thenReturn(true); + when(alarmSilenceReduce.filterSilence(testAlert)).thenReturn(false); + + alarmCommonReduce.reduceAndSendAlarm(testAlert); + + verify(dataQueue, never()).sendAlertsData(testAlert); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduceTest.java new file mode 100644 index 00000000000..b304e6035b7 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmConvergeReduceTest.java @@ -0,0 +1,112 @@ +/* + * 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.hertzbeat.alert.reduce; + +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mockStatic; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Collections; +import java.util.HashMap; +import org.apache.hertzbeat.alert.dao.AlertConvergeDao; +import org.apache.hertzbeat.common.cache.CacheFactory; +import org.apache.hertzbeat.common.cache.CommonCacheService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.MockedStatic; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link AlarmConvergeReduce} + */ + +@ExtendWith(MockitoExtension.class) +class AlarmConvergeReduceTest { + + @Mock + private AlertConvergeDao alertConvergeDao; + + @Mock + private CommonCacheService convergeCache; + + private AlarmConvergeReduce alarmConvergeReduce; + + private Alert testAlert; + + private MockedStatic cacheFactoryMockedStatic; + + @BeforeEach + void setUp() { + + testAlert = Alert.builder() + .tags(new HashMap<>()) + .status(CommonConstants.ALERT_STATUS_CODE_SOLVED) + .build(); + + cacheFactoryMockedStatic = mockStatic(CacheFactory.class); + cacheFactoryMockedStatic.when(CacheFactory::getAlertConvergeCache).thenReturn(convergeCache); + + alarmConvergeReduce = new AlarmConvergeReduce(alertConvergeDao); + } + + @AfterEach + void tearDown() { + + if (cacheFactoryMockedStatic != null) { + cacheFactoryMockedStatic.close(); + } + } + + @Test + void testFilterConverge_RestoredAlert() { + + testAlert.setStatus(CommonConstants.ALERT_STATUS_CODE_RESTORED); + boolean result = alarmConvergeReduce.filterConverge(testAlert); + + assertTrue(result); + } + + @Test + void testFilterConverge_IgnoreTag() { + + testAlert.getTags().put(CommonConstants.IGNORE, "true"); + boolean result = alarmConvergeReduce.filterConverge(testAlert); + + assertTrue(result); + } + + @Test + void testFilterConvergeNoConverge() { + + when(convergeCache.get(CommonConstants.CACHE_ALERT_CONVERGE)).thenReturn(null); + when(alertConvergeDao.findAll()).thenReturn(Collections.emptyList()); + + boolean result = alarmConvergeReduce.filterConverge(testAlert); + + assertTrue(result); + verify(convergeCache).get(CommonConstants.CACHE_ALERT_CONVERGE); + verify(alertConvergeDao).findAll(); + verify(convergeCache).put(CommonConstants.CACHE_ALERT_CONVERGE, Collections.emptyList()); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduceTest.java new file mode 100644 index 00000000000..079fb49ffde --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/reduce/AlarmSilenceReduceTest.java @@ -0,0 +1,186 @@ +/* + * 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.hertzbeat.alert.reduce; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mockStatic; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.time.LocalDateTime; +import java.time.ZoneId; +import java.util.Collections; +import java.util.HashMap; +import org.apache.hertzbeat.alert.dao.AlertSilenceDao; +import org.apache.hertzbeat.common.cache.CacheFactory; +import org.apache.hertzbeat.common.cache.CommonCacheService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.alerter.AlertSilence; +import org.apache.hertzbeat.common.entity.manager.TagItem; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockedStatic; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link AlarmSilenceReduce} + */ + +class AlarmSilenceReduceTest { + + @Mock + private AlertSilenceDao alertSilenceDao; + + @Mock + private CommonCacheService silenceCache; + + private AlarmSilenceReduce alarmSilenceReduce; + + private MockedStatic cacheFactoryMockedStatic; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + cacheFactoryMockedStatic = mockStatic(CacheFactory.class); + cacheFactoryMockedStatic.when(CacheFactory::getAlertSilenceCache).thenReturn(silenceCache); + + // inject dao object. + alarmSilenceReduce = new AlarmSilenceReduce(alertSilenceDao); + } + + @Test + void testFilterSilenceNull() { + + // when cache get result is null, exec db logic. + when(silenceCache.get(CommonConstants.CACHE_ALERT_SILENCE)).thenReturn(null); + doReturn(Collections.emptyList()).when(alertSilenceDao).findAll(); + + Alert alert = Alert.builder() + .tags(new HashMap<>()) + .priority((byte) 1) + .build(); + + boolean result = alarmSilenceReduce.filterSilence(alert); + + assertTrue(result); + verify(alertSilenceDao, times(1)).findAll(); + verify(silenceCache, times(1)).put(eq(CommonConstants.CACHE_ALERT_SILENCE), any()); + } + + @Test + void testFilterSilenceOnce() { + + AlertSilence alertSilence = AlertSilence.builder() + .enable(Boolean.TRUE) + .matchAll(Boolean.TRUE) + .type((byte) 0) + .periodEnd(LocalDateTime.now().atZone(ZoneId.systemDefault()).plusHours(1)) + .periodStart(LocalDateTime.now().atZone(ZoneId.systemDefault()).minusHours(1)) + .times(0) + .build(); + + when(silenceCache.get(CommonConstants.CACHE_ALERT_SILENCE)).thenReturn(Collections.singletonList(alertSilence)); + doReturn(alertSilence).when(alertSilenceDao).save(alertSilence); + + Alert alert = Alert.builder() + .tags(new HashMap<>()) + .priority((byte) 1) + .build(); + + boolean result = alarmSilenceReduce.filterSilence(alert); + + assertFalse(result); + verify(alertSilenceDao, times(1)).save(alertSilence); + assertEquals(1, alertSilence.getTimes()); + } + + @Test + void testFilterSilenceCyc() { + + AlertSilence alertSilence = AlertSilence.builder() + .enable(Boolean.TRUE) + .matchAll(Boolean.TRUE) + .type((byte) 1) // cyc time + .periodEnd(LocalDateTime.now().atZone(ZoneId.systemDefault()).plusHours(1)) + .periodStart(LocalDateTime.now().atZone(ZoneId.systemDefault()).minusHours(1)) + .times(0) + .days(Collections.singletonList((byte) LocalDateTime.now().getDayOfWeek().getValue())) + .build(); + + when(silenceCache.get(CommonConstants.CACHE_ALERT_SILENCE)).thenReturn(Collections.singletonList(alertSilence)); + doReturn(alertSilence).when(alertSilenceDao).save(alertSilence); + + Alert alert = Alert.builder() + .tags(new HashMap<>()) + .priority((byte) 1) + .build(); + + boolean result = alarmSilenceReduce.filterSilence(alert); + + assertFalse(result); + verify(alertSilenceDao, times(1)).save(alertSilence); + assertEquals(1, alertSilence.getTimes()); + } + + @Test + void testFilterSilenceNoMatch() { + + AlertSilence alertSilence = AlertSilence.builder() + .enable(Boolean.TRUE) + .matchAll(Boolean.TRUE) + .type((byte) 0) + .tags(Collections.singletonList(new TagItem("non-matching-tag", "value"))) + .periodEnd(LocalDateTime.now().atZone(ZoneId.systemDefault()).minusHours(1)) + .periodStart(LocalDateTime.now().atZone(ZoneId.systemDefault()).plusHours(1)) + .times(0) + .build(); + + when(silenceCache.get(CommonConstants.CACHE_ALERT_SILENCE)).thenReturn(Collections.singletonList(alertSilence)); + doReturn(alertSilence).when(alertSilenceDao).save(alertSilence); + + Alert alert = Alert.builder() + .tags(new HashMap<>()) + .priority((byte) 1) + .build(); + + boolean result = alarmSilenceReduce.filterSilence(alert); + + assertTrue(result); + verify(alertSilenceDao, never()).save(any()); + } + + @AfterEach + public void tearDown() { + + if (cacheFactoryMockedStatic != null) { + cacheFactoryMockedStatic.close(); + } + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertConvergeServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertConvergeServiceTest.java new file mode 100644 index 00000000000..712f618eb07 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertConvergeServiceTest.java @@ -0,0 +1,112 @@ +/* + * 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.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Collections; +import java.util.Optional; +import java.util.Set; +import org.apache.hertzbeat.alert.dao.AlertConvergeDao; +import org.apache.hertzbeat.alert.service.impl.AlertConvergeServiceImpl; +import org.apache.hertzbeat.common.entity.alerter.AlertConverge; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageImpl; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Pageable; +import org.springframework.data.jpa.domain.Specification; + +/** + * test case for {@link org.apache.hertzbeat.alert.service.impl.AlertConvergeServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class AlertConvergeServiceTest { + + @Mock + private AlertConvergeDao alertConvergeDao; + + @InjectMocks + private AlertConvergeServiceImpl alertConvergeService; + + @Test + public void testAddAlertConverge() { + + AlertConverge alertConverge = new AlertConverge(); + alertConvergeService.addAlertConverge(alertConverge); + + verify(alertConvergeDao, times(1)).save(alertConverge); + } + + @Test + public void testModifyAlertConverge() { + + AlertConverge alertConverge = new AlertConverge(); + alertConvergeService.modifyAlertConverge(alertConverge); + + verify(alertConvergeDao, times(1)).save(alertConverge); + } + + @Test + public void testGetAlertConverge() { + + long convergeId = 1L; + AlertConverge alertConverge = new AlertConverge(); + when(alertConvergeDao.findById(convergeId)).thenReturn(Optional.of(alertConverge)); + AlertConverge result = alertConvergeService.getAlertConverge(convergeId); + + verify(alertConvergeDao, times(1)).findById(convergeId); + assertEquals(alertConverge, result); + } + + @Test + public void testDeleteAlertConverges() { + + Set convergeIds = Set.of(1L, 2L, 3L); + alertConvergeService.deleteAlertConverges(convergeIds); + + verify(alertConvergeDao, times(1)).deleteAlertConvergesByIdIn(convergeIds); + } + + @Test + public void testGetAlertConverges() { + + Page page = new PageImpl<>(Collections.emptyList()); + when(alertConvergeDao.findAll( + any(Specification.class), + any(Pageable.class)) + ).thenReturn(page); + + Page result = alertConvergeService.getAlertConverges(null, null, "id", "desc", 1, 10); + + verify(alertConvergeDao, times(1)).findAll( + any(Specification.class), + any(PageRequest.class) + ); + assertEquals(page, result); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java new file mode 100644 index 00000000000..deb9090b705 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineExcelImExportServiceTest.java @@ -0,0 +1,167 @@ +/* + * 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.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.ArrayList; +import java.util.List; +import org.apache.hertzbeat.alert.dto.AlertDefineDTO; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; +import org.apache.hertzbeat.alert.service.impl.AlertDefineExcelImExportServiceImpl; +import org.apache.hertzbeat.common.entity.manager.TagItem; +import org.apache.poi.ss.usermodel.Cell; +import org.apache.poi.ss.usermodel.Row; +import org.apache.poi.ss.usermodel.Sheet; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.poi.ss.usermodel.WorkbookFactory; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link AlertDefineExcelImExportServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +public class AlertDefineExcelImExportServiceTest { + + @InjectMocks + private AlertDefineExcelImExportServiceImpl alertDefineExcelImExportService; + + private Workbook workbook; + private Sheet sheet; + + @BeforeEach + public void setUp() throws IOException { + + Workbook initialWorkbook = WorkbookFactory.create(true); + Sheet initialSheet = initialWorkbook.createSheet(); + Row headerRow = initialSheet.createRow(0); + String[] headers = {"app", "metric", "field", "preset", "expr", "priority", "times", "tags", "enable", "recoverNotice", "template"}; + for (int i = 0; i < headers.length; i++) { + Cell cell = headerRow.createCell(i); + cell.setCellValue(headers[i]); + } + + Row row = initialSheet.createRow(1); + row.createCell(0).setCellValue("app1"); + row.createCell(1).setCellValue("metric1"); + row.createCell(2).setCellValue("field1"); + row.createCell(3).setCellValue(true); + row.createCell(4).setCellValue("expr1"); + row.createCell(5).setCellValue(1); + row.createCell(6).setCellValue(10); + row.createCell(7).setCellValue("[{\"name\":\"tag1\",\"value\":\"value1\"}]"); + row.createCell(8).setCellValue(true); + row.createCell(9).setCellValue(true); + row.createCell(10).setCellValue("template1"); + + ByteArrayInputStream inputStream = new ByteArrayInputStream(toByteArray(initialWorkbook)); + + workbook = WorkbookFactory.create(inputStream); + sheet = workbook.getSheetAt(0); + } + + @Test + public void testParseImport() throws IOException { + + try (ByteArrayInputStream inputStream = new ByteArrayInputStream(toByteArray(workbook))) { + List result = alertDefineExcelImExportService.parseImport(inputStream); + + assertEquals(1, result.size()); + AlertDefineDTO alertDefineDTO = result.get(0).getAlertDefine(); + assertEquals("app1", alertDefineDTO.getApp()); + assertEquals("metric1", alertDefineDTO.getMetric()); + assertEquals("field1", alertDefineDTO.getField()); + assertTrue(alertDefineDTO.getPreset()); + assertEquals("expr1", alertDefineDTO.getExpr()); + assertEquals(10, alertDefineDTO.getTimes()); + assertEquals(1, alertDefineDTO.getTags().size()); + assertEquals("tag1", alertDefineDTO.getTags().get(0).getName()); + assertEquals("value1", alertDefineDTO.getTags().get(0).getValue()); + assertTrue(alertDefineDTO.getEnable()); + assertTrue(alertDefineDTO.getRecoverNotice()); + assertEquals("template1", alertDefineDTO.getTemplate()); + } + } + + @Test + public void testWriteOs() throws IOException { + + List exportAlertDefineList = new ArrayList<>(); + ExportAlertDefineDTO exportAlertDefineDTO = new ExportAlertDefineDTO(); + AlertDefineDTO alertDefineDTO = new AlertDefineDTO(); + alertDefineDTO.setApp("app1"); + alertDefineDTO.setMetric("metric1"); + alertDefineDTO.setField("field1"); + alertDefineDTO.setPreset(true); + alertDefineDTO.setExpr("expr1"); + alertDefineDTO.setPriority((byte) 1); + alertDefineDTO.setTimes(10); + List tags = new ArrayList<>(); + TagItem tagItem = new TagItem(); + tagItem.setName("tag1"); + tagItem.setValue("value1"); + tags.add(tagItem); + alertDefineDTO.setTags(tags); + alertDefineDTO.setEnable(true); + alertDefineDTO.setRecoverNotice(true); + alertDefineDTO.setTemplate("template1"); + exportAlertDefineDTO.setAlertDefine(alertDefineDTO); + exportAlertDefineList.add(exportAlertDefineDTO); + + try (ByteArrayOutputStream outputStream = new ByteArrayOutputStream()) { + alertDefineExcelImExportService.writeOs(exportAlertDefineList, outputStream); + + try (Workbook resultWorkbook = WorkbookFactory.create(new ByteArrayInputStream(outputStream.toByteArray()))) { + Sheet resultSheet = resultWorkbook.getSheetAt(0); + Row headerRow = resultSheet.getRow(0); + assertEquals("app", headerRow.getCell(0).getStringCellValue()); + assertEquals("metric", headerRow.getCell(1).getStringCellValue()); + + Row dataRow = resultSheet.getRow(1); + assertEquals("app1", dataRow.getCell(0).getStringCellValue()); + assertEquals("metric1", dataRow.getCell(1).getStringCellValue()); + assertEquals("field1", dataRow.getCell(2).getStringCellValue()); + assertTrue(dataRow.getCell(3).getBooleanCellValue()); + assertEquals("expr1", dataRow.getCell(4).getStringCellValue()); + assertEquals(1, (int) dataRow.getCell(5).getNumericCellValue()); + assertEquals(10, (int) dataRow.getCell(6).getNumericCellValue()); + assertEquals("[{\"name\":\"tag1\",\"value\":\"value1\"}]", dataRow.getCell(7).getStringCellValue()); + assertTrue(dataRow.getCell(8).getBooleanCellValue()); + assertTrue(dataRow.getCell(9).getBooleanCellValue()); + assertEquals("template1", dataRow.getCell(10).getStringCellValue()); + } + } + } + + private byte[] toByteArray(Workbook workbook) throws IOException { + + try (ByteArrayOutputStream bos = new ByteArrayOutputStream()) { + workbook.write(bos); + return bos.toByteArray(); + } + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineJsonImExportServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineJsonImExportServiceTest.java new file mode 100644 index 00000000000..925c0e70c49 --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineJsonImExportServiceTest.java @@ -0,0 +1,148 @@ +/* + * 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.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.util.List; +import org.apache.hertzbeat.alert.dto.AlertDefineDTO; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; +import org.apache.hertzbeat.alert.service.impl.AlertDefineJsonImExportServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link AlertDefineJsonImExportServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class AlertDefineJsonImExportServiceTest { + + @Mock + private ObjectMapper objectMapper; + + @InjectMocks + private AlertDefineJsonImExportServiceImpl service; + + @SuppressWarnings("checkstyle:OperatorWrap") + private static final String JSON_DATA = "[{\"alertDefine\":{\"app\":\"App1\",\"metric\":\"Metric1\"," + + "\"field\":\"Field1\",\"preset\":true,\"expr\":\"Expr1\",\"priority\":1,\"times\":1,\"tags\":[]," + + "\"enable\":true,\"recoverNotice\":true,\"template\":\"Template1\"}}]"; + + private InputStream inputStream; + private List alertDefineList; + + @BeforeEach + public void setup() { + + inputStream = new ByteArrayInputStream(JSON_DATA.getBytes()); + + AlertDefineDTO alertDefine = new AlertDefineDTO(); + alertDefine.setApp("App1"); + alertDefine.setMetric("Metric1"); + alertDefine.setField("Field1"); + alertDefine.setPreset(true); + alertDefine.setExpr("Expr1"); + alertDefine.setPriority((byte) 1); + alertDefine.setTimes(1); + alertDefine.setTags(List.of()); + alertDefine.setEnable(true); + alertDefine.setRecoverNotice(true); + alertDefine.setTemplate("Template1"); + + ExportAlertDefineDTO exportAlertDefine = new ExportAlertDefineDTO(); + exportAlertDefine.setAlertDefine(alertDefine); + + alertDefineList = List.of(exportAlertDefine); + } + + @Test + void testParseImport() throws IOException { + + when(objectMapper.readValue( + any(InputStream.class), + any(TypeReference.class)) + ).thenReturn(alertDefineList); + + List result = service.parseImport(inputStream); + + assertNotNull(result); + assertEquals(1, result.size()); + assertEquals(alertDefineList, result); + verify(objectMapper, times(1)).readValue(any(InputStream.class), any(TypeReference.class)); + } + + @Test + void testParseImportFailed() throws IOException { + + when(objectMapper.readValue( + any(InputStream.class), + any(TypeReference.class)) + ).thenThrow(new IOException("Test Exception")); + + RuntimeException exception = assertThrows(RuntimeException.class, () -> service.parseImport(inputStream)); + + assertEquals("import alertDefine failed", exception.getMessage()); + verify(objectMapper, times(1)).readValue(any(InputStream.class), any(TypeReference.class)); + } + + @Test + void testWriteOs() throws IOException { + + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + + service.writeOs(alertDefineList, outputStream); + + verify(objectMapper, times(1)).writeValue(any(OutputStream.class), eq(alertDefineList)); + } + + @Test + void testWriteOsFailed() throws IOException { + + doThrow(new IOException("Test Exception")).when(objectMapper).writeValue(any(OutputStream.class), any()); + + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + + RuntimeException exception = assertThrows( + RuntimeException.class, + () -> service.writeOs(alertDefineList, outputStream) + ); + + assertEquals("export alertDefine failed", exception.getMessage()); + verify(objectMapper, times(1)).writeValue(any(OutputStream.class), eq(alertDefineList)); + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java index b3b317db728..549f980327c 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineServiceTest.java @@ -20,10 +20,13 @@ import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.Mockito.any; import static org.mockito.Mockito.anySet; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.mock; import static org.mockito.Mockito.reset; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; import java.util.ArrayList; import java.util.Collections; @@ -176,9 +179,9 @@ void testGetMonitorBindAlertDefines() { @Test void getAlertDefines() { - Specification specification = mock(Specification.class); - when(alertDefineDao.findAll(specification, PageRequest.of(1, 1))).thenReturn(Page.empty()); - assertNotNull(alertDefineService.getAlertDefines(specification, PageRequest.of(1, 1))); + when(alertDefineDao.findAll(any(Specification.class), any(PageRequest.class))).thenReturn(Page.empty()); + assertNotNull(alertDefineService.getAlertDefines(null, null, null, "id", "desc", 1, 10)); + verify(alertDefineDao, times(1)).findAll(any(Specification.class), any(PageRequest.class)); } @Test diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineYamlImExportServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineYamlImExportServiceTest.java new file mode 100644 index 00000000000..fe030c79c0b --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertDefineYamlImExportServiceTest.java @@ -0,0 +1,164 @@ +/* + * 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.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.junit.jupiter.api.Assertions.fail; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyInt; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.util.List; +import org.apache.hertzbeat.alert.dto.AlertDefineDTO; +import org.apache.hertzbeat.alert.dto.ExportAlertDefineDTO; +import org.apache.hertzbeat.alert.service.impl.AlertDefineYamlImExportServiceImpl; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.junit.jupiter.MockitoExtension; +import org.yaml.snakeyaml.Yaml; + +/** + * test case for {@link AlertDefineYamlImExportServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class AlertDefineYamlImExportServiceTest { + + @InjectMocks + private AlertDefineYamlImExportServiceImpl service; + + private static final String YAML_DATA = + """ + - alertDefine: + app: App1 + metric: Metric1 + field: Field1 + preset: true + expr: Expr1 + priority: 1 + times: 1 + tags: [] + enable: true + recoverNotice: true + template: Template1 + """; + + private InputStream inputStream; + private List alertDefineList; + + @BeforeEach + public void setup() { + + inputStream = new ByteArrayInputStream(YAML_DATA.getBytes(StandardCharsets.UTF_8)); + + AlertDefineDTO alertDefine = new AlertDefineDTO(); + alertDefine.setApp("App1"); + alertDefine.setMetric("Metric1"); + alertDefine.setField("Field1"); + alertDefine.setPreset(true); + alertDefine.setExpr("Expr1"); + alertDefine.setPriority((byte) 1); + alertDefine.setTimes(1); + alertDefine.setTags(List.of()); + alertDefine.setEnable(true); + alertDefine.setRecoverNotice(true); + alertDefine.setTemplate("Template1"); + + ExportAlertDefineDTO exportAlertDefine = new ExportAlertDefineDTO(); + exportAlertDefine.setAlertDefine(alertDefine); + + alertDefineList = List.of(exportAlertDefine); + } + + @Test + void testParseImport() { + + List result = service.parseImport(inputStream); + + assertNotNull(result); + assertEquals(1, result.size()); + + InputStream inputStream = new ByteArrayInputStream(JsonUtil.toJson(alertDefineList) + .getBytes(StandardCharsets.UTF_8)); + Yaml yaml = new Yaml(); + + assertEquals(yaml.load(inputStream), result); + } + + @Test + void testParseImportFailed() { + + InputStream faultyInputStream = mock(InputStream.class); + try { + when(faultyInputStream.read( + any(byte[].class), + anyInt(), anyInt()) + ).thenThrow(new IOException("Test Exception")); + + RuntimeException exception = assertThrows( + RuntimeException.class, + () -> service.parseImport(faultyInputStream) + ); + assertEquals("java.io.IOException: Test Exception", exception.getMessage()); + } catch (IOException e) { + + fail("Mocking IOException failed"); + } + } + + @Test + void testWriteOs() { + + ByteArrayOutputStream outputStream = new ByteArrayOutputStream(); + service.writeOs(alertDefineList, outputStream); + String yamlOutput = outputStream.toString(StandardCharsets.UTF_8); + + assertTrue(yamlOutput.contains("app: App1")); + assertTrue(yamlOutput.contains("metric: Metric1")); + } + + @Test + void testWriteOsFailed() { + + OutputStream faultyOutputStream = mock(OutputStream.class); + + try { + doThrow(new IOException("Test Exception")).when(faultyOutputStream).write(any(byte[].class), anyInt(), anyInt()); + + RuntimeException exception = assertThrows(RuntimeException.class, () -> service.writeOs(alertDefineList, faultyOutputStream)); + assertEquals("java.io.IOException: Test Exception", exception.getMessage()); + } catch (IOException e) { + + fail("Mocking IOException failed"); + } + } + +} diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertServiceTest.java index 9a7606362b0..22987465920 100644 --- a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertServiceTest.java +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertServiceTest.java @@ -17,13 +17,46 @@ package org.apache.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.reset; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import org.apache.hertzbeat.alert.dao.AlertDao; +import org.apache.hertzbeat.alert.dto.AlertPriorityNum; +import org.apache.hertzbeat.alert.dto.TenCloudAlertReport; +import org.apache.hertzbeat.alert.reduce.AlarmCommonReduce; +import org.apache.hertzbeat.alert.service.impl.AlertServiceImpl; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.dto.AlertReport; +import org.apache.hertzbeat.common.util.JsonUtil; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; /** * Test case for {@link AlertService} */ +@ExtendWith(MockitoExtension.class) class AlertServiceTest { + @Mock + private AlertDao alertDao; + + @Mock + private AlarmCommonReduce alarmCommonReduce; + + @InjectMocks + private AlertServiceImpl alertService; @BeforeEach void setUp() { @@ -31,29 +64,76 @@ void setUp() { @Test void addAlert() { + Alert alert = new Alert(); + assertDoesNotThrow(() -> alertService.addAlert(alert)); + verify(alertDao, times(1)).save(alert); } @Test void getAlerts() { + // todo } @Test void deleteAlerts() { + HashSet ids = new HashSet<>(); + ids.add(1L); + ids.add(2L); + assertDoesNotThrow(() -> alertService.deleteAlerts(ids)); + verify(alertDao, times(1)).deleteAlertsByIdIn(ids); } @Test void clearAlerts() { + assertDoesNotThrow(() -> alertService.clearAlerts()); + verify(alertDao, times(1)).deleteAll(); } @Test void editAlertStatus() { + Byte status = 0; + List ids = List.of(1L, 2L, 3L); + assertDoesNotThrow(() -> alertService.editAlertStatus(status, ids)); + verify(alertDao, times(1)).updateAlertsStatus(status, ids); } @Test void getAlertsSummary() { + List priorityNums = new ArrayList<>(); + priorityNums.add(new AlertPriorityNum((byte) 1, 100)); + when(alertDao.findAlertPriorityNum()).thenReturn(priorityNums); + + assertDoesNotThrow(() -> alertService.getAlertsSummary()); + verify(alertDao, times(1)).findAlertPriorityNum(); + verify(alertDao, times(1)).count(); + + assertNotNull(alertService.getAlertsSummary()); } @Test void addNewAlertReport() { + AlertReport alertReport = AlertReport.builder() + .annotations(new HashMap<>()) + .priority(0) + .alertTime(System.currentTimeMillis()) + .build(); + assertDoesNotThrow(() -> alertService.addNewAlertReport(alertReport)); + verify(alarmCommonReduce, times(1)).reduceAndSendAlarm(any(Alert.class)); + } + + @Test + void addNewAlertReportFromCloud() { + TenCloudAlertReport alertReport = TenCloudAlertReport.builder() + .firstOccurTime("2024-08-01 11:30:00") + .durationTime(100) + .build(); + String reportJson = JsonUtil.toJson(alertReport); + assertDoesNotThrow(() -> alertService.addNewAlertReportFromCloud("tencloud", reportJson)); + verify(alarmCommonReduce, times(1)).reduceAndSendAlarm(any(Alert.class)); + + alertService.addNewAlertReportFromCloud("alicloud", reportJson); + reset(alarmCommonReduce); + verify(alarmCommonReduce, times(0)).reduceAndSendAlarm(any(Alert.class)); + } } diff --git a/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertSilenceServiceTest.java b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertSilenceServiceTest.java new file mode 100644 index 00000000000..24b059ac6ab --- /dev/null +++ b/alerter/src/test/java/org/apache/hertzbeat/alert/service/AlertSilenceServiceTest.java @@ -0,0 +1,127 @@ +/* + * 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.hertzbeat.alert.service; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Optional; +import java.util.Set; +import org.apache.hertzbeat.alert.dao.AlertSilenceDao; +import org.apache.hertzbeat.alert.service.impl.AlertSilenceServiceImpl; +import org.apache.hertzbeat.common.entity.alerter.AlertSilence; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.jpa.domain.Specification; + +/** + * test case for {@link AlertSilenceServiceImpl} + */ + +class AlertSilenceServiceTest { + + @Mock + private AlertSilenceDao alertSilenceDao; + + @InjectMocks + private AlertSilenceServiceImpl alertSilenceService; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + alertSilenceDao.save(AlertSilence + .builder() + .id(1L) + .type((byte) 1) + .build() + ); + + assertNotNull(alertSilenceDao.findAll()); + } + + @Test + void testValidate() { + + AlertSilence alertSilence = new AlertSilence(); + alertSilence.setType((byte) 1); + + alertSilenceService.validate(alertSilence, false); + + assertNotNull(alertSilence.getDays()); + assertEquals(7, alertSilence.getDays().size()); + } + + @Test + void testAddAlertSilence() { + + AlertSilence alertSilence = new AlertSilence(); + when(alertSilenceDao.save(any(AlertSilence.class))).thenReturn(alertSilence); + + assertDoesNotThrow(() -> alertSilenceService.addAlertSilence(alertSilence)); + verify(alertSilenceDao, times(1)).save(alertSilence); + } + + @Test + void testModifyAlertSilence() { + AlertSilence alertSilence = new AlertSilence(); + when(alertSilenceDao.save(any(AlertSilence.class))).thenReturn(alertSilence); + + assertDoesNotThrow(() -> alertSilenceService.modifyAlertSilence(alertSilence)); + verify(alertSilenceDao, times(1)).save(alertSilence); + } + + @Test + void testGetAlertSilence() { + AlertSilence alertSilence = new AlertSilence(); + when(alertSilenceDao.findById(anyLong())).thenReturn(Optional.of(alertSilence)); + + AlertSilence result = alertSilenceService.getAlertSilence(1L); + assertNotNull(result); + verify(alertSilenceDao, times(1)).findById(1L); + } + + @Test + void testGetAlertSilences() { + when(alertSilenceDao.findAll(any(Specification.class), any(PageRequest.class))).thenReturn(Page.empty()); + assertDoesNotThrow(() -> alertSilenceService.getAlertSilences(null, null, "id", "desc", 1, 10)); + verify(alertSilenceDao, times(1)).findAll(any(Specification.class), any(PageRequest.class)); + + assertNotNull(alertSilenceService.getAlertSilences(null, null, "id", "desc", 1, 10)); + } + + @Test + void testDeleteAlertSilences() { + + alertSilenceDao.deleteAlertSilencesByIdIn(Set.of(1L)); + + verify(alertSilenceDao, times(1)).deleteAlertSilencesByIdIn(Set.of(1L)); + } + +} diff --git a/collector/pom.xml b/collector/pom.xml index 0246bf6a81f..fea17e3844d 100644 --- a/collector/pom.xml +++ b/collector/pom.xml @@ -30,8 +30,6 @@ 17 ${java.version} ${java.version} - 3.2.0 - 3.3.0 @@ -89,7 +87,7 @@ com.googlecode.concurrentlinkedhashmap concurrentlinkedhashmap-lru - 1.4.2 + ${concurrentlinkedhashmap-lru.version} com.google.guava @@ -126,12 +124,12 @@ org.apache.sshd sshd-core - 2.8.0 + ${sshd-core.version} net.i2p.crypto eddsa - 0.3.0 + ${eddsa.version} @@ -163,40 +161,40 @@ org.snmp4j snmp4j - 3.6.7 + ${snmp4j.version} org.apache.rocketmq rocketmq-tools - 4.9.4 + ${rocketmq-tools.version} dnsjava dnsjava - 3.5.2 + ${dnsjava.version} com.ecwid.consul consul-api - 1.4.5 + ${consul-api.version} com.alibaba.nacos nacos-client - 2.2.1 + ${nacos-client.version} com.vesoft client - 3.6.0 + ${vesoft-client.version} javax.servlet @@ -208,6 +206,12 @@ + + + com.hivemq + hivemq-mqtt-client + 1.3.3 + diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/AbstractCollect.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/AbstractCollect.java index 82caa001248..455b584d86b 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/AbstractCollect.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/AbstractCollect.java @@ -17,7 +17,6 @@ package org.apache.hertzbeat.collector.collect; - import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.message.CollectRep; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/cache/ConnectionCommonCache.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/cache/ConnectionCommonCache.java index dd2a97010de..d36941d9fee 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/cache/ConnectionCommonCache.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/cache/ConnectionCommonCache.java @@ -21,11 +21,9 @@ import com.googlecode.concurrentlinkedhashmap.ConcurrentLinkedHashMap; import java.util.Map; import java.util.Optional; -import java.util.concurrent.ArrayBlockingQueue; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ScheduledThreadPoolExecutor; import java.util.concurrent.ThreadFactory; -import java.util.concurrent.ThreadPoolExecutor; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; @@ -34,16 +32,11 @@ */ @Slf4j public class ConnectionCommonCache> { - - /** - * default cache time 200s - */ - private static final long DEFAULT_CACHE_TIMEOUT = 200 * 1000L; - + /** - * default max cache num + * default cache time 600s */ - private static final int DEFAULT_MAX_CAPACITY = 10000; + private static final long DEFAULT_CACHE_TIMEOUT = 600 * 1000L; /** * cacheTime length @@ -60,19 +53,14 @@ public class ConnectionCommonCache> { */ private ConcurrentLinkedHashMap cacheMap; - /** - * the executor who clean cache when timeout - */ - private ThreadPoolExecutor timeoutCleanerExecutor; - public ConnectionCommonCache() { - init(); + initCache(); } - private void init() { + private void initCache() { cacheMap = new ConcurrentLinkedHashMap .Builder() - .maximumWeightedCapacity(DEFAULT_MAX_CAPACITY) + .maximumWeightedCapacity(Integer.MAX_VALUE) .listener((key, value) -> { timeoutMap.remove(key); try { @@ -82,70 +70,37 @@ private void init() { } log.info("connection common cache discard key: {}, value: {}.", key, value); }).build(); - timeoutMap = new ConcurrentHashMap<>(DEFAULT_MAX_CAPACITY >> 6); - // last-first-coverage algorithm, run the first and last thread, discard mid - timeoutCleanerExecutor = new ThreadPoolExecutor(1, 1, 1, TimeUnit.SECONDS, - new ArrayBlockingQueue<>(1), - r -> new Thread(r, "connection-cache-timeout-cleaner"), - new ThreadPoolExecutor.DiscardOldestPolicy()); + timeoutMap = new ConcurrentHashMap<>(16); // init monitor available detector cyc task ThreadFactory threadFactory = new ThreadFactoryBuilder() - .setNameFormat("connection-cache-ava-detector-%d") + .setNameFormat("connection-cache-timout-detector-%d") .setDaemon(true) .build(); ScheduledThreadPoolExecutor scheduledExecutor = new ScheduledThreadPoolExecutor(1, threadFactory); - scheduledExecutor.scheduleWithFixedDelay(this::detectCacheAvailable, 2, 20, TimeUnit.MINUTES); + scheduledExecutor.scheduleWithFixedDelay(this::cleanTimeoutOrUnHealthCache, 2, 100, TimeUnit.SECONDS); } /** - * detect all cache available, cleanup not ava connection + * clean and remove timeout cache */ - private void detectCacheAvailable() { + private void cleanTimeoutOrUnHealthCache() { try { cacheMap.forEach((key, value) -> { + // index 0 is startTime, 1 is timeDiff Long[] cacheTime = timeoutMap.get(key); long currentTime = System.currentTimeMillis(); if (cacheTime == null || cacheTime.length != CACHE_TIME_LENGTH || cacheTime[0] + cacheTime[1] < currentTime) { - cacheMap.remove(key); - timeoutMap.remove(key); - try { - value.close(); - } catch (Exception e) { - log.error("connection close error: {}.", e.getMessage(), e); - } - - } - }); - } catch (Exception e) { - log.error("connection common cache detect cache available error: {}.", e.getMessage(), e); - } - } - - /** - * clean timeout cache - */ - private void cleanTimeoutCache() { - try { - cacheMap.forEach((key, value) -> { - // index 0 is startTime, 1 is timeDiff - Long[] cacheTime = timeoutMap.get(key); - long currentTime = System.currentTimeMillis(); - if (cacheTime == null || cacheTime.length != CACHE_TIME_LENGTH) { - timeoutMap.put(key, new Long[]{currentTime, DEFAULT_CACHE_TIMEOUT}); - } else if (cacheTime[0] + cacheTime[1] < currentTime) { - // timeout, remove this object cache log.warn("[connection common cache] clean the timeout cache, key {}", key); timeoutMap.remove(key); cacheMap.remove(key); try { value.close(); } catch (Exception e) { - log.error("connection close error: {}.", e.getMessage(), e); + log.error("clean connection close error: {}.", e.getMessage(), e); } } }); - Thread.sleep(20 * 1000); } catch (Exception e) { log.error("[connection common cache] clean timeout cache error: {}.", e.getMessage(), e); } @@ -165,7 +120,6 @@ public void addCache(T key, C value, Long timeDiff) { } cacheMap.put(key, value); timeoutMap.put(key, new Long[]{System.currentTimeMillis(), timeDiff}); - timeoutCleanerExecutor.execute(this::cleanTimeoutCache); } /** diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshBlacklist.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshBlacklist.java new file mode 100644 index 00000000000..edbb08649a5 --- /dev/null +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshBlacklist.java @@ -0,0 +1,114 @@ +/* + * 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.hertzbeat.collector.collect.common.ssh; + +import java.util.Collections; +import java.util.HashSet; +import java.util.Set; + +/** + * Command blacklist + */ +public class CommonSshBlacklist { + + private static final Set BLACKLIST; + + static { + Set tempSet = new HashSet<>(); + initializeDefaultBlacklist(tempSet); + BLACKLIST = Collections.unmodifiableSet(tempSet); + } + + private CommonSshBlacklist() { + // Prevent instantiation + } + + private static void initializeDefaultBlacklist(Set blacklist) { + // Adding default dangerous commands to blacklist + blacklist.add("rm "); + blacklist.add("mv "); + blacklist.add("cp "); + blacklist.add("ln "); + blacklist.add("dd "); + blacklist.add("tar "); + blacklist.add("zip "); + blacklist.add("bzip2 "); + blacklist.add("bunzip2 "); + blacklist.add("xz "); + blacklist.add("unxz "); + blacklist.add("kill "); + blacklist.add("killall "); + blacklist.add("reboot"); + blacklist.add("shutdown"); + blacklist.add("poweroff"); + blacklist.add("init 0"); + blacklist.add("init 6"); + blacklist.add("telinit 0"); + blacklist.add("telinit 6"); + blacklist.add("systemctl halt"); + blacklist.add("systemctl suspend"); + blacklist.add("systemctl hibernate"); + blacklist.add("service reboot"); + blacklist.add("service shutdown"); + blacklist.add("crontab -e"); + blacklist.add("visudo"); + blacklist.add("useradd"); + blacklist.add("userdel"); + blacklist.add("usermod"); + blacklist.add("groupadd"); + blacklist.add("groupdel"); + blacklist.add("groupmod"); + blacklist.add("passwd"); + blacklist.add("su "); + blacklist.add("sudo "); + blacklist.add("mount "); + blacklist.add("parted"); + blacklist.add("mkpart"); + blacklist.add("partprobe"); + blacklist.add("iptables"); + blacklist.add("firewalld"); + blacklist.add("nft"); + blacklist.add("nc "); + blacklist.add("netcat"); + blacklist.add("ssh "); + blacklist.add("scp "); + blacklist.add("rsync"); + blacklist.add("ftp "); + blacklist.add("sftp "); + blacklist.add("telnet "); + blacklist.add("chmod "); + blacklist.add("chattr "); + blacklist.add("dd "); + blacklist.add("mknod"); + blacklist.add("losetup"); + blacklist.add("cryptsetup"); + } + + public static boolean isCommandBlacklisted(String command) { + if (command == null || command.trim().isEmpty()) { + throw new IllegalArgumentException("Command cannot be null or empty"); + } + String trimmedCommand = command.trim(); + return BLACKLIST.stream().anyMatch(trimmedCommand::contains); + } + + public static Set getBlacklist() { + return BLACKLIST; + } + +} diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshClient.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshClient.java index 639ca2480a8..882aa37605c 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshClient.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/common/ssh/CommonSshClient.java @@ -43,7 +43,7 @@ public class CommonSshClient { PropertyResolverUtils.updateProperty( SSH_CLIENT, CoreModuleProperties.HEARTBEAT_INTERVAL.getName(), 2000); PropertyResolverUtils.updateProperty( - SSH_CLIENT, CoreModuleProperties.HEARTBEAT_REPLY_WAIT.getName(), 300_000); + SSH_CLIENT, CoreModuleProperties.HEARTBEAT_NO_REPLY_MAX.getName(), 30); PropertyResolverUtils.updateProperty( SSH_CLIENT, CoreModuleProperties.SOCKET_KEEPALIVE.getName(), true); // set support all KeyExchange diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/database/JdbcCommonCollect.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/database/JdbcCommonCollect.java index 22943694cd8..b3f25518afb 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/database/JdbcCommonCollect.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/database/JdbcCommonCollect.java @@ -31,9 +31,9 @@ import org.apache.hertzbeat.collector.collect.common.cache.CacheIdentifier; import org.apache.hertzbeat.collector.collect.common.cache.ConnectionCommonCache; import org.apache.hertzbeat.collector.collect.common.cache.JdbcConnect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.JdbcProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/HttpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/HttpCollectImpl.java index 7c1db0a60f4..99dfe3f9b94 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/HttpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/HttpCollectImpl.java @@ -45,20 +45,23 @@ import org.apache.hertzbeat.collector.collect.AbstractCollect; import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; import org.apache.hertzbeat.collector.collect.http.promethus.AbstractPrometheusParse; -import org.apache.hertzbeat.collector.collect.http.promethus.PrometheusParseCreater; +import org.apache.hertzbeat.collector.collect.http.promethus.PrometheusParseCreator; import org.apache.hertzbeat.collector.collect.http.promethus.exporter.ExporterParser; import org.apache.hertzbeat.collector.collect.http.promethus.exporter.MetricFamily; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; import org.apache.hertzbeat.collector.util.JsonPathParser; import org.apache.hertzbeat.collector.util.TimeExpressionUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.HttpProtocol; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.util.CommonUtil; import org.apache.hertzbeat.common.util.IpDomainUtil; +import org.apache.http.Header; import org.apache.http.HttpHeaders; import org.apache.http.HttpHost; import org.apache.http.HttpStatus; @@ -80,6 +83,7 @@ import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; import org.springframework.http.HttpMethod; +import org.springframework.http.MediaType; import org.springframework.util.CollectionUtils; import org.springframework.util.StringUtils; import org.w3c.dom.Document; @@ -114,7 +118,7 @@ public void collect(CollectRep.MetricsData.Builder builder, httpProtocol.setUrl(StringUtils.hasText(url) ? RIGHT_DASH + url.trim() : RIGHT_DASH); } if (CollectionUtils.isEmpty(httpProtocol.getSuccessCodes())) { - httpProtocol.setSuccessCodes(List.of("200")); + httpProtocol.setSuccessCodes(List.of(HttpStatus.SC_OK + "")); } HttpContext httpContext = createHttpContext(metrics.getHttp()); @@ -125,7 +129,7 @@ public void collect(CollectRep.MetricsData.Builder builder, log.debug("http response status: {}", statusCode); if (!isSuccessInvoke) { builder.setCode(CollectRep.Code.FAIL); - builder.setMsg("StatusCode " + statusCode); + builder.setMsg(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); return; } // todo This code converts an InputStream directly to a String. For large data in Prometheus exporters, @@ -149,7 +153,7 @@ public void collect(CollectRep.MetricsData.Builder builder, case DispatchConstants.PARSE_XML_PATH -> parseResponseByXmlPath(resp, metrics.getAliasFields(), metrics.getHttp(), builder); case DispatchConstants.PARSE_WEBSITE -> - parseResponseByWebsite(resp, metrics.getAliasFields(), metrics.getHttp(), builder, responseTime); + parseResponseByWebsite(resp, metrics, metrics.getHttp(), builder, responseTime, response); case DispatchConstants.PARSE_SITE_MAP -> parseResponseBySiteMap(resp, metrics.getAliasFields(), builder); default -> @@ -197,22 +201,46 @@ public String supportProtocol() { return DispatchConstants.PROTOCOL_HTTP; } - private void parseResponseByWebsite(String resp, List aliasFields, HttpProtocol http, - CollectRep.MetricsData.Builder builder, Long responseTime) { + private void parseResponseByWebsite(String resp, Metrics metrics, HttpProtocol http, + CollectRep.MetricsData.Builder builder, Long responseTime, + CloseableHttpResponse response) { CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); int keywordNum = CollectUtil.countMatchKeyword(resp, http.getKeyword()); - for (String alias : aliasFields) { - if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(responseTime.toString()); - } else if (CollectorConstants.KEYWORD.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(Integer.toString(keywordNum)); - } else { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + for (String alias : metrics.getAliasFields()) { + if ("summary".equalsIgnoreCase(metrics.getName())) { + addColumnForSummary(responseTime, valueRowBuilder, keywordNum, alias); + } else if ("header".equalsIgnoreCase(metrics.getName())) { + addColumnFromHeader(valueRowBuilder, alias, response); } } builder.addValues(valueRowBuilder.build()); } + private void addColumnFromHeader(CollectRep.ValueRow.Builder valueRowBuilder, String alias, CloseableHttpResponse response) { + if (!StringUtils.hasText(alias)) { + valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + return; + } + + final Header firstHeader = response.getFirstHeader(alias); + if (Objects.isNull(firstHeader)) { + valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + return; + } + + valueRowBuilder.addColumns(firstHeader.getValue()); + } + + private void addColumnForSummary(Long responseTime, CollectRep.ValueRow.Builder valueRowBuilder, int keywordNum, String alias) { + if (NetworkConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + valueRowBuilder.addColumns(responseTime.toString()); + } else if (CollectorConstants.KEYWORD.equalsIgnoreCase(alias)) { + valueRowBuilder.addColumns(Integer.toString(keywordNum)); + } else { + valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + } + } + private void parseResponseBySiteMap(String resp, List aliasFields, CollectRep.MetricsData.Builder builder) { List siteUrls = new LinkedList<>(); @@ -279,14 +307,14 @@ private void parseResponseBySiteMap(String resp, List aliasFields, long responseTime = System.currentTimeMillis() - startTime; CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); for (String alias : aliasFields) { - if (CollectorConstants.URL.equalsIgnoreCase(alias)) { + if (NetworkConstants.URL.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(siteUrl); - } else if (CollectorConstants.STATUS_CODE.equalsIgnoreCase(alias)) { + } else if (NetworkConstants.STATUS_CODE.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(statusCode == null ? CommonConstants.NULL_VALUE : String.valueOf(statusCode)); - } else if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + } else if (NetworkConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(String.valueOf(responseTime)); - } else if (CollectorConstants.ERROR_MSG.equalsIgnoreCase(alias)) { + } else if (NetworkConstants.ERROR_MSG.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(errorMsg); } else { valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); @@ -326,12 +354,8 @@ private void parseResponseByJsonPath(String resp, List aliasFields, Http } else { valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); } - } else if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(responseTime.toString()); - } else if (CollectorConstants.KEYWORD.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(Integer.toString(keywordNum)); } else { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + addColumnForSummary(responseTime, valueRowBuilder, keywordNum, alias); } } } @@ -339,7 +363,7 @@ private void parseResponseByJsonPath(String resp, List aliasFields, Http } else if (objectValue instanceof String stringValue) { CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); for (String alias : aliasFields) { - if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + if (NetworkConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(responseTime.toString()); } else if (CollectorConstants.KEYWORD.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(Integer.toString(keywordNum)); @@ -354,7 +378,7 @@ private void parseResponseByJsonPath(String resp, List aliasFields, Http private void parseResponseByPromQl(String resp, List aliasFields, HttpProtocol http, CollectRep.MetricsData.Builder builder) { - AbstractPrometheusParse prometheusParser = PrometheusParseCreater.getPrometheusParse(); + AbstractPrometheusParse prometheusParser = PrometheusParseCreator.getPrometheusParse(); prometheusParser.handle(resp, aliasFields, http, builder); } @@ -422,13 +446,7 @@ private void getValueFromJson(List aliasFields, CollectRep.MetricsData.B String value = valueElement.getAsString(); valueRowBuilder.addColumns(value); } else { - if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(responseTime.toString()); - } else if (CollectorConstants.KEYWORD.equalsIgnoreCase(alias)) { - valueRowBuilder.addColumns(Integer.toString(keywordNum)); - } else { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); - } + addColumnForSummary(responseTime, valueRowBuilder, keywordNum, alias); } } builder.addValues(valueRowBuilder.build()); @@ -496,8 +514,8 @@ public HttpUriRequest createHttpRequest(HttpProtocol httpProtocol) { } // The default request header can be overridden if customized // keep-alive - requestBuilder.addHeader(HttpHeaders.CONNECTION, "keep-alive"); - requestBuilder.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"); + requestBuilder.addHeader(HttpHeaders.CONNECTION, NetworkConstants.KEEP_ALIVE); + requestBuilder.addHeader(HttpHeaders.USER_AGENT, NetworkConstants.USER_AGENT); // headers The custom request header is overwritten here Map headers = httpProtocol.getHeaders(); if (headers != null && !headers.isEmpty()) { @@ -511,11 +529,11 @@ public HttpUriRequest createHttpRequest(HttpProtocol httpProtocol) { // add accept if (DispatchConstants.PARSE_DEFAULT.equals(httpProtocol.getParseType()) || DispatchConstants.PARSE_JSON_PATH.equals(httpProtocol.getParseType())) { - requestBuilder.addHeader(HttpHeaders.ACCEPT, "application/json"); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE); } else if (DispatchConstants.PARSE_XML_PATH.equals(httpProtocol.getParseType())) { - requestBuilder.addHeader(HttpHeaders.ACCEPT, "text/xml,application/xml"); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.TEXT_HTML_VALUE + "," + MediaType.APPLICATION_XML_VALUE); } else { - requestBuilder.addHeader(HttpHeaders.ACCEPT, "*/*"); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.ALL_VALUE); } if (httpProtocol.getAuthorization() != null) { @@ -534,7 +552,7 @@ public HttpUriRequest createHttpRequest(HttpProtocol httpProtocol) { } // if it has payload, would override post params - if (StringUtils.hasLength(httpProtocol.getPayload())) { + if (StringUtils.hasLength(httpProtocol.getPayload()) && (HttpMethod.POST.matches(httpMethod) || HttpMethod.PUT.matches(httpMethod))) { requestBuilder.setEntity(new StringEntity(httpProtocol.getPayload(), StandardCharsets.UTF_8)); } @@ -545,14 +563,14 @@ public HttpUriRequest createHttpRequest(HttpProtocol httpProtocol) { requestBuilder.setUri(httpProtocol.getHost() + ":" + httpProtocol.getPort() + uri); } else { String ipAddressType = IpDomainUtil.checkIpAddressType(httpProtocol.getHost()); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s%s", httpProtocol.getHost(), httpProtocol.getPort(), uri) : String.format("%s:%s%s", httpProtocol.getHost(), httpProtocol.getPort(), uri); boolean ssl = Boolean.parseBoolean(httpProtocol.getSsl()); if (ssl) { - requestBuilder.setUri(CollectorConstants.HTTPS_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTPS_HEADER + baseUri); } else { - requestBuilder.setUri(CollectorConstants.HTTP_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTP_HEADER + baseUri); } } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/SslCertificateCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/SslCertificateCollectImpl.java index aaa818693bf..0addb520641 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/SslCertificateCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/SslCertificateCollectImpl.java @@ -23,16 +23,21 @@ import java.net.ConnectException; import java.net.URL; import java.net.UnknownHostException; +import java.security.KeyManagementException; +import java.security.NoSuchAlgorithmException; import java.security.cert.Certificate; import java.security.cert.X509Certificate; import java.util.Date; import javax.net.ssl.HttpsURLConnection; +import javax.net.ssl.SSLContext; import javax.net.ssl.SSLException; import javax.net.ssl.SSLPeerUnverifiedException; +import javax.net.ssl.TrustManager; +import javax.net.ssl.X509TrustManager; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.HttpProtocol; @@ -81,6 +86,14 @@ public void collect(CollectRep.MetricsData.Builder builder, uri = "https://" + httpProtocol.getHost() + ":" + httpProtocol.getPort(); } urlConnection = (HttpsURLConnection) new URL(uri).openConnection(); + + boolean verifySsl = Boolean.parseBoolean(httpProtocol.getSsl()); + // ignore ssl verify + if (!verifySsl){ + SSLContext ignoreSslContext = createIgnoreVerifySslContext(); + urlConnection.setSSLSocketFactory(ignoreSslContext.getSocketFactory()); + } + urlConnection.connect(); Certificate[] certificates = urlConnection.getServerCertificates(); if (certificates == null || certificates.length == 0) { @@ -160,4 +173,29 @@ public String supportProtocol() { private void validateParams(Metrics metrics) { } + + public SSLContext createIgnoreVerifySslContext() throws NoSuchAlgorithmException, KeyManagementException { + SSLContext sc = SSLContext.getInstance("TLS"); + X509TrustManager trustManager = new X509TrustManager() { + @Override + public void checkClientTrusted( + java.security.cert.X509Certificate[] paramArrayOfX509Certificate, + String paramString) { + } + + @Override + public void checkServerTrusted( + java.security.cert.X509Certificate[] paramArrayOfX509Certificate, + String paramString) { + } + + @Override + public java.security.cert.X509Certificate[] getAcceptedIssuers() { + return null; + } + }; + + sc.init(null, new TrustManager[]{trustManager}, null); + return sc; + } } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreater.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreator.java similarity index 80% rename from collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreater.java rename to collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreator.java index 8078ec0688d..72b83e33c8f 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreater.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/http/promethus/PrometheusParseCreator.java @@ -26,15 +26,15 @@ */ @Slf4j @Component -public class PrometheusParseCreater implements InitializingBean { - private static AbstractPrometheusParse PROMETHEUSPARSE = new PrometheusVectorParser(); +public class PrometheusParseCreator implements InitializingBean { + private static final AbstractPrometheusParse PROMETHEUS_PARSE = new PrometheusVectorParser(); private static void create() { - PROMETHEUSPARSE.setInstance(new PrometheusMatrixParser().setInstance(new PrometheusLastParser())); + PROMETHEUS_PARSE.setInstance(new PrometheusMatrixParser().setInstance(new PrometheusLastParser())); } public static AbstractPrometheusParse getPrometheusParse(){ - return PROMETHEUSPARSE; + return PROMETHEUS_PARSE; } @Override diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/httpsd/HttpsdImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/httpsd/HttpsdImpl.java index 9b7811f8eef..92d494ca7d8 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/httpsd/HttpsdImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/httpsd/HttpsdImpl.java @@ -30,8 +30,8 @@ import org.apache.hertzbeat.collector.collect.httpsd.discovery.DiscoveryClient; import org.apache.hertzbeat.collector.collect.httpsd.discovery.DiscoveryClientManagement; import org.apache.hertzbeat.collector.collect.httpsd.discovery.entity.ServerInfo; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.HttpsdProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImpl.java index 0ab7ba5f5a8..7b31383f723 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImpl.java @@ -22,8 +22,8 @@ import java.net.UnknownHostException; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.IcmpProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java index f1c5ef7ea2f..fb553a7dd28 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/jmx/JmxCollectImpl.java @@ -108,7 +108,7 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri attributes = Arrays.stream(attrInfos) .filter(item -> item.isReadable() && attributeNameSet.contains(item.getName())) .map(MBeanFeatureInfo::getName) - .collect(Collectors.toList()).toArray(attributes); + .toList().toArray(attributes); AttributeList attributeList = serverConnection.getAttributes(currentObjectName, attributes); Map attributeValueMap = extractAttributeValue(attributeList); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImpl.java index 09bcf059aa4..8af815fc99f 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImpl.java @@ -32,8 +32,8 @@ import java.util.Objects; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.MemcachedProtocol; @@ -48,7 +48,6 @@ public class MemcachedCollectImpl extends AbstractCollect { private static final String STATS = "stats"; private static final String STATS_SETTINGS = "stats settings"; - private static final String STATS_ITEMS = "stats items"; private static final String STATS_SIZES = "stats sizes"; private static final String STATS_END_RSP = "END"; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/mongodb/MongodbSingleCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/mongodb/MongodbSingleCollectImpl.java index 9471c1874e8..c5ec9913fcd 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/mongodb/MongodbSingleCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/mongodb/MongodbSingleCollectImpl.java @@ -34,8 +34,8 @@ import org.apache.hertzbeat.collector.collect.common.cache.CacheIdentifier; import org.apache.hertzbeat.collector.collect.common.cache.ConnectionCommonCache; import org.apache.hertzbeat.collector.collect.common.cache.MongodbConnect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.MongodbProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/mqtt/MqttCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/mqtt/MqttCollectImpl.java new file mode 100644 index 00000000000..14f8e18145a --- /dev/null +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/mqtt/MqttCollectImpl.java @@ -0,0 +1,231 @@ +/* + * 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.hertzbeat.collector.collect.mqtt; + +import com.hivemq.client.mqtt.MqttVersion; +import com.hivemq.client.mqtt.datatypes.MqttQos; +import com.hivemq.client.mqtt.mqtt3.Mqtt3AsyncClient; +import com.hivemq.client.mqtt.mqtt3.Mqtt3Client; +import com.hivemq.client.mqtt.mqtt3.Mqtt3ClientBuilder; +import com.hivemq.client.mqtt.mqtt3.message.connect.connack.Mqtt3ConnAck; +import com.hivemq.client.mqtt.mqtt5.Mqtt5AsyncClient; +import com.hivemq.client.mqtt.mqtt5.Mqtt5Client; +import com.hivemq.client.mqtt.mqtt5.Mqtt5ClientBuilder; +import com.hivemq.client.mqtt.mqtt5.message.connect.connack.Mqtt5ConnAck; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import java.util.concurrent.CompletableFuture; +import java.util.concurrent.ExecutionException; +import java.util.concurrent.TimeUnit; +import java.util.concurrent.TimeoutException; +import java.util.function.Consumer; +import java.util.stream.Collectors; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; +import org.apache.hertzbeat.collector.dispatch.DispatchConstants; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.job.Metrics; +import org.apache.hertzbeat.common.entity.job.protocol.MqttProtocol; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.entity.message.CollectRep.MetricsData.Builder; +import org.slf4j.Logger; +import org.slf4j.LoggerFactory; +import org.springframework.util.Assert; +import org.springframework.util.StopWatch; + +/** + * collect mqtt metrics + */ +public class MqttCollectImpl extends AbstractCollect { + + public MqttCollectImpl() { + } + + private static final Logger logger = LoggerFactory.getLogger(MqttCollectImpl.class); + + @Override + public void preCheck(Metrics metrics) throws IllegalArgumentException { + MqttProtocol mqttProtocol = metrics.getMqtt(); + Assert.hasText(mqttProtocol.getHost(), "MQTT protocol host is required"); + Assert.hasText(mqttProtocol.getPort(), "MQTT protocol port is required"); + Assert.hasText(mqttProtocol.getProtocolVersion(), "MQTT protocol version is required"); + } + + @Override + public void collect(Builder builder, long monitorId, String app, Metrics metrics) { + MqttProtocol mqtt = metrics.getMqtt(); + String protocolVersion = mqtt.getProtocolVersion(); + MqttVersion mqttVersion = MqttVersion.valueOf(protocolVersion); + if (mqttVersion == MqttVersion.MQTT_3_1_1) { + collectWithVersion3(metrics, builder); + } else if (mqttVersion == MqttVersion.MQTT_5_0) { + collectWithVersion5(metrics, builder); + } + } + + @Override + public String supportProtocol() { + return DispatchConstants.PROTOCOL_MQTT; + } + + /** + * collecting data of MQTT 5 + */ + private void collectWithVersion5(Metrics metrics, Builder builder) { + MqttProtocol mqttProtocol = metrics.getMqtt(); + Map data = new HashMap<>(); + Mqtt5AsyncClient client = buildMqtt5Client(mqttProtocol); + long responseTime = connectClient(client, mqtt5AsyncClient -> { + CompletableFuture connectFuture = mqtt5AsyncClient.connect(); + try { + connectFuture.get(Long.parseLong(mqttProtocol.getTimeout()), TimeUnit.MILLISECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e) { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg(getErrorMessage(e.getMessage())); + } + }); + testDescribeAndPublish5(client, mqttProtocol, data); + convertToMetricsData(builder, metrics, responseTime, data); + client.disconnect(); + } + + /** + * collecting data of MQTT 3.1.1 + */ + private void collectWithVersion3(Metrics metrics, Builder builder) { + MqttProtocol mqttProtocol = metrics.getMqtt(); + Map data = new HashMap<>(); + Mqtt3AsyncClient client = buildMqtt3Client(mqttProtocol); + long responseTime = connectClient(client, mqtt3AsyncClient -> { + CompletableFuture connectFuture = mqtt3AsyncClient.connect(); + try { + connectFuture.get(Long.parseLong(mqttProtocol.getTimeout()), TimeUnit.MILLISECONDS); + } catch (InterruptedException | ExecutionException | TimeoutException e) { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg(getErrorMessage(e.getMessage())); + } + }); + testDescribeAndPublish3(client, mqttProtocol, data); + convertToMetricsData(builder, metrics, responseTime, data); + client.disconnect(); + } + + private void testDescribeAndPublish3(Mqtt3AsyncClient client, MqttProtocol mqttProtocol, Map data) { + data.put("canDescribe", test(() -> { + client.subscribeWith().topicFilter(mqttProtocol.getTopic()).qos(MqttQos.AT_LEAST_ONCE).send(); + client.unsubscribeWith().topicFilter(mqttProtocol.getTopic()).send(); + }, "subscribe").toString()); + + data.put("canPublish", !mqttProtocol.testPublish() ? Boolean.FALSE.toString() : test(() -> { + client.publishWith().topic(mqttProtocol.getTopic()) + .payload(mqttProtocol.getTestMessage().getBytes(StandardCharsets.UTF_8)) + .qos(MqttQos.AT_LEAST_ONCE).send(); + data.put("canPublish", Boolean.TRUE.toString()); + }, "publish").toString()); + } + + private void testDescribeAndPublish5(Mqtt5AsyncClient client, MqttProtocol mqttProtocol, Map data) { + data.put("canDescribe", test(() -> { + client.subscribeWith().topicFilter(mqttProtocol.getTopic()).qos(MqttQos.AT_LEAST_ONCE).send(); + client.unsubscribeWith().topicFilter(mqttProtocol.getTopic()).send(); + }, "subscribe").toString()); + + data.put("canPublish", !mqttProtocol.testPublish() ? Boolean.FALSE.toString() : test(() -> { + client.publishWith().topic(mqttProtocol.getTopic()) + .payload(mqttProtocol.getTestMessage().getBytes(StandardCharsets.UTF_8)) + .qos(MqttQos.AT_LEAST_ONCE).send(); + data.put("canPublish", Boolean.TRUE.toString()); + }, "publish").toString()); + } + + private Mqtt5AsyncClient buildMqtt5Client(MqttProtocol mqttProtocol) { + Mqtt5ClientBuilder mqtt5ClientBuilder = Mqtt5Client.builder() + .serverHost(mqttProtocol.getHost()) + .identifier(mqttProtocol.getClientId()) + .serverPort(Integer.parseInt(mqttProtocol.getPort())); + + if (mqttProtocol.hasAuth()) { + mqtt5ClientBuilder.simpleAuth().username(mqttProtocol.getUsername()) + .password(mqttProtocol.getPassword().getBytes(StandardCharsets.UTF_8)) + .applySimpleAuth(); + } + return mqtt5ClientBuilder.buildAsync(); + } + + private Mqtt3AsyncClient buildMqtt3Client(MqttProtocol mqttProtocol) { + + Mqtt3ClientBuilder mqtt3ClientBuilder = Mqtt3Client.builder() + .serverHost(mqttProtocol.getHost()) + .identifier(mqttProtocol.getClientId()) + .serverPort(Integer.parseInt(mqttProtocol.getPort())); + + if (mqttProtocol.hasAuth()) { + mqtt3ClientBuilder.simpleAuth().username(mqttProtocol.getUsername()) + .password(mqttProtocol.getPassword().getBytes(StandardCharsets.UTF_8)) + .applySimpleAuth(); + } + return mqtt3ClientBuilder.buildAsync(); + } + + public long connectClient(T client, Consumer connect) { + StopWatch stopWatch = new StopWatch(); + stopWatch.start(); + connect.accept(client); + stopWatch.stop(); + return stopWatch.getTotalTimeMillis(); + } + + private void convertToMetricsData(Builder builder, Metrics metrics, long responseTime, Map data) { + CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); + for (String column : metrics.getAliasFields()) { + if (CollectorConstants.RESPONSE_TIME.equals(column)) { + valueRowBuilder.addColumns(String.valueOf(responseTime)); + } else { + String value = data.get(column); + value = value == null ? CommonConstants.NULL_VALUE : value; + valueRowBuilder.addColumns(value); + } + } + builder.addValues(valueRowBuilder.build()); + } + + private Boolean test(Runnable runnable, String operationName) { + try { + runnable.run(); + return true; + } catch (Exception e) { + logger.error("{} fail", operationName, e); + } + return false; + } + + private String getErrorMessage(String errorMessage) { + if (StringUtils.isBlank(errorMessage)) { + return "connect failed"; + } + String[] split = errorMessage.split(":"); + if (split.length > 1) { + return Arrays.stream(split).skip(1).collect(Collectors.joining(":")); + } + return errorMessage; + } + +} diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NebulaGraphCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NebulaGraphCollectImpl.java index f61cccc8844..6874ee99843 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NebulaGraphCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NebulaGraphCollectImpl.java @@ -28,9 +28,9 @@ import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.NebulaGraphProtocol; @@ -131,7 +131,6 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri } } - @Override public String supportProtocol() { return DispatchConstants.PROTOCOL_NEBULAGRAPH; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java index fea98f30222..3b18aef89c6 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImpl.java @@ -26,8 +26,8 @@ import java.util.stream.Stream; import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.NgqlProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImpl.java index 91c02e778dc..b016c75c037 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImpl.java @@ -37,8 +37,8 @@ import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.NginxProtocol; import org.apache.hertzbeat.common.entity.message.CollectRep; @@ -46,6 +46,7 @@ import org.apache.hertzbeat.common.util.IpDomainUtil; import org.apache.http.HttpHeaders; import org.apache.http.HttpHost; +import org.apache.http.HttpStatus; import org.apache.http.client.config.RequestConfig; import org.apache.http.client.methods.CloseableHttpResponse; import org.apache.http.client.methods.HttpUriRequest; @@ -53,6 +54,7 @@ import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; +import org.springframework.http.MediaType; /** * nginx collect @@ -60,7 +62,6 @@ @Slf4j public class NginxCollectImpl extends AbstractCollect { - private static final int SUCCESS_CODE = 200; private static final String NGINX_STATUS_NAME = "nginx_status"; private static final String REQ_STATUS_NAME = "req_status"; private static final String AVAILABLE = "available"; @@ -97,9 +98,9 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri try (CloseableHttpResponse response = CommonHttpClient.getHttpClient().execute(request, httpContext)){ // send an HTTP request and get the response data int statusCode = response.getStatusLine().getStatusCode(); - if (statusCode != SUCCESS_CODE) { + if (statusCode != HttpStatus.SC_OK) { builder.setCode(CollectRep.Code.FAIL); - builder.setMsg("StatusCode " + statusCode); + builder.setMsg(NetworkConstants.STATUS_CODE + statusCode); return; } String resp = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8); @@ -145,16 +146,21 @@ private HttpUriRequest createHttpRequest(NginxProtocol nginxProtocol) { requestBuilder.setUri(host + ":" + portWithUri); } else { String ipAddressType = IpDomainUtil.checkIpAddressType(host); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s", host, portWithUri) : String.format("%s:%s", host, portWithUri); - requestBuilder.setUri(CollectorConstants.HTTP_HEADER + baseUri); + boolean ssl = Boolean.parseBoolean(nginxProtocol.getSsl()); + if (ssl){ + requestBuilder.setUri(NetworkConstants.HTTPS_HEADER + baseUri); + } else { + requestBuilder.setUri(NetworkConstants.HTTP_HEADER + baseUri); + } } - requestBuilder.addHeader(HttpHeaders.CONNECTION, "keep-alive"); - requestBuilder.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"); - requestBuilder.addHeader(HttpHeaders.ACCEPT, "text/plain"); + requestBuilder.addHeader(HttpHeaders.CONNECTION, NetworkConstants.KEEP_ALIVE); + requestBuilder.addHeader(HttpHeaders.USER_AGENT, NetworkConstants.USER_AGENT); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.TEXT_PLAIN_VALUE); int timeout = Integer.parseInt(nginxProtocol.getTimeout()); if (timeout > 0) { @@ -192,7 +198,7 @@ private void parseNginxStatusResponse(CollectRep.MetricsData.Builder builder, St if (value != null) { valueRowBuilder.addColumns(String.valueOf(value)); } else { - if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + if (NetworkConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { valueRowBuilder.addColumns(responseTime.toString()); } else { valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); @@ -230,7 +236,7 @@ private void parseReqStatusResponse(CollectRep.MetricsData.Builder builder, Stri for (ReqStatusResponse reqStatusResponse : reqStatusResponses) { CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); for (String alias : aliasFields) { - if (CollectorConstants.RESPONSE_TIME.equals(alias)) { + if (NetworkConstants.RESPONSE_TIME.equals(alias)) { valueRowBuilder.addColumns(String.valueOf(responseTime)); } else { try { diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImpl.java index adc080cb73a..7f5ec63c563 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImpl.java @@ -33,9 +33,9 @@ import org.apache.commons.net.ntp.TimeInfo; import org.apache.commons.net.ntp.TimeStamp; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.NtpProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/pop3/Pop3CollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/pop3/Pop3CollectImpl.java index 958170df8e4..c595a4f2e10 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/pop3/Pop3CollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/pop3/Pop3CollectImpl.java @@ -27,8 +27,8 @@ import org.apache.commons.net.pop3.POP3MessageInfo; import org.apache.commons.net.pop3.POP3SClient; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.Pop3Protocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/prometheus/PrometheusAutoCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/prometheus/PrometheusAutoCollectImpl.java index b33c5832bce..e1d7ab86bfb 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/prometheus/PrometheusAutoCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/prometheus/PrometheusAutoCollectImpl.java @@ -38,8 +38,9 @@ import org.apache.hertzbeat.collector.collect.prometheus.parser.TextParser; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.PrometheusProtocol; import org.apache.hertzbeat.common.entity.message.CollectRep; @@ -64,6 +65,7 @@ import org.apache.http.impl.client.BasicCredentialsProvider; import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; +import org.springframework.http.MediaType; import org.springframework.util.StringUtils; /** @@ -95,7 +97,7 @@ public List collect(CollectRep.MetricsData.Builder build log.debug("http response status: {}", statusCode); if (!isSuccessInvoke) { builder.setCode(CollectRep.Code.FAIL); - builder.setMsg("StatusCode " + statusCode); + builder.setMsg(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); return null; } // todo: The InputStream is directly converted to a String here @@ -105,7 +107,7 @@ public List collect(CollectRep.MetricsData.Builder build String resp = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8); long collectTime = System.currentTimeMillis(); builder.setTime(collectTime); - if (resp == null || "".equals(resp)) { + if (resp == null || !StringUtils.hasText(resp)) { log.error("http response content is empty, status: {}.", statusCode); builder.setCode(CollectRep.Code.FAIL); builder.setMsg("http response content is empty"); @@ -161,7 +163,7 @@ private void validateParams(Metrics metrics) throws Exception { } PrometheusProtocol protocol = metrics.getPrometheus(); if (protocol.getPath() == null - || "".equals(protocol.getPath()) + || !StringUtils.hasText(protocol.getPath()) || !protocol.getPath().startsWith(RIGHT_DASH)) { protocol.setPath(protocol.getPath() == null ? RIGHT_DASH : RIGHT_DASH + protocol.getPath().trim()); } @@ -252,8 +254,8 @@ public HttpUriRequest createHttpRequest(PrometheusProtocol protocol) { } // The default request header can be overridden if customized // keep-alive - requestBuilder.addHeader(HttpHeaders.CONNECTION, "keep-alive"); - requestBuilder.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"); + requestBuilder.addHeader(HttpHeaders.CONNECTION, NetworkConstants.KEEP_ALIVE); + requestBuilder.addHeader(HttpHeaders.USER_AGENT, NetworkConstants.USER_AGENT); // headers The custom request header is overwritten here Map headers = protocol.getHeaders(); if (headers != null && !headers.isEmpty()) { @@ -265,7 +267,7 @@ public HttpUriRequest createHttpRequest(PrometheusProtocol protocol) { } } // add accept - requestBuilder.addHeader(HttpHeaders.ACCEPT, "*/*"); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.TEXT_PLAIN_VALUE); if (protocol.getAuthorization() != null) { PrometheusProtocol.Authorization authorization = protocol.getAuthorization(); @@ -291,17 +293,17 @@ public HttpUriRequest createHttpRequest(PrometheusProtocol protocol) { String uri = CollectUtil.replaceUriSpecialChar(protocol.getPath()); if (IpDomainUtil.isHasSchema(protocol.getHost())) { - requestBuilder.setUri(protocol.getHost() + ":" + protocol.getPort() + uri); + requestBuilder.setUri(protocol.getHost() + SignConstants.DOUBLE_MARK + protocol.getPort() + uri); } else { String ipAddressType = IpDomainUtil.checkIpAddressType(protocol.getHost()); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s%s", protocol.getHost(), protocol.getPort(), uri) : String.format("%s:%s%s", protocol.getHost(), protocol.getPort(), uri); boolean ssl = Boolean.parseBoolean(protocol.getSsl()); if (ssl) { - requestBuilder.setUri(CollectorConstants.HTTPS_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTPS_HEADER + baseUri); } else { - requestBuilder.setUri(CollectorConstants.HTTP_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTP_HEADER + baseUri); } } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/push/PushCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/push/PushCollectImpl.java index 86f4fe083f8..e4412a0daf1 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/push/PushCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/push/PushCollectImpl.java @@ -28,7 +28,8 @@ import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.PushProtocol; @@ -46,6 +47,7 @@ import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.protocol.HttpContext; import org.apache.http.util.EntityUtils; +import org.springframework.http.MediaType; /** * push style collect @@ -53,7 +55,7 @@ @Slf4j public class PushCollectImpl extends AbstractCollect { - private static Map timeMap = new ConcurrentHashMap<>(); + private static final Map timeMap = new ConcurrentHashMap<>(); // ms private static final Integer timeout = 3000; @@ -86,7 +88,7 @@ public void collect(CollectRep.MetricsData.Builder builder, int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != SUCCESS_CODE) { builder.setCode(CollectRep.Code.FAIL); - builder.setMsg("StatusCode " + statusCode); + builder.setMsg(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); return; } String resp = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8); @@ -124,19 +126,19 @@ private HttpUriRequest createHttpRequest(PushProtocol pushProtocol, Long monitor requestBuilder.setUri(pushProtocol.getHost() + ":" + pushProtocol.getPort() + uri); } else { String ipAddressType = IpDomainUtil.checkIpAddressType(pushProtocol.getHost()); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s", pushProtocol.getHost(), pushProtocol.getPort() + uri) : String.format("%s:%s", pushProtocol.getHost(), pushProtocol.getPort() + uri); - requestBuilder.setUri(CollectorConstants.HTTP_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTP_HEADER + baseUri); } - requestBuilder.addHeader(HttpHeaders.CONNECTION, "keep-alive"); - requestBuilder.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"); + requestBuilder.addHeader(HttpHeaders.CONNECTION, NetworkConstants.KEEP_ALIVE); + requestBuilder.addHeader(HttpHeaders.USER_AGENT, NetworkConstants.USER_AGENT); requestBuilder.addParameter("id", String.valueOf(monitorId)); requestBuilder.addParameter("time", String.valueOf(startTime)); - requestBuilder.addHeader(HttpHeaders.ACCEPT, "application/json"); + requestBuilder.addHeader(HttpHeaders.ACCEPT, MediaType.APPLICATION_JSON_VALUE); //requestBuilder.setUri(pushProtocol.getUri()); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishClient.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishClient.java index b813b6653c9..f9de2fda92a 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishClient.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishClient.java @@ -17,8 +17,10 @@ package org.apache.hertzbeat.collector.collect.redfish; +import java.nio.charset.StandardCharsets; import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; -import org.apache.hertzbeat.common.constants.CollectorConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.job.protocol.RedfishProtocol; import org.apache.hertzbeat.common.util.IpDomainUtil; import org.apache.http.HttpHeaders; @@ -30,6 +32,7 @@ import org.apache.http.client.methods.RequestBuilder; import org.apache.http.client.protocol.HttpClientContext; import org.apache.http.entity.StringEntity; +import org.springframework.http.MediaType; /** * redfish client impl @@ -66,20 +69,20 @@ public ConnectSession connect() throws Exception { requestBuilder.setUri(this.host + ":" + this.port + uri); } else { String ipAddressType = IpDomainUtil.checkIpAddressType(this.host); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s", this.host, this.port + uri) : String.format("%s:%s", this.host, this.port + uri); - requestBuilder.setUri(CollectorConstants.HTTP_HEADER + baseUri); + requestBuilder.setUri(NetworkConstants.HTTPS_HEADER + baseUri); } - requestBuilder.addHeader(HttpHeaders.CONNECTION, "Keep-Alive"); - requestBuilder.addHeader(HttpHeaders.CONTENT_TYPE, "application/json"); - requestBuilder.addHeader(HttpHeaders.USER_AGENT, "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36"); - requestBuilder.addHeader(HttpHeaders.CONTENT_ENCODING, "UTF-8"); + requestBuilder.addHeader(HttpHeaders.CONNECTION, NetworkConstants.KEEP_ALIVE); + requestBuilder.addHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE); + requestBuilder.addHeader(HttpHeaders.USER_AGENT, NetworkConstants.USER_AGENT); + requestBuilder.addHeader(HttpHeaders.CONTENT_ENCODING, StandardCharsets.UTF_8 + ""); final String json = "{\"UserName\": \"" + this.username + "\", \"Password\": \"" + this.password + "\"}"; - StringEntity entity = new StringEntity(json, "UTF-8"); + StringEntity entity = new StringEntity(json, StandardCharsets.UTF_8); requestBuilder.setEntity(entity); if (this.timeout > 0) { @@ -97,10 +100,10 @@ public ConnectSession connect() throws Exception { try (CloseableHttpResponse response = CommonHttpClient.getHttpClient().execute(request, httpClientContext)) { int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != HttpStatus.SC_CREATED) { - throw new Exception("Http Status Code: " + statusCode); + throw new Exception(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); } - String location = response.getFirstHeader("Location").getValue(); - String auth = response.getFirstHeader("X-Auth-Token").getValue(); + String location = response.getFirstHeader(NetworkConstants.LOCATION).getValue(); + String auth = response.getFirstHeader(NetworkConstants.X_AUTH_TOKEN).getValue(); session = new Session(auth, location, this.host, this.port); } catch (Exception e) { throw new Exception("Redfish session create error: " + e.getMessage()); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImpl.java index 3462c3ebdb3..5977871c639 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImpl.java @@ -158,8 +158,7 @@ private List parseCollectionResource(String resp) { } String resourceIdPath = "$.Members[*].['@odata.id']"; List resourceIds = JsonPathParser.parseContentWithJsonPath(resp, resourceIdPath); - List res = resourceIds.stream().filter(Objects::nonNull).map(String::valueOf).toList(); - return res; + return resourceIds.stream().filter(Objects::nonNull).map(String::valueOf).toList(); } private List getCollectionResource(String uri, ConnectSession connectSession) { @@ -177,10 +176,10 @@ private void parseRedfishResource(CollectRep.MetricsData.Builder builder, String if (!StringUtils.hasText(resp)) { return; } - List aliasFields = metrics.getAliasFields(); + List jsonPaths = metrics.getRedfish().getJsonPath(); CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); - for (String alias : aliasFields) { - List res = JsonPathParser.parseContentWithJsonPath(resp, alias); + for (String path : jsonPaths) { + List res = JsonPathParser.parseContentWithJsonPath(resp, path); if (res != null && !res.isEmpty()) { Object value = res.get(0); valueRowBuilder.addColumns(value == null ? CommonConstants.NULL_VALUE : String.valueOf(value)); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishConnectSession.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishConnectSession.java index d29ff20267d..2abc3288e8c 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishConnectSession.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redfish/RedfishConnectSession.java @@ -19,7 +19,8 @@ import java.nio.charset.StandardCharsets; import org.apache.hertzbeat.collector.collect.common.http.CommonHttpClient; -import org.apache.hertzbeat.common.constants.CollectorConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.util.IpDomainUtil; import org.apache.http.HttpStatus; import org.apache.http.client.methods.CloseableHttpResponse; @@ -51,12 +52,12 @@ public void close() throws Exception { this.active = false; String url = RedfishClient.REDFISH_SESSION_SERVICE + session.location(); HttpDelete httpDelete = new HttpDelete(url); - httpDelete.setHeader("X-Auth-Token", session.token()); - httpDelete.setHeader("Location", session.location()); + httpDelete.setHeader(NetworkConstants.X_AUTH_TOKEN, session.token()); + httpDelete.setHeader(NetworkConstants.LOCATION, session.location()); try (CloseableHttpResponse response = CommonHttpClient.getHttpClient().execute(httpDelete)) { int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != HttpStatus.SC_OK) { - throw new Exception("Http State code: " + statusCode); + throw new Exception(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); } } catch (Exception e) { throw new Exception("Redfish session close error:" + e.getMessage()); @@ -75,21 +76,20 @@ public String getRedfishResource(String uri) throws Exception { url = this.session.host() + ":" + this.session.port() + uri; } else { String ipAddressType = IpDomainUtil.checkIpAddressType(this.session.host()); - String baseUri = CollectorConstants.IPV6.equals(ipAddressType) + String baseUri = NetworkConstants.IPV6.equals(ipAddressType) ? String.format("[%s]:%s", this.session.host(), this.session.port() + uri) : String.format("%s:%s", this.session.host(), this.session.port() + uri); - url = CollectorConstants.HTTPS_HEADER + baseUri; + url = NetworkConstants.HTTPS_HEADER + baseUri; } HttpGet httpGet = new HttpGet(url); - httpGet.setHeader("X-Auth-Token", session.token()); - httpGet.setHeader("Location", session.location()); + httpGet.setHeader(NetworkConstants.X_AUTH_TOKEN, session.token()); + httpGet.setHeader(NetworkConstants.LOCATION, session.location()); try (CloseableHttpResponse response = CommonHttpClient.getHttpClient().execute(httpGet)) { int statusCode = response.getStatusLine().getStatusCode(); if (statusCode != HttpStatus.SC_OK) { - throw new Exception("Http State code: " + statusCode); + throw new Exception(NetworkConstants.STATUS_CODE + SignConstants.BLANK + statusCode); } - String resp = EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8); - return resp; + return EntityUtils.toString(response.getEntity(), StandardCharsets.UTF_8); } catch (Exception e) { throw new Exception("Redfish session get resource error:" + e.getMessage()); } finally { diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redis/RedisCommonCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redis/RedisCommonCollectImpl.java index ef4a5bbb230..2c5a6d73f97 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/redis/RedisCommonCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/redis/RedisCommonCollectImpl.java @@ -316,9 +316,7 @@ private Map parseInfo(String info, Metrics metrics) { .map(this::removeCr) .map(r -> r.split(SignConstants.DOUBLE_MARK)) .filter(t -> t.length > 1) - .forEach(it -> { - result.put(it[0], it[1]); - }); + .forEach(it -> result.put(it[0], it[1])); // fix https://github.com/apache/hertzbeat/pull/913 if (result.size() < fieldTotalSize) { for (Metrics.Field field : metrics.getFields()) { diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/script/ScriptCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/script/ScriptCollectImpl.java new file mode 100644 index 00000000000..6ec696dd7fe --- /dev/null +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/script/ScriptCollectImpl.java @@ -0,0 +1,264 @@ +/* + * 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.hertzbeat.collector.collect.script; + +import java.io.BufferedReader; +import java.io.File; +import java.io.IOException; +import java.io.InputStreamReader; +import java.nio.charset.Charset; +import java.util.Arrays; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; +import org.apache.hertzbeat.collector.dispatch.DispatchConstants; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.job.Metrics; +import org.apache.hertzbeat.common.entity.job.protocol.ScriptProtocol; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.util.CommonUtil; +import org.springframework.util.Assert; +import org.springframework.util.StringUtils; + +/** + * Script protocol collection implementation + */ +@Slf4j +public class ScriptCollectImpl extends AbstractCollect { + private static final String CMD = "cmd"; + private static final String BASH = "bash"; + private static final String POWERSHELL = "powershell"; + private static final String CMD_C = "/c"; + private static final String BASH_C = "-c"; + private static final String POWERSHELL_C = "-Command"; + private static final String POWERSHELL_FILE = "-File"; + private static final String PARSE_TYPE_ONE_ROW = "oneRow"; + private static final String PARSE_TYPE_MULTI_ROW = "multiRow"; + private static final String PARSE_TYPE_NETCAT = "netcat"; + private static final String PARSE_TYPE_LOG = "log"; + + @Override + public void preCheck(Metrics metrics) throws IllegalArgumentException { + ScriptProtocol scriptProtocol = metrics.getScript(); + Assert.notNull(metrics, "Script collect must has Imap params"); + Assert.notNull(scriptProtocol, "Script collect must has Imap params"); + Assert.notNull(scriptProtocol.getCharset(), "Script charset is required"); + Assert.notNull(scriptProtocol.getParseType(), "Script parse type is required"); + Assert.notNull(scriptProtocol.getScriptTool(), "Script tool is required"); + if (!(StringUtils.hasText(scriptProtocol.getScriptCommand()) || StringUtils.hasText(scriptProtocol.getScriptPath()))) { + throw new IllegalArgumentException("At least one script command or script path is required."); + } + } + + @Override + public void collect(CollectRep.MetricsData.Builder builder, long monitorId, String app, Metrics metrics) { + ScriptProtocol scriptProtocol = metrics.getScript(); + long startTime = System.currentTimeMillis(); + ProcessBuilder processBuilder; + // use command + if (StringUtils.hasText(scriptProtocol.getScriptCommand())) { + switch (scriptProtocol.getScriptTool()) { + case BASH -> processBuilder = new ProcessBuilder(BASH, BASH_C, scriptProtocol.getScriptCommand().trim()); + case CMD -> processBuilder = new ProcessBuilder(CMD, CMD_C, scriptProtocol.getScriptCommand().trim()); + case POWERSHELL -> processBuilder = new ProcessBuilder("powershell.exe", POWERSHELL_C, scriptProtocol.getScriptCommand().trim()); + default -> { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Not support script tool:" + scriptProtocol.getScriptTool()); + return; + } + } + // use command file + } else if (StringUtils.hasText((scriptProtocol.getScriptPath()))) { + switch (scriptProtocol.getScriptTool()) { + case BASH -> processBuilder = new ProcessBuilder(BASH, scriptProtocol.getScriptPath().trim()); + case CMD -> processBuilder = new ProcessBuilder(CMD, scriptProtocol.getScriptPath().trim()); + case POWERSHELL -> processBuilder = new ProcessBuilder(POWERSHELL, POWERSHELL_FILE, scriptProtocol.getScriptPath().trim()); + default -> { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Not support script tool:" + scriptProtocol.getScriptTool()); + return; + } + } + } else { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("At least one script command or script path is required."); + return; + } + // set work directory + String workDirectory = scriptProtocol.getWorkDirectory(); + if (StringUtils.hasText(workDirectory)) { + processBuilder.directory(new File(workDirectory)); + } + // execute command + try { + Process process = processBuilder.start(); + BufferedReader reader = new BufferedReader(new InputStreamReader(process.getInputStream(), Charset.forName(scriptProtocol.getCharset()))); + StringBuilder response = new StringBuilder(); + String line; + while ((line = reader.readLine()) != null) { + if (StringUtils.hasText(line)) { + response.append(line).append("\n"); + } + } + process.waitFor(); + Long responseTime = System.currentTimeMillis() - startTime; + String result = String.valueOf(response); + if (!StringUtils.hasText(result)) { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Script response data is null"); + return; + } + switch (scriptProtocol.getParseType()) { + case PARSE_TYPE_LOG -> parseResponseDataByLog(result, metrics.getAliasFields(), builder, responseTime); + case PARSE_TYPE_NETCAT -> parseResponseDataByNetcat(result, metrics.getAliasFields(), builder, responseTime); + case PARSE_TYPE_ONE_ROW -> parseResponseDataByOne(result, metrics.getAliasFields(), builder, responseTime); + case PARSE_TYPE_MULTI_ROW -> parseResponseDataByMulti(result, metrics.getAliasFields(), builder, responseTime); + default -> { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Script collect not support this parse type: " + scriptProtocol.getParseType()); + } + } + } catch (IOException ioException) { + String errorMsg = CommonUtil.getMessageFromThrowable(ioException); + log.warn(errorMsg); + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Peer io failed: " + errorMsg); + } catch (InterruptedException interruptedException){ + String errorMsg = CommonUtil.getMessageFromThrowable(interruptedException); + log.warn(errorMsg); + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("Peer interrupt this script: " + errorMsg); + } catch (Exception exception) { + String errorMsg = CommonUtil.getMessageFromThrowable(exception); + log.warn(errorMsg); + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg(errorMsg); + } + } + + @Override + public String supportProtocol() { + return DispatchConstants.PROTOCOL_SCRIPT; + } + + private void parseResponseDataByLog(String result, List aliasFields, CollectRep.MetricsData.Builder builder, Long responseTime) { + String[] lines = result.split("\n"); + if (lines.length + 1 < aliasFields.size()) { + log.error("Response data not enough: {}", result); + return; + } + for (String line : lines) { + CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); + for (String alias : aliasFields) { + if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + valueRowBuilder.addColumns(responseTime.toString()); + } else { + valueRowBuilder.addColumns(line); + } + } + builder.addValues(valueRowBuilder.build()); + } + } + + private void parseResponseDataByNetcat(String result, List aliasFields, CollectRep.MetricsData.Builder builder, Long responseTime) { + String[] lines = result.split("\n"); + if (lines.length + 1 < aliasFields.size()) { + log.error("ssh response data not enough: {}", result); + return; + } + boolean contains = lines[0].contains("="); + Map mapValue = Arrays.stream(lines) + .map(item -> { + if (contains) { + return item.split("="); + } else { + return item.split("\t"); + } + }) + .filter(item -> item.length == 2) + .collect(Collectors.toMap(x -> x[0], x -> x[1])); + + CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); + for (String field : aliasFields) { + String fieldValue = mapValue.get(field); + valueRowBuilder.addColumns(Objects.requireNonNullElse(fieldValue, CommonConstants.NULL_VALUE)); + } + builder.addValues(valueRowBuilder.build()); + } + + private void parseResponseDataByOne(String result, List aliasFields, CollectRep.MetricsData.Builder builder, Long responseTime) { + String[] lines = result.split("\n"); + if (lines.length + 1 < aliasFields.size()) { + log.error("ssh response data not enough: {}", result); + return; + } + CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); + int aliasIndex = 0; + int lineIndex = 0; + while (aliasIndex < aliasFields.size()) { + if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(aliasFields.get(aliasIndex))) { + valueRowBuilder.addColumns(responseTime.toString()); + } else { + if (lineIndex < lines.length) { + valueRowBuilder.addColumns(lines[lineIndex].trim()); + } else { + valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + } + lineIndex++; + } + aliasIndex++; + } + builder.addValues(valueRowBuilder.build()); + } + + private void parseResponseDataByMulti(String result, List aliasFields, + CollectRep.MetricsData.Builder builder, Long responseTime) { + String[] lines = result.split("\n"); + if (lines.length <= 1) { + log.error("ssh response data only has header: {}", result); + return; + } + String[] fields = lines[0].split("\\s+"); + Map fieldMapping = new HashMap<>(fields.length); + for (int i = 0; i < fields.length; i++) { + fieldMapping.put(fields[i].trim().toLowerCase(), i); + } + for (int i = 1; i < lines.length; i++) { + String[] values = lines[i].split("\\s+"); + CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); + for (String alias : aliasFields) { + if (CollectorConstants.RESPONSE_TIME.equalsIgnoreCase(alias)) { + valueRowBuilder.addColumns(responseTime.toString()); + } else { + Integer index = fieldMapping.get(alias.toLowerCase()); + if (index != null && index < values.length) { + valueRowBuilder.addColumns(values[index]); + } else { + valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); + } + } + } + builder.addValues(valueRowBuilder.build()); + } + } +} diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/smtp/SmtpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/smtp/SmtpCollectImpl.java index 1631d5f9d9c..da285c0d947 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/smtp/SmtpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/smtp/SmtpCollectImpl.java @@ -27,9 +27,9 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.net.smtp.SMTP; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.SmtpProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/snmp/SnmpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/snmp/SnmpCollectImpl.java index 78aa80d7365..361b762d648 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/snmp/SnmpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/snmp/SnmpCollectImpl.java @@ -21,13 +21,14 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.ExecutionException; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.SnmpProtocol; @@ -173,11 +174,7 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri } else { String oid = oidsMap.get(alias); String value = oidsValueMap.get(oid); - if (value != null) { - valueRowBuilder.addColumns(value); - } else { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); - } + valueRowBuilder.addColumns(Objects.requireNonNullElse(value, CommonConstants.NULL_VALUE)); } } builder.addValues(valueRowBuilder.build()); @@ -227,11 +224,7 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri } } } - if (value != null) { - valueRowBuilder.addColumns(value); - } else { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); - } + valueRowBuilder.addColumns(Objects.requireNonNullElse(value, CommonConstants.NULL_VALUE)); } } builder.addValues(valueRowBuilder.build()); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/ssh/SshCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/ssh/SshCollectImpl.java index 1a77c793715..7b9c0ec55ff 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/ssh/SshCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/ssh/SshCollectImpl.java @@ -29,6 +29,7 @@ import java.util.HashMap; import java.util.List; import java.util.Map; +import java.util.Objects; import java.util.Optional; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; @@ -37,11 +38,12 @@ import org.apache.hertzbeat.collector.collect.common.cache.CacheIdentifier; import org.apache.hertzbeat.collector.collect.common.cache.ConnectionCommonCache; import org.apache.hertzbeat.collector.collect.common.cache.SshConnect; +import org.apache.hertzbeat.collector.collect.common.ssh.CommonSshBlacklist; import org.apache.hertzbeat.collector.collect.common.ssh.CommonSshClient; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; import org.apache.hertzbeat.collector.util.PrivateKeyUtils; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.SshProtocol; @@ -84,6 +86,7 @@ public void preCheck(Metrics metrics) throws IllegalArgumentException { @Override public void collect(CollectRep.MetricsData.Builder builder, long monitorId, String app, Metrics metrics) { + long startTime = System.currentTimeMillis(); SshProtocol sshProtocol = metrics.getSsh(); boolean reuseConnection = Boolean.parseBoolean(sshProtocol.getReuseConnection()); @@ -92,6 +95,12 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri ClientSession clientSession = null; try { clientSession = getConnectSession(sshProtocol, timeout, reuseConnection); + if (CommonSshBlacklist.isCommandBlacklisted(sshProtocol.getScript())) { + builder.setCode(CollectRep.Code.FAIL); + builder.setMsg("The command is blacklisted: " + sshProtocol.getScript()); + log.warn("The command is blacklisted: {}", sshProtocol.getScript()); + return; + } channel = clientSession.createExecChannel(sshProtocol.getScript()); ByteArrayOutputStream response = new ByteArrayOutputStream(); channel.setOut(response); @@ -101,6 +110,10 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri list.add(ClientChannelEvent.CLOSED); Collection waitEvents = channel.waitFor(list, timeout); if (waitEvents.contains(ClientChannelEvent.TIMEOUT)) { + // A cancel signal needs to be sent if the execution times out, otherwise the session cannot be closed promptly + int cancelSignal = 3; + channel.getInvertedIn().write(cancelSignal); + channel.getInvertedIn().flush(); throw new SocketTimeoutException("Failed to retrieve command result in time: " + sshProtocol.getScript()); } Long responseTime = System.currentTimeMillis() - startTime; @@ -146,7 +159,10 @@ public void collect(CollectRep.MetricsData.Builder builder, long monitorId, Stri } finally { if (channel != null && channel.isOpen()) { try { - channel.close(); + // Close the SSH channel with the 'false' parameter to ensure the session is not kept alive. + long st = System.currentTimeMillis(); + channel.close(false).addListener(future -> + log.debug("channel is closed in {} ms", System.currentTimeMillis() - st)); } catch (Exception e) { log.error(e.getMessage(), e); } @@ -206,11 +222,7 @@ private void parseResponseDataByNetcat(String result, List aliasFields, CollectRep.ValueRow.Builder valueRowBuilder = CollectRep.ValueRow.newBuilder(); for (String field : aliasFields) { String fieldValue = mapValue.get(field); - if (fieldValue == null) { - valueRowBuilder.addColumns(CommonConstants.NULL_VALUE); - } else { - valueRowBuilder.addColumns(fieldValue); - } + valueRowBuilder.addColumns(Objects.requireNonNullElse(fieldValue, CommonConstants.NULL_VALUE)); } builder.addValues(valueRowBuilder.build()); } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImpl.java index 134e3d54d26..7f2df24f401 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImpl.java @@ -27,11 +27,12 @@ import java.util.Objects; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.commons.net.telnet.TelnetClient; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.TelnetProtocol; @@ -116,7 +117,7 @@ public String supportProtocol() { } private static Map execCmdAndParseResult(TelnetClient telnetClient, String cmd, String app) throws IOException { - if (cmd == null || cmd.trim().length() == 0) { + if (cmd == null || StringUtils.isEmpty(cmd.trim())) { return new HashMap<>(16); } OutputStream outputStream = telnetClient.getOutputStream(); diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImpl.java index 21b47b595d7..4c340e2a10f 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImpl.java @@ -26,9 +26,9 @@ import java.nio.charset.StandardCharsets; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.UdpProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/collect/websocket/WebsocketCollectImpl.java b/collector/src/main/java/org/apache/hertzbeat/collector/collect/websocket/WebsocketCollectImpl.java index 112dd966ccd..4ffa0df5ad4 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/collect/websocket/WebsocketCollectImpl.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/collect/websocket/WebsocketCollectImpl.java @@ -37,8 +37,8 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.collector.collect.AbstractCollect; +import org.apache.hertzbeat.collector.constants.CollectorConstants; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; -import org.apache.hertzbeat.common.constants.CollectorConstants; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.WebsocketProtocol; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/config/CollectorAutoConfiguration.java b/collector/src/main/java/org/apache/hertzbeat/collector/config/CollectorAutoConfiguration.java index e4bfd909556..0d5ccdaaf30 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/config/CollectorAutoConfiguration.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/config/CollectorAutoConfiguration.java @@ -17,12 +17,19 @@ package org.apache.hertzbeat.collector.config; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.context.annotation.ComponentScan; /** * Collector Auto Configuration * @version 2.1 */ -@ComponentScan(basePackages = "org.apache.hertzbeat.collector") + +@AutoConfiguration +@ComponentScan(basePackages = ConfigConstants.PkgConstant.PKG + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.COLLECTOR) public class CollectorAutoConfiguration { } diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/CollectorConstants.java b/collector/src/main/java/org/apache/hertzbeat/collector/constants/CollectorConstants.java similarity index 80% rename from common/src/main/java/org/apache/hertzbeat/common/constants/CollectorConstants.java rename to collector/src/main/java/org/apache/hertzbeat/collector/constants/CollectorConstants.java index ace1ea800bb..0dcfb201b0b 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/constants/CollectorConstants.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/constants/CollectorConstants.java @@ -15,36 +15,24 @@ * limitations under the License. */ -package org.apache.hertzbeat.common.constants; +package org.apache.hertzbeat.collector.constants; + +import org.apache.hertzbeat.common.constants.NetworkConstants; /** - * collector constant + * collector module constant. + * Extends {@link NetworkConstants} */ -public interface CollectorConstants { - String RESPONSE_TIME = "responseTime"; +public interface CollectorConstants extends NetworkConstants { String KEYWORD = "keyword"; - String STATUS_CODE = "statusCode"; - - String ERROR_MSG = "errorMsg"; - - String URL = "url"; - - String HTTP_HEADER = "http://"; - - String HTTPS_HEADER = "https://"; - /** * POSTGRESQL un reachable status code */ String POSTGRESQL_UN_REACHABLE_CODE = "08001"; - String IPV6 = "ipv6"; - - String IPV4 = "ipv4"; - /** * MongoDB Atlas model */ @@ -53,4 +41,12 @@ public interface CollectorConstants { String ZOOKEEPER_APP = "zookeeper"; String ZOOKEEPER_ENVI_HEAD = "Environment:"; -} + + String ERROR_MSG = "errorMsg"; + + + String RESPONSE_TIME = "responseTime"; + + String STATUS_CODE = "StatusCode"; + +} \ No newline at end of file diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CollectorInfoProperties.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CollectorInfoProperties.java index d23d3f825c7..233908afe1d 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CollectorInfoProperties.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CollectorInfoProperties.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.collector.dispatch; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @@ -24,9 +26,10 @@ * Collector info configuration Properties */ @Component -@ConfigurationProperties(prefix = CollectorInfoProperties.INFO_PREFIX) +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.COLLECTOR + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.INFO) public class CollectorInfoProperties { - protected static final String INFO_PREFIX = "collector.info"; private String version; private String ip; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcher.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcher.java index 831bd082fc3..7db5dfe79ab 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcher.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcher.java @@ -368,10 +368,13 @@ private List> getConfigmapFromPreCollectData(CollectRep.M } return mapList; } - + + /** + * Metrics times. + */ @Data @AllArgsConstructor - private static class MetricsTime { + protected static class MetricsTime { private long startTime; private Metrics metrics; private Timeout timeout; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchConstants.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchConstants.java index 5fb285ed5d5..8be5eab9bc0 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchConstants.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchConstants.java @@ -132,6 +132,16 @@ public interface DispatchConstants { */ String PROTOCOL_IMAP = "imap"; + /** + * protocol script + */ + String PROTOCOL_SCRIPT = "script"; + + /** + * protocol mqtt + */ + String PROTOCOL_MQTT = "mqtt"; + // Protocol type related - end // http protocol related - start should reuse HttpHeaders as much as possible diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchProperties.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchProperties.java index a844f0569e8..4f22b52745e 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchProperties.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/DispatchProperties.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.collector.dispatch; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; @@ -24,14 +26,11 @@ * Schedule Distribution Task Configuration Properties */ @Component -@ConfigurationProperties(prefix = DispatchProperties.DISPATCH_PREFIX) +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.COLLECTOR + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.DISPATCH) public class DispatchProperties { - /** - * Schedule Distribution Task Configuration Properties - */ - protected static final String DISPATCH_PREFIX = "collector.dispatch"; - /** * Scheduling entry configuration properties */ diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java index 118e8d5a2a2..a54a391c2e6 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollect.java @@ -17,13 +17,6 @@ package org.apache.hertzbeat.collector.dispatch; -import java.util.Collections; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import java.util.stream.Collectors; import lombok.Data; import lombok.extern.slf4j.Slf4j; import org.apache.commons.jexl3.JexlExpression; @@ -41,6 +34,13 @@ import org.apache.hertzbeat.common.util.CommonUtil; import org.apache.hertzbeat.common.util.JexlExpressionRunner; import org.apache.hertzbeat.common.util.Pair; +import java.util.Collections; +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Objects; +import java.util.stream.Collectors; /** * metrics collection @@ -134,7 +134,7 @@ public void run() { // for prometheus auto if (DispatchConstants.PROTOCOL_PROMETHEUS.equalsIgnoreCase(metrics.getProtocol())) { List metricsData = PrometheusAutoCollectImpl - .getInstance().collect(response, metrics); + .getInstance().collect(response, metrics); validateResponse(metricsData.stream().findFirst().orElse(null)); collectDataDispatch.dispatchCollectData(timeout, metrics, metricsData); return; @@ -145,10 +145,10 @@ public void run() { AbstractCollect abstractCollect = CollectStrategyFactory.invoke(metrics.getProtocol()); if (abstractCollect == null) { log.error("[Dispatcher] - not support this: app: {}, metrics: {}, protocol: {}.", - app, metrics.getName(), metrics.getProtocol()); + app, metrics.getName(), metrics.getProtocol()); response.setCode(CollectRep.Code.FAIL); response.setMsg("not support " + app + ", " - + metrics.getName() + ", " + metrics.getProtocol()); + + metrics.getName() + ", " + metrics.getProtocol()); } else { try { abstractCollect.preCheck(metrics); @@ -158,7 +158,7 @@ public void run() { if (msg == null && e.getCause() != null) { msg = e.getCause().getMessage(); } - if (e instanceof IllegalArgumentException){ + if (e instanceof IllegalArgumentException) { log.error("[Metrics PreCheck]: {}.", msg, e); } else { log.error("[Metrics Collect]: {}.", msg, e); @@ -209,19 +209,19 @@ private void calculateFields(Metrics metrics, CollectRep.MetricsData.Builder col // eg: database_pages=Database pages unconventional mapping Map fieldAliasMap = new HashMap<>(8); Map fieldExpressionMap = metrics.getCalculates() - .stream() - .map(cal -> transformCal(cal, fieldAliasMap)) - .filter(Objects::nonNull) - .collect(Collectors.toMap(arr -> (String) arr[0], arr -> (JexlExpression) arr[1], (oldValue, newValue) -> newValue)); + .stream() + .map(cal -> transformCal(cal, fieldAliasMap)) + .filter(Objects::nonNull) + .collect(Collectors.toMap(arr -> (String) arr[0], arr -> (JexlExpression) arr[1], (oldValue, newValue) -> newValue)); if (metrics.getUnits() == null) { metrics.setUnits(Collections.emptyList()); } Map> fieldUnitMap = metrics.getUnits() - .stream() - .map(this::transformUnit) - .filter(Objects::nonNull) - .collect(Collectors.toMap(arr -> (String) arr[0], arr -> (Pair) arr[1], (oldValue, newValue) -> newValue)); + .stream() + .map(this::transformUnit) + .filter(Objects::nonNull) + .collect(Collectors.toMap(arr -> (String) arr[0], arr -> (Pair) arr[1], (oldValue, newValue) -> newValue)); List fields = metrics.getFields(); List aliasFields = metrics.getAliasFields(); @@ -238,7 +238,7 @@ private void calculateFields(Metrics metrics, CollectRep.MetricsData.Builder col aliasFieldValueMap.put(aliasField, aliasFieldValue); // whether the alias field is a number CollectUtil.DoubleAndUnit doubleAndUnit = CollectUtil - .extractDoubleAndUnitFromStr(aliasFieldValue); + .extractDoubleAndUnitFromStr(aliasFieldValue); if (doubleAndUnit != null && doubleAndUnit.getValue() != null) { fieldValueMap.put(aliasField, doubleAndUnit.getValue()); if (doubleAndUnit.getUnit() != null) { @@ -297,7 +297,7 @@ private void calculateFields(Metrics metrics, CollectRep.MetricsData.Builder col final byte fieldType = field.getType(); if (fieldType == CommonConstants.TYPE_NUMBER) { CollectUtil.DoubleAndUnit doubleAndUnit = CollectUtil - .extractDoubleAndUnitFromStr(value); + .extractDoubleAndUnitFromStr(value); final Double tempValue = doubleAndUnit == null ? null : doubleAndUnit.getValue(); value = tempValue == null ? null : String.valueOf(tempValue); aliasFieldUnit = doubleAndUnit == null ? null : doubleAndUnit.getUnit(); @@ -343,7 +343,7 @@ private void calculateFields(Metrics metrics, CollectRep.MetricsData.Builder col /** - * @param cal cal + * @param cal cal * @param fieldAliasMap field alias map * @return expr */ @@ -364,6 +364,7 @@ private Object[] transformCal(String cal, Map fieldAliasMap) { /** * transform unit + * * @param unit unit * @return units */ @@ -419,7 +420,7 @@ private void validateResponse(CollectRep.MetricsData metricsData) { private void setNewThreadName(long monitorId, String app, long startTime, Metrics metrics) { String builder = monitorId + "-" + app + "-" + metrics.getName() - + "-" + String.valueOf(startTime).substring(9); + + "-" + String.valueOf(startTime).substring(9); Thread.currentThread().setName(builder); } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueue.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueue.java index c927a71faa6..b53f5fdc3a3 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueue.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueue.java @@ -18,7 +18,6 @@ package org.apache.hertzbeat.collector.dispatch; import java.util.concurrent.PriorityBlockingQueue; -import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import org.springframework.stereotype.Component; @@ -40,7 +39,7 @@ public void addJob(MetricsCollect job) { } public MetricsCollect getJob() throws InterruptedException { - return jobQueue.poll(2, TimeUnit.SECONDS); + return jobQueue.take(); } } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobService.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobService.java index 940cea20424..35d15b80d25 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobService.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobService.java @@ -17,12 +17,14 @@ package org.apache.hertzbeat.collector.dispatch.entrance.internal; -import java.util.ArrayList; import java.util.LinkedList; import java.util.List; +import java.util.Optional; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; +import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; import org.apache.hertzbeat.collector.dispatch.DispatchProperties; import org.apache.hertzbeat.collector.dispatch.WorkerPool; import org.apache.hertzbeat.collector.dispatch.entrance.CollectServer; @@ -51,7 +53,7 @@ public class CollectJobService { private final WorkerPool workerPool; private final String collectorIdentity; - + private String mode = null; private CollectServer collectServer; @@ -59,18 +61,24 @@ public class CollectJobService { public CollectJobService(TimerDispatch timerDispatch, DispatchProperties properties, WorkerPool workerPool) { this.timerDispatch = timerDispatch; this.workerPool = workerPool; - if (properties != null && properties.getEntrance() != null && properties.getEntrance().getNetty() != null - && properties.getEntrance().getNetty().isEnabled()) { - mode = properties.getEntrance().getNetty().getMode(); - String collectorName = properties.getEntrance().getNetty().getIdentity(); - if (StringUtils.hasText(collectorName)) { - collectorIdentity = collectorName; - } else { - collectorIdentity = IpDomainUtil.getCurrentHostName() + COLLECTOR_STR; - log.info("user not config this collector identity, use [host name - host ip] default: {}.", collectorIdentity); - } - } else { + + Optional nettyPropertiesOptional = Optional.ofNullable(properties) + .map(DispatchProperties::getEntrance) + .map(DispatchProperties.EntranceProperties::getNetty) + .filter(DispatchProperties.EntranceProperties.NettyProperties::isEnabled); + + if (nettyPropertiesOptional.isEmpty()) { collectorIdentity = CommonConstants.MAIN_COLLECTOR_NODE; + return; + } + + DispatchProperties.EntranceProperties.NettyProperties nettyProperties = nettyPropertiesOptional.get(); + mode = nettyProperties.getMode(); + if (StringUtils.hasText(nettyProperties.getIdentity())) { + collectorIdentity = nettyProperties.getIdentity(); + } else { + collectorIdentity = IpDomainUtil.getCurrentHostName() + COLLECTOR_STR; + log.info("user not config this collector identity, use [host name - host ip] default: {}.", collectorIdentity); } } @@ -109,13 +117,12 @@ public void response(List responseMetrics) { public void collectSyncOneTimeJobData(Job oneTimeJob) { workerPool.executeJob(() -> { List metricsDataList = this.collectSyncJobData(oneTimeJob); - List jsons = new ArrayList<>(metricsDataList.size()); - for (CollectRep.MetricsData metricsData : metricsDataList) { - String json = ProtoJsonUtil.toJsonStr(metricsData); - if (json != null) { - jsons.add(json); - } - } + List jsons = CollectionUtils.emptyIfNull(metricsDataList) + .stream() + .map(ProtoJsonUtil::toJsonStr) + .filter(StringUtils::hasText) + .collect(Collectors.toList()); + String response = JsonUtil.toJson(jsons); ClusterMsg.Message message = ClusterMsg.Message.newBuilder() .setMsg(response) @@ -165,7 +172,7 @@ public void sendAsyncCollectData(CollectRep.MetricsData metricsData) { public String getCollectorIdentity() { return collectorIdentity; } - + public String getCollectorMode() { return mode; } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/processor/GoOfflineProcessor.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/processor/GoOfflineProcessor.java index 1e8dbb2b041..007b77053ba 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/processor/GoOfflineProcessor.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/entrance/processor/GoOfflineProcessor.java @@ -41,7 +41,6 @@ public ClusterMsg.Message handle(ChannelHandlerContext ctx, ClusterMsg.Message m } timerDispatch.goOffline(); log.info("receive offline message and handle success"); - message.getMsg(); if (message.getMsg().contains(CommonConstants.COLLECTOR_AUTH_FAILED)) { log.error("[Auth Failed]receive client auth failed message and go offline. {}", message.getMsg()); return null; diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueue.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueue.java index 68f7c5c6212..5fbcb4a7ba5 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueue.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueue.java @@ -33,8 +33,8 @@ @Configuration @ConditionalOnProperty( prefix = NettyDataQueue.NETTY_DATA_QUEUE_PREFIX, - name = "type", - havingValue = "netty" + name = NettyDataQueue.NAME, + havingValue = NettyDataQueue.NETTY ) public class NettyDataQueue implements CommonDataQueue { @@ -42,7 +42,17 @@ public class NettyDataQueue implements CommonDataQueue { * netty data queue prefix. */ protected static final String NETTY_DATA_QUEUE_PREFIX = "common.queue"; - + + /** + * name constants + */ + protected static final String NAME = "type"; + + /** + * havingValue constants + */ + protected static final String NETTY = "netty"; + private final CollectJobService collectJobService; public NettyDataQueue(CollectJobService collectJobService) { diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/timer/HashedWheelTimer.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/timer/HashedWheelTimer.java index eca634e056a..866fda29860 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/timer/HashedWheelTimer.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/timer/HashedWheelTimer.java @@ -644,7 +644,7 @@ public void expire() { task.run(this); } catch (Throwable t) { if (logger.isWarnEnabled()) { - logger.warn("An exception was thrown by " + TimerTask.class.getSimpleName() + '.', t); + logger.warn("An exception was thrown by {}.", TimerTask.class.getSimpleName(), t); } } } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/DataUnit.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/DataUnit.java index 61dc33d632f..8d1068da458 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/DataUnit.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/DataUnit.java @@ -71,7 +71,7 @@ public enum DataUnit { private final String unit; private final long scale; - private DataUnit(String unit, long scale) { + DataUnit(String unit, long scale) { this.unit = unit; this.scale = scale; } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/TimeLengthUnit.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/TimeLengthUnit.java index 1e90c0e2614..b7313a90558 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/TimeLengthUnit.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/TimeLengthUnit.java @@ -53,7 +53,7 @@ public enum TimeLengthUnit { private final String unit; private final long scale; - private TimeLengthUnit(String unit, long scale) { + TimeLengthUnit(String unit, long scale) { this.unit = unit; this.scale = scale; } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/UnitConvert.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/UnitConvert.java index c1b5c31b093..fd50507adf5 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/UnitConvert.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/UnitConvert.java @@ -26,9 +26,10 @@ public interface UnitConvert { /** * convert originUnit value to newUnit value - * @param value The collected value + * + * @param value The collected value * @param originUnit The unit to which the original value corresponds. - * @param newUnit The unit to display + * @param newUnit The unit to display * @return Converted value */ String convert(String value, String originUnit, String newUnit); @@ -36,6 +37,7 @@ public interface UnitConvert { /** * check the unit and confirm to use this implement class * Checks for units before and after xxx -> xxx, also to make sure that the implementation class is being used + * * @param unit unit * @return true/false */ diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/AbstractUnitConvert.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/AbstractUnitConvert.java new file mode 100644 index 00000000000..0669416a6f3 --- /dev/null +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/AbstractUnitConvert.java @@ -0,0 +1,74 @@ +/* + * 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.hertzbeat.collector.dispatch.unit.impl; + +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.collector.dispatch.unit.UnitConvert; +import java.math.BigDecimal; +import java.math.RoundingMode; +import java.util.Map; + +/** + * abstract UnitConvert + */ +@Slf4j +public abstract class AbstractUnitConvert implements UnitConvert { + + + @Override + public String convert(String value, String originUnit, String newUnit) { + if (StringUtils.isBlank(value)) { + return null; + } + if (!checkUnit(originUnit) || !checkUnit(newUnit)) { + return null; + } + + if (originUnit.equalsIgnoreCase(newUnit)) { + log.warn("The origin unit is the same as the new unit, no need to convert"); + return value; + } + BigDecimal wrappedValue = new BigDecimal(value); + + Map unitMap = convertUnitEnumToMap(); + + //There is no need to check again,as both the originUnit and newUnit have already been checked for existence. + Long multipleScale = unitMap.get(originUnit.toUpperCase()); + wrappedValue = wrappedValue.multiply(new BigDecimal(multipleScale)); + + Long divideScale = unitMap.get(newUnit.toUpperCase()); + wrappedValue = wrappedValue.divide(new BigDecimal(divideScale), 12, RoundingMode.HALF_UP); + + return wrappedValue.setScale(4, RoundingMode.HALF_UP).stripTrailingZeros().toPlainString(); + } + + @Override + public boolean checkUnit(String unit) { + if (StringUtils.isBlank(unit)) { + return false; + } + Map convertedUnitEnumToMap = convertUnitEnumToMap(); + return convertedUnitEnumToMap.containsKey(unit.toUpperCase()); + } + + /*** + * this method can be used to convert specific enum to map by the Inherited class + */ + abstract Map convertUnitEnumToMap(); +} diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/DataSizeConvert.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/DataSizeConvert.java index 7a8e405ac74..1308c248422 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/DataSizeConvert.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/DataSizeConvert.java @@ -17,57 +17,26 @@ package org.apache.hertzbeat.collector.dispatch.unit.impl; -import java.math.BigDecimal; -import java.math.RoundingMode; -import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.collector.dispatch.unit.DataUnit; -import org.apache.hertzbeat.collector.dispatch.unit.UnitConvert; import org.springframework.stereotype.Component; +import java.util.Arrays; +import java.util.Map; +import java.util.stream.Collectors; /** * the convert of data size */ -@Slf4j @Component -public final class DataSizeConvert implements UnitConvert { +public final class DataSizeConvert extends AbstractUnitConvert { - @Override - public String convert(String value, String originUnit, String newUnit) { - if (value == null || value.isEmpty()) { - return null; - } - if (!checkUnit(originUnit) || !checkUnit(newUnit)) { - return null; - } - if (originUnit.equalsIgnoreCase(newUnit)) { - log.warn("The origin unit is the same as the new unit, no need to convert"); - return value; - } - BigDecimal size = new BigDecimal(value); - // Idea: Value is converted to bytes through origin unit, - // and then converted to the value corresponding to the new unit unit - for (DataUnit dataUnit : DataUnit.values()) { - if (dataUnit.getUnit().equals(originUnit.toUpperCase())) { - size = size.multiply(new BigDecimal(dataUnit.getScale())); - } - if (dataUnit.getUnit().equals(newUnit.toUpperCase())) { - size = size.divide(new BigDecimal(dataUnit.getScale()), 12, RoundingMode.HALF_UP); - } - } - return size.setScale(4, RoundingMode.HALF_UP).stripTrailingZeros().toPlainString(); - } + /** + * convert the enumeration of DataUnit to map where the key is the unit and the value is the conversion coefficient. + */ @Override - public boolean checkUnit(String unit) { - if (unit == null || unit.isEmpty()) { - return false; - } - for (DataUnit dataUnit : DataUnit.values()) { - // not case-sensitive - if (dataUnit.getUnit().equals(unit.toUpperCase())) { - return true; - } - } - return false; + Map convertUnitEnumToMap() { + return Arrays.stream(DataUnit.values()).collect(Collectors.toMap(DataUnit::getUnit, DataUnit::getScale)); } + + } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/TimeLengthConvert.java b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/TimeLengthConvert.java index 18fb266ada2..9766905be02 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/TimeLengthConvert.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/dispatch/unit/impl/TimeLengthConvert.java @@ -17,49 +17,26 @@ package org.apache.hertzbeat.collector.dispatch.unit.impl; -import java.math.BigDecimal; -import java.math.RoundingMode; import org.apache.hertzbeat.collector.dispatch.unit.TimeLengthUnit; -import org.apache.hertzbeat.collector.dispatch.unit.UnitConvert; import org.springframework.stereotype.Component; +import java.util.Arrays; +import java.util.Map; +import java.util.stream.Collectors; /** * the convert of time length */ @Component -public final class TimeLengthConvert implements UnitConvert { +public final class TimeLengthConvert extends AbstractUnitConvert { + /** + * convert the enumeration of TimeLengthUnit to map where the key is the unit and the value is the conversion coefficient. + */ @Override - public String convert(String value, String originUnit, String newUnit) { - if (value == null || value.isEmpty()) { - return null; - } - BigDecimal length = new BigDecimal(value); - // Idea: Value is converted to nanoseconds through origin unit, - // and then converted to the value corresponding to the new unit unit - for (TimeLengthUnit timeLengthUnit : TimeLengthUnit.values()) { - if (timeLengthUnit.getUnit().equals(originUnit.toUpperCase())) { - length = length.multiply(new BigDecimal(timeLengthUnit.getScale())); - } - if (timeLengthUnit.getUnit().equals(newUnit.toUpperCase())) { - length = length.divide(new BigDecimal(timeLengthUnit.getScale()), 12, RoundingMode.HALF_UP); - } - } - return length.setScale(4, RoundingMode.HALF_UP).stripTrailingZeros().toPlainString(); + Map convertUnitEnumToMap() { + return Arrays.stream(TimeLengthUnit.values()).collect(Collectors.toMap(TimeLengthUnit::getUnit, TimeLengthUnit::getScale)); } - @Override - public boolean checkUnit(String unit) { - if (unit == null || unit.isEmpty()) { - return false; - } - for (TimeLengthUnit timeUnit : TimeLengthUnit.values()) { - // not case-sensitive - if (timeUnit.getUnit().equals(unit.toUpperCase())) { - return true; - } - } - return false; - } + } diff --git a/collector/src/main/java/org/apache/hertzbeat/collector/util/TimeExpressionUtil.java b/collector/src/main/java/org/apache/hertzbeat/collector/util/TimeExpressionUtil.java index 69f16ca3c6c..a34d9afa24c 100644 --- a/collector/src/main/java/org/apache/hertzbeat/collector/util/TimeExpressionUtil.java +++ b/collector/src/main/java/org/apache/hertzbeat/collector/util/TimeExpressionUtil.java @@ -36,7 +36,7 @@ /** * time expression deal util */ -public class TimeExpressionUtil { +public final class TimeExpressionUtil { private TimeExpressionUtil() { } diff --git a/collector/src/main/resources/META-INF/services/org.apache.hertzbeat.collector.collect.AbstractCollect b/collector/src/main/resources/META-INF/services/org.apache.hertzbeat.collector.collect.AbstractCollect index b033c4f2a1d..91ee9e1b513 100644 --- a/collector/src/main/resources/META-INF/services/org.apache.hertzbeat.collector.collect.AbstractCollect +++ b/collector/src/main/resources/META-INF/services/org.apache.hertzbeat.collector.collect.AbstractCollect @@ -24,3 +24,5 @@ org.apache.hertzbeat.collector.collect.httpsd.HttpsdImpl org.apache.hertzbeat.collector.collect.redfish.RedfishCollectImpl org.apache.hertzbeat.collector.collect.nebulagraph.NgqlCollectImpl org.apache.hertzbeat.collector.collect.imap.ImapCollectImpl +org.apache.hertzbeat.collector.collect.script.ScriptCollectImpl +org.apache.hertzbeat.collector.collect.mqtt.MqttCollectImpl diff --git a/collector/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/collector/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 85622a853b4..88a05890b6f 100644 --- a/collector/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/collector/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -org.apache.hertzbeat.collector.config.CollectorAutoConfiguration \ No newline at end of file +org.apache.hertzbeat.collector.config.CollectorAutoConfiguration diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/dns/DnsCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/dns/DnsCollectImplTest.java index 6ba1b09f3a5..e362c1890e9 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/dns/DnsCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/dns/DnsCollectImplTest.java @@ -19,7 +19,6 @@ import static org.junit.jupiter.api.Assertions.assertNotNull; - import java.util.Collections; import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.DnsProtocol; @@ -30,7 +29,6 @@ /** * Test case for {@link DnsCollectImpl} - * */ public class DnsCollectImplTest { private DnsProtocol dnsProtocol; diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/ftp/FtpCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/ftp/FtpCollectImplTest.java index 2cd0a13c726..f4737bd49c9 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/ftp/FtpCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/ftp/FtpCollectImplTest.java @@ -60,7 +60,7 @@ void testPreCheck() { metrics.setName("server"); metrics.setFtp(ftpProtocol); metrics.setAliasFields(aliasField); - assertThrows(IllegalArgumentException.class, ()-> ftpCollectImpl.preCheck(metrics)); + assertThrows(IllegalArgumentException.class, () -> ftpCollectImpl.preCheck(metrics)); } @@ -144,4 +144,4 @@ void testAnonymousCollect() throws IOException { } -} \ No newline at end of file +} diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/http/promethus/exporter/ExporterParserTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/http/promethus/exporter/ExporterParserTest.java index 69145d23a93..680c245651c 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/http/promethus/exporter/ExporterParserTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/http/promethus/exporter/ExporterParserTest.java @@ -28,45 +28,46 @@ class ExporterParserTest { @Test void textToMetric() { - String resp = "# HELP disk_total_bytes Total space for path\n" - + "# TYPE disk_total_bytes gauge\n" - + "disk_total_bytes{path=\"C:\\\\hertzbeat\\\\repo\\\\testpath\",} 4.29496725504E11\n" - + "# HELP go_gc_cycles_automatic_gc_cycles_total Count of completed GC cycles generated by the Go runtime.\n" - + "# TYPE go_gc_cycles_automatic_gc_cycles_total counter\n" - + "go_gc_cycles_automatic_gc_cycles_total 0\n" - + "# HELP go_gc_cycles_forced_gc_cycles_total Count of completed GC cycles forced by the application.\n" - + "# TYPE go_gc_cycles_forced_gc_cycles_total counter\n" - + "go_gc_cycles_forced_gc_cycles_total 0\n" - + "# HELP go_gc_cycles_total_gc_cycles_total Count of all completed GC cycles.\n" - + "# TYPE go_gc_cycles_total_gc_cycles_total counter\n" - + "go_gc_cycles_total_gc_cycles_total 0\n" - + "# HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles.\n" - + "# TYPE go_gc_duration_seconds summary\n" - + "go_gc_duration_seconds{quantile=\"0\"} 0\n" - + "go_gc_duration_seconds{quantile=\"0.25\"} 0\n" - + "go_gc_duration_seconds{quantile=\"0.5\"} 0\n" - + "go_gc_duration_seconds{quantile=\"0.75\"} 0\n" - + "go_gc_duration_seconds{quantile=\"1\"} 0\n" - + "# TYPE jvm info\n" - + "# HELP jvm VM version info\n" - + "jvm_info{runtime=\"OpenJDK Runtime Environment\",vendor=\"Azul Systems, Inc.\",version=\"11.0.13+8-LTS\"} 1.0\n" - + "# TYPE jvm_gc_collection_seconds summary\n" - + "# HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds.\n" - + "jvm_gc_collection_seconds_count{gc=\"G1 Young Generation\"} 10.0\n" - + "jvm_gc_collection_seconds_sum{gc=\"G1 Young Generation\"} 0.051\n" - + "jvm_gc_collection_seconds_count{gc=\"G1 Old Generation\"} 0.0\n" - + "jvm_gc_collection_seconds_sum{gc=\"G1 Old Generation\"} 0.0\n" - + "# TYPE resource_group_aggregate_usage_secs summary\n" - + "resource_group_aggregate_usage_secs{cluster=\"standalone\",quantile=\"0.5\"} 2.69245E-4\n" - + "resource_group_aggregate_usage_secs{cluster=\"standalone\",quantile=\"0.9\"} 3.49601E-4\n" - + "resource_group_aggregate_usage_secs_count{cluster=\"standalone\"} 13.0\n" - + "resource_group_aggregate_usage_secs_sum{cluster=\"standalone\"} 0.004832498\n" - + "resource_group_aggregate_usage_secs_created{cluster=\"standalone\"} 1.715842140749E9\n" - + "# TYPE metadata_store_ops_latency_ms histogram\n" - + "metadata_store_ops_latency_ms_bucket{cluster=\"standalone\",name=\"metadata-store\",type=\"get\",status=\"success\",le=\"1.0\"} 59.0\n" - + "metadata_store_ops_latency_ms_bucket{cluster=\"standalone\",name=\"metadata-store\",type=\"get\",status=\"success\",le=\"3.0\"} 61.0\n" - + "metadata_store_ops_latency_ms_bucket{cluster=\"standalone\",name=\"metadata-store\",type=\"get\",status=\"success\",le=\"5.0\"} 61.0\n" - + "# EOF"; + String resp = """ + # HELP disk_total_bytes Total space for path + # TYPE disk_total_bytes gauge + disk_total_bytes{path="C:\\\\hertzbeat\\\\repo\\\\testpath",} 4.29496725504E11 + # HELP go_gc_cycles_automatic_gc_cycles_total Count of completed GC cycles generated by the Go runtime. + # TYPE go_gc_cycles_automatic_gc_cycles_total counter + go_gc_cycles_automatic_gc_cycles_total 0 + # HELP go_gc_cycles_forced_gc_cycles_total Count of completed GC cycles forced by the application. + # TYPE go_gc_cycles_forced_gc_cycles_total counter + go_gc_cycles_forced_gc_cycles_total 0 + # HELP go_gc_cycles_total_gc_cycles_total Count of all completed GC cycles. + # TYPE go_gc_cycles_total_gc_cycles_total counter + go_gc_cycles_total_gc_cycles_total 0 + # HELP go_gc_duration_seconds A summary of the pause duration of garbage collection cycles. + # TYPE go_gc_duration_seconds summary + go_gc_duration_seconds{quantile="0"} 0 + go_gc_duration_seconds{quantile="0.25"} 0 + go_gc_duration_seconds{quantile="0.5"} 0 + go_gc_duration_seconds{quantile="0.75"} 0 + go_gc_duration_seconds{quantile="1"} 0 + # TYPE jvm info + # HELP jvm VM version info + jvm_info{runtime="OpenJDK Runtime Environment",vendor="Azul Systems, Inc.",version="11.0.13+8-LTS"} 1.0 + # TYPE jvm_gc_collection_seconds summary + # HELP jvm_gc_collection_seconds Time spent in a given JVM garbage collector in seconds. + jvm_gc_collection_seconds_count{gc="G1 Young Generation"} 10.0 + jvm_gc_collection_seconds_sum{gc="G1 Young Generation"} 0.051 + jvm_gc_collection_seconds_count{gc="G1 Old Generation"} 0.0 + jvm_gc_collection_seconds_sum{gc="G1 Old Generation"} 0.0 + # TYPE resource_group_aggregate_usage_secs summary + resource_group_aggregate_usage_secs{cluster="standalone",quantile="0.5"} 2.69245E-4 + resource_group_aggregate_usage_secs{cluster="standalone",quantile="0.9"} 3.49601E-4 + resource_group_aggregate_usage_secs_count{cluster="standalone"} 13.0 + resource_group_aggregate_usage_secs_sum{cluster="standalone"} 0.004832498 + resource_group_aggregate_usage_secs_created{cluster="standalone"} 1.715842140749E9 + # TYPE metadata_store_ops_latency_ms histogram + metadata_store_ops_latency_ms_bucket{cluster="standalone",name="metadata-store",type="get",status="success",le="1.0"} 59.0 + metadata_store_ops_latency_ms_bucket{cluster="standalone",name="metadata-store",type="get",status="success",le="3.0"} 61.0 + metadata_store_ops_latency_ms_bucket{cluster="standalone",name="metadata-store",type="get",status="success",le="5.0"} 61.0 + # EOF"""; ExporterParser parser = new ExporterParser(); Map metricFamilyMap = parser.textToMetric(resp); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImplTest.java index 90e393c2de3..aaab0949f03 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/icmp/IcmpCollectImplTest.java @@ -62,9 +62,9 @@ class IcmpCollectImplTest { @BeforeEach void setUp() { icmpProtocol = IcmpProtocol.builder() - .host("127.0.0.1") - .timeout("3000") - .build(); + .host("127.0.0.1") + .timeout("3000") + .build(); List aliasField = new ArrayList<>(); aliasField.add("responseTime"); metrics = new Metrics(); @@ -76,16 +76,10 @@ void setUp() { @Test void testPreCheck() { - assertDoesNotThrow(() -> { - icmpCollect.preCheck(metrics); - }); - assertThrows(IllegalArgumentException.class, () -> { - icmpCollect.preCheck(null); - }); + assertDoesNotThrow(() -> icmpCollect.preCheck(metrics)); + assertThrows(IllegalArgumentException.class, () -> icmpCollect.preCheck(null)); metrics.setIcmp(null); - assertThrows(IllegalArgumentException.class, () -> { - icmpCollect.preCheck(null); - }); + assertThrows(IllegalArgumentException.class, () -> icmpCollect.preCheck(null)); } @Test diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/imap/ImapCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/imap/ImapCollectImplTest.java index eae79039afc..2e2b7a59db5 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/imap/ImapCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/imap/ImapCollectImplTest.java @@ -68,31 +68,25 @@ void setUp() { @Test void preCheck() { - assertDoesNotThrow(() -> { - imapCollect.preCheck(metrics); - }); - assertThrows(NullPointerException.class, () -> { - imapCollect.preCheck(null); - }); + assertDoesNotThrow(() -> imapCollect.preCheck(metrics)); + assertThrows(NullPointerException.class, () -> imapCollect.preCheck(null)); metrics.setImap(null); - assertThrows(NullPointerException.class, () -> { - imapCollect.preCheck(null); - }); + assertThrows(NullPointerException.class, () -> imapCollect.preCheck(null)); } @Test void enableSslCollect() { String response = "* STATUS \"testFolder\" (MESSAGES 3 RECENT 2 UNSEEN 1)"; MockedConstruction mocked = Mockito.mockConstruction(IMAPSClient.class, - (imapsClient, context) -> { - Mockito.doNothing().when(imapsClient).connect(Mockito.anyString(), Mockito.anyInt()); - Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).login(Mockito.anyString(), Mockito.anyString()); - Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).isConnected(); - Mockito.when(imapsClient.sendCommand(Mockito.anyString())).thenReturn(0); - Mockito.when(imapsClient.getReplyString()).thenReturn(response); - Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).logout(); - Mockito.doNothing().when(imapsClient).disconnect(); - }); + (imapsClient, context) -> { + Mockito.doNothing().when(imapsClient).connect(Mockito.anyString(), Mockito.anyInt()); + Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).login(Mockito.anyString(), Mockito.anyString()); + Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).isConnected(); + Mockito.when(imapsClient.sendCommand(Mockito.anyString())).thenReturn(0); + Mockito.when(imapsClient.getReplyString()).thenReturn(response); + Mockito.doAnswer(invocationOnMock -> true).when(imapsClient).logout(); + Mockito.doNothing().when(imapsClient).disconnect(); + }); imapCollect.preCheck(metrics); imapCollect.collect(builder, 1L, "testIMAP", metrics); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImplTest.java index ea886607246..401eb22627b 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/memcached/MemcachedCollectImplTest.java @@ -69,26 +69,20 @@ void setUp() { @Test void testPreCheck() { - assertDoesNotThrow(() -> { - memcachedCollect.preCheck(metrics); - }); - assertThrows(IllegalArgumentException.class, () -> { - memcachedCollect.preCheck(null); - }); + assertDoesNotThrow(() -> memcachedCollect.preCheck(metrics)); + assertThrows(IllegalArgumentException.class, () -> memcachedCollect.preCheck(null)); metrics.setIcmp(null); - assertThrows(IllegalArgumentException.class, () -> { - memcachedCollect.preCheck(null); - }); + assertThrows(IllegalArgumentException.class, () -> memcachedCollect.preCheck(null)); } @Test void testCollectCmdResponse() { String httpResponse = """ - STAT pid 1 - STAT uptime 2 - END - """; + STAT pid 1 + STAT uptime 2 + END + """; OutputStream outputStreamMock = Mockito.mock(OutputStream.class); byte[] responseBytes = httpResponse.getBytes(StandardCharsets.UTF_8); InputStream inputStream = new ByteArrayInputStream(responseBytes); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImplTest.java index 25f6050a333..98c2c978e1d 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/nebulagraph/NgqlCollectImplTest.java @@ -50,11 +50,11 @@ class NgqlCollectImplTest { @BeforeEach public void init() { ngqlProtocol = NgqlProtocol.builder() - .host("127.0.0.1") - .port("9669") - .password("123456") - .username("root") - .timeout("60000").build(); + .host("127.0.0.1") + .port("9669") + .password("123456") + .username("root") + .timeout("60000").build(); } @Test @@ -74,11 +74,11 @@ void testOneRowCollect() { result.add(data); MockedConstruction mocked = - Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { - Mockito.doNothing().when(template).closeSessionAndPool(); - Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); - Mockito.when(template.executeCommand(ngql)).thenReturn(result); - }); + Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { + Mockito.doNothing().when(template).closeSessionAndPool(); + Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); + Mockito.when(template.executeCommand(ngql)).thenReturn(result); + }); Metrics metrics = new Metrics(); metrics.setNgql(ngqlProtocol); @@ -108,11 +108,11 @@ void testFilterCountCollect() { result.add(data); } MockedConstruction mocked = - Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { - Mockito.doNothing().when(template).closeSessionAndPool(); - Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); - Mockito.when(template.executeCommand("SHOW HOSTS")).thenReturn(result); - }); + Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { + Mockito.doNothing().when(template).closeSessionAndPool(); + Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); + Mockito.when(template.executeCommand("SHOW HOSTS")).thenReturn(result); + }); Metrics metrics = new Metrics(); metrics.setNgql(ngqlProtocol); @@ -141,11 +141,11 @@ void testMultiRowCollect() { result.add(data); } MockedConstruction mocked = - Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { - Mockito.doNothing().when(template).closeSessionAndPool(); - Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); - Mockito.when(template.executeCommand(command)).thenReturn(result); - }); + Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { + Mockito.doNothing().when(template).closeSessionAndPool(); + Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); + Mockito.when(template.executeCommand(command)).thenReturn(result); + }); Metrics metrics = new Metrics(); metrics.setNgql(ngqlProtocol); @@ -179,11 +179,11 @@ void testColumnsCollect() { result.add(data); } MockedConstruction mocked = - Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { - Mockito.doNothing().when(template).closeSessionAndPool(); - Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); - Mockito.when(template.executeCommand(command)).thenReturn(result); - }); + Mockito.mockConstruction(NebulaTemplate.class, (template, context) -> { + Mockito.doNothing().when(template).closeSessionAndPool(); + Mockito.when(template.initSession(ngqlProtocol)).thenReturn(true); + Mockito.when(template.executeCommand(command)).thenReturn(result); + }); Metrics metrics = new Metrics(); metrics.setNgql(ngqlProtocol); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImplTest.java index fdaf19d9b47..fb05011231b 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/nginx/NginxCollectImplTest.java @@ -81,7 +81,7 @@ public void testNginxCollectFail() throws IOException { .build(); try (MockedStatic mockStatic = Mockito.mockStatic(CommonHttpClient.class)) { - mockStatic.when(() -> CommonHttpClient.getHttpClient()).thenReturn(client); + mockStatic.when(CommonHttpClient::getHttpClient).thenReturn(client); Mockito.when(client.execute(Mockito.any(HttpUriRequest.class), Mockito.any(HttpContext.class))) .thenReturn(mockHttpResponse); @@ -111,7 +111,7 @@ public void testNginxStatusCollect() throws IOException { .build(); try (MockedStatic mockedStatic = Mockito.mockStatic(CommonHttpClient.class)) { - mockedStatic.when(() -> CommonHttpClient.getHttpClient()).thenReturn(client); + mockedStatic.when(CommonHttpClient::getHttpClient).thenReturn(client); Mockito.when(client.execute(Mockito.any(HttpUriRequest.class), Mockito.any(HttpContext.class))) .thenReturn(mockHttpResponse); @@ -176,7 +176,7 @@ public void testNginxReqStatusCollect() throws IOException { .build(); try (MockedStatic mockedStatic = Mockito.mockStatic(CommonHttpClient.class)) { - mockedStatic.when(() -> CommonHttpClient.getHttpClient()).thenReturn(client); + mockedStatic.when(CommonHttpClient::getHttpClient).thenReturn(client); Mockito.when(client.execute(Mockito.any(HttpUriRequest.class), Mockito.any(HttpContext.class))) .thenReturn(mockHttpResponse); @@ -307,7 +307,7 @@ public void testNginxStatusMatch() { 4 4 2 Reading: 0 Writing: 1 Waiting: 1"""; - // 使用正则表达式匹配并提取所需的键和对应的值 + // Use regular expressions to match and extract the required keys and corresponding values Pattern keyValuePattern = Pattern.compile("(\\w+): (\\d+)"); Matcher keyValueMatcher = keyValuePattern.matcher(status); @@ -318,7 +318,7 @@ public void testNginxStatusMatch() { System.out.println(key + ": " + value); } - // 使用正则表达式匹配并提取"accepts"、"handled"和"requests"的键和对应的值 + // Use regular expressions to match and extract the keys and corresponding values for "accepts", "handled", and "requests". Pattern valuesPattern = Pattern.compile("server\\s+(\\w+)\\s+(\\w+)\\s+(\\w+)"); Matcher valuesMatcher = valuesPattern.matcher(status); @@ -346,13 +346,14 @@ public void testNginxStatusMatch() { @Test public void testReqStatusMatch() { - String urlContent = "zone_name\tkey\tmax_active\tmax_bw\ttraffic\trequests\tactive\tbandwidth\n" + - "server_addr\t172.17.0.3\t2\t 440\t68K\t23\t1\t 0\n" + - "server_name\tlocalhost\t2\t 440\t68K\t23\t1\t 0\n" + - "server_url\tlocalhost/\t1\t 0\t 0\t4\t0\t 0\n" + - "server_url\tlocalhost/index.html\t1\t 104\t27K\t4\t0\t 0\n" + - "server_url\tlocalhost/nginx-status\t1\t 32\t 9896\t5\t0\t 0\n" + - "server_url\tlocalhost/req-status\t1\t 0\t31K\t10\t1\t 0"; + String urlContent = """ + zone_name\tkey\tmax_active\tmax_bw\ttraffic\trequests\tactive\tbandwidth + server_addr\t172.17.0.3\t2\t 440\t68K\t23\t1\t 0 + server_name\tlocalhost\t2\t 440\t68K\t23\t1\t 0 + server_url\tlocalhost/\t1\t 0\t 0\t4\t0\t 0 + server_url\tlocalhost/index.html\t1\t 104\t27K\t4\t0\t 0 + server_url\tlocalhost/nginx-status\t1\t 32\t 9896\t5\t0\t 0 + server_url\tlocalhost/req-status\t1\t 0\t31K\t10\t1\t 0"""; String[] lines = urlContent.split("\\r?\\n"); List zoneNames = new ArrayList<>(); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImplTest.java index 66eb13d349f..ebe138988c5 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/ntp/NtpCollectImplTest.java @@ -62,7 +62,6 @@ void testCollect() { packet.setReceiveTimeStamp(new TimeStamp(2000)); packet.setTransmitTime(new TimeStamp(1000)); TimeInfo timeInfo = new TimeInfo(packet, 1000, false); - ; MockedConstruction mocked = Mockito.mockConstruction(NTPUDPClient.class, (client, context) -> { diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImplTest.java index f2ddf1b3481..3fa01f78b5a 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redfish/RedfishCollectImplTest.java @@ -63,11 +63,11 @@ void setUp() { @Test void collect() { CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); - List aliasField = new ArrayList<>(); - aliasField.add("$.Id"); + List jsonPath = new ArrayList<>(); + jsonPath.add("$.Id"); Metrics metrics = new Metrics(); metrics.setRedfish(redfishProtocol); - metrics.setAliasFields(aliasField); + metrics.getRedfish().setJsonPath(jsonPath); metrics.setName("Chassis"); RedfishClient.create(redfishProtocol); redfishCollect.preCheck(metrics); @@ -77,12 +77,12 @@ void collect() { @Test void mockCollect() throws Exception { CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); - List aliasField = new ArrayList<>(); - aliasField.add("$.['@odata.id']"); + List jsonPath = new ArrayList<>(); + jsonPath.add("$.['@odata.id']"); redfishProtocol.setSchema("/redfish/v1/Chassis/{ChassisId}/PowerSubsystem/PowerSupplies"); Metrics metrics = new Metrics(); metrics.setRedfish(redfishProtocol); - metrics.setAliasFields(aliasField); + metrics.getRedfish().setJsonPath(jsonPath); metrics.setName("PowerSupply"); String chassis = """ { diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisClusterCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisClusterCollectImplTest.java index e8f9810a899..3d44e884f2b 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisClusterCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisClusterCollectImplTest.java @@ -31,6 +31,7 @@ import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.RedisProtocol; import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -44,7 +45,7 @@ */ @ExtendWith(MockitoExtension.class) public class RedisClusterCollectImplTest { - + @InjectMocks private RedisCommonCollectImpl redisClusterCollect; @@ -62,10 +63,14 @@ public class RedisClusterCollectImplTest { void setUp() { } - + @AfterEach + void setDown() { + connection.close(); + client.shutdown(); + } @Test - void testCollect(){ + void testCollect() { RedisProtocol redisProtocol = RedisProtocol.builder() .host("127.0.0.1") .port("6379") @@ -106,7 +111,7 @@ void testCollect(){ metrics.setFields(fields); - Mockito.mockStatic(RedisClusterClient.class).when(()->RedisClusterClient.create(Mockito.any(ClientResources.class), + Mockito.mockStatic(RedisClusterClient.class).when(() -> RedisClusterClient.create(Mockito.any(ClientResources.class), Mockito.any(RedisURI.class))).thenReturn(client); Mockito.when(client.connect()).thenReturn(connection); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisSingleCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisSingleCollectImplTest.java index 010402aefcb..31646b9caea 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisSingleCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/redis/RedisSingleCollectImplTest.java @@ -29,6 +29,7 @@ import org.apache.hertzbeat.common.entity.job.Metrics; import org.apache.hertzbeat.common.entity.job.protocol.RedisProtocol; import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.junit.jupiter.api.AfterEach; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -70,6 +71,12 @@ void setUp() { .build(); } + @AfterEach + void setDown() { + connection.close(); + client.shutdown(); + } + @Test void getInstance() { } @@ -77,10 +84,10 @@ void getInstance() { @Test void collect() { String info = """ - # CPU - used_cpu_sys:0.544635 - used_cpu_user:0.330690 - """; + # CPU + used_cpu_sys:0.544635 + used_cpu_user:0.330690 + """; CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); List aliasField = new ArrayList<>(); aliasField.add("used_cpu_sys"); @@ -92,7 +99,7 @@ void collect() { MockedStatic clientMockedStatic = Mockito.mockStatic(RedisClient.class); clientMockedStatic.when(() -> RedisClient.create(Mockito.any(ClientResources.class), Mockito.any(RedisURI.class))) - .thenReturn(client); + .thenReturn(client); Mockito.when(client.connect()).thenReturn(connection); Mockito.when(connection.sync()).thenReturn(cmd); Mockito.when(cmd.info(metrics.getName())).thenReturn(info); @@ -135,7 +142,7 @@ void testCollect() { MockedStatic clientMockedStatic = Mockito.mockStatic(RedisClient.class); clientMockedStatic.when(() -> RedisClient.create(Mockito.any(ClientResources.class), Mockito.any(RedisURI.class))) - .thenReturn(client); + .thenReturn(client); Mockito.when(client.connect()).thenReturn(connection); Mockito.when(connection.sync()).thenReturn(cmd); @@ -150,5 +157,6 @@ void testCollect() { assertEquals(row.getColumns(1), version); } clientMockedStatic.close(); + client.shutdown(); } } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImplTest.java index 78f3c9832e8..1b4f8854165 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/telnet/TelnetCollectImplTest.java @@ -46,7 +46,7 @@ class TelnetCollectImplTest { private TelnetCollectImpl telnetCollect; @Test - void testCollectWithEquals(){ + void testCollectWithEquals() { CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); TelnetProtocol telnetProtocol = TelnetProtocol.builder() .timeout("10") @@ -99,7 +99,7 @@ void testCollectWithEquals(){ } @Test - void testCollectWithTab(){ + void testCollectWithTab() { CollectRep.MetricsData.Builder builder = CollectRep.MetricsData.newBuilder(); TelnetProtocol telnetProtocol = TelnetProtocol.builder() .timeout("10") diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImplTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImplTest.java index cc4b89a66a5..652318b4e08 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImplTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/collect/udp/UdpCollectImplTest.java @@ -95,10 +95,8 @@ void testCollectWithSocketException() { .build(); MockedConstruction socketMockedConstruction = - Mockito.mockConstruction(DatagramSocket.class, (socket, context) -> { - Mockito.doThrow(new SocketTimeoutException("test exception")) - .when(socket).send(Mockito.any(DatagramPacket.class)); - }); + Mockito.mockConstruction(DatagramSocket.class, (socket, context) -> Mockito.doThrow(new SocketTimeoutException("test exception")) + .when(socket).send(Mockito.any(DatagramPacket.class))); List aliasField = new ArrayList<>(); @@ -123,10 +121,8 @@ void testCollectWithPortUnreachableException() { .build(); MockedConstruction socketMockedConstruction = - Mockito.mockConstruction(DatagramSocket.class, (socket, context) -> { - Mockito.doThrow(new PortUnreachableException("test exception")) - .when(socket).send(Mockito.any(DatagramPacket.class)); - }); + Mockito.mockConstruction(DatagramSocket.class, (socket, context) -> Mockito.doThrow(new PortUnreachableException("test exception")) + .when(socket).send(Mockito.any(DatagramPacket.class))); List aliasField = new ArrayList<>(); diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcherTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcherTest.java index bd2b35aa205..6db544ba0d2 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcherTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/CommonDispatcherTest.java @@ -17,23 +17,131 @@ package org.apache.hertzbeat.collector.dispatch; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doAnswer; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.List; +import java.util.Set; +import java.util.concurrent.ExecutorService; +import java.util.concurrent.Executors; +import org.apache.hertzbeat.collector.dispatch.entrance.internal.CollectJobService; +import org.apache.hertzbeat.collector.dispatch.timer.Timeout; +import org.apache.hertzbeat.collector.dispatch.timer.TimerDispatch; +import org.apache.hertzbeat.collector.dispatch.timer.WheelTimerTask; +import org.apache.hertzbeat.common.entity.job.Job; +import org.apache.hertzbeat.common.entity.job.Metrics; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.queue.CommonDataQueue; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; /** * Test case for {@link CommonDispatcher} */ class CommonDispatcherTest { + @Mock + private MetricsCollectorQueue jobRequestQueue; + + @Mock + private TimerDispatch timerDispatch; + + @Mock + private CommonDataQueue commonDataQueue; + + @Mock + private WorkerPool workerPool; + + @InjectMocks + private CommonDispatcher commonDispatcher; + + @Mock + private CollectJobService collectJobService; + @BeforeEach void setUp() { + + MockitoAnnotations.openMocks(this); + + ExecutorService executorService = Executors.newFixedThreadPool(2); + doAnswer(invocation -> { + Runnable task = invocation.getArgument(0); + executorService.submit(task); + return null; + }).when(workerPool).executeJob(any(Runnable.class)); } @Test - void dispatchMetricsTask() { + void testDispatchMetricsTask() { + + Timeout timeout = mock(Timeout.class); + WheelTimerTask timerTask = mock(WheelTimerTask.class); + + Job job = mock(Job.class); + Set metricsSet = mock(Set.class); + + when(timeout.task()).thenReturn(timerTask); + when(timerTask.getJob()).thenReturn(job); + when(job.getNextCollectMetrics(null, true)).thenReturn(metricsSet); + + commonDispatcher.dispatchMetricsTask(timeout); + + verify(job, times(1)).getNextCollectMetrics(null, true); } @Test - void dispatchCollectData() { + public void testDispatchCollectDataTimeoutMetricsCollectRepMetricsData() { + + Timeout timeout = mock(Timeout.class); + Metrics metrics = mock(Metrics.class); + WheelTimerTask timerTask = mock(WheelTimerTask.class); + Job job = mock(Job.class); + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder().setMetrics("metrics").build(); + + when(timeout.task()).thenReturn(timerTask); + when(timerTask.getJob()).thenReturn(job); + when(job.getNextCollectMetrics(metrics, false)).thenReturn(null); + when(timeout.task()).thenReturn(timerTask); + when(timerTask.getJob()).thenReturn(job); + when(job.getNextCollectMetrics(metrics, false)).thenReturn(null); + when(metrics.isHasSubTask()).thenReturn(false); + + commonDispatcher.dispatchCollectData(timeout, metrics, metricsData); + + verify(commonDataQueue, times(0)).sendMetricsData(metricsData); + } + + @Test + void testDispatchCollectDataTimeoutMetricsListOfCollectRepMetricsData() { + Timeout timeout = mock(Timeout.class); + Metrics metrics = mock(Metrics.class); + CollectRep.MetricsData metricsData1 = CollectRep.MetricsData.newBuilder().build(); + CollectRep.MetricsData metricsData2 = CollectRep.MetricsData.newBuilder().build(); + List metricsDataList = List.of(metricsData1, metricsData2); + WheelTimerTask timerTask = mock(WheelTimerTask.class); + Job job = mock(Job.class); + + when(timeout.task()).thenReturn(timerTask); + when(timerTask.getJob()).thenReturn(job); + when(job.isCyclic()).thenReturn(true); + + commonDispatcher.dispatchCollectData(timeout, metrics, metricsDataList); + + verify(commonDataQueue, times(2)).sendMetricsData(any(CollectRep.MetricsData.class)); } + + @Test + void testStart() { + + commonDispatcher.start(); + + verify(workerPool, times(2)).executeJob(any(Runnable.class)); + } + } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueueTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueueTest.java index eaf84ab921f..7298abbadd7 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueueTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/MetricsCollectorQueueTest.java @@ -17,7 +17,10 @@ package org.apache.hertzbeat.collector.dispatch; -import org.junit.jupiter.api.AfterEach; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.Mockito.mock; +import java.util.concurrent.locks.ReentrantLock; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -26,19 +29,40 @@ */ class MetricsCollectorQueueTest { + private MetricsCollectorQueue metricsCollectorQueue; + + private MetricsCollect mockJob; + @BeforeEach void setUp() { - } - @AfterEach - void tearDown() { + metricsCollectorQueue = new MetricsCollectorQueue(); + mockJob = mock(MetricsCollect.class); } @Test - void addJob() { + void testAddJob() throws InterruptedException { + + metricsCollectorQueue.addJob(mockJob); + assertEquals(mockJob, metricsCollectorQueue.getJob()); } @Test - void getJob() { + void testGetJobTimeout() { + ReentrantLock lock = new ReentrantLock(); + Thread run = new Thread(() -> { + try { + metricsCollectorQueue.getJob(); + } catch (Exception e) { + assertThrows(InterruptedException.class, () -> { + throw e; + }); + lock.unlock(); + } + }); + run.start(); + run.interrupt(); + lock.lock(); } + } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/WorkerPoolTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/WorkerPoolTest.java index 8ae3efcc473..61a59d450d1 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/WorkerPoolTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/WorkerPoolTest.java @@ -17,7 +17,11 @@ package org.apache.hertzbeat.collector.dispatch; -import org.junit.jupiter.api.AfterEach; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.mock; +import java.util.concurrent.RejectedExecutionException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -26,19 +30,35 @@ */ class WorkerPoolTest { + private WorkerPool workerPool; + + private Runnable mockTask; + @BeforeEach void setUp() { + + workerPool = new WorkerPool(); + mockTask = mock(Runnable.class); } - @AfterEach - void tearDown() { + @Test + void testExecuteJob() { + + assertDoesNotThrow(() -> workerPool.executeJob(mockTask)); } @Test - void executeJob() { + void testExecuteJobThrowsException() { + + workerPool = mock(WorkerPool.class); + doThrow(new RejectedExecutionException()).when(workerPool).executeJob(mockTask); + + assertThrows(RejectedExecutionException.class, () -> workerPool.executeJob(mockTask)); } @Test - void destroy() { + void testDestroy() { + assertDoesNotThrow(() -> workerPool.destroy()); } + } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/CollectServerTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/CollectServerTest.java new file mode 100644 index 00000000000..62c42125c27 --- /dev/null +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/CollectServerTest.java @@ -0,0 +1,145 @@ +/* + * 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.hertzbeat.collector.dispatch.entrance; + +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import io.netty.channel.Channel; +import java.util.concurrent.ScheduledExecutorService; +import org.apache.hertzbeat.collector.dispatch.CollectorInfoProperties; +import org.apache.hertzbeat.collector.dispatch.DispatchProperties; +import org.apache.hertzbeat.collector.dispatch.entrance.internal.CollectJobService; +import org.apache.hertzbeat.collector.dispatch.timer.TimerDispatch; +import org.apache.hertzbeat.common.entity.message.ClusterMsg; +import org.apache.hertzbeat.common.support.CommonThreadPool; +import org.apache.hertzbeat.remoting.RemotingClient; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link CollectServer} + */ + +@ExtendWith(MockitoExtension.class) +class CollectServerTest { + + @Mock + private CollectJobService collectJobService; + + @Mock + private TimerDispatch timerDispatch; + + @Mock + private DispatchProperties properties; + + @Mock + private DispatchProperties.EntranceProperties entranceProperties; + + @Mock + private DispatchProperties.EntranceProperties.NettyProperties nettyProperties; + + @Mock + private CommonThreadPool threadPool; + + @Mock + private CollectorInfoProperties infoProperties; + + private CollectServer collectServer; + + private CollectServer.CollectNettyEventListener collectNettyEventListener; + + @BeforeEach + void setUp() { + + when(nettyProperties.getManagerHost()).thenReturn("127.0.0.1"); + when(nettyProperties.getManagerPort()).thenReturn(8080); + when(entranceProperties.getNetty()).thenReturn(nettyProperties); + when(properties.getEntrance()).thenReturn(entranceProperties); + + collectServer = new CollectServer(collectJobService, timerDispatch, properties, threadPool, infoProperties); + collectNettyEventListener = collectServer.new CollectNettyEventListener(); + } + + @Test + void testRun() throws Exception { + + RemotingClient remotingClient = mock(RemotingClient.class); + ReflectionTestUtils.setField(collectServer, "remotingClient", remotingClient); + + collectServer.run(); + + verify(remotingClient, times(1)).start(); + } + + @Test + void testShutdown() { + + RemotingClient remotingClient = mock(RemotingClient.class); + ReflectionTestUtils.setField(collectServer, "remotingClient", remotingClient); + ReflectionTestUtils.setField(collectServer, "scheduledExecutor", mock(ScheduledExecutorService.class)); + + collectServer.shutdown(); + + ScheduledExecutorService scheduledExecutor = (ScheduledExecutorService) ReflectionTestUtils.getField(collectServer, "scheduledExecutor"); + verify((scheduledExecutor), times(1)).shutdownNow(); + verify(remotingClient, times(1)).shutdown(); + } + + @Test + void testSendMsg() { + + RemotingClient remotingClient = mock(RemotingClient.class); + ReflectionTestUtils.setField(collectServer, "remotingClient", remotingClient); + ClusterMsg.Message message = mock(ClusterMsg.Message.class); + + collectServer.sendMsg(message); + + verify(remotingClient, times(1)).sendMsg(message); + } + + @Test + void testOnChannelActive() { + + RemotingClient remotingClient = mock(RemotingClient.class); + ReflectionTestUtils.setField(collectServer, "remotingClient", remotingClient); + + Channel channel = mock(Channel.class); + when(collectJobService.getCollectorIdentity()).thenReturn("collector1"); + when(collectJobService.getCollectorMode()).thenReturn("mode1"); + when(infoProperties.getIp()).thenReturn("127.0.0.1"); + when(infoProperties.getVersion()).thenReturn("1.0"); + + collectNettyEventListener.onChannelActive(channel); + + verify(timerDispatch, times(1)).goOnline(); + verify(remotingClient, times(1)).sendMsg(any(ClusterMsg.Message.class)); + + ScheduledExecutorService scheduledExecutor = + (ScheduledExecutorService) ReflectionTestUtils.getField(collectServer, "scheduledExecutor"); + assertNotNull(scheduledExecutor); + } + +} diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobServiceTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobServiceTest.java index e1cccffadb5..47557983ac2 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobServiceTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/entrance/internal/CollectJobServiceTest.java @@ -17,36 +17,138 @@ package org.apache.hertzbeat.collector.dispatch.entrance.internal; -import org.junit.jupiter.api.AfterEach; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doAnswer; +import static org.mockito.Mockito.doReturn; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.spy; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.List; +import java.util.concurrent.CountDownLatch; +import org.apache.hertzbeat.collector.dispatch.DispatchProperties; +import org.apache.hertzbeat.collector.dispatch.WorkerPool; +import org.apache.hertzbeat.collector.dispatch.entrance.CollectServer; +import org.apache.hertzbeat.collector.dispatch.timer.TimerDispatch; +import org.apache.hertzbeat.common.entity.job.Job; +import org.apache.hertzbeat.common.entity.message.ClusterMsg; +import org.apache.hertzbeat.common.entity.message.CollectRep; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; /** * Test case for {@link CollectJobService} */ + class CollectJobServiceTest { + @Mock + private TimerDispatch timerDispatch; + + @Mock + private WorkerPool workerPool; + + @Mock + private CollectServer collectServer; + + @Mock + private DispatchProperties properties; + + @InjectMocks + private CollectJobService collectJobService; + @BeforeEach - void setUp() { + public void setUp() { + + MockitoAnnotations.openMocks(this); + + DispatchProperties.EntranceProperties entrance = mock(DispatchProperties.EntranceProperties.class); + DispatchProperties.EntranceProperties.NettyProperties netty = mock(DispatchProperties.EntranceProperties.NettyProperties.class); + + when(properties.getEntrance()).thenReturn(entrance); + when(entrance.getNetty()).thenReturn(netty); + when(netty.isEnabled()).thenReturn(true); + when(netty.getMode()).thenReturn("test-mode"); + when(netty.getIdentity()).thenReturn("test-collector"); + + collectJobService = spy(new CollectJobService(timerDispatch, properties, workerPool)); + collectJobService.setCollectServer(collectServer); } - @AfterEach - void tearDown() { + @Test + public void testCollectSyncJobData() { + + Job job = mock(Job.class); + List metricsDataList = List.of(CollectRep.MetricsData.newBuilder().build()); + CountDownLatch latch = new CountDownLatch(1); + + doAnswer(invocation -> { + CollectResponseEventListener listener = invocation.getArgument(1); + listener.response(metricsDataList); + latch.countDown(); + return null; + }).when(timerDispatch).addJob(any(Job.class), any(CollectResponseEventListener.class)); + + List result = collectJobService.collectSyncJobData(job); + + assertEquals(metricsDataList, result); } @Test - void collectSyncJobData() { + public void testCollectSyncOneTimeJobData() { + + Job job = mock(Job.class); + List metricsDataList = List.of(CollectRep.MetricsData.newBuilder().build()); + + doAnswer(invocation -> { + Runnable task = invocation.getArgument(0); + task.run(); + return null; + }).when(workerPool).executeJob(any(Runnable.class)); + + doReturn(metricsDataList).when(collectJobService).collectSyncJobData(any(Job.class)); + + collectJobService.collectSyncOneTimeJobData(job); + + verify(collectServer, times(1)).sendMsg(any(ClusterMsg.Message.class)); + } + + @Test + public void testCancelAsyncCollectJob() { + + Long jobId = 123L; + collectJobService.cancelAsyncCollectJob(jobId); + + verify(timerDispatch, times(1)).deleteJob(eq(jobId), eq(true)); } @Test - void addAsyncCollectJob() { + public void testSendAsyncCollectData() { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData + .newBuilder() + .setMetrics("test") + .build(); + collectJobService.sendAsyncCollectData(metricsData); + + verify(collectServer, times(1)).sendMsg(any(ClusterMsg.Message.class)); } @Test - void updateAsyncCollectJob() { + public void testGetCollectorIdentity() { + + assertEquals("test-collector", collectJobService.getCollectorIdentity()); } @Test - void cancelAsyncCollectJob() { + public void testGetCollectorMode() { + + assertEquals("test-mode", collectJobService.getCollectorMode()); } } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueueTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueueTest.java new file mode 100644 index 00000000000..9c2318ab86a --- /dev/null +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/export/NettyDataQueueTest.java @@ -0,0 +1,60 @@ +/* + * 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.hertzbeat.collector.dispatch.export; + +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import org.apache.hertzbeat.collector.dispatch.entrance.internal.CollectJobService; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test for {@link NettyDataQueue} + */ + +class NettyDataQueueTest { + + @Mock + private CollectJobService collectJobService; + + @InjectMocks + private NettyDataQueue nettyDataQueue; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + } + + @Test + void testSendMetricsData() { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData + .newBuilder() + .setMetrics("test") + .build(); + nettyDataQueue.sendMetricsData(metricsData); + + verify(collectJobService, times(1)).sendAsyncCollectData(metricsData); + } + +} diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/unit/DataSizeConvertTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/unit/DataSizeConvertTest.java index 52b33c176c3..5bfe3a6ab8a 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/unit/DataSizeConvertTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/dispatch/unit/DataSizeConvertTest.java @@ -17,14 +17,13 @@ package org.apache.hertzbeat.collector.dispatch.unit; -import org.apache.hertzbeat.collector.dispatch.unit.impl.DataSizeConvert; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; +import org.apache.hertzbeat.collector.dispatch.unit.impl.DataSizeConvert; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; /** * Test case for {@link DataSizeConvert} @@ -32,39 +31,39 @@ class DataSizeConvertTest { - private DataSizeConvert convert; + private DataSizeConvert convert; - @BeforeEach - void setUp() { - this.convert = new DataSizeConvert(); - } + @BeforeEach + void setUp() { + this.convert = new DataSizeConvert(); + } - @Test - void testConvert() { + @Test + void testConvert() { - assertEquals("1", convert.convert("1024", "B", "KB")); - assertEquals("1024", convert.convert("1024", "B", "B")); - assertEquals("1", convert.convert("1024", "B", "kb")); - assertEquals("1", convert.convert("1024", "b", "kb")); - assertEquals("1", convert.convert("1024", "KB", "MB")); - assertEquals("1", convert.convert("1024", "MB", "GB")); - assertNull(convert.convert("", "B", "KB")); - assertNull(convert.convert("1024", "INVALID", "KB")); - assertNull(convert.convert("1024", "B", "INVALID")); + assertEquals("1", convert.convert("1024", "B", "KB")); + assertEquals("1024", convert.convert("1024", "B", "B")); + assertEquals("1", convert.convert("1024", "B", "kb")); + assertEquals("1", convert.convert("1024", "b", "kb")); + assertEquals("1", convert.convert("1024", "KB", "MB")); + assertEquals("1", convert.convert("1024", "MB", "GB")); + assertNull(convert.convert("", "B", "KB")); + assertNull(convert.convert("1024", "INVALID", "KB")); + assertNull(convert.convert("1024", "B", "INVALID")); - } + } - @Test - void testCheckUnit() { - assertTrue(convert.checkUnit("KB")); - assertTrue(convert.checkUnit("kb")); - assertTrue(convert.checkUnit("Kb")); - assertTrue(convert.checkUnit("kB")); - assertTrue(convert.checkUnit("MB")); - assertTrue(convert.checkUnit("GB")); - assertFalse(convert.checkUnit("INVALID")); - assertFalse(convert.checkUnit(null)); - assertFalse(convert.checkUnit("")); - } + @Test + void testCheckUnit() { + assertTrue(convert.checkUnit("KB")); + assertTrue(convert.checkUnit("kb")); + assertTrue(convert.checkUnit("Kb")); + assertTrue(convert.checkUnit("kB")); + assertTrue(convert.checkUnit("MB")); + assertTrue(convert.checkUnit("GB")); + assertFalse(convert.checkUnit("INVALID")); + assertFalse(convert.checkUnit(null)); + assertFalse(convert.checkUnit("")); + } } diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/util/JsonPathParserTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/util/JsonPathParserTest.java index 8472376fab7..e9beb6e7dfc 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/util/JsonPathParserTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/util/JsonPathParserTest.java @@ -32,47 +32,47 @@ class JsonPathParserTest { private static final String JSON_ARRAY = "[{'name': 'tom', 'speed': '433'},{'name': 'lili', 'speed': '543'}]"; public static final String JSON_OBJECT = """ - { - "store": { - "book": [ - { - "category": "reference", - "author": "Nigel Rees", - "title": "Sayings of the Century", - "price": 8.95 - }, - { - "category": "fiction", - "author": "Evelyn Waugh", - "title": "Sword of Honour", - "price": 12.99 - }, - { - "category": "fiction", - "author": "Herman Melville", - "title": "Moby Dick", - "isbn": "0-553-21311-3", - "price": 8.99 - }, - { - "category": "fiction", - "author": "J. R. R. Tolkien", - "title": "The Lord of the Rings", - "isbn": "0-395-19395-8", - "price": 22.99 + { + "store": { + "book": [ + { + "category": "reference", + "author": "Nigel Rees", + "title": "Sayings of the Century", + "price": 8.95 + }, + { + "category": "fiction", + "author": "Evelyn Waugh", + "title": "Sword of Honour", + "price": 12.99 + }, + { + "category": "fiction", + "author": "Herman Melville", + "title": "Moby Dick", + "isbn": "0-553-21311-3", + "price": 8.99 + }, + { + "category": "fiction", + "author": "J. R. R. Tolkien", + "title": "The Lord of the Rings", + "isbn": "0-395-19395-8", + "price": 22.99 + } + ], + "bicycle": { + "color": "red", + "price": 19.95, + "gears": [23, 50], + "extra": {"x": 0}, + "escape": "Esc\\b\\f\\n\\r\\t\\u002A", + "nullValue": null + } } - ], - "bicycle": { - "color": "red", - "price": 19.95, - "gears": [23, 50], - "extra": {"x": 0}, - "escape": "Esc\\b\\f\\n\\r\\t\\u002A", - "nullValue": null } - } - } - """; + """; @Test void parseContentWithJsonPath() { diff --git a/collector/src/test/java/org/apache/hertzbeat/collector/util/PrivateKeyUtilsTest.java b/collector/src/test/java/org/apache/hertzbeat/collector/util/PrivateKeyUtilsTest.java index a6bcb56f448..68f611aa2dd 100644 --- a/collector/src/test/java/org/apache/hertzbeat/collector/util/PrivateKeyUtilsTest.java +++ b/collector/src/test/java/org/apache/hertzbeat/collector/util/PrivateKeyUtilsTest.java @@ -27,33 +27,34 @@ class PrivateKeyUtilsTest { @DisplayName("write key to ~/.ssh") @Test void writePrivateKey() throws IOException { - var key = "-----BEGIN RSA PRIVATE KEY-----\n" - + "MIIEogIBAAKCAQEA4ctFYk/xy89L6/6YFeeMrwCW9lCP/ThXMn+9G63s5bGn4oIN\n" - + "8cEf/JYkmGw8vMP41IAP9dyH8ji2wIZSLeTPWucEK6P6jA01iIBQ95ng6RTsnQgL\n" - + "h4pYHxlEaNHcXkjy5GlMdzaWadjdRevpThGR1VOtWFtK3yoC0c/te2Junu04f+11\n" - + "cpk8QvmVfzrBUooVnG0/7oekwUy1c5sSl0qVoLzXOv4XG9w34cyvacFC30zv1Nl8\n" - + "ASi2pmOBVx9njPvqQ7qZrDk0nwn+RZUmGh/PbmHxrBV7ZA5NjZcEnf2VGIfjGUVu\n" - + "qE4VnkbvS4j03afV2rsp1yo74K+k/ZC6GCHB5QIBIwKCAQBG9r4I9I3SVxfcdJYy\n" - + "xR2WFiDREgFeNkdKYqkl9NVsws5dIY9am8g5cQQv54DNnK1KGZ6dulaclXtD0nGZ\n" - + "ZSs505OYr+EHcd2f7dBN0Uavp32QcD4jSLycD0FixZ0HsIbaEnceJxlUd1t8YBYf\n" - + "2aLcpUUbxOulORbUOgjPAa286uDeQYN5IbdruDfvbuFFm7hBoGZoKLJ7FPcJ0U3A\n" - + "14KRK+Z1oCYJIS0ubaHbhaPIVPPQEmTNHpsvxIJXfZtVy9+XIuBGmD3+Aq6SSFPC\n" - + "A8mU1iKzzdRCXZwvPeUiivIIZc6DRXjhtJ2Lya/XndKidOT/QUj8Z+f9pWAonlzM\n" - + "3PMXAoGBAPvzctkkDjUJjLyEuYQq8soYokS4n4ykFTP5oFgnodK/cYocbxTT6Tn9\n" - + "vH7b6lK6ZAf+tZk8rcEeIO650pOvmaa1/OuZSxfcFUGBvOvYXiHF7zmkePh/pQgB\n" - + "7Cl0RYrI52Cjbd9aCUIYK3A82qsUq30INGeOhMNrfaHn2pgx8xlDAoGBAOVsNctw\n" - + "CHnLaIQX8eS+eUcQEm+NZppnDBJavdpP48ZZM/t5v/2fQ5ytbYqk0KEzIGu0dP8g\n" - + "jfB76JbMvStvTfB+TrXsfhGyA3oJrEcG+3IUshsRU2sohT1ScY27z2VMLgilnWvF\n" - + "7t49sQm9uB/yn669n8LIciHxDItOpvqgKdG3AoGBAO2NxA6PtZ+4jAIz/19bsbc7\n" - + "zDIqaovrKe8tMMglXg/ZE0e0aLvdvqRkRAKU1Z51Ob5lLuDwEYoyWZCgk1gL90Vp\n" - + "wpT+P3zlcyCBo39IWMDB8C8IydRbF/GbaaNtoKds92m+qWwwUd87XCf+3M0wvvI6\n" - + "75TW1PLEbyOgFz8Khh8hAoGBAJbDc87Ul9sCAtp2Ip2hvWk2coPR8vfADz9C8cn5\n" - + "/BShBOcVfipSt2b1n8GCP/TnFU4XgBVeiSkA9+4Rg6AzMzejdY1+JvWvfqCnRVM/\n" - + "GkOnMzZb17tyZi+ck8OKC/IcHkAyUYFWL0GWQSOojvBsPQxt+0V8aEIwsHjNSSha\n" - + "nyNpAoGAd0XqdByRxbWgg5ZsvM0tvrpMITpEZsGMG9VeQPGl0wsQvC2zw5QGLvz/\n" - + "57YhofOOr0M3yElcFA9Imvek5CYZsyL8eIWGZyadfRiYvGOUyvDDO3BYRG4DmhyF\n" - + "KVk3URjEuOCC29ORvZ/7HaCO9iuEbvAA/mrAtd7KdCA+3PzfEOw=\n" - + "-----END RSA PRIVATE KEY-----"; + var key = """ + -----BEGIN RSA PRIVATE KEY----- + MIIEogIBAAKCAQEA4ctFYk/xy89L6/6YFeeMrwCW9lCP/ThXMn+9G63s5bGn4oIN + 8cEf/JYkmGw8vMP41IAP9dyH8ji2wIZSLeTPWucEK6P6jA01iIBQ95ng6RTsnQgL + h4pYHxlEaNHcXkjy5GlMdzaWadjdRevpThGR1VOtWFtK3yoC0c/te2Junu04f+11 + cpk8QvmVfzrBUooVnG0/7oekwUy1c5sSl0qVoLzXOv4XG9w34cyvacFC30zv1Nl8 + ASi2pmOBVx9njPvqQ7qZrDk0nwn+RZUmGh/PbmHxrBV7ZA5NjZcEnf2VGIfjGUVu + qE4VnkbvS4j03afV2rsp1yo74K+k/ZC6GCHB5QIBIwKCAQBG9r4I9I3SVxfcdJYy + xR2WFiDREgFeNkdKYqkl9NVsws5dIY9am8g5cQQv54DNnK1KGZ6dulaclXtD0nGZ + ZSs505OYr+EHcd2f7dBN0Uavp32QcD4jSLycD0FixZ0HsIbaEnceJxlUd1t8YBYf + 2aLcpUUbxOulORbUOgjPAa286uDeQYN5IbdruDfvbuFFm7hBoGZoKLJ7FPcJ0U3A + 14KRK+Z1oCYJIS0ubaHbhaPIVPPQEmTNHpsvxIJXfZtVy9+XIuBGmD3+Aq6SSFPC + A8mU1iKzzdRCXZwvPeUiivIIZc6DRXjhtJ2Lya/XndKidOT/QUj8Z+f9pWAonlzM + 3PMXAoGBAPvzctkkDjUJjLyEuYQq8soYokS4n4ykFTP5oFgnodK/cYocbxTT6Tn9 + vH7b6lK6ZAf+tZk8rcEeIO650pOvmaa1/OuZSxfcFUGBvOvYXiHF7zmkePh/pQgB + 7Cl0RYrI52Cjbd9aCUIYK3A82qsUq30INGeOhMNrfaHn2pgx8xlDAoGBAOVsNctw + CHnLaIQX8eS+eUcQEm+NZppnDBJavdpP48ZZM/t5v/2fQ5ytbYqk0KEzIGu0dP8g + jfB76JbMvStvTfB+TrXsfhGyA3oJrEcG+3IUshsRU2sohT1ScY27z2VMLgilnWvF + 7t49sQm9uB/yn669n8LIciHxDItOpvqgKdG3AoGBAO2NxA6PtZ+4jAIz/19bsbc7 + zDIqaovrKe8tMMglXg/ZE0e0aLvdvqRkRAKU1Z51Ob5lLuDwEYoyWZCgk1gL90Vp + wpT+P3zlcyCBo39IWMDB8C8IydRbF/GbaaNtoKds92m+qWwwUd87XCf+3M0wvvI6 + 75TW1PLEbyOgFz8Khh8hAoGBAJbDc87Ul9sCAtp2Ip2hvWk2coPR8vfADz9C8cn5 + /BShBOcVfipSt2b1n8GCP/TnFU4XgBVeiSkA9+4Rg6AzMzejdY1+JvWvfqCnRVM/ + GkOnMzZb17tyZi+ck8OKC/IcHkAyUYFWL0GWQSOojvBsPQxt+0V8aEIwsHjNSSha + nyNpAoGAd0XqdByRxbWgg5ZsvM0tvrpMITpEZsGMG9VeQPGl0wsQvC2zw5QGLvz/ + 57YhofOOr0M3yElcFA9Imvek5CYZsyL8eIWGZyadfRiYvGOUyvDDO3BYRG4DmhyF + KVk3URjEuOCC29ORvZ/7HaCO9iuEbvAA/mrAtd7KdCA+3PzfEOw= + -----END RSA PRIVATE KEY-----"""; PrivateKeyUtils.writePrivateKey("127.0.0.1", key); } } diff --git a/common/pom.xml b/common/pom.xml index 42a483ee239..770733af86b 100644 --- a/common/pom.xml +++ b/common/pom.xml @@ -49,7 +49,7 @@ org.eclipse.persistence org.eclipse.persistence.jpa - 4.0.2 + ${eclipse-jpa.version} org.springframework.boot @@ -106,6 +106,11 @@ org.apache.kafka kafka-clients + + + io.lettuce + lettuce-core + org.apache.commons @@ -121,7 +126,7 @@ com.beetstra.jutf7 jutf7 - 1.0.0 + ${jutf7.version} diff --git a/common/src/main/java/org/apache/hertzbeat/common/config/BaseKafkaProperties.java b/common/src/main/java/org/apache/hertzbeat/common/config/BaseKafkaProperties.java new file mode 100644 index 00000000000..24d411cff26 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/config/BaseKafkaProperties.java @@ -0,0 +1,46 @@ +/* + * 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.hertzbeat.common.config; + +import lombok.Getter; +import lombok.Setter; + +/** + * Kafka properties + */ + +@Getter +@Setter +public class BaseKafkaProperties { + + /** + * kafka's connection server url + */ + private String servers = "127.0.0.1:9092"; + + /** + * The name of the topic that receives the data + */ + private String topic; + + /** + * Consumer Group ID + */ + private String groupId; + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/config/CommonConfig.java b/common/src/main/java/org/apache/hertzbeat/common/config/CommonConfig.java index 7dfaf4ab597..81b5892f6f0 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/config/CommonConfig.java +++ b/common/src/main/java/org/apache/hertzbeat/common/config/CommonConfig.java @@ -17,17 +17,22 @@ package org.apache.hertzbeat.common.config; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.util.AesUtil; +import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.boot.context.properties.EnableConfigurationProperties; import org.springframework.context.annotation.ComponentScan; -import org.springframework.context.annotation.Configuration; /** * common module config */ -@ComponentScan(basePackages = "org.apache.hertzbeat.common") + +@AutoConfiguration +@ComponentScan(basePackages = ConfigConstants.PkgConstant.PKG + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.COMMON) @EnableConfigurationProperties(CommonProperties.class) -@Configuration public class CommonConfig { public CommonConfig(CommonProperties commonProperties) { diff --git a/common/src/main/java/org/apache/hertzbeat/common/config/CommonProperties.java b/common/src/main/java/org/apache/hertzbeat/common/config/CommonProperties.java index d92fb8c332f..56cc91dccdf 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/config/CommonProperties.java +++ b/common/src/main/java/org/apache/hertzbeat/common/config/CommonProperties.java @@ -17,12 +17,19 @@ package org.apache.hertzbeat.common.config; +import lombok.Getter; +import lombok.Setter; +import org.apache.hertzbeat.common.constants.ConfigConstants; import org.springframework.boot.context.properties.ConfigurationProperties; /** * common module properties */ -@ConfigurationProperties(prefix = "common") + +@Getter +@Setter +@ConfigurationProperties(prefix = + ConfigConstants.FunctionModuleConstants.COMMON) public class CommonProperties { /** @@ -40,54 +47,19 @@ public class CommonProperties { */ private SmsProperties sms; - public String getSecret() { - return secret; - } - - public DataQueueProperties getQueue() { - return queue; - } - - public SmsProperties getSms() { - return sms; - } - - public void setSecret(String secret) { - this.secret = secret; - } - - public void setQueue(DataQueueProperties queue) { - this.queue = queue; - } - - public void setSms(SmsProperties sms) { - this.sms = sms; - } - /** * data queue properties */ + @Getter + @Setter public static class DataQueueProperties { private QueueType type = QueueType.Memory; private KafkaProperties kafka; - public QueueType getType() { - return type; - } + private RedisProperties redis; - public void setType(QueueType type) { - this.type = type; - } - - public KafkaProperties getKafka() { - return kafka; - } - - public void setKafka(KafkaProperties kafka) { - this.kafka = kafka; - } } /** @@ -101,80 +73,84 @@ public enum QueueType { /** with netty connect **/ Netty, /** rabbit mq **/ - Rabbit_Mq + Rabbit_Mq, + /** redis **/ + Redis } /** - * kafka data queue properties + * redis data queue properties */ - public static class KafkaProperties { + @Getter + @Setter + public static class RedisProperties { + /** - * kafka's connection server url + * redis server host. */ - private String servers; + private String redisHost; + /** - * metrics data topic + * redis server port. */ - private String metricsDataTopic; + private int redisPort; + /** - * alerts data topic + * Queue name for metrics data to alerter */ - private String alertsDataTopic; + private String metricsDataQueueNameToAlerter; - public String getServers() { - return servers; - } + /** + * Queue name for metrics data to persistent storage + */ + private String metricsDataQueueNameToPersistentStorage; - public void setServers(String servers) { - this.servers = servers; - } + /** + * Queue name for metrics data to real-time storage + */ + private String metricsDataQueueNameToRealTimeStorage; - public String getMetricsDataTopic() { - return metricsDataTopic; - } + /** + * Queue name for alerts data + */ + private String alertsDataQueueName; - public void setMetricsDataTopic(String metricsDataTopic) { - this.metricsDataTopic = metricsDataTopic; - } + } - public String getAlertsDataTopic() { - return alertsDataTopic; - } + /** + * kafka data queue properties + */ + @Getter + @Setter + public static class KafkaProperties extends BaseKafkaProperties { - public void setAlertsDataTopic(String alertsDataTopic) { - this.alertsDataTopic = alertsDataTopic; - } + /** + * metrics data topic + */ + private String metricsDataTopic; + /** + * alerts data topic + */ + private String alertsDataTopic; } /** * sms properties */ + @Getter + @Setter public static class SmsProperties { //Tencent cloud SMS configuration private TencentSmsProperties tencent; //Ali cloud SMS configuration private AliYunSmsProperties aliYun; - - public TencentSmsProperties getTencent() { - return tencent; - } - - public void setTencent(TencentSmsProperties tencent) { - this.tencent = tencent; - } - - public AliYunSmsProperties getAliYun() { - return aliYun; - } - - public void setAliYun(AliYunSmsProperties aliYun) { - this.aliYun = aliYun; - } } /** * tencent sms properties */ + @Getter + @Setter public static class TencentSmsProperties { /** @@ -201,51 +177,13 @@ public static class TencentSmsProperties { * SMS template ID */ private String templateId; - - public String getSecretId() { - return secretId; - } - - public void setSecretId(String secretId) { - this.secretId = secretId; - } - - public String getSecretKey() { - return secretKey; - } - - public void setSecretKey(String secretKey) { - this.secretKey = secretKey; - } - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getSignName() { - return signName; - } - - public void setSignName(String signName) { - this.signName = signName; - } - - public String getTemplateId() { - return templateId; - } - - public void setTemplateId(String templateId) { - this.templateId = templateId; - } } /** * aliYun sms properties */ + @Getter + @Setter public static class AliYunSmsProperties { /** @@ -272,45 +210,6 @@ public static class AliYunSmsProperties { * ID of the SMS template */ private String templateId; - - public String getAppId() { - return appId; - } - - public void setAppId(String appId) { - this.appId = appId; - } - - public String getSecretId() { - return secretId; - } - - public void setSecretId(String secretId) { - this.secretId = secretId; - } - - public String getSecretKey() { - return secretKey; - } - - public void setSecretKey(String secretKey) { - this.secretKey = secretKey; - } - - public String getSignName() { - return signName; - } - - public void setSignName(String signName) { - this.signName = signName; - } - - public String getTemplateId() { - return templateId; - } - - public void setTemplateId(String templateId) { - this.templateId = templateId; - } } + } diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/AiTypeEnum.java b/common/src/main/java/org/apache/hertzbeat/common/constants/AiTypeEnum.java index 14e58decfbc..d1594033de1 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/constants/AiTypeEnum.java +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/AiTypeEnum.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.common.constants; +import java.util.Arrays; + /** * Ai type Enum */ @@ -48,13 +50,10 @@ public enum AiTypeEnum { * get type */ public static AiTypeEnum getTypeByName(String type) { - for (AiTypeEnum aiTypeEnum : values()) { - if (aiTypeEnum.name().equals(type)) { - return aiTypeEnum; - } - - } - return null; + return Arrays.stream(values()) + .filter(ai -> ai.name().equals(type)) + .findFirst() + .orElse(null); } } diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/ConfigConstants.java b/common/src/main/java/org/apache/hertzbeat/common/constants/ConfigConstants.java new file mode 100644 index 00000000000..5703a75d07d --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/ConfigConstants.java @@ -0,0 +1,61 @@ +/* + * 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.hertzbeat.common.constants; + +/** + * Extract all public strings that the project needs to configure in yml. + */ + +public interface ConfigConstants { + + /** + * Package name constant. + */ + interface PkgConstant { + String PKG = "org.apache.hertzbeat"; + } + + /** + * hertzbeat project module constant. + */ + interface FunctionModuleConstants { + + String ALERT = "alert"; + + String ALERTER = "alerter"; + + String COLLECTOR = "collector"; + + String COMMON = "common"; + + String WAREHOUSE = "warehouse"; + + String AI = "ai"; + + String STATUS = "status"; + + String SCHEDULER = "scheduler"; + + String PUSH = "push"; + + String DISPATCH = "dispatch"; + + String INFO = "info"; + } + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/DataQueueConstants.java b/common/src/main/java/org/apache/hertzbeat/common/constants/DataQueueConstants.java new file mode 100644 index 00000000000..c8e51b68645 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/DataQueueConstants.java @@ -0,0 +1,54 @@ +/* + * 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.hertzbeat.common.constants; + +/** + * Queue dependent constant + */ +public interface DataQueueConstants { + + /** + * Queue name prefix + */ + String PREFIX = "common.queue"; + + /** + * name + */ + String NAME = "type"; + + /** + * kafka + */ + String KAFKA = "kafka"; + + /** + * Local memory + */ + String IN_MEMORY = "memory"; + + /** + * redis + */ + String REDIS = "redis"; + + /** + * netty + */ + String NETTY = "netty"; +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/ExportFileConstants.java b/common/src/main/java/org/apache/hertzbeat/common/constants/ExportFileConstants.java new file mode 100644 index 00000000000..cc800fdf70a --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/ExportFileConstants.java @@ -0,0 +1,79 @@ +/* + * 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.hertzbeat.common.constants; + +/** + * Export file type constants + */ + +public interface ExportFileConstants { + + /** + * Export file name constants. + */ + String FILE = "file"; + + /** + * Excel export files constants. + */ + interface ExcelFile { + + /** + * Export file type. + */ + String TYPE = "EXCEL"; + + /** + * Export file suffix. + */ + String FILE_SUFFIX = ".xlsx"; + } + + /** + * Json export file constants. + */ + interface JsonFile { + + /** + * Export file type. + */ + String TYPE = "JSON"; + + /** + * Export file suffix. + */ + String FILE_SUFFIX = ".json"; + } + + /** + * Yaml export file constants. + */ + interface YamlFile { + + /** + * Export file type. + */ + String TYPE = "YAML"; + + /** + * Export file suffix. + */ + String FILE_SUFFIX = ".yaml"; + } + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/GeneralConfigTypeEnum.java b/common/src/main/java/org/apache/hertzbeat/common/constants/GeneralConfigTypeEnum.java new file mode 100644 index 00000000000..6d8d0d74ed9 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/GeneralConfigTypeEnum.java @@ -0,0 +1,54 @@ +/* + * 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.hertzbeat.common.constants; + +/** + * General Config Type Enum + */ +public enum GeneralConfigTypeEnum { + + /** + * template config + */ + template, + + /** + * system secret config + */ + secret, + + /** + * sms general config + */ + sms, + + /** + * system config + */ + system, + + /** + * mail general config + */ + email, + + /** + * system store config + */ + oss; +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/NetworkConstants.java b/common/src/main/java/org/apache/hertzbeat/common/constants/NetworkConstants.java new file mode 100644 index 00000000000..de58a2e1fe7 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/NetworkConstants.java @@ -0,0 +1,68 @@ +/* + * 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.hertzbeat.common.constants; + +/** + * Http Constants. + */ + +public interface NetworkConstants { + + String KEEP_ALIVE = "Keep-Alive"; + + String USER_AGENT = "Mozilla/5.0 (Windows NT 6.1; WOW64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/41.0.2272.76 Safari/537.36\")"; + + String IPV6 = "ipv6"; + + String IPV4 = "ipv4"; + + String ERROR_MSG = "errorMsg"; + + String URL = "url"; + + String HTTP_HEADER = "http://"; + + String HTTPS_HEADER = "https://"; + + String RESPONSE_TIME = "responseTime"; + + String STATUS_CODE = "StatusCode"; + + String X_AUTH_TOKEN = "X-Auth-Token"; + + String LOCATION = "Location"; + + /** + * HttpClient Configuration Constants. + */ + interface HttpClientConstants { + + int READ_TIME_OUT = 6 * 1000; + int WRITE_TIME_OUT = 6 * 1000; + int CONNECT_TIME_OUT = 6 * 1000; + int CHUNK_SIZE = 8196; + int MAX_IDLE_CONNECTIONS = 20; + int KEEP_ALIVE_TIMEOUT = 30 * 1000; + int HTTP_CLIENT_CONNECTION_MANAGER_MAX_PER_ROUTE = 20; + int HTTP_CLIENT_CONNECTION_MANAGER_MAX_TOTAL = 20; + int HTTPCLIENT_KEEP_ALIVE_DURATION = 30 * 1000; + int HTTP_CLIENT_CONNECTION_MANAGER_CLOSE_WAIT_TIME_MS = 1000; + int HTTP_CLIENT_CONNECTION_MANAGER_CLOSE_IDLE_TIME_S = 30; + } + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/PluginType.java b/common/src/main/java/org/apache/hertzbeat/common/constants/PluginType.java index d586889cec6..3b94797050d 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/constants/PluginType.java +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/PluginType.java @@ -25,5 +25,9 @@ public enum PluginType { /** * do something after alter */ - POST_ALERT + POST_ALERT, + /** + * do something after collect + */ + POST_COLLECT } diff --git a/common/src/main/java/org/apache/hertzbeat/common/constants/SignConstants.java b/common/src/main/java/org/apache/hertzbeat/common/constants/SignConstants.java index fd777f6ef03..b69e1e16069 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/constants/SignConstants.java +++ b/common/src/main/java/org/apache/hertzbeat/common/constants/SignConstants.java @@ -24,6 +24,8 @@ public interface SignConstants { String DOUBLE_MARK = ":"; + String SINGLE_MARK = ";"; + String WELL_NO = "#"; String LINE_FEED = "\n"; @@ -31,4 +33,10 @@ public interface SignConstants { String CARRIAGE_RETURN = "\r"; String RIGHT_DASH = "/"; + + String COMMA = ","; + + String BLANK = " "; + + String DOT = "."; } diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/job/Metrics.java b/common/src/main/java/org/apache/hertzbeat/common/entity/job/Metrics.java index dcde28bdb8e..37b96db3307 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/job/Metrics.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/job/Metrics.java @@ -38,6 +38,7 @@ import org.apache.hertzbeat.common.entity.job.protocol.JmxProtocol; import org.apache.hertzbeat.common.entity.job.protocol.MemcachedProtocol; import org.apache.hertzbeat.common.entity.job.protocol.MongodbProtocol; +import org.apache.hertzbeat.common.entity.job.protocol.MqttProtocol; import org.apache.hertzbeat.common.entity.job.protocol.NebulaGraphProtocol; import org.apache.hertzbeat.common.entity.job.protocol.NginxProtocol; import org.apache.hertzbeat.common.entity.job.protocol.NgqlProtocol; @@ -48,6 +49,7 @@ import org.apache.hertzbeat.common.entity.job.protocol.RedfishProtocol; import org.apache.hertzbeat.common.entity.job.protocol.RedisProtocol; import org.apache.hertzbeat.common.entity.job.protocol.RocketmqProtocol; +import org.apache.hertzbeat.common.entity.job.protocol.ScriptProtocol; import org.apache.hertzbeat.common.entity.job.protocol.SmtpProtocol; import org.apache.hertzbeat.common.entity.job.protocol.SnmpProtocol; import org.apache.hertzbeat.common.entity.job.protocol.SshProtocol; @@ -220,6 +222,14 @@ public class Metrics { * Monitoring configuration information using the public imap protocol */ private ImapProtocol imap; + /** + * Monitoring configuration information using the public script protocol + */ + private ScriptProtocol script; + /** + * Monitoring configuration information using the public mqtt protocol + */ + private MqttProtocol mqtt; /** * collector use - Temporarily store subTask metrics response data @@ -317,10 +327,6 @@ public static class Field { * Metric type 0-number: number 1-string: string */ private byte type = 1; - /** - * Whether this field is the instance - */ - private boolean instance = false; /** * Whether this field is the label */ diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/MqttProtocol.java b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/MqttProtocol.java new file mode 100644 index 00000000000..c14c162211d --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/MqttProtocol.java @@ -0,0 +1,95 @@ +/* + * 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.hertzbeat.common.entity.job.protocol; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.commons.lang3.StringUtils; + +/** + * mqtt protocol + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +public class MqttProtocol { + + /** + * ip address or domain name of the peer host + */ + private String host; + + /** + * peer host port + */ + private String port; + + /** + * username + */ + private String username; + + /** + * password + */ + private String password; + + /** + * time out period + */ + private String timeout; + + /** + * client id + */ + private String clientId; + + /** + * message used to test whether the mqtt connection can be pushed normally + */ + private String testMessage; + + /** + * protocol version of mqtt + */ + private String protocolVersion; + + /** + * monitor topic + */ + private String topic; + + /** + * Determine whether authentication is required + * @return true if it has auth info + */ + public boolean hasAuth() { + return StringUtils.isNotBlank(this.username) && StringUtils.isNotBlank(this.password); + } + + /** + * Determine whether you need to test whether messages can be pushed normally + * @return turn if it has test message + */ + public boolean testPublish(){ + return StringUtils.isNotBlank(this.testMessage); + } +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/NginxProtocol.java b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/NginxProtocol.java index 732caa93840..422e49c1b55 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/NginxProtocol.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/NginxProtocol.java @@ -51,6 +51,11 @@ public class NginxProtocol { */ private String url; + /** + * Whether nginx uses link encryption ssl/tls, i.e. http or https + */ + private String ssl = "false"; + /** * Validates the relevant parameters * @return is invalid true or false diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/RedfishProtocol.java b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/RedfishProtocol.java index b8042e12f29..42b3e53fa5e 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/RedfishProtocol.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/RedfishProtocol.java @@ -17,6 +17,7 @@ package org.apache.hertzbeat.common.entity.job.protocol; +import java.util.List; import lombok.AllArgsConstructor; import lombok.Builder; import lombok.Data; @@ -59,4 +60,6 @@ public class RedfishProtocol { * Redfish Resource Name and Corresponding Collection URI */ private String schema; + + private List jsonPath; } diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/ScriptProtocol.java b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/ScriptProtocol.java new file mode 100644 index 00000000000..1f116b30a3f --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/job/protocol/ScriptProtocol.java @@ -0,0 +1,63 @@ +/* + * 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.hertzbeat.common.entity.job.protocol; + +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * script protocol + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor + +public class ScriptProtocol { + /** + * OS charset + */ + private String charset; + + /** + * Script working directory + */ + private String workDirectory; + + /** + * Script command + */ + private String scriptCommand; + + /** + * File name of script + */ + private String scriptPath; + + /** + * Response data parsing mode:oneRow, multiRow + */ + private String parseType; + + /** + * Script tool name, exp: bash, cmd, powershell + */ + private String scriptTool; +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Collector.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Collector.java index 78c5eb51ab1..c692bab629c 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Collector.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Collector.java @@ -26,7 +26,7 @@ import jakarta.persistence.Table; import jakarta.persistence.UniqueConstraint; import jakarta.validation.constraints.Min; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; import java.time.LocalDateTime; import lombok.AllArgsConstructor; import lombok.Builder; @@ -57,11 +57,11 @@ public class Collector { private Long id; @Schema(title = "collector identity name", description = "collector identity name") - @NotNull + @NotBlank(message = "name can not null") private String name; @Schema(title = "collector ip", description = "collector remote ip") - @NotNull + @NotBlank(message = "ip can not null") private String ip; @Schema(title = "collector version", description = "collector version") diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Define.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Define.java new file mode 100644 index 00000000000..a06fca5712a --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Define.java @@ -0,0 +1,73 @@ +/* + * 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.hertzbeat.common.entity.manager; + +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.Id; +import jakarta.persistence.Lob; +import jakarta.persistence.Table; +import java.time.LocalDateTime; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.springframework.data.annotation.CreatedBy; +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedBy; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +/** + * monitor define entity + */ +@Entity +@Table(name = "hzb_define") +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Schema(description = "monitor define entity") +@EntityListeners(AuditingEntityListener.class) +public class Define { + + @Id + @Schema(title = "app", example = "websocket") + private String app; + + @Lob + @Schema(title = "define content", description = "define yml content") + private String content; + + @Schema(title = "The creator of this record", example = "tom") + @CreatedBy + private String creator; + + @Schema(title = "This record was last modified by") + @LastModifiedBy + private String modifier; + + @Schema(title = "This record creation time (millisecond timestamp)") + @CreatedDate + private LocalDateTime gmtCreate; + + @Schema(title = "Record the latest modification time (timestamp in milliseconds)") + @LastModifiedDate + private LocalDateTime gmtUpdate; +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/GeneralConfig.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/GeneralConfig.java index 4f65da6806b..08325e79bf3 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/GeneralConfig.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/GeneralConfig.java @@ -25,7 +25,7 @@ import jakarta.persistence.EntityListeners; import jakarta.persistence.Id; import jakarta.persistence.Table; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; import java.time.LocalDateTime; import lombok.AllArgsConstructor; import lombok.Builder; @@ -53,7 +53,7 @@ public class GeneralConfig { @Id @Schema(title = "Config type: email sms, primary key ", description = "Config type: email sms, primary key ", accessMode = READ_WRITE) - @NotNull + @NotBlank(message = "ip can not null") private String type; @Schema(title = "Config content", description = "Config content,formatjson", accessMode = READ_WRITE) diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java index dd59207da41..2d3665bf13a 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Monitor.java @@ -139,14 +139,14 @@ public class Monitor { /** * Record create time */ - @Schema(title = "Record create time", example = "1612198922000", accessMode = READ_ONLY) + @Schema(title = "Record create time", example = "2024-07-02T20:09:34.903217", accessMode = READ_ONLY) @CreatedDate private LocalDateTime gmtCreate; /** * Record the latest modification time (timestamp in milliseconds) */ - @Schema(title = "Record modify time", example = "1612198444000", accessMode = READ_ONLY) + @Schema(title = "Record modify time", example = "2024-07-02T20:09:34.903217", accessMode = READ_ONLY) @LastModifiedDate private LocalDateTime gmtUpdate; diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeReceiver.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeReceiver.java index b794fd0d969..af03830b279 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeReceiver.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeReceiver.java @@ -28,6 +28,7 @@ import jakarta.persistence.Id; import jakarta.persistence.Table; import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.NotNull; import jakarta.validation.constraints.Size; import java.time.LocalDateTime; @@ -63,7 +64,7 @@ public class NoticeReceiver { @Schema(title = "Recipient name", description = "Recipient name", example = "tom", accessMode = READ_WRITE) @Size(max = 100) - @NotNull + @NotBlank(message = "name can not null") private String name; @Schema(title = "Notification information method: 0-SMS 1-Email 2-webhook 3-WeChat Official Account 4-Enterprise WeChat Robot " @@ -75,7 +76,7 @@ public class NoticeReceiver { + "WeChat app message", accessMode = READ_WRITE) @Min(0) - @NotNull + @NotNull(message = "type can not null") private Byte type; @Schema(title = "Mobile number: Valid when the notification method is SMS", diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeRule.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeRule.java index 0e24e2d7a94..8f20554b94b 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeRule.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeRule.java @@ -28,7 +28,8 @@ import jakarta.persistence.GenerationType; import jakarta.persistence.Id; import jakarta.persistence.Table; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; +import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.Size; import java.time.LocalDateTime; import java.time.ZonedDateTime; @@ -67,13 +68,13 @@ public class NoticeRule { description = "Policy name", example = "dispatch-1", accessMode = READ_WRITE) @Size(max = 100) - @NotNull + @NotBlank(message = "name can not null") private String name; @Schema(title = "Recipient ID", description = "Recipient ID", example = "4324324", accessMode = READ_WRITE) - @NotNull + @NotEmpty(message = "receiverId can not empty") @Convert(converter = JsonLongListAttributeConverter.class) private List receiverId; diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeTemplate.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeTemplate.java index 7f1a99deaab..45788f64521 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeTemplate.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/NoticeTemplate.java @@ -89,14 +89,15 @@ public class NoticeTemplate { @Schema(title = "Template content", description = "Template content", - example = "[${title}]\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}", accessMode = READ_WRITE) + example = """ + [${title}] + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}""", accessMode = READ_WRITE) @Size(max = 60000) @Lob @NotBlank diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Param.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Param.java index bb331495d62..80810908341 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Param.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Param.java @@ -30,7 +30,7 @@ import jakarta.persistence.Table; import jakarta.persistence.UniqueConstraint; import jakarta.validation.constraints.Min; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; import jakarta.validation.constraints.Size; import java.time.LocalDateTime; import lombok.AllArgsConstructor; @@ -74,7 +74,7 @@ public class Param { */ @Schema(title = "Parameter identifier field", example = "port", accessMode = READ_WRITE) @Size(max = 100) - @NotNull + @NotBlank(message = "field can not null") private String field; /** diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Tag.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Tag.java index 8d887015c3e..a0f6ff6de18 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Tag.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/Tag.java @@ -29,7 +29,7 @@ import jakarta.persistence.Table; import jakarta.validation.constraints.Max; import jakarta.validation.constraints.Min; -import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.NotBlank; import java.time.LocalDateTime; import java.util.Objects; import lombok.AllArgsConstructor; @@ -61,7 +61,7 @@ public class Tag { private Long id; @Schema(title = "Tag Field", example = "app", accessMode = READ_WRITE) - @NotNull + @NotBlank(message = "name can not null") private String name; @Schema(title = "Tag Value", example = "23", accessMode = READ_WRITE) @@ -78,7 +78,7 @@ public class Tag { accessMode = READ_WRITE) @Min(0) @Max(3) - private byte type; + private Byte type; @Schema(title = "The creator of this record", example = "tom", accessMode = READ_ONLY) @CreatedBy diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/Bulletin.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/Bulletin.java new file mode 100644 index 00000000000..a500a6320f4 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/Bulletin.java @@ -0,0 +1,97 @@ +/* + * 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.hertzbeat.common.entity.manager.bulletin; + +import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_WRITE; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.Column; +import jakarta.persistence.Convert; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.Id; +import jakarta.persistence.Table; +import java.time.LocalDateTime; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.hertzbeat.common.entity.manager.JsonLongListAttributeConverter; +import org.apache.hertzbeat.common.entity.manager.JsonTagListAttributeConverter; +import org.apache.hertzbeat.common.entity.manager.TagItem; +import org.springframework.data.annotation.CreatedBy; +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedBy; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +/** + * Bulletin + */ +@Entity +@Data +@Schema(description = "Bulletin") +@Builder +@AllArgsConstructor +@NoArgsConstructor +@EntityListeners(AuditingEntityListener.class) +@Table(name = "hzb_bulletin") +public class Bulletin { + + @Id + @Schema(description = "Bulletin ID", example = "1") + private Long id; + + @Schema(description = "Bulletin Name", example = "Bulletin1", accessMode = READ_WRITE) + private String name; + + @Schema(description = "Monitor IDs", example = "1") + @Column(name = "monitor_ids", length = 5000) + @Convert(converter = JsonLongListAttributeConverter.class) + private List monitorIds; + + @Schema(description = "Monitor Type eg: jvm, tomcat", example = "jvm", accessMode = READ_WRITE) + private String app; + + + @Schema(description = "Monitor Fields") + @Column(length = 4096, columnDefinition = "json") + private String fields; + + @Schema(description = "Tags(status:success,env:prod)", example = "{name: key1, value: value1}", + accessMode = READ_WRITE) + @Convert(converter = JsonTagListAttributeConverter.class) + @Column(length = 2048) + private List tags; + + @Schema(title = "The creator of this record", example = "tom", accessMode = READ_WRITE) + @CreatedBy + private String creator; + + @Schema(title = "The modifier of this record", example = "tom", accessMode = READ_WRITE) + @LastModifiedBy + private String modifier; + + @Schema(title = "Record create time", example = "2024-07-02T20:09:34.903217", accessMode = READ_WRITE) + @CreatedDate + private LocalDateTime gmtCreate; + + @Schema(title = "Record modify time", example = "2024-07-02T20:09:34.903217", accessMode = READ_WRITE) + @LastModifiedDate + private LocalDateTime gmtUpdate; +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/queue/CommonDataQueueTest.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinDto.java similarity index 57% rename from common/src/test/java/org/apache/hertzbeat/common/queue/CommonDataQueueTest.java rename to common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinDto.java index 5b6e836d55b..f077fd72651 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/queue/CommonDataQueueTest.java +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinDto.java @@ -15,46 +15,38 @@ * limitations under the License. */ -package org.apache.hertzbeat.common.queue; -import org.junit.jupiter.api.AfterEach; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; +package org.apache.hertzbeat.common.entity.manager.bulletin; + +import java.util.List; +import java.util.Map; +import lombok.Data; /** - * Test case for {@link CommonDataQueue} + * Bulletin DTO */ -class CommonDataQueueTest { - - @BeforeEach - void setUp() { - } - - @AfterEach - void tearDown() { - } +@Data +public class BulletinDto { - @Test - void addAlertData() { - } + /** + * Bulletin name + */ + private String name; - @Test - void pollAlertData() { - } + /** + * Monitor type eg: jvm, tomcat + */ + private String app; - @Test - void pollAlertMetricsData() { - } - @Test - void pollPersistentStorageMetricsData() { - } + /** + * Monitor fields + */ + private Map> fields; - @Test - void pollRealTimeStorageMetricsData() { - } + /** + * Monitor ids + */ + private List monitorIds; - @Test - void sendMetricsData() { - } -} \ No newline at end of file +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinMetricsData.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinMetricsData.java new file mode 100644 index 00000000000..33f93a20048 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinMetricsData.java @@ -0,0 +1,135 @@ +/* + * 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.hertzbeat.common.entity.manager.bulletin; + +import io.swagger.v3.oas.annotations.media.Schema; +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * Bulletin Metrics Data + */ +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Schema(description = "Bulletin Metrics Data") +public class BulletinMetricsData { + + /** + * Bulletin Name + */ + @Schema(title = "Bulletin Name") + private String name; + + /** + * Content Data + */ + @Schema(description = "Content Data") + private List content; + + /** + * Bulletin Metrics Data + */ + @lombok.Data + @Builder + @AllArgsConstructor + @NoArgsConstructor + public static class Data { + + /** + * Monitor Name + */ + @Schema(title = "Monitor name") + private String monitorName; + + /** + * Monitor ID + */ + @Schema(title = "Monitor ID") + private Long monitorId; + + /** + * Monitor IP + */ + @Schema(title = "Monitor IP") + private String host; + + /** + * Monitor Metrics + */ + @Schema(title = "Monitor Metrics") + private List metrics; + } + + /** + * Metrics Data + */ + @lombok.Data + @Builder + @AllArgsConstructor + @NoArgsConstructor + @Schema(description = "Metrics Data") + public static class Metric{ + + /** + * Metric type + */ + @Schema(title = "Metric type") + private String name; + + /** + * Metric fields + */ + @Schema(title = "Metric fields") + private List> fields; + } + + + /** + * Metrics field + */ + @lombok.Data + @Builder + @AllArgsConstructor + @NoArgsConstructor + @Schema(description = "Metrics field") + public static class Field{ + + /** + * Field name + */ + @Schema(title = "Field name") + private String key; + + /** + * Field unit + */ + @Schema(title = "Field unit") + private String unit; + + /** + * Field value + */ + @Schema(title = "Field value") + private String value; + } +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinVo.java b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinVo.java new file mode 100644 index 00000000000..a49fbb18a51 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/manager/bulletin/BulletinVo.java @@ -0,0 +1,65 @@ +/* + * 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.hertzbeat.common.entity.manager.bulletin; + +import java.util.List; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.hertzbeat.common.entity.manager.TagItem; + +/** + * Bulletin Vo + */ + +@Data +@AllArgsConstructor +@NoArgsConstructor +public class BulletinVo { + + /** + * Bulletin ID + */ + private Long id; + + /** + * Bulletin name + */ + private String name; + + /** + * Bulletin metrics + */ + private List metrics; + + /** + * Bulletin tags + */ + private List tags; + + /** + * Bulletin monitor ID + */ + private List monitorId; + + /** + * Bulletin monitor name + */ + private String app; + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginConfig.java b/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginConfig.java new file mode 100644 index 00000000000..f0377f50d5d --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginConfig.java @@ -0,0 +1,36 @@ +/* + * 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. + */ + +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: cluster_msg.proto + +package org.apache.hertzbeat.common.entity.plugin; + +import java.util.List; +import lombok.Data; +import org.apache.hertzbeat.common.entity.manager.ParamDefine; + +/** + * The configuration file of the plugin, including parameters and other information + */ +@Data +public class PluginConfig { + + private List params; +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginContext.java b/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginContext.java new file mode 100644 index 00000000000..e8433f9abc4 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/entity/plugin/PluginContext.java @@ -0,0 +1,40 @@ +/* + * 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.hertzbeat.common.entity.plugin; + + +import java.util.List; +import lombok.Builder; +import lombok.Data; +import org.apache.hertzbeat.common.entity.job.Configmap; + +/** + * plugin context + */ +@Builder +@Data +public class PluginContext { + + /** + * params + */ + List params; + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueue.java b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueue.java index 42a9fe8fd49..2156548a502 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueue.java +++ b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueue.java @@ -20,8 +20,8 @@ import java.util.HashMap; import java.util.Map; import java.util.concurrent.LinkedBlockingQueue; -import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.constants.DataQueueConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.queue.CommonDataQueue; @@ -34,7 +34,12 @@ * common data queue implement memory */ @Configuration -@ConditionalOnProperty(prefix = "common.queue", name = "type", havingValue = "memory", matchIfMissing = true) +@ConditionalOnProperty( + prefix = DataQueueConstants.PREFIX, + name = DataQueueConstants.NAME, + havingValue = DataQueueConstants.IN_MEMORY, + matchIfMissing = true +) @Slf4j @Primary public class InMemoryCommonDataQueue implements CommonDataQueue, DisposableBean { @@ -67,22 +72,22 @@ public void sendAlertsData(Alert alert) { @Override public Alert pollAlertsData() throws InterruptedException { - return alertDataQueue.poll(2, TimeUnit.SECONDS); + return alertDataQueue.take(); } @Override public CollectRep.MetricsData pollMetricsDataToAlerter() throws InterruptedException { - return metricsDataToAlertQueue.poll(2, TimeUnit.SECONDS); + return metricsDataToAlertQueue.take(); } @Override public CollectRep.MetricsData pollMetricsDataToPersistentStorage() throws InterruptedException { - return metricsDataToPersistentStorageQueue.poll(2, TimeUnit.SECONDS); + return metricsDataToPersistentStorageQueue.take(); } @Override public CollectRep.MetricsData pollMetricsDataToRealTimeStorage() throws InterruptedException { - return metricsDataToRealTimeStorageQueue.poll(2, TimeUnit.SECONDS); + return metricsDataToRealTimeStorageQueue.take(); } @Override diff --git a/common/src/main/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueue.java b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueue.java index 51cdb1f50fa..048f5a6415e 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueue.java +++ b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueue.java @@ -25,6 +25,7 @@ import java.util.concurrent.locks.ReentrantLock; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.config.CommonProperties; +import org.apache.hertzbeat.common.constants.DataQueueConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.queue.CommonDataQueue; @@ -45,30 +46,35 @@ import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Configuration; + /** * common data queue implement kafka */ @Configuration -@ConditionalOnProperty(prefix = "common.queue", name = "type", havingValue = "kafka") +@ConditionalOnProperty( + prefix = DataQueueConstants.PREFIX, + name = DataQueueConstants.NAME, + havingValue = DataQueueConstants.KAFKA +) @Slf4j public class KafkaCommonDataQueue implements CommonDataQueue, DisposableBean { + private final ReentrantLock alertLock = new ReentrantLock(); + private final ReentrantLock metricDataToAlertLock = new ReentrantLock(); + private final ReentrantLock metricDataToPersistentLock = new ReentrantLock(); + private final ReentrantLock metricDataToRealTimeStorageLock = new ReentrantLock(); + private final LinkedBlockingQueue alertDataQueue; + private final LinkedBlockingQueue metricsDataToAlertQueue; + private final LinkedBlockingQueue metricsDataToPersistentStorageQueue; + private final LinkedBlockingQueue metricsDataToRealTimeStorageQueue; + private final CommonProperties.KafkaProperties kafka; private KafkaProducer metricsDataProducer; private KafkaProducer alertDataProducer; private KafkaConsumer alertDataConsumer; private KafkaConsumer metricsDataToAlertConsumer; private KafkaConsumer metricsDataToPersistentStorageConsumer; private KafkaConsumer metricsDataToRealTimeStorageConsumer; - private final ReentrantLock lock1 = new ReentrantLock(); - private final ReentrantLock lock2 = new ReentrantLock(); - private final ReentrantLock lock3 = new ReentrantLock(); - private final ReentrantLock lock4 = new ReentrantLock(); - private final LinkedBlockingQueue alertDataQueue; - private final LinkedBlockingQueue metricsDataToAlertQueue; - private final LinkedBlockingQueue metricsDataToPersistentStorageQueue; - private final LinkedBlockingQueue metricsDataToRealTimeStorageQueue; - private final CommonProperties.KafkaProperties kafka; - + public KafkaCommonDataQueue(CommonProperties properties) { if (properties == null || properties.getQueue() == null || properties.getQueue().getKafka() == null) { log.error("init error, please config common.queue.kafka props in application.yml"); @@ -81,8 +87,8 @@ public KafkaCommonDataQueue(CommonProperties properties) { metricsDataToRealTimeStorageQueue = new LinkedBlockingQueue<>(); initDataQueue(); } - - private void initDataQueue(){ + + private void initDataQueue() { try { Map producerConfig = new HashMap<>(3); producerConfig.put(ProducerConfig.BOOTSTRAP_SERVERS_CONFIG, kafka.getServers()); @@ -103,22 +109,20 @@ private void initDataQueue(){ alertConsumerConfig.put("group.id", "alert-consumer"); alertDataConsumer = new KafkaConsumer<>(alertConsumerConfig, new LongDeserializer(), new AlertDeserializer()); alertDataConsumer.subscribe(Collections.singletonList(kafka.getAlertsDataTopic())); - + Map metricsToAlertConsumerConfig = new HashMap<>(consumerConfig); metricsToAlertConsumerConfig.put("group.id", "metrics-alert-consumer"); metricsDataToAlertConsumer = new KafkaConsumer<>(metricsToAlertConsumerConfig, new LongDeserializer(), new KafkaMetricsDataDeserializer()); metricsDataToAlertConsumer.subscribe(Collections.singletonList(kafka.getMetricsDataTopic())); - + Map metricsToPersistentConsumerConfig = new HashMap<>(consumerConfig); metricsToPersistentConsumerConfig.put("group.id", "metrics-persistent-consumer"); - metricsDataToPersistentStorageConsumer = new KafkaConsumer<>(metricsToPersistentConsumerConfig, new LongDeserializer(), - new KafkaMetricsDataDeserializer()); + metricsDataToPersistentStorageConsumer = new KafkaConsumer<>(metricsToPersistentConsumerConfig, new LongDeserializer(), new KafkaMetricsDataDeserializer()); metricsDataToPersistentStorageConsumer.subscribe(Collections.singletonList(kafka.getMetricsDataTopic())); - + Map metricsToRealTimeConsumerConfig = new HashMap<>(consumerConfig); metricsToRealTimeConsumerConfig.put("group.id", "metrics-memory-consumer"); - metricsDataToRealTimeStorageConsumer = new KafkaConsumer<>(metricsToRealTimeConsumerConfig, new LongDeserializer(), - new KafkaMetricsDataDeserializer()); + metricsDataToRealTimeStorageConsumer = new KafkaConsumer<>(metricsToRealTimeConsumerConfig, new LongDeserializer(), new KafkaMetricsDataDeserializer()); metricsDataToRealTimeStorageConsumer.subscribe(Collections.singletonList(kafka.getMetricsDataTopic())); } catch (Exception e) { log.error("please config common.queue.kafka props correctly", e); @@ -137,110 +141,52 @@ public void sendAlertsData(Alert alert) { @Override public Alert pollAlertsData() throws InterruptedException { - Alert alert = alertDataQueue.poll(); - if (alert != null) { - return alert; - } - lock1.lockInterruptibly(); - try { - ConsumerRecords records = alertDataConsumer.poll(Duration.ofSeconds(1)); - int index = 0; - for (ConsumerRecord record : records) { - if (index == 0) { - alert = record.value(); - } else { - alertDataQueue.offer(record.value()); - } - index++; - } - alertDataConsumer.commitAsync(); - } catch (Exception e){ - log.error(e.getMessage()); - } finally { - lock1.unlock(); - } - return alert; + return genericPollDataFunction(alertDataQueue, alertDataConsumer, alertLock); + } @Override public CollectRep.MetricsData pollMetricsDataToAlerter() throws InterruptedException { - CollectRep.MetricsData metricsData = metricsDataToAlertQueue.poll(); - if (metricsData != null) { - return metricsData; - } - lock2.lockInterruptibly(); - try { - ConsumerRecords records = metricsDataToAlertConsumer.poll(Duration.ofSeconds(1)); - int index = 0; - for (ConsumerRecord record : records) { - if (index == 0) { - metricsData = record.value(); - } else { - metricsDataToAlertQueue.offer(record.value()); - } - index++; - } - metricsDataToAlertConsumer.commitAsync(); - } catch (Exception e){ - log.error(e.getMessage()); - } finally { - lock2.unlock(); - } - return metricsData; + return genericPollDataFunction(metricsDataToAlertQueue, metricsDataToAlertConsumer, metricDataToAlertLock); } @Override public CollectRep.MetricsData pollMetricsDataToPersistentStorage() throws InterruptedException { - CollectRep.MetricsData persistentStorageMetricsData = metricsDataToPersistentStorageQueue.poll(); - if (persistentStorageMetricsData != null) { - return persistentStorageMetricsData; - } - lock3.lockInterruptibly(); - try { - ConsumerRecords records = metricsDataToPersistentStorageConsumer.poll(Duration.ofSeconds(1)); - int index = 0; - for (ConsumerRecord record : records) { - if (index == 0) { - persistentStorageMetricsData = record.value(); - } else { - metricsDataToPersistentStorageQueue.offer(record.value()); - } - index++; - } - metricsDataToPersistentStorageConsumer.commitAsync(); - } catch (Exception e){ - log.error(e.getMessage()); - } finally { - lock3.unlock(); - } - return persistentStorageMetricsData; + return genericPollDataFunction(metricsDataToPersistentStorageQueue, metricsDataToPersistentStorageConsumer, metricDataToPersistentLock); } + @Override public CollectRep.MetricsData pollMetricsDataToRealTimeStorage() throws InterruptedException { - CollectRep.MetricsData realTimeMetricsData = metricsDataToRealTimeStorageQueue.poll(); - if (realTimeMetricsData != null) { - return realTimeMetricsData; + return genericPollDataFunction(metricsDataToRealTimeStorageQueue, metricsDataToRealTimeStorageConsumer, metricDataToRealTimeStorageLock); + } + + + public T genericPollDataFunction(LinkedBlockingQueue dataQueue, KafkaConsumer dataConsumer, ReentrantLock lock) throws InterruptedException { + + T pollData = dataQueue.poll(); + if (pollData != null) { + return pollData; } - lock4.lockInterruptibly(); + lock.lockInterruptibly(); try { - ConsumerRecords records = metricsDataToRealTimeStorageConsumer.poll(Duration.ofSeconds(1)); + ConsumerRecords records = dataConsumer.poll(Duration.ofSeconds(1)); int index = 0; - for (ConsumerRecord record : records) { + for (ConsumerRecord record : records) { if (index == 0) { - realTimeMetricsData = record.value(); + pollData = record.value(); } else { - metricsDataToRealTimeStorageQueue.offer(record.value()); + dataQueue.offer(record.value()); } index++; } - metricsDataToRealTimeStorageConsumer.commitAsync(); - } catch (Exception e){ + dataConsumer.commitAsync(); + } catch (Exception e) { log.error(e.getMessage()); } finally { - lock4.unlock(); + lock.unlock(); } - return realTimeMetricsData; + return pollData; } @Override diff --git a/common/src/main/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueue.java b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueue.java new file mode 100644 index 00000000000..1283489cea3 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueue.java @@ -0,0 +1,172 @@ +/* + * 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.hertzbeat.common.queue.impl; + +import io.lettuce.core.RedisClient; +import io.lettuce.core.RedisURI; +import io.lettuce.core.api.StatefulRedisConnection; +import io.lettuce.core.api.sync.RedisCommands; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.config.CommonProperties; +import org.apache.hertzbeat.common.constants.DataQueueConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.queue.CommonDataQueue; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.common.util.ProtoJsonUtil; +import org.springframework.beans.factory.DisposableBean; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; +import org.springframework.context.annotation.Configuration; + +/** + * common data queue implement redis. + */ +@Slf4j +@Configuration +@ConditionalOnProperty( + prefix = DataQueueConstants.PREFIX, + name = DataQueueConstants.NAME, + havingValue = DataQueueConstants.REDIS +) +public class RedisCommonDataQueue implements CommonDataQueue, DisposableBean { + + private final RedisClient redisClient; + private final StatefulRedisConnection connection; + private final RedisCommands syncCommands; + private final String metricsDataQueueNameToAlerter; + private final String metricsDataQueueNameToPersistentStorage; + private final String metricsDataQueueNameToRealTimeStorage; + private final String alertsDataQueueName; + private final CommonProperties.RedisProperties redisProperties; + + public RedisCommonDataQueue(CommonProperties properties) { + + if (properties == null || properties.getQueue() == null || properties.getQueue().getRedis() == null) { + log.error("init error, please config common.queue.redis props in application.yml"); + throw new IllegalArgumentException("please config common.queue.redis props"); + } + + this.redisProperties = properties.getQueue().getRedis(); + + this.redisClient = RedisClient.create( + RedisURI.builder() + .withHost(redisProperties.getRedisHost()) + .withPort(redisProperties.getRedisPort()) + .build() + ); + this.connection = redisClient.connect(); + this.syncCommands = connection.sync(); + this.metricsDataQueueNameToAlerter = redisProperties.getMetricsDataQueueNameToAlerter(); + this.metricsDataQueueNameToPersistentStorage = redisProperties.getMetricsDataQueueNameToPersistentStorage(); + this.metricsDataQueueNameToRealTimeStorage = redisProperties.getMetricsDataQueueNameToRealTimeStorage(); + this.alertsDataQueueName = redisProperties.getAlertsDataQueueName(); + } + + @Override + public Alert pollAlertsData() { + + try { + String alertJson = syncCommands.rpop(alertsDataQueueName); + if (alertJson != null) { + return JsonUtil.fromJson(alertJson, Alert.class); + } + } catch (Exception e) { + log.error("please config common.queue.redis props correctly", e); + throw new RuntimeException(e); + } + return null; + } + + @Override + public CollectRep.MetricsData pollMetricsDataToAlerter() { + + try { + String metricsDataJson = syncCommands.rpop(metricsDataQueueNameToAlerter); + if (metricsDataJson != null) { + return (CollectRep.MetricsData) ProtoJsonUtil.toProtobuf(metricsDataJson, CollectRep.MetricsData.newBuilder()); + } + } catch (Exception e) { + log.error(e.getMessage()); + throw new RuntimeException(e); + } + return null; + } + + @Override + public CollectRep.MetricsData pollMetricsDataToPersistentStorage() throws InterruptedException { + + try { + String metricsDataJson = syncCommands.rpop(metricsDataQueueNameToPersistentStorage); + if (metricsDataJson != null) { + return JsonUtil.fromJson(metricsDataJson, CollectRep.MetricsData.class); + } + } catch (Exception e) { + log.error(e.getMessage()); + throw new RuntimeException(e); + } + return null; + } + + @Override + public CollectRep.MetricsData pollMetricsDataToRealTimeStorage() throws InterruptedException { + + try { + String metricsDataJson = syncCommands.rpop(metricsDataQueueNameToRealTimeStorage); + if (metricsDataJson != null) { + return JsonUtil.fromJson(metricsDataJson, CollectRep.MetricsData.class); + } + } catch (Exception e) { + log.error(e.getMessage()); + throw new RuntimeException(e); + } + return null; + } + + @Override + public void sendAlertsData(Alert alert) { + + try { + String alertJson = JsonUtil.toJson(alert); + syncCommands.lpush(alertsDataQueueName, alertJson); + } catch (Exception e) { + log.error(e.getMessage()); + throw new RuntimeException(e); + } + } + + @Override + public void sendMetricsData(CollectRep.MetricsData metricsData) { + + try { + String metricsDataJson = ProtoJsonUtil.toJsonStr(metricsData); + syncCommands.lpush(metricsDataQueueNameToAlerter, metricsDataJson); + syncCommands.lpush(metricsDataQueueNameToPersistentStorage, metricsDataJson); + syncCommands.lpush(metricsDataQueueNameToRealTimeStorage, metricsDataJson); + } catch (Exception e) { + log.error(e.getMessage()); + throw new RuntimeException(e); + } + } + + public void destroy() { + + connection.close(); + redisClient.shutdown(); + } + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializer.java b/common/src/main/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializer.java index 015dbf7ae96..bcd2fe6d66f 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializer.java +++ b/common/src/main/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializer.java @@ -18,6 +18,7 @@ package org.apache.hertzbeat.common.serialize; import java.util.Map; +import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.kafka.common.header.Headers; import org.apache.kafka.common.serialization.Serializer; @@ -25,6 +26,8 @@ /** * kafka metrics data serializer */ + +@Slf4j public class KafkaMetricsDataSerializer implements Serializer { @Override @@ -34,6 +37,12 @@ public void configure(Map configs, boolean isKey) { @Override public byte[] serialize(String s, CollectRep.MetricsData metricsData) { + + if (metricsData == null) { + log.error("metricsData is null"); + return null; + } + return metricsData.toByteArray(); } diff --git a/common/src/main/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8Control.java b/common/src/main/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8Control.java index 13448e2868a..a3065fb661c 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8Control.java +++ b/common/src/main/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8Control.java @@ -20,21 +20,18 @@ import java.io.IOException; import java.io.InputStream; import java.io.InputStreamReader; +import java.lang.reflect.InvocationTargetException; import java.net.URL; import java.net.URLConnection; import java.nio.charset.StandardCharsets; -import java.security.AccessController; -import java.security.PrivilegedActionException; -import java.security.PrivilegedExceptionAction; import java.util.Locale; import java.util.PropertyResourceBundle; import java.util.ResourceBundle; -import lombok.extern.slf4j.Slf4j; /** * i18n resource bundle control */ -@Slf4j + public class ResourceBundleUtf8Control extends ResourceBundle.Control { private static final String JAVA_CLASS = "java.class"; @@ -44,6 +41,7 @@ public class ResourceBundleUtf8Control extends ResourceBundle.Control { @Override public ResourceBundle newBundle(String baseName, Locale locale, String format, ClassLoader loader, boolean reload) throws IllegalAccessException, InstantiationException, IOException { + String bundleName = toBundleName(baseName, locale); ResourceBundle bundle = null; if (JAVA_CLASS.equals(format)) { @@ -55,48 +53,25 @@ public ResourceBundle newBundle(String baseName, Locale locale, String format, C // If the class isn't a ResourceBundle subclass, throw a // ClassCastException. if (ResourceBundle.class.isAssignableFrom(bundleClass)) { - bundle = bundleClass.newInstance(); + bundle = bundleClass.getDeclaredConstructor().newInstance(); } else { throw new ClassCastException(bundleClass.getName() + " cannot be cast to ResourceBundle"); } } catch (ClassNotFoundException ignored) {} - } else if (JAVA_PROPERTIES.equals(format)) { - final String resourceName = toResourceName0(bundleName, "properties"); + catch (InvocationTargetException | NoSuchMethodException e) { + throw new RuntimeException(e); + } + } else if (JAVA_PROPERTIES.equals(format)) { + final String resourceName = toResourceName0(bundleName); if (resourceName == null) { return null; } - final ClassLoader classLoader = loader; - final boolean reloadFlag = reload; - InputStream stream; - try { - stream = AccessController.doPrivileged( - (PrivilegedExceptionAction) () -> { - InputStream is = null; - if (reloadFlag) { - URL url = classLoader.getResource(resourceName); - if (url != null) { - URLConnection connection = url.openConnection(); - if (connection != null) { - // Disable caches to get fresh data for - // reloading. - connection.setUseCaches(false); - is = connection.getInputStream(); - } - } - } else { - is = classLoader.getResourceAsStream(resourceName); - } - return is; - }); - } catch (PrivilegedActionException e) { - throw (IOException) e.getException(); - } + InputStream stream = getResourceInputStream(loader, resourceName, reload); + if (stream != null) { - try { + try (stream) { bundle = new PropertyResourceBundle(new InputStreamReader(stream, StandardCharsets.UTF_8)); - } finally { - stream.close(); } } } else { @@ -105,12 +80,34 @@ public ResourceBundle newBundle(String baseName, Locale locale, String format, C return bundle; } - private String toResourceName0(String bundleName, String suffix) { + private String toResourceName0(String bundleName) { // application protocol check if (bundleName.contains(SPILT)) { return null; } else { - return toResourceName(bundleName, suffix); + return toResourceName(bundleName, "properties"); + } + } + + private InputStream getResourceInputStream(ClassLoader classLoader, String resourceName, boolean reloadFlag) throws IOException { + + InputStream is = null; + + if (reloadFlag) { + URL url = classLoader.getResource(resourceName); + if (url != null) { + URLConnection connection = url.openConnection(); + if (connection != null) { + // Disable caches to get fresh data for reloading. + connection.setUseCaches(false); + is = connection.getInputStream(); + } + } + } else { + is = classLoader.getResourceAsStream(resourceName); } + + return is; } + } diff --git a/common/src/main/java/org/apache/hertzbeat/common/support/SpringContextHolder.java b/common/src/main/java/org/apache/hertzbeat/common/support/SpringContextHolder.java index 37b47994cc9..432a7aaf0d0 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/support/SpringContextHolder.java +++ b/common/src/main/java/org/apache/hertzbeat/common/support/SpringContextHolder.java @@ -21,6 +21,7 @@ import org.springframework.context.ApplicationContext; import org.springframework.context.ApplicationContextAware; import org.springframework.context.ConfigurableApplicationContext; +import org.springframework.lang.NonNull; import org.springframework.stereotype.Component; /** @@ -34,7 +35,7 @@ public class SpringContextHolder implements ApplicationContextAware { private static ConfigurableApplicationContext configurableApplicationContext; @Override - public void setApplicationContext(ApplicationContext applicationContext) throws BeansException { + public void setApplicationContext(@NonNull ApplicationContext applicationContext) throws BeansException { set(applicationContext); if (applicationContext instanceof ConfigurableApplicationContext context) { configurableApplicationContext = context; diff --git a/common/src/main/java/org/apache/hertzbeat/common/support/valid/HostParamValidator.java b/common/src/main/java/org/apache/hertzbeat/common/support/valid/HostParamValidator.java index c0e7deab344..a30e1c26a8a 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/support/valid/HostParamValidator.java +++ b/common/src/main/java/org/apache/hertzbeat/common/support/valid/HostParamValidator.java @@ -34,11 +34,13 @@ public class HostParamValidator implements ConstraintValidator i18nMap, String field) { + if (i18nMap == null || i18nMap.isEmpty()) { + return; + } + for (Map.Entry entry : i18nMap.entrySet()) { + String value = entry.getValue(); + String lang = entry.getKey(); + if (StringUtils.isBlank(value)) { + throw new IllegalArgumentException("monitoring template " + field + " " + lang + " value can not blank"); + } + } + } + } diff --git a/common/src/main/java/org/apache/hertzbeat/common/util/FileUtil.java b/common/src/main/java/org/apache/hertzbeat/common/util/FileUtil.java new file mode 100644 index 00000000000..d0ac10b98c7 --- /dev/null +++ b/common/src/main/java/org/apache/hertzbeat/common/util/FileUtil.java @@ -0,0 +1,80 @@ +/* + * 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.hertzbeat.common.util; + +import java.util.Map; +import org.apache.hertzbeat.common.constants.ExportFileConstants; +import org.springframework.util.StringUtils; +import org.springframework.web.multipart.MultipartFile; + +/** + * File utils. + */ + +public final class FileUtil { + + private FileUtil() { + } + + private static final Map fileTypes; + + static { + fileTypes = Map.of( + ExportFileConstants.JsonFile.FILE_SUFFIX, ExportFileConstants.JsonFile.TYPE, + ExportFileConstants.YamlFile.FILE_SUFFIX, ExportFileConstants.YamlFile.TYPE, + ExportFileConstants.ExcelFile.FILE_SUFFIX, ExportFileConstants.ExcelFile.TYPE + ); + } + + /** + * Get file name. + * @param file {@link MultipartFile} + * @return file name + */ + public static String getFileName(MultipartFile file) { + + var fileName = file.getOriginalFilename(); + if (!StringUtils.hasText(fileName)) { + return ""; + } + return fileName; + } + + /** + * Get file type. + * @param file {@link MultipartFile} + * @return file type + */ + public static String getFileType(MultipartFile file) { + + var fileName = getFileName(file); + + if (!StringUtils.hasText(fileName)) { + return ""; + } + + var dotIndex = fileName.lastIndexOf('.'); + if (dotIndex == -1 || dotIndex == fileName.length() - 1) { + return ""; + } + var fileNameExtension = fileName.substring(dotIndex); + + return fileTypes.get(fileNameExtension); + } + +} diff --git a/common/src/main/java/org/apache/hertzbeat/common/util/IpDomainUtil.java b/common/src/main/java/org/apache/hertzbeat/common/util/IpDomainUtil.java index 886a5200e18..8845fcfaf86 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/util/IpDomainUtil.java +++ b/common/src/main/java/org/apache/hertzbeat/common/util/IpDomainUtil.java @@ -24,7 +24,7 @@ import java.util.Enumeration; import java.util.regex.Pattern; import lombok.extern.slf4j.Slf4j; -import org.apache.hertzbeat.common.constants.CollectorConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; import org.apache.http.conn.util.InetAddressUtils; import org.springframework.util.StringUtils; @@ -53,7 +53,7 @@ private IpDomainUtil() { * @return true-yes false-no */ public static boolean validateIpDomain(String ipDomain) { - if (ipDomain == null || "".equals(ipDomain)) { + if (ipDomain == null || !StringUtils.hasText(ipDomain)) { return false; } ipDomain = ipDomain.trim(); @@ -75,7 +75,7 @@ public static boolean validateIpDomain(String ipDomain) { * @return true or false */ public static boolean isHasSchema(String domainIp) { - if (domainIp == null || "".equals(domainIp)) { + if (domainIp == null || !StringUtils.hasText(domainIp)) { return false; } return DOMAIN_SCHEMA.matcher(domainIp).matches(); @@ -114,9 +114,9 @@ public static String getLocalhostIp() { */ public static String checkIpAddressType(String ipDomain){ if (StringUtils.hasText(ipDomain) && InetAddressUtils.isIPv6Address(ipDomain)) { - return CollectorConstants.IPV6; + return NetworkConstants.IPV6; } - return CollectorConstants.IPV4; + return NetworkConstants.IPV4; } /** diff --git a/common/src/main/java/org/apache/hertzbeat/common/util/JsonUtil.java b/common/src/main/java/org/apache/hertzbeat/common/util/JsonUtil.java index 7e8fbed5243..b95619bb229 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/util/JsonUtil.java +++ b/common/src/main/java/org/apache/hertzbeat/common/util/JsonUtil.java @@ -100,11 +100,15 @@ public static JsonNode fromJson(String jsonStr) { * @param jsonStr json string * @return true if the string is a json string */ + + public static boolean isJsonStr(String jsonStr) { - if (!StringUtils.hasText(jsonStr)) { + if (jsonStr == null || jsonStr.trim().isEmpty()) { return false; } - if (!jsonStr.startsWith("{") || !jsonStr.endsWith("}")) { + jsonStr = jsonStr.trim(); + if (!(jsonStr.startsWith("{") && jsonStr.endsWith("}")) + && !(jsonStr.startsWith("[") && jsonStr.endsWith("]"))) { return false; } try { diff --git a/common/src/main/java/org/apache/hertzbeat/common/util/StrUtil.java b/common/src/main/java/org/apache/hertzbeat/common/util/StrUtil.java index b5acf8517bf..b6aaa53ee9f 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/util/StrUtil.java +++ b/common/src/main/java/org/apache/hertzbeat/common/util/StrUtil.java @@ -26,7 +26,10 @@ /** * String processing tools */ -public class StrUtil { +public final class StrUtil { + + private StrUtil() { + } /** * Handle Comma Separated Data diff --git a/common/src/main/java/org/apache/hertzbeat/common/util/TimeZoneUtil.java b/common/src/main/java/org/apache/hertzbeat/common/util/TimeZoneUtil.java index 6a9e157cdd5..57725815334 100644 --- a/common/src/main/java/org/apache/hertzbeat/common/util/TimeZoneUtil.java +++ b/common/src/main/java/org/apache/hertzbeat/common/util/TimeZoneUtil.java @@ -25,7 +25,11 @@ /** * timezone util */ -public class TimeZoneUtil { +public final class TimeZoneUtil { + + private TimeZoneUtil() { + } + private static final Integer LANG_REGION_LENGTH = 2; public static void setTimeZoneAndLocale(String timeZoneId, String locale) { diff --git a/common/src/test/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueueTest.java b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueueTest.java new file mode 100644 index 00000000000..b55f29465a6 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/InMemoryCommonDataQueueTest.java @@ -0,0 +1,115 @@ +/* + * 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.hertzbeat.common.queue.impl; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import java.util.Map; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * Test case for {@link InMemoryCommonDataQueue} + */ +class InMemoryCommonDataQueueTest { + + private InMemoryCommonDataQueue queue; + + @BeforeEach + void setUp() { + queue = new InMemoryCommonDataQueue(); + } + + @Test + void testAlertsData() throws InterruptedException { + + var alert = new Alert(); + + queue.sendAlertsData(alert); + assertEquals(1, queue.getQueueSizeMetricsInfo().get("alertDataQueue")); + + var polledAlert = queue.pollAlertsData(); + assertEquals(0, queue.getQueueSizeMetricsInfo().get("alertDataQueue")); + + assertNotNull(polledAlert); + assertEquals(alert, polledAlert); + } + + @Test + void testMetricsData() throws InterruptedException { + + var metricsData = CollectRep.MetricsData.newBuilder().build(); + + queue.sendMetricsData(metricsData); + + CollectRep.MetricsData polledMetricsData = queue.pollMetricsDataToAlerter(); + + assertNotNull(polledMetricsData); + assertEquals(metricsData, polledMetricsData); + + polledMetricsData = queue.pollMetricsDataToPersistentStorage(); + + assertNotNull(polledMetricsData); + assertEquals(metricsData, polledMetricsData); + + polledMetricsData = queue.pollMetricsDataToRealTimeStorage(); + + assertNotNull(polledMetricsData); + assertEquals(metricsData, polledMetricsData); + } + + @Test + void testGetQueueSizeMetricsInfo() { + + Map metricsInfo = queue.getQueueSizeMetricsInfo(); + + assertEquals(0, metricsInfo.get("alertDataQueue")); + assertEquals(0, metricsInfo.get("metricsDataToAlertQueue")); + assertEquals(0, metricsInfo.get("metricsDataToPersistentStorageQueue")); + assertEquals(0, metricsInfo.get("metricsDataToMemoryStorageQueue")); + + queue.sendAlertsData(new Alert()); + queue.sendMetricsData(CollectRep.MetricsData.newBuilder().build()); + + metricsInfo = queue.getQueueSizeMetricsInfo(); + + assertEquals(1, metricsInfo.get("alertDataQueue")); + assertEquals(1, metricsInfo.get("metricsDataToAlertQueue")); + assertEquals(1, metricsInfo.get("metricsDataToPersistentStorageQueue")); + assertEquals(1, metricsInfo.get("metricsDataToMemoryStorageQueue")); + } + + @Test + void testDestroy() { + + queue.sendAlertsData(new Alert()); + queue.sendMetricsData(CollectRep.MetricsData.newBuilder().build()); + + queue.destroy(); + + Map metricsInfo = queue.getQueueSizeMetricsInfo(); + + assertEquals(0, metricsInfo.get("alertDataQueue")); + assertEquals(0, metricsInfo.get("metricsDataToAlertQueue")); + assertEquals(0, metricsInfo.get("metricsDataToPersistentStorageQueue")); + assertEquals(0, metricsInfo.get("metricsDataToMemoryStorageQueue")); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueueTest.java b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueueTest.java new file mode 100644 index 00000000000..57c8ea4fcd4 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/KafkaCommonDataQueueTest.java @@ -0,0 +1,172 @@ +/* + * 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.hertzbeat.common.queue.impl; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.lang.reflect.Field; +import java.time.Duration; +import java.util.Collections; +import org.apache.hertzbeat.common.config.CommonProperties; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.kafka.clients.consumer.ConsumerRecord; +import org.apache.kafka.clients.consumer.ConsumerRecords; +import org.apache.kafka.clients.consumer.KafkaConsumer; +import org.apache.kafka.clients.producer.KafkaProducer; +import org.apache.kafka.clients.producer.ProducerRecord; +import org.apache.kafka.common.TopicPartition; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.ArgumentCaptor; + +/** + * Test case for {@link KafkaCommonDataQueue} + */ +class KafkaCommonDataQueueTest { + + private KafkaProducer metricsDataProducer; + private KafkaProducer alertDataProducer; + private KafkaConsumer alertDataConsumer; + private KafkaConsumer metricsDataToAlertConsumer; + private KafkaConsumer metricsDataToPersistentStorageConsumer; + private KafkaConsumer metricsDataToRealTimeStorageConsumer; + private CommonProperties.KafkaProperties kafkaProperties; + private KafkaCommonDataQueue kafkaCommonDataQueue; + + @BeforeEach + void setUp() throws Exception { + kafkaProperties = mock(CommonProperties.KafkaProperties.class); + when(kafkaProperties.getServers()).thenReturn("localhost:9092"); + when(kafkaProperties.getAlertsDataTopic()).thenReturn("alerts"); + when(kafkaProperties.getMetricsDataTopic()).thenReturn("metrics"); + + CommonProperties properties = mock(CommonProperties.class); + CommonProperties.DataQueueProperties queueProperties = mock(CommonProperties.DataQueueProperties.class); + when(properties.getQueue()).thenReturn(queueProperties); + when(queueProperties.getKafka()).thenReturn(kafkaProperties); + + metricsDataProducer = mock(KafkaProducer.class); + alertDataProducer = mock(KafkaProducer.class); + alertDataConsumer = mock(KafkaConsumer.class); + metricsDataToAlertConsumer = mock(KafkaConsumer.class); + metricsDataToPersistentStorageConsumer = mock(KafkaConsumer.class); + metricsDataToRealTimeStorageConsumer = mock(KafkaConsumer.class); + + kafkaCommonDataQueue = new KafkaCommonDataQueue(properties); + + setPrivateField(kafkaCommonDataQueue, "metricsDataProducer", metricsDataProducer); + setPrivateField(kafkaCommonDataQueue, "alertDataProducer", alertDataProducer); + setPrivateField(kafkaCommonDataQueue, "alertDataConsumer", alertDataConsumer); + setPrivateField(kafkaCommonDataQueue, "metricsDataToAlertConsumer", metricsDataToAlertConsumer); + setPrivateField(kafkaCommonDataQueue, "metricsDataToPersistentStorageConsumer", metricsDataToPersistentStorageConsumer); + setPrivateField(kafkaCommonDataQueue, "metricsDataToRealTimeStorageConsumer", metricsDataToRealTimeStorageConsumer); + } + + // Test use, set private field. + private void setPrivateField(Object target, String fieldName, Object value) throws Exception { + + Field field = target.getClass().getDeclaredField(fieldName); + field.setAccessible(true); + field.set(target, value); + } + + @Test + void testSendAlertsData() { + + Alert alert = new Alert(); + kafkaCommonDataQueue.sendAlertsData(alert); + + ArgumentCaptor> captor = ArgumentCaptor.forClass(ProducerRecord.class); + verify(alertDataProducer).send(captor.capture()); + + ProducerRecord record = captor.getValue(); + assertEquals("alerts", record.topic()); + assertEquals(alert, record.value()); + } + + @Test + void testPollAlertsData() throws InterruptedException { + + Alert alert = new Alert(); + ConsumerRecords records = new ConsumerRecords<>(Collections.emptyMap()); + when(alertDataConsumer.poll(Duration.ofSeconds(1))).thenReturn(records); + + assertNull(kafkaCommonDataQueue.pollAlertsData()); + + records = new ConsumerRecords<>(Collections.singletonMap( + new TopicPartition("alerts", 0), + Collections.singletonList( + new ConsumerRecord<>("alerts", 0, 0L, 1L, alert) + ) + )); + when(alertDataConsumer.poll(Duration.ofSeconds(1))).thenReturn(records); + + assertEquals(alert, kafkaCommonDataQueue.pollAlertsData()); + } + + @Test + void testSendMetricsData() { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder().build(); + kafkaCommonDataQueue.sendMetricsData(metricsData); + + ArgumentCaptor> captor = ArgumentCaptor.forClass(ProducerRecord.class); + verify(metricsDataProducer).send(captor.capture()); + + ProducerRecord record = captor.getValue(); + assertEquals("metrics", record.topic()); + assertEquals(metricsData, record.value()); + } + + @Test + void testPollMetricsDataToAlerter() throws InterruptedException { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder().build(); + ConsumerRecords records = new ConsumerRecords<>(Collections.emptyMap()); + when(metricsDataToAlertConsumer.poll(Duration.ofSeconds(1))).thenReturn(records); + + assertNull(kafkaCommonDataQueue.pollMetricsDataToAlerter()); + + records = new ConsumerRecords<>(Collections.singletonMap( + new TopicPartition("metrics", 0), + Collections.singletonList( + new ConsumerRecord<>("metrics", 0, 0L, 1L, metricsData) + ) + )); + when(metricsDataToAlertConsumer.poll(Duration.ofSeconds(1))).thenReturn(records); + + assertEquals(metricsData, kafkaCommonDataQueue.pollMetricsDataToAlerter()); + } + + @Test + void testDestroy() throws Exception { + + kafkaCommonDataQueue.destroy(); + + verify(metricsDataProducer).close(); + verify(alertDataProducer).close(); + verify(alertDataConsumer).close(); + verify(metricsDataToAlertConsumer).close(); + verify(metricsDataToPersistentStorageConsumer).close(); + verify(metricsDataToRealTimeStorageConsumer).close(); + } +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueueTest.java b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueueTest.java new file mode 100644 index 00000000000..8df98643aae --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/queue/impl/RedisCommonDataQueueTest.java @@ -0,0 +1,159 @@ +/* + * 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.hertzbeat.common.queue.impl; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.mockStatic; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.fasterxml.jackson.databind.ObjectMapper; +import io.lettuce.core.RedisClient; +import io.lettuce.core.RedisURI; +import io.lettuce.core.api.StatefulRedisConnection; +import io.lettuce.core.api.sync.RedisCommands; +import org.apache.hertzbeat.common.config.CommonProperties; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.util.ProtoJsonUtil; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.MockedStatic; +import org.mockito.MockitoAnnotations; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test for {@link RedisCommonDataQueue} + */ + +@ExtendWith(MockitoExtension.class) +class RedisCommonDataQueueTest { + + @Mock + private StatefulRedisConnection connection; + + @Mock + private RedisCommands syncCommands; + + @Mock + private ObjectMapper objectMapper; + + private RedisClient redisClient; + + private CommonProperties commonProperties; + + private CommonProperties.RedisProperties redisProperties; + + private RedisCommonDataQueue redisCommonDataQueue; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + + redisClient = mock(RedisClient.class); + commonProperties = mock(CommonProperties.class); + redisProperties = mock(CommonProperties.RedisProperties.class); + CommonProperties.DataQueueProperties dataQueueProperties = mock(CommonProperties.DataQueueProperties.class); + + when(commonProperties.getQueue()).thenReturn(dataQueueProperties); + when(dataQueueProperties.getRedis()).thenReturn(redisProperties); + + when(redisProperties.getRedisHost()).thenReturn("localhost"); + when(redisProperties.getRedisPort()).thenReturn(6379); + when(redisProperties.getMetricsDataQueueNameToAlerter()).thenReturn("metricsDataQueueToAlerter"); + when(redisProperties.getMetricsDataQueueNameToPersistentStorage()).thenReturn("metricsDataQueueToPersistentStorage"); + when(redisProperties.getMetricsDataQueueNameToRealTimeStorage()).thenReturn("metricsDataQueueToRealTimeStorage"); + when(redisProperties.getAlertsDataQueueName()).thenReturn("alertsDataQueue"); + + try (MockedStatic mockedRedisClient = mockStatic(RedisClient.class)) { + + mockedRedisClient.when(() -> RedisClient.create( + any(RedisURI.class)) + ).thenReturn(redisClient); + + when(redisClient.connect()).thenReturn(connection); + when(connection.sync()).thenReturn(syncCommands); + + redisCommonDataQueue = new RedisCommonDataQueue(commonProperties); + } + } + + @Test + public void testPollAlertsData() throws Exception { + + String alertJson = "{\"id\":\"1\",\"content\":\"Test Alert\"}"; + Alert expectedAlert = Alert.builder().id(1L).content("Test Alert").build(); + + when(syncCommands.rpop(anyString())).thenReturn(alertJson); + Alert actualAlert = redisCommonDataQueue.pollAlertsData(); + assertEquals(expectedAlert, actualAlert); + } + + @Test + public void testPollMetricsDataToAlerter() throws Exception { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder().setMetrics("test metrics").build(); + String metricsDataJson = "{\"metrics\":\"test metrics\"}"; + + when(syncCommands.rpop("metricsDataQueueToAlerter")).thenReturn(metricsDataJson); + + CollectRep.MetricsData actualMetricsData = redisCommonDataQueue.pollMetricsDataToAlerter(); + assertEquals(metricsData, actualMetricsData); + } + + @Test + public void testSendMetricsData() throws Exception { + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder().setMetrics("test metrics").build(); + String metricsDataJson = ProtoJsonUtil.toJsonStr(metricsData); + + redisCommonDataQueue.sendMetricsData(metricsData); + + verify(syncCommands).lpush("metricsDataQueueToAlerter", metricsDataJson); + verify(syncCommands).lpush("metricsDataQueueToPersistentStorage", metricsDataJson); + verify(syncCommands).lpush("metricsDataQueueToRealTimeStorage", metricsDataJson); + } + + @SuppressWarnings("checkstyle:OperatorWrap") + @Test + public void testSendAlertsData() throws Exception { + + Alert alert = Alert.builder() + .content("test") + .build(); + String alertJson = "{\"id\":null,\"target\":null,\"alertDefineId\":null,\"priority\":0,\"content\":\"test\"," + + "\"status\":0,\"times\":null,\"firstAlarmTime\":null,\"lastAlarmTime\":null,\"triggerTimes\":null," + + "\"tags\":null,\"creator\":null,\"modifier\":null,\"gmtCreate\":null,\"gmtUpdate\":null}"; + redisCommonDataQueue.sendAlertsData(alert); + + verify(syncCommands).lpush("alertsDataQueue", alertJson); + } + + @Test + public void testDestroy() { + redisCommonDataQueue.destroy(); + + verify(connection).close(); + verify(redisClient).shutdown(); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertDeserializerTest.java b/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertDeserializerTest.java new file mode 100644 index 00000000000..21e71a98e43 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertDeserializerTest.java @@ -0,0 +1,96 @@ +/* + * 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.hertzbeat.common.serialize; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import java.util.Map; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.kafka.common.header.Headers; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link AlertDeserializer} + */ + +class AlertDeserializerTest { + + private AlertDeserializer alertDeserializer; + + @Mock + private Map configs; + + @Mock + private Headers headers; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + alertDeserializer = new AlertDeserializer(); + } + + @Test + void testConfigure() { + + alertDeserializer.configure(configs, false); + } + + @Test + void testDeserializeWithBytes() { + + String json = "{\"target\":\"test\",\"content\":\"test\"}"; + byte[] bytes = json.getBytes(); + Alert expectedAlert = Alert.builder() + .content("test") + .target("test") + .build(); + + Alert actualAlert = alertDeserializer.deserialize("", bytes); + + assertEquals(expectedAlert.getContent(), actualAlert.getContent()); + assertEquals(expectedAlert.getTarget(), actualAlert.getTarget()); + } + + @Test + void testDeserializeWithHeaders() { + + String topic = "alerts"; + byte[] data = "{\"target\":\"test\",\"content\":\"test\"}".getBytes(); + + Alert expectedAlert = Alert.builder() + .content("test") + .target("test") + .build(); + + Alert actualAlert = alertDeserializer.deserialize(topic, headers, data); + + assertEquals(expectedAlert.getContent(), actualAlert.getContent()); + assertEquals(expectedAlert.getTarget(), actualAlert.getTarget()); + } + + @Test + void testClose() { + + alertDeserializer.close(); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertSerializerTest.java b/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertSerializerTest.java new file mode 100644 index 00000000000..a1a8c46ed97 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/serialize/AlertSerializerTest.java @@ -0,0 +1,106 @@ +/* + * 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.hertzbeat.common.serialize; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import java.util.Arrays; +import java.util.Map; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.kafka.common.header.Headers; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link AlertSerializer} + */ + +class AlertSerializerTest { + + private AlertSerializer alertSerializer; + + @Mock + private Map configs; + + @Mock + private Headers headers; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + alertSerializer = new AlertSerializer(); + } + + @Test + void testConfigure() { + + alertSerializer.configure(configs, false); + } + + @Test + void testSerializeWithAlert() { + + Alert alert = Alert.builder() + .content("test") + .target("test") + .build(); + byte[] expectedJson = ("{\"id\":null,\"target\":\"test\",\"alertDefineId\":null,\"priority\":0,\"content\":" + + "\"test\",\"status\":0,\"times\":null,\"firstAlarmTime\":null,\"lastAlarmTime\":null,\"triggerTimes" + + "\":null,\"tags\":null,\"creator\":null,\"modifier\":null,\"gmtCreate\":null,\"gmtUpdate\":null}").getBytes(); + + byte[] bytes = alertSerializer.serialize("", alert); + + assertNotNull(bytes); + assertEquals(Arrays.toString(expectedJson), Arrays.toString(bytes)); + } + + @Test + void testSerializeWithNullAlert() { + + byte[] bytes = alertSerializer.serialize("", null); + assertNull(bytes); + } + + @Test + void testSerializeWithHeaders() { + + Alert alert = Alert.builder() + .content("test") + .target("test") + .build(); + byte[] expectedBytes = ("{\"id\":null,\"target\":\"test\",\"alertDefineId\":null,\"priority\":0,\"content\":" + + "\"test\",\"status\":0,\"times\":null,\"firstAlarmTime\":null,\"lastAlarmTime\":null,\"triggerTimes" + + "\":null,\"tags\":null,\"creator\":null,\"modifier\":null,\"gmtCreate\":null,\"gmtUpdate\":null}").getBytes(); + + byte[] bytes = alertSerializer.serialize("alerts", headers, alert); + + assertArrayEquals(expectedBytes, bytes); + } + + @Test + void testClose() { + + alertSerializer.close(); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataDeserializerTest.java b/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataDeserializerTest.java new file mode 100644 index 00000000000..031c8120a34 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataDeserializerTest.java @@ -0,0 +1,100 @@ +/* + * 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.hertzbeat.common.serialize; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import java.util.Map; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.kafka.common.header.Headers; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link KafkaMetricsDataDeserializer} + */ + +class KafkaMetricsDataDeserializerTest { + + private KafkaMetricsDataDeserializer deserializer; + + @Mock + private Map configs; + + @Mock + private Headers headers; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + deserializer = new KafkaMetricsDataDeserializer(); + } + + @Test + void testConfigure() { + + deserializer.configure(configs, false); + } + + @Test + void testDeserializeWithBytes() { + + CollectRep.MetricsData expectedMetricsData = CollectRep.MetricsData.newBuilder() + .setMetrics("someValue") + .setApp("linux") + .build(); + byte[] bytes = expectedMetricsData.toByteArray(); + + CollectRep.MetricsData actualMetricsData = deserializer.deserialize("", bytes); + + assertEquals(expectedMetricsData, actualMetricsData); + } + + @Test + void testDeserializeWithInvalidBytes() { + + byte[] invalidBytes = "invalid data".getBytes(); + + assertThrows(RuntimeException.class, () -> deserializer.deserialize("", invalidBytes)); + } + + @Test + void testDeserializeWithHeaders() { + + CollectRep.MetricsData expectedMetricsData = CollectRep.MetricsData.newBuilder() + .setMetrics("someValue") + .setApp("linux") + .build(); + byte[] bytes = expectedMetricsData.toByteArray(); + + CollectRep.MetricsData actualMetricsData = deserializer.deserialize("topic", headers, bytes); + + assertEquals(expectedMetricsData, actualMetricsData); + } + + @Test + void testClose() { + + deserializer.close(); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializerTest.java b/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializerTest.java new file mode 100644 index 00000000000..f434774e8df --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/serialize/KafkaMetricsDataSerializerTest.java @@ -0,0 +1,99 @@ +/* + * 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.hertzbeat.common.serialize; + +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import java.util.Map; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.kafka.common.header.Headers; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link KafkaMetricsDataSerializer} + */ + +class KafkaMetricsDataSerializerTest { + + private KafkaMetricsDataSerializer serializer; + + @Mock + private Map configs; + + @Mock + private Headers headers; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + serializer = new KafkaMetricsDataSerializer(); + } + + @Test + void testConfigure() { + + serializer.configure(configs, false); + } + + @Test + void testSerializeWithMetricsData() { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder() + .setMetrics("someValue") + .setApp("linux") + .build(); + byte[] bytes = serializer.serialize("", metricsData); + + assertNotNull(bytes); + assertArrayEquals(metricsData.toByteArray(), bytes); + } + + @Test + void testSerializeWithNullMetricsData() { + + byte[] bytes = serializer.serialize("", null); + + assertNull(bytes); + } + + @Test + void testSerializeWithHeaders() { + + CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder() + .setMetrics("someValue") + .setApp("linux") + .build(); + byte[] expectedBytes = metricsData.toByteArray(); + byte[] bytes = serializer.serialize("topic", headers, metricsData); + + assertArrayEquals(expectedBytes, bytes); + } + + @Test + void testClose() { + + serializer.close(); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/CommonThreadPoolTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/CommonThreadPoolTest.java new file mode 100644 index 00000000000..211b3ed280b --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/support/CommonThreadPoolTest.java @@ -0,0 +1,110 @@ +/* + * 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.hertzbeat.common.support; + +import java.lang.reflect.Field; +import java.util.concurrent.RejectedExecutionException; +import java.util.concurrent.SynchronousQueue; +import java.util.concurrent.ThreadPoolExecutor; +import java.util.concurrent.TimeUnit; + +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; + +/** + * test for {@link CommonThreadPool} + */ + +class CommonThreadPoolTest { + + private CommonThreadPool commonThreadPool; + + private ThreadPoolExecutor executorMock; + + @BeforeEach + public void setUp() throws Exception { + + commonThreadPool = new CommonThreadPool(); + + Field workerExecutorField = CommonThreadPool.class.getDeclaredField("workerExecutor"); + workerExecutorField.setAccessible(true); + executorMock = mock(ThreadPoolExecutor.class); + workerExecutorField.set(commonThreadPool, executorMock); + } + + @Test + public void testExecuteTask() { + + Runnable task = mock(Runnable.class); + commonThreadPool.execute(task); + verify(executorMock).execute(task); + } + + @Test + public void testExecuteTaskThrowsEx() { + + Runnable task = mock(Runnable.class); + doThrow(RejectedExecutionException.class).when(executorMock).execute(task); + + assertThrows( + RejectedExecutionException.class, + () -> commonThreadPool.execute(task) + ); + } + + @Test + public void testDestroy() throws Exception { + + commonThreadPool.destroy(); + verify(executorMock).shutdownNow(); + } + + @Test + public void testDestroyWithNull() throws Exception { + + Field workerExecutorField = CommonThreadPool.class.getDeclaredField("workerExecutor"); + workerExecutorField.setAccessible(true); + workerExecutorField.set(commonThreadPool, null); + + commonThreadPool.destroy(); + } + + @Test + public void testInitialization() throws Exception { + CommonThreadPool pool = new CommonThreadPool(); + + Field workerExecutorField = CommonThreadPool.class.getDeclaredField("workerExecutor"); + workerExecutorField.setAccessible(true); + ThreadPoolExecutor workerExecutor = (ThreadPoolExecutor) workerExecutorField.get(pool); + + assertNotNull(workerExecutor); + assertEquals(2, workerExecutor.getCorePoolSize()); + assertEquals(Integer.MAX_VALUE, workerExecutor.getMaximumPoolSize()); + assertEquals(10, workerExecutor.getKeepAliveTime(TimeUnit.SECONDS)); + assertTrue(workerExecutor.getQueue() instanceof SynchronousQueue); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8ControlTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8ControlTest.java index 086b84a9e6c..c30f5a29eb4 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8ControlTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/support/ResourceBundleUtf8ControlTest.java @@ -17,6 +17,12 @@ package org.apache.hertzbeat.common.support; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import java.io.IOException; +import java.util.Locale; +import java.util.ResourceBundle; import org.junit.jupiter.api.Test; /** @@ -25,6 +31,43 @@ class ResourceBundleUtf8ControlTest { @Test - void newBundle() { + void testNewBundleWithPropertiesFormat() throws IllegalAccessException, InstantiationException, IOException { + + ResourceBundle.Control control = new ResourceBundleUtf8Control(); + ClassLoader loader = getClass().getClassLoader(); + String baseName = "msg"; + + ResourceBundle bundle = control.newBundle(baseName, Locale.ENGLISH, "java.properties", loader, false); + assertNotNull(bundle); + assertEquals("Hello, World!", bundle.getString("hello")); + + bundle = control.newBundle(baseName, Locale.ROOT, "java.properties", loader, false); + assertNotNull(bundle); + assertEquals("你好", bundle.getString("hello")); } -} \ No newline at end of file + + @Test + void testNewBundleWithClassFormat() throws IllegalAccessException, InstantiationException, IOException { + + ResourceBundle.Control control = new ResourceBundleUtf8Control(); + ClassLoader loader = getClass().getClassLoader(); + String baseName = "dummyClassBundle"; + + ResourceBundle bundle = control.newBundle(baseName, Locale.ENGLISH, "java.class", loader, false); + //because not have an actual class, bundle should be null + assertNull(bundle); + } + + @Test + void testReloading() throws IllegalAccessException, InstantiationException, IOException { + ResourceBundle.Control control = new ResourceBundleUtf8Control(); + ClassLoader loader = getClass().getClassLoader(); + String baseName = "msg"; + + // Test with reload flag + ResourceBundle bundle = control.newBundle(baseName, Locale.ENGLISH, "java.properties", loader, true); + assertNotNull(bundle); + assertEquals("Hello, World!", bundle.getString("hello")); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/SpringContextHolderTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/SpringContextHolderTest.java index c4959745501..d08213ec45a 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/support/SpringContextHolderTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/support/SpringContextHolderTest.java @@ -17,31 +17,92 @@ package org.apache.hertzbeat.common.support; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.springframework.beans.BeansException; +import org.springframework.context.ApplicationContext; +import org.springframework.context.ConfigurableApplicationContext; /** * Test case for {@link SpringContextHolder} */ class SpringContextHolderTest { + private ApplicationContext applicationContext; + + private ConfigurableApplicationContext configurableApplicationContext; + + private SpringContextHolder springContextHolder; + @BeforeEach - void setUp() { + public void setUp() { + + applicationContext = mock(ApplicationContext.class); + configurableApplicationContext = mock(ConfigurableApplicationContext.class); + springContextHolder = new SpringContextHolder(); } @Test - void setApplicationContext() { + public void testSetApplicationContext() throws BeansException { + + springContextHolder.setApplicationContext(configurableApplicationContext); + + assertNotNull(SpringContextHolder.getApplicationContext()); } @Test - void getApplicationContext() { + public void testGetApplicationContext() { + + springContextHolder.setApplicationContext(applicationContext); + assertNotNull(SpringContextHolder.getApplicationContext()); } @Test - void getBean() { + public void testGetBeanByClass() { + + Class beanClass = String.class; + String bean = "bean"; + when(applicationContext.getBean(beanClass)).thenReturn(bean); + + springContextHolder.setApplicationContext(applicationContext); + String retrievedBean = SpringContextHolder.getBean(beanClass); + + assertEquals(bean, retrievedBean); } @Test - void testGetBean() { + public void testShutdown() { + + springContextHolder.setApplicationContext(configurableApplicationContext); + SpringContextHolder.shutdown(); + + verify(configurableApplicationContext, times(1)).close(); + } + + @Test + public void testIsActive() { + + when(configurableApplicationContext.isActive()).thenReturn(true); + springContextHolder.setApplicationContext(configurableApplicationContext); + assertTrue(SpringContextHolder.isActive()); } -} \ No newline at end of file + + @Test + public void testAssertApplicationContextThrowsException() { + + RuntimeException exception = assertThrows(RuntimeException.class, SpringContextHolder::getApplicationContext); + assertEquals( + "applicationContext is null, please inject the springContextHolder", + exception.getMessage() + ); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/vaild/EmailParamValidatorTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/EmailParamValidatorTest.java new file mode 100644 index 00000000000..51f19aa96d8 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/EmailParamValidatorTest.java @@ -0,0 +1,83 @@ +/* + * 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.hertzbeat.common.support.vaild; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.when; +import jakarta.validation.ConstraintValidatorContext; +import org.apache.hertzbeat.common.support.valid.EmailParamValidator; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * Test case for {@link EmailParamValidator} + */ + +class EmailParamValidatorTest { + + @InjectMocks + private EmailParamValidator emailParamValidator; + + @Mock + private ConstraintValidatorContext context; + + @Mock + private ConstraintValidatorContext.ConstraintViolationBuilder constraintViolationBuilder; + + @BeforeEach + public void setUp() { + MockitoAnnotations.initMocks(this); + when(context.buildConstraintViolationWithTemplate(any())).thenReturn(constraintViolationBuilder); + } + + @Test + public void testIsValid() { + boolean result = emailParamValidator.isValid(null, context); + assertFalse(result); + + result = emailParamValidator.isValid("123456345@qq.com", context); + assertTrue(result); + + result = emailParamValidator.isValid("", context); + assertFalse(result); + + result = emailParamValidator.isValid(" ", context); + assertFalse(result); + + result = emailParamValidator.isValid("test@example.com", context); + assertTrue(result); + + result = emailParamValidator.isValid("test@example", context); + assertFalse(result); + + result = emailParamValidator.isValid("test@sub.example.com", context); + assertTrue(result); + + + String longEmail = "verylongemailaddress@subdomain.domain.example.com"; + result = emailParamValidator.isValid(longEmail, context); + assertTrue(result); + } + +} + diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/vaild/HostParamValidatorTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/HostParamValidatorTest.java new file mode 100644 index 00000000000..5b5669d986e --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/HostParamValidatorTest.java @@ -0,0 +1,83 @@ +/* + * 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.hertzbeat.common.support.vaild; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.when; +import jakarta.validation.ConstraintValidatorContext; +import org.apache.hertzbeat.common.support.valid.HostParamValidator; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * Test case for {@link HostParamValidator} + */ + +class HostParamValidatorTest { + + @InjectMocks + private HostParamValidator hostParamValidator; + + @Mock + private ConstraintValidatorContext context; + + @Mock + private ConstraintValidatorContext.ConstraintViolationBuilder constraintViolationBuilder; + + @BeforeEach + public void setUp() { + MockitoAnnotations.initMocks(this); + when(context.buildConstraintViolationWithTemplate(any())).thenReturn(constraintViolationBuilder); + } + + @Test + public void testIsValid() { + boolean result = hostParamValidator.isValid(null, context); + assertFalse(result); + + result = hostParamValidator.isValid("", context); + assertFalse(result); + + result = hostParamValidator.isValid(" ", context); + assertFalse(result); + + result = hostParamValidator.isValid("192.168.1.1", context); + assertTrue(result); + + result = hostParamValidator.isValid("2001:0db8:85a3:0000:0000:8a2e:0370:7334", context); + assertTrue(result); + + result = hostParamValidator.isValid("www.example.com", context); + assertTrue(result); + + result = hostParamValidator.isValid("http://www.example.com", context); + assertTrue(result); + + result = hostParamValidator.isValid("https://www.baidu.com", context); + assertTrue(result); + + result = hostParamValidator.isValid("ht!tp://www.example.com", context); + assertFalse(result); + } +} + diff --git a/common/src/test/java/org/apache/hertzbeat/common/support/vaild/PhoneNumParamValidatorTest.java b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/PhoneNumParamValidatorTest.java new file mode 100644 index 00000000000..13e21a02043 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/support/vaild/PhoneNumParamValidatorTest.java @@ -0,0 +1,74 @@ +/* + * 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.hertzbeat.common.support.vaild; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.when; +import jakarta.validation.ConstraintValidatorContext; +import org.apache.hertzbeat.common.support.valid.PhoneNumParamValidator; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * Test case for {@link PhoneNumParamValidator} + */ + +class PhoneNumParamValidatorTest { + + @InjectMocks + private PhoneNumParamValidator phoneNumParamValidator; + + @Mock + private ConstraintValidatorContext context; + + @Mock + private ConstraintValidatorContext.ConstraintViolationBuilder constraintViolationBuilder; + + @BeforeEach + public void setUp() { + MockitoAnnotations.initMocks(this); + when(context.buildConstraintViolationWithTemplate(any())).thenReturn(constraintViolationBuilder); + } + + @Test + public void testIsValid() { + boolean result = phoneNumParamValidator.isValid(null, context); + assertFalse(result); + + result = phoneNumParamValidator.isValid("", context); + assertFalse(result); + + result = phoneNumParamValidator.isValid("123456", context); + assertFalse(result); + + result = phoneNumParamValidator.isValid("abc123", context); + assertFalse(result); + + result = phoneNumParamValidator.isValid("13900001234", context); + assertTrue(result); + + result = phoneNumParamValidator.isValid("1234567890123456789", context); + assertFalse(result); + } +} + diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/CommonUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/CommonUtilTest.java index f4de9b0b117..c99e77c977b 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/CommonUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/CommonUtilTest.java @@ -19,7 +19,12 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertTrue; +import java.util.HashMap; +import java.util.Map; import org.junit.jupiter.api.Test; /** @@ -27,6 +32,40 @@ */ class CommonUtilTest { + @Test + void testParseStrInteger() { + assertEquals(10, CommonUtil.parseStrInteger("10")); + assertEquals(-10, CommonUtil.parseStrInteger("-10")); + assertEquals(+10, CommonUtil.parseStrInteger("+10")); + assertNotEquals(10_000, CommonUtil.parseStrInteger("10_000")); + assertNotEquals(16, CommonUtil.parseStrInteger("0x10")); + } + + @Test + void testParseStrDouble() { + assertEquals(10.125, CommonUtil.parseStrDouble("10.125")); + assertEquals(-10.125, CommonUtil.parseStrDouble("-10.125")); + assertEquals(100, CommonUtil.parseStrDouble("100d")); + assertEquals(100000, CommonUtil.parseStrDouble("100E3")); + assertEquals(0.1, CommonUtil.parseStrDouble("100E-3")); + assertNotEquals(10_000.125, CommonUtil.parseStrDouble("10_000.125")); + } + + @Test + void testParseIsNumeric() { + assertTrue(CommonUtil.isNumeric("1234")); + assertTrue(CommonUtil.isNumeric("6.954")); + assertFalse(CommonUtil.isNumeric("296.347%")); + assertFalse(CommonUtil.isNumeric("445_126")); + } + + @Test + void testParseTimeStrToSecond() { + assertEquals(36000, CommonUtil.parseTimeStrToSecond("10:00")); + assertEquals(43800, CommonUtil.parseTimeStrToSecond("12:10:00")); + assertNotEquals(43800, CommonUtil.parseTimeStrToSecond("2024-07-23 12:10:00")); + } + @Test void testParseDoubleStr() { assertEquals("9.3454", CommonUtil.parseDoubleStr("9.345435345", null)); @@ -54,4 +93,60 @@ void validatePhoneNum() { assertFalse(CommonUtil.validatePhoneNum("46234554432")); } + @Test + void testGetMessageFromThrowable() { + assertEquals("throwable is null, unknown error.", CommonUtil.getMessageFromThrowable(null)); + assertEquals("throwable cause message", CommonUtil.getMessageFromThrowable(new Throwable(new Throwable("throwable cause message")))); + assertEquals("throwable message", CommonUtil.getMessageFromThrowable(new Throwable("throwable message"))); + assertEquals("throwable localizedMessage", CommonUtil.getMessageFromThrowable(new Throwable() { + @Override + public String getLocalizedMessage() { + return "throwable localizedMessage"; + } + })); + assertEquals("throwable toString", CommonUtil.getMessageFromThrowable(new Throwable() { + @Override + public String getMessage() { + return null; + } + + @Override + public String toString() { + return "throwable toString"; + } + })); + assertEquals("unknown error.", CommonUtil.getMessageFromThrowable(new Throwable() { + @Override + public String getMessage() { + return null; + } + + @Override + public String toString() { + return null; + } + })); + } + + @Test + void testRemoveBlankLine() { + assertEquals("line1\nline2\nline3", CommonUtil.removeBlankLine("line1\nline2\nline3")); + assertEquals("line1\nline3\nline4\nline6", CommonUtil.removeBlankLine("line1\n\nline3\nline4\n\n\nline6")); + assertEquals("", CommonUtil.removeBlankLine("")); + assertEquals("", CommonUtil.removeBlankLine("\n\n\n\n")); + } + + @Test + void testGetLangMappingValueFromI18nMap() { + Map i18nMap = new HashMap<>(); + i18nMap.put("zh-CN", "中文"); + i18nMap.put("ja", null); + i18nMap.put("en-US", "English"); + assertEquals("中文", CommonUtil.getLangMappingValueFromI18nMap("zh-CN", i18nMap)); + assertEquals("English", CommonUtil.getLangMappingValueFromI18nMap("en-US", i18nMap)); + assertNull(CommonUtil.getLangMappingValueFromI18nMap("zh", new HashMap<>())); + assertNotNull(CommonUtil.getLangMappingValueFromI18nMap("ja", i18nMap)); + assertNotNull(CommonUtil.getLangMappingValueFromI18nMap("zh-TW", i18nMap)); + } + } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/FileUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/FileUtilTest.java new file mode 100644 index 00000000000..b177216be7b --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/util/FileUtilTest.java @@ -0,0 +1,68 @@ +/* + * 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.hertzbeat.common.util; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import org.apache.hertzbeat.common.constants.ExportFileConstants; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.springframework.http.MediaType; +import org.springframework.mock.web.MockMultipartFile; + +/** + * test case for {@link FileUtil}. + */ + +class FileUtilTest { + + private static final String EXCEL_TYPE = "application/vnd.ms-excel"; + private static final String YAML_TYPE = "application/x-yaml"; + + private MockMultipartFile jsonFile; + private MockMultipartFile excelFile; + private MockMultipartFile yamlFile; + private MockMultipartFile emptyFile; + + @BeforeEach + void setUp() { + + jsonFile = new MockMultipartFile("file", "test.json", MediaType.APPLICATION_JSON_VALUE, "test content".getBytes()); + excelFile = new MockMultipartFile("file", "test.xlsx", EXCEL_TYPE, "test content".getBytes()); + yamlFile = new MockMultipartFile("file", "test.yaml", YAML_TYPE, "test content".getBytes()); + emptyFile = new MockMultipartFile("file", "", null, (byte[]) null); + } + + @Test + void testGetFileName() { + + assertEquals("test.json", FileUtil.getFileName(jsonFile)); + assertEquals("test.xlsx", FileUtil.getFileName(excelFile)); + assertEquals("test.yaml", FileUtil.getFileName(yamlFile)); + assertEquals("", FileUtil.getFileName(emptyFile)); + } + + @Test + void testGetFileType() { + + assertEquals(ExportFileConstants.JsonFile.TYPE, FileUtil.getFileType(jsonFile)); + assertEquals(ExportFileConstants.ExcelFile.TYPE, FileUtil.getFileType(excelFile)); + assertEquals(ExportFileConstants.YamlFile.TYPE, FileUtil.getFileType(yamlFile)); + assertEquals("", FileUtil.getFileType(emptyFile)); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/IntervalExpressionUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/IntervalExpressionUtilTest.java index 91c8e0314a3..b23d101077e 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/IntervalExpressionUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/IntervalExpressionUtilTest.java @@ -17,54 +17,53 @@ package org.apache.hertzbeat.common.util; -import org.junit.jupiter.api.Test; - import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; +import org.junit.jupiter.api.Test; /** * Test case for {@link IntervalExpressionUtil} */ class IntervalExpressionUtilTest { - @Test - public void testValidNumberIntervalExpress() { + @Test + public void testValidNumberIntervalExpress() { - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, null)); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, null)); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(null, "(3,7)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(null, "(3,7)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(3,7)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "(3,7)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "(3,7)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(3,7)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "(3,7)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "(3,7)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "[3,7]")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "[3,7]")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(2.0, "[3,7]")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(8.0, "[3,7]")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "[3,7]")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "[3,7]")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(2.0, "[3,7]")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(8.0, "[3,7]")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "[3,7)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(6.9999, "[3,7)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "[3,7)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "[3,7)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(6.9999, "[3,7)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "[3,7)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(4.0, "(3,7]")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "(3,7]")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "(3,7]")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(4.0, "(3,7]")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(7.0, "(3,7]")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(3.0, "(3,7]")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(-1000.0, "(-∞,5)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(-1.0, "(-∞,5)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(-∞,5)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(10.0, "(-∞,5)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(-1000.0, "(-∞,5)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(-1.0, "(-∞,5)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(-∞,5)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(10.0, "(-∞,5)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(1000.0, "(5,+∞)")); - assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(10.0, "(5,+∞)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(5,+∞)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(0.0, "(5,+∞)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(1000.0, "(5,+∞)")); + assertTrue(IntervalExpressionUtil.validNumberIntervalExpress(10.0, "(5,+∞)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(5,+∞)")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(0.0, "(5,+∞)")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(3,7")); - assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "[3,7)3,7]")); - } + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "(3,7")); + assertFalse(IntervalExpressionUtil.validNumberIntervalExpress(5.0, "[3,7)3,7]")); + } } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/IpDomainUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/IpDomainUtilTest.java index a711d6515d8..3545010ea37 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/IpDomainUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/IpDomainUtilTest.java @@ -17,25 +17,23 @@ package org.apache.hertzbeat.common.util; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; import java.net.Inet4Address; import java.net.InetAddress; import java.net.NetworkInterface; import java.net.SocketException; import java.util.Collections; import java.util.Enumeration; - -import org.apache.hertzbeat.common.constants.CollectorConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; import org.junit.jupiter.api.Test; import org.mockito.MockedStatic; import org.mockito.Mockito; -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertFalse; -import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.mockito.Mockito.mock; -import static org.mockito.Mockito.when; - /** * Test case for {@link IpDomainUtil} */ @@ -97,10 +95,10 @@ void testGetLocalhostIp() throws SocketException { } // no network interface - Enumeration noNetworkIFNetworkInterfaces = Collections.enumeration(Collections.emptyList()); + Enumeration noNetworkNetworkInterfaces = Collections.enumeration(Collections.emptyList()); try (MockedStatic mockedStaticNetworkInterface = Mockito.mockStatic(NetworkInterface.class)) { - mockedStaticNetworkInterface.when(NetworkInterface::getNetworkInterfaces).thenReturn(noNetworkIFNetworkInterfaces); + mockedStaticNetworkInterface.when(NetworkInterface::getNetworkInterfaces).thenReturn(noNetworkNetworkInterfaces); String localhostIp = IpDomainUtil.getLocalhostIp(); assertNull(localhostIp); @@ -119,15 +117,15 @@ void testGetLocalhostIp() throws SocketException { @Test void testCheckIpAddressType() { - assertEquals(CollectorConstants.IPV4, IpDomainUtil.checkIpAddressType("192.168.1.1")); - assertEquals(CollectorConstants.IPV4, IpDomainUtil.checkIpAddressType("127.0.0.1")); + assertEquals(NetworkConstants.IPV4, IpDomainUtil.checkIpAddressType("192.168.1.1")); + assertEquals(NetworkConstants.IPV4, IpDomainUtil.checkIpAddressType("127.0.0.1")); - assertEquals(CollectorConstants.IPV6, IpDomainUtil.checkIpAddressType("2001:0db8:85a3:0000:0000:8a2e:0370:7334")); - assertEquals(CollectorConstants.IPV6, IpDomainUtil.checkIpAddressType("::1")); + assertEquals(NetworkConstants.IPV6, IpDomainUtil.checkIpAddressType("2001:0db8:85a3:0000:0000:8a2e:0370:7334")); + assertEquals(NetworkConstants.IPV6, IpDomainUtil.checkIpAddressType("::1")); - assertEquals(CollectorConstants.IPV4, IpDomainUtil.checkIpAddressType("")); - assertEquals(CollectorConstants.IPV4, IpDomainUtil.checkIpAddressType(null)); - assertEquals(CollectorConstants.IPV4, IpDomainUtil.checkIpAddressType("invalid-ip")); + assertEquals(NetworkConstants.IPV4, IpDomainUtil.checkIpAddressType("")); + assertEquals(NetworkConstants.IPV4, IpDomainUtil.checkIpAddressType(null)); + assertEquals(NetworkConstants.IPV4, IpDomainUtil.checkIpAddressType("invalid-ip")); } } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/JexlTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/JexlTest.java index dd064042956..fa502f8f6b4 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/JexlTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/JexlTest.java @@ -39,7 +39,7 @@ public class JexlTest { private JexlBuilder jexlBuilder; - + @BeforeEach void setUp() { ClassLoader classLoader = new ClassLoader() { @@ -55,7 +55,7 @@ public String getName() { .features(features).strict(true).silent(false).stackOverflow(40); } - + @Test void testMultiExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -66,7 +66,7 @@ void testMultiExpression() { Object o = e.evaluate(context); Assertions.assertEquals(8, o); } - + @Test void testDivisionExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -77,7 +77,7 @@ void testDivisionExpression() { Object o = e.evaluate(context); Assertions.assertEquals(8, o); } - + @Test void testAdditionExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -93,7 +93,7 @@ void testAdditionExpression() { o = e.evaluate(context); Assertions.assertEquals("hello3.0", o); } - + @Test void testSubtractionExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -104,7 +104,7 @@ void testSubtractionExpression() { Object o = e.evaluate(context); Assertions.assertEquals(7, o); } - + @Test void testModulusExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -115,7 +115,7 @@ void testModulusExpression() { Object o = e.evaluate(context); Assertions.assertEquals(2, o); } - + @Test void testComplicatedExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -126,7 +126,7 @@ void testComplicatedExpression() { Object o = e.evaluate(context); Assertions.assertEquals(23, o); } - + @Test void testComplicatedExpressionWithParentheses() { JexlEngine jexl = jexlBuilder.create(); @@ -137,7 +137,7 @@ void testComplicatedExpressionWithParentheses() { Object o = e.evaluate(context); Assertions.assertEquals(23, o); } - + @Test void testComplicatedExpressionWithParenthesesAndSpaces() { JexlEngine jexl = jexlBuilder.create(); @@ -148,7 +148,7 @@ void testComplicatedExpressionWithParenthesesAndSpaces() { Object o = e.evaluate(context); Assertions.assertEquals(23, o); } - + @Test void testComplicatedSpecialVariableNameExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -162,7 +162,7 @@ void testComplicatedSpecialVariableNameExpression() { Object o = e.evaluate(context); Assertions.assertEquals(121.0, o); } - + @Test void testComplicatedSpecialVariableNameExpressionWithParenthesesAndSpaces() { JexlEngine jexl = jexlBuilder.create(); @@ -176,7 +176,7 @@ void testComplicatedSpecialVariableNameExpressionWithParenthesesAndSpaces() { Object o = e.evaluate(context); Assertions.assertEquals(121.0, o); } - + @Test void testVariableAssignment() { JexlEngine jexl = jexlBuilder.create(); @@ -186,7 +186,7 @@ void testVariableAssignment() { Object o = e.evaluate(context); Assertions.assertEquals(20.0, o); } - + @Test void testSpecialVariableNameWithoutSpacesExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -208,7 +208,7 @@ void testSpecialVariableNameWithSpacesExpression() { Object o = e.evaluate(context); Assertions.assertEquals(47.82608695652174, o); } - + @Test void testJudgmentExpression() { JexlEngine jexl = jexlBuilder.create(); @@ -219,7 +219,7 @@ void testJudgmentExpression() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testJudgmentExpressionWithParentheses() { JexlEngine jexl = jexlBuilder.create(); @@ -230,7 +230,7 @@ void testJudgmentExpressionWithParentheses() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testJudgmentExpressionWithParenthesesAndSpaces() { JexlEngine jexl = jexlBuilder.create(); @@ -241,7 +241,7 @@ void testJudgmentExpressionWithParenthesesAndSpaces() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testJudgmentExpressionWithAndOperator() { JexlEngine jexl = jexlBuilder.create(); @@ -253,7 +253,7 @@ void testJudgmentExpressionWithAndOperator() { Object o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testJudgmentExpressionWithOrOperator() { JexlEngine jexl = jexlBuilder.create(); @@ -265,7 +265,7 @@ void testJudgmentExpressionWithOrOperator() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testJudgmentExpressionWithNotOperator() { JexlEngine jexl = jexlBuilder.create(); @@ -275,7 +275,7 @@ void testJudgmentExpressionWithNotOperator() { Object o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testJudgmentExpressionWithNotOperatorAndParentheses() { JexlEngine jexl = jexlBuilder.create(); @@ -300,7 +300,7 @@ void testCustomFunction() { String result = (String) o; Assertions.assertTrue(result.endsWith("2")); } - + @Test void testZeroThrowException() { JexlEngine jexl = jexlBuilder.create(); @@ -310,7 +310,7 @@ void testZeroThrowException() { JexlExpression e = jexl.createExpression("x / y"); Assertions.assertThrows(JexlException.class, () -> e.evaluate(context)); } - + @Test void testNullThrowException() { JexlEngine jexl = jexlBuilder.create(); @@ -320,7 +320,7 @@ void testNullThrowException() { JexlExpression e = jexl.createExpression("x / y"); Assertions.assertThrows(JexlException.class, () -> e.evaluate(context)); } - + @Test void testEmptyStringThrowException() { JexlEngine jexl = jexlBuilder.create(); @@ -330,7 +330,7 @@ void testEmptyStringThrowException() { JexlExpression e = jexl.createExpression("x / y"); Assertions.assertThrows(JexlException.class, () -> e.evaluate(context)); } - + @Test void testEqualsFunction() { Map functions = Maps.newLinkedHashMap(); @@ -344,7 +344,7 @@ void testEqualsFunction() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testNotEqualsFunction() { Map functions = Maps.newLinkedHashMap(); @@ -372,7 +372,7 @@ void testContainsFunction() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testExistsFunction() { Map functions = Maps.newLinkedHashMap(); @@ -385,7 +385,7 @@ void testExistsFunction() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testExistsFunctionWithNull() { Map functions = Maps.newLinkedHashMap(); @@ -396,7 +396,7 @@ void testExistsFunctionWithNull() { JexlExpression e = jexl.createExpression("sys:exists(x)"); Assertions.assertThrows(JexlException.class, () -> e.evaluate(context)); } - + @Test void testExistsFunctionWithEmptyString() { Map functions = Maps.newLinkedHashMap(); @@ -435,7 +435,7 @@ void testMatchesFunction() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testMatchesFunctionWithNull() { Map functions = Maps.newLinkedHashMap(); @@ -448,7 +448,7 @@ void testMatchesFunctionWithNull() { Object o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testMatchesFunctionWithEmptyString() { Map functions = Maps.newLinkedHashMap(); @@ -461,7 +461,7 @@ void testMatchesFunctionWithEmptyString() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testMatchesFunctionWithEmptyStringAndSpace() { Map functions = Maps.newLinkedHashMap(); @@ -474,7 +474,7 @@ void testMatchesFunctionWithEmptyStringAndSpace() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testMatchesFunctionWithRegex() { Map functions = Maps.newLinkedHashMap(); @@ -487,7 +487,7 @@ void testMatchesFunctionWithRegex() { Object o = e.evaluate(context); Assertions.assertTrue((Boolean) o); } - + @Test void testMatchesFunctionWithRegexNotMatch() { Map functions = Maps.newLinkedHashMap(); @@ -500,7 +500,7 @@ void testMatchesFunctionWithRegexNotMatch() { Object o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testMatchesFunctionWithRegexAndSpace() { Map functions = Maps.newLinkedHashMap(); @@ -513,7 +513,7 @@ void testMatchesFunctionWithRegexAndSpace() { Object o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testMatchesFunctionWithRegexAndSpace2() { Map functions = Maps.newLinkedHashMap(); @@ -529,7 +529,7 @@ void testMatchesFunctionWithRegexAndSpace2() { o = e.evaluate(context); Assertions.assertFalse((Boolean) o); } - + @Test void testNowFunction() { Map functions = Maps.newLinkedHashMap(); @@ -542,7 +542,7 @@ void testNowFunction() { String result = (String) o; Assertions.assertTrue(result.endsWith("-0")); } - + @Test void testAddString() { JexlEngine jexl = jexlBuilder.create(); @@ -557,7 +557,7 @@ void testAddString() { result = (String) o; Assertions.assertEquals("Ubuntu-00000", result); } - + @Test void testUnconventionalMapping() { // database_pages=Database pages @@ -572,7 +572,7 @@ void testUnconventionalMapping() { Assertions.assertThrows(JexlException.class, () -> jexl.createExpression("Buffer Cache Hit Ratio")); Assertions.assertThrows(JexlException.class, () -> jexl.createExpression("Page reads/sec")); } - + @Test void testRecException() { JexlEngine jexl = jexlBuilder.create(); @@ -591,7 +591,7 @@ void testMethodCallException() { Assertions.assertThrows(JexlException.class, () -> jexl.createExpression("'string'.length()")); Assertions.assertThrows(JexlException.class, () -> jexl.createExpression("System.currentTimeMillis()")); } - + /** * custom function */ diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/JsonUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/JsonUtilTest.java index 628a10e105b..d4acb6089ed 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/JsonUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/JsonUtilTest.java @@ -20,6 +20,7 @@ import static org.apache.hertzbeat.common.util.JsonUtil.isJsonStr; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; import com.fasterxml.jackson.core.type.TypeReference; import java.util.ArrayList; import java.util.List; @@ -66,7 +67,7 @@ void testIsJsonStr() { assertFalse(isJsonStr(jsonString)); String jsonStringArrays = "[{\"name\":\"John\"}, {\"name\":\"Doe\"}]"; - assertFalse(isJsonStr(jsonStringArrays)); + assertTrue(isJsonStr(jsonStringArrays)); } } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/LruHashMapTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/LruHashMapTest.java index 73a4642d8a4..58126e6a325 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/LruHashMapTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/LruHashMapTest.java @@ -17,11 +17,10 @@ package org.apache.hertzbeat.common.util; -import org.junit.jupiter.api.Test; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; +import org.junit.jupiter.api.Test; /** * Test case for {@link LruHashMap} diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/MapCapUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/MapCapUtilTest.java index fac11a9cdf0..b9ab4e9a9b4 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/MapCapUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/MapCapUtilTest.java @@ -17,28 +17,27 @@ package org.apache.hertzbeat.common.util; -import org.junit.jupiter.api.Test; - import static org.junit.jupiter.api.Assertions.assertEquals; +import org.junit.jupiter.api.Test; /** * Test for {@link MapCapUtil} */ class MapCapUtilTest { - @Test - public void testCalInitMap() { - int size = 0; - int expectedCapacity = (int) Math.ceil(size / 0.75); - int actualCapacity = MapCapUtil.calInitMap(size); + @Test + public void testCalInitMap() { + int size = 0; + int expectedCapacity = (int) Math.ceil(size / 0.75); + int actualCapacity = MapCapUtil.calInitMap(size); - assertEquals(expectedCapacity, actualCapacity); + assertEquals(expectedCapacity, actualCapacity); - size = 10; - expectedCapacity = (int) Math.ceil(size / 0.75); - actualCapacity = MapCapUtil.calInitMap(size); + size = 10; + expectedCapacity = (int) Math.ceil(size / 0.75); + actualCapacity = MapCapUtil.calInitMap(size); - assertEquals(expectedCapacity, actualCapacity); - } + assertEquals(expectedCapacity, actualCapacity); + } } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/ProtoJsonUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/ProtoJsonUtilTest.java index 394f9bbd958..908a579e2be 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/ProtoJsonUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/ProtoJsonUtilTest.java @@ -17,16 +17,14 @@ package org.apache.hertzbeat.common.util; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import com.google.protobuf.InvalidProtocolBufferException; +import com.google.protobuf.util.JsonFormat; import org.apache.hertzbeat.common.util.entity.PersonTest.Person; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; -import com.google.protobuf.InvalidProtocolBufferException; -import com.google.protobuf.util.JsonFormat; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNull; - /** * Test case for {@link ProtoJsonUtil} */ diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/ResourceBundleUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/ResourceBundleUtilTest.java index a9b8fb4b544..6ac67d4bc30 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/ResourceBundleUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/ResourceBundleUtilTest.java @@ -17,19 +17,18 @@ package org.apache.hertzbeat.common.util; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.Mockito.mockStatic; +import java.util.Locale; +import java.util.MissingResourceException; +import java.util.ResourceBundle; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.MockedStatic; import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; -import java.util.Locale; -import java.util.MissingResourceException; -import java.util.ResourceBundle; - -import static org.junit.jupiter.api.Assertions.assertEquals; -import static org.junit.jupiter.api.Assertions.assertNotNull; -import static org.mockito.Mockito.mockStatic; /** * Test case for {@link ResourceBundleUtil} @@ -51,8 +50,8 @@ void testGetBundleWithValidBundleName() { mockedResourceBundle.when( () -> ResourceBundle.getBundle( - Mockito.eq(BUNDLE_NAME), - Mockito.any(ResourceBundle.Control.class) + Mockito.eq(BUNDLE_NAME), + Mockito.any(ResourceBundle.Control.class) ) ).thenReturn(mockBundle); @@ -68,8 +67,8 @@ void testGetBundleByInvalidBundleName() { try (MockedStatic mockedResourceBundle = mockStatic(ResourceBundle.class)) { mockedResourceBundle.when( () -> ResourceBundle.getBundle( - Mockito.eq(BUNDLE_NAME), - Mockito.any(ResourceBundle.Control.class) + Mockito.eq(BUNDLE_NAME), + Mockito.any(ResourceBundle.Control.class) ) ).thenThrow(new MissingResourceException("Missing bundle", "ResourceBundle", BUNDLE_NAME)); diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/StrBufferTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/StrBufferTest.java new file mode 100644 index 00000000000..98a5a93341b --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/util/StrBufferTest.java @@ -0,0 +1,151 @@ +/* + * 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.hertzbeat.common.util; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import org.junit.jupiter.api.Test; + +/** + * test case for {@link StrBuffer} + */ + +class StrBufferTest { + + private static final String POSITIVE_INF = "+inf"; + private static final String NEGATIVE_INF = "-inf"; + private static final long POSITIVE_INF_VALUE = 0x7FF0000000000000L; + private static final long NEGATIVE_INF_VALUE = 0xFFF0000000000000L; + + @Test + void testRead() { + + StrBuffer buffer = new StrBuffer("hello"); + + assertEquals('h', buffer.read()); + assertEquals('e', buffer.read()); + assertEquals('l', buffer.read()); + assertEquals('l', buffer.read()); + assertEquals('o', buffer.read()); + assertThrows(IndexOutOfBoundsException.class, buffer::read); + } + + @Test + void testRollback() { + + StrBuffer buffer = new StrBuffer("hello"); + + assertEquals('h', buffer.read()); + buffer.rollback(); + assertEquals('h', buffer.read()); + buffer.read(); + buffer.read(); + buffer.rollback(); + assertEquals('l', buffer.read()); + } + + @Test + void testCharAt() { + + StrBuffer buffer = new StrBuffer("hello"); + + assertEquals('h', buffer.charAt(0)); + assertEquals('e', buffer.charAt(1)); + assertEquals('l', buffer.charAt(2)); + assertEquals('l', buffer.charAt(3)); + assertEquals('o', buffer.charAt(4)); + assertThrows(IndexOutOfBoundsException.class, () -> buffer.charAt(5)); + } + + @Test + void testToStr() { + + StrBuffer buffer = new StrBuffer("hello"); + + assertEquals("hello", buffer.toStr()); + buffer.read(); + assertEquals("ello", buffer.toStr()); + } + + @Test + void testToDouble() { + + StrBuffer buffer = new StrBuffer("123.45"); + assertEquals(123.45, buffer.toDouble()); + + buffer = new StrBuffer("+inf"); + assertEquals(POSITIVE_INF_VALUE, buffer.toDouble()); + + buffer = new StrBuffer("-inf"); + assertEquals(NEGATIVE_INF_VALUE, buffer.toDouble()); + } + + @Test + void testToLong() { + + StrBuffer buffer = new StrBuffer("12345"); + assertEquals(12345L, buffer.toLong()); + + buffer = new StrBuffer("+inf"); + assertEquals(POSITIVE_INF_VALUE, buffer.toLong()); + + buffer = new StrBuffer("-inf"); + assertEquals(NEGATIVE_INF_VALUE, buffer.toLong()); + } + + @Test + void testSkipBlankTabs() { + + StrBuffer buffer = new StrBuffer(" \t hello \t "); + buffer.skipBlankTabs(); + assertEquals("hello", buffer.toStr()); + } + + @Test + void testIsEmpty() { + + StrBuffer buffer = new StrBuffer(""); + assertTrue(buffer.isEmpty()); + + buffer = new StrBuffer(" \t "); + buffer.skipBlankTabs(); + assertTrue(buffer.isEmpty()); + + buffer = new StrBuffer("hello"); + assertFalse(buffer.isEmpty()); + } + + @Test + void testParseLong() { + + assertEquals(12345L, StrBuffer.parseLong("12345")); + assertEquals(POSITIVE_INF_VALUE, StrBuffer.parseLong(POSITIVE_INF)); + assertEquals(NEGATIVE_INF_VALUE, StrBuffer.parseLong(NEGATIVE_INF)); + } + + @Test + void testParseDouble() { + + assertEquals(123.45, StrBuffer.parseDouble("123.45")); + assertEquals(POSITIVE_INF_VALUE, StrBuffer.parseDouble("+inf")); + assertEquals(NEGATIVE_INF_VALUE, StrBuffer.parseDouble("-inf")); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/StrUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/StrUtilTest.java new file mode 100644 index 00000000000..ba1ae2cc128 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/util/StrUtilTest.java @@ -0,0 +1,64 @@ +/* + * 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.hertzbeat.common.util; + +import static org.apache.hertzbeat.common.util.StrUtil.analysisArgToList; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import java.util.List; +import org.junit.jupiter.api.Test; + +/** + * Test case for {@link StrUtil} + */ +class StrUtilTest { + + @Test + void testAnalysisArgToList() { + List result = analysisArgToList(null); + assertTrue(result.isEmpty()); + + result = analysisArgToList(""); + assertEquals(1, result.size()); + assertEquals("", result.get(0)); + + result = analysisArgToList("element"); + assertEquals(1, result.size()); + assertEquals("element", result.get(0)); + + result = analysisArgToList("one,two,three"); + assertEquals(3, result.size()); + assertEquals("one", result.get(0)); + assertEquals("two", result.get(1)); + assertEquals("three", result.get(2)); + + result = analysisArgToList(" one , two , three "); + assertEquals(3, result.size()); + assertEquals("one", result.get(0).trim()); + assertEquals("two", result.get(1).trim()); + assertEquals("three", result.get(2).trim()); + + result = analysisArgToList(",one,two,three,"); + assertEquals(4, result.size()); + assertEquals("", result.get(0)); + assertEquals("one", result.get(1)); + assertEquals("two", result.get(2)); + assertEquals("three", result.get(3)); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/TimePeriodUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/TimePeriodUtilTest.java index 59a7492b86c..5a467326a8f 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/TimePeriodUtilTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/TimePeriodUtilTest.java @@ -17,18 +17,16 @@ package org.apache.hertzbeat.common.util; -import java.time.Duration; -import java.time.Period; -import java.time.format.DateTimeParseException; -import java.time.temporal.TemporalAmount; - -import org.junit.jupiter.api.Test; - import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertThrows; import static org.junit.jupiter.api.Assertions.assertTrue; +import java.time.Duration; +import java.time.Period; +import java.time.format.DateTimeParseException; +import java.time.temporal.TemporalAmount; +import org.junit.jupiter.api.Test; /** * Test case for {@link SnowFlakeIdGenerator} @@ -36,72 +34,70 @@ class TimePeriodUtilTest { - @Test - void testParseTokenTime() { - - // Years - TemporalAmount result = TimePeriodUtil.parseTokenTime("1Y"); - assertTrue(result instanceof Period); - assertEquals(Period.ofYears(1), result); - - // Month - result = TimePeriodUtil.parseTokenTime("5M"); - assertTrue(result instanceof Period); - assertEquals(Period.ofMonths(5), result); - - // Day - result = TimePeriodUtil.parseTokenTime("3D"); - assertTrue(result instanceof Period); - assertEquals(Period.ofDays(3), result); - - // Week - result = TimePeriodUtil.parseTokenTime("3W"); - assertTrue(result instanceof Period); - assertEquals(Period.ofWeeks(3), result); - } - - @Test - void testParseTokenTimeDuration() { - - // Minute - TemporalAmount result = TimePeriodUtil.parseTokenTime("30m"); - assertTrue(result instanceof Duration); - assertEquals(Duration.ofMinutes(30), result); - - // Hour - result = TimePeriodUtil.parseTokenTime("2h"); - assertTrue(result instanceof Duration); - assertEquals(Duration.ofHours(2), result); - } - - @Test - void testParseTokenTimeLowerCaseMinute() { - // Lowercase Minute - TemporalAmount result = TimePeriodUtil.parseTokenTime("1m"); - assertTrue(result instanceof Duration); - assertEquals(Duration.ofMinutes(1), result); - } - - @Test - void testParseTokenTimeInvalidInput() { - - // null input - TemporalAmount result = TimePeriodUtil.parseTokenTime(null); - assertNull(result); - - // empty string - result = TimePeriodUtil.parseTokenTime(""); - assertNull(result); - - // string with length < 2 - result = TimePeriodUtil.parseTokenTime("1"); - assertNull(result); - - // invalid format (non-numeric) - Exception exception = assertThrows(DateTimeParseException.class, () -> { - TimePeriodUtil.parseTokenTime("abc"); - }); - assertNotNull(exception.getMessage()); - } + @Test + void testParseTokenTime() { + + // Years + TemporalAmount result = TimePeriodUtil.parseTokenTime("1Y"); + assertTrue(result instanceof Period); + assertEquals(Period.ofYears(1), result); + + // Month + result = TimePeriodUtil.parseTokenTime("5M"); + assertTrue(result instanceof Period); + assertEquals(Period.ofMonths(5), result); + + // Day + result = TimePeriodUtil.parseTokenTime("3D"); + assertTrue(result instanceof Period); + assertEquals(Period.ofDays(3), result); + + // Week + result = TimePeriodUtil.parseTokenTime("3W"); + assertTrue(result instanceof Period); + assertEquals(Period.ofWeeks(3), result); + } + + @Test + void testParseTokenTimeDuration() { + + // Minute + TemporalAmount result = TimePeriodUtil.parseTokenTime("30m"); + assertTrue(result instanceof Duration); + assertEquals(Duration.ofMinutes(30), result); + + // Hour + result = TimePeriodUtil.parseTokenTime("2h"); + assertTrue(result instanceof Duration); + assertEquals(Duration.ofHours(2), result); + } + + @Test + void testParseTokenTimeLowerCaseMinute() { + // Lowercase Minute + TemporalAmount result = TimePeriodUtil.parseTokenTime("1m"); + assertTrue(result instanceof Duration); + assertEquals(Duration.ofMinutes(1), result); + } + + @Test + void testParseTokenTimeInvalidInput() { + + // null input + TemporalAmount result = TimePeriodUtil.parseTokenTime(null); + assertNull(result); + + // empty string + result = TimePeriodUtil.parseTokenTime(""); + assertNull(result); + + // string with length < 2 + result = TimePeriodUtil.parseTokenTime("1"); + assertNull(result); + + // invalid format (non-numeric) + Exception exception = assertThrows(DateTimeParseException.class, () -> TimePeriodUtil.parseTokenTime("abc")); + assertNotNull(exception.getMessage()); + } } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/TimeZoneUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/TimeZoneUtilTest.java new file mode 100644 index 00000000000..217faa45e06 --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/util/TimeZoneUtilTest.java @@ -0,0 +1,86 @@ +/* + * 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.hertzbeat.common.util; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import java.util.Locale; +import java.util.TimeZone; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * test case for {@link TimeZoneUtil} + */ + +class TimeZoneUtilTest { + + private TimeZone defaultTimeZone; + private Locale defaultLocale; + + @BeforeEach + void setUp() { + + defaultTimeZone = TimeZone.getDefault(); + defaultLocale = Locale.getDefault(); + } + + @AfterEach + void tearDown() { + + TimeZone.setDefault(defaultTimeZone); + Locale.setDefault(defaultLocale); + } + + @Test + void testSetTimeZoneAndLocale() { + + TimeZoneUtil.setTimeZoneAndLocale("America/New_York", "en_US"); + assertEquals("America/New_York", TimeZone.getDefault().getID()); + assertEquals(new Locale("en", "US"), Locale.getDefault()); + } + + @Test + void testSetTimeZone() { + + TimeZoneUtil.setTimeZone("Asia/Tokyo"); + assertEquals("Asia/Tokyo", TimeZone.getDefault().getID()); + + + TimeZoneUtil.setTimeZone(""); + assertEquals("Asia/Tokyo", TimeZone.getDefault().getID()); + + TimeZoneUtil.setTimeZone(null); + assertEquals("Asia/Tokyo", TimeZone.getDefault().getID()); + } + + @Test + void testSetLocale() { + + TimeZoneUtil.setLocale("fr_FR"); + assertEquals(new Locale("fr", "FR"), Locale.getDefault()); + + + TimeZoneUtil.setLocale(""); + assertEquals(new Locale("fr", "FR"), Locale.getDefault()); + + TimeZoneUtil.setLocale(null); + assertEquals(new Locale("fr", "FR"), Locale.getDefault()); + } + +} diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/entity/PersonTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/entity/PersonTest.java index 93e6955bf5d..6135c5fe977 100644 --- a/common/src/test/java/org/apache/hertzbeat/common/util/entity/PersonTest.java +++ b/common/src/test/java/org/apache/hertzbeat/common/util/entity/PersonTest.java @@ -24,814 +24,894 @@ @SuppressWarnings("all") public final class PersonTest { - private PersonTest() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - public interface PersonOrBuilder extends - // @@protoc_insertion_point(interface_extends:org.apache.hertzbeat.common.util.entity.Person) - com.google.protobuf.MessageOrBuilder { + private PersonTest() { + } - /** - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistryLite registry) { + } + + public static void registerAllExtensions( + com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions( + (com.google.protobuf.ExtensionRegistryLite) registry); + } + + public interface PersonOrBuilder extends + // @@protoc_insertion_point(interface_extends:org.apache.hertzbeat.common.util.entity.Person) + com.google.protobuf.MessageOrBuilder { + + /** + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + + /** + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); - /** - * int32 id = 2; - * @return The id. - */ - int getId(); + /** + * int32 id = 2; + * + * @return The id. + */ + int getId(); + + /** + * string email = 3; + * + * @return The email. + */ + java.lang.String getEmail(); + + /** + * string email = 3; + * + * @return The bytes for email. + */ + com.google.protobuf.ByteString + getEmailBytes(); + } /** - * string email = 3; - * @return The email. - */ - java.lang.String getEmail(); - /** - * string email = 3; - * @return The bytes for email. + * Protobuf type {@code org.apache.hertzbeat.common.util.entity.Person} */ - com.google.protobuf.ByteString - getEmailBytes(); - } - /** - * Protobuf type {@code org.apache.hertzbeat.common.util.entity.Person} - */ - public static final class Person extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:org.apache.hertzbeat.common.util.entity.Person) - PersonOrBuilder { - private static final long serialVersionUID = 0L; - // Use Person.newBuilder() to construct. - private Person(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Person() { - name_ = ""; - email_ = ""; - } + public static final class Person extends + com.google.protobuf.GeneratedMessageV3 implements + // @@protoc_insertion_point(message_implements:org.apache.hertzbeat.common.util.entity.Person) + PersonOrBuilder { + private static final long serialVersionUID = 0L; + + // Use Person.newBuilder() to construct. + private Person(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Person(); - } + private Person() { + name_ = ""; + email_ = ""; + } - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - public static final com.google.protobuf.Descriptors.Descriptor + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance( + UnusedPrivateParameter unused) { + return new Person(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet + getUnknownFields() { + return this.unknownFields; + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; - } + return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; + } - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hertzbeat.common.util.entity.PersonTest.Person.class, org.apache.hertzbeat.common.util.entity.PersonTest.Person.Builder.class); - } + return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hertzbeat.common.util.entity.PersonTest.Person.class, org.apache.hertzbeat.common.util.entity.PersonTest.Person.Builder.class); + } - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + + /** + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - public static final int ID_FIELD_NUMBER = 2; - private int id_; - /** - * int32 id = 2; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } + public static final int ID_FIELD_NUMBER = 2; + private int id_; + + /** + * int32 id = 2; + * + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } - public static final int EMAIL_FIELD_NUMBER = 3; - private volatile java.lang.Object email_; - /** - * string email = 3; - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - * string email = 3; - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString + public static final int EMAIL_FIELD_NUMBER = 3; + private volatile java.lang.Object email_; + + /** + * string email = 3; + * + * @return The email. + */ + @java.lang.Override + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } + } + + /** + * string email = 3; + * + * @return The bytes for email. + */ + @java.lang.Override + public com.google.protobuf.ByteString getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } + java.lang.Object ref = email_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; + private byte memoizedIsInitialized = -1; - memoizedIsInitialized = 1; - return true; - } + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (id_ != 0) { - output.writeInt32(2, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); - } - getUnknownFields().writeTo(output); - } + memoizedIsInitialized = 1; + return true; + } - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (id_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, id_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); - } - size += getUnknownFields().getSerializedSize(); - memoizedSize = size; - return size; - } + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) + throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (id_ != 0) { + output.writeInt32(2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, email_); + } + getUnknownFields().writeTo(output); + } - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof org.apache.hertzbeat.common.util.entity.PersonTest.Person)) { - return super.equals(obj); - } - org.apache.hertzbeat.common.util.entity.PersonTest.Person other = (org.apache.hertzbeat.common.util.entity.PersonTest.Person) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getId() - != other.getId()) return false; - if (!getEmail() - .equals(other.getEmail())) return false; - if (!getUnknownFields().equals(other.getUnknownFields())) return false; - return true; - } + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (id_ != 0) { + size += com.google.protobuf.CodedOutputStream + .computeInt32Size(2, id_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, email_); + } + size += getUnknownFields().getSerializedSize(); + memoizedSize = size; + return size; + } - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ID_FIELD_NUMBER; - hash = (53 * hash) + getId(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (29 * hash) + getUnknownFields().hashCode(); - memoizedHashCode = hash; - return hash; - } + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof org.apache.hertzbeat.common.util.entity.PersonTest.Person)) { + return super.equals(obj); + } + org.apache.hertzbeat.common.util.entity.PersonTest.Person other = (org.apache.hertzbeat.common.util.entity.PersonTest.Person) obj; + + if (!getName() + .equals(other.getName())) return false; + if (getId() + != other.getId()) return false; + if (!getEmail() + .equals(other.getEmail())) return false; + if (!getUnknownFields().equals(other.getUnknownFields())) return false; + return true; + } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (37 * hash) + ID_FIELD_NUMBER; + hash = (53 * hash) + getId(); + hash = (37 * hash) + EMAIL_FIELD_NUMBER; + hash = (53 * hash) + getEmail().hashCode(); + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(org.apache.hertzbeat.common.util.entity.PersonTest.Person prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code org.apache.hertzbeat.common.util.entity.Person} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:org.apache.hertzbeat.common.util.entity.Person) - org.apache.hertzbeat.common.util.entity.PersonTest.PersonOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable - .ensureFieldAccessorsInitialized( - org.apache.hertzbeat.common.util.entity.PersonTest.Person.class, org.apache.hertzbeat.common.util.entity.PersonTest.Person.Builder.class); - } - - // Construct using org.apache.hertzbeat.common.util.entity.PersonTest.Person.newBuilder() - private Builder() { - - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - id_ = 0; - - email_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; - } - - @java.lang.Override - public org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstanceForType() { - return org.apache.hertzbeat.common.util.entity.PersonTest.Person.getDefaultInstance(); - } - - @java.lang.Override - public org.apache.hertzbeat.common.util.entity.PersonTest.Person build() { - org.apache.hertzbeat.common.util.entity.PersonTest.Person result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public org.apache.hertzbeat.common.util.entity.PersonTest.Person buildPartial() { - org.apache.hertzbeat.common.util.entity.PersonTest.Person result = new org.apache.hertzbeat.common.util.entity.PersonTest.Person(this); - result.name_ = name_; - result.id_ = id_; - result.email_ = email_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof org.apache.hertzbeat.common.util.entity.PersonTest.Person) { - return mergeFrom((org.apache.hertzbeat.common.util.entity.PersonTest.Person)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(org.apache.hertzbeat.common.util.entity.PersonTest.Person other) { - if (other == org.apache.hertzbeat.common.util.entity.PersonTest.Person.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getId() != 0) { - setId(other.getId()); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - this.mergeUnknownFields(other.getUnknownFields()); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - name_ = input.readStringRequireUtf8(); - - break; - } // case 10 - case 16: { - id_ = input.readInt32(); - - break; - } // case 16 - case 26: { - email_ = input.readStringRequireUtf8(); - - break; - } // case 26 - default: { - if (!super.parseUnknownField(input, extensionRegistry, tag)) { - done = true; // was an endgroup tag + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + java.nio.ByteBuffer data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + byte[] data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseDelimitedFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseDelimitedFrom( + java.io.InputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + com.google.protobuf.CodedInputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3 + .parseWithIOException(PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(org.apache.hertzbeat.common.util.entity.PersonTest.Person prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE + ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + + /** + * Protobuf type {@code org.apache.hertzbeat.common.util.entity.Person} + */ + public static final class Builder extends + com.google.protobuf.GeneratedMessageV3.Builder implements + // @@protoc_insertion_point(builder_implements:org.apache.hertzbeat.common.util.entity.Person) + org.apache.hertzbeat.common.util.entity.PersonTest.PersonOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor + getDescriptor() { + return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable + .ensureFieldAccessorsInitialized( + org.apache.hertzbeat.common.util.entity.PersonTest.Person.class, org.apache.hertzbeat.common.util.entity.PersonTest.Person.Builder.class); + } + + // Construct using org.apache.hertzbeat.common.util.entity.PersonTest.Person.newBuilder() + private Builder() { + + } + + private Builder( + com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + id_ = 0; + + email_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor + getDescriptorForType() { + return org.apache.hertzbeat.common.util.entity.PersonTest.internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; + } + + @java.lang.Override + public org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstanceForType() { + return org.apache.hertzbeat.common.util.entity.PersonTest.Person.getDefaultInstance(); + } + + @java.lang.Override + public org.apache.hertzbeat.common.util.entity.PersonTest.Person build() { + org.apache.hertzbeat.common.util.entity.PersonTest.Person result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public org.apache.hertzbeat.common.util.entity.PersonTest.Person buildPartial() { + org.apache.hertzbeat.common.util.entity.PersonTest.Person result = new org.apache.hertzbeat.common.util.entity.PersonTest.Person(this); + result.name_ = name_; + result.id_ = id_; + result.email_ = email_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField( + com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof( + com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, + java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof org.apache.hertzbeat.common.util.entity.PersonTest.Person) { + return mergeFrom((org.apache.hertzbeat.common.util.entity.PersonTest.Person) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(org.apache.hertzbeat.common.util.entity.PersonTest.Person other) { + if (other == org.apache.hertzbeat.common.util.entity.PersonTest.Person.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.getId() != 0) { + setId(other.getId()); + } + if (!other.getEmail().isEmpty()) { + email_ = other.email_; + onChanged(); + } + this.mergeUnknownFields(other.getUnknownFields()); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: { + name_ = input.readStringRequireUtf8(); + + break; + } // case 10 + case 16: { + id_ = input.readInt32(); + + break; + } // case 16 + case 26: { + email_ = input.readStringRequireUtf8(); + + break; + } // case 26 + default: { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private java.lang.Object name_ = ""; + + /** + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString + getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); } - break; - } // default: - } // switch (tag) - } // while (!done) - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.unwrapIOException(); - } finally { - onChanged(); - } // finally - return this; - } - - private java.lang.Object name_ = ""; - /** - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int id_ ; - /** - * int32 id = 2; - * @return The id. - */ - @java.lang.Override - public int getId() { - return id_; - } - /** - * int32 id = 2; - * @param value The id to set. - * @return This builder for chaining. - */ - public Builder setId(int value) { - - id_ = value; - onChanged(); - return this; - } - /** - * int32 id = 2; - * @return This builder for chaining. - */ - public Builder clearId() { - - id_ = 0; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - * string email = 3; - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - * string email = 3; - * @return The bytes for email. - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - * string email = 3; - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - * string email = 3; - * @return This builder for chaining. - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - * string email = 3; - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:org.apache.hertzbeat.common.util.entity.Person) - } - // @@protoc_insertion_point(class_scope:org.apache.hertzbeat.common.util.entity.Person) - private static final org.apache.hertzbeat.common.util.entity.PersonTest.Person DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new org.apache.hertzbeat.common.util.entity.PersonTest.Person(); - } + name_ = value; + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + + /** + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private int id_; + + /** + * int32 id = 2; + * + * @return The id. + */ + @java.lang.Override + public int getId() { + return id_; + } + + /** + * int32 id = 2; + * + * @param value The id to set. + * @return This builder for chaining. + */ + public Builder setId(int value) { + + id_ = value; + onChanged(); + return this; + } + + /** + * int32 id = 2; + * + * @return This builder for chaining. + */ + public Builder clearId() { + + id_ = 0; + onChanged(); + return this; + } + + private java.lang.Object email_ = ""; + + /** + * string email = 3; + * + * @return The email. + */ + public java.lang.String getEmail() { + java.lang.Object ref = email_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = + (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + email_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + + /** + * string email = 3; + * + * @return The bytes for email. + */ + public com.google.protobuf.ByteString + getEmailBytes() { + java.lang.Object ref = email_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8( + (java.lang.String) ref); + email_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + /** + * string email = 3; + * + * @param value The email to set. + * @return This builder for chaining. + */ + public Builder setEmail( + java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } - public static org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstance() { - return DEFAULT_INSTANCE; - } + email_ = value; + onChanged(); + return this; + } + + /** + * string email = 3; + * + * @return This builder for chaining. + */ + public Builder clearEmail() { + + email_ = getDefaultInstance().getEmail(); + onChanged(); + return this; + } + + /** + * string email = 3; + * + * @param value The bytes for email to set. + * @return This builder for chaining. + */ + public Builder setEmailBytes( + com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + email_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Person parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - Builder builder = newBuilder(); - try { - builder.mergeFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(builder.buildPartial()); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException(e) - .setUnfinishedMessage(builder.buildPartial()); - } - return builder.buildPartial(); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; + // @@protoc_insertion_point(builder_scope:org.apache.hertzbeat.common.util.entity.Person) + } + + // @@protoc_insertion_point(class_scope:org.apache.hertzbeat.common.util.entity.Person) + private static final org.apache.hertzbeat.common.util.entity.PersonTest.Person DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new org.apache.hertzbeat.common.util.entity.PersonTest.Person(); + } + + public static org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser + PARSER = new com.google.protobuf.AbstractParser() { + @java.lang.Override + public Person parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } + } - @java.lang.Override - public org.apache.hertzbeat.common.util.entity.PersonTest.Person getDefaultInstanceForType() { - return DEFAULT_INSTANCE; + private static final com.google.protobuf.Descriptors.Descriptor + internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; + private static final + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor + getDescriptor() { + return descriptor; } - } + private static com.google.protobuf.Descriptors.FileDescriptor + descriptor; - private static final com.google.protobuf.Descriptors.Descriptor - internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor; - private static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\014person.proto\022\'org.apache.hertzbeat.com" + - "mon.util.entity\"1\n\006Person\022\014\n\004name\030\001 \001(\t\022" + - "\n\n\002id\030\002 \001(\005\022\r\n\005email\030\003 \001(\tB\014B\nPersonTest" + - "b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor, - new java.lang.String[] { "Name", "Id", "Email", }); - } - - // @@protoc_insertion_point(outer_class_scope) + static { + java.lang.String[] descriptorData = { + "\n\014person.proto\022\'org.apache.hertzbeat.com" + + "mon.util.entity\"1\n\006Person\022\014\n\004name\030\001 \001(\t\022" + + "\n\n\002id\030\002 \001(\005\022\r\n\005email\030\003 \001(\tB\014B\nPersonTest" + + "b\006proto3" + }; + descriptor = com.google.protobuf.Descriptors.FileDescriptor + .internalBuildGeneratedFileFrom(descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[]{ + }); + internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_org_apache_hertzbeat_common_util_entity_Person_fieldAccessorTable = new + com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_org_apache_hertzbeat_common_util_entity_Person_descriptor, + new java.lang.String[]{"Name", "Id", "Email",}); + } + + // @@protoc_insertion_point(outer_class_scope) } diff --git a/common/src/test/java/org/apache/hertzbeat/common/util/prometheus/PrometheusUtilTest.java b/common/src/test/java/org/apache/hertzbeat/common/util/prometheus/PrometheusUtilTest.java new file mode 100644 index 00000000000..ab8a60113bb --- /dev/null +++ b/common/src/test/java/org/apache/hertzbeat/common/util/prometheus/PrometheusUtilTest.java @@ -0,0 +1,225 @@ +/* + * 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.hertzbeat.common.util.prometheus; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.List; +import org.junit.jupiter.api.Test; + +/** + * test case for {@link PrometheusUtil} + */ + +class PrometheusUtilTest { + + @Test + void testParseMetricsNormalInput() throws IOException { + + String input = "metric_name{label1=\"value1\",label2=\"value2\"} 123.45 67890\n"; + InputStream inputStream = new ByteArrayInputStream(input.getBytes()); + + List metrics = PrometheusUtil.parseMetrics(inputStream); + + assertNotNull(metrics); + assertEquals(1, metrics.size()); + + Metric metric = metrics.get(0); + assertEquals("metric_name", metric.getMetricName()); + assertEquals(123.45, metric.getValue()); + assertEquals(67890, metric.getTimestamp()); + + List ``` + **2. Modify the YML configuration exposure metric interface:** ```yaml @@ -35,56 +36,54 @@ management: ### Configure parameters -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Parameter name | Parameter Help describes the | +|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| Port | The default port provided by the database is 8080. | +| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | +| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric Collection: Health -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------| +| status | None | Service health: UP, Down | #### metric Collection: enviroment -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-----------------------------------------------| +| profile | None | The application runs profile: prod, dev, test | +| port | None | Apply the exposed port | +| os | None | Run the operating system | +| os_arch | None | Run the operating system architecture | +| jdk_vendor | None | jdk vendor | +| jvm_version | None | jvm version | #### metric Collection: threads -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|----------------------------------|-------------------| +| state | None | Thread status | +| number | None | This thread state corresponds to | number of threads | #### metric Collection: memory_used -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | - -#### metric Collection: route_info - -| Metric Name | metric unit | Metrics help describe | +| Metric Name | metric unit | Metrics help describe | |-------------|-------------|--------------------------------------| -| route_id | None | Route id | -| predicate | None | This is a routing matching rule | -| uri | None | This is a service resource identifier| -| order | None | The priority of this route | +| space | None | Memory space name | +| mem_used | MB | This space occupies a memory size of | +#### metric Collection: route_info +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|---------------------------------------| +| route_id | None | Route id | +| predicate | None | This is a routing matching rule | +| uri | None | This is a service resource identifier | +| order | None | The priority of this route | diff --git a/home/docs/help/springboot2.md b/home/docs/help/springboot2.md index ca46530f77b..08029dc23b5 100644 --- a/home/docs/help/springboot2.md +++ b/home/docs/help/springboot2.md @@ -19,6 +19,7 @@ If you want to monitor information in 'SpringBoot' with this monitoring type, yo spring-boot-starter-actuator ``` + **2. Modify the YML configuration exposure metric interface:** ```yaml @@ -29,7 +30,9 @@ management: include: '*' enabled-by-default: on ``` + *Note: If your project also introduces authentication related dependencies, such as springboot security, the interfaces exposed by SpringBoot Actor may be intercepted. In this case, you need to manually release these interfaces. Taking springboot security as an example, you should add the following code to the Security Configuration class:* + ```java public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override @@ -45,47 +48,48 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ } } ``` + ### Configure parameters -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Parameter name | Parameter Help describes the | +|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| Port | The default port provided by the database is 8080. | +| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | +| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric Collection: Health -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------| +| status | None | Service health: UP, Down | #### metric Collection: enviroment -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-----------------------------------------------| +| profile | None | The application runs profile: prod, dev, test | +| port | None | Apply the exposed port | +| os | None | Run the operating system | +| os_arch | None | Run the operating system architecture | +| jdk_vendor | None | jdk vendor | +| jvm_version | None | jvm version | #### metric Collection: threads -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|----------------------------------|-------------------| +| state | None | Thread status | +| number | None | This thread state corresponds to | number of threads | #### metric Collection: memory_used -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------------------| +| space | None | Memory space name | +| mem_used | MB | This space occupies a memory size of | diff --git a/home/docs/help/springboot3.md b/home/docs/help/springboot3.md index 0dbc32fc834..77d7032e436 100644 --- a/home/docs/help/springboot3.md +++ b/home/docs/help/springboot3.md @@ -51,7 +51,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### Configuration Parameters -| Parameter Name | Parameter Description | +| Parameter Name | Parameter Description | |-------------------|----------------------------------------------------------------------------------------------------------------------| | Monitor Host | The monitored peer's IPV4, IPV6, or domain name. Note⚠️: Do not include protocol headers (eg: https://, http://). | | Task Name | Identifies the name of this monitor, ensuring uniqueness is necessary. | @@ -65,23 +65,27 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### Collection Metrics #### Metric Set: Availability + | Metric Name | Unit | Metric Description | |--------------|------|--------------------| | responseTime | ms | Response time | #### Metric Set: Threads -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|----------------------------------| | state | None | Thread state | | size | None | Number of threads for this state | #### Metric Set: Memory Usage -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|-----------------------------| | space | None | Memory space name | | mem_used | MB | Memory usage for this space | #### Metric Set: Health Status -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|---------------------------------| | status | None | Service health status: UP, Down | diff --git a/home/docs/help/sqlserver.md b/home/docs/help/sqlserver.md index cc12abf0d7e..06e19252ede 100644 --- a/home/docs/help/sqlserver.md +++ b/home/docs/help/sqlserver.md @@ -9,68 +9,68 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1433 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 1433 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| machine_name | none | Windows computer name running the server instance | -| server_name | none | Server and instance information SQL Server associated with Windows instance | -| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | -| edition | none | The product SQL server version of the installed instance | -| start_time | none | Database start time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-----------------------------------------------------------------------------| +| machine_name | none | Windows computer name running the server instance | +| server_name | none | Server and instance information SQL Server associated with Windows instance | +| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | +| edition | none | The product SQL server version of the installed instance | +| start_time | none | Database start time | #### Metric set:performance_counters -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_pages | none | Database pages, Number of pages obtained (buffer pool) | -| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | -| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | -| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | -| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | -| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | - +| Metric name | Metric unit | Metric help description | +|------------------------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| database_pages | none | Database pages, Number of pages obtained (buffer pool) | +| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | +| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | +| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | +| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | +| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | +| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | #### Metric set:connection -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| user_connection | none | Number of connected sessions | - +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|------------------------------| +| user_connection | none | Number of connected sessions | ### Common Problem 1. SSL connection problem fixed -jdk version: jdk11 -Description of the problem: SQL Server 2019 uses the SA user connection to report an error -Error message: +jdk version: jdk11 +Description of the problem: SQL Server 2019 uses the SA user connection to report an error +Error message: + ```text The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxxxxx ``` -Screenshot of the problem: + +Screenshot of the problem: ![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) -solution: +solution: Use advanced settings when adding `SqlServer` monitoring, customize JDBC URL, add parameter configuration after the spliced jdbc url, ```;encrypt=true;trustServerCertificate=true;```This parameter true means unconditionally trust the server returned any root certificate. Example: ```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` -Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building- failed-unable-to-find-valid-certification/ba-p/2591304) +Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification]( failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/docs/help/ssl_cert.md b/home/docs/help/ssl_cert.md index 4d808f47dca..253485f8b1a 100644 --- a/home/docs/help/ssl_cert.md +++ b/home/docs/help/ssl_cert.md @@ -9,25 +9,25 @@ keywords: [open source monitoring tool, open source ssl cert monitoring tool, mo ### Configuration parameters -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the website, https generally defaults to 443. | -| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.cn/console` The relative path of the website is `/console`. | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | +| Parameter name | Parameter help description | +|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | +| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | +| Port | The port provided by the website, https generally defaults to 443. | +| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.io/console` The relative path of the website is `/console`. | +| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | +| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | ### Collect metrics #### Metric collection: certificate -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------| -| subject | none | certificate name | -| expired | no | expired or not | -| start_time | None | Validity start time | -| start_timestamp | ms millisecond | Validity start timestamp | -| end_time | None | Expiration time | -| end_timestamp | ms milliseconds | expiration timestamp | +| Metric Name | Metric Unit | Metric Help Description | +|-----------------|-----------------|--------------------------| +| subject | none | certificate name | +| expired | no | expired or not | +| start_time | None | Validity start time | +| start_timestamp | ms millisecond | Validity start timestamp | +| end_time | None | Expiration time | +| end_timestamp | ms milliseconds | expiration timestamp | diff --git a/home/docs/help/status.md b/home/docs/help/status.md index 1e1b8251b8d..dcdafbb794c 100644 --- a/home/docs/help/status.md +++ b/home/docs/help/status.md @@ -1,7 +1,4 @@ -Here is the English translation of the provided text: - --- - id: status title: Status Page sidebar_label: Status Page @@ -16,14 +13,14 @@ It supports the linkage synchronization between component status and monitoring The fields that need to be filled in are as follows: -| Field Name | Field Description | Example | -|--------------|--------------------------------------------------|-----------------------------------------------------------------------------------------------------| -| Organization Name | Name of the organization | HertzBeat | -| Organization Description | Detailed description of the organization | Apache HertzBeat (incubating) is an easy-to-use and user-friendly open-source real-time monitoring and alerting system, no agent required, high-performance cluster, compatible with Prometheus, providing powerful custom monitoring and status page building capabilities. | -| Website Link | URL of the organization's website for more information | https://hertzbeat.apache.org/ | -| Logo Image | Path or URL of the organization's official logo image, preferably in .svg format | https://hertzbeat.apache.org/zh-cn/img/hertzbeat-logo.svg | -| Feedback Address | Address to receive feedback | https://github.com/apache/hertzbeat/issues | -| Theme Color | Main color tone of the status page | Click to select on the page | +| Field Name | Field Description | Example | +|--------------------------|----------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Organization Name | Name of the organization | HertzBeat | +| Organization Description | Detailed description of the organization | Apache HertzBeat (incubating) is an easy-to-use and user-friendly open-source real-time monitoring and alerting system, no agent required, high-performance cluster, compatible with Prometheus, providing powerful custom monitoring and status page building capabilities. | +| Website Link | URL of the organization's website for more information | | +| Logo Image | Path or URL of the organization's official logo image, preferably in .svg format | | +| Feedback Address | Address to receive feedback | | +| Theme Color | Main color tone of the status page | Click to select on the page | After filling in the organization information, click `Confirm`. @@ -35,12 +32,12 @@ After adding a component, the status page will display the status information of Click `Add Component` to add the component to be monitored and fill in the following fields: -| Field Name | Field Description | Example | -|-------------------|-----------------------------------------------------------------------------------------------------------|------------------------------------------| -| Service Component | Name of the component service | Development Environment ElasticSearch | -| Component Description | Detailed description of the component service | Development environment, ElasticSearch (ip:192.168.1.1) | -| Service Status Calculation Method | Method of calculating the service status of the component.
Automatic Calculation: Automatically calculate the status based on the monitored status of the component.
Manual Setting: Manually configure the component status. | Automatic Calculation / Manual Setting (Choose one) | -| Matching Tag | Status calculation associated tag, use the availability status data of all monitors associated with the tag to calculate the service status of the component. | Select the component tag on the page | +| Field Name | Field Description | Example | +|-----------------------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------| +| Service Component | Name of the component service | Development Environment ElasticSearch | +| Component Description | Detailed description of the component service | Development environment, ElasticSearch (ip:192.168.1.1) | +| Service Status Calculation Method | Method of calculating the service status of the component.
Automatic Calculation: Automatically calculate the status based on the monitored status of the component.
Manual Setting: Manually configure the component status. | Automatic Calculation / Manual Setting (Choose one) | +| Matching Tag | Status calculation associated tag, use the availability status data of all monitors associated with the tag to calculate the service status of the component. | Select the component tag on the page | ### Set Status Calculation Time @@ -64,13 +61,13 @@ Click `Publish Event` ![](/img/docs/help/status-1.png) -| Field Name | Field Description | Example | -|--------------|-------------------------------------------------|------------------------------------------------------------| -| Event Name | Title of the event, should clearly reflect the core content of the event | "Server Downtime Event - April 5, 2023" | -| Affected Component | Select the components affected by this event | Select on the page | -| Process Status | Set the current status of the event for tracking the progress. Optional values: Investigating / Confirmed / Monitoring / Resolved | Confirmed | -| Publish Message | Official notification to convey to relevant parties, including event details, impact assessment, and countermeasures | Dear All, there is an issue with the development environment, the developers are urgently handling it, it is expected to be fixed within two hours. Please be patient, if you have urgent matters, please contact Tom: 130xxxx0000! | +| Field Name | Field Description | Example | +|--------------------|-----------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Event Name | Title of the event, should clearly reflect the core content of the event | "Server Downtime Event - April 5, 2023" | +| Affected Component | Select the components affected by this event | Select on the page | +| Process Status | Set the current status of the event for tracking the progress. Optional values: Investigating / Confirmed / Monitoring / Resolved | Confirmed | +| Publish Message | Official notification to convey to relevant parties, including event details, impact assessment, and countermeasures | Dear All, there is an issue with the development environment, the developers are urgently handling it, it is expected to be fixed within two hours. Please be patient, if you have urgent matters, please contact Tom: 130xxxx0000! | > Note: You can publish messages multiple times to keep the team updated on the current status. -![](/img/docs/help/status-2.png) \ No newline at end of file +![](/img/docs/help/status-2.png) diff --git a/home/docs/help/tidb.md b/home/docs/help/tidb.md index 2a7bc5b65b6..2378b224110 100644 --- a/home/docs/help/tidb.md +++ b/home/docs/help/tidb.md @@ -1,55 +1,54 @@ ---- -id: tidb -title: Monitoring:TiDB database monitoring -sidebar_label: TiDB database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring tidb database metrics] ---- - -> HertzBeat monitors general performance metrics of TiDB through HTTP and JDBC protocol. - -[Metrics Schema](https://docs.pingcap.com/tidb/stable/metrics-schema) - -[METRICS_SUMMARY](https://docs.pingcap.com/tidb/stable/information-schema-metrics-summary) - -[METRICS_TABLES](https://docs.pingcap.com/tidb/stable/information-schema-metrics-tables) - -**Protocol Use: HTTP and JDBC** - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Task name | Identify the name of this monitoring. The name needs to be unique | -| Service Port | The port that the TiDB database provides externally for status reporting is 10080 by default | -| PD Port | The PD port for the TiDB database, which defaults to 2379 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 6000ms | -| JDBC Port | The TiDB database externally provides the port used for client requests, which defaults to 4000 | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| JDBC URL | Database using [JDBC](https://docs.pingcap.com/tidb/stable/dev-guide-connect-to-tidb#jdbc) connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - - -### Collection Metric - -The monitoring template will retrieve the monitoring metrics from the TiDB System Variables table, and the user can retrieve the [TiDB System Variables Table](https://docs.pingcap.com/tidb/stable/system-variables) by himself to query the required information or other system variables. - -Besides, TiDB also provides default monitoring metrics table, see [Metrics Schema](https://docs.pingcap.com/tidb/stable/metrics-schema) and [METRICS_SUMMARY](https://docs.pingcap.com/tidb/stable/information-schema-metrics-summary), and users can add their own sql codes according to their needs. - -Due to the large number of metrics that can be monitored, only the metrics queried in the monitoring template are described below. - -#### Metric set: global variables - -| Metric Name | Metric Unit | Metric Help Description | -|---------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| version | none | The MySQL version, followed by the TiDB version. For example '8.0.11-TiDB-v7.5.1'. | -| version_comment | none | The TiDB version. For example, 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible'. | -| version_compile_machine | none | The name of the CPU architecture on which TiDB is running. | -| version_compile_os | none | The name of the OS on which TiDB is running. | -| max_connections | none | The maximum number of concurrent connections permitted for a single TiDB instance. This variable can be used for resources control. The default value 0 means no limit. When the value of this variable is larger than 0, and the number of connections reaches the value, the TiDB server rejects new connections from clients. | -| datadir | none | The location where data is stored. This location can be a local path /tmp/tidb, or point to a PD server if the data is stored on TiKV. A value in the format of ${pd-ip}:${pd-port} indicates the PD server that TiDB connects to on startup. | -| port | none | The port that the tidb-server is listening on when speaking the MySQL protocol. | +--- +id: tidb +title: Monitoring:TiDB database monitoring +sidebar_label: TiDB database +keywords: [open source monitoring tool, open source database monitoring tool, monitoring tidb database metrics] +--- + +> HertzBeat monitors general performance metrics of TiDB through HTTP and JDBC protocol. + +[Metrics Schema](https://docs.pingcap.com/tidb/stable/metrics-schema) + +[METRICS_SUMMARY](https://docs.pingcap.com/tidb/stable/information-schema-metrics-summary) + +[METRICS_TABLES](https://docs.pingcap.com/tidb/stable/information-schema-metrics-tables) + +**Protocol Use: HTTP and JDBC** + +### Configuration parameter + +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Task name | Identify the name of this monitoring. The name needs to be unique | +| Service Port | The port that the TiDB database provides externally for status reporting is 10080 by default | +| PD Port | The PD port for the TiDB database, which defaults to 2379 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 6000ms | +| JDBC Port | The TiDB database externally provides the port used for client requests, which defaults to 4000 | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| JDBC URL | Database using [JDBC](https://docs.pingcap.com/tidb/stable/dev-guide-connect-to-tidb#jdbc) connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | + +### Collection Metric + +The monitoring template will retrieve the monitoring metrics from the TiDB System Variables table, and the user can retrieve the [TiDB System Variables Table](https://docs.pingcap.com/tidb/stable/system-variables) by himself to query the required information or other system variables. + +Besides, TiDB also provides default monitoring metrics table, see [Metrics Schema](https://docs.pingcap.com/tidb/stable/metrics-schema) and [METRICS_SUMMARY](https://docs.pingcap.com/tidb/stable/information-schema-metrics-summary), and users can add their own sql codes according to their needs. + +Due to the large number of metrics that can be monitored, only the metrics queried in the monitoring template are described below. + +#### Metric set: global variables + +| Metric Name | Metric Unit | Metric Help Description | +|-------------------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| version | none | The MySQL version, followed by the TiDB version. For example '8.0.11-TiDB-v7.5.1'. | +| version_comment | none | The TiDB version. For example, 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible'. | +| version_compile_machine | none | The name of the CPU architecture on which TiDB is running. | +| version_compile_os | none | The name of the OS on which TiDB is running. | +| max_connections | none | The maximum number of concurrent connections permitted for a single TiDB instance. This variable can be used for resources control. The default value 0 means no limit. When the value of this variable is larger than 0, and the number of connections reaches the value, the TiDB server rejects new connections from clients. | +| datadir | none | The location where data is stored. This location can be a local path /tmp/tidb, or point to a PD server if the data is stored on TiKV. A value in the format of ${pd-ip}:${pd-port} indicates the PD server that TiDB connects to on startup. | +| port | none | The port that the tidb-server is listening on when speaking the MySQL protocol. | diff --git a/home/docs/help/time_expression.md b/home/docs/help/time_expression.md index e2cb0928b05..07eea14a81d 100644 --- a/home/docs/help/time_expression.md +++ b/home/docs/help/time_expression.md @@ -11,7 +11,7 @@ HertzBeat supports using expressions to calculate relative time during monitorin ### Syntax -``` +```shell ${FORMATTER [{ + | - } ]} ``` @@ -23,28 +23,28 @@ ${FORMATTER [{ + | - } ]} > Example outputs are based on the current time being `2022-04-24 02:40:00.123` -| Name | Description | Example | -|---------------|------------------------------------|------------------------| -| @now | Formats as `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | -| @date | Formats as `yyyy-MM-dd` | 2022-04-24 | -| @timestamp10 | Returns 10-digit timestamp | 1650768000 | -| @timestamp | Returns 13-digit timestamp | 1650768000000 | -| @time | Formats as `HH:mm:ss` | 02:40:00 | -| @year | Formats as `yyyy` | 2022 | -| @month | Formats as `MM` | 04 | -| @day | Formats as `dd` | 24 | -| @hour | Formats as `HH` | 02 | -| @minute | Formats as `mm` | 40 | -| @millisecond | Formats as `SSS` | 123 | -| @second | Formats as `ss` | 00 | +| Name | Description | Example | +|--------------|----------------------------------|---------------------| +| @now | Formats as `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | +| @date | Formats as `yyyy-MM-dd` | 2022-04-24 | +| @timestamp10 | Returns 10-digit timestamp | 1650768000 | +| @timestamp | Returns 13-digit timestamp | 1650768000000 | +| @time | Formats as `HH:mm:ss` | 02:40:00 | +| @year | Formats as `yyyy` | 2022 | +| @month | Formats as `MM` | 04 | +| @day | Formats as `dd` | 24 | +| @hour | Formats as `HH` | 02 | +| @minute | Formats as `mm` | 40 | +| @millisecond | Formats as `SSS` | 123 | +| @second | Formats as `ss` | 00 | ### Supported Time Units | Name | Description | |------|-------------| -| y | Year | +| y | Year | | M | Month | -| d | Day | +| d | Day | | H | Hour | | m | Minute | | s | Second | @@ -57,8 +57,8 @@ ${FORMATTER [{ + | - } ]} #### Usage Examples 1. Simple expression - - `${now}` gets the current time and formats it as `yyyy-MM-dd HH:mm:ss` - - `${time+1h}` calculates the time one hour from now and formats it as `HH:mm:ss` - - `${time+1h+15s+30s}` calculates the time one hour, 15 minutes, and 30 seconds from now and formats it as `HH:mm:ss` + - `${now}` gets the current time and formats it as `yyyy-MM-dd HH:mm:ss` + - `${time+1h}` calculates the time one hour from now and formats it as `HH:mm:ss` + - `${time+1h+15s+30s}` calculates the time one hour, 15 minutes, and 30 seconds from now and formats it as `HH:mm:ss` 2. Complex expression template (if the built-in formatter does not meet your needs, you can combine multiple expressions) - - `${@year}年${@month}月${@day}日` returns the current date formatted as yyyy年MM月dd日 + - `${@year}年${@month}月${@day}日` returns the current date formatted as yyyy年MM月dd日 diff --git a/home/docs/help/tomcat.md b/home/docs/help/tomcat.md index 8b35808ffc8..9f103dfe5be 100644 --- a/home/docs/help/tomcat.md +++ b/home/docs/help/tomcat.md @@ -11,65 +11,63 @@ keywords: [open source monitoring tool, open source tomcat monitoring tool, moni ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by JMX | +| Username | JMX connection user name, optional | +| Password | JMX connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metrics #### Metrics Set:memory_pool -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| name | | metrics name | +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### Metrics Set:code_cache -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - +| Metric name | Metric unit | Metric help description | +|-----------------------|-------------|--------------------------| +| LoadedClassCount | | Loaded Class Count | +| TotalLoadedClassCount | | Total Loaded Class Count | +| UnloadedClassCount | | Unloaded Class Count | #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | +| Metric name | Metric unit | Metric help description | +|-------------------------|-------------|----------------------------| +| TotalStartedThreadCount | | Total Started Thread Count | +| ThreadCount | | Thread Count | +| PeakThreadCount | | Peak Thread Count | +| DaemonThreadCount | | Daemon Thread Count | +| CurrentThreadUserTime | ms | Current Thread User Time | +| CurrentThreadCpuTime | ms | Current Thread Cpu Time | ### Tomcat Enable JMX Protocol -1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file +1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file 2. vim catalina.sh Attention⚠️ Replace Hostname And Port ```aidl CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" ``` - diff --git a/home/docs/help/ubuntu.md b/home/docs/help/ubuntu.md index e7d368c9ea3..9de28efe095 100644 --- a/home/docs/help/ubuntu.md +++ b/home/docs/help/ubuntu.md @@ -9,74 +9,73 @@ keywords: [open source monitoring tool, open source linux ubuntu monitoring tool ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Linux SSH. The default is 22 | +| Username | SSH connection user name, optional | +| Password | SSH connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------| +| hostname | none | Host name | +| version | none | Operating system version | +| uptime | none | System running time | #### Metric set:cpu -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------------------------| +| info | none | CPU model | +| cores | cores | Number of CPU cores | +| interrupt | number | Number of CPU interrupts | +| load | none | Average load of CPU in the last 1/5/15 minutes | +| context_switch | number | Number of current context switches | +| usage | % | CPU usage | #### Metric set:memory -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------------------| +| total | Mb | Total memory capacity | +| used | Mb | User program memory | +| free | Mb | Free memory capacity | +| buff_cache | Mb | Memory occupied by cache | +| available | Mb | Remaining available memory capacity | +| usage | % | Memory usage | #### Metric set:disk -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|----------------------------------------| +| disk_num | blocks | Total number of disks | +| partition_num | partitions | Total number of partitions | +| block_write | blocks | Total number of blocks written to disk | +| block_read | blocks | Number of blocks read from disk | +| write_rate | iops | Rate of writing disk blocks per second | #### Metric set:interface -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------| +| interface_name | none | Network card name | +| receive_bytes | byte | Inbound data traffic(bytes) | +| transmit_bytes | byte | Outbound data traffic(bytes) | #### Metric set:disk_free -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| filesystem | none | File system name | +| used | Mb | Used disk size | +| available | Mb | Available disk size | +| usage | % | usage | +| mounted | none | Mount point directory | diff --git a/home/docs/help/udp_port.md b/home/docs/help/udp_port.md index 7fdcce3cf77..85d4fcb4383 100644 --- a/home/docs/help/udp_port.md +++ b/home/docs/help/udp_port.md @@ -10,7 +10,7 @@ keywords: [open source monitoring tool, open source port monitoring tool, monito ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️ Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -26,9 +26,6 @@ keywords: [open source monitoring tool, open source port monitoring tool, monito #### Metric set:summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------|-------------------|-------------------------| | Response Time | Milliseconds (ms) | Website response time | - - - diff --git a/home/docs/help/valkey.md b/home/docs/help/valkey.md new file mode 100644 index 00000000000..5c573030869 --- /dev/null +++ b/home/docs/help/valkey.md @@ -0,0 +1,234 @@ +--- +id: valkey +title: Monitorin Valkey database +sidebar_label: Valkey +keywords: [ open source monitoring tool, open source valkey monitoring tool, monitoring valkey metrics ] +--- + +> Collect and monitor the general performance Metrics of Valkey database. Support Valkey 7.0+. + +### Configuration parameter + +| Parameter name | Parameter help description | +|--------|------------------------------------------------------| +| Target Host | The IP, IPV6, or domain name of the monitored endpoint. Note ⚠️: Do not include protocol headers (eg: https://, http://). | +| Port | The HTTP port provided by Valkey, default value is 6379, sentinel node`s default value is 26379 | +| Timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | + +### Collection Metric + +#### Metric set:server + +| Metric name | Metric unit | Metric help description | +|--------------------------|------|-----------------------------------------------| +| valkey_version | none | Version of the Valkey server | +| valkey_git_sha1 | none | Git SHA1 | +| valkey_git_dirty | none | Git dirty flag | +| valkey_build_id | none | The build id | +| valkey_mode | none | The server's mode ("standalone", "sentinel" or "cluster") | +| os | none | Operating system hosting the Valkey server | +| arch_bits | none | Architecture (32 or 64 bits) | +| multiplexing_api | none | Event loop mechanism used by Valkey | +| atomicvar_api | none | Atomicvar API used by Valkey | +| gcc_version | none | Version of the GCC compiler used to compile the Valkey server | +| process_id | none | PID of the server process | +| process_supervised | none | Supervised system ("upstart", "systemd", "unknown" or "no") | +| run_id | none | Random value identifying the Valkey server (to be used by Sentinel and Cluster) | +| tcp_port | none | TCP/IP listen port | +| server_time_usec | none | Epoch-based system time with microsecond precision | +| uptime_in_seconds | none | Number of seconds since Valkey server start | +| uptime_in_days | none | Same value expressed in days | +| hz | none | The server's current frequency setting | +| configured_hz | none | The server's configured frequency setting | +| lru_clock | none | Clock incrementing every minute, for LRU management | +| executable | none | The path to the server's executable | +| config_file | none | The path to the config file | +| io_threads_active | none | Flag indicating if I/O threads are active | +| shutdown_in_milliseconds | none | The maximum time remaining for replicas to catch up the replication before completing the shutdown sequence. This field is only present during shutdown. | + +#### Metric set:clients + +| Metric name | Metric unit | Metric help description | +|---------------------------------|------|--------------------------------------------------------------------------------| +| connected_clients | none | Number of client connections (excluding connections from replicas) | +| cluster_connections | none | An approximation of the number of sockets used by the cluster's bus | +| maxclients | none | The value of the maxclients configuration directive. This is the upper limit for the sum of connected_clients, connected_slaves and cluster_connections. | +| client_recent_max_input_buffer | byte | Biggest input buffer among current client connections | +| client_recent_max_output_buffer | byte | Biggest output buffer among current client connections | +| blocked_clients | none | Number of clients pending on a blocking call (BLPOP, BRPOP, BRPOPLPUSH, BLMOVE, BZPOPMIN, BZPOPMAX) | +| tracking_clients | none | Number of clients being tracked (CLIENT TRACKING) | +| clients_in_timeout_table | none | Number of clients in the clients timeout table | + +#### Metric set:memory + +| Metric name | Metric unit | Metric help description | +|---------------------------|----------|-----------------------------------------------------------------------------------------------| +| used_memory | byte | Total number of bytes allocated by Valkey using its allocator (either standard libc, jemalloc, or an alternative allocator such as tcmalloc) | +| used_memory_human | GB/MB/KB | Human readable representation of previous value | +| used_memory_rss | byte | Number of bytes that Valkey allocated as seen by the operating system (a.k.a resident set size). This is the number reported by tools such as top(1) and ps(1) | +| used_memory_rss_human | GB/MB/KB | Human readable representation of previous value值 | +| used_memory_peak | byte | Peak memory consumed by Valkey (in bytes) | +| used_memory_peak_human | GB/MB/KB | Human readable representation of previous value | +| used_memory_peak_perc | none | The percentage of used_memory_peak out of used_memory | +| used_memory_overhead | byte | The sum in bytes of all overheads that the server allocated for managing its internal data structures | +| used_memory_startup | byte | Initial amount of memory consumed by Valkey at startup in bytes | +| used_memory_dataset | byte | The size in bytes of the dataset (used_memory_overhead subtracted from used_memory) | +| used_memory_dataset_perc | none | The percentage of used_memory_dataset out of the net memory usage (used_memory minus used_memory_startup) | +| allocator_allocated | byte | Total bytes allocated form the allocator, including internal-fragmentation. Normally the same as used_memory. | +| allocator_active | byte | Total bytes in the allocator active pages, this includes external-fragmentation. | +| allocator_resident | byte | Total bytes resident (RSS) in the allocator, this includes pages that can be released to the OS (by MEMORY PURGE, or just waiting). | +| total_system_memory | byte | The total amount of memory that the Valkey host has | +| total_system_memory_human | GB/MB/KB | Human readable representation of previous value | +| used_memory_lua | byte | Number of bytes used by the Lua engine for EVAL scripts. Deprecated in Valkey 7.0, renamed to used_memory_vm_eval | +| used_memory_lua_human | KB | Human readable representation of previous value. Deprecated in Valkey 7.0 | +| used_memory_scripts | byte | used_memory_scripts_eval + used_memory_functions (part of used_memory). Added in Valkey 7.0 | +| used_memory_scripts_human | GB/MB/KB | Human readable representation of previous value | +| number_of_cached_scripts | none | The number of EVAL scripts cached by the server. Added in Valkey 7.0 | +| maxmemory | byte | The value of the maxmemory configuration directive | +| maxmemory_human | GB/MB/KB | Human readable representation of previous value | +| maxmemory_policy | none | The value of the maxmemory-policy configuration directive | +| allocator_frag_ratio | none | Ratio between allocator_active and allocator_allocated. This is the true (external) fragmentation metric (not mem_fragmentation_ratio). | +| allocator_frag_bytes | byte | Delta between allocator_active and allocator_allocated. See note about mem_fragmentation_bytes. | +| allocator_rss_ratio | | Ratio between allocator_resident and allocator_active. | +| allocator_rss_bytes | byte | Delta between allocator_resident and allocator_active | +| rss_overhead_ratio | none | Ratio between used_memory_rss (the process RSS) and allocator_resident. This includes RSS overheads that are not allocator or heap related. | +| rss_overhead_bytes | byte | Delta between used_memory_rss (the process RSS) and allocator_resident | +| mem_fragmentation_ratio | none | Ratio between used_memory_rss and used_memory. Note that this doesn't only includes fragmentation, but also other process overheads (see the allocator_* metrics), and also overheads like code, shared libraries, stack, etc. | +| mem_fragmentation_bytes | byte | Delta between used_memory_rss and used_memory. Note that when the total fragmentation bytes is low (few megabytes), a high ratio (e.g. 1.5 and above) is not an indication of an issue. | +| mem_not_counted_for_evict | byte | Used memory that's not counted for key eviction. This is basically transient replica and AOF buffers. | +| mem_replication_backlog | byte | Memory used by replication backlog | +| mem_clients_slaves | none | Memory used by replica clients - Starting Valkey 7.0, replica buffers share memory with the replication backlog, so this field can show 0 when replicas don't trigger an increase of memory usage. | +| mem_clients_normal | none | Memory used by normal clients | +| mem_aof_buffer | none | Transient memory used for AOF and AOF rewrite buffers | +| mem_allocator | none | Memory allocator, chosen at compile time. | +| active_defrag_running | none | When activedefrag is enabled, this indicates whether defragmentation is currently active, and the CPU percentage it intends to utilize. | +| lazyfree_pending_objects | none | The number of objects waiting to be freed (as a result of calling UNLINK, or FLUSHDB and FLUSHALL with the ASYNC option) | +| lazyfreed_objects | none | The number of objects that have been lazy freed. | + +#### Metric set:persistence + +| Metric name | Metric unit | Metric help description | +|------------------------------|--------|-----------------------------------------------------------------------------------------------------| +| loading | none | Flag indicating if the load of a dump file is on-going | +| current_cow_size | byte | The size in bytes of copy-on-write memory while a child fork is running | +| current_cow_size_age | second | The age, in seconds, of the current_cow_size value. | +| current_fork_perc | none | The percentage of progress of the current fork process. For AOF and RDB forks it is the percentage of current_save_keys_processed out of | +| current_save_keys_processed | none | Number of keys processed by the current save operation | +| current_save_keys_total | none | Number of keys at the beginning of the current save operation | +| rdb_changes_since_last_save | none | Number of changes since the last dump | +| rdb_bgsave_in_progress | none | Flag indicating a RDB save is on-going | +| rdb_last_save_time | second | Epoch-based timestamp of last successful RDB save | +| rdb_last_bgsave_status | none | Status of the last RDB save operation | +| rdb_last_bgsave_time_sec | second | Duration of the last RDB save operation in seconds | +| rdb_current_bgsave_time_sec | none | Duration of the on-going RDB save operation if any | +| rdb_last_cow_size | none | The size in bytes of copy-on-write memory during the last RDB save operation | +| aof_enabled | none | Flag indicating AOF logging is activated | +| aof_rewrite_in_progress | none | Flag indicating a AOF rewrite operation is on-going | +| aof_rewrite_scheduled | none | Flag indicating an AOF rewrite operation will be scheduled once the on-going RDB save is complete. | +| aof_last_rewrite_time_sec | none | Duration of the last AOF rewrite operation in seconds | +| aof_current_rewrite_time_sec | second | Duration of the on-going AOF rewrite operation if any | +| aof_last_bgrewrite_status | none | Status of the last AOF rewrite operation | +| aof_last_write_status | none | Status of the last write operation to the AOF | +| aof_last_cow_size | none | The size in bytes of copy-on-write memory during the last AOF rewrite operation | +| module_fork_in_progress | none | Flag indicating a module fork is on-going | +| module_fork_last_cow_size | none | The size in bytes of copy-on-write memory during the last module fork operation | + +#### Metric set:stats + +| Metric name | Metric unit | Metric help description | +|--------------------------------|------|----------------------------------------------------| +| total_connections_received | none | Total number of connections accepted by the server | +| total_commands_processed | none | Total number of commands processed by the server | +| instantaneous_ops_per_sec | none | Number of commands processed per second | +| total_net_input_bytes | byte | The total number of bytes read from the network | +| total_net_output_bytes | byte | The total number of bytes written to the network | +| instantaneous_input_kbps | KB/S | The network's read rate per second in KB/sec | +| instantaneous_output_kbps | KB/S | The network's write rate per second in KB/sec | +| rejected_connections | none | Number of connections rejected because of maxclients limit | +| sync_full | none | The number of full resyncs with replicas | +| sync_partial_ok | none | The number of accepted partial resync requests | +| sync_partial_err | none | The number of denied partial resync requests | +| expired_keys | none | Total number of key expiration events | +| expired_stale_perc | none | The percentage of keys probably expired | +| expired_time_cap_reached_count | none | The count of times that active expiry cycles have stopped early | +| expire_cycle_cpu_milliseconds | none | The cumulative amount of time spent on active expiry cycles | +| evicted_keys | none | Number of evicted keys due to maxmemory limit | +| keyspace_hits | none | Number of successful lookup of keys in the main dictionary | +| keyspace_misses | none | Number of failed lookup of keys in the main dictionary | +| pubsub_channels | none | Global number of pub/sub channels with client subscriptions | +| pubsub_patterns | none | Global number of pub/sub pattern with client subscriptions | +| latest_fork_usec | none | Duration of the latest fork operation in microseconds | +| total_forks | none | Total number of fork operations since the server start | +| migrate_cached_sockets | none | The number of sockets open for MIGRATE purposes | +| slave_expires_tracked_keys | none | The number of keys tracked for expiry purposes (applicable only to writable replicas) | +| active_defrag_hits | none | Number of value reallocations performed by active the defragmentation process | +| active_defrag_misses | none | Number of aborted value reallocations started by the active defragmentation process | +| active_defrag_key_hits | none | Number of keys that were actively defragmented | +| active_defrag_key_misses | none | Number of keys that were skipped by the active defragmentation process | +| tracking_total_keys | none | Number of keys being tracked by the server | +| tracking_total_items | none | Number of items, that is the sum of clients number for each key, that are being tracked | +| tracking_total_prefixes | none | Number of tracked prefixes in server's prefix table (only applicable for broadcast mode) | +| unexpected_error_replies | none | Number of unexpected error replies, that are types of errors from an AOF load or replication | +| total_error_replies | none | Total number of issued error replies, that is the sum of rejected commands (errors prior command execution) and failed commands (errors within the command execution) | +| dump_payload_sanitizations | none | Total number of dump payload deep integrity validations (see sanitize-dump-payload config). | +| total_reads_processed | none | Total number of read events processed | +| total_writes_processed | none | Total number of write events processed | +| io_threaded_reads_processed | none | Number of read events processed by the main and I/O threads | +| io_threaded_writes_processed | none | Number of write events processed by the main and I/O threads | + +#### Metric set:replication + +| Metric name | Metric unit | Metric help description | +|--------------------------------|------|-------------------------------------------------------------------------------------| +| role | none | Value is "master" if the instance is replica of no one, or "slave" if the instance is a replica of some master instance. Note that a replica can be master of another replica (chained replication). | +| connected_slaves | none | Number of connected replicas | +| master_failover_state | none | The state of an ongoing failover, if any. | +| master_replid | none | The replication ID of the Valkey server. | +| master_replid2 | none | The secondary replication ID, used for PSYNC after a failover. | +| master_repl_offset | none | The server's current replication offset | +| second_repl_offset | none | The offset up to which replication IDs are accepted | +| repl_backlog_active | none | Flag indicating replication backlog is active | +| repl_backlog_size | byte | Total size in bytes of the replication backlog buffer | +| repl_backlog_first_byte_offset | none | The master offset of the replication backlog buffer | +| repl_backlog_histlen | none | Size in bytes of the data in the replication backlog buffer | + +#### Metric set:cpu + +| Metric name | Metric unit | Metric help description | +|---------------------------|------|------------------------| +| used_cpu_sys | none | System CPU consumed by the Valkey server, which is the sum of system CPU consumed by all threads of the server process (main thread and background threads) | +| used_cpu_user | none | User CPU consumed by the Valkey server, which is the sum of user CPU consumed by all threads of the server process (main thread and background threads) | +| used_cpu_sys_children | none | System CPU consumed by the background processes | +| used_cpu_user_children | none | User CPU consumed by the background processes | +| used_cpu_sys_main_thread | none | System CPU consumed by the Valkey server main thread | +| used_cpu_user_main_thread | none | User CPU consumed by the Valkey server main thread | + +#### Metric set:errorstats + +| Metric name | Metric unit | Metric help description | +|-------------------|------|-----------| +| errorstat_ERR | none | ERR count | +| errorstat_MISCONF | none | MISCONF count | + +#### Metric set:cluster + +| Metric name | Metric unit | Metric help description | +|-----------------|------|--------------------| +| cluster_enabled | none | Indicate Valkey cluster is enabled | + +#### Metric set:commandstats + +| Metric name | Metric unit | Metric help description | +|---------------|------|---------------------------------------------------------------------------------------------------------------------------| +| cmdstat_set | none | set command stat | +| cmdstat_get | none | get command stat | +| cmdstat_setnx | none | setnx command stat | +| cmdstat_hset | none | hset command stat | +| cmdstat_hget | none | hget command stat | +| cmdstat_lpush | none | lpush command stat | +| cmdstat_rpush | none | rpush command stat | +| cmdstat_lpop | none | lpop command stat | +| cmdstat_rpop | none | rpop command stat | +| cmdstat_llen | none | llen command stat | diff --git a/home/docs/help/vastbase.md b/home/docs/help/vastbase.md new file mode 100644 index 00000000000..1d595b85201 --- /dev/null +++ b/home/docs/help/vastbase.md @@ -0,0 +1,55 @@ +--- +id: vastbase +title: Monitoring:Vastbase database monitoring +sidebar_label: Vastbase database +keywords: [open source monitoring tool, open source database monitoring tool, monitoring vastbase database metrics] +--- + +> Collect and monitor the general performance Metrics of PostgreSQL database. Support PostgreSQL 10+. + +### Configuration parameter + +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored Host address. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 5432 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | + +### Collection Metric + +#### Metric set:basic + +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|-------------------------------------------| +| server_version | none | Version number of the database server | +| port | none | Database server exposure service port | +| server_encoding | none | Character set encoding of database server | +| data_directory | none | Database storage data disk address | +| max_connections | connections | Database maximum connections | + +#### Metric set:state + +| Metric name | Metric unit | Metric help description | +|----------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| name | none | Database name, or share-object is a shared object | +| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | +| deadlocks | number | Number of deadlocks detected in the database | +| blks_read | times | The number of disk blocks read in the database | +| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the Vastbase buffer, not in the operating system file system buffer) | +| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | +| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | +| stats_reset | none | The last time these statistics were reset | + +#### Metric set:activity + +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------------------| +| running | connections | Number of current client connections | diff --git a/home/docs/help/website.md b/home/docs/help/website.md index 88d7a1957ad..1041755f156 100644 --- a/home/docs/help/website.md +++ b/home/docs/help/website.md @@ -5,25 +5,25 @@ sidebar_label: Website Monitor keywords: [open source monitoring tool, open source website monitoring tool, monitoring website metrics] --- -> Monitor whether the website is available, response time and other Metrics. +> Monitor whether the website is available, response time and other Metrics. -### Configuration parameter +### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | +| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.io/console` website is `/console` | +| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | -### Collection Metric +### Collection Metric -#### Metric set:summary +#### Metric set:summary -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-------------------------| +| responseTime | ms | Website response time | diff --git a/home/docs/help/websocket.md b/home/docs/help/websocket.md index 8e3d29a204a..1523a145bd6 100644 --- a/home/docs/help/websocket.md +++ b/home/docs/help/websocket.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, Websocket监控 ] ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------------|--------------------------------------------------------------------------------------------------------------------------| | Host of WebSocket service | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -23,7 +23,7 @@ keywords: [ open source monitoring tool, Websocket监控 ] #### Metric set:Summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------|-------------|-------------------------| | responseTime | ms | Response time | | httpVersion | none | HTTP version | diff --git a/home/docs/help/windows.md b/home/docs/help/windows.md index 82e36d23470..99d305cbce5 100644 --- a/home/docs/help/windows.md +++ b/home/docs/help/windows.md @@ -6,38 +6,38 @@ keywords: [open source monitoring tool, open source windows monitoring tool, mon --- > Collect and monitor the general performance Metrics of Windows operating system through SNMP protocol. -> Note⚠️ You need to start SNMP service for Windows server. +> Note⚠️ You need to start SNMP service for Windows server. -References: -[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) +References: +[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) +[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) +[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) +[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Windows SNMP service. The default is 161 | -| SNMP version | SNMP protocol version V1 V2c V3 | +| Parameter name | Parameter help description | +|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Windows SNMP service. The default is 161 | +| SNMP version | SNMP protocol version V1 V2c V3 | | SNMP community Word | SNMP agreement community name(Community Name). It is used to realize the authentication of SNMP network administrator when accessing SNMP management agent. Similar to password, the default value is public | -| Timeout | Protocol connection timeout | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Timeout | Protocol connection timeout | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:system -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Host name | -| descr | none | Operating system description | -| uptime | none | System running time | -| numUsers | number | Current number of users | -| services | number | Current number of services | -| processes | number | Current number of processes | -| responseTime | ms | Collection response time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|------------------------------| +| name | none | Host name | +| descr | none | Operating system description | +| uptime | none | System running time | +| numUsers | number | Current number of users | +| services | number | Current number of services | +| processes | number | Current number of processes | +| responseTime | ms | Collection response time | diff --git a/home/docs/help/yarn.md b/home/docs/help/yarn.md index 176a3209fee..cea4079abf7 100644 --- a/home/docs/help/yarn.md +++ b/home/docs/help/yarn.md @@ -15,69 +15,69 @@ Retrieve the HTTP monitoring port of Apache Yarn. Value: `yarn.resourcemanager.w ## Configuration Parameters -| Parameter Name | Parameter Description | -| ---------------- |----------------------------------------------------| -| Target Host | IP address, IPV6, or domain name of the monitored endpoint. Without protocol header. | -| Port | Monitoring port number of Apache Yarn, default is 8088. | -| Query Timeout | Timeout for querying Apache Yarn, in milliseconds, default is 6000 milliseconds. | +| Parameter Name | Parameter Description | +|------------------|-------------------------------------------------------------------------------------------| +| Target Host | IP address, IPV6, or domain name of the monitored endpoint. Without protocol header. | +| Port | Monitoring port number of Apache Yarn, default is 8088. | +| Query Timeout | Timeout for querying Apache Yarn, in milliseconds, default is 6000 milliseconds. | | Metrics Interval | Time interval for monitoring data collection, in seconds, minimum interval is 30 seconds. | ### Collected Metrics #### Metric Set: ClusterMetrics -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | -----------------------------------------| -| NumActiveNMs | | Number of currently active NodeManagers | -| NumDecommissionedNMs | | Number of currently decommissioned NodeManagers | -| NumDecommissioningNMs | | Number of nodes currently decommissioning | -| NumLostNMs | | Number of lost nodes in the cluster | -| NumUnhealthyNMs | | Number of unhealthy nodes in the cluster | +| Metric Name | Unit | Metric Description | +|-----------------------|------|-------------------------------------------------| +| NumActiveNMs | | Number of currently active NodeManagers | +| NumDecommissionedNMs | | Number of currently decommissioned NodeManagers | +| NumDecommissioningNMs | | Number of nodes currently decommissioning | +| NumLostNMs | | Number of lost nodes in the cluster | +| NumUnhealthyNMs | | Number of unhealthy nodes in the cluster | #### Metric Set: JvmMetrics -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | -------------------------------------------- | -| MemNonHeapCommittedM | MB | Current committed size of non-heap memory in JVM | -| MemNonHeapMaxM | MB | Maximum available non-heap memory in JVM | -| MemNonHeapUsedM | MB | Current used size of non-heap memory in JVM | -| MemHeapCommittedM | MB | Current committed size of heap memory in JVM | -| MemHeapMaxM | MB | Maximum available heap memory in JVM | -| MemHeapUsedM | MB | Current used size of heap memory in JVM | -| GcTimeMillis | | JVM GC time | -| GcCount | | Number of JVM GC occurrences | +| Metric Name | Unit | Metric Description | +|----------------------|------|--------------------------------------------------| +| MemNonHeapCommittedM | MB | Current committed size of non-heap memory in JVM | +| MemNonHeapMaxM | MB | Maximum available non-heap memory in JVM | +| MemNonHeapUsedM | MB | Current used size of non-heap memory in JVM | +| MemHeapCommittedM | MB | Current committed size of heap memory in JVM | +| MemHeapMaxM | MB | Maximum available heap memory in JVM | +| MemHeapUsedM | MB | Current used size of heap memory in JVM | +| GcTimeMillis | | JVM GC time | +| GcCount | | Number of JVM GC occurrences | #### Metric Set: QueueMetrics -| Metric Name | Unit | Metric Description | -| --------------------------- | ---- | -------------------------------------------- | -| queue | | Queue name | -| AllocatedVCores | | Allocated virtual cores (allocated) | -| ReservedVCores | | Reserved cores | -| AvailableVCores | | Available cores (unallocated) | -| PendingVCores | | Blocked scheduling cores | -| AllocatedMB | MB | Allocated (used) memory size | -| AvailableMB | MB | Available memory (unallocated) | -| PendingMB | MB | Blocked scheduling memory | -| ReservedMB | MB | Reserved memory | -| AllocatedContainers | | Number of allocated (used) containers | -| PendingContainers | | Number of blocked scheduling containers | -| ReservedContainers | | Number of reserved containers | -| AggregateContainersAllocated| | Total aggregated containers allocated | -| AggregateContainersReleased| | Total aggregated containers released | -| AppsCompleted | | Number of completed applications | -| AppsKilled | | Number of killed applications | -| AppsFailed | | Number of failed applications | -| AppsPending | | Number of pending applications | -| AppsRunning | | Number of currently running applications | -| AppsSubmitted | | Number of submitted applications | -| running_0 | | Number of jobs running for less than 60 minutes | -| running_60 | | Number of jobs running between 60 and 300 minutes | -| running_300 | | Number of jobs running between 300 and 1440 minutes | -| running_1440 | | Number of jobs running for more than 1440 minutes | +| Metric Name | Unit | Metric Description | +|------------------------------|------|-----------------------------------------------------| +| queue | | Queue name | +| AllocatedVCores | | Allocated virtual cores (allocated) | +| ReservedVCores | | Reserved cores | +| AvailableVCores | | Available cores (unallocated) | +| PendingVCores | | Blocked scheduling cores | +| AllocatedMB | MB | Allocated (used) memory size | +| AvailableMB | MB | Available memory (unallocated) | +| PendingMB | MB | Blocked scheduling memory | +| ReservedMB | MB | Reserved memory | +| AllocatedContainers | | Number of allocated (used) containers | +| PendingContainers | | Number of blocked scheduling containers | +| ReservedContainers | | Number of reserved containers | +| AggregateContainersAllocated | | Total aggregated containers allocated | +| AggregateContainersReleased | | Total aggregated containers released | +| AppsCompleted | | Number of completed applications | +| AppsKilled | | Number of killed applications | +| AppsFailed | | Number of failed applications | +| AppsPending | | Number of pending applications | +| AppsRunning | | Number of currently running applications | +| AppsSubmitted | | Number of submitted applications | +| running_0 | | Number of jobs running for less than 60 minutes | +| running_60 | | Number of jobs running between 60 and 300 minutes | +| running_300 | | Number of jobs running between 300 and 1440 minutes | +| running_1440 | | Number of jobs running for more than 1440 minutes | #### Metric Set: runtime -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | --------------------------| -| StartTime | | Startup timestamp | \ No newline at end of file +| Metric Name | Unit | Metric Description | +|-------------|------|--------------------| +| StartTime | | Startup timestamp | diff --git a/home/docs/help/zookeeper.md b/home/docs/help/zookeeper.md index b7a34f49eda..00ecb487107 100644 --- a/home/docs/help/zookeeper.md +++ b/home/docs/help/zookeeper.md @@ -10,10 +10,12 @@ keywords: [open source monitoring tool, open source zookeeper monitoring tool, m ### PreRequisites #### Zookeeper four word command ->The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. -Users need to add the four word command of zookeeper to the white list by themselves. + +> The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. +> Users need to add the four word command of zookeeper to the white list by themselves. Steps + > 1.Find our zookeeper configuration file, which is usually zoo.cfg. > > 2.Add the following commands to the configuration file @@ -28,73 +30,93 @@ Steps > 3.Restart service -```shell +```shell zkServer.sh restart ``` #### netcat protocol + The current implementation scheme requires us to deploy the Linux server of zookeeper Command environment for installing netcat > netcat installation steps -```shell -yum install -y nc -``` +> +> ```shell +> yum install -y nc +> ``` If the terminal displays the following information, the installation is successful + ```shell Complete! ``` ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Zookeeper. The default is 2181 | -| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | -| Username | User name of the Linux connection where Zookeeper is located | -| Password | Password of the Linux connection where Zookeeper is located | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Zookeeper. The default is 2181 | +| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | +| Username | User name of the Linux connection where Zookeeper is located | +| Password | Password of the Linux connection where Zookeeper is located | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:conf -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| clientPort | none | Port | -| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | -| dataDirSize | kb | Data snapshot file size | -| dataLogDir | none | Transaction log file directory, production environment on a separate disk | -| dataLogSize | kb | Transaction log file size | -| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | -| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | -| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | -| serverId | none | Server id | - +| Metric name | Metric unit | Metric help description | +|-------------------|-------------|--------------------------------------------------------------------------------------------------------------------| +| clientPort | none | Port | +| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | +| dataDirSize | kb | Data snapshot file size | +| dataLogDir | none | Transaction log file directory, production environment on a separate disk | +| dataLogSize | kb | Transaction log file size | +| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | +| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | +| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | +| serverId | none | Server id | #### Metric set:stats -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| zk_version | none | Server version | -| zk_server_state | none | Server role | -| zk_num_alive_connections | number | Number of connections | -| zk_avg_latency | ms | Average latency | -| zk_outstanding_requests | number | Number of outstanding requests | -| zk_znode_count | number | Number of znode | -| zk_packets_sent | number | Number of packets sent | -| zk_packets_received | number | Number of packets received | -| zk_watch_count | number | Number of watch | -| zk_max_file_descriptor_count | number | Maximum number of file descriptors | -| zk_approximate_data_size | kb | data size | -| zk_open_file_descriptor_count | number | Number of open file descriptors | -| zk_max_latency | ms | Max latency | -| zk_ephemerals_count | number | Number of ephemeral nodes | -| zk_min_latency | ms | Min latency | - - +| Metric name | Metric unit | Metric help description | +|-------------------------------|-------------|------------------------------------| +| zk_version | none | Server version | +| zk_server_state | none | Server role | +| zk_num_alive_connections | number | Number of connections | +| zk_avg_latency | ms | Average latency | +| zk_outstanding_requests | number | Number of outstanding requests | +| zk_znode_count | number | Number of znode | +| zk_packets_sent | number | Number of packets sent | +| zk_packets_received | number | Number of packets received | +| zk_watch_count | number | Number of watch | +| zk_max_file_descriptor_count | number | Maximum number of file descriptors | +| zk_approximate_data_size | kb | data size | +| zk_open_file_descriptor_count | number | Number of open file descriptors | +| zk_max_latency | ms | Max latency | +| zk_ephemerals_count | number | Number of ephemeral nodes | +| zk_min_latency | ms | Min latency | + +#### Metric set:envi + +| Metric Name | Metric Unit | Metric help description | +|-------------------|-------------|-------------------------------| +| zk_version | none | ZooKeeper version | +| hostname | none | Hostname | +| java_version | none | Java version | +| java_vendor | none | Java vendor | +| java_home | none | Java home directory | +| java_class_path | none | Java class path | +| java_library_path | none | Java library path | +| java_io_tmpdir | none | Java temporary directory | +| java_compiler | none | Java compiler | +| os_name | none | Operating system name | +| os_arch | none | Operating system architecture | +| os_version | none | Operating system version | +| user_name | none | Username | +| user_home | none | User home directory | +| user_dir | none | User current directory | diff --git a/home/docs/introduce.md b/home/docs/introduce.md index 98305d95ed5..97bb00d9cd0 100644 --- a/home/docs/introduce.md +++ b/home/docs/introduce.md @@ -5,7 +5,7 @@ sidebar_label: Introduce slug: / --- -> A real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. +> A real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. [![Discord](https://img.shields.io/badge/Chat-Discord-7289DA?logo=discord)](https://discord.gg/Fb6M73htGr) [![Reddit](https://img.shields.io/badge/Reddit-Community-7289DA?logo=reddit)](https://www.reddit.com/r/hertzbeat/) @@ -32,16 +32,15 @@ slug: / * Provides flexible alarm threshold rules and timely notifications delivered via `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. * Provides powerful status page building capabilities, easily communicate the real-time status of your service to users. +> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system. -> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system. - ----- +--- ### Powerful Monitoring Templates > Before we discuss the customizable monitoring capabilities of HertzBeat, which we mentioned at the beginning, let's introduce the different monitoring templates of HertzBeat. And it is because of this monitoring template design that the advanced features come later. -HertzBeat itself did not create a data collection protocol for the monitoring client to adapt to. Instead, HertzBeat makes full use of the existing ecosystem, `SNMP protocol` to collect information from network switches and routers, `JMX specification` to collect information from Java applications, `JDBC specification` to collect information from datasets, `SSH` to directly connect to scripts to get the display information, `HTTP+ (JsonPath | prometheus, etc.) ` to parse the information from API interfaces, `IPMI protocol` to collect server information, and so on. +HertzBeat itself did not create a data collection protocol for the monitoring client to adapt to. Instead, HertzBeat makes full use of the existing ecosystem, `SNMP protocol` to collect information from network switches and routers, `JMX specification` to collect information from Java applications, `JDBC specification` to collect information from datasets, `SSH` to directly connect to scripts to get the display information, `HTTP+ (JsonPath | prometheus, etc.)` to parse the information from API interfaces, `IPMI protocol` to collect server information, and so on. HertzBeat uses these existing standard protocols or specifications, makes them abstractly configurable, and finally makes them all available in the form of YML format monitoring templates that can be written to create templates that use these protocols to collect any desired metrics data. ![hertzbeat](/img/blog/multi-protocol.png) @@ -49,12 +48,11 @@ Do you believe that users can just write a monitoring template on the UI page, c ![hertzbeat](/img/home/9.png) - ### Built-in Monitoring Types **There are a lot of built-in monitoring templates for users to add directly on the page, one monitoring type corresponds to one YML monitoring template**. -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), +* [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), @@ -63,7 +61,7 @@ Do you believe that users can just write a monitoring template on the UI page, c [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), +* [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), @@ -72,13 +70,13 @@ Do you believe that users can just write a monitoring template on the UI page, c [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), +* [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), +* [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), @@ -86,31 +84,31 @@ Do you believe that users can just write a monitoring template on the UI page, c [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), +* [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) +* [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- And More Your Custom Template. -- Notified Support `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. +* And More Your Custom Template. +* Notified Support `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. ### Powerful Customization -> From the previous introduction of **Monitoring Templates**, it is clear that `HertzBeat` has powerful customization features. -> Each monitor type is considered as a monitor template, no matter it is built-in or user-defined. You can easily add, modify and delete indicators by modifying the monitoring template. -> The templates contain a series of functions such as protocol configuration, environment variables, metrics conversion, metrics calculation, units conversion, metrics collection, etc., which help users to collect the metrics they want. +> From the previous introduction of **Monitoring Templates**, it is clear that `HertzBeat` has powerful customization features. +> Each monitor type is considered as a monitor template, no matter it is built-in or user-defined. You can easily add, modify and delete indicators by modifying the monitoring template. +> The templates contain a series of functions such as protocol configuration, environment variables, metrics conversion, metrics calculation, units conversion, metrics collection, etc., which help users to collect the metrics they want. ![hertzbeat](/img/docs/custom-arch.png) ### No Agent Required -> For users who have used various systems, the most troublesome thing is the installation, deployment, debugging and upgrading of various `agents`. -> You need to install one `agent` per host, and several corresponding `agents` to monitor different application middleware, and the number of monitoring can easily reach thousands, so writing a batch script may ease the burden. -> The problem of whether the version of `agent` is compatible with the main application, debugging the communication between `agent` and the main application, upgrading the `agent` synchronization and so on and so forth, are all big headaches. +> For users who have used various systems, the most troublesome thing is the installation, deployment, debugging and upgrading of various `agents`. +> You need to install one `agent` per host, and several corresponding `agents` to monitor different application middleware, and the number of monitoring can easily reach thousands, so writing a batch script may ease the burden. +> The problem of whether the version of `agent` is compatible with the main application, debugging the communication between `agent` and the main application, upgrading the `agent` synchronization and so on and so forth, are all big headaches. -The principle of `HertzBeat` is to use different protocols to connect directly to the end system, and use the `PULL` form to pull the collected data, without the need for the user to deploy and install `Agent` | `Exporter` on the host of the end, etc. For example, monitoring the `linux operating system`. +The principle of `HertzBeat` is to use different protocols to connect directly to the end system, and use the `PULL` form to pull the collected data, without the need for the user to deploy and install `Agent` | `Exporter` on the host of the end, etc. For example, monitoring the `linux operating system`. -- For example, if you want to monitor `linux OS`, you can just input the IP port account password or key on `HertzBeat` side. -- For example, to monitor `linux OS`, just enter your ip/port account password or key in `HertzBeat`. +* For example, if you want to monitor `linux OS`, you can just input the IP port account password or key on `HertzBeat` side. +* For example, to monitor `linux OS`, just enter your ip/port account password or key in `HertzBeat`. **Password and other sensitive information is encrypted on all links**. @@ -118,9 +116,9 @@ The principle of `HertzBeat` is to use different protocols to connect directly t > When the number of monitors rises exponentially, the collection performance drops or the environment is unstable and prone to single point of failure of the collectors, then our collector clusters come into play. -- HertzBeat supports the deployment of collector clusters and the horizontal expansion of multiple collector clusters to exponentially increase the number of monitorable tasks and collection performance. -- Monitoring tasks are self-scheduled in the collector cluster, single collector hangs without sensing the failure to migrate the collection tasks, and the newly added collector nodes are automatically scheduled to share the collection pressure. -- It is very easy to switch between stand-alone mode and cluster mode without additional component deployment. +* HertzBeat supports the deployment of collector clusters and the horizontal expansion of multiple collector clusters to exponentially increase the number of monitorable tasks and collection performance. +* Monitoring tasks are self-scheduled in the collector cluster, single collector hangs without sensing the failure to migrate the collection tasks, and the newly added collector nodes are automatically scheduled to share the collection pressure. +* It is very easy to switch between stand-alone mode and cluster mode without additional component deployment. ![hertzbeat](/img/docs/cluster-arch.png) @@ -128,65 +126,64 @@ The principle of `HertzBeat` is to use different protocols to connect directly t > Two locations, three centers, multi-cloud environments, multi-isolated networks, you may have heard of these scenarios. When there is a need for a unified monitoring system to monitor the IT resources of different isolated networks, this is where our Cloud Edge Collaboration comes in. -In an isolated network where multiple networks are not connected, we need to deploy a monitoring system in each network in the previous solution, which leads to data non-interoperability and inconvenient management, deployment and maintenance. -`HertzBeat` provides the ability of cloud edge collaboration, can be deployed in multiple isolated networks edge collector, collector in the isolated network within the monitoring task collection, collection of data reported by the main service unified scheduling management display. +In an isolated network where multiple networks are not connected, we need to deploy a monitoring system in each network in the previous solution, which leads to data non-interoperability and inconvenient management, deployment and maintenance. +`HertzBeat` provides the ability of cloud edge collaboration, can be deployed in multiple isolated networks edge collector, collector in the isolated network within the monitoring task collection, collection of data reported by the main service unified scheduling management display. ![hertzbeat](/img/docs/cluster-arch.png) ### Easy to Use -- Set **Monitoring+Alarm+Notification** All in one, no need to deploy multiple component services separately. -- Full UI interface operation, no matter adding new monitor, modifying monitor template, or alarm threshold notification, all can be done in WEB interface, no need to modify files or scripts or reboot. -- No Agent is needed, we only need to fill in the required IP, port, account, password and other parameters in the WEB interface. -- Customization friendly, only need a monitoring template YML, automatically generate monitoring management page, data chart page, threshold configuration for corresponding monitoring types. -- Threshold alarm notification friendly, based on the expression threshold configuration, a variety of alarm notification channels, support alarm silence, time label alarm level filtering and so on. +* Set **Monitoring+Alarm+Notification** All in one, no need to deploy multiple component services separately. +* Full UI interface operation, no matter adding new monitor, modifying monitor template, or alarm threshold notification, all can be done in WEB interface, no need to modify files or scripts or reboot. +* No Agent is needed, we only need to fill in the required IP, port, account, password and other parameters in the WEB interface. +* Customization friendly, only need a monitoring template YML, automatically generate monitoring management page, data chart page, threshold configuration for corresponding monitoring types. +* Threshold alarm notification friendly, based on the expression threshold configuration, a variety of alarm notification channels, support alarm silence, time label alarm level filtering and so on. ### Completely Open Source -- An open source collaboration product using the `Apache2` protocol, maintained by a free and open source community. -- No monitoring number `License`, monitoring type and other pseudo-open source restrictions . -- Built on `Java+SpringBoot+TypeScript+Angular` mainstream technology stack , convenient secondary development . -- Open source is not the same as free, dev based on HertzBeat must retain page footnotes, copyright, etc. - +* An open source collaboration product using the `Apache2` protocol, maintained by a free and open source community. +* No monitoring number `License`, monitoring type and other pseudo-open source restrictions . +* Built on `Java+SpringBoot+TypeScript+Angular` mainstream technology stack , convenient secondary development . +* Open source is not the same as free, dev based on HertzBeat must retain copyright, etc. **HertzBeat has been included in the [CNCF Observability And Analysis - Monitoring Landscape](https://landscape.cncf.io/card-mode?category=monitoring&grouping=category)** ![cncf](/img/home/cncf-landscape-left-logo.svg) ------ +--- **HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system.** ------ +--- ## Quickly Start -Just run a single command in a Docker environment: `docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` +Just run a single command in a Docker environment: `docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` Browser access `http://localhost:1157` default account password `admin/hertzbeat` ### Landing Page -- HertzBeat's user management is unified by the configuration file `sureness.yml`, which allows users to add, delete, and modify user information, user role permissions, and so on. Default password admin/hertzbeat +* HertzBeat's user management is unified by the configuration file `sureness.yml`, which allows users to add, delete, and modify user information, user role permissions, and so on. Default password admin/hertzbeat ![hertzbeat](/img/home/0.png) ### Overview Page -- The global overview page shows the distribution of current monitoring categories, users can visualize the current monitoring types and quantities and click to jump to the corresponding monitoring types for maintenance and management. -- Show the status of currently registered collector clusters, including collector on-line status, monitoring tasks, startup time, IP address, name and so on. -- Show the list of recent alarm messages, alarm level distribution and alarm processing rate. +* The global overview page shows the distribution of current monitoring categories, users can visualize the current monitoring types and quantities and click to jump to the corresponding monitoring types for maintenance and management. +* Show the status of currently registered collector clusters, including collector on-line status, monitoring tasks, startup time, IP address, name and so on. +* Show the list of recent alarm messages, alarm level distribution and alarm processing rate. ![hertzbeat](/img/home/1.png) ### Monitoring Center -- The monitoring portal supports the management of monitoring of application services, database, operating system, middleware, network, customization, etc. It displays the currently added monitors in the form of a list. -- It displays the currently added monitors in the form of a list and supports adding, modifying, deleting, canceling, importing, exporting and batch management of monitors. -- Support tag grouping, query filtering, view monitoring details portal. +* The monitoring portal supports the management of monitoring of application services, database, operating system, middleware, network, customization, etc. It displays the currently added monitors in the form of a list. +* It displays the currently added monitors in the form of a list and supports adding, modifying, deleting, canceling, importing, exporting and batch management of monitors. +* Support tag grouping, query filtering, view monitoring details portal. Built-in support for monitoring types include: -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), +* [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), @@ -195,7 +192,7 @@ Built-in support for monitoring types include: [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), +* [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), @@ -204,13 +201,13 @@ Built-in support for monitoring types include: [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), +* [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), +* [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), @@ -218,8 +215,8 @@ Built-in support for monitoring types include: [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), +* [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) +* [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) @@ -227,18 +224,18 @@ Built-in support for monitoring types include: ### Add and Modify Surveillance -- You can add or modify monitoring instances of a specific monitoring type, configure the IP, port and other parameters of the monitoring on the other end, set the collection period, collection task scheduling method, support detecting availability in advance, etc. The monitoring instances on the page are defined by the corresponding monitoring templates. -- The monitoring parameters configured on the page are defined by the monitoring template of the corresponding monitoring type, and users can modify the configuration parameters on the page by modifying the monitoring template. -- Support associated tags to manage monitoring grouping, alarm matching, and so on. +* You can add or modify monitoring instances of a specific monitoring type, configure the IP, port and other parameters of the monitoring on the other end, set the collection period, collection task scheduling method, support detecting availability in advance, etc. The monitoring instances on the page are defined by the corresponding monitoring templates. +* The monitoring parameters configured on the page are defined by the monitoring template of the corresponding monitoring type, and users can modify the configuration parameters on the page by modifying the monitoring template. +* Support associated tags to manage monitoring grouping, alarm matching, and so on. ![hertzbeat](/img/home/10.png) ### Monitor Details -- The monitoring data detail page shows the basic parameter information of the current monitoring, and the monitoring indicator data information. -- Monitor Real-time Data Report displays the real-time values of all the currently monitored indicators in the form of a list of small cards, and users can configure alarm threshold rules based on the real-time values for reference. -- Monitor Historical Data Report displays the historical values of the currently monitored metrics in the form of trend charts, supports querying hourly, daily and monthly historical data, and supports configuring the page refresh time. -- ⚠️ Note that the monitoring history charts need to be configured with an external timing database in order to get the full functionality, timing database support: IOTDB, TDengine, InfluxDB, GreptimeDB +* The monitoring data detail page shows the basic parameter information of the current monitoring, and the monitoring indicator data information. +* Monitor Real-time Data Report displays the real-time values of all the currently monitored indicators in the form of a list of small cards, and users can configure alarm threshold rules based on the real-time values for reference. +* Monitor Historical Data Report displays the historical values of the currently monitored metrics in the form of trend charts, supports querying hourly, daily and monthly historical data, and supports configuring the page refresh time. +* ⚠️ Note that the monitoring history charts need to be configured with an external timing database in order to get the full functionality, timing database support: IOTDB, TDengine, InfluxDB, GreptimeDB ![hertzbeat](/img/home/3.png) @@ -246,17 +243,17 @@ Built-in support for monitoring types include: ### Alarm Center -- The management display page of triggered alarm messages enables users to visualize the current alarm situation. -- Support alarm processing, alarm marking unprocessed, alarm deletion, clearing and other batch operations. +* The management display page of triggered alarm messages enables users to visualize the current alarm situation. +* Support alarm processing, alarm marking unprocessed, alarm deletion, clearing and other batch operations. ![hertzbeat](/img/home/7.png) ### Threshold Rules -- Threshold rules can be configured for monitoring the availability status, and alerts can be issued when the value of a particular metric exceeds the expected range. -- There are three levels of alerts: notification alerts, critical alerts, and emergency alerts. -- Threshold rules support visual page configuration or expression rule configuration for more flexibility. -- It supports configuring the number of triggers, alarm levels, notification templates, associated with a specific monitor and so on. +* Threshold rules can be configured for monitoring the availability status, and alerts can be issued when the value of a particular metric exceeds the expected range. +* There are three levels of alerts: notification alerts, critical alerts, and emergency alerts. +* Threshold rules support visual page configuration or expression rule configuration for more flexibility. +* It supports configuring the number of triggers, alarm levels, notification templates, associated with a specific monitor and so on. ![hertzbeat](/img/home/6.png) @@ -264,19 +261,18 @@ Built-in support for monitoring types include: ### Alarm Convergence -- When the alarm is triggered by the threshold rule, it will enter into the alarm convergence, the alarm convergence will be based on the rules of the specific time period of the duplicate alarm message de-emphasis convergence, to avoid a large number of repetitive alarms lead to the receiver alarm numbness. -- Alarm convergence rules support duplicate alarm effective time period, label matching and alarm level matching filter. +* When the alarm is triggered by the threshold rule, it will enter into the alarm convergence, the alarm convergence will be based on the rules of the specific time period of the duplicate alarm message de-emphasis convergence, to avoid a large number of repetitive alarms lead to the receiver alarm numbness. +* Alarm convergence rules support duplicate alarm effective time period, label matching and alarm level matching filter. ![hertzbeat](/img/home/12.png) ![hertzbeat](/img/home/13.png) - ### Alarm Silence -- When the alarm is triggered by the threshold rule, it will enter into the alarm silence, the alarm silence will be based on the rules of a specific one-time time period or periodic time period of the alarm message blocking silence, this time period does not send alarm messages. -- This application scenario, such as users in the system maintenance, do not need to send known alarms. Users will only receive alarm messages on weekdays, and users need to avoid disturbances at night. -- Alarm silence rules support one-time time period or periodic time period, support label matching and alarm level matching. +* When the alarm is triggered by the threshold rule, it will enter into the alarm silence, the alarm silence will be based on the rules of a specific one-time time period or periodic time period of the alarm message blocking silence, this time period does not send alarm messages. +* This application scenario, such as users in the system maintenance, do not need to send known alarms. Users will only receive alarm messages on weekdays, and users need to avoid disturbances at night. +* Alarm silence rules support one-time time period or periodic time period, support label matching and alarm level matching. ![hertzbeat](/img/home/14.png) @@ -284,11 +280,11 @@ Built-in support for monitoring types include: ### Message Notification -- Message notification is a function to notify alarm messages to specified recipients through different media channels, so that the alarm messages can reach them in time. -- It includes recipient information management and notification policy management. Recipient management maintains the information of recipients and their notification methods, while notification policy management maintains the policy rules of which recipients will be notified of the alert messages. -- Notification methods support `Email` `Discord` `Slack` `Telegram` `Pinning` `WeChat` `Flybook` `SMS` `Webhook` and so on. -- The notification policy supports tag matching and alert level matching, which makes it convenient to assign alerts with different tags and alert levels to different receivers and handlers. -- Support notification templates, users can customize the content format of the templates to meet their own personalized notification display needs. +* Message notification is a function to notify alarm messages to specified recipients through different media channels, so that the alarm messages can reach them in time. +* It includes recipient information management and notification policy management. Recipient management maintains the information of recipients and their notification methods, while notification policy management maintains the policy rules of which recipients will be notified of the alert messages. +* Notification methods support `Email` `Discord` `Slack` `Telegram` `Pinning` `WeChat` `Flybook` `SMS` `Webhook` and so on. +* The notification policy supports tag matching and alert level matching, which makes it convenient to assign alerts with different tags and alert levels to different receivers and handlers. +* Support notification templates, users can customize the content format of the templates to meet their own personalized notification display needs. ![hertzbeat](/img/home/16.png) @@ -298,16 +294,15 @@ Built-in support for monitoring types include: ### Monitoring Templates -- HertzBeat makes `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` and other protocols configurable so that you can customize the metrics you want to collect using these protocols by simply configuring the monitoring template `YML` in your browser. Would you believe that you can instantly adapt a new monitoring type such as `K8s` or `Docker` just by configuring it? -- All our built-in monitoring types (mysql, website, jvm, k8s) are also mapped to corresponding monitoring templates, so you can add and modify monitoring templates to customize your monitoring functions. +* HertzBeat makes `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` and other protocols configurable so that you can customize the metrics you want to collect using these protocols by simply configuring the monitoring template `YML` in your browser. Would you believe that you can instantly adapt a new monitoring type such as `K8s` or `Docker` just by configuring it? +* All our built-in monitoring types (mysql, website, jvm, k8s) are also mapped to corresponding monitoring templates, so you can add and modify monitoring templates to customize your monitoring functions. ![hertzbeat](/img/home/9.png) - ------ +--- **There's so much more to discover. Have Fun!** ------ +--- -**Github: https://github.com/apache/hertzbeat** +**Github: ** diff --git a/home/docs/others/design.md b/home/docs/others/design.md index e7f80d164d7..da5ec8fffee 100644 --- a/home/docs/others/design.md +++ b/home/docs/others/design.md @@ -1,9 +1,9 @@ --- id: design title: 设计文档 -sidebar_label: 设计文档 +sidebar_label: 设计文档 --- -### HertzBeat Arch +### HertzBeat Arch -![architecture](/img/docs/hertzbeat-arch.svg) +![architecture](/img/docs/hertzbeat-arch.svg) diff --git a/home/docs/others/resource.md b/home/docs/others/resource.md index 79c16b4ab56..83188bd1c8e 100644 --- a/home/docs/others/resource.md +++ b/home/docs/others/resource.md @@ -1,19 +1,19 @@ --- id: resource title: Related resources -sidebar_label: Related resources +sidebar_label: Related resources --- -## Icon Resources +## Icon Resources -### HertzBeat Logo +### HertzBeat Logo -![logo](/img/hertzbeat-logo.svg) +![logo](/img/hertzbeat-logo.svg) -Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) +Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) -### HertzBeat Brand Logo +### HertzBeat Brand Logo -![logo](/img/hertzbeat-brand.svg) +![logo](/img/hertzbeat-brand.svg) -Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) +Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) diff --git a/home/docs/start/account-modify.md b/home/docs/start/account-modify.md index 81a1f573573..2e7a4d33377 100644 --- a/home/docs/start/account-modify.md +++ b/home/docs/start/account-modify.md @@ -1,13 +1,13 @@ --- id: account-modify title: Modify Account Username Password And Secret -sidebar_label: Update Account Secret +sidebar_label: Update Account Secret --- ## Update Account -Apache HertzBeat (incubating) default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat -If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. +Apache HertzBeat (incubating) default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat +If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. Modify the following **part parameters** in sureness.yml:**[Note⚠️Other default sureness configuration parameters should be retained]** ```yaml @@ -141,12 +141,11 @@ account: role: [user] ``` -## Update Security Secret +## Update Security Secret -> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. +> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. - -Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. +Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. ```yaml sureness: @@ -157,4 +156,4 @@ sureness: dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' ``` -**Restart HertzBeat, access http://ip:1157/ to explore** +**Restart HertzBeat, access to explore** diff --git a/home/docs/start/custom-config.md b/home/docs/start/custom-config.md index 91282bf5055..b88a2ff4af4 100644 --- a/home/docs/start/custom-config.md +++ b/home/docs/start/custom-config.md @@ -1,7 +1,7 @@ --- id: custom-config title: Advanced Params Config -sidebar_label: Advanced Params Config +sidebar_label: Advanced Params Config --- This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc. @@ -10,49 +10,50 @@ This describes how to configure the SMS server, the number of built-in availabil ### Configure the configuration file of HertzBeat -Modify the configuration file located at `hertzbeat/config/application.yml` -Note ⚠️The docker container method needs to mount the application.yml file to the local host -The installation package can be decompressed and modified in `hertzbeat/config/application.yml` +Modify the configuration file located at `hertzbeat/config/application.yml` +Note ⚠️The docker container method needs to mount the application.yml file to the local host +The installation package can be decompressed and modified in `hertzbeat/config/application.yml` 1. Configure the SMS sending server -> Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. + > Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. -Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: XX Technology - template-id: 1343434 -``` + Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -2. Configure alarm custom parameters + ```yaml + common: + sms: + tencent: + secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY + secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA + app-id: 1435441637 + sign-name: XX Technology + template-id: 1343434 + ``` +2. Configure alarm custom parameters -```yaml -alerter: - # Custom console address - console-url: https://console.tancloud.cn -``` + ```yaml + alerter: + # Custom console address + console-url: https://console.tancloud.io + ``` 3. Use external redis instead of memory to store real-time metric data -> By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. - -Note ⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` + > By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. + + Note ⚠️ `memory.enabled: false, redis.enabled: true` + + ```yaml + warehouse: + store: + memory: + enabled: false + init-size: 1024 + redis: + enabled: true + host: 127.0.0.1 + port: 6379 + password: 123456 + ``` diff --git a/home/docs/start/docker-compose-deploy.md b/home/docs/start/docker-compose-deploy.md new file mode 100644 index 00000000000..fb16819c6ce --- /dev/null +++ b/home/docs/start/docker-compose-deploy.md @@ -0,0 +1,67 @@ +--- +id: docker-compose-deploy +title: Install HertzBeat via Docker Compose +sidebar_label: Install via Docker Compose +--- + +:::tip +Suggest to use Docker Compose to deploy HertzBeat and its dependent services. +::: + +:::note +This document assumes that you already have Docker and Docker Compose installed in your environment. If not, please refer to the [Docker official documentation](https://docs.docker.com/compose/install/). +Run the `docker compose version` command to check if you have a Docker Compose environment. +::: + +1. Download the startup script package + + Download the installation script package `apache-hertzbeat-xxx-incubating-docker-compose.tar.gz` from the [download](https://github.com/apache/hertzbeat/releases/download/v1.6.0/apache-hertzbeat-1.6.0-incubating-docker-compose.tar.gz) + +2. Choose to use the HertzBeat + PostgreSQL + VictoriaMetrics solution + + :::tip + + - `apache-hertzbeat-xxx-incubating-docker-compose.tar.gz` contains multiple deployment solutions after decompression. Here we recommend choosing the `hertzbeat-postgresql-victoria-metrics` solution. + - Other deployment methods, please read the README.md file of each deployment solution in detail. The MySQL solution requires you to prepare the MySQL driver package yourself. + + ::: + + - Unzip the script package + + ```shell + tar zxvf apache-hertzbeat-1.6.0-incubating-docker-compose.tar.gz + ``` + + - Enter the decompression directory and select `HertzBeat + PostgreSQL + VictoriaMetrics` for one-click deployment + + ```shell + cd apache-hertzbeat-1.6.0-incubating-docker-compose + cd hertzbeat-postgresql-victoria-metrics + ``` + + - One-click start + + > Run script in `hertzbeat-postgresql-victoria-metrics` directory + + ```shell + docker-compose up -d + ``` + + - View service status + + > View the running status of each container, up is the normal running status + + ```shell + docker-compose ps + ``` + +3. Start exploring HertzBeat + Access in the browser to start exploring and using it. The default account password is admin/hertzbeat. + +**HAVE FUN** + +---- + +### FAQ + +**The most common problem is network problems, please check in advance** diff --git a/home/docs/start/docker-deploy.md b/home/docs/start/docker-deploy.md index db0da790be4..dbc6cd35f85 100644 --- a/home/docs/start/docker-deploy.md +++ b/home/docs/start/docker-deploy.md @@ -1,135 +1,157 @@ --- id: docker-deploy title: Install HertzBeat via Docker -sidebar_label: Install via Docker +sidebar_label: Install via Docker --- -> Recommend to use docker deploy Apache HertzBeat (incubating) +:::tip +Using Docker to start HertzBeat with the minimum available environment, no external service dependencies, easy to experience quickly. +But it is not recommended to use in production environment, it is recommended to use Docker Compose deployment, installation package deployment, Kubernetes deployment in production environment. +::: +:::note +It is necessary to have Docker environment in your environment. If not installed, please refer to [Docker official document](https://docs.docker.com/get-docker/) +::: -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` +### Deploy HertzBeat Server + +1. Execute the following command -2. pull HertzBeat Docker mirror - you can look up the mirror version TAG in [dockerhub mirror repository](https://hub.docker.com/r/apache/hertzbeat/tags) - or in [quay.io mirror repository](https://quay.io/repository/tancloud/hertzbeat) - ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector - ``` - or ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector + $ docker run -d -p 1157:1157 -p 1158:1158 \ + -v $(pwd)/data:/opt/hertzbeat/data \ + -v $(pwd)/logs:/opt/hertzbeat/logs \ + -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ + -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ + --restart=always \ + --name hertzbeat apache/hertzbeat ``` -3. Mounted HertzBeat configuration file (optional) - Mounted and config `application.yml` in the host directory, eg:`$(pwd)/application.yml` - ```-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml```` - Download from [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - You can modify the configuration yml file according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Recommended** If you need to use the time series database victoria-metrics to store metric data, you need to replace the `warehouse.store.victoria-metrics` parameter in `application.yml` for specific steps, see [Using victoria-metrics to store metrics data](victoria-metrics-init) - -4. Mounted the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need update account or password, configure `sureness.yml`. Ignore this step without this demand. - Download and config `sureness.yml` in the host directory,eg:`$(pwd)/sureness.yml` - Download from [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) - For detail steps, please refer to [Configure Account Password](account-modify) - -5. Start the HertzBeat Docker container - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=en_US.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --name hertzbeat apache/hertzbeat -``` - - This command starts a running HertzBeat Docker container with mapping port 1157-1158. If existing processes on the host use the port, please modify host mapped port. + > Command parameter explanation + - `docker run -d` : Run a container in the background via Docker - `-p 1157:1157 -p 1158:1158` : Mapping container ports to the host, 1157 is web-ui port, 1158 is cluster port. - - `-e LANG=en_US.UTF-8` : Set the system language - - `-e TZ=Asia/Shanghai` : Set the system timezone - - `-v $(pwd)/data:/opt/hertzbeat/data` : (optional, data persistence) Important⚠️ Mount the H2 database file to the local host, to ensure that the data is not lost due creating or deleting container. - - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (optional, if you don't have a need, just delete it) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. - - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (optional, if you don't have a need, just delete it) Mount the local configuration file into the container which has been modified in the previous step, namely using the local configuration file to cover container configuration file. - - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (optional, if you don't have a need, just delete it) Mount account configuration file modified in the previous step into the container. Delete this command parameters if no needs. - - `-v $(pwd)/ext-lib:/opt/hertzbeat/ext-lib` : (optional, if you don't have a need, just delete it)Copy the driver jar to the corresponding directory of the host and mount it to the ext-lib directory according to the database connection such as mysql/oracle that you have downloaded - mysql:https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip - oracle:https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar - - `There is also a way to customize the data source connection driver without mounting`(optional)This approach is to put the data source drivers you need directly inside the container - - `docker cp $(pwd)/mysql-connector-java-8.0.18.jar hertzbeat:/opt/hertzbeat/ext-lib` Use the docker cp command to first download the data source driver cp into the container - - `docker restart hertzbeat` After the restart is successful, it can be used normally - - `docker commit -a "operator" -m "New custom data source drivers in the /ext-lib folder inside the container" hertzbeat hertzbeat:version`(optional, if you don't have a need, just delete it) If you want to create a custom image by yourself, run this command. -a The current operator -m describes the container that you have recreated - - `--name hertzbeat` : Naming container name hertzbeat - - `apache/hertzbeat` : Use the pulled latest HertzBeat official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat` instead if you pull `quay.io` docker image.** - -6. Begin to explore HertzBeat - - Access `http://ip:1157/` using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - -7. Deploy collector cluster (Optional) - -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` - - This command starts a running HertzBeat-Collector container. + - `-v $(pwd)/data:/opt/hertzbeat/data` : (optional, data persistence) Important, Mount the H2 database file to the local host, to ensure that the data is not lost due creating or deleting container. + - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (optional) Mount the log file to the local host to facilitate viewing. + - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (optional) Mount the configuration file to the container (please ensure that the file exists locally). [Download](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (optional) Mount the account configuration file to the container (please ensure that the file exists locally). [Download](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + - `-v $(pwd)/ext-lib:/opt/hertzbeat/ext-lib` : (optional) Mount external third-party JAR package [mysql-jdbc](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip) [oracle-jdbc](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) [oracle-i18n](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar) + - `--name hertzbeat` : (optional) Naming container name hertzbeat + - `--restart=always` : (optional) Configure the container to restart automatically. + - `apache/hertzbeat` : Use the [official application mirror](https://hub.docker.com/r/apache/hertzbeat) to start the container, if the network times out, use `quay.io/tancloud/hertzbeat` instead. + - `--network host` : (optional) Use the host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` + + :::tip + + - Marked as optional parameters, non-mandatory items, if not needed, delete them. + - This maps the 1157,1158 ports of the container to the 1157,1158 ports of the host. If the port on the host is already occupied, you need to modify the host mapping port. + - When mounting files, the first parameter is your custom local file address, and the second parameter is the container file address. Make sure you have this file locally when mounting. + - You can execute `docker update --restart=always hertzbeat` to configure the container to restart automatically. + - If you want to use the host network mode to start Docker, you can use `docker run -d --network host .....` + + ::: + +2. Start to explore HertzBeat + Access using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! + +### Deploy HertzBeat Collector Cluster(Optional) + +:::note +HertzBeat Collector is a lightweight data collector used to collect and send data to HertzBeat Server. +By deploying multiple HertzBeat Collectors, high availability, load balancing, and cloud-edge collaboration of data can be achieved. +::: + +![hertzbeat](/img/docs/cluster-arch.png) + +1. Execute the following command + + ```shell + $ docker run -d \ + -e IDENTITY=custom-collector-name \ + -e MODE=public \ + -e MANAGER_HOST=127.0.0.1 \ + -e MANAGER_PORT=1158 \ + --name hertzbeat-collector apache/hertzbeat-collector + ``` + + > Command parameter explanation + - `docker run -d` : Run a container in the background via Docker - `-e IDENTITY=custom-collector-name` : (optional) Set the collector unique identity name. Attention the clusters collector name must unique. - - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. - - `-e MANAGER_HOST=127.0.0.1` : Important⚠️ Set the main hertzbeat server ip. + - `-e MODE=public` : set the running mode(public or private), public cluster or private + - `-e MANAGER_HOST=127.0.0.1` : Important, Set the main hertzbeat server ip host, must use the server host instead of 127.0.0.1. - `-e MANAGER_PORT=1158` : (optional) Set the main hertzbeat server port, default 1158. - - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (optional) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. + - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (optional) Mount the log file to the local host to facilitate viewing. - `--name hertzbeat-collector` : Naming container name hertzbeat-collector - - `apache/hertzbeat-collector` : Use the pulled latest HertzBeat-Collector official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat-collector` instead if you pull `quay.io` docker image.** + - `apache/hertzbeat-collector` : Use the [official application mirror](https://hub.docker.com/r/apache/hertzbeat-collector) to start the container, if the network times out, use `quay.io/tancloud/hertzbeat-collector` instead. + - `--network host` : (optional) Use the host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` + + :::tip + + - Marked as optional parameters, non-mandatory items, if not needed, delete them. + - The `127.0.0.1` in `MANAGER_HOST` needs to be replaced with the external IP address of the HertzBeat Server. + - When mounting files, the first parameter is your custom local file address, and the second parameter is the container file address. Make sure you have this file locally when mounting. + - You can execute `docker update --restart=always hertzbeat-collector` to configure the container to restart automatically. + - If you want to use the host network mode to start Docker, you can use `docker run -d --network host .....` -8. Access `http://localhost:1157` and you will see the registered new collector in dashboard. + ::: -**HAVE FUN** +2. Access `http://localhost:1157` and you will see the registered new collector in dashboard. -### FAQ +**HAVE FUN** + +---- + +### FAQ **The most common problem is network problems, please check in advance** -1. **MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` +1. MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail + The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. + + > Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. + > Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` + +2. According to the process deploy,visit no interface + Please refer to the following points to troubleshoot issues: -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. + > 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. + > 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. + > 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. -3. **Historical monitoring charts have been missing data for a long time** -> 1:Check whether you configure victoria-metrics or Tdengine or IoTDB. No configuration means no historical chart data. -> 2: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. +3. Historical monitoring charts have been missing data for a long time + + > 1:Check whether you configure victoria-metrics or Tdengine or IoTDB. No configuration means no historical chart data. + > 2: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. 4. If the history chart on the monitoring page is not displayed,popup [please configure time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service database. -> Installation and initialization this database, please refer to [Using victoria-metrics to store metrics data](victoria-metrics-init) + + > As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service database. + > Installation and initialization this database, please refer to [Using victoria-metrics to store metrics data](victoria-metrics-init) 5. The time series database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure dependent time series database] -> Please check if the configuration parameters are correct -> Is time-series database enable set to true -> Note⚠️If both hertzbeat and time-series database are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + + > Please check if the configuration parameters are correct + > Is time-series database enable set to true + > Note⚠️If both hertzbeat and time-series database are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory + +6. What is the purpose of application.yml + + > This file is the configuration file of HertzBeat, used to configure various parameters of HertzBeat, such as database connection information, time series database configuration, etc. + > Download `application.yml` file to the host directory, for example: $(pwd)/application.yml + > Download source [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + > You can modify the configuration yml file according to your needs. + > + > - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` + > - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) + > - **Recommended** If you need to use the time series database victoria-metrics to store metric data, you need to replace the `warehouse.store.victoria-metrics` parameter in `application.yml` for specific steps, see [Using victoria-metrics to store metrics data](victoria-metrics-init) + +7. What is the purpose of sureness.yml + + > This file is the user configuration file of HertzBeat, used to configure user information of HertzBeat, such as account password, etc. + > HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` + > If you need update account or password, configure `sureness.yml`. Ignore this step without this demand. + > Download and config `sureness.yml` in the host directory,eg:`$(pwd)/sureness.yml` + > Download from [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + > For detail steps, please refer to [Configure Account Password](account-modify) diff --git a/home/docs/start/greptime-init.md b/home/docs/start/greptime-init.md index 92dec8f6d3d..a04823dfc2d 100644 --- a/home/docs/start/greptime-init.md +++ b/home/docs/start/greptime-init.md @@ -12,58 +12,60 @@ Apache HertzBeat (incubating)'s historical data storage relies on the time serie It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -### Install GreptimeDB via Docker -> Refer to the official website [installation tutorial](https://docs.greptime.com/getting-started/overview) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` +### Install GreptimeDB via Docker + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install GreptimeDB with Docker -```shell -$ docker run -p 127.0.0.1:4000-4003:4000-4003 \ - -v "$(pwd)/greptimedb:/tmp/greptimedb" \ - --name greptime --rm \ - greptime/greptimedb:latest standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 \ - --mysql-addr 0.0.0.0:4002 \ - --postgres-addr 0.0.0.0:4003 -``` +2. Install GreptimeDB with Docker + + ```shell + $ docker run -p 127.0.0.1:4000-4003:4000-4003 \ + v "$(pwd)/greptimedb:/tmp/greptimedb" \ + --name greptime --rm \ + greptime/greptimedb:latest standalone start \ + --http-addr 0.0.0.0:4000 \ + --rpc-addr 0.0.0.0:4001 \ + --mysql-addr 0.0.0.0:4002 \ + --postgres-addr 0.0.0.0:4003 + ``` - `-v "$(pwd)/greptimedb:/tmp/greptimedb"` is local persistent mount of greptimedb data directory. `$(pwd)/greptimedb` should be replaced with the actual local directory, default is the `greptimedb` directory under the current directory. - use```$ docker ps``` to check if the database started successfully +`-v "$(pwd)/greptimedb:/tmp/greptimedb"` is local persistent mount of greptimedb data directory. `$(pwd)/greptimedb` should be replaced with the actual local directory, default is the `greptimedb` directory under the current directory. +use```$ docker ps``` to check if the database started successfully -### Configure the database connection in hertzbeat `application.yml` configuration file +### Configure the database connection in hertzbeat `application.yml` configuration file -1. Configure HertzBeat's configuration file +1. Configure HertzBeat's configuration file Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Replace `warehouse.store.greptime` data source parameters, URL account and password. -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable greptime - greptime: - enabled: true - grpc-endpoints: localhost:4001 - url: jdbc:mysql://localhost:4002/hertzbeat?connectionTimeZone=Asia/Shanghai&forceConnectionTimeZoneToSession=true - driver-class-name: com.mysql.cj.jdbc.Driver - username: greptime - password: greptime - expire-time: 30d -``` - -The default database is `hertzbeat` in the `url`, and it will be created automatically. The `expire-time` specifies the TTL(time-to-live) of the auto-created database, it's 30 days by default. + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable greptime + greptime: + enabled: true + grpc-endpoints: localhost:4001 + url: jdbc:mysql://localhost:4002/hertzbeat?connectionTimeZone=Asia/Shanghai&forceConnectionTimeZoneToSession=true + driver-class-name: com.mysql.cj.jdbc.Driver + username: greptime + password: greptime + expire-time: 30d + ``` + + The default database is `hertzbeat` in the `url`, and it will be created automatically. The `expire-time` specifies the TTL(time-to-live) of the auto-created database, it's 30 days by default. 2. Restart HertzBeat @@ -71,5 +73,4 @@ The default database is `hertzbeat` in the `url`, and it will be created automat 1. Do both the time series databases Greptime, IoTDB or TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/docs/start/influxdb-init.md b/home/docs/start/influxdb-init.md index 6e5aabcd91d..19a45147cb4 100644 --- a/home/docs/start/influxdb-init.md +++ b/home/docs/start/influxdb-init.md @@ -1,67 +1,69 @@ --- id: influxdb-init title: Use Time Series Database InfluxDB to Store Metrics Data (Optional) -sidebar_label: Metrics Store InfluxDB +sidebar_label: Metrics Store InfluxDB --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. - **Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need InfluxDB 1.x Version. +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +Note⚠️ Need InfluxDB 1.x Version. ### 1. Use HuaweiCloud GaussDB For Influx > Use [HuaweiCloud GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> Get the `GaussDB For Influx` service url, username and password config. +> +> Get the `GaussDB For Influx` service url, username and password config. ⚠️Note `GaussDB For Influx` enable SSL default, the service url should use `https:` -### 2. Install TDengine via Docker -> Refer to the official website [installation tutorial](https://hub.docker.com/_/influxdb) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` +### 2. Install TDengine via Docker + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install InfluxDB with Docker - ``` + +2. Install InfluxDB with Docker + + ```shell $ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 + -v /opt/influxdb:/var/lib/influxdb \ + influxdb:1.8 ``` - `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully + `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. + use```$ docker ps``` to check if the database started successfully -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.influxdb` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable influxdb - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` +### Configure the database connection in hertzbeat `application.yml` configuration file + +1. Configure HertzBeat's configuration file + Modify `hertzbeat/config/application.yml` configuration file + Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Replace `warehouse.store.influxdb` data source parameters, URL account and password. + + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable influxdb + influxdb: + enabled: true + server-url: http://localhost:8086 + username: root + password: root + expire-time: '30d' + replication: 1 + ``` 2. Restart HertzBeat @@ -69,4 +71,4 @@ warehouse: 1. Do both the time series databases InfluxDB, IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/docs/start/iotdb-init.md b/home/docs/start/iotdb-init.md index 33b82a79183..db3a6233f0e 100644 --- a/home/docs/start/iotdb-init.md +++ b/home/docs/start/iotdb-init.md @@ -3,6 +3,7 @@ id: iotdb-init title: Use Time Series Database IoTDB to Store Metrics Data (Optional) sidebar_label: Metrics Store IoTDB --- + Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. @@ -23,21 +24,22 @@ Apache IoTDB is a software system that integrates the collection, storage, manag Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). After the installation you can check if the Docker version normally output at the terminal. - ``` + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Install IoTDB via Docker -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:1.2.2-standalone -``` + ```shell + $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ + -v /opt/iotdb/data:/iotdb/data \ + --name iotdb \ + apache/iotdb:1.2.2-standalone + ``` -`-v /opt/iotdb/data:/iotdb/data` is local persistent mount of IotDB data directory.`/iotdb/data` should be replaced with the actual local directory. -use```$ docker ps``` to check if the database started successfully + `-v /opt/iotdb/data:/iotdb/data` is local persistent mount of IotDB data directory.`/iotdb/data` should be replaced with the actual local directory. + use```$ docker ps``` to check if the database started successfully 3. Configure the database connection in hertzbeat `application.yml`configuration file @@ -45,62 +47,61 @@ use```$ docker ps``` to check if the database started successfully Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.iot-db` data source parameters, HOST account and password. -``` -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable iot-db - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - query-timeout-in-ms: -1 - # default '7776000000'(90days,unit:ms,-1:no-expire) - expire-time: '7776000000' -``` - -**IoTDB Cluster Configuration** - -If you are using IoTDB for clustering, please refer to the configuration below: - -```yaml -warehouse: - store: - # Disable default JPA - jpa: - enabled: false - # Enable IoTDB - iot-db: - enabled: true - node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667'] - username: root - password: root - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # Data storage time: default '7776000000' (90 days, in milliseconds, -1 means never expire) - expire-time: '7776000000' -``` - -Configuration parameters: - - -| Parameter Name | Description | -| ------------------- |-------------------------------------------------------------------------------------------| -| enabled | Whether to enable | -| host | IoTDB database address | -| rpc-port | IoTDB database port | -| node-urls | IoTDB cluster addresses | -| username | IoTDB database account | -| password | IoTDB database password | -| version | deprecated | -| query-timeout-in-ms | Query timeout | -| expire-time | Data storage time, default '7776000000' (90 days, in milliseconds, -1 means never expire) | - -> If both cluster configuration `node-urls` and standalone configuration are set simultaneously, the cluster `node-urls` configuration takes precedence. + ```yml + warehouse: + store: + # disable JPA + jpa: + enabled: false + # enable iot-db + iot-db: + enabled: true + host: 127.0.0.1 + rpc-port: 6667 + username: root + password: root + query-timeout-in-ms: -1 + # default '7776000000'(90days,unit:ms,-1:no-expire) + expire-time: '7776000000' + ``` + + **IoTDB Cluster Configuration** + + If you are using IoTDB for clustering, please refer to the configuration below: + + ```yaml + warehouse: + store: + # Disable default JPA + jpa: + enabled: false + # Enable IoTDB + iot-db: + enabled: true + node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667'] + username: root + password: root + # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 + query-timeout-in-ms: -1 + # Data storage time: default '7776000000' (90 days, in milliseconds, -1 means never expire) + expire-time: '7776000000' + ``` + + Configuration parameters: + + | Parameter Name | Description | + |---------------------|-------------------------------------------------------------------------------------------| + | enabled | Whether to enable | + | host | IoTDB database address | + | rpc-port | IoTDB database port | + | node-urls | IoTDB cluster addresses | + | username | IoTDB database account | + | password | IoTDB database password | + | version | deprecated | + | query-timeout-in-ms | Query timeout | + | expire-time | Data storage time, default '7776000000' (90 days, in milliseconds, -1 means never expire) | + + > If both cluster configuration `node-urls` and standalone configuration are set simultaneously, the cluster `node-urls` configuration takes precedence. 4. Restart HertzBeat @@ -108,15 +109,15 @@ Configuration parameters: 1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. 2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database + > As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database 3. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + > Please check if the configuration parameters are correct + > Is td-engine enable set to true + > Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory diff --git a/home/docs/start/mysql-change.md b/home/docs/start/mysql-change.md index dc48ce9bf60..1d1a6aabda7 100644 --- a/home/docs/start/mysql-change.md +++ b/home/docs/start/mysql-change.md @@ -1,22 +1,27 @@ --- id: mysql-change title: Use MYSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Meta Store MYSQL +sidebar_label: Meta Store MYSQL --- -MYSQL is a reliable relational database. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. -> If you have the MYSQL environment, can be directly to database creation step. +MYSQL is a reliable relational database. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. -### Install MYSQL via Docker -1. Download and install the Docker environment +> If you have the MYSQL environment, can be directly to database creation step. + +### Install MYSQL via Docker + +1. Download and install the Docker environment For Docker installation, please refer to the [Docker official documentation](https://docs.docker.com/get-docker/). After the installation, please verify in the terminal that the Docker version can be printed normally. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install MYSQl with Docker - ``` + +2. Install MYSQl with Docker + + ```shell $ docker run -d --name mysql \ -p 3306:3306 \ -v /opt/data:/var/lib/mysql \ @@ -24,24 +29,25 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data --restart=always \ mysql:5.7 ``` - `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. + + `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. use ```$ docker ps``` to check if the database started successfully -### Database creation -1. Enter MYSQL or use the client to connect MYSQL service - `mysql -uroot -p123456` -2. Create database named hertzbeat +### Database creation + +1. Enter MYSQL or use the client to connect MYSQL service + `mysql -uroot -p123456` +2. Create database named hertzbeat `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` 3. Check if hertzbeat database has been successfully created `show databases;` ### Add MYSQL jdbc driver jar -- Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 +- Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.25.jar. - Copy the jar package to the `hertzbeat/ext-lib` directory. - -### Modify hertzbeat's configuration file application.yml and switch data source +### Modify hertzbeat's configuration file application.yml and switch data source - Configure HertzBeat's configuration file Modify `hertzbeat/config/application.yml` configuration file @@ -49,6 +55,7 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data Replace `spring.database` data source parameters, URL account and password. For example: + ```yaml spring: datasource: @@ -68,7 +75,9 @@ spring: logging: level: SEVERE ``` - Specific replacement parameters are as follows and you need to configure account according to the mysql environment: + +Specific replacement parameters are as follows and you need to configure account according to the mysql environment: + ```yaml spring: datasource: @@ -88,6 +97,6 @@ spring: level: SEVERE ``` -- It is recommended to set the host field in the MySQL URL to the public IP address when using Hertzbeat in docker. +- It is recommended to set the host field in the MySQL URL to the public IP address when using Hertzbeat in docker. -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** +**Start HertzBeat visit on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/docs/start/package-deploy.md b/home/docs/start/package-deploy.md index 050121f5c55..fdd2e7a6a0b 100644 --- a/home/docs/start/package-deploy.md +++ b/home/docs/start/package-deploy.md @@ -4,70 +4,119 @@ title: Install HertzBeat via Package sidebar_label: Install via Package --- -> You can install and run Apache HertzBeat (incubating) on Linux Windows Mac system, and CPU supports X86/ARM64. +:::tip +You can install and run Apache HertzBeat (incubating) on Linux Windows Mac system, and CPU supports X86/ARM64. +Deployment via package relies on Java runtime environment, ensure you have Java17 environment installed, if not please refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) +::: -1. Download HertzBeat installation package - Download installation package `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` corresponding to your system environment +### Deploy HertzBeat Server + +1. Download installation package + + Download installation package `apache-hertzbeat-xxx-incubating-bin.tar.gz` corresponding to your system environment - [Download Page](/docs/download) -2. Configure HertzBeat's configuration file(optional) - Unzip the installation package to the host eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-xx.tar.gz - or - $ unzip -o hertzbeat-xx.zip +2. Configure HertzBeat's configuration file(optional) + + Unzip the installation package to the host eg: /opt/hertzbeat + + ```shell + tar zxvf apache-hertzbeat-xxx-incubating-bin.tar.gz ``` - Modify the configuration file `hertzbeat/config/application.yml` params according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Highly recommended** From now on we will mainly support VictoriaMetrics as a time-series database, if you need to use the time series database VictoriaMetrics to store metric data, you need to replace the `warehouse.store.victoria-metrics` parameter in `application.yml` for specific steps, see [Using VictoriaMetrics to store metrics data](victoria-metrics-init) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -3. Configure the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need add, delete or modify account or password, configure `hertzbeat/config/sureness.yml`. Ignore this step without this demand. - For detail steps, please refer to [Configure Account Password](account-modify) - -4. Start the service - Execute the startup script `startup.sh` in the installation directory `hertzbeat/bin/`, or `startup.bat` in windows. - ``` - $ ./startup.sh + + :::tip + The configuration file is located in `config/application.yml`, you can modify the configuration file according to your needs to configure external dependent services, such as databases, time series databases, etc. + HertzBeat defaults to using internal services when started, but it is recommended to switch to external database services in production environments. + ::: + + It is recommended to use [PostgreSQL](postgresql-change) for metadata storage and [VictoriaMetrics](victoria-metrics-init) for metric data storage. Specific steps are as follows + + - [Switch built-in H2 database to PostgreSQL](postgresql-change) + - [Using VictoriaMetrics to store metric data](victoria-metrics-init) + +3. Configure the account file(optional) + + HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` + If you need modify account or password, configure `config/sureness.yml`. + For detail steps, please refer to [Configure Account Password](account-modify) + +4. Start the service + + Execute the startup script in the installation directory `bin/`, or `startup.bat` in windows. + + ```shell + ./startup.sh ``` -5. Begin to explore HertzBeat +5. Begin to explore HertzBeat + + Access using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - Access http://localhost:1157/ using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! +### Deploy HertzBeat Collector Cluster(Optional) -6. Deploy collector clusters (Optional) +:::note +HertzBeat Collector is a lightweight data collector used to collect and send data to HertzBeat Server. +Deploying multiple HertzBeat Collectors can achieve high availability, load balancing, and cloud-edge collaboration of data. +::: + +![hertzbeat](/img/docs/cluster-arch.png) + +1. Download installation package + + Download installation package `apache-hertzbeat-collector-xxx-incubating-bin.tar.gz` corresponding to your system environment + - [Download Page](/docs/download) - - Download and unzip the collector release package `hertzbeat-collector-xx.tar.gz` to new machine [Download Page](/docs/download) - - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` - - Access `http://localhost:1157` and you will see the registered new collector in dashboard +2. Configure the collector configuration file + + Unzip the installation package to the host eg: /opt/hertzbeat-collector + + ```shell + tar zxvf apache-hertzbeat-collector-xxx-incubating-bin.tar.gz + ``` + + Configure the collector configuration yml file `config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` + + ```yaml + collector: + dispatch: + entrance: + netty: + enabled: true + identity: ${IDENTITY:} + mode: ${MODE:public} + manager-host: ${MANAGER_HOST:127.0.0.1} + manager-port: ${MANAGER_PORT:1158} + ``` + + > Parameters detailed explanation + + - `identity` : (optional) Set the unique identifier name of the collector. Note that the name of the collector must be unique when there are multiple collectors. + - `mode` : Configure the running mode (public or private), public cluster mode or private cloud-edge mode. + - `manager-host` : Important, configure the address of the connected HertzBeat Server, + - `manager-port` : (optional) Configure the port of the connected HertzBeat Server, default 1158. + +3. Start the service + + Run command `$ ./bin/startup.sh` or `bin/startup.bat` + +4. Begin to explore HertzBeat Collector + + Access `http://ip:1157` and you will see the registered new collector in dashboard **HAVE FUN** -### FAQ +---- + +### FAQ -1. **If using the package not contains JDK, you need to prepare the JAVA environment in advance** +1. you need to prepare the JAVA environment in advance - Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) - requirement:JDK17 ENV - download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) + Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) + requirement:JDK17 ENV + download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) After installation use command line to check whether you install it successfully. - ``` + + ```shell $ java -version java version "17.0.9" Java(TM) SE Runtime Environment 17.0.9 (build 17.0.9+8-LTS-237) @@ -75,18 +124,9 @@ sidebar_label: Install via Package ``` -2. **According to the process deploy,visit http://ip:1157/ no interface** +2. According to the process deploy,visit no interface Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -4. **Monitoring historical charts with no data for a long time ** -> 1: Whether the time series database is configured or not, if it is not configured, there is no historical chart data. -> 2: If you are using Tdengine, check whether the database `hertzbeat` of Tdengine is created. -> 3: HertzBeat's configuration file `application.yml`, the dependent services in it, the time series, the IP account password, etc. are configured correctly. + > 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. + > 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. + > 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. diff --git a/home/docs/start/postgresql-change.md b/home/docs/start/postgresql-change.md index 60956f42f77..84ccb9b20e7 100644 --- a/home/docs/start/postgresql-change.md +++ b/home/docs/start/postgresql-change.md @@ -3,35 +3,50 @@ id: postgresql-change title: Use PostgreSQL Replace H2 Database to Store Metadata(Recommended) sidebar_label: Meta Store PostgreSQL (Recommended) --- + PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use PostgreSQL to store structured relational data such as monitoring information, alarm information and configuration information. > If you have the PostgreSQL environment, can be directly to database creation step. ### Install PostgreSQL via Docker -1. Download and install the Docker environment + +1. Download and install the Docker environment Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 After the installation you can check if the Docker version normally output at the terminal. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Install PostgreSQL with Docker + + ```shell + docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` + use```$ docker ps```to check if the database started successfully -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). ### Database creation -1. Enter postgreSQL or use the client to connect postgreSQL service - ``` + +1. Enter postgreSQL or use the client to connect postgreSQL service + + ```shell su - postgres psql ``` -2. Create database named hertzbeat - `CREATE DATABASE hertzbeat;` -3. Check if hertzbeat database has been successfully created - `\l` + +2. Create database named hertzbeat + + ```sql + CREATE DATABASE hertzbeat; + ``` + +3. Check if hertzbeat database has been successfully created + + ```sql + SELECT * FROM pg_database where datname='hertzbeat'; + ``` ### Modify hertzbeat's configuration file application.yml and switch data source @@ -39,6 +54,7 @@ PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition Modify `hertzbeat/config/application.yml` configuration file Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Replace `spring.database` data source parameters, URL account and password. + ```yaml spring: datasource: @@ -58,7 +74,9 @@ spring: logging: level: SEVERE ``` + Specific replacement parameters are as follows and you need to configure account, ip, port according to the postgresql environment: + ```yaml spring: datasource: @@ -78,4 +96,4 @@ spring: level: SEVERE ``` -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** +**Start HertzBeat visit on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/docs/start/quickstart.md b/home/docs/start/quickstart.md index 56ecac4df45..be0336f1a19 100644 --- a/home/docs/start/quickstart.md +++ b/home/docs/start/quickstart.md @@ -1,14 +1,14 @@ --- id: quickstart title: Quick Start -sidebar_label: Quick Start +sidebar_label: Quick Start --- ### 🐕 Quick Start - If you wish to deploy Apache HertzBeat (incubating) locally, please refer to the following Deployment Documentation for instructions. -### 🍞 Install HertzBeat +#### 🍞 Install HertzBeat > Apache HertzBeat (incubating) supports installation through source code, docker or package, cpu support X86/ARM64. @@ -16,23 +16,20 @@ sidebar_label: Quick Start 1. Just one command to get started: -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` - -```or use quay.io (if dockerhub network connect timeout)``` - -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` 2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 3. Deploy collector clusters(Optional) -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : set the collector unique identity name. -- `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. -- `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. -- `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : set the collector unique identity name. + - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. + - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. + - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache.org/docs/start/docker-deploy) @@ -40,11 +37,12 @@ Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache 1. Download the release package `hertzbeat-xx.tar.gz` [Download Page](https://hertzbeat.apache.org/docs/download) 2. Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` (optional) -3. Run command `$ ./bin/startup.sh ` or `bin/startup.bat` +3. Run command `$ ./bin/startup.sh` or `bin/startup.bat` 4. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 5. Deploy collector clusters(Optional) - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [Download Page](https://hertzbeat.apache.org/docs/download) - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` + ```yaml collector: dispatch: @@ -56,7 +54,8 @@ Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` + + - Run command `$ ./bin/startup.sh` or `bin/startup.bat` - Access `http://localhost:1157` and you will see the registered new collector in dashboard Detailed config refer to [Install HertzBeat via Package](package-deploy) @@ -68,9 +67,9 @@ Detailed config refer to [Install HertzBeat via Package](package-deploy) 3. Web:need `nodejs npm angular-cli` environment, Run `ng serve --open` in `web-app` directory after backend startup. 4. Access `http://localhost:4200` to start, default account: `admin/hertzbeat` -Detailed steps refer to [CONTRIBUTING](../community/contribution) +Detailed steps refer to [CONTRIBUTING](../community/contribution) -##### 4:Install All(hertzbeat+postgresql+tsdb) via Docker-compose +##### 4:Install All(hertzbeat+postgresql+tsdb) via Docker-compose Install and deploy the postgresql/mysql database, victoria-metrics/iotdb/tdengine database and hertzbeat at one time through [docker-compose deployment script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose). @@ -82,4 +81,4 @@ Install HertzBeat cluster in a Kubernetes cluster by Helm chart. Detailed steps refer to [Artifact Hub](https://artifacthub.io/packages/helm/hertzbeat/hertzbeat) -**HAVE FUN** +**HAVE FUN** diff --git a/home/docs/start/rainbond-deploy.md b/home/docs/start/rainbond-deploy.md index 57f537aa4ac..ef2c581d57d 100644 --- a/home/docs/start/rainbond-deploy.md +++ b/home/docs/start/rainbond-deploy.md @@ -1,7 +1,7 @@ --- id: rainbond-deploy title: Use Rainbond Deploy HertzBeat -sidebar_label: Install via Rainbond +sidebar_label: Install via Rainbond --- If you are unfamiliar with Kubernetes, and want to install Apache HertzBeat (incubating) in Kubernetes, you can use Rainbond to deploy. Rainbond is a cloud-native application management platform built on Kubernetes and simplifies the application deployment to Kubernetes. diff --git a/home/docs/start/sslcert-practice.md b/home/docs/start/sslcert-practice.md index d8c06a8beba..d02a4da679c 100644 --- a/home/docs/start/sslcert-practice.md +++ b/home/docs/start/sslcert-practice.md @@ -1,7 +1,7 @@ --- id: ssl-cert-practice title: SSL Certificate Monitor Practice -sidebar_label: Practice Example +sidebar_label: SSL Certificate Monitor Practice --- Most websites now support HTTPS by default. The certificate we apply for is usually 3 months or 1 year. It is easy to expire the SSL certificate over time, but we did not find it the first time, or did not update the certificate in time before it expired. @@ -12,14 +12,13 @@ This article introduces how to use the hertzbeat monitoring tool to detect the v Apache HertzBeat (incubating) is a real-time monitoring tool with powerful custom monitoring capabilities without Agent. Website monitoring, PING connectivity, port availability, database, operating system, middleware, API monitoring, threshold alarms, alarm notification (email, WeChat, Ding Ding Feishu). - -github: https://github.com/apache/hertzbeat +github: #### Install HertzBeat 1. The `docker` environment can be installed with just one command -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` + `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` 2. After the installation is successful, the browser can access `localhost:1157` to start, the default account password is `admin/hertzbeat` @@ -27,81 +26,69 @@ github: https://github.com/apache/hertzbeat 1. Click Add SSL Certificate Monitor -> System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate - + > System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate -![](/img/docs/start/ssl_1.png) + ![](/img/docs/start/ssl_1.png) 2. Configure the monitoring website -> Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. -> Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. + > Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. + > Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. -![](/img/docs/start/ssl_2.png) + ![](/img/docs/start/ssl_2.png) 3. View the detection index data -> In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. - - -![](/img/docs/start/ssl_3.png) + > In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. + ![](/img/docs/start/ssl_3.png) -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 4. Set the threshold (triggered when the certificate expires) -> System Page -> Alarms -> Alarm Thresholds -> New Thresholds - - -![](/img/docs/start/ssl_4.png) - -> Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. + > System Page -> Alarms -> Alarm Thresholds -> New Thresholds + ![](/img/docs/start/ssl_4.png) -![](/img/docs/start/ssl_5.png) + > Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. -> Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. + ![](/img/docs/start/ssl_5.png) + > Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. -![](/img/docs/start/ssl_6.png) - + ![](/img/docs/start/ssl_6.png) 5. Set the threshold (triggered one week before the certificate expires) -> In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. - - -![](/img/docs/start/ssl_7.png) + > In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. -> Finally, you can see the triggered alarm in the alarm center. + ![](/img/docs/start/ssl_7.png) + > Finally, you can see the triggered alarm in the alarm center. -![](/img/docs/start/ssl_8.png) - + ![](/img/docs/start/ssl_8.png) 6. Alarm notification (in time notification via Dingding WeChat Feishu, etc.) -> Monitoring Tool -> Alarm Notification -> New Receiver - - -![](/img/docs/start/ssl_10.png) + > Monitoring Tool -> Alarm Notification -> New Receiver -For token configuration such as Dingding WeChat Feishu, please refer to the help document + ![](/img/docs/start/ssl_10.png) -https://hertzbeat.apache.org/docs/help/alert_dingtalk + For token configuration such as Dingding WeChat Feishu, please refer to the help document -> Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured + + > Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 7. OK When the threshold is triggered, we can receive the corresponding alarm message. If there is no notification, you can also view the alarm information in the alarm center. ---- -#### Finish! +#### Finish The practice of monitoring SSL certificates is here. Of course, for hertzbeat, this function is just the tip of the iceberg. If you think hertzbeat is a good open source project, please give us a Gitee star on GitHub, thank you very much. Thank you for your support. Refill! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/docs/start/tdengine-init.md b/home/docs/start/tdengine-init.md index a56bc2cc71b..25a1b7793eb 100644 --- a/home/docs/start/tdengine-init.md +++ b/home/docs/start/tdengine-init.md @@ -1,116 +1,125 @@ --- id: tdengine-init title: Use Time Series Database TDengine to Store Metrics Data (Optional) -sidebar_label: Metrics Store TDengine +sidebar_label: Metrics Store TDengine --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. -TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. +TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need TDengine 3.x Version. +**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +Note⚠️ Need TDengine 3.x Version. -> If you have TDengine environment, can directly skip to create a database instance. +> If you have TDengine environment, can directly skip to create a database instance. +### Install TDengine via Docker -### Install TDengine via Docker -> Refer to the official website [installation tutorial](https://docs.taosdata.com/get-started/docker/) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install TDengine with Docker + +2. Install TDengine with Docker + ```shell $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 + -v /opt/taosdata:/var/lib/taos \ + --name tdengine -e TZ=Asia/Shanghai \ + tdengine/tdengine:3.0.4.0 ``` - `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. - `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. + + `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. + `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. use```$ docker ps``` to check if the database started successfully -### Create database instance +### Create database instance -1. Enter database Docker container - ``` - $ docker exec -it tdengine /bin/bash - ``` -2. Create database named hertzbeat - After entering the container,execute `taos` command as follows: - +1. Enter database Docker container + + ```shell + docker exec -it tdengine /bin/bash ``` + +2. Create database named hertzbeat + After entering the container,execute `taos` command as follows: + + ```shell root@tdengine-server:~/TDengine-server# taos Welcome to the TDengine shell from Linux, Client Version Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. taos> ``` - - execute commands to create database - - ``` + + execute commands to create database + + ```shell taos> show databases; taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; ``` - - The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). + + The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). A data file every 10 days, memory blocks buffer is 16MB. -3. Check if hertzbeat database has been created success - - ``` +3. Check if hertzbeat database has been created success + + ```shell taos> show databases; taos> use hertzbeat; ``` -**Note⚠️If you install TDengine using package** +**Note⚠️If you install TDengine using package** > In addition to start the server,you must execute `systemctl start taosadapter` to start adapter -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.td-engine` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable td-engine - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` +### Configure the database connection in hertzbeat `application.yml` configuration file + +1. Configure HertzBeat's configuration file + Modify `hertzbeat/config/application.yml` configuration file + Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Replace `warehouse.store.td-engine` data source parameters, URL account and password. + + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable td-engine + td-engine: + enabled: true + driver-class-name: com.taosdata.jdbc.rs.RestfulDriver + url: jdbc:TAOS-RS://localhost:6041/hertzbeat + username: root + password: taosdata + ``` 2. Restart HertzBeat ### FAQ 1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. 2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database -3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. + > As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database + +3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed + + > Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. 4. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + + > Please check if the configuration parameters are correct + > Is td-engine enable set to true + > Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory diff --git a/home/docs/start/update-1.6.0.md b/home/docs/start/update-1.6.0.md new file mode 100644 index 00000000000..512a43d2d40 --- /dev/null +++ b/home/docs/start/update-1.6.0.md @@ -0,0 +1,157 @@ +--- +id: 1.6.0-update +title: How to update to 1.6.0 +sidebar_label: Update to 1.6.0 guide +--- + +## HertzBeat 1.6.0 Upgrade Guide + +**Note: This guide is applicable for upgrading from 1.5.0 to 1.6.0 to version 1.6.0.** +**If you are using an older version, it is recommended to reinstall using the export function, or upgrade to 1.5.0 and then follow this guide to 1.6.0.** + +## Binary Installation Package Upgrade + +### Upgrade Java Environment + +Since version 1.6.0 uses Java 17 and the installation package no longer provides a built-in JDK version, use the new Hertzbeat according to the following situations: + +- When the default environment variable on your server is Java 17, you do not need to take any action for this step. +- When the default environment variable on your server is not Java 17, such as Java 8 or Java 11, and if there are no other applications on your server that require a lower version of Java, download the appropriate version from [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) according to your system, and search the engine for how to set a new environment variable pointing to the new Java 17. +- When the default environment variable on your server is not Java 17, such as Java 8 or Java 11, and if there are other applications on your server that require a lower version of Java, download the appropriate version from [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) according to your system, and rename the extracted folder to `java`, then copy it to the Hertzbeat extraction directory. + +### Upgrade Database + +Go to [https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), choose the directory of your database and execute the corresponding `V160__update_column.sql` file for the upgrade SQL. + +### Upgrade Configuration Files + +Due to significant changes in `application.yml` and `sureness.yml`, it is recommended to directly use the new `yml` configuration files and then modify them based on your own needs. + +#### `application.yml` generally needs to modify the following parts + +Default is: + +```yaml + datasource: + driver-class-name: org.h2.Driver + username: sa + password: 123456 + url: jdbc:h2:./data/hertzbeat;MODE=MYSQL + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: h2 + properties: + eclipselink: + logging: + level: SEVERE +``` + +If you change to a MySQL database, here is an example: + +```yaml + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: mysql + properties: + eclipselink: + logging: + level: SEVERE +``` + +#### `sureness.yml` modification is optional, usually when you need to change account passwords + +```yaml +# account info config +# eg: admin has role [admin,user], password is hertzbeat +# eg: tom has role [user], password is hertzbeat +# eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 +account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] +``` + +### Add the corresponding database drivers + +Due to the Apache Foundation's requirements for license compliance, HertzBeat's installation package cannot include dependencies with GPL licenses such as MySQL, Oracle, etc. Users need to add them themselves. Users can download the drivers from the following links and copy them to the `ext-lib` directory of the installation: + +- MySQL: [https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip) +- Oracle (If you want to monitor Oracle, these two drivers are required): + - [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + - [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar) + +Next, run the start-up script as before to experience the latest HertzBeat 1.6.0! + +## Docker Upgrade - Mysql Database + +- Stop the HertzBeat container: + + ```shell + docker stop hertzbeat + ``` + +- Upgrade the database script: + - Go to [https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), choose the directory of your database and execute the corresponding `V160__update_column.sql` file in MySQL. +- Upgrade the configuration files: + - As mentioned, due to significant changes in `application.yml` and `sureness.yml`, it is recommended to directly mount and use the new `yml` configuration files, and then modify them based on your own needs. +- Add the corresponding database drivers: + - Due to the Apache Foundation's license compliance requirements, HertzBeat's installation package cannot include MySQL, Oracle, and other GPL-licensed dependencies. Users need to add them themselves by downloading the driver jars from the above links and placing them in the local `ext-lib` directory, then mounting `ext-lib` to the container's `/opt/hertzbeat/ext-lib` directory when starting. + +Next, run HertzBeat using Docker as before to experience the latest HertzBeat 1.6.0! + +## Docker Installation Upgrade - H2 Built-in Database (Not recommended for production use) + +- Stop the HertzBeat container: + + ```shell + docker stop hertzbeat + ``` + +- Edit the H2 database files: + - Assuming you have mounted the H2 database files in the `data` directory to the local system, or copied the `/opt/hertzbeat/data` directory from the old container manually. + - Download the H2 driver jar from [https://mvnrepository.com/artifact/com.h2database/h2/2.2.220](https://mvnrepository.com/artifact/com.h2database/h2/2.2.220). + - Start the database locally using the H2 driver jar: + + ```shell + java -jar h2-2.2.220.jar -url jdbc:h2:file:./hertzbeat -user sa -password 123456 + ``` + +- Upgrade the configuration files: + - As mentioned, due to significant changes in `application.yml` and `sureness.yml`, it is recommended to directly mount and use the new `yml` configuration files, and then modify them based on your own needs. +- Add the corresponding database drivers: + - As mentioned, due to the Apache Foundation's license compliance requirements, HertzBeat's installation package cannot include MySQL, Oracle, and other GPL-licensed dependencies. Users need to add them themselves by downloading the driver jars from the above links and placing them in the local `ext-lib` directory, then mounting `ext-lib` to the container's `/opt/hertzbeat/ext-lib` directory when starting. + +Next, run the Docker to start HertzBeat as before to experience the latest HertzBeat 1.6.0! + +## Upgrade via Export and Import + +If you do not want to go through the tedious script upgrade method mentioned above, you can directly export and import the monitoring tasks and threshold information from the old environment. + +- Deploy a new environment with the latest version. +- Export the monitoring tasks and threshold information from the old environment on the page diff --git a/home/docs/start/upgrade.md b/home/docs/start/upgrade.md index 8ad14d3b673..63f048ca1b7 100644 --- a/home/docs/start/upgrade.md +++ b/home/docs/start/upgrade.md @@ -1,7 +1,7 @@ --- id: upgrade title: HertzBeat New Version Upgrade -sidebar_label: Version Upgrade Guide +sidebar_label: Version Upgrade Guide --- **HertzBeat Release Version List** @@ -14,7 +14,6 @@ Apache HertzBeat (incubating)'s metadata information is stored in H2 or Mysql, P **You need to save and back up the data files of the database and monitoring templates yml files before upgrading** - ### Upgrade For Docker Deploy 1. If using custom monitoring templates @@ -22,30 +21,26 @@ Apache HertzBeat (incubating)'s metadata information is stored in H2 or Mysql, P - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - And mount the template define directory when docker start `-v $(pwd)/define:/opt/hertzbeat/define` - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. If using the built-in default H2 database +2. If using the built-in default H2 database - Need to mount or back up `-v $(pwd)/data:/opt/hertzbeat/data` database file directory in the container `/opt/hertzbeat/data` - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - - Refer to [Docker installation of HertzBeat](docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data` - -3. If using external relational database Mysql, PostgreSQL + - Refer to [Docker installation of HertzBeat](./docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data` +3. If using external relational database Mysql, PostgreSQL - No need to mount the database file directory in the backup container - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - - Refer to [Docker installation HertzBeat](docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml` - + - Refer to [Docker installation HertzBeat](./docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml` ### Upgrade For Package Deploy -1. If using the built-in default H2 database +1. If using the built-in default H2 database - Back up the database file directory under the installation package `/opt/hertzbeat/data` - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - - Refer to [Installation package to install HertzBeat](package-deploy) to start using the new installation package - -2. If using external relational database Mysql, PostgreSQL + - Refer to [Installation package to install HertzBeat](./package-deploy) to start using the new installation package +2. If using external relational database Mysql, PostgreSQL - No need to back up the database file directory under the installation package - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - - Refer to [Installation package to install HertzBeat](package-deploy) to start with the new installation package and configure the database connection in `application.yml` + - Refer to [Installation package to install HertzBeat](./package-deploy) to start with the new installation package and configure the database connection in `application.yml` -**HAVE FUN** +**HAVE FUN** diff --git a/home/docs/start/victoria-metrics-init.md b/home/docs/start/victoria-metrics-init.md index 455e91e86cf..45490fa80d6 100644 --- a/home/docs/start/victoria-metrics-init.md +++ b/home/docs/start/victoria-metrics-init.md @@ -1,7 +1,7 @@ --- id: victoria-metrics-init title: Use Time Series Database VictoriaMetrics to Store Metrics Data (Recommended) -sidebar_label: Metrics Store VictoriaMetrics (Recommended) +sidebar_label: Metrics Store VictoriaMetrics (Recommended) --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) @@ -10,56 +10,58 @@ Apache HertzBeat (incubating)'s historical data storage relies on the time serie VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.Recommend Version(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** +**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** **⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** > If you already have an VictoriaMetrics environment, you can skip directly to the YML configuration step. -### Install VictoriaMetrics via Docker -> Refer to the official website [installation tutorial](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` +### Install VictoriaMetrics via Docker + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` - -2. Install VictoriaMetrics via Docker -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` +2. Install VictoriaMetrics via Docker + + ```shell + $ docker run -d -p 8428:8428 \ + -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ + --name victoria-metrics \ + victoriametrics/victoria-metrics:v1.95.1 + ``` `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` is local persistent mount of VictoriaMetrics data directory use```$ docker ps``` to check if the database started successfully 3. Configure the database connection in hertzbeat `application.yml`configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Modify `hertzbeat/config/application.yml` configuration file + Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.victoria-metrics` data source parameters, HOST account and password. -```yaml -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` + ```yaml + warehouse: + store: + # disable JPA + jpa: + enabled: false + # enable victoria-metrics + victoria-metrics: + enabled: true + url: http://localhost:8428 + username: root + password: root + ``` 4. Restart HertzBeat ### FAQ -1. Do both the time series databases need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which can affects the historical chart data. +1. Do both the time series databases need to be configured? Can they both be used? + + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which can affects the historical chart data. diff --git a/home/docs/template.md b/home/docs/template.md index 4bdf785e588..2359a43e51f 100644 --- a/home/docs/template.md +++ b/home/docs/template.md @@ -4,27 +4,27 @@ title: Monitoring Template Here sidebar_label: Monitoring Template --- -> Apache HertzBeat (incubating) is an open source, real-time monitoring tool with custom-monitor and agentLess. - -> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. +> Apache HertzBeat (incubating) is an open source, real-time monitoring tool with custom-monitor and agentLess. +> +> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. > Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online? -Here is the architecture. +Here is the architecture. ![hertzBeat](/img/docs/hertzbeat-arch.png) -**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates, and users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** +**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates, and users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** ![](/img/docs/advanced/extend-point-1.png) **Welcome everyone to contribute your customized general monitoring type YML template during use. The available templates are as follows:** -### Application service monitoring +### Application service monitoring  👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
+ 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
+ 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
+ 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
@@ -32,7 +32,7 @@ Here is the architecture.  👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
-### Database monitoring +### Database monitoring  👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
@@ -49,7 +49,7 @@ Here is the architecture.  👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
-### Operating system monitoring +### Operating system monitoring  👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
@@ -64,7 +64,6 @@ Here is the architecture.  👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- ### Middleware monitoring  👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
@@ -78,13 +77,12 @@ Here is the architecture.  👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- ### CloudNative monitoring  👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
-### Network monitoring +### Network monitoring  👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
diff --git a/home/i18n/en/code.json b/home/i18n/en/code.json index 4acd764d488..a54ff8b82ab 100644 --- a/home/i18n/en/code.json +++ b/home/i18n/en/code.json @@ -263,7 +263,7 @@ "message": "Makes protocols such as Http, Jmx, Ssh, Snmp, Jdbc configurable, you can collect any metrics by simply configuring the yml online. {br} High performance, supports horizontal expansion of multi-collector clusters, multi-isolated network monitoring and cloud-edge collaboration. {br} Flexible threshold rules and timely notifications delivered via discord slack email webhook more." }, "opensource-content": { - "message": "Apache HertzBeat (incubating)'s stand-alone and cluster version code are all open source, unlimited and anyone who are interested in it are very welcome to contribute. No matter how small the contribution is, whether it is a document code or a typo, we respect everyone and learn and grow together. {br} Look forward our code to be deployed on thousands of machines worldwide.{github}" + "message": "Apache HertzBeat (incubating) is open source, has an inclusive and open community. Unlimited and anyone who are interested in it are very welcome to contribute. No matter how small the contribution is, whether it is a code document or a typo, respect everyone and grow together. {br} Our code is being deployed on thousands of machines worldwide.{github}" }, "slogan": { "message": "Open Source Real-time Monitoring System" diff --git a/home/i18n/en/docusaurus-plugin-content-docs/current.json b/home/i18n/en/docusaurus-plugin-content-docs/current.json index 5d132403609..c7a71e793c5 100644 --- a/home/i18n/en/docusaurus-plugin-content-docs/current.json +++ b/home/i18n/en/docusaurus-plugin-content-docs/current.json @@ -4,7 +4,7 @@ "description": "The label for version current" }, "sidebar.docs.category.quickstart": { - "message": "Guides", + "message": "QuickStart", "description": "The label for category quickstart in sidebar docs" }, "sidebar.docs.category.custom": { @@ -23,7 +23,6 @@ "message": "SSH Protocol", "description": "The label for category ssh in sidebar docs" }, - "sidebar.docs.category.telnet": { "message": "TELNET Protocol", "description": "The label for category telnet in sidebar docs" @@ -127,5 +126,25 @@ "sidebar.docs.category.aiConfig": { "message": "Ai LLM Config", "description": "The label for category aiConfig in sidebar docs" + }, + "sidebar.docs.category.install": { + "message": "Install", + "description": "The label for category install in sidebar docs" + }, + "sidebar.docs.category.upgrade": { + "message": "Upgrade", + "description": "The label for category upgrade in sidebar docs" + }, + "sidebar.docs.category.setting": { + "message": "Setting", + "description": "The label for category setting in sidebar docs" + }, + "sidebar.docs.category.change-db": { + "message": "Change DB", + "description": "The label for category change-db in sidebar docs" + }, + "sidebar.docs.category.use-case": { + "message": "UseCase", + "description": "The label for category use-case in sidebar docs" } } diff --git a/home/i18n/en/docusaurus-plugin-content-docs/version-v1.3.x.json b/home/i18n/en/docusaurus-plugin-content-docs/version-v1.3.x.json deleted file mode 100644 index bb29e9aeb30..00000000000 --- a/home/i18n/en/docusaurus-plugin-content-docs/version-v1.3.x.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "version.label": { - "message": "v1.3.x", - "description": "The label for version v1.3.x" - }, - "sidebar.docs.category.quickstart": { - "message": "quickstart", - "description": "The label for category quickstart in sidebar docs" - }, - "sidebar.docs.category.custom": { - "message": "custom", - "description": "The label for category custom in sidebar docs" - }, - "sidebar.docs.category.http": { - "message": "http", - "description": "The label for category http in sidebar docs" - }, - "sidebar.docs.category.jdbc": { - "message": "jdbc", - "description": "The label for category jdbc in sidebar docs" - }, - "sidebar.docs.category.ssh": { - "message": "ssh", - "description": "The label for category ssh in sidebar docs" - }, - "sidebar.docs.category.jmx": { - "message": "jmx", - "description": "The label for category jmx in sidebar docs" - }, - "sidebar.docs.category.snmp": { - "message": "snmp", - "description": "The label for category snmp in sidebar docs" - }, - "sidebar.docs.category.help": { - "message": "help", - "description": "The label for category help in sidebar docs" - }, - "sidebar.docs.category.service": { - "message": "service", - "description": "The label for category service in sidebar docs" - }, - "sidebar.docs.category.database": { - "message": "database", - "description": "The label for category database in sidebar docs" - }, - "sidebar.docs.category.os": { - "message": "os", - "description": "The label for category os in sidebar docs" - }, - "sidebar.docs.category.mid": { - "message": "mid", - "description": "The label for category mid in sidebar docs" - }, - "sidebar.docs.category.cloud-native": { - "message": "cloud-native", - "description": "The label for category cloud-native in sidebar docs" - }, - "sidebar.docs.category.threshold": { - "message": "threshold", - "description": "The label for category threshold in sidebar docs" - }, - "sidebar.docs.category.notice": { - "message": "notice", - "description": "The label for category notice in sidebar docs" - }, - "sidebar.docs.category.Others": { - "message": "Others", - "description": "The label for category Others in sidebar docs" - }, - "sidebar.docs.link.Install via HuaweiCloud": { - "message": "Install via HuaweiCloud", - "description": "The label for link Install via HuaweiCloud in sidebar docs, linking to https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - }, - "sidebar.docs.link.Cloud Service": { - "message": "Cloud Service", - "description": "The label for link Cloud Service in sidebar docs, linking to https://console.tancloud.cn" - } -} diff --git a/home/i18n/en/docusaurus-plugin-content-docs/version-v1.4.x.json b/home/i18n/en/docusaurus-plugin-content-docs/version-v1.5.x.json similarity index 75% rename from home/i18n/en/docusaurus-plugin-content-docs/version-v1.4.x.json rename to home/i18n/en/docusaurus-plugin-content-docs/version-v1.5.x.json index 53a82b3fbdb..0c1b1a99b55 100644 --- a/home/i18n/en/docusaurus-plugin-content-docs/version-v1.4.x.json +++ b/home/i18n/en/docusaurus-plugin-content-docs/version-v1.5.x.json @@ -1,7 +1,7 @@ { "version.label": { - "message": "v1.4.x", - "description": "The label for version v1.4.x" + "message": "v1.5.x", + "description": "The label for version v1.5.x" }, "sidebar.docs.category.quickstart": { "message": "quickstart", @@ -35,6 +35,26 @@ "message": "push", "description": "The label for category push in sidebar docs" }, + "sidebar.docs.category.NGQL": { + "message": "NGQL", + "description": "The label for category NGQL in sidebar docs" + }, + "sidebar.docs.category.Community": { + "message": "Community", + "description": "The label for category Community in sidebar docs" + }, + "sidebar.docs.category.contribution": { + "message": "contribution", + "description": "The label for category contribution in sidebar docs" + }, + "sidebar.docs.category.submit": { + "message": "submit", + "description": "The label for category submit in sidebar docs" + }, + "sidebar.docs.category.release": { + "message": "release", + "description": "The label for category release in sidebar docs" + }, "sidebar.docs.category.help": { "message": "help", "description": "The label for category help in sidebar docs" @@ -75,6 +95,14 @@ "message": "cloud-native", "description": "The label for category cloud-native in sidebar docs" }, + "sidebar.docs.category.llm": { + "message": "llm", + "description": "The label for category llm in sidebar docs" + }, + "sidebar.docs.category.network": { + "message": "network", + "description": "The label for category network in sidebar docs" + }, "sidebar.docs.category.threshold": { "message": "threshold", "description": "The label for category threshold in sidebar docs" @@ -87,14 +115,6 @@ "message": "Others", "description": "The label for category Others in sidebar docs" }, - "sidebar.docs.link.Cloud Service": { - "message": "Cloud Service", - "description": "The label for link Cloud Service in sidebar docs, linking to https://console.tancloud.cn" - }, - "sidebar.docs.link.Install via HuaweiCloud": { - "message": "Install via HuaweiCloud", - "description": "The label for link Install via HuaweiCloud in sidebar docs, linking to https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - }, "sidebar.docs.link.Install via Helm": { "message": "Install via Helm", "description": "The label for link Install via Helm in sidebar docs, linking to https://artifacthub.io/packages/helm/hertzbeat/hertzbeat" diff --git a/home/i18n/zh-cn/code.json b/home/i18n/zh-cn/code.json index 93594945004..7d3cf705b67 100644 --- a/home/i18n/zh-cn/code.json +++ b/home/i18n/zh-cn/code.json @@ -437,7 +437,7 @@ "message": "将 Http,Jmx,Ssh,Snmp,Jdbc 等协议规范可配置模版化,只需在线配置YML就可自定义监控指标。{br} 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。{br}自由的告警阈值规则,邮箱,短信,钉钉,企业微信,飞书,Webhook等消息及时送达。{br} 您相信只需配置下就能适配新K8s监控类型吗?" }, "opensource-content": { - "message": "Apache HertzBeat (incubating) 的单机集群版全开源,基于 Apache2.0 License。{br}欢迎任何对此有兴趣的同学参与其中,贡献不分大小,无论是文档代码或者错别字,我们尊重每一位同学,一起学习进步成长。{br}希望我们参与的代码能被部署到全球成千上万机器上。{github}" + "message": "Apache HertzBeat (incubating) 是开源的,拥有一个包容开放的社区。{br}欢迎任何对此有兴趣的同学参与其中,无论是代码文档或者错别字,尊重社区的每一位,一起进步成长。{br}我们的代码正被部署到全球成千上万机器上。{github}" }, "slogan": { "message": "易用友好的开源实时监控系统" diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md index bb67ed6c64d..36e7408bed7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md @@ -4,16 +4,16 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource] +tags: [opensource] --- -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 +[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 -**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** +**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** -从v1.0-beta.1到v1.0-beat.8,经过多个版本的迭代完善,我们很高兴宣布hertzbeat v1.0正式发布。 +从v1.0-beta.1到v1.0-beat.8,经过多个版本的迭代完善,我们很高兴宣布hertzbeat v1.0正式发布。 -感谢从beat.1版本以来 HertzBeat Contributors 的贡献,社区同学和用户们的支持。 此版本更新支持了Redis的监控( @gcdd1993 贡献),覆盖Redis的内存CPU等各个性能指标,全方面监控Redis。修复了多个bug进一步增强稳定性。 +感谢从beat.1版本以来 HertzBeat Contributors 的贡献,社区同学和用户们的支持。 此版本更新支持了Redis的监控( @gcdd1993 贡献),覆盖Redis的内存CPU等各个性能指标,全方面监控Redis。修复了多个bug进一步增强稳定性。 @@ -50,13 +50,13 @@ Bug修复. 3. [[monitor]bugfix: 修复通知策略过滤标签时只能选择一个 #140](https://github.com/apache/hertzbeat/pull/140). issue by @daqianxiaoyao 4. [[td-engine store]bugfix: 修复tdengine入库指标数据时无table报错日志#150](https://github.com/apache/hertzbeat/pull/150). contribute by @ChineseTony 5. [[collector]bugfix: 修复 warehouse data queue 未消费异常 #153](https://github.com/apache/hertzbeat/pull/153). issue by @daqianxiaoyao -7. [[web-app]bugfix: 修复黑暗主题时页面输入框校验出错时不可见 #157](https://github.com/apache/hertzbeat/pull/157). issue by @ConradWen +6. [[web-app]bugfix: 修复黑暗主题时页面输入框校验出错时不可见 #157](https://github.com/apache/hertzbeat/pull/157). issue by @ConradWen -**Full Changelog**: https://github.com/apache/hertzbeat/compare/v1.0-beta.8...v1.0 +**Full Changelog**: -Online https://console.tancloud.cn. +Online . ------------------------ +----------------------- Redis监控来啦: @@ -64,20 +64,17 @@ Redis监控来啦: 2022-05-29 20 24 21 - > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn)开源的一个支持网站,API,PING,端口,数据库,操作系统等监控类型,拥有易用友好的可视化操作界面的开源监控告警项目。 > 当然,我们也提供了对应的[SAAS云监控版本](https://console.tancloud.cn),中小团队和个人无需再为了监控自己的网站资源,而去部署一套繁琐的监控系统,[登录即可免费开始](https://console.tancloud.cn)监控之旅。 > HertzBeat 支持自定义监控,只用通过配置YML文件我们就可以自定义需要的监控类型和指标,来满足常见的个性化需求。 -> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 +> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 > HertzBeat 支持更自由化的告警配置(计算表达式),支持告警通知,告警模版,邮件钉钉微信飞书等及时通知送达 -> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 +> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 > 我们正在快速迭代中,欢迎参与加入共建项目开源生态。 - +> > `HertzBeat` 的多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 - **仓库地址** -[Github](https://github.com/apache/hertzbeat) https://github.com/apache/hertzbeat -[Gitee](https://gitee.com/hertzbeat/hertzbeat) https://gitee.com/hertzbeat/hertzbeat - +[Github](https://github.com/apache/hertzbeat) +[Gitee](https://gitee.com/hertzbeat/hertzbeat) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-19-hertzbeat-v1.1.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-19-hertzbeat-v1.1.0.md index 89209a08958..4601c791c0e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-19-hertzbeat-v1.1.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-19-hertzbeat-v1.1.0.md @@ -4,12 +4,12 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource] +tags: [opensource] --- -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 +[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 -**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** +**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** 大家好,HertzBeat v1.1.0 发布啦!这个版本我们支持了SNMP协议,并使用SNMP协议监控支持了windwos操作系统的应用监控。 另一个重大变更是我们默认使用了H2数据库来替换MYSQL数据库作为存储,来方便使用者们的安装部署,现在只需要一条docker命令即可安装体验hertzbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` @@ -24,7 +24,7 @@ Feature: 3. [[manager]支持监控参数的英文国际化,国际化更近一步 #184](https://github.com/apache/hertzbeat/pull/184). 4. [[script]支持了amd64和arm64版本的docker 镜像 #189](https://github.com/apache/hertzbeat/pull/189). 5. [[monitor]feature: 支持采集oracle多表空间指标数据 #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time -7. [[monitor]数据库表统一添加前缀 hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy +6. [[monitor]数据库表统一添加前缀 hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy Bugfix. @@ -33,17 +33,16 @@ Bugfix. 3. [[monitor] bugfix: 修复elasticsearch监控在basic认证情况下采集失败 #174](https://github.com/apache/hertzbeat/pull/174) contribute by @weifuqing 4. [修改oracle监控参数[数据库名称]有歧义导致的监控失败 #182](https://github.com/apache/hertzbeat/pull/182) @zklmcookle -Online https://console.tancloud.cn. +Online . ------------------------ +--- Windows Monitor coming: 2022-06-19 11 30 57 - ⚠️ ⚠️⚠️⚠️请注意其它版本升级到v1.1.0需要先执行下面的SQL脚本. 现在我们的表名称有个统一前缀 hzb_ prefix. -``` +```properties ALTER TABLE alert RENAME TO hzb_alert; ALTER TABLE alert_define RENAME TO hzb_alert_define; ALTER TABLE alert_define_monitor_bind RENAME TO hzb_alert_define_monitor_bind; @@ -55,16 +54,17 @@ ALTER TABLE param_define RENAME TO hzb_param_define; ALTER TABLE tag RENAME TO hzb_tag; ALTER TABLE tag_monitor_bind RENAME TO hzb_tag_monitor_bind; commit; -``` +``` Have Fun! ----- +--- ## V1.1.0 + Home: hertzbeat.com | tancloud.cn -Hi guys! HertzBeat v1.1.0 is coming. This version we support snmp protocol and use snmp to collect windows metrics. +Hi guys! HertzBeat v1.1.0 is coming. This version we support snmp protocol and use snmp to collect windows metrics. Another major change is that we use the H2 database by default to replace the MYSQL database as storage to facilitate the installation and deployment of users. Now only one docker command is needed to install and experience hertzbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` Let's Try It! @@ -76,7 +76,7 @@ Feature: 2. [[monitor]change default database mysql to h2 #191](https://github.com/apache/hertzbeat/pull/191) 3. [[manager]support monitor params name i18n #184](https://github.com/apache/hertzbeat/pull/184). 4. [[script]build multi cpu arch hertzbeat docker version #189](https://github.com/apache/hertzbeat/pull/189). -5. [[monitor]feature: support oracle multi tablespaces #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time +5. [[monitor]feature: support oracle multi tablespaces #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time 6. [[monitor]database tables append prefix hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy Bugfix. @@ -86,17 +86,17 @@ Bugfix. 3. [[monitor] bugfix: fix elasticsearch collect error when need basic auth #174](https://github.com/apache/hertzbeat/pull/174) contribute by @weifuqing 4. [Change the Oracle database name to the service name to reduce ambiguity #182](https://github.com/apache/hertzbeat/pull/182) @zklmcookle -Online https://console.tancloud.cn. +Online . + +--- ------------------------ Windows Monitor coming: 2022-06-19 11 30 57 - ⚠️ ⚠️⚠️⚠️Attention other version upgrade to v1.1.0 need run sql script. Now the tables name has hzb_ prefix. -``` +```properties ALTER TABLE alert RENAME TO hzb_alert; ALTER TABLE alert_define RENAME TO hzb_alert_define; ALTER TABLE alert_define_monitor_bind RENAME TO hzb_alert_define_monitor_bind; @@ -108,27 +108,23 @@ ALTER TABLE param_define RENAME TO hzb_param_define; ALTER TABLE tag RENAME TO hzb_tag; ALTER TABLE tag_monitor_bind RENAME TO hzb_tag_monitor_bind; commit; -``` - -Have Fun! +``` +Have Fun! ----- +--- > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn)开源的一个支持网站,API,PING,端口,数据库,操作系统等监控类型,拥有易用友好的可视化操作界面的开源监控告警项目。 > 当然,我们也提供了对应的[SAAS云监控版本](https://console.tancloud.cn),中小团队和个人无需再为了监控自己的网站资源,而去部署一套繁琐的监控系统,[登录即可免费开始](https://console.tancloud.cn)监控之旅。 > HertzBeat 支持自定义监控,只用通过配置YML文件我们就可以自定义需要的监控类型和指标,来满足常见的个性化需求。 -> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 +> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 > HertzBeat 支持更自由化的告警配置(计算表达式),支持告警通知,告警模版,邮件钉钉微信飞书等及时通知送达 -> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 +> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 > 我们正在快速迭代中,欢迎参与加入共建项目开源生态。 - +> > `HertzBeat` 的多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 - - **仓库地址** -[Github](https://github.com/apache/hertzbeat) https://github.com/apache/hertzbeat -[Gitee](https://gitee.com/hertzbeat/hertzbeat) https://gitee.com/hertzbeat/hertzbeat - +[Github](https://github.com/apache/hertzbeat) +[Gitee](https://gitee.com/hertzbeat/hertzbeat) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-22-one-step-up.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-22-one-step-up.md index 8cc1ad48fe9..4601c791c0e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-22-one-step-up.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-22-one-step-up.md @@ -4,12 +4,12 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource] +tags: [opensource] --- -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 +[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 -**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** +**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** 大家好,HertzBeat v1.1.0 发布啦!这个版本我们支持了SNMP协议,并使用SNMP协议监控支持了windwos操作系统的应用监控。 另一个重大变更是我们默认使用了H2数据库来替换MYSQL数据库作为存储,来方便使用者们的安装部署,现在只需要一条docker命令即可安装体验hertzbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` @@ -24,7 +24,7 @@ Feature: 3. [[manager]支持监控参数的英文国际化,国际化更近一步 #184](https://github.com/apache/hertzbeat/pull/184). 4. [[script]支持了amd64和arm64版本的docker 镜像 #189](https://github.com/apache/hertzbeat/pull/189). 5. [[monitor]feature: 支持采集oracle多表空间指标数据 #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time -7. [[monitor]数据库表统一添加前缀 hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy +6. [[monitor]数据库表统一添加前缀 hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy Bugfix. @@ -33,17 +33,16 @@ Bugfix. 3. [[monitor] bugfix: 修复elasticsearch监控在basic认证情况下采集失败 #174](https://github.com/apache/hertzbeat/pull/174) contribute by @weifuqing 4. [修改oracle监控参数[数据库名称]有歧义导致的监控失败 #182](https://github.com/apache/hertzbeat/pull/182) @zklmcookle -Online https://console.tancloud.cn. +Online . ------------------------ +--- Windows Monitor coming: 2022-06-19 11 30 57 - ⚠️ ⚠️⚠️⚠️请注意其它版本升级到v1.1.0需要先执行下面的SQL脚本. 现在我们的表名称有个统一前缀 hzb_ prefix. -``` +```properties ALTER TABLE alert RENAME TO hzb_alert; ALTER TABLE alert_define RENAME TO hzb_alert_define; ALTER TABLE alert_define_monitor_bind RENAME TO hzb_alert_define_monitor_bind; @@ -55,16 +54,17 @@ ALTER TABLE param_define RENAME TO hzb_param_define; ALTER TABLE tag RENAME TO hzb_tag; ALTER TABLE tag_monitor_bind RENAME TO hzb_tag_monitor_bind; commit; -``` +``` Have Fun! ----- +--- ## V1.1.0 + Home: hertzbeat.com | tancloud.cn -Hi guys! HertzBeat v1.1.0 is coming. This version we support snmp protocol and use snmp to collect windows metrics. +Hi guys! HertzBeat v1.1.0 is coming. This version we support snmp protocol and use snmp to collect windows metrics. Another major change is that we use the H2 database by default to replace the MYSQL database as storage to facilitate the installation and deployment of users. Now only one docker command is needed to install and experience hertzbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` Let's Try It! @@ -76,7 +76,7 @@ Feature: 2. [[monitor]change default database mysql to h2 #191](https://github.com/apache/hertzbeat/pull/191) 3. [[manager]support monitor params name i18n #184](https://github.com/apache/hertzbeat/pull/184). 4. [[script]build multi cpu arch hertzbeat docker version #189](https://github.com/apache/hertzbeat/pull/189). -5. [[monitor]feature: support oracle multi tablespaces #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time +5. [[monitor]feature: support oracle multi tablespaces #163](https://github.com/apache/hertzbeat/pull/163) contribute by @brave4Time 6. [[monitor]database tables append prefix hzb_ #193](https://github.com/apache/hertzbeat/pull/193) issue from @shimingxy Bugfix. @@ -86,17 +86,17 @@ Bugfix. 3. [[monitor] bugfix: fix elasticsearch collect error when need basic auth #174](https://github.com/apache/hertzbeat/pull/174) contribute by @weifuqing 4. [Change the Oracle database name to the service name to reduce ambiguity #182](https://github.com/apache/hertzbeat/pull/182) @zklmcookle -Online https://console.tancloud.cn. +Online . + +--- ------------------------ Windows Monitor coming: 2022-06-19 11 30 57 - ⚠️ ⚠️⚠️⚠️Attention other version upgrade to v1.1.0 need run sql script. Now the tables name has hzb_ prefix. -``` +```properties ALTER TABLE alert RENAME TO hzb_alert; ALTER TABLE alert_define RENAME TO hzb_alert_define; ALTER TABLE alert_define_monitor_bind RENAME TO hzb_alert_define_monitor_bind; @@ -108,26 +108,23 @@ ALTER TABLE param_define RENAME TO hzb_param_define; ALTER TABLE tag RENAME TO hzb_tag; ALTER TABLE tag_monitor_bind RENAME TO hzb_tag_monitor_bind; commit; -``` - -Have Fun! +``` +Have Fun! ----- +--- > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn)开源的一个支持网站,API,PING,端口,数据库,操作系统等监控类型,拥有易用友好的可视化操作界面的开源监控告警项目。 > 当然,我们也提供了对应的[SAAS云监控版本](https://console.tancloud.cn),中小团队和个人无需再为了监控自己的网站资源,而去部署一套繁琐的监控系统,[登录即可免费开始](https://console.tancloud.cn)监控之旅。 > HertzBeat 支持自定义监控,只用通过配置YML文件我们就可以自定义需要的监控类型和指标,来满足常见的个性化需求。 -> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 +> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 > HertzBeat 支持更自由化的告警配置(计算表达式),支持告警通知,告警模版,邮件钉钉微信飞书等及时通知送达 -> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 +> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 > 我们正在快速迭代中,欢迎参与加入共建项目开源生态。 - +> > `HertzBeat` 的多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 - **仓库地址** -[Github](https://github.com/apache/hertzbeat) https://github.com/apache/hertzbeat -[Gitee](https://gitee.com/hertzbeat/hertzbeat) https://gitee.com/hertzbeat/hertzbeat - +[Github](https://github.com/apache/hertzbeat) +[Gitee](https://gitee.com/hertzbeat/hertzbeat) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-07-10-hertzbeat-v1.1.1.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-07-10-hertzbeat-v1.1.1.md index 3768024c848..e37323d72c5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-07-10-hertzbeat-v1.1.1.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-07-10-hertzbeat-v1.1.1.md @@ -4,12 +4,12 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource] +tags: [opensource] --- -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 +[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn) 开源的一个支持网站,API,PING,端口,数据库,全站,操作系统,中间件等监控类型,支持阈值告警,告警通知 (邮箱,webhook,钉钉,企业微信,飞书机器人),拥有易用友好的可视化操作界面的开源监控告警项目。 -**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** +**官网: [hertzbeat.com](https://hertzbeat.com) | [tancloud.cn](https://tancloud.cn)** 大家好,HertzBeat v1.1.1 发布啦!这个版本带来了自定义监控增强,采集指标数据可以作为变量赋值给下一个采集。修复了若干bug,提升整体稳定性。 @@ -23,8 +23,8 @@ Feature: 1. [[script] feature 升级docker的基础镜像为 openjdk:11.0.15-jre-slim #205](https://github.com/apache/hertzbeat/pull/205) 2. [[monitor] 支持前置采集指标数据作为变量赋值给下一采集流程 #206](https://github.com/apache/hertzbeat/pull/206). 3. [[collector] 使用基本的http headers头实现basic auth替换前置模式 #212](https://github.com/apache/hertzbeat/pull/212) -4. [[manager,alerter] 支持告警通知设置丁丁微信飞书自定义 webhook url #213](https://github.com/apache/hertzbeat/pull/213) -5. [[monitor] feature 更新数值指标数据不带末尾为0的小数点 #217](https://github.com/apache/hertzbeat/pull/217) +4. [[manager,alerter] 支持告警通知设置钉钉机器人微信飞书自定义 webhook url #213](https://github.com/apache/hertzbeat/pull/213) +5. [[monitor] feature 更新数值指标数据不带末尾为0的小数点 #217](https://github.com/apache/hertzbeat/pull/217) 6. [[web-app]feature:toggle [enable and cancel] button #218](https://github.com/apache/hertzbeat/pull/218) 7. [[manager] 更新监控define yml文件前缀名称 "app" or "param",便于自定义监控区别 #221](https://github.com/apache/hertzbeat/pull/221) @@ -36,30 +36,27 @@ Bugfix. 4. [[common] bugfix 告警状态无法页面手动更新问题 #203](https://github.com/apache/hertzbeat/pull/203) 5. [[manager] bugfix windows监控类型名称错误问题 #204](https://github.com/apache/hertzbeat/pull/204) 6. [fix time zone todo issue #210](https://github.com/apache/hertzbeat/pull/210) contribute by @djzeng -8. [[common] bugfix 雪花算法生成ID大小超出 0x1FFFFFFFFFFFFFF 导致前端不识别问题 #211](https://github.com/apache/hertzbeat/pull/211) -9. [[manager] 修改监控页面取消监控功能再启动监控导致多生成jobId,原有监控项目并没有真实取消 #215](https://github.com/apache/hertzbeat/pull/215) contribute by @yangshihui -10. [[warehouse] 修复tdengine对特殊字段建表失败导致数据无法入库问题 #220](https://github.com/apache/hertzbeat/pull/220) - -Online https://console.tancloud.cn. +7. [[common] bugfix 雪花算法生成ID大小超出 0x1FFFFFFFFFFFFFF 导致前端不识别问题 #211](https://github.com/apache/hertzbeat/pull/211) +8. [[manager] 修改监控页面取消监控功能再启动监控导致多生成jobId,原有监控项目并没有真实取消 #215](https://github.com/apache/hertzbeat/pull/215) contribute by @yangshihui +9. [[warehouse] 修复tdengine对特殊字段建表失败导致数据无法入库问题 #220](https://github.com/apache/hertzbeat/pull/220) +Online . Have Fun! ----- +---- > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是由 [Dromara](https://dromara.org) 孵化,[TanCloud](https://tancloud.cn)开源的一个支持网站,API,PING,端口,数据库,操作系统等监控类型,拥有易用友好的可视化操作界面的开源监控告警项目。 > 当然,我们也提供了对应的[SAAS云监控版本](https://console.tancloud.cn),中小团队和个人无需再为了监控自己的网站资源,而去部署一套繁琐的监控系统,[登录即可免费开始](https://console.tancloud.cn)监控之旅。 > HertzBeat 支持自定义监控,只用通过配置YML文件我们就可以自定义需要的监控类型和指标,来满足常见的个性化需求。 -> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 +> HertzBeat 模块化,`manager, collector, scheduler, warehouse, alerter` 各个模块解耦合,方便理解与定制开发。 > HertzBeat 支持更自由化的告警配置(计算表达式),支持告警通知,告警模版,邮件钉钉微信飞书等及时通知送达 -> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 +> 欢迎登录 HertzBeat 的 [云环境TanCloud](https://console.tancloud.cn) 试用发现更多。 > 我们正在快速迭代中,欢迎参与加入共建项目开源生态。 - +> > `HertzBeat` 的多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 - **仓库地址** -[Github](https://github.com/apache/hertzbeat) https://github.com/apache/hertzbeat -[Gitee](https://gitee.com/hertzbeat/hertzbeat) https://gitee.com/hertzbeat/hertzbeat - +[Github](https://github.com/apache/hertzbeat) +[Gitee](https://gitee.com/hertzbeat/hertzbeat) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-04-hertzbeat-v1.1.3.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-04-hertzbeat-v1.1.3.md index affc90b5c34..0429d684ddd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-04-hertzbeat-v1.1.3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-04-hertzbeat-v1.1.3.md @@ -4,7 +4,7 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource] +tags: [opensource] --- Home: hertzbeat.com | tancloud.cn @@ -22,24 +22,25 @@ Feature: 2. [[monitor] feature: support apache kafka monitor #263](https://github.com/apache/hertzbeat/pull/263) contribute by @wang1027-wqh 3. [[webapp] support history chart query 3 mouth time range #265](https://github.com/apache/hertzbeat/pull/265) issue by @ericfrol 4. [[monitor] support ssl certificate expired monitor #266](https://github.com/apache/hertzbeat/pull/266) suggest by @noear -5. [[web-app] update default interval 600s to 120s #268](https://github.com/apache/hertzbeat/pull/268) -6. [[web-app] update layout ui - help button, nav menu #272](https://github.com/apache/hertzbeat/pull/272) -7. [[alert,webapp] support delete all alerts at once. #273](https://github.com/apache/hertzbeat/pull/273) issue by @ericfrol +5. [[web-app] update default interval 600s to 120s #268](https://github.com/apache/hertzbeat/pull/268) +6. [[web-app] update layout ui - help button, nav menu #272](https://github.com/apache/hertzbeat/pull/272) +7. [[alert,webapp] support delete all alerts at once. #273](https://github.com/apache/hertzbeat/pull/273) issue by @ericfrol 8. [[web-app] update home background image #276](https://github.com/apache/hertzbeat/pull/276) Bugfix. 1. [[docs] fix extend-http-jsonpath.md parseScript error #262](https://github.com/apache/hertzbeat/pull/262) contribute by @woshiniusange . 2. [[monitor] update help docs, refactor redis metrics name #264](https://github.com/apache/hertzbeat/pull/264) -3. [[manager] bugfix alert tags is null when tags map key normal value null. #270](https://github.com/apache/hertzbeat/pull/270) issue by https://gitee.com/hello_brother_niu -4. [[alert] bugfix: the alert global preset config do not take effect #275](https://github.com/apache/hertzbeat/pull/275) issue by https://gitee.com/hello_brother_niu +3. [[manager] bugfix alert tags is null when tags map key normal value null. #270](https://github.com/apache/hertzbeat/pull/270) issue by +4. [[alert] bugfix: the alert global preset config do not take effect #275](https://github.com/apache/hertzbeat/pull/275) issue by -Online https://console.tancloud.cn. +Online . -Have Fun! ----- +Have Fun +--- ## V1.1.3 + 官网: hertzbeat.com | tancloud.cn 大家好,HertzBeat v1.1.3 发布啦!这个版本支持了apache kafka监控,SSL证书过期监控等。修复了若干bug,提升整体稳定性。 @@ -55,20 +56,18 @@ Feature: 2. [[monitor] feature: support apache kafka monitor #263](https://github.com/apache/hertzbeat/pull/263) contribute by @wang1027-wqh 3. [[webapp] support history chart query 3 mouth time range #265](https://github.com/apache/hertzbeat/pull/265) issue by @ericfrol 4. [[monitor] support ssl certificate expired monitor #266](https://github.com/apache/hertzbeat/pull/266) suggest by @noear -5. [[web-app] update default interval 600s to 120s #268](https://github.com/apache/hertzbeat/pull/268) -6. [[web-app] update layout ui - help button, nav menu #272](https://github.com/apache/hertzbeat/pull/272) -7. [[alert,webapp] support delete all alerts at once. #273](https://github.com/apache/hertzbeat/pull/273) issue by @ericfrol +5. [[web-app] update default interval 600s to 120s #268](https://github.com/apache/hertzbeat/pull/268) +6. [[web-app] update layout ui - help button, nav menu #272](https://github.com/apache/hertzbeat/pull/272) +7. [[alert,webapp] support delete all alerts at once. #273](https://github.com/apache/hertzbeat/pull/273) issue by @ericfrol 8. [[web-app] update home background image #276](https://github.com/apache/hertzbeat/pull/276) Bugfix. 1. [[docs] fix extend-http-jsonpath.md parseScript error #262](https://github.com/apache/hertzbeat/pull/262) contribute by @woshiniusange . 2. [[monitor] update help docs, refactor redis metrics name #264](https://github.com/apache/hertzbeat/pull/264) -3. [[manager] bugfix alert tags is null when tags map key normal value null. #270](https://github.com/apache/hertzbeat/pull/270) issue by https://gitee.com/hello_brother_niu -4. [[alert] bugfix: the alert global preset config do not take effect #275](https://github.com/apache/hertzbeat/pull/275) issue by https://gitee.com/hello_brother_niu - -Online https://console.tancloud.cn. +3. [[manager] bugfix alert tags is null when tags map key normal value null. #270](https://github.com/apache/hertzbeat/pull/270) issue by +4. [[alert] bugfix: the alert global preset config do not take effect #275](https://github.com/apache/hertzbeat/pull/275) issue by +Online . -Have Fun! ----- +Have Fun diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-10-ssl-practice.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-10-ssl-practice.md index d7f06703c97..2569c5bd33e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-10-ssl-practice.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-09-10-ssl-practice.md @@ -4,7 +4,7 @@ author: tom author_title: tom author_url: https://github.com/tomsun28 author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 -tags: [opensource, practice] +tags: [opensource, practice] --- 先祝看到的同学中秋快乐,身体健康,在身体健康的基础上尽量暴富。 @@ -17,18 +17,18 @@ tags: [opensource, practice] HertzBeat 一个拥有强大自定义监控能力,无需Agent的实时监控工具。网站监测,PING连通性,端口可用性,数据库,操作系统,中间件,API监控,阈值告警,告警通知(邮件微信钉钉飞书)。 -**官网: https://hertzbeat.com | https://tancloud.cn** +**官网: | ** -github: https://github.com/apache/hertzbeat -gitee: https://gitee.com/hertzbeat/hertzbeat +github: +gitee: #### 安装 HertzBeat -1.如果不想安装可以直接使用云服务 [TanCloud探云 console.tancloud.cn](https://console.tancloud.cn) +1. 如果不想安装可以直接使用云服务 [TanCloud探云 console.tancloud.cn](https://console.tancloud.cn) 2. `docker` 环境仅需一条命令即可安装 -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` + `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` 3. 安装成功浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` @@ -36,88 +36,72 @@ gitee: https://gitee.com/hertzbeat/hertzbeat 1. 点击新增SSL证书监控 -> 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 + > 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/bd53f343a5b54feab62e71458d076441~tplv-k3u1fbpfcp-zoom-1.image) + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/bd53f343a5b54feab62e71458d076441~tplv-k3u1fbpfcp-zoom-1.image) 2. 配置监控网站 -> 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 -> 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 + > 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 + > 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ad1154670648413bb82c8bdeb5b13609~tplv-k3u1fbpfcp-zoom-1.image) + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ad1154670648413bb82c8bdeb5b13609~tplv-k3u1fbpfcp-zoom-1.image) 3. 查看检测指标数据 -> 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f874b45e909c4bb0acdd28b3fb034a61~tplv-k3u1fbpfcp-zoom-1.image) - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ef5d7443f8c04818ae5aa28d421203be~tplv-k3u1fbpfcp-zoom-1.image) + > 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f874b45e909c4bb0acdd28b3fb034a61~tplv-k3u1fbpfcp-zoom-1.image) + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ef5d7443f8c04818ae5aa28d421203be~tplv-k3u1fbpfcp-zoom-1.image) 4. 设置阈值(证书过期时触发) -> 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8d6205172d43463aa34e534477f132f1~tplv-k3u1fbpfcp-zoom-1.image) - -> 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 + > 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8d6205172d43463aa34e534477f132f1~tplv-k3u1fbpfcp-zoom-1.image) -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/83d17b381d994f26a6240e01915b2001~tplv-k3u1fbpfcp-zoom-1.image) - -> 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9b9063d7bcf9454387be0491fc382bd1~tplv-k3u1fbpfcp-zoom-1.image) + > 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/83d17b381d994f26a6240e01915b2001~tplv-k3u1fbpfcp-zoom-1.image) + > 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9b9063d7bcf9454387be0491fc382bd1~tplv-k3u1fbpfcp-zoom-1.image) 5. 设置阈值(证书过期前一周触发) -> 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 - + > 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0d6f837f57c247e09f668f60eff4a0ff~tplv-k3u1fbpfcp-zoom-1.image) + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0d6f837f57c247e09f668f60eff4a0ff~tplv-k3u1fbpfcp-zoom-1.image) -> 最终可以在告警中心看到已触发的告警。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5a61b23127524976b2c209ce0ca6a339~tplv-k3u1fbpfcp-zoom-1.image) + > 最终可以在告警中心看到已触发的告警。 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5a61b23127524976b2c209ce0ca6a339~tplv-k3u1fbpfcp-zoom-1.image) 6. 告警通知(通过钉钉微信飞书等及时通知) -> 监控系统 -> 告警通知 -> 新增接收人 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/7f36956060ef410a82bbecafcbb2957f~tplv-k3u1fbpfcp-zoom-1.image) + > 监控系统 -> 告警通知 -> 新增接收人 -钉钉微信飞书等token配置可以参考帮助文档 + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/7f36956060ef410a82bbecafcbb2957f~tplv-k3u1fbpfcp-zoom-1.image) -https://hertzbeat.com/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk + 钉钉微信飞书等token配置可以参考帮助文档 -> 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 + + + > 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d976343e81f843138344a039f3aff8a3~tplv-k3u1fbpfcp-zoom-1.image) + ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d976343e81f843138344a039f3aff8a3~tplv-k3u1fbpfcp-zoom-1.image) 7. OK 当阈值触发后我们就可以收到对应告警消息啦,如果没有配通知,也可以在告警中心查看告警信息。 ---- -#### 完! +#### 完 监控SSL证书的实践就到这里,当然对hertzbeat来说这个功能只是冰山一角,如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** -**gitee: https://gitee.com/hertzbeat/hertzbeat** +**gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-10-08-hertzbeat-v1.2.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-10-08-hertzbeat-v1.2.0.md index 38541e27286..f66f3ee9296 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-10-08-hertzbeat-v1.2.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-10-08-hertzbeat-v1.2.0.md @@ -26,9 +26,9 @@ Feature: 2. [[webapp] auto redirect url when detect browser language #289](https://github.com/apache/hertzbeat/pull/289) contribute by @DreamGirl524 3. [[home] update logo icon cdn url with fault tolerance #293](https://github.com/apache/hertzbeat/pull/293) contribute by @VampireAchao 4. [[monitor] enable powerful jsonpath parser, add es metrics #295](https://github.com/apache/hertzbeat/pull/295) contribute by @Ceilzcx -5. [[webapp] update ui theme #296](https://github.com/apache/hertzbeat/pull/296) -6. [Feature change main pom artifactId #300](https://github.com/apache/hertzbeat/pull/300) contribute by @Privauto -7. [[home,webapp] add users logo and update hertzbeat brand #302](https://github.com/apache/hertzbeat/pull/302) +5. [[webapp] update ui theme #296](https://github.com/apache/hertzbeat/pull/296) +6. [Feature change main pom artifactId #300](https://github.com/apache/hertzbeat/pull/300) contribute by @Privauto +7. [[home,webapp] add users logo and update hertzbeat brand #302](https://github.com/apache/hertzbeat/pull/302) 8. [[monitor] alerter notify test throw msg to front, optional spring.email config #305](https://github.com/apache/hertzbeat/pull/305) contribute by @Ceilzcx 9. [[home]doc:update docker-deploy.md and tdengine-init.md #306](https://github.com/apache/hertzbeat/pull/306) contribute by @Privauto 10. [[hertzbeat] refactor common collect metrics data and alert data queue #320](https://github.com/apache/hertzbeat/pull/320) @@ -51,22 +51,25 @@ Bugfix. 8. [[script] add startup log and optimize port service judgment #321](https://github.com/apache/hertzbeat/pull/321) 9. [[web-app] fix echarts y-axis value tip overflow #325](https://github.com/apache/hertzbeat/pull/325) 10. [[webapp] fix interceptor http resp common error-msg when error #329](https://github.com/apache/hertzbeat/pull/329) - Online https://console.tancloud.cn. + Online . Have Fun! ### Upgrade⚠️ Need Convert `application.yml` -``` + +```yaml spring: resources: static-locations: - classpath:/dist/ - classpath:../dist/ -``` -To ``` + +To + +```yaml spring: web: resources: @@ -75,9 +78,10 @@ spring: - classpath:../dist/ ``` ----- +---- ## V1.2.0 + 官网: hertzbeat.com | tancloud.cn 大家好,HertzBeat v1.2.0 发布啦!这个版本支持了更强大的jsonpath去采集自定义监控指标,将springboot版本升级到2.7,支持指标单位的提取转换展示等。修复了若干bug,提升整体稳定性。 @@ -95,9 +99,9 @@ Feature: 2. [[webapp] auto redirect url when detect browser language #289](https://github.com/apache/hertzbeat/pull/289) contribute by @DreamGirl524 3. [[home] update logo icon cdn url with fault tolerance #293](https://github.com/apache/hertzbeat/pull/293) contribute by @VampireAchao 4. [[monitor] enable powerful jsonpath parser, add es metrics #295](https://github.com/apache/hertzbeat/pull/295) contribute by @Ceilzcx -5. [[webapp] update ui theme #296](https://github.com/apache/hertzbeat/pull/296) -6. [Feature change main pom artifactId #300](https://github.com/apache/hertzbeat/pull/300) contribute by @Privauto -7. [[home,webapp] add users logo and update hertzbeat brand #302](https://github.com/apache/hertzbeat/pull/302) +5. [[webapp] update ui theme #296](https://github.com/apache/hertzbeat/pull/296) +6. [Feature change main pom artifactId #300](https://github.com/apache/hertzbeat/pull/300) contribute by @Privauto +7. [[home,webapp] add users logo and update hertzbeat brand #302](https://github.com/apache/hertzbeat/pull/302) 8. [[monitor] alerter notify test throw msg to front, optional spring.email config #305](https://github.com/apache/hertzbeat/pull/305) contribute by @Ceilzcx 9. [[home]doc:update docker-deploy.md and tdengine-init.md #306](https://github.com/apache/hertzbeat/pull/306) contribute by @Privauto 10. [[hertzbeat] refactor common collect metrics data and alert data queue #320](https://github.com/apache/hertzbeat/pull/320) @@ -121,24 +125,25 @@ Bugfix. 9. [[web-app] fix echarts y-axis value tip overflow #325](https://github.com/apache/hertzbeat/pull/325) 10. [[webapp] fix interceptor http resp common error-msg when error #329](https://github.com/apache/hertzbeat/pull/329) - -Online https://console.tancloud.cn. - +Online . Have Fun! ### 升级注意⚠️ 需要将配置文件内容 `application.yml` -``` + +```yaml spring: resources: static-locations: - classpath:/dist/ - classpath:../dist/ -``` -变更为 ``` + +变更为 + +```yaml spring: web: resources: @@ -147,4 +152,4 @@ spring: - classpath:../dist/ ``` ----- +---- diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-11-28-hertzbeat-v1.2.2.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-11-28-hertzbeat-v1.2.2.md index 050f6e344ca..743f0044844 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-11-28-hertzbeat-v1.2.2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-11-28-hertzbeat-v1.2.2.md @@ -8,9 +8,10 @@ tags: [opensource] --- ## v1.2.2 + Home: hertzbeat.com | tancloud.cn -Hi guys! HertzBeat v1.2.2 is coming. This release brings significant features. This version we support monitor kubernets, docker, springboot, nacos and database dm, opengauss and more. Also we bring a experimental feature, users can custom define metrics collect from promethues with promql. Fixed several bugs and improved the overall stable usability. And more, linux monitor we support top10 cpu usage metrics, top10 memory usage mertics. +Hi guys! HertzBeat v1.2.2 is coming. This release brings significant features. This version we support monitor kubernets, docker, springboot, nacos and database dm, opengauss and more. Also we bring a experimental feature, users can custom define metrics collect from promethues with promql. Fixed several bugs and improved the overall stable usability. And more, linux monitor we support top10 cpu usage metrics, top10 memory usage mertics. Let's Try It Now! Only one docker command is needed to install and experience heartbeat: @@ -26,9 +27,9 @@ Feature: 2. [[home] add DM db document supplement #411](https://github.com/apache/hertzbeat/pull/411) @TJxiaobao 3. [[home] support algolia search #416](https://github.com/apache/hertzbeat/pull/416) 4. [[collector] support trigger and grading multiple subtasks through -_- placeholder expression #418](https://github.com/apache/hertzbeat/pull/418) -5. [WIP:feature support k8s monitor, http monitor nacos, service&http_micro monitor msa #421](https://github.com/apache/hertzbeat/pull/421) @cuipiheqiuqiu -6. [[manager] support opengauss database monitor #422](https://github.com/apache/hertzbeat/pull/422) -6. [[#406][warehose] Add unit test MetricsDataControllerTest.java #426](https://github.com/apache/hertzbeat/pull/426) @haibo-duan +5. [WIP:feature support k8s monitor, http monitor nacos, service&http_micro monitor msa #421](https://github.com/apache/hertzbeat/pull/421) @cuipiheqiuqiu +6. [[manager] support opengauss database monitor #422](https://github.com/apache/hertzbeat/pull/422) +7. [[#406][warehose] Add unit test MetricsDataControllerTest.java #426](https://github.com/apache/hertzbeat/pull/426) @haibo-duan 8. [[#358][manager] Add unit test manager/service/NoticeConfigServiceTest.java #427](https://github.com/apache/hertzbeat/pull/427) @haibo-duan 9. [[#356][manager] unit test case of manager/service/MailServiceTest.java #432](https://github.com/apache/hertzbeat/pull/432) @csyshu 10. [[manager,collector] support docker metrics monitor #438](https://github.com/apache/hertzbeat/pull/438) @TJxiaobao @@ -40,7 +41,6 @@ Feature: 16. [[hertzbeat] update use PromQL to collect metrics from promethues server #456](https://github.com/apache/hertzbeat/pull/456) 17. [[manager] support custom monitor api response data code #460](https://github.com/apache/hertzbeat/pull/460) - Bugfix. 1. [【bugfix#408】if logs dir not exist, create logs dir #409](https://github.com/apache/hertzbeat/pull/409) @Ceilzcx @@ -51,13 +51,14 @@ Bugfix. 6. [[manager] bugfix the gmtUpdate not change when update monitor param #459](https://github.com/apache/hertzbeat/pull/459) 7. [[home] fix typo in springboot2.md #464](https://github.com/apache/hertzbeat/pull/464) @eltociear -Online https://console.tancloud.cn. +Online . Have Fun! ----- +---- ## V1.2.2 + 官网: hertzbeat.com | tancloud.cn 大家好,HertzBeat v1.2.2发布啦!这个版本带来个超多重大更新,我们支持了对云原生kubernets, docker的监控,支持了对springboot应用, nacos注册发现中心,达梦数据库,opengauss数据库等的指标监控。我们也引入了一个实验性特性,用户可以使用promethues promql 从promethues server拿取指标数据作为hertzbeat自定义监控指标数据。当然我们也新增了多个测试用户覆盖,修复了多个BUG。还有个很多用户想要的更新,我们新增了对linux监控的top10 cpu 内存利用率的进程监控指标。有个这个指标,我们就可以干很多事情。比如监控某个进程CPU异常,内存爆满啥的。快来试试吧! @@ -75,9 +76,9 @@ Feature: 2. [[home] add DM db document supplement #411](https://github.com/apache/hertzbeat/pull/411) @TJxiaobao 3. [[home] support algolia search #416](https://github.com/apache/hertzbeat/pull/416) 4. [[collector] support trigger and grading multiple subtasks through -_- placeholder expression #418](https://github.com/apache/hertzbeat/pull/418) -5. [WIP:feature support k8s monitor, http monitor nacos, service&http_micro monitor msa #421](https://github.com/apache/hertzbeat/pull/421) @cuipiheqiuqiu -6. [[manager] support opengauss database monitor #422](https://github.com/apache/hertzbeat/pull/422) -6. [[#406][warehose] Add unit test MetricsDataControllerTest.java #426](https://github.com/apache/hertzbeat/pull/426) @haibo-duan +5. [WIP:feature support k8s monitor, http monitor nacos, service&http_micro monitor msa #421](https://github.com/apache/hertzbeat/pull/421) @cuipiheqiuqiu +6. [[manager] support opengauss database monitor #422](https://github.com/apache/hertzbeat/pull/422) +7. [[#406][warehose] Add unit test MetricsDataControllerTest.java #426](https://github.com/apache/hertzbeat/pull/426) @haibo-duan 8. [[#358][manager] Add unit test manager/service/NoticeConfigServiceTest.java #427](https://github.com/apache/hertzbeat/pull/427) @haibo-duan 9. [[#356][manager] unit test case of manager/service/MailServiceTest.java #432](https://github.com/apache/hertzbeat/pull/432) @csyshu 10. [[manager,collector] support docker metrics monitor #438](https://github.com/apache/hertzbeat/pull/438) @TJxiaobao @@ -89,7 +90,6 @@ Feature: 16. [[hertzbeat] update use PromQL to collect metrics from promethues server #456](https://github.com/apache/hertzbeat/pull/456) 17. [[manager] support custom monitor api response data code #460](https://github.com/apache/hertzbeat/pull/460) - Bugfix. 1. [【bugfix#408】if logs dir not exist, create logs dir #409](https://github.com/apache/hertzbeat/pull/409) @Ceilzcx @@ -100,4 +100,4 @@ Bugfix. 6. [[manager] bugfix the gmtUpdate not change when update monitor param #459](https://github.com/apache/hertzbeat/pull/459) 7. [[home] fix typo in springboot2.md #464](https://github.com/apache/hertzbeat/pull/464) @eltociear ----- +---- diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-19-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-19-new-committer.md index 04a7e28d849..33eec0552b8 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-19-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-19-new-committer.md @@ -9,7 +9,6 @@ tags: [opensource] > 非常高兴 HertzBeat 迎来了两位新晋社区Committer, 两位都是来自互联网公司的开发工程师,让我们来了解下他们的开源经历吧! - ## 第一位 花城 姓名:王庆华 @@ -20,38 +19,37 @@ HertzBeat Committer github:[wang1027-wqh](https://github.com/wang1027-wqh) -## 初识hertzbeat +### 初识hertzbeat 说起来挺偶然的,结识hertzbeat是因为我大学的毕业设计,当时在一家互联网公司实习,那个时候第一次看到了企业是怎么监控项目的,不管是系统监控、业务监控还是物联网iot监控,那个时候见世面不广,只知道Prometheus + Grafana,但是学起来、用起来成本比较高,那个时候就觉得应该有其他类型的监控,恰好,到了大学毕业设计选题,我就开始寻找这方面的开源项目,那个时候我们小组正在使用Shen Yu网关,我就看了下社区,发现了hertzbeat,自此我便于它结缘了。 -## 开始提交PR +### 开始提交PR + 到了2022-02-18 我开始提交了我第一个pr,当时只是为了优化一些controller入参的格式,没有什么技术含量,但是这是我接触开源的第一步,让我在从理论学习跨出了实践的一步 -## 持续的开源贡献与收获 +### 持续的开源贡献与收获 到目前为止,参与hertzbeat开源项目已有半年多时间,贡献了许多,也成长收获了许多。具体如下: -1. 见证了hertzbeat的贡献值从0到1 -2. 兼容了zookeeper、JVM、Kafka等监控功能 -3. 实现了hertzbeat项目的国际化 -4. 参与了开源之夏并顺利结项 -5. 增加了监控系统的基础告警功能: 钉钉、飞书、企业微信、邮箱等 +1. 见证了hertzbeat的贡献值从0到1 +2. 兼容了zookeeper、JVM、Kafka等监控功能 +3. 实现了hertzbeat项目的国际化 +4. 参与了开源之夏并顺利结项 +5. 增加了监控系统的基础告警功能: 钉钉、飞书、企业微信、邮箱等 - -## 感谢社区小伙伴 +### 感谢社区小伙伴 感谢无偿帮助过我或给过我启发的小伙伴(排名不分先后):tomsun28,MaxKeyTop,阿超 -## 对新人的一点建议 - -1. 不要觉得自己一上手就能接触到核心,心急吃不了热豆腐 -2. 不要只注重看代码,要上手搭建、使用 -3. 有想法就大胆尝试,不管自己的方案是否完善 -4. 多多关注开源,了解社区动态,多和开源开发者交流 +### 对新人的一点建议 +1. 不要觉得自己一上手就能接触到核心,心急吃不了热豆腐 +2. 不要只注重看代码,要上手搭建、使用 +3. 有想法就大胆尝试,不管自己的方案是否完善 +4. 多多关注开源,了解社区动态,多和开源开发者交流 ------ ------ +--- +--- ## 第二位 星辰 @@ -59,20 +57,17 @@ github:[wang1027-wqh](https://github.com/wang1027-wqh) 现从事:某互联网公司Java开发工程师 -email:1758619238@qq.com +email:<1758619238@qq.com> Hertzbeat Committer github:[Ceilzcx (zcx) (github.com)](https://github.com/Ceilzcx) - -## 初识Hertzbeat +### 初识Hertzbeat 2022年8月开始接触Hertzbeat,由于公司监控elasticsearch使用的cerebro,虽然有非常强大的数据监控,但缺少告警通知的功能;就去github上浏览监控类的项目,刚好看到Hertzbeat,对此非常感兴趣,在了解完整个项目结构和实现后,刚好elasticsearch的监控部分做的不够完善,我就根据cerebro完善了这部分监控数据并提交了pull request。后面在tom老哥的帮助下也开始其他部分的实现。 - - -## 开始提交PR +### 开始提交PR 从2022年9月至今提交了好几个pr,主要包括: @@ -83,9 +78,7 @@ github:[Ceilzcx (zcx) (github.com)](https://github.com/Ceilzcx) + 一些bug的修复。。。 + promethues exporter 协议解析 - - -## 持续的开源贡献与收获 +### 持续的开源贡献与收获 到目前为止,参与Hertzbeat社区开源已有半年多时间,贡献了许多,也成长收获了许多。 @@ -93,20 +86,17 @@ github:[Ceilzcx (zcx) (github.com)](https://github.com/Ceilzcx) 同时在社区群里,看到别人提的问题和帮助别人可以学到很多新的知识,很多问题你目前不一定会遇到,其他人遇到的时候你可以思考并收获很多知识。 - -## 感谢社区小伙伴 +### 感谢社区小伙伴 感谢无偿帮助过我或给过我启发的小伙伴:[tomsun28](https://github.com/tomsun28) - -## 对新人的一点建议 +### 对新人的一点建议 + 使用者可以先看官网,官网基本能够解决你的问题。部分简单或者常见的问题其他可以自己解决,对自己也是一种锻炼 + 可以尝试阅读源码,大部分源码都是包含注释的,并不难;不懂的地方也可以通过运行test,debug看一下整个流程 + 有想法或者bug,可以前往gitee或者github提交issues,也可以在群里询问,不要怕,都是从菜逼过来的 - -## 如何参与Hertzbeat +### 如何参与Hertzbeat + 官网有非常完善的贡献者指南:[贡献者指南 | HertzBeat](https://hertzbeat.com/docs/community/contribution) @@ -114,5 +104,4 @@ github:[Ceilzcx (zcx) (github.com)](https://github.com/Ceilzcx) + 如果是大的改动,建议提交前编写issues,在提交pr,同时请注意编码的规范,尽量减少bug和警告的产生 - > 以上就是我们新晋Committer们的开源经历了,可以看出参与开源并不难,更重要的是迈出第一步,无论是代码还是文档修复或者提交issue,这些都是贡献者参与开源的姿势。快来加入我们吧! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-28-hertzbeat-v1.2.3.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-28-hertzbeat-v1.2.3.md index 2adb7f3362f..716c97fd15e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-28-hertzbeat-v1.2.3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-12-28-hertzbeat-v1.2.3.md @@ -7,7 +7,7 @@ author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 tags: [opensource] --- -## v1.2.3 +## v1.2.3 Home: hertzbeat.com | tancloud.cn @@ -28,9 +28,9 @@ Feature: 2. [[doc] fix up:update the environment of hertzbeat to Java version 11 #473](https://github.com/apache/hertzbeat/pull/473) @BKing2020 3. [[docs] update kubernetes.md #478](https://github.com/apache/hertzbeat/pull/478) @wangke6666 4. [[web-app] enable alert define preset true by default #485](https://github.com/apache/hertzbeat/pull/485) -5. [[web-app] support friendly tip when add notice receiver #486](https://github.com/apache/hertzbeat/pull/486) -6. [[web-app] update dashboard category card ui #487](https://github.com/apache/hertzbeat/pull/487) -6. [[collector] limit trigger sub task max num #488](https://github.com/apache/hertzbeat/pull/488) +5. [[web-app] support friendly tip when add notice receiver #486](https://github.com/apache/hertzbeat/pull/486) +6. [[web-app] update dashboard category card ui #487](https://github.com/apache/hertzbeat/pull/487) +7. [[collector] limit trigger sub task max num #488](https://github.com/apache/hertzbeat/pull/488) 8. [[script] support service restart shell #489](https://github.com/apache/hertzbeat/pull/489) @zanglikun 9. [[docs] use rainbond deploy hertzbeat #495](https://github.com/apache/hertzbeat/pull/495) @zzzhangqi 10. [[webapp] upgrade web base angular version to 14 #501](https://github.com/apache/hertzbeat/pull/501) @@ -38,7 +38,6 @@ Feature: 12. [add Prometheus exporter metrics parser and IoTDB monitor #505](https://github.com/apache/hertzbeat/pull/505) @Ceilzcx 13. [support apache shenyu metrics monitoring #507](https://github.com/apache/hertzbeat/pull/507) - Bugfix. 1. [[manager] fix cross domain problem in SecurityCorsConfiguration #469](https://github.com/apache/hertzbeat/pull/469) @zenan08 @@ -50,13 +49,14 @@ Bugfix. 7. [监控k8s问题issue描述与解决方案 #511](https://github.com/apache/hertzbeat/pull/511) @MrAndyMing 8. [[manager] springboot2 monitor support base path config #515](https://github.com/apache/hertzbeat/pull/515) -Online https://console.tancloud.cn. +Online . Have Fun! ----- +---- ## V1.2.3 + 官网: hertzbeat.com | tancloud.cn 大家好,HertzBeat v1.2.3发布啦!这个版本带来了重大更新,我们支持了对prometheus exporter协议监控,用户可以很方便的使用hertzbeat来适配监控prometheus exporter. 基于这个能力,这个版本我们也支持了对apache shenyu, apache iotdb的指标监控。我们更新了UI布局,修复了多个BUG,也支持了短信通知。快来体验下吧! @@ -74,9 +74,9 @@ Feature: 2. [[doc] fix up:update the environment of hertzbeat to Java version 11 #473](https://github.com/apache/hertzbeat/pull/473) @BKing2020 3. [[docs] update kubernetes.md #478](https://github.com/apache/hertzbeat/pull/478) @wangke6666 4. [[web-app] enable alert define preset true by default #485](https://github.com/apache/hertzbeat/pull/485) -5. [[web-app] support friendly tip when add notice receiver #486](https://github.com/apache/hertzbeat/pull/486) -6. [[web-app] update dashboard category card ui #487](https://github.com/apache/hertzbeat/pull/487) -6. [[collector] limit trigger sub task max num #488](https://github.com/apache/hertzbeat/pull/488) +5. [[web-app] support friendly tip when add notice receiver #486](https://github.com/apache/hertzbeat/pull/486) +6. [[web-app] update dashboard category card ui #487](https://github.com/apache/hertzbeat/pull/487) +7. [[collector] limit trigger sub task max num #488](https://github.com/apache/hertzbeat/pull/488) 8. [[script] support service restart shell #489](https://github.com/apache/hertzbeat/pull/489) @zanglikun 9. [[docs] use rainbond deploy hertzbeat #495](https://github.com/apache/hertzbeat/pull/495) @zzzhangqi 10. [[webapp] upgrade web base angular version to 14 #501](https://github.com/apache/hertzbeat/pull/501) @@ -84,7 +84,6 @@ Feature: 12. [add Prometheus exporter metrics parser and IoTDB monitor #505](https://github.com/apache/hertzbeat/pull/505) @Ceilzcx 13. [support apache shenyu metrics monitoring #507](https://github.com/apache/hertzbeat/pull/507) - Bugfix. 1. [[manager] fix cross domain problem in SecurityCorsConfiguration #469](https://github.com/apache/hertzbeat/pull/469) @zenan08 @@ -96,4 +95,4 @@ Bugfix. 7. [监控k8s问题issue描述与解决方案 #511](https://github.com/apache/hertzbeat/pull/511) @MrAndyMing 8. [[manager] springboot2 monitor support base path config #515](https://github.com/apache/hertzbeat/pull/515) ----- +---- diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-05-monitor-iotdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-05-monitor-iotdb.md index 95283ff6ada..7aa20f2dbda 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-05-monitor-iotdb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-05-monitor-iotdb.md @@ -8,110 +8,109 @@ tags: [opensource, practice] keywords: [开源监控系统, 开源数据库监控, IotDB数据库监控] --- -## 使用 HertzBeat 对物联网数据库 IoTDB 进行监控实践,5分钟搞定! +## 使用 HertzBeat 对物联网数据库 IoTDB 进行监控实践,5分钟搞定 -### IoTDB 介绍 +### IoTDB 介绍 -> Apache IoTDB (Internet of Things Database) 是一款时序数据库管理系统,可以为用户提供数据收集、存储和分析等服务。 -> IoTDB由于其轻量级架构、高性能和高可用的特性,以及与 Hadoop 和 Spark 生态的无缝集成,满足了工业 IoT 领域中海量数据存储、高吞吐量数据写入和复杂数据查询分析的需求。 +> Apache IoTDB (Internet of Things Database) 是一款时序数据库管理系统,可以为用户提供数据收集、存储和分析等服务。 +> IoTDB由于其轻量级架构、高性能和高可用的特性,以及与 Hadoop 和 Spark 生态的无缝集成,满足了工业 IoT 领域中海量数据存储、高吞吐量数据写入和复杂数据查询分析的需求。 -### HertzBeat 介绍 +### HertzBeat 介绍 -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -> 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书)。 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +> 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书)。 > HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 ### 在 HertzBeat 5分钟搞定监控 IoTDB -#### 操作前提,您已拥有 IoTDB 环境和 HertzBeat 环境。 +#### 操作前提,您已拥有 IoTDB 环境和 HertzBeat 环境 -- IoTDB [部署安装文档](https://iotdb.apache.org/UserGuide/V0.13.x/QuickStart/QuickStart.html) -- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) +- IoTDB [部署安装文档](https://iotdb.apache.org/UserGuide/V0.13.x/QuickStart/QuickStart.html) +- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) -#### 一. 在 IoTDB 端开启`metrics`功能,它将提供 prometheus metrics 形式的接口数据。 +#### 一. 在 IoTDB 端开启`metrics`功能,它将提供 prometheus metrics 形式的接口数据 -1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server -``` -# 是否启动监控模块,默认为false -enableMetric: true +1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server -# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 -metricReporterList: - - JMX - - PROMETHEUS -``` + ```yaml + # 是否启动监控模块,默认为false + enableMetric: true + + # 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 + metricReporterList: + - JMX + - PROMETHEUS + ``` -2. 重启 IoTDB, 打开浏览器或者用curl 访问 http://ip:9091/metrics, 就能看到metric数据了。 +2. 重启 IoTDB, 打开浏览器或者用curl 访问 , 就能看到metric数据了。 -#### 二. 在 HertzBeat 监控页面添加 IoTDB 监控 +#### 二. 在 HertzBeat 监控页面添加 IoTDB 监控 -1. 点击新增IoTDB监控 +1. 点击新增IoTDB监控 -路径:菜单 -> 数据库监控 -> IoTDB监控 -> 新增IoTDB监控 + 路径:菜单 -> 数据库监控 -> IoTDB监控 -> 新增IoTDB监控 -![hertzbeat](/img/blog/monitor-iotdb-1.png) + ![hertzbeat](/img/blog/monitor-iotdb-1.png) -2. 配置监控IoTDB所需参数 +2. 配置监控IoTDB所需参数 -在监控页面填写 IoTDB **服务IP**,**监控端口**(默认9091),最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/iotdb/) https://hertzbeat.com/docs/help/iotdb/ + 在监控页面填写 IoTDB **服务IP**,**监控端口**(默认9091),最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/iotdb/) -![hertzbeat](/img/blog/monitor-iotdb-2.png) + ![hertzbeat](/img/blog/monitor-iotdb-2.png) -3. 完成✅,现在我们已经添加好对 IoTDB 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 IoTDB 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-iotdb-3.png) + ![hertzbeat](/img/blog/monitor-iotdb-3.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 IoTDB的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 IoTDB的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-iotdb-4.png) + ![hertzbeat](/img/blog/monitor-iotdb-4.png) -5. 点击**监控历史详情TAB** 即可浏览 IoTDB的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 IoTDB的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-iotdb-5.png) + ![hertzbeat](/img/blog/monitor-iotdb-5.png) **完成DONE!通过上面几步,总结起来其实也就是两步** -- **一步开启 IoTDB 端`metrics`功能** -- **另一步在 HertzBeat 监控页面配置IP端口添加监控即可** - -**这样我们就完成了对 IoTDB 的监控,我们可以随时查看监控详情指标信息来观测其服务状态,但人不可能是一直去看,总有要休息的时候,监控往往伴随着告警,当监控指标发生异常,监控系统需要能及时通知到负责人** +- **一步开启 IoTDB 端`metrics`功能** +- **另一步在 HertzBeat 监控页面配置IP端口添加监控即可** -**接下来我们就来一步一步教您配置 HertzBeat 系统里的阈值告警通知** +**这样我们就完成了对 IoTDB 的监控,我们可以随时查看监控详情指标信息来观测其服务状态,但人不可能是一直去看,总有要休息的时候,监控往往伴随着告警,当监控指标发生异常,监控系统需要能及时通知到负责人** -#### 三. 在 HertzBeat 系统添加 IoTDB 指标阈值告警 +**接下来我们就来一步一步教您配置 HertzBeat 系统里的阈值告警通知** -1. 对某个重要指标配置阈值告警 +#### 三. 在 HertzBeat 系统添加 IoTDB 指标阈值告警 -路径:菜单 -> 告警阈值 -> 新增阈值 +1. 对某个重要指标配置阈值告警 -- 选择配置的指标对象,IotDB监控有非常多的指标,其中有个指标关系到节点的状态 `cluster_node_status` -> `status` (节点状态,1=online 2=offline)。 -- 这里我们就配置当此指标 `status==2` 时发出告警,告警级别为**紧急告警**,一次即触发,具体如下图。 + 路径:菜单 -> 告警阈值 -> 新增阈值 -![hertzbeat](/img/blog/monitor-iotdb-6.png) + - 选择配置的指标对象,IotDB监控有非常多的指标,其中有个指标关系到节点的状态 `cluster_node_status` -> `status` (节点状态,1=online 2=offline)。 + - 这里我们就配置当此指标 `status==2` 时发出告警,告警级别为**紧急告警**,一次即触发,具体如下图。 + ![hertzbeat](/img/blog/monitor-iotdb-6.png) -2. 新增消息通知接收人 +2. 新增消息通知接收人 -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-1.png) + ![hertzbeat](/img/blog/alert-notice-1.png) -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-2.png) + ![hertzbeat](/img/blog/alert-notice-2.png) +### 完毕,现在坐等告警消息过来了。叮叮叮叮 -### 完毕,现在坐等告警消息过来了。叮叮叮叮 - -``` +```text [HertzBeat告警通知] 告警目标对象 : iotdb.cluster_node_status.status 所属监控任务ID : 205540620349696 @@ -121,16 +120,16 @@ metricReporterList: 内容详情 : 监控到 IOTDB 节点 127.0.0.1 状态 OFFLINE, 请及时处理。 ``` -## 小结 +## 小结 -这篇实践文章带我们体验了如何使用 HertzBeat 监控 IoTDB 数据库指标数据,可以发现将 监控-告警-通知 集一体的 HertzBeat 在操作与使用方面更加的便捷,在页面上简单点一点就能把 IoTDB 纳入监控,再也不需要部署多个组件,写多个有门槛的YML配置文件了。 +这篇实践文章带我们体验了如何使用 HertzBeat 监控 IoTDB 数据库指标数据,可以发现将 监控-告警-通知 集一体的 HertzBeat 在操作与使用方面更加的便捷,在页面上简单点一点就能把 IoTDB 纳入监控,再也不需要部署多个组件,写多个有门槛的YML配置文件了。 -IoTDB Github: https://github.com/apache/iotdb -HertzBeat Github: https://github.com/apache/hertzbeat +IoTDB Github: +HertzBeat Github: **欢迎了解使用Star支持哦!** -只需要一条docker命令即可安装体验heartbeat : +只需要一条docker命令即可安装体验heartbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` -注意⚠️HertzBeat v1.2.3 版本支持 IoTDB v0.12 v0.13, 由于其v1.0刚发布, 暂未对此版本全部指标兼容。 +注意⚠️HertzBeat v1.2.3 版本支持 IoTDB v0.12 v0.13, 由于其v1.0刚发布, 暂未对此版本全部指标兼容。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-08-monitor-shenyu.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-08-monitor-shenyu.md index d8a2b6ca37b..b643540e9ee 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-08-monitor-shenyu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-01-08-monitor-shenyu.md @@ -7,11 +7,11 @@ author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 tags: [opensource, practice] --- -## 使用 HertzBeat 对 API 网关 Apache ShenYu 进行监控实践,5分钟搞定! +## 使用 HertzBeat 对 API 网关 Apache ShenYu 进行监控实践,5分钟搞定 -### Apache ShenYu 介绍 +### Apache ShenYu 介绍 -> Apache ShenYu 一个异步的,高性能的,跨语言的,响应式的 API 网关。 +> Apache ShenYu 一个异步的,高性能的,跨语言的,响应式的 API 网关。 - 代理:支持Apache Dubbo,Spring Cloud,gRPC,Motan,SOFA,TARS,WebSocket,MQTT - 安全性:签名,OAuth 2.0,JSON Web令牌,WAF插件 @@ -22,128 +22,126 @@ tags: [opensource, practice] - 集群:NGINX、Docker、Kubernetes - 语言:提供.NET,Python,Go,Java客户端用于API注册 +### HertzBeat 介绍 -### HertzBeat 介绍 - -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -> 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书)。 -> HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +> 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书)。 +> HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 ### 在 HertzBeat 5分钟搞定监控 Apache ShenYu -#### 操作前提,您已拥有 ShenYu 环境和 HertzBeat 环境。 +#### 操作前提,您已拥有 ShenYu 环境和 HertzBeat 环境 -- ShenYu [部署安装文档](https://shenyu.apache.org/zh/docs/deployment/deployment-before) -- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) +- ShenYu [部署安装文档](https://shenyu.apache.org/zh/docs/deployment/deployment-before) +- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) -#### 一. 在 ShenYu 端开启`metrics`插件,它将提供 metrics 接口数据。 +#### 一. 在 ShenYu 端开启`metrics`插件,它将提供 metrics 接口数据 -> 插件是 Apache ShenYu 网关的核心执行者,指标数据采集在 `ShenYu` 也是以插件的形式集成的 - `Metrics插件`。 +> 插件是 Apache ShenYu 网关的核心执行者,指标数据采集在 `ShenYu` 也是以插件的形式集成的 - `Metrics插件`。 > `Metrics插件`是网关用来监控自身运行状态(`JVM`相关),请求响应等相关指标进行监测。 1. 在网关的 `pom.xml` 文件中添加 `metrics插件` 的依赖。 -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` + ```xml + + org.apache.shenyu + shenyu-spring-boot-starter-plugin-metrics + ${project.version} + + ``` 2. `metric`插件 采集默认是关闭的, 在网关的配置`yaml`文件中编辑如下内容: -```yaml -shenyu: - metrics: - enabled: true #设置为 true 表示开启 - name : prometheus - host: 127.0.0.1 #暴露的ip - port: 8090 #暴露的端口 - jmxConfig: #jmx配置 - props: - jvm_enabled: true #开启jvm的监控指标 -``` + ```yaml + shenyu: + metrics: + enabled: true #设置为 true 表示开启 + name : prometheus + host: 127.0.0.1 #暴露的ip + port: 8090 #暴露的端口 + jmxConfig: #jmx配置 + props: + jvm_enabled: true #开启jvm的监控指标 + ``` -3. 重启 ShenYu网关, 打开浏览器或者用curl 访问 `http://ip:8090`, 就能看到metric数据了。 +3. 重启 ShenYu网关, 打开浏览器或者用curl 访问 `http://ip:8090`, 就能看到metric数据了。 -#### 二. 在 HertzBeat 监控页面添加 ShenYu 监控 +#### 二. 在 HertzBeat 监控页面添加 ShenYu 监控 -1. 点击新增 ShenYu 监控 +1. 点击新增 ShenYu 监控 -路径:菜单 -> 中间件监控 -> ShenYu监控 -> 新增ShenYu监控 + 路径:菜单 -> 中间件监控 -> ShenYu监控 -> 新增ShenYu监控 -![hertzbeat](/img/blog/monitor-shenyu-1.png) + ![hertzbeat](/img/blog/monitor-shenyu-1.png) -2. 配置监控 ShenYu 所需参数 +2. 配置监控 ShenYu 所需参数 -在监控页面填写 ShenYu **服务IP**,**监控端口**(默认8090),最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/shenyu/) https://hertzbeat.com/docs/help/shenyu/ + 在监控页面填写 ShenYu **服务IP**,**监控端口**(默认8090),最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/shenyu/) -![hertzbeat](/img/blog/monitor-shenyu-1.png) + ![hertzbeat](/img/blog/monitor-shenyu-1.png) -3. 完成✅,现在我们已经添加好对 ShenYu 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 ShenYu 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-shenyu-3.png) + ![hertzbeat](/img/blog/monitor-shenyu-3.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 ShenYu 的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 ShenYu 的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-shenyu-4.png) + ![hertzbeat](/img/blog/monitor-shenyu-4.png) -5. 点击**监控历史详情TAB** 即可浏览 ShenYu 的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 ShenYu 的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-shenyu-5.png) + ![hertzbeat](/img/blog/monitor-shenyu-5.png) -![hertzbeat](/img/blog/monitor-shenyu-6.png) + ![hertzbeat](/img/blog/monitor-shenyu-6.png) **DONE!完成啦!通过上面几步,总结起来其实也就只用两步** -- **第一步开启 ShenYu 端`metrics`插件功能** -- **第二步在 HertzBeat 监控页面配置IP端口添加监控即可** + +- **第一步开启 ShenYu 端`metrics`插件功能** +- **第二步在 HertzBeat 监控页面配置IP端口添加监控即可** :::tip 通过上面的两步我们就完成了对 Apache ShenYu 的监控,我们可以在 HertzBeat 随时查看监控详情指标信息来观测其服务状态。 当然只是看肯定是不完美的,监控往往伴随着告警阈值,当 ShenYu 的某些指标超出我们的期望值或异常时,能及时的通知到我们对应的负责人,负责人收到通知处理问题,这样才是一个完整的监控告警流程。 ::: -**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让 ShenYu 的指标异常时,及时通知给我们** +**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让 ShenYu 的指标异常时,及时通知给我们** -#### 三. 在 HertzBeat 系统添加 ShenYu 指标阈值告警 +#### 三. 在 HertzBeat 系统添加 ShenYu 指标阈值告警 -1. 对某个重要指标配置告警阈值 +1. 对某个重要指标配置告警阈值 -路径:菜单 -> 告警阈值 -> 新增阈值 + 路径:菜单 -> 告警阈值 -> 新增阈值 -- 选择配置的指标对象,ShenYu 监控有非常多的指标,我们举例对 `打开的文件描述符的数量` `process_open_fds` -> `value` 这个指标进行阈值设置, 当服务端打开文件描述符数量大于3000时发出告警。 -- 这里我们就配置当此指标`process_open_fds` 的 `value>3000` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 - -![hertzbeat](/img/blog/monitor-shenyu-7.png) + - 选择配置的指标对象,ShenYu 监控有非常多的指标,我们举例对 `打开的文件描述符的数量` `process_open_fds` -> `value` 这个指标进行阈值设置, 当服务端打开文件描述符数量大于3000时发出告警。 + - 这里我们就配置当此指标`process_open_fds` 的 `value>3000` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 + ![hertzbeat](/img/blog/monitor-shenyu-7.png) 2. 新增消息通知接收人 -> 配置接收人,让告警消息知道要发给谁,用什么方式发。 - -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + > 配置接收人,让告警消息知道要发给谁,用什么方式发。 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -![hertzbeat](/img/blog/alert-notice-1.png) + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 + ![hertzbeat](/img/blog/alert-notice-1.png) -> 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-2.png) + > 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 + ![hertzbeat](/img/blog/alert-notice-2.png) -### 完毕,现在坐等告警消息过来啦。叮叮叮叮 +### 完毕,现在坐等告警消息过来啦。叮叮叮叮 -``` +```text [HertzBeat告警通知] 告警目标对象 : shenyu.process_open_fds.value 所属监控任务ID : 205540620349696 @@ -153,16 +151,16 @@ shenyu: 内容详情 : 请注意⚠️ ShenYu网关打开的文件描述符的数量为 3044 超过3000 ``` -## 小结 +## 小结 :::tip 这篇实践文章带我们体验了如何使用 HertzBeat 监控 Apache ShenYu 指标数据,可以发现将 `监控-告警-通知` 集一体的 HertzBeat 在操作与使用方面更加的便捷,在页面上简单点一点就能把 ShenYu 纳入监控,再也不需要部署多个组件,写多个有门槛的YML配置文件了。 ::: -Apache ShenYu Github: https://github.com/apache/shenyu -HertzBeat Github: https://github.com/apache/hertzbeat +Apache ShenYu Github: +HertzBeat Github: **欢迎了解使用Star支持哦!** -只需要一条docker命令即可安装体验heartbeat : +只需要一条docker命令即可安装体验heartbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-02-monitor-dynamic-tp.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-02-monitor-dynamic-tp.md index 16c8464fb36..539424907b1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-02-monitor-dynamic-tp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-02-monitor-dynamic-tp.md @@ -7,155 +7,153 @@ author_image_url: https://avatars.githubusercontent.com/u/24788200?s=400&v=4 tags: [opensource, practice] --- -## 使用 HertzBeat 对 线程池框架 DynamicTp 进行监控实践,5分钟搞定! +## 使用 HertzBeat 对 线程池框架 DynamicTp 进行监控实践,5分钟搞定 -### 线程池框架 DynamicTp 介绍 +### 线程池框架 DynamicTp 介绍 -> DynamicTp 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 +> DynamicTp 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 -- 支持对运行中线程池参数的动态修改,实时生效。 -- 实时监控线程池的运行状态,触发设置的报警策略时报警,报警信息推送办公平台。 -- 定时采集线程池指标数据,配合像 grafana 这种可视化监控平台做大盘监控。 +- 支持对运行中线程池参数的动态修改,实时生效。 +- 实时监控线程池的运行状态,触发设置的报警策略时报警,报警信息推送办公平台。 +- 定时采集线程池指标数据,配合像 grafana 这种可视化监控平台做大盘监控。 +### HertzBeat 介绍 -### HertzBeat 介绍 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +- 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 +- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? +- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -- 支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 -- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? -- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 +### 在 HertzBeat 5分钟搞定监控 DynamicTp -### 在 HertzBeat 5分钟搞定监控 DynamicTp +#### 操作前提,您已拥有 DynamicTp 环境和 HertzBeat 环境 -#### 操作前提,您已拥有 DynamicTp 环境和 HertzBeat 环境。 +- DynamicTp [集成接入文档](https://dynamictp.cn/guide/use/quick-start.html) +- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) -- DynamicTp [集成接入文档](https://dynamictp.cn/guide/use/quick-start.html) -- HertzBeat [部署安装文档](https://hertzbeat.com/docs/start/docker-deploy) +#### 一. 在 DynamicTp 端暴露出`DynamicTp`指标接口 `/actuator/dynamic-tp`,它将提供 metrics 接口数据 -#### 一. 在 DynamicTp 端暴露出`DynamicTp`指标接口 `/actuator/dynamic-tp`,它将提供 metrics 接口数据。 +1. 开启 SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 -1. 开启 SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` + ```yaml + management: + endpoints: + web: + exposure: + include: '*' + ``` 2. 重启后测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4 GB", - "totalMemory": "444 MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81 GB" - } -] -``` + ```json + [ + { + "poolName": "commonExecutor", + "corePoolSize": 1, + "maximumPoolSize": 1, + "queueType": "LinkedBlockingQueue", + "queueCapacity": 2147483647, + "queueSize": 0, + "fair": false, + "queueRemainingCapacity": 2147483647, + "activeCount": 0, + "taskCount": 0, + "completedTaskCount": 0, + "largestPoolSize": 0, + "poolSize": 0, + "waitTaskCount": 0, + "rejectCount": 0, + "rejectHandlerName": null, + "dynamic": false, + "runTimeoutCount": 0, + "queueTimeoutCount": 0 + }, + { + "maxMemory": "4 GB", + "totalMemory": "444 MB", + "freeMemory": "250.34 MB", + "usableMemory": "3.81 GB" + } + ] + ``` -#### 二. 在 HertzBeat 监控页面添加 DynamicTp 线程池监控 +#### 二. 在 HertzBeat 监控页面添加 DynamicTp 线程池监控 -1. 点击新增 DynamicTp 监控 +1. 点击新增 DynamicTp 监控 -路径:菜单 -> 中间件监控 -> DynamicTp监控 -> 新增DynamicTp监控 + 路径:菜单 -> 中间件监控 -> DynamicTp监控 -> 新增DynamicTp监控 -![hertzbeat](/img/blog/monitor-dynamic-tp-1.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-1.png) -2. 配置监控 DynamicTp 所需参数 +2. 配置监控 DynamicTp 所需参数 -在监控页面填写 DynamicTp **服务IP**,**监控端口**(默认8080),最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/dynamic_tp/) https://hertzbeat.com/docs/help/dynamic_tp/ + 在监控页面填写 DynamicTp **服务IP**,**监控端口**(默认8080),最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/dynamic_tp/) -![hertzbeat](/img/blog/monitor-dynamic-tp-2.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-2.png) -3. 完成✅,现在我们已经添加好对 DynamicTp 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 DynamicTp 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-dynamic-tp-1.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-1.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 DynamicTp线程池 的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 DynamicTp线程池 的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-dynamic-tp-3.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-3.png) -5. 点击**监控历史详情TAB** 即可浏览 DynamicTp线程池 的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 DynamicTp线程池 的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-dynamic-tp-4.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-4.png) -![hertzbeat](/img/blog/monitor-dynamic-tp-5.png) + ![hertzbeat](/img/blog/monitor-dynamic-tp-5.png) **DONE!完成啦!通过上面几步,总结起来其实也就只用两步** -- **第一步暴露 DynamicTp 端`metrics`端点`/actuator/dynamic-tp`** -- **第二步在 HertzBeat 监控页面配置IP端口添加监控即可** + +- **第一步暴露 DynamicTp 端`metrics`端点`/actuator/dynamic-tp`** +- **第二步在 HertzBeat 监控页面配置IP端口添加监控即可** :::tip 通过上面的两步我们就完成了对 DynamicTp 的监控,我们可以在 HertzBeat 随时查看监控详情指标信息来观测其服务状态。 当然只是看肯定是不完美的,监控往往伴随着告警阈值,当 DynamicTp 的线程池指标超出我们的期望值或异常时,能及时的通知到我们对应的负责人,负责人收到通知处理问题,这样才是一个完整的监控告警流程。 ::: -**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让 DynamicTp线程池 的指标异常时,及时通知给我们** +**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让 DynamicTp线程池 的指标异常时,及时通知给我们** -#### 三. 在 HertzBeat 系统添加 DynamicTp线程池 指标阈值告警 +#### 三. 在 HertzBeat 系统添加 DynamicTp线程池 指标阈值告警 -1. 对某个重要指标配置告警阈值 +1. 对某个重要指标配置告警阈值 -路径:菜单 -> 告警阈值 -> 新增阈值 + 路径:菜单 -> 告警阈值 -> 新增阈值 -- 选择配置的指标对象,DynamicTp监控主要是一些线程池相关指标,我们举例对 `运行超时线程数量` `thread_pool_running` -> `run_timeout_count` 这个指标进行阈值设置, 当线程运行超时数量大于1时发出告警。 -- 这里我们就配置当此指标`thread_pool_running` 的 `run_timeout_count>1` 时发出告警,告警级别为**严重告警**,三次即触发,具体如下图。 - -![hertzbeat](/img/blog/monitor-dynamic-tp-6.png) + - 选择配置的指标对象,DynamicTp监控主要是一些线程池相关指标,我们举例对 `运行超时线程数量` `thread_pool_running` -> `run_timeout_count` 这个指标进行阈值设置, 当线程运行超时数量大于1时发出告警。 + - 这里我们就配置当此指标`thread_pool_running` 的 `run_timeout_count>1` 时发出告警,告警级别为**严重告警**,三次即触发,具体如下图。 + ![hertzbeat](/img/blog/monitor-dynamic-tp-6.png) 2. 新增消息通知接收人 -> 配置接收人,让告警消息知道要发给谁,用什么方式发。 - -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + > 配置接收人,让告警消息知道要发给谁,用什么方式发。 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -![hertzbeat](/img/blog/alert-notice-1.png) + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 + ![hertzbeat](/img/blog/alert-notice-1.png) -> 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-2.png) + > 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 + ![hertzbeat](/img/blog/alert-notice-2.png) -### 完毕,现在坐等告警消息过来啦。叮叮叮叮 +### 完毕,现在坐等告警消息过来啦。叮叮叮叮 -``` +```text [HertzBeat告警通知] 告警目标对象 : dynamic_tp.thread_pool_running.run_timeout_count 所属监控任务ID : 205540620349493 @@ -165,16 +163,16 @@ management: 内容详情 : DynamicTp has run timeout thread, count is 2 ``` -## 小结 +## 小结 :::tip 这篇实践文章带我们体验了如何使用 HertzBeat 监控 DynamicTp线程池 指标数据,可以发现集 `监控-告警-通知` 的 HertzBeat 在操作与使用方面更加的便捷,只需页面上简单点一点就能把 DynamicTp线程池 纳入监控并告警通知,再也不需要部署多个组件写YML配置文件那些繁琐操作了。 ::: -DynamicTp Github: https://github.com/dromara/dynamic-tp -HertzBeat Github: https://github.com/apache/hertzbeat +DynamicTp Github: +HertzBeat Github: **欢迎了解使用Star支持哦!** -只需要一条docker命令即可安装体验heartbeat : +只需要一条docker命令即可安装体验heartbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-10-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-10-new-committer.md index abdd58e8f1c..9f3a66ca7e9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-10-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-10-new-committer.md @@ -9,7 +9,7 @@ tags: [opensource] ![hertzBeat](/img/blog/new-committer.png) -# 欢迎 HertzBeat 新晋两位 Committer +## 欢迎 HertzBeat 新晋两位 Committer > 非常高兴 HertzBeat 开源社区又迎来了两位新晋社区 Committer, 有来自一线的研发小组leader,也有来自大厂的实习生,让我们来了解下他们的开源经历吧! @@ -64,64 +64,58 @@ github:TJxiaobao 首先要在这里感谢🙏花城师兄,因为当时自己想学习一些优秀的 `Java` 项目。然后在吃饭的时候向师兄请教了一下有没有好的项目推荐,恰好这时师兄把我推荐给了tom哥。当我亲自使用了 `hertzbeat` 的时候真的是发现了新的大陆,相比较于自己之前接触简单的 `Java` 项目,不论是 `hertzbeat` 的架构设计,还是它的实用功能都深深折服了我。此时一颗 `想要贡献自己的一份力量` 的种子已经在我的心中种下。 - - ### 🌻 开始提交PR 在 Oct 20, 2022 是我第一次提交 `PR` 的时间,虽然本次 `PR` 是简单的翻译注释,看着技术含量不是很高。但是他也能让我更快的熟悉项目的业务逻辑和架构设计,能为以后的贡献打下坚实的基础。而这次 `PR` 也是我迈向开源的第一步,也是让我爱上开源的起点! - ### 🌻 持续的开源贡献和收获 从第一次 `PR` 到现在,参加 `hertzbeat` 开源项目已经有一段时间了,也贡献了一小部分,也成长收获了很多。具体如下。 **贡献:** -- 1、实现对 docker 容器的监控。 -- 2、完成 国产数据库 DM 监控 -- 3、编写相对应业务的单测。 -- 4、部分注释的英文翻译。 +* 1、实现对 docker 容器的监控。 +* 2、完成 国产数据库 DM 监控 +* 3、编写相对应业务的单测。 +* 4、部分注释的英文翻译。 **收获:** -- 1、技术能力得到进一步的提升。 -- 2、开阔自己的眼界。 -- 3、从大佬们身上学到了很多知识。 - +* 1、技术能力得到进一步的提升。 +* 2、开阔自己的眼界。 +* 3、从大佬们身上学到了很多知识。 ### 🌻 感谢社区小伙伴 感谢无偿帮助过我或给过我启发的小伙伴(排名不分先后):tomsun28(tom哥),花城(师兄) - ### 🌻 对新人的一点建议 首先我也是一枚新手村的萌新啦,但是我可以把我的一些经验分享给大家,希望能给大家有所帮助。 -- 1、不要过于心急,要沉静身心了解各个模块的大致实现逻辑。 -- 2、通过使用不同的功能,并 debug 来看看各个功能的底层实现原理。 -- 3、慢慢的尝试阅读源码,并理解。 -- 4、如果遇见bug,可以直接反馈到 isses,也可以自己尝试解决嘿嘿。 - +* 1、不要过于心急,要沉静身心了解各个模块的大致实现逻辑。 +* 2、通过使用不同的功能,并 debug 来看看各个功能的底层实现原理。 +* 3、慢慢的尝试阅读源码,并理解。 +* 4、如果遇见bug,可以直接反馈到 isses,也可以自己尝试解决嘿嘿。 ## What is HertzBeat? > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需Agent的实时监控告警工具。应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Discord Slack Telegram)。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 +> +> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 > 您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? - +> > `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ## ⛄ Supported -- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 -- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB -- Linux, Ubuntu, CentOS, Windows -- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ -- Kubernetes, Docker -- 和更多您的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 +* 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 +* Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB +* Linux, Ubuntu, CentOS, Windows +* Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ +* Kubernetes, Docker +* 和更多您的自定义监控。 +* 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-11-monitor-mysql.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-11-monitor-mysql.md index df5b379f995..68d41d4be9c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-11-monitor-mysql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-11-monitor-mysql.md @@ -8,104 +8,102 @@ tags: [opensource, practice] keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] --- -## 使用开源实时监控工具 HertzBeat 对 Mysql 数据库监控告警实践,5分钟搞定! +## 使用开源实时监控工具 HertzBeat 对 Mysql 数据库监控告警实践,5分钟搞定 -### Mysql 数据库介绍 +### Mysql 数据库介绍 > MySQL是一个开源关系型数据库管理系统,由瑞典MySQL AB 公司开发,属于 Oracle 旗下产品。MySQL 是最流行的开源关系型数据库管理系统之一,在 WEB 应用方面,MySQL是最好的 RDBMS (Relational Database Management System,关系数据库管理系统) 应用软件之一。 +### HertzBeat 介绍 -### HertzBeat 介绍 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +- 集**监控-告警-通知为一体**,支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 +- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? +- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -- 集**监控-告警-通知为一体**,支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 -- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? -- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 +### 在 HertzBeat 5分钟搞定对 Mysql 数据库监控 -### 在 HertzBeat 5分钟搞定对 Mysql 数据库监控 +#### 操作前提,您已拥有 Mysql 环境和 HertzBeat 环境 -#### 操作前提,您已拥有 Mysql 环境和 HertzBeat 环境。 - -- Mysql [安装部署文档](https://www.runoob.com/mysql/mysql-install.html) +- Mysql [安装部署文档](https://www.runoob.com/mysql/mysql-install.html) - HertzBeat [安装部署文档](https://hertzbeat.com/docs/start/docker-deploy) -#### 在开源监控系统 HertzBeat 监控页面添加对 Mysql 数据库监控 +#### 在开源监控系统 HertzBeat 监控页面添加对 Mysql 数据库监控 -1. 点击新增 Mysql 监控 +1. 点击新增 Mysql 监控 -路径:菜单 -> 数据库监控 -> Mysql数据库 -> 新增Mysql数据库监控 + 路径:菜单 -> 数据库监控 -> Mysql数据库 -> 新增Mysql数据库监控 -![hertzbeat](/img/blog/monitor-mysql-1.png) + ![hertzbeat](/img/blog/monitor-mysql-1.png) -2. 配置新增监控 Mysql 数据库所需参数 +2. 配置新增监控 Mysql 数据库所需参数 -在监控页面填写 Mysql **服务IP**,**监控端口**(默认3306),**账户密码等**,最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/mysql/) https://hertzbeat.com/docs/help/mysql/ + 在监控页面填写 Mysql **服务IP**,**监控端口**(默认3306),**账户密码等**,最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考[帮助文档](https://hertzbeat.com/docs/help/mysql/) -![hertzbeat](/img/blog/monitor-mysql-2.png) + ![hertzbeat](/img/blog/monitor-mysql-2.png) -3. 完成✅,现在我们已经添加好对 Mysql数据库 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 Mysql数据库 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-mysql-1.png) + ![hertzbeat](/img/blog/monitor-mysql-1.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 Mysql数据库 的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 Mysql数据库 的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-mysql-3.png) + ![hertzbeat](/img/blog/monitor-mysql-3.png) -5. 点击**监控历史详情TAB** 即可浏览 Mysql数据库 的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 Mysql数据库 的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-mysql-4.png) + ![hertzbeat](/img/blog/monitor-mysql-4.png) **DONE!完成啦!通过上面几步,总结起来其实也就只用一步即可** -- **在 HertzBeat 监控页面配置IP端口账户密码添加 Mysql 监控即可** + +- **在 HertzBeat 监控页面配置IP端口账户密码添加 Mysql 监控即可** :::tip 通过上面的两步我们就完成了对 Mysql数据库 的监控,我们可以在 HertzBeat 随时查看监控详情指标信息来观测其服务状态。 当然只是看肯定是不完美的,监控往往伴随着告警阈值,当 Mysql 数据库的指标超出我们的期望值或异常时,能及时的通知到我们对应的负责人,负责人收到通知处理问题,这样才是一个完整的监控告警流程。 ::: -**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让及时发现 Mysql 数据库的指标异常时,及时通知给我们** - -#### 三. 在 HertzBeat 系统添加 Mysql 数据库指标阈值告警 +**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,让及时发现 Mysql 数据库的指标异常时,及时通知给我们** -1. 对某个重要指标配置告警阈值 +#### 三. 在 HertzBeat 系统添加 Mysql 数据库指标阈值告警 -路径:菜单 -> 阈值规则 -> 新增阈值 +1. 对某个重要指标配置告警阈值 -- 选择配置的指标对象,Mysql 数据库监控主要是数据库性能等相关指标,我们举例对 `查询缓存命中率` `cache` -> `query_cache_hit_rate` 这个指标进行阈值设置, 当Mysql的查询缓存命中率很低小于30%时发出告警。 -- 这里我们就配置当此指标`cache` 的 `query_cache_hit_rate<30` 时发出告警,告警级别为**严重告警**,三次即触发,具体如下图。 + 路径:菜单 -> 阈值规则 -> 新增阈值 -![hertzbeat](/img/blog/monitor-mysql-5.png) + - 选择配置的指标对象,Mysql 数据库监控主要是数据库性能等相关指标,我们举例对 `查询缓存命中率` `cache` -> `query_cache_hit_rate` 这个指标进行阈值设置, 当Mysql的查询缓存命中率很低小于30%时发出告警。 + - 这里我们就配置当此指标`cache` 的 `query_cache_hit_rate<30` 时发出告警,告警级别为**严重告警**,三次即触发,具体如下图。 -![hertzbeat](/img/blog/monitor-mysql-6.png) + ![hertzbeat](/img/blog/monitor-mysql-5.png) + ![hertzbeat](/img/blog/monitor-mysql-6.png) 2. 新增消息通知接收人 -> 配置接收人,让告警消息知道要发给谁,用什么方式发。 + > 配置接收人,让告警消息知道要发给谁,用什么方式发。 -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-1.png) + ![hertzbeat](/img/blog/alert-notice-1.png) -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -> 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 + > 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 -![hertzbeat](/img/blog/alert-notice-2.png) + ![hertzbeat](/img/blog/alert-notice-2.png) +### 完毕,现在坐等告警消息过来啦。叮叮叮叮 -### 完毕,现在坐等告警消息过来啦。叮叮叮叮 - -``` +```text [HertzBeat告警通知] 告警目标对象 : mysql.cahce.query_cache_hit_rate 所属监控任务ID : 205540620394932 @@ -115,17 +113,17 @@ keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] 内容详情 : mysql db query_cache_hit_rate is too low, now is 20. ``` -## 小结 +## 小结 :::tip 这篇实践文章带我们体验了如何使用开源实时监控工具 HertzBeat 来监控 Mysql 数据库指标数据,可以发现集 `监控-告警-通知` 的 HertzBeat 在操作与使用方面更加的便捷,只需页面上简单点一点就能把 Mysql 数据库纳入监控并告警通知,再也不需要部署多个组件编写配置文件那些繁琐操作了。 ::: -Mysql Github: https://github.com/mysql/mysql-server -HertzBeat Github: https://github.com/apache/hertzbeat +Mysql Github: +HertzBeat Github: **欢迎了解使用支持Star哦!** -> 只需要一条docker命令即可安装体验heartbeat: +> 只需要一条docker命令即可安装体验heartbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-15-monitor-linux.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-15-monitor-linux.md index 3b491e6fe48..6286fdaeaa0 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-15-monitor-linux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-02-15-monitor-linux.md @@ -8,166 +8,163 @@ tags: [opensource, practice] keywords: [开源监控系统, 操作系统监控, Linux监控] --- -## 使用开源实时监控工具 HertzBeat 对 Linux 操作系统的监控告警实践,5分钟搞定! +## 使用开源实时监控工具 HertzBeat 对 Linux 操作系统的监控告警实践,5分钟搞定 -### HertzBeat 介绍 +### HertzBeat 介绍 -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -- 集**监控-告警-通知为一体**,支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 -- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? -- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 +- 集**监控-告警-通知为一体**,支持对应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 +- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? +- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -Github: https://github.com/apache/hertzbeat +Github: -### 在 HertzBeat 5分钟搞定对 Linux 的监控 +### 在 HertzBeat 5分钟搞定对 Linux 的监控 -#### 操作前提,您已拥有 Linux 环境和 HertzBeat 环境。 +#### 操作前提,您已拥有 Linux 环境和 HertzBeat 环境 - HertzBeat [安装部署文档](https://hertzbeat.com/docs/start/docker-deploy) -#### 在开源监控系统 HertzBeat 监控页面添加对 Linux 操作系统监控 +#### 在开源监控系统 HertzBeat 监控页面添加对 Linux 操作系统监控 -1. 点击新增 Linux 监控 +1. 点击新增 Linux 监控 -路径:菜单 -> 操作系统监控 -> Linux操作系统 -> 新增Linux操作系统监控 + 路径:菜单 -> 操作系统监控 -> Linux操作系统 -> 新增Linux操作系统监控 -![hertzbeat](/img/blog/monitor-linux-1.png) + ![hertzbeat](/img/blog/monitor-linux-1.png) -2. 配置新增监控 Linux 所需参数 +2. 配置新增监控 Linux 所需参数 -在监控页面填写 Linux **对端IP**,**SSH端口**(默认22),**账户密码等**,最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考帮助文档 https://hertzbeat.com/docs/help/mysql/ + 在监控页面填写 Linux **对端IP**,**SSH端口**(默认22),**账户密码等**,最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考帮助文档 -![hertzbeat](/img/blog/monitor-linux-2.png) + ![hertzbeat](/img/blog/monitor-linux-2.png) -3. 完成✅,现在我们已经添加好对 Linux 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 Linux 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-linux-3.png) + ![hertzbeat](/img/blog/monitor-linux-3.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 Linux 的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 Linux 的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-linux-4.png) + ![hertzbeat](/img/blog/monitor-linux-4.png) -![hertzbeat](/img/blog/monitor-linux-7.png) + ![hertzbeat](/img/blog/monitor-linux-7.png) -5. 点击**监控历史详情TAB** 即可浏览 Linux 的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 Linux 的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-linux-5.png) + ![hertzbeat](/img/blog/monitor-linux-5.png) -![hertzbeat](/img/blog/monitor-linux-6.png) + ![hertzbeat](/img/blog/monitor-linux-6.png) **DONE!完成啦!不需要我们去部署agent或者各种繁琐操作,是不是很简单** -- **只需一步在 HertzBeat 监控页面配置IP端口账户密码添加 Linux 监控即可** +- **只需一步在 HertzBeat 监控页面配置IP端口账户密码添加 Linux 监控即可** ### Linux 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | :::tip 通过上面我们就完成了对 Linux 的监控,我们可以在 HertzBeat 随时查看Linux的各种指标状态和可用性。 当然不可能人工一直实时查看指标,监控往往伴随着告警阈值,当 Linux 的性能指标超出我们的阈值或Linux本身异常时,能及时的通知到我们对应的负责人,负责人收到通知处理,这样才是一个完整的监控告警流程。 ::: -**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,当 Linux 的指标异常时,及时通知给我们** - -#### 三. 在 HertzBeat 系统添加 Linux 指标阈值告警 +**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,当 Linux 的指标异常时,及时通知给我们** -1. 对某个重要指标配置告警阈值 +#### 三. 在 HertzBeat 系统添加 Linux 指标阈值告警 -路径:菜单 -> 阈值规则 -> 新增阈值 +1. 对某个重要指标配置告警阈值 -- 选择配置的指标对象,Linux 监控主要是cpu 内存 磁盘 网络性能等相关指标,我们举例对 `CPU利用率` `cpu` -> `usage` 这个指标进行阈值设置, 当Linux cpu利用率大于90%时发出告警。 -- 这里我们就配置当此指标`cpu` 的 `usage>90` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 + 路径:菜单 -> 阈值规则 -> 新增阈值 -![hertzbeat](/img/blog/monitor-linux-8.png) + - 选择配置的指标对象,Linux 监控主要是cpu 内存 磁盘 网络性能等相关指标,我们举例对 `CPU利用率` `cpu` -> `usage` 这个指标进行阈值设置, 当Linux cpu利用率大于90%时发出告警。 + - 这里我们就配置当此指标`cpu` 的 `usage>90` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 -![hertzbeat](/img/blog/monitor-linux-9.png) + ![hertzbeat](/img/blog/monitor-linux-8.png) + ![hertzbeat](/img/blog/monitor-linux-9.png) 2. 新增消息通知接收人 -> 配置接收人,让告警消息知道要发给谁,用什么方式发。 - -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + > 配置接收人,让告警消息知道要发给谁,用什么方式发。 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -![hertzbeat](/img/blog/alert-notice-1.png) + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 + ![hertzbeat](/img/blog/alert-notice-1.png) -> 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-2.png) + > 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 + ![hertzbeat](/img/blog/alert-notice-2.png) -### 完毕,现在坐等告警消息过来啦。叮叮叮叮 +### 完毕,现在坐等告警消息过来啦。叮叮叮叮 -``` +```text [HertzBeat告警通知] 告警目标对象 : linux.cpu.usage 所属监控任务ID : 483783444839382 @@ -177,34 +174,34 @@ Github: https://github.com/apache/hertzbeat 内容详情 : The linux cpu usage is too high. now is 95. ``` -## 小结 +## 小结 :::tip 这篇实践文章带我们体验了如何使用开源实时监控工具 HertzBeat 来监控 Linux 指标数据,可以发现集 `监控-告警-通知` 的 HertzBeat 在操作与使用方面更加的便捷,只需页面上简单点一点就能把 Linux 纳入监控并告警通知,再也不需要部署多个组件编写配置文件那些繁琐操作了。 ::: -> 只需要一条docker命令即可安装体验heartbeat: +> 只需要一条docker命令即可安装体验heartbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` ## What is HertzBeat? > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需Agent的实时监控告警工具。应用服务,数据库,操作系统,中间件,云原生等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Discord Slack Telegram)。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 +> +> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 > 您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? - +> > `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ## ⛄ Supported -- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 -- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB -- Linux, Ubuntu, CentOS, Windows -- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ -- Kubernetes, Docker -- 和更多您的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 +- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 +- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB +- Linux, Ubuntu, CentOS, Windows +- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ +- Kubernetes, Docker +- 和更多您的自定义监控。 +- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-15-hertzbeat-v1.3.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-15-hertzbeat-v1.3.0.md index a7843b11337..f53461152d4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-15-hertzbeat-v1.3.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-15-hertzbeat-v1.3.0.md @@ -10,28 +10,23 @@ keywords: [开源监控系统, 告警系统, Linux监控] 官网: hertzbeat.com | tancloud.cn - ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a9629ef5bb6e486cacddb899f1495c6e~tplv-k3u1fbpfcp-zoom-1.image) - - ### What is HertzBeat? -> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 +> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 +> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 > 支持更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - +> > 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 - +> > 您相信只需定义YML就能立刻适配一款K8s或Docker等新的监控类型吗? - ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4236e748f5ac4352b7cf4bb65ccf97aa~tplv-k3u1fbpfcp-zoom-1.image) +**Github: ** -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** ### v1.3.0 大版本来了 @@ -49,8 +44,7 @@ keywords: [开源监控系统, 告警系统, Linux监控] - 修复若干BUG,更完善的文档,重构了代码。 ----- - +--- 只需要一条docker命令即可安装体验heartbeat `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` @@ -89,11 +83,10 @@ Feature: 26. [[webapp] change alert define trigger times from max 10 to max 999 #706](https://github.com/apache/hertzbeat/pull/706) @Grass-Life 27. [[doc] change default locale i18n from zh-cn to en #725](https://github.com/apache/hertzbeat/pull/725) - Bugfix. 1. [[collector] bugfix oracle query error: ORA-01000 happen #618](https://github.com/apache/hertzbeat/pull/618) -2. [[manager]bugfix:update flink fields name, use _ replace - avoid alert_threshold_expr problem. #622](https://github.com/apache/hertzbeat/pull/622) @cuipiheqiuqiu +2. [[manager]bugfix:update flink fields name, use _replace - avoid alert_threshold_expr problem. #622](https://github.com/apache/hertzbeat/pull/622) @cuipiheqiuqiu 3. [[webapp] fix rule days not change when edit old notice rule item #628](https://github.com/apache/hertzbeat/pull/628) 4. [[webapp] update alert notice modal item span #630](https://github.com/apache/hertzbeat/pull/630) 5. [Update issue.md #654](https://github.com/apache/hertzbeat/pull/654) @ycilry @@ -115,14 +108,16 @@ Bugfix. 21. [bugfix job metrics set concurrent modification exception #723](https://github.com/apache/hertzbeat/pull/723) 22. [[script] modified the linux memory metrics specified script code #719](https://github.com/apache/hertzbeat/pull/719) 23. [[webapp] bugfix the cover of the big screen is too small #724](https://github.com/apache/hertzbeat/pull/724) ----- + +--- 升级注意⚠️. 对于之前使用iotdb或者tdengine来存储指标数据的用户,需要修改 application.yml 来关闭JPA存储 `warehouse.store.jpa.enabled` 如下: 修改 `application.yml` 并设置 `warehouse.store.jpa.enabled` 参数为 false -``` + +```yaml warehouse: store: jpa: @@ -130,25 +125,26 @@ warehouse: ``` 执行SQL脚本 -``` + +```shell ALTER table hzb_monitor modify job_id bigint default null; COMMIT; ``` ----- +--- ## ⛄ Supported -- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 -- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB, Redis集群 -- Linux, Ubuntu, CentOS, Windows -- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ -- Kubernetes, Docker -- Huawei Switch, HPE Switch, TP-LINK Switch, Cisco Switch -- 和更多你的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 +- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 +- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB, Redis集群 +- Linux, Ubuntu, CentOS, Windows +- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ +- Kubernetes, Docker +- Huawei Switch, HPE Switch, TP-LINK Switch, Cisco Switch +- 和更多你的自定义监控。 +- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-22-monitor-springboot2.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-22-monitor-springboot2.md index 3c05f91b58f..4dcc3a21c49 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-22-monitor-springboot2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-03-22-monitor-springboot2.md @@ -8,155 +8,152 @@ tags: [opensource, practice] keywords: [开源监控系统, SpringBoot监控, 监控告警] --- -## 使用开源实时监控工具 HertzBeat 对 SpringBoot2 应用的监控告警实践,5分钟搞定! +## 使用开源实时监控工具 HertzBeat 对 SpringBoot2 应用的监控告警实践,5分钟搞定 -### HertzBeat 介绍 +### HertzBeat 介绍 -> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 +> HertzBeat 是一款开源,易用友好的实时监控工具,无需Agent,拥有强大自定义监控能力。 -- 集**监控-告警-通知为一体**,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 -- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? -- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 +- 集**监控-告警-通知为一体**,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Slack Discord Telegram)。 +- 其将Http, Jmx, Ssh, Snmp, Jdbc, Prometheus等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? +- HertzBeat 的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -Github: https://github.com/apache/hertzbeat +Github: -### 在 HertzBeat 5分钟搞定对 SpringBoot2 应用的监控 +### 在 HertzBeat 5分钟搞定对 SpringBoot2 应用的监控 -#### 操作前提,您已拥有 SpringBoot2 应用环境和 HertzBeat 环境。 +#### 操作前提,您已拥有 SpringBoot2 应用环境和 HertzBeat 环境 -- HertzBeat [安装部署文档](https://hertzbeat.com/docs/start/docker-deploy) +- HertzBeat [安装部署文档](https://hertzbeat.com/docs/start/docker-deploy) -#### 一. 在 SpringBoot2 应用端暴露出`actuator`指标接口,它将提供 metrics 接口数据。 +#### 一. 在 SpringBoot2 应用端暴露出`actuator`指标接口,它将提供 metrics 接口数据 1. 开启 SpringBoot Actuator Endpoint 暴露出`metrics health env`指标接口 -```yaml -management: - endpoints: - web: - exposure: - include: - - 'metrics' - - 'health' - - 'env' - enabled-by-default: on -``` + ```yaml + management: + endpoints: + web: + exposure: + include: + - 'metrics' + - 'health' + - 'env' + enabled-by-default: on + ``` 2. 重启后测试访问指标接口 `ip:port/actuator` 是否有响应json数据如下: -```json -{ - "_links": { - "self": { - "href": "http://localhost:1157/actuator", - "templated": false - }, - "health-path": { - "href": "http://localhost:1157/actuator/health/{*path}", - "templated": true - }, - "health": { - "href": "http://localhost:1157/actuator/health", - "templated": false - }, - "env": { - "href": "http://localhost:1157/actuator/env", - "templated": false - }, - "env-toMatch": { - "href": "http://localhost:1157/actuator/env/{toMatch}", - "templated": true - }, - "metrics-requiredMetricName": { - "href": "http://localhost:1157/actuator/metrics/{requiredMetricName}", - "templated": true - }, - "metrics": { - "href": "http://localhost:1157/actuator/metrics", - "templated": false + ```json + { + "_links": { + "self": { + "href": "http://localhost:1157/actuator", + "templated": false + }, + "health-path": { + "href": "http://localhost:1157/actuator/health/{*path}", + "templated": true + }, + "health": { + "href": "http://localhost:1157/actuator/health", + "templated": false + }, + "env": { + "href": "http://localhost:1157/actuator/env", + "templated": false + }, + "env-toMatch": { + "href": "http://localhost:1157/actuator/env/{toMatch}", + "templated": true + }, + "metrics-requiredMetricName": { + "href": "http://localhost:1157/actuator/metrics/{requiredMetricName}", + "templated": true + }, + "metrics": { + "href": "http://localhost:1157/actuator/metrics", + "templated": false + } + } } - } -} -``` + ``` -#### 在开源监控系统 HertzBeat 监控页面添加对 SpringBoot2 应用监控 +#### 在开源监控系统 HertzBeat 监控页面添加对 SpringBoot2 应用监控 -1. 点击新增 SpringBoot2 监控 +1. 点击新增 SpringBoot2 监控 -路径:菜单 -> 应用服务监控 -> SpringBoot2 -> 新增SpringBoot2监控 + 路径:菜单 -> 应用服务监控 -> SpringBoot2 -> 新增SpringBoot2监控 -![hertzbeat](/img/blog/monitor-springboot2-1.png) + ![hertzbeat](/img/blog/monitor-springboot2-1.png) -2. 配置新增监控 SpringBoot2 所需参数 +2. 配置新增监控 SpringBoot2 所需参数 -在监控页面填写 SpringBoot2应用 **对端IP**,**服务端口**(默认8080),**账户密码等**,最后点击确定添加即可。 -其他参数如**采集间隔**,**超时时间**等可以参考帮助文档 https://hertzbeat.com/docs/help/ + 在监控页面填写 SpringBoot2应用 **对端IP**,**服务端口**(默认8080),**账户密码等**,最后点击确定添加即可。 + 其他参数如**采集间隔**,**超时时间**等可以参考帮助文档 -![hertzbeat](/img/blog/monitor-springboot2-2.png) + ![hertzbeat](/img/blog/monitor-springboot2-2.png) -3. 完成✅,现在我们已经添加好对 SpringBoot2应用 的监控了,查看监控列表即可看到我们的添加项。 +3. 完成✅,现在我们已经添加好对 SpringBoot2应用 的监控了,查看监控列表即可看到我们的添加项。 -![hertzbeat](/img/blog/monitor-springboot2-3.png) + ![hertzbeat](/img/blog/monitor-springboot2-3.png) -4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 SpringBoot2应用 的实时监控指标数据。 +4. 点击监控列表项的**操作**->**监控详情图标** 即可浏览 SpringBoot2应用 的实时监控指标数据。 -![hertzbeat](/img/blog/monitor-springboot2-4.png) + ![hertzbeat](/img/blog/monitor-springboot2-4.png) -5. 点击**监控历史详情TAB** 即可浏览 SpringBoot2应用 的历史监控指标数据图表📈。 +5. 点击**监控历史详情TAB** 即可浏览 SpringBoot2应用 的历史监控指标数据图表📈。 -![hertzbeat](/img/blog/monitor-springboot2-5.png) + ![hertzbeat](/img/blog/monitor-springboot2-5.png) **DONE!完成啦!不需要我们去部署agent或者各种繁琐操作,是不是很简单** -- **只需一步在 HertzBeat 监控页面配置IP端口添加 SpringBoot2应用 监控即可** - +- **只需一步在 HertzBeat 监控页面配置IP端口添加 SpringBoot2应用 监控即可** :::tip 通过上面我们就完成了对 SpringBoot2应用 的监控,我们可以在 HertzBeat 随时查看SpringBoot2应用的各种指标状态和可用性。 当然不可能人工一直实时查看指标,监控往往伴随着告警阈值,当 SpringBoot2应用 的性能指标超出我们的阈值或SpringBoot2应用本身异常时,能及时的通知到我们对应的负责人,负责人收到通知处理,这样才是一个完整的监控告警流程。 ::: -**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,当 SpringBoot2应用 的指标异常时,及时通知给我们** - -#### 三. 在 HertzBeat 系统添加 SpringBoot2应用 指标阈值告警 +**接下来我们就来一步一步演示如何配置 HertzBeat 系统里的阈值告警通知,当 SpringBoot2应用 的指标异常时,及时通知给我们** -1. 对某个重要指标配置告警阈值 +#### 三. 在 HertzBeat 系统添加 SpringBoot2应用 指标阈值告警 -路径:菜单 -> 阈值规则 -> 新增阈值 +1. 对某个重要指标配置告警阈值 -- 选择配置的指标对象,SpringBoot2应用 监控主要是 堆栈内存 线程等相关指标,我们举例对 `状态线程数` `threads` -> `threads` 这个指标进行阈值设置, 当`runnable`状态的线程数量大于300时发出告警。 -- 这里我们就配置当此指标`size`,`state` 的 `equals(state,"runnable"") && size>300` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 + 路径:菜单 -> 阈值规则 -> 新增阈值 -![hertzbeat](/img/blog/monitor-springboot2-6.png) + - 选择配置的指标对象,SpringBoot2应用 监控主要是 堆栈内存 线程等相关指标,我们举例对 `状态线程数` `threads` -> `threads` 这个指标进行阈值设置, 当`runnable`状态的线程数量大于300时发出告警。 + - 这里我们就配置当此指标`size`,`state` 的 `equals(state,"runnable"") && size>300` 时发出告警,告警级别为**警告告警**,三次即触发,具体如下图。 -![hertzbeat](/img/blog/monitor-springboot2-7.png) + ![hertzbeat](/img/blog/monitor-springboot2-6.png) + ![hertzbeat](/img/blog/monitor-springboot2-7.png) 2. 新增消息通知接收人 -> 配置接收人,让告警消息知道要发给谁,用什么方式发。 + > 配置接收人,让告警消息知道要发给谁,用什么方式发。 -路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 + 路径:菜单 -> 告警通知 -> 告警接收人 -> 新增接收人 -消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 + 消息通知方式支持 **邮件,钉钉,企业微信,飞书,WebHook,短信**等,我们这里以常用的钉钉为例。 -- 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) https://hertzbeat.com/docs/help/alert_dingtalk 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 -- 在 HertzBeat 配置接收人参数如下。 + - 参照此[帮助文档](https://hertzbeat.com/docs/help/alert_dingtalk) 在钉钉端配置机器人,设置安全自定义关键词`HertzBeat`,获取对应`access_token`值。 + - 在 HertzBeat 配置接收人参数如下。 -【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 + 【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】 -![hertzbeat](/img/blog/alert-notice-1.png) + ![hertzbeat](/img/blog/alert-notice-1.png) -3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 +3. 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】 -> 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 + > 配置告警通知策略,让告警消息与接收人绑定,这样就能决定哪些告警发给哪个人。 -![hertzbeat](/img/blog/alert-notice-2.png) + ![hertzbeat](/img/blog/alert-notice-2.png) +### 完毕,现在坐等告警消息过来啦。叮叮叮叮 -### 完毕,现在坐等告警消息过来啦。叮叮叮叮 - -``` +```text [HertzBeat告警通知] 告警目标对象 : springboot2.threads.size 所属监控任务ID : 483783444839322 @@ -166,17 +163,17 @@ management: 内容详情 : The springboot2 service's runnable state threads num is over 300, now is 444. ``` -## 小结 +## 小结 :::tip 这篇实践文章带我们体验了如何使用开源实时监控工具 HertzBeat 来监控 SpringBoot2应用 指标数据,可以发现集 `监控-告警-通知` 的 HertzBeat 在操作与使用方面更加的便捷,只需页面上简单点一点就能把 SpringBoot2应用 纳入监控并告警通知,再也不需要部署多个组件编写配置文件那些繁琐操作了。 ::: -> 只需要一条docker命令即可安装体验heartbeat: +> 只需要一条docker命令即可安装体验heartbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` -## 更强大 +## 更强大 > 通过上面的简单步骤我们实现了对SpringBoot2的监控,但里面的内置指标固定不满足需要,是否能自定义监控更多SpringBoot2的指标呢?答案当然是可以的,通过在页面上的**监控定义**->**SpringBoot2**随时通过编辑如下的YML配置文件自定义添加修改想要监控的性能指标。 @@ -185,22 +182,22 @@ management: ## What is HertzBeat? > [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需Agent的实时监控告警工具。应用服务,数据库,操作系统,中间件,云原生,网络等监控,阈值告警,告警通知(邮件微信钉钉飞书短信 Discord Slack Telegram)。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 +> +> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,只需配置YML就能使用这些协议去自定义采集任何您想要采集的指标。 > 您相信只需配置YML就能立刻适配一个K8s或Docker等新的监控类型吗? - +> > `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ## ⛄ Supported -- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 -- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB -- Linux, Ubuntu, CentOS, Windows -- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ -- Kubernetes, Docker -- CiscoSwitch, HpeSwitch, HuaweiSwitch, TpLinkSwitch -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 +- 网站监控, 端口可用性, Http Api, Ping连通性, Jvm, SiteMap全站, Ssl证书, SpringBoot, FTP服务器 +- Mysql, PostgreSQL, MariaDB, Redis, ElasticSearch, SqlServer, Oracle, MongoDB, 达梦, OpenGauss, ClickHouse, IoTDB +- Linux, Ubuntu, CentOS, Windows +- Tomcat, Nacos, Zookeeper, RabbitMQ, Flink, Kafka, ShenYu, DynamicTp, Jetty, ActiveMQ +- Kubernetes, Docker +- CiscoSwitch, HpeSwitch, HuaweiSwitch, TpLinkSwitch +- 和更多的自定义监控。 +- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-09-hertzbeat-v1.3.1.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-09-hertzbeat-v1.3.1.md index 8cf642bc3a4..a1961b33a7a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-09-hertzbeat-v1.3.1.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-09-hertzbeat-v1.3.1.md @@ -10,28 +10,23 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] 官网: hertzbeat.com | tancloud.cn - ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/a9629ef5bb6e486cacddb899f1495c6e~tplv-k3u1fbpfcp-zoom-1.image) - - ### What is HertzBeat? -> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 +> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 +> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 > 支持更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - +> > 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 - +> > 您相信只需定义YML就能立刻适配一款K8s或Docker等新的监控类型吗? - ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4236e748f5ac4352b7cf4bb65ccf97aa~tplv-k3u1fbpfcp-zoom-1.image) +**Github: ** -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** ### v1.3.1 来了 @@ -43,22 +38,22 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] 只需要一条docker命令即可安装体验hertzbeat : `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` -## 升级注意⚠️. +## 升级注意⚠️ 若之前使用的TDengine时序数据库,需升级至TDengine3.0+ - 需要执行SQL升级脚本 -``` + +```shell ALTER table hzb_alert_define modify field varchar(255) default null; COMMIT; ``` ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Website, Port Telnet, Http Api, Ping Connect, Jvm, SiteMap, Ssl Certificate, SpringBoot2, FTP Server, SpringBoot3 @@ -70,7 +65,7 @@ COMMIT; - 和更多自定义监控模版。 - 通知支持 Discord Slack Telegram 邮件 钉钉 微信 飞书 短信 Webhook。 ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-11-greptimedb-store.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-11-greptimedb-store.md index 6035efe29ed..40f5348910d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-11-greptimedb-store.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-05-11-greptimedb-store.md @@ -43,72 +43,71 @@ Cloud: **[TanCloud](https://console.tancloud.cn/)** 1. Docker 安装 GreptimeDB -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v "$(pwd)/greptimedb:/tmp/greptimedb" \ - --name greptime \ - greptime/greptimedb:0.2.0 standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 -``` + ```shell + $ docker run -p 4000-4004:4000-4004 \ + -p 4242:4242 -v "$(pwd)/greptimedb:/tmp/greptimedb" \ + --name greptime \ + greptime/greptimedb:0.2.0 standalone start \ + --http-addr 0.0.0.0:4000 \ + --rpc-addr 0.0.0.0:4001 + ``` -- `-v "$(pwd)/greptimedb:/tmp/greptimedb"` 为 greptimeDB 数据目录本地持久化挂载,建议将`$(pwd)/greptimedb`替换为您想指定存放的实际本地目录 + - `-v "$(pwd)/greptimedb:/tmp/greptimedb"` 为 greptimeDB 数据目录本地持久化挂载,建议将`$(pwd)/greptimedb`替换为您想指定存放的实际本地目录 2. 使用```$ docker ps | grep greptime```查看 GreptimeDB 是否启动成功 - #### 安装部署 HertzBeat 具体可以参考 [官方文档](https://hertzbeat.com/zh-cn/docs/start/docker-deploy) 1. Docker 安装 HertzBeat -```shell -$ docker run -d -p 1157:1157 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v /opt/data:/opt/hertzbeat/data \ - -v /opt/application.yml:/opt/hertzbeat/config/application.yml \ - --restart=always \ - --name hertzbeat apache/hertzbeat -``` + ```shell + $ docker run -d -p 1157:1157 \ + -e LANG=zh_CN.UTF-8 \ + -e TZ=Asia/Shanghai \ + -v /opt/data:/opt/hertzbeat/data \ + -v /opt/application.yml:/opt/hertzbeat/config/application.yml \ + --restart=always \ + --name hertzbeat apache/hertzbeat + ``` -- `-v /opt/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 + - `-v /opt/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 -- `-v /opt/application.yml:/opt/hertzbeat/config/application.yml` : 挂载自定义本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。 + - `-v /opt/application.yml:/opt/hertzbeat/config/application.yml` : 挂载自定义本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。 -注意⚠️ 本地挂载配置文件 `application.yml` 需提前存在,文件完整内容见项目仓库[/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + 注意⚠️ 本地挂载配置文件 `application.yml` 需提前存在,文件完整内容见项目仓库[/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) -2. 浏览器访问 http://ip:1157/ 默认账户密码 admin/hertzbeat,查看 HertzBeat 是否启动成功。 +2. 浏览器访问 默认账户密码 admin/hertzbeat,查看 HertzBeat 是否启动成功。 #### 配置使用 GreptimeDB 存储 HertzBeat 监控指标度量数据 1. 修改 HertzBeat 端配置文件 -修改挂载到本地的 HertzBeat 配置文件 [application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml), 安装包模式下修改 `hertzbeat/config/application.yml` + 修改挂载到本地的 HertzBeat 配置文件 [application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml), 安装包模式下修改 `hertzbeat/config/application.yml` -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - greptime: - enabled: true - endpoint: localhost:4001 -``` + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + greptime: + enabled: true + endpoint: localhost:4001 + ``` 2. 重启 HertzBeat -```shell -$ docker restart hertzbeat -``` + ```shell + docker restart hertzbeat + ``` #### 观察验证效果 -1. 浏览器访问 HertzBeat http://ip:1157/ 默认账户密码 admin/hertzbeat +1. 浏览器访问 HertzBeat 默认账户密码 admin/hertzbeat 2. 使用 HertzBeat 添加应用监控,比如网站监控,Linux监控,Mysql监控 3. 监控采集几个周期之后,查看 GreptimeDB 数据库是否存储指标度量数据,HertzBeat 指标数据图表数据是否展示正常。 @@ -122,11 +121,11 @@ $ docker restart hertzbeat ## 小结 -这篇文章带我们体验了如何使用开源时序数据库 GreptimeDB 存储开源实时监控 HertzBeat 的指标度量数据,总的来看两款开源产品上手是非常简单的,关键是如果嫌麻烦不想部署他俩都还有云服务😂让你折腾。 +这篇文章带我们体验了如何使用开源时序数据库 GreptimeDB 存储开源实时监控 HertzBeat 的指标度量数据,总的来看两款开源产品上手是非常简单的,关键是如果嫌麻烦不想部署他俩都还有云服务😂让你折腾。 作为特性 [HertzBeat支持GreptimeDB](https://github.com/apache/hertzbeat/pull/834) 的开发者之一,在实际适配使用过程中,GreptimeDB的丝滑原生SDK和类似关系数据库的SQL,让我们从其它时序数据库 `TDengine, IotDB, InfluxDB` 切换过去还是非常容易,体验丝滑的。 -GreptimeDB Github: https://github.com/GreptimeTeam/greptimedb -HertzBeat Github: https://github.com/apache/hertzbeat +GreptimeDB Github: +HertzBeat Github: **最后就是欢迎大家一定要多多了解,多多使用,多多提意见,多多ISSUE,多多PR,多多Star支持这俩没出来多久希望得到呵护的开源牛牛不怕困难 一颗小星星哦!做开源,我们是蒸(真)的,爱心💗** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-07-05-hertzbeat-v1.3.2.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-07-05-hertzbeat-v1.3.2.md index 81d063c94af..5afc14c05e6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-07-05-hertzbeat-v1.3.2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-07-05-hertzbeat-v1.3.2.md @@ -10,31 +10,28 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] 官网: hertzbeat.com | tancloud.cn - ![hertzBeat](/img/home/0.png) ### HertzBeat 介绍 -> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 致力于**易用友好**,全 WEB 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 +> HertzBeat赫兹跳动 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 +> 致力于**易用友好**,全 WEB 页面操作,鼠标点一点就能监控告警,零上手学习成本。 +> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等指标监控,阈值告警通知一步到位。 > 支持更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - +> > 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 - ![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/4236e748f5ac4352b7cf4bb65ccf97aa~tplv-k3u1fbpfcp-zoom-1.image) +**Github: ** -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** ### v1.3.2 来了 **这次累计 27 位小伙伴们的辛苦贡献才出来了这个令人欣喜的版本。 感谢他们!爱心💗** -这个版本我们支持对**freebsd, debian, opensuse, redhat, apache doris**等新的监控类型和指标。 +这个版本我们支持对**freebsd, debian, opensuse, redhat, apache doris**等新的监控类型和指标。 - 支持WEB页面配置邮件服务器,取代之前的文件配置 - 支持告警收敛,是否遇到了重复告警频繁发送,有了告警收敛马上解决 @@ -42,23 +39,21 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] - 新的监控中心页面,聚合所有监控类型,不用像之前那样切来切去了。 - 支持标签分组展示,把同一业务类别的监控们分组标记,统一管理。 - 阈值配置不仅仅有表达式,还支持更人性化的操作UI,之前的表达式对新人不太友好很容易出错,现在可以直接UI操作啦,它可以和表达式互相切换。 -- 还有HTTP ipv6等更多功能。 - -修复了大量BUG,完善文档代码,提高了整体的稳定可用性。更多新功能欢迎探索! +- 还有HTTP ipv6等更多功能。 +修复了大量BUG,完善文档代码,提高了整体的稳定可用性。更多新功能欢迎探索! - -只需要一条docker命令即可安装体验hertzbeat: +只需要一条docker命令即可安装体验hertzbeat: `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` -若dockerhub网络超时,可以使用下面命令: +若dockerhub网络超时,可以使用下面命令: `docker run -d -p 1157:1157 --name hertzbeat quay.io/tancloud/hertzbeat` ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Website, Port Telnet, Http Api, Ping Connect, Jvm, SiteMap, Ssl Certificate, SpringBoot2, FTP Server, SpringBoot3 @@ -70,10 +65,9 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] - 和更多自定义监控模版。 - 通知支持 Discord Slack Telegram 邮件 钉钉 微信 飞书 短信 Webhook。 ----- - -**欢迎star三连来支持我们** +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**欢迎star三连来支持我们** +**Github: ** +**Gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-14-hertzbeat-v1.4.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-14-hertzbeat-v1.4.0.md index 97126e42bd4..b937eff35ca 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-14-hertzbeat-v1.4.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-14-hertzbeat-v1.4.0.md @@ -8,7 +8,6 @@ tags: [opensource, practice] keywords: [open source monitoring system, alerting system, Linux monitoring] --- - ![hertzBeat](/img/home/0.png) ### 什么是 HertzBeat? @@ -23,26 +22,25 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式消息及时送达。 +> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 - -![hertzBeat](/img/docs/hertzbeat-arch.png) +![hertzBeat](/img/docs/hertzbeat-arch.png) -**Github: https://github.com/apache/hertzbeat** +**Github: ** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** -### 集群版来啦 +### 集群版来啦 -我们之前的hertzbeat一直是单机版本,组件代码模块化但不支持采集器独立部署,所支持的监控数量上限受到了单节点的天然限制,且无法应对多个隔离网络的资源的统一纳管。 -经过一个多月的迭代,我们重写了采集任务调度,采集器独立部署,设计单机版和集群版用同一套代码方便后续的维护升级,单机集群两种模式可相互切换无感知。最终很高兴,集群版如期与大家见面了。 +我们之前的hertzbeat一直是单机版本,组件代码模块化但不支持采集器独立部署,所支持的监控数量上限受到了单节点的天然限制,且无法应对多个隔离网络的资源的统一纳管。 +经过一个多月的迭代,我们重写了采集任务调度,采集器独立部署,设计单机版和集群版用同一套代码方便后续的维护升级,单机集群两种模式可相互切换无感知。最终很高兴,集群版如期与大家见面了。 -集群版不仅仅给我们带来了更强大的监控性能,更有云边协同等功能让人充满想象。 +集群版不仅仅给我们带来了更强大的监控性能,更有云边协同等功能让人充满想象。 #### 高性能集群 -- 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 +- 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 +- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 - 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 ![hertzbeat](/img/docs/cluster-arch.png) @@ -53,113 +51,111 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] 在多个网络不相通的隔离网络中,在以往的方案中我们需要在每个网络都部署一套监控系统,这导致数据不互通,管理部署维护都不方便。 HertzBeat 提供云边协同能力,可以在多个隔离网络部署边缘采集器,添加监控时指定采集器,采集器在隔离网络内部进行监控任务采集,采集数据上报,由主 HertzBeat 服务统一调度管理展示。 -这多用于多个隔离数据中心或不同厂商云资源和云下资源的统一监控场景。 +这多用于多个隔离数据中心或不同厂商云资源和云下资源的统一监控场景。 ![hertzbeat](/img/docs/cluster-arch.png) -### 为什么要开源集群版? +### 为什么要开源集群版? -往往一些做需要商业化的开源产品的策略会是单机版作为玩具给小玩家们的入门使用,然后集群版作为闭源产品给有需求的氪金玩家付费使用。这样的模式是可以说非常不错的且值得肯定的,即保证开源也得到了收益,也适用于很多开源项目的发展策略,可能会在商业路径上走得更通顺点。 -网络上有些人会对这样的分单机和集群版的开源项目嗤之以鼻,觉得它们是伪开源,开源是噱头,他们觉得开源应该什么都开源免费出来,开源团队什么都应该无私奉献出来。。。。很无语这类人,有投入才有回报,当你免费使用着开源软件并得到价值的时候,是否应该想一想你付出给开源软件了什么而不是一味的索取。 -那回到正题,我们又为什么要开源集群版?仅因为热爱开源?如果说我们还在少年可能这话你信,但一个快奔30还有家庭责任的人说出这话你信吗,我自己都不信😂。 -首先我们来看看开源能带来什么,或者为什么要做开源。最开始全职开源的想法很简单,做自己喜欢的开源产品(已实现),程序员的梦想能部署在成千上万的服务器上(看下载量已实现),然后基于此开源产品挣钱(暂未哭)。 +往往一些做需要商业化的开源产品的策略会是单机版作为玩具给小玩家们的入门使用,然后集群版作为闭源产品给有需求的氪金玩家付费使用。这样的模式是可以说非常不错的且值得肯定的,即保证开源也得到了收益,也适用于很多开源项目的发展策略,可能会在商业路径上走得更通顺点。 +网络上有些人会对这样的分单机和集群版的开源项目嗤之以鼻,觉得它们是伪开源,开源是噱头,他们觉得开源应该什么都开源免费出来,开源团队什么都应该无私奉献出来。。。。很无语这类人,有投入才有回报,当你免费使用着开源软件并得到价值的时候,是否应该想一想你付出给开源软件了什么而不是一味的索取。 +那回到正题,我们又为什么要开源集群版?仅因为热爱开源?如果说我们还在少年可能这话你信,但一个快奔30还有家庭责任的人说出这话你信吗,我自己都不信😂。 +首先我们来看看开源能带来什么,或者为什么要做开源。最开始全职开源的想法很简单,做自己喜欢的开源产品(已实现),程序员的梦想能部署在成千上万的服务器上(看下载量已实现),然后基于此开源产品挣钱(暂未哭)。 - 用户流量。开源项目免费提供给用户和开发者,吸引用户使用,宣传等方面都有优势。 - 用户信任。开源的产品天生容易获取用户的信任和使用耐心,或者说降低用户的信任门槛。 - 社区协作。开源的产品可以吸引到顶级贡献者一起贡献,接收用户的反馈issue,pr贡献等,在社区的驱动下使开源项目越来越好,正向反馈后也会有更多人参与和使用。社区协作我觉得这是开源的意义,而且这样不仅仅只是程序员之间的贡献代码协作,用户都是协作对象(比如我们这个项目有大量的运维朋友贡献代码和文档),如果是仅仅代码开源而不社区协作,那还不如放个安装包给别人免费使用下载就好。 -- 产品生态。这对一些需要生态的产品是需要的,比如hertzbeat,需要支持对接各种类型协议的监控类型,大量的监控模版。一个好的开源项目生态才能吸引到其它贡献者贡献和分享,在生态中互通有无,最终大家在生态中都受益。这在闭源程序中是很难做到的。 +- 产品生态。这对一些需要生态的产品是需要的,比如hertzbeat,需要支持对接各种类型协议的监控类型,大量的监控模版。一个好的开源项目生态才能吸引到其它贡献者贡献和分享,在生态中互通有无,最终大家在生态中都受益。这在闭源程序中是很难做到的。 -上面几点,重在社区协作和产品生态,这也是开源集群版的原因,只有卷开源产品卷自己到更强的产品力,比如集群这一技术特性天生会吸引到开发者(而且集群本身就是我们社区协作的产物),会吸引到更多的用户和贡献者使用反馈大家一起迭代,社区驱动进而正向促进开源项目和满足用户功能体验。 -而对于开源商业化,开源商业化的前提是得有个真正好的,受欢迎,被广泛使用的开源产品,然后在此基础上做商业化挣钱。 +上面几点,重在社区协作和产品生态,这也是开源集群版的原因,只有卷开源产品卷自己到更强的产品力,比如集群这一技术特性天生会吸引到开发者(而且集群本身就是我们社区协作的产物),会吸引到更多的用户和贡献者使用反馈大家一起迭代,社区驱动进而正向促进开源项目和满足用户功能体验。 +而对于开源商业化,开源商业化的前提是得有个真正好的,受欢迎,被广泛使用的开源产品,然后在此基础上做商业化挣钱。 对了这里再说下开源不等同于免费,基于HertzBeat二次开发需保留logo,名称,页面脚注,版权等。 免费使用不是白嫖,这种破坏开源协议的才是,目前发现大量白嫖怪,小心点哈你们。我每年正月初七都会祝你们用这些钱吃的安心,住的放心,玩的开心哈。(仅个人言论不代表社区) - -### 尝试部署集群版 - +### 尝试部署集群版 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群 -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_IP=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MANAGER_IP=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_IP=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MANAGER_IP=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 +更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) ----- +--- ### 更多的 v1.4.0 版本更新 -> 更多版本新功能更新欢迎探索,感谢社区小伙伴们的辛苦贡献,爱心💗! - -* [doc] add v1.3.2 publish doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1075 -* remove elasticsearch unused param index by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1080 -* feature support monitoring apache airflow by @luoxuanzao in https://github.com/apache/hertzbeat/pull/1081 -* add luoxuanzao as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1083 -* [collector] bugfix sshd cannot use private key to connect by @gcdd1993 in https://github.com/apache/hertzbeat/pull/1084 -* bugfix update dashboard alerts cards height not consist by @tomsun28 in https://github.com/apache/hertzbeat/pull/1087 -* Feature#serverchan by @zqr10159 in https://github.com/apache/hertzbeat/pull/1092 -* bugfix dm database monitoring connect error by @lisongning in https://github.com/apache/hertzbeat/pull/1094 -* add lisongning as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1096 -* update alert rule operator display "<=" to ">=" by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1097 -* [doc] add custom monitoring relate document by @tomsun28 in https://github.com/apache/hertzbeat/pull/1098 -* add YutingNie as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1103 -* Remove unreachable status by @YutingNie in https://github.com/apache/hertzbeat/pull/1102 -* 139 auto update alert status by @l646505418 in https://github.com/apache/hertzbeat/pull/1104 -* feat: aviator fn for str contains, exists & matches by @mikezzb in https://github.com/apache/hertzbeat/pull/1106 -* add mikezzb as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1107 -* bugfix common alarm do not need monitorId tag existed by @tomsun28 in https://github.com/apache/hertzbeat/pull/1108 -* bugfix extern alert do not have labels mapping inner monitor by @tomsun28 in https://github.com/apache/hertzbeat/pull/1111 -* feature: support apache spark metrics monitoring by @a-little-fool in https://github.com/apache/hertzbeat/pull/1114 -* add a-little-fool as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1116 -* [Feature]Add third report of TenCloud by @zqr10159 in https://github.com/apache/hertzbeat/pull/1113 -* [Feature]Add third report of TenCloud (#1113) by @zqr10159 in https://github.com/apache/hertzbeat/pull/1119 -* [manager] fix: can query by tags when tagValue is null by @l646505418 in https://github.com/apache/hertzbeat/pull/1118 -* bugfix the notification template environment variable display error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1120 -* add littlezhongzer as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1127 -* feature:monitor brearer token api, ignore letter case to comparison by @littlezhongzer in https://github.com/apache/hertzbeat/pull/1122 -* docs: enhance README by @mikezzb in https://github.com/apache/hertzbeat/pull/1128 -* Update app-oracle.yml by @ChenXiangxxxxx in https://github.com/apache/hertzbeat/pull/1129 -* add ChenXiangxxxxx as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1130 -* fix alarm silence strategy setting failed by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1131 -* support run sql script file in jdbc protocol config by @tomsun28 in https://github.com/apache/hertzbeat/pull/1117 -* bugfix return old cache json file when upgrade version by @tomsun28 in https://github.com/apache/hertzbeat/pull/1137 -* support ssh protocol config choose if reuse connection by @tomsun28 in https://github.com/apache/hertzbeat/pull/1136 -* feat(web): alert threshold UI support matches & contains by @mikezzb in https://github.com/apache/hertzbeat/pull/1138 -* support hertzbeat metrics collector cluster by @tomsun28 in https://github.com/apache/hertzbeat/pull/1101 -* add collector card in dashboard by @tomsun28 in https://github.com/apache/hertzbeat/pull/1147 -* bugfix: linux collect warning: bad syntax, perhaps a bogus '-' by @Mr-zhou315 in https://github.com/apache/hertzbeat/pull/1151 -* add Mr-zhou315 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1157 -* support config timezone locale language region on web ui by @tomsun28 in https://github.com/apache/hertzbeat/pull/1154 -* bugfix monitoring template app name already exists by @tomsun28 in https://github.com/apache/hertzbeat/pull/1152 -* bugfix can not startup when error monitoring template yml file by @tomsun28 in https://github.com/apache/hertzbeat/pull/1153 -* tags also deleted when the monitor is deleted by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1159 -* monitoring param host with http head will not be error reported by @littlezhongzer in https://github.com/apache/hertzbeat/pull/1155 -* [script] feature update build.sh and Dockerfile: detect app version a… by @XimfengYao in https://github.com/apache/hertzbeat/pull/1162 -* add XimfengYao as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1163 -* [doc] add collector clusters document by @tomsun28 in https://github.com/apache/hertzbeat/pull/1161 -* [hertzbeat] release hertzbeat version v1.4.0 by @tomsun28 in https://github.com/apache/hertzbeat/pull/1168 - ----- +> 更多版本新功能更新欢迎探索,感谢社区小伙伴们的辛苦贡献,爱心💗! + +- [doc] add v1.3.2 publish doc by @tomsun28 in +- remove elasticsearch unused param index by @Ceilzcx in +- feature support monitoring apache airflow by @luoxuanzao in +- add luoxuanzao as a contributor for code by @allcontributors in +- [collector] bugfix sshd cannot use private key to connect by @gcdd1993 in +- bugfix update dashboard alerts cards height not consist by @tomsun28 in +- Feature#serverchan by @zqr10159 in +- bugfix dm database monitoring connect error by @lisongning in +- add lisongning as a contributor for code by @allcontributors in +- update alert rule operator display "<=" to ">=" by @Ceilzcx in +- [doc] add custom monitoring relate document by @tomsun28 in +- add YutingNie as a contributor for code by @allcontributors in +- Remove unreachable status by @YutingNie in +- 139 auto update alert status by @l646505418 in +- feat: aviator fn for str contains, exists & matches by @mikezzb in +- add mikezzb as a contributor for code by @allcontributors in +- bugfix common alarm do not need monitorId tag existed by @tomsun28 in +- bugfix extern alert do not have labels mapping inner monitor by @tomsun28 in +- feature: support apache spark metrics monitoring by @a-little-fool in +- add a-little-fool as a contributor for code by @allcontributors in +- [Feature]Add third report of TenCloud by @zqr10159 in +- [Feature]Add third report of TenCloud (#1113) by @zqr10159 in +- [manager] fix: can query by tags when tagValue is null by @l646505418 in +- bugfix the notification template environment variable display error by @tomsun28 in +- add littlezhongzer as a contributor for code by @allcontributors in +- feature:monitor brearer token api, ignore letter case to comparison by @littlezhongzer in +- docs: enhance README by @mikezzb in +- Update app-oracle.yml by @ChenXiangxxxxx in +- add ChenXiangxxxxx as a contributor for code by @allcontributors in +- fix alarm silence strategy setting failed by @Ceilzcx in +- support run sql script file in jdbc protocol config by @tomsun28 in +- bugfix return old cache json file when upgrade version by @tomsun28 in +- support ssh protocol config choose if reuse connection by @tomsun28 in +- feat(web): alert threshold UI support matches & contains by @mikezzb in +- support hertzbeat metrics collector cluster by @tomsun28 in +- add collector card in dashboard by @tomsun28 in +- bugfix: linux collect warning: bad syntax, perhaps a bogus '-' by @Mr-zhou315 in +- add Mr-zhou315 as a contributor for code by @allcontributors in +- support config timezone locale language region on web ui by @tomsun28 in +- bugfix monitoring template app name already exists by @tomsun28 in +- bugfix can not startup when error monitoring template yml file by @tomsun28 in +- tags also deleted when the monitor is deleted by @Ceilzcx in +- monitoring param host with http head will not be error reported by @littlezhongzer in +- [script] feature update build.sh and Dockerfile: detect app version a… by @XimfengYao in +- add XimfengYao as a contributor for code by @allcontributors in +- [doc] add collector clusters document by @tomsun28 in +- [hertzbeat] release hertzbeat version v1.4.0 by @tomsun28 in + +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server @@ -173,10 +169,9 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - 和更多自定义监控模版。 - 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 ----- +--- 欢迎star一波来支持我们哦。 -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** - +**Github: ** +**Gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-28-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-28-new-committer.md index ee2e8f496da..b4fe8406ebc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-28-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-08-28-new-committer.md @@ -8,7 +8,6 @@ tags: [opensource, practice] keywords: [open source monitoring system, alerting system] --- - ![hertzBeat](/img/blog/new-committer.png) 很高兴迎来了新的社区`Committer`,和其它贡献者不一样的是`logicz`来自讯飞的运维实施岗位而不是开发岗位,但不管是代码还是文档等贡献质量都非常高👍。这也是我们`HertzBeat`与其它开源项目不一样的地方,因为用户群体更多面向运维开发,在我们139位贡献者中运维工程师的占比超30%,这打破了开源项目的协作贡献对象都是开发岗位的固有认知,这说明不管是运维工程师还是测试工程师对开源项目的贡献参与都是非常热情的,而不仅仅只是作为开源协作的旁观者。开源项目的参与并不是只专属于某一类人群,而是面向所有的想来参与的人,可能是一篇文档,一个脚本或者一段代码,想象一下你参与的开源项目被部署到成千上万的服务器上运行跑起来,帮助到他人被使用或者浏览Review讨论,git记录永留存,这也许就是参与开源项目的意义。 @@ -37,29 +36,29 @@ github:zqr10159 **贡献**: -* 实现实时数据存入Redis自定义db +* 实现实时数据存入Redis自定义db -* 新增历史数据存入GreptimeDB +* 新增历史数据存入GreptimeDB -* 提供监控批量导入、导出为xlsx和yml文件功能 +* 提供监控批量导入、导出为xlsx和yml文件功能 -* 提供Web页面自定义邮件服务器设置功能 +* 提供Web页面自定义邮件服务器设置功能 -* 提供Apache doris FE,BE监控模板 +* 提供Apache doris FE,BE监控模板 -* 实现ServerChan(Server酱)告警推送通知 +* 实现ServerChan(Server酱)告警推送通知 -* 接入第三方告警(腾讯云),实现第三方告警与Hertzbeat告警统一推送 +* 接入第三方告警(腾讯云),实现第三方告警与Hertzbeat告警统一推送 -* 修复导入、导出监控时不含采集器信息等bug +* 修复导入、导出监控时不含采集器信息等bug -* 若干文档的更新 +* 若干文档的更新 **收获**: -* Hertzbeat真的是个很优秀的项目,在项目部署方面,脚本和配置都非常规范,我自己写的很多项目都有借鉴 +* Hertzbeat真的是个很优秀的项目,在项目部署方面,脚本和配置都非常规范,我自己写的很多项目都有借鉴 -* 最重要的还是收获到了开源精神,大家在一个社区里面共同交流、进步 +* 最重要的还是收获到了开源精神,大家在一个社区里面共同交流、进步 ## 感谢社区小伙伴 @@ -67,8 +66,8 @@ github:zqr10159 ## 对新人的一点建议 -* 开源不易,要能够坚持下来,与大家分享自己的成果是很有成就感的一件事情 -* 养成良好的代码习惯,代码可以写的不好,注释一定要写清楚,方便其他人阅读和修改你的代码 +* 开源不易,要能够坚持下来,与大家分享自己的成果是很有成就感的一件事情 +* 养成良好的代码习惯,代码可以写的不好,注释一定要写清楚,方便其他人阅读和修改你的代码 ## 什么是 HertzBeat? @@ -76,15 +75,14 @@ HertzBeat 赫兹跳动是一个拥有强大自定义监控能力,高性能集 ### 特点 -* 集 **监控+告警+通知** 为一体,支持对应用服务,数据库,操作系统,中间件,云原生,网络等监控阈值告警通知一步到位。 -* 易用友好,无需 `Agent`,全 `WEB` 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -* 将 `Http,Jmx,Ssh,Snmp,Jdbc` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -* 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 -* 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 +* 集 **监控+告警+通知** 为一体,支持对应用服务,数据库,操作系统,中间件,云原生,网络等监控阈值告警通知一步到位。 +* 易用友好,无需 `Agent`,全 `WEB` 页面操作,鼠标点一点就能监控告警,零上手学习成本。 +* 将 `Http,Jmx,Ssh,Snmp,Jdbc` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? +* 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 +* 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 - -Github: https://github.com/apache/hertzbeat +Github: 欢迎更多的用户参与到`HertzBeat`的开源协作中来,不管是一个错别字还是标点符号我们都非常欢迎。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-09-26-hertzbeat-v1.4.1.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-09-26-hertzbeat-v1.4.1.md index 25ae9bb91f3..054f7fa9975 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-09-26-hertzbeat-v1.4.1.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-09-26-hertzbeat-v1.4.1.md @@ -13,18 +13,18 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] ![hertzBeat](/img/home/0.png) -### 总结起来如下: +### 总结起来如下 - **重构netty client server, 采集器集群调度** @Ceilzcx @tomsun28 - **采集器集群的UI界面管理** @Ceilzcx @tomsun28 - **功能页面帮助信息模块和阈值表达式增强** 开源之夏和GLCC课题 @YutingNie @mikezzb - **新的控制台登陆界面和欢迎页面** - **监控指标名称国际化** 用户可以看指标的中英文名称啦,欢迎一起完善监控模版里面的i18n国际化资源 -- **支持kubernetes helm charts一键部署** 见 https://artifacthub.io/packages/search?repo=hertzbeat +- **支持kubernetes helm charts一键部署** 见 -**更多的特性和BUG修复,稳定性提示** 感谢 @zqr10159 @Carpe-Wang @luxx-lq @l646505418 @LINGLUOJUN @luelueking @qyaaaa @novohit @gcdd1993 +**更多的特性和BUG修复,稳定性提示** 感谢 @zqr10159 @Carpe-Wang @luxx-lq @l646505418 @LINGLUOJUN @luelueking @qyaaaa @novohit @gcdd1993 -### 上效果图: +### 上效果图 - 新的登陆页面UI @@ -46,7 +46,6 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] image - ### 什么是 HertzBeat? [HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,高性能集群,无需 Agent 的开源实时监控告警系统。 @@ -59,45 +58,43 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式消息及时送达。 - -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 +> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 ![hertzBeat](/img/docs/hertzbeat-arch.png) -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ### 尝试部署 - 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群 -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server @@ -111,8 +108,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - 和更多自定义监控模版。 - 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱`。 ----- - -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +--- +**Github: ** +**Gitee: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md index 7aec4a52016..2ffa09c2f1a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md @@ -12,16 +12,16 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] ![hertzBeat](/img/home/0.png) -### 总结起来如下: +### 总结起来如下 - **消息通知模版特性,开源之夏课题** - **支持华为云OBS存储监控模版文件** -- **支持MQTT消息服务器 emqx 监控** +- **支持MQTT消息服务器 emqx 监控** - **支持对 udp 端口可用性监控** - **更多的特性功能支持和BUG修复** - **安装包内置JDK一键启动** -**更多的特性和BUG修复欢迎使用探索,1.4.2 版本共有 13 位社区小伙伴们参与,感谢他们的贡献❤️** +**更多的特性和BUG修复欢迎使用探索,1.4.2 版本共有 13 位社区小伙伴们参与,感谢他们的贡献❤️** ### 什么是 HertzBeat? @@ -35,45 +35,43 @@ keywords: [open source monitoring system, alerting system, Linux monitoring] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 +> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 ![hertzBeat](/img/docs/hertzbeat-arch.png) -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ### 尝试部署 - 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群 -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server @@ -87,10 +85,10 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - 和更多自定义监控模版。 - 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱`。 ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ### **下载链接** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md index 285097da988..3a07c44a9a3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md @@ -21,11 +21,11 @@ keywords: [open source monitoring system, alerting system] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 -**Github: https://github.com/apache/hertzbeat** +**Github: ** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** -### HertzBeat's 1.4.3 新版本发布啦! +### HertzBeat's 1.4.3 新版本发布啦 - 三方外部告警上报增强 - 支持 mysql api port website mongodb jvm redis 等监控指标的i18n国际化 @@ -40,33 +40,33 @@ keywords: [open source monitoring system, alerting system] ### 尝试部署 - 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群 -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server @@ -80,78 +80,78 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - 和更多自定义监控模版。 - 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱`。 ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ----- +--- ### What's Changed > Welcome to explore more new version updates, thanks to the hard work of the community partners, love 💗! -* update package deploy doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1330 -* bugfix duplicate collect job when update monitor templates by @tomsun28 in https://github.com/apache/hertzbeat/pull/1332 -* bugfix number variable in freemarker template display error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1334 -* [alerter] Enhanced reporting of external general alert API by @SurryChen in https://github.com/apache/hertzbeat/pull/1326 -* [doc] update hertzbeat-mysql-tdengine readme by @jiashu1024 in https://github.com/apache/hertzbeat/pull/1335 -* add jiashu1024 as a contributor for doc by @allcontributors in https://github.com/apache/hertzbeat/pull/1336 -* app-mysql.yml: Adjust slow query translation by @1036664317 in https://github.com/apache/hertzbeat/pull/1337 -* add 1036664317 as a contributor for doc by @allcontributors in https://github.com/apache/hertzbeat/pull/1338 -* Bump com.google.guava:guava from 31.0.1-jre to 32.0.0-jre by @dependabot in https://github.com/apache/hertzbeat/pull/1339 -* [feature] support auto collect metrics by prometheus task by @tomsun28 in https://github.com/apache/hertzbeat/pull/1342 -* [doc] add vinci as new committer by @tomsun28 in https://github.com/apache/hertzbeat/pull/1341 -* [feature] add tag word cloud in dashboard by @tomsun28 in https://github.com/apache/hertzbeat/pull/1345 -* support custom prometheus endpoint path by @tomsun28 in https://github.com/apache/hertzbeat/pull/1346 -* bugfix tdengine query interval history metrics data with instance error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1348 -* unlimit Alert.java content field length by @xiaoguolong in https://github.com/apache/hertzbeat/pull/1351 -* add xiaoguolong as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1353 -* update monitor detail table ui layout by @tomsun28 in https://github.com/apache/hertzbeat/pull/1352 -* [doc]add star history by @zqr10159 in https://github.com/apache/hertzbeat/pull/1356 -* feature: app-mongodb.yml by @a-little-fool in https://github.com/apache/hertzbeat/pull/1359 -* alarm threshold support prometheus task metrics by @tomsun28 in https://github.com/apache/hertzbeat/pull/1354 -* support victoriametrics as metrics data storage by @tomsun28 in https://github.com/apache/hertzbeat/pull/1361 -* Add time type to support query_time of mysql and mariadb by @Clownsw in https://github.com/apache/hertzbeat/pull/1364 -* add Clownsw as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1365 -* Error occured when I followed running steps to start Front-web by @Calvin979 in https://github.com/apache/hertzbeat/pull/1366 -* add Calvin979 as a contributor for doc by @allcontributors in https://github.com/apache/hertzbeat/pull/1367 -* enriches the cncf landscape by @tomsun28 in https://github.com/apache/hertzbeat/pull/1368 -* Fix flaky test in CollectUtilTest by @bbelide2 in https://github.com/apache/hertzbeat/pull/1371 -* add bbelide2 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1372 -* Fix flaky test replaceSmilingPlaceholder by @bbelide2 in https://github.com/apache/hertzbeat/pull/1373 -* add docker-compose script hertzbeat+mysql+victoria-metrics all in one by @tomsun28 in https://github.com/apache/hertzbeat/pull/1370 -* Feature: app-jvm.yml support for international name aliases by @Calvin979 in https://github.com/apache/hertzbeat/pull/1376 -* add Calvin979 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1377 -* feature: support monitoring spring gateway metrics by @a-little-fool in https://github.com/apache/hertzbeat/pull/1374 -* update code comment and doc, bugfix concurrent exception by @tomsun28 in https://github.com/apache/hertzbeat/pull/1378 -* update windows define and accept snmp leaf by @jinyaoMa in https://github.com/apache/hertzbeat/pull/1379 -* add jinyaoMa as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1380 -* fix exception when sending email has special chars by @Carpe-Wang in https://github.com/apache/hertzbeat/pull/1383 -* test: add e2e testing for some basic APIs by @LinuxSuRen in https://github.com/apache/hertzbeat/pull/1387 -* add LinuxSuRen as a contributor for code, and test by @allcontributors in https://github.com/apache/hertzbeat/pull/1389 -* bugfix auto generate monitor name error when add monitor by @tomsun28 in https://github.com/apache/hertzbeat/pull/1384 -* bugfix CalculateAlarm execAlertExpression NPE by @tomsun28 in https://github.com/apache/hertzbeat/pull/1388 -* Feature: app-redis.yml support for international name aliases by @Calvin979 in https://github.com/apache/hertzbeat/pull/1390 -* test: add more monitor related e2e testing case by @LinuxSuRen in https://github.com/apache/hertzbeat/pull/1391 -* chore: update the pr template about the e2e testing by @LinuxSuRen in https://github.com/apache/hertzbeat/pull/1392 -* add help header ui when update or add monitors by @tomsun28 in https://github.com/apache/hertzbeat/pull/1399 -* [hertzbeat] release hertzbeat version v1.4.3 by @tomsun28 in https://github.com/apache/hertzbeat/pull/1400 +- update package deploy doc by @tomsun28 in +- bugfix duplicate collect job when update monitor templates by @tomsun28 in +- bugfix number variable in freemarker template display error by @tomsun28 in +- [alerter] Enhanced reporting of external general alert API by @SurryChen in +- [doc] update hertzbeat-mysql-tdengine readme by @jiashu1024 in +- add jiashu1024 as a contributor for doc by @allcontributors in +- app-mysql.yml: Adjust slow query translation by @1036664317 in +- add 1036664317 as a contributor for doc by @allcontributors in +- Bump com.google.guava:guava from 31.0.1-jre to 32.0.0-jre by @dependabot in +- [feature] support auto collect metrics by prometheus task by @tomsun28 in +- [doc] add vinci as new committer by @tomsun28 in +- [feature] add tag word cloud in dashboard by @tomsun28 in +- support custom prometheus endpoint path by @tomsun28 in +- bugfix tdengine query interval history metrics data with instance error by @tomsun28 in +- unlimit Alert.java content field length by @xiaoguolong in +- add xiaoguolong as a contributor for code by @allcontributors in +- update monitor detail table ui layout by @tomsun28 in +- [doc]add star history by @zqr10159 in +- feature: app-mongodb.yml by @a-little-fool in +- alarm threshold support prometheus task metrics by @tomsun28 in +- support victoriametrics as metrics data storage by @tomsun28 in +- Add time type to support query_time of mysql and mariadb by @Clownsw in +- add Clownsw as a contributor for code by @allcontributors in +- Error occured when I followed running steps to start Front-web by @Calvin979 in +- add Calvin979 as a contributor for doc by @allcontributors in +- enriches the cncf landscape by @tomsun28 in +- Fix flaky test in CollectUtilTest by @bbelide2 in +- add bbelide2 as a contributor for code by @allcontributors in +- Fix flaky test replaceSmilingPlaceholder by @bbelide2 in +- add docker-compose script hertzbeat+mysql+victoria-metrics all in one by @tomsun28 in +- Feature: app-jvm.yml support for international name aliases by @Calvin979 in +- add Calvin979 as a contributor for code by @allcontributors in +- feature: support monitoring spring gateway metrics by @a-little-fool in +- update code comment and doc, bugfix concurrent exception by @tomsun28 in +- update windows define and accept snmp leaf by @jinyaoMa in +- add jinyaoMa as a contributor for code by @allcontributors in +- fix exception when sending email has special chars by @Carpe-Wang in +- test: add e2e testing for some basic APIs by @LinuxSuRen in +- add LinuxSuRen as a contributor for code, and test by @allcontributors in +- bugfix auto generate monitor name error when add monitor by @tomsun28 in +- bugfix CalculateAlarm execAlertExpression NPE by @tomsun28 in +- Feature: app-redis.yml support for international name aliases by @Calvin979 in +- test: add more monitor related e2e testing case by @LinuxSuRen in +- chore: update the pr template about the e2e testing by @LinuxSuRen in +- add help header ui when update or add monitors by @tomsun28 in +- [hertzbeat] release hertzbeat version v1.4.3 by @tomsun28 in ## New Contributors -* @1036664317 made their first contribution in https://github.com/apache/hertzbeat/pull/1337 -* @dependabot made their first contribution in https://github.com/apache/hertzbeat/pull/1339 -* @xiaoguolong made their first contribution in https://github.com/apache/hertzbeat/pull/1351 -* @Clownsw made their first contribution in https://github.com/apache/hertzbeat/pull/1364 -* @Calvin979 made their first contribution in https://github.com/apache/hertzbeat/pull/1366 -* @bbelide2 made their first contribution in https://github.com/apache/hertzbeat/pull/1371 -* @jinyaoMa made their first contribution in https://github.com/apache/hertzbeat/pull/1379 -* @LinuxSuRen made their first contribution in https://github.com/apache/hertzbeat/pull/1387 +- @1036664317 made their first contribution in +- @dependabot made their first contribution in +- @xiaoguolong made their first contribution in +- @Clownsw made their first contribution in +- @Calvin979 made their first contribution in +- @bbelide2 made their first contribution in +- @jinyaoMa made their first contribution in +- @LinuxSuRen made their first contribution in -**Full Changelog**: https://github.com/apache/hertzbeat/compare/v1.4.2...v1.4.3 +**Full Changelog**: ----- +--- ## ⛄ Supported @@ -164,10 +164,10 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - and more for your custom monitoring. - Notifications support `Discord` `Slack` `Telegram` `Mail` `Pinning` `WeChat` `FlyBook` `SMS` `Webhook` `ServerChan`. ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ### **下载链接** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-11-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-11-new-committer.md index 895dd782421..ede6586b0df 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-11-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-11-new-committer.md @@ -8,12 +8,11 @@ tags: [opensource, practice] keywords: [open source monitoring system, alerting system] --- - ![hertzBeat](/img/blog/new-committer.png) > 热烈欢迎 HertzBeat 有三位小伙伴新晋社区 Committer, 让我们来了解下他们的开源经历吧! -# New Committer - vinci +## New Committer - vinci **姓名:王佳宁** @@ -21,113 +20,101 @@ keywords: [open source monitoring system, alerting system] **Github ID: vinci-897** -## 初识Hertzbeat +### 初识Hertzbeat 2023年3月,我关注到了Hertzbeat的项目,于是直接给社区的Tom老哥发了邮件咨询是否可以加入,老哥很爽快的给了回复。刚好我当时正是大四时间比较充裕,就果断挑了一个issue解决,在hertzbeat有了第一个pull request。 -## 开始提交PR +### 开始提交PR 在之后一段时间里,我花了一段时间阅读Hertzbeat的代码,又断断续续的交了几个pr。直到4月份,我了解到开源之夏相关活动,刚好Hertzbeat也在参加,所以提交了报名信息后便顺利入选。我的任务主要是负责实现一个推送方式的采集器,在编写代码的过程中,我得到了许多社区的郑晨鑫导师和Tom老哥帮助,最终能够顺利完成代码,整个过程还是比较顺利的。 -## 开源贡献 +### 开源贡献 - 新增push module,暴露接口供用户推送数据。 - 在collector模块中实现对推送数据的采集。 - 在前端中实现展示用户自定义的数据。 -## 收获 +### 收获 - 接触到了很优秀的开源社区,提升了相关领域的技术水平。 - 感谢Tom哥和我的ospp导师郑晨鑫,他们在我接触开源社区的过程中给出了许多帮助和建议。目前我仍然在社区中负责部分代码的开发,希望Hertzbeat以后可以越来越好! +--- - ----- - -# New Committer - 淞筱 - - +## New Committer - 淞筱 **姓名:周书胜** **河南师范大学大三学生** -## 初识Hertzbeat +### 初识Hertzbeat 今年三月份,在小宝学长的影响下,对开源项目有了些许概念,并为后来学习开源项目奠定了基础,但由于当时只学习了一些Java基础,所以并没有再深入了解。 -## 开始提交PR +### 开始提交PR 在今年七月份,基本完成Java框架开发的学习后,在小宝学长的鼓励下,我开始尝试拉取issue,并在7月20日提交了第一个PR。在此期间,也咨询了Hertzbeat作者和东风学长一些相关问题,实在感谢。 -## 开源贡献 - -* 支持Spring Gateway、Apache Spark、Apache Hive等服务指标采集 -* 自定义nginx、pop3协议,对Nginx,POP3邮箱服务器进行指标采集,并添加相应帮助文档 - +### 开源贡献 -## 收获 +- 支持Spring Gateway、Apache Spark、Apache Hive等服务指标采集 +- 自定义nginx、pop3协议,对Nginx,POP3邮箱服务器进行指标采集,并添加相应帮助文档 -* 接触了更加优秀、结构更加复杂的大型项目,提高了编程和解决问题的能力 -* 将理论知识付诸于实践,收获了JUC,微服务相关的开发经验,以及宝贵的项目经历 +### 收获 +- 接触了更加优秀、结构更加复杂的大型项目,提高了编程和解决问题的能力 +- 将理论知识付诸于实践,收获了JUC,微服务相关的开发经验,以及宝贵的项目经历 -## 感谢社区小伙伴 +### 感谢社区小伙伴 感谢HertzBeat的作者、HertzBeat/Sms4j Committer铁甲小宝同学、Sms4j Committer东风同学,在我遇到自己不能解决的问题时,常常向三位哥哥请教,他们也总是不厌其烦,耐心的帮助我解决问题,实在是无以言表。 感谢社区的其它小伙伴,在与他们交流讨论的过程中收获满满,也感受到了社区活跃的开源氛围。 -## 给新人的一些建议 +### 给新人的一些建议 -* 初次参与开源项目时,可以从简单的任务开始。逐渐熟悉项目的代码和流程,并逐步承担更复杂的任务。 -* 如果遇到自己无法解决的问题时,可以多多请教社区的小伙伴们。 - - - ----- - -# New Committer - 东风 +- 初次参与开源项目时,可以从简单的任务开始。逐渐熟悉项目的代码和流程,并逐步承担更复杂的任务。 +- 如果遇到自己无法解决的问题时,可以多多请教社区的小伙伴们。 +--- +## New Committer - 东风 **姓名:张洋** **河南师范大学应届生** -## 初识hertzbeat +### 初识hertzbeat 今年6月份开始对项目进行深入了解,我是经朋友推荐了解该项目的,一直对开源项目和社区有所探索,很喜欢这种大家互相分享、讨论并改进的氛围。同时之前在项目中也尝试实现一些监控,所以对于该项目比较感兴趣。 -## 开始提交PR +### 开始提交PR 在今年7月起,我发现hertzbeat的issue和pr很活跃,于是就通过他们的issue和pr来了解如何实现某个协议的监控。随后我发现有关于smtp协议监控的task,就在issue上与作者进行讨论,随后通过文档和代码完成了自己的pr。 -## 开源贡献 +### 开源贡献 - 实现smtp、ntp、websocket可用性的监控。 - 实现memcached 、NebulaGraph的监控指标。 - 为实现的监控添加相关文档。 -## 收获 +### 收获 - 收获了监控相关的开发经验,新增了一个宝贵的项目经历。 - 对于网络协议有了更深刻的了解。 - 对于开源项目的贡献流程有了初步认识。 -## 感谢社区小伙伴 +### 感谢社区小伙伴 感谢hertzbeat的作者提供的相关文档和帮助。感谢朋友的带领,为我提供了勇气,让我敢于尝试进入开源项目进行贡献。感谢社区中其他的小伙伴的issue和pr,加快了我对于该项目的了解。 -## 对新人的一点建议 +### 对新人的一点建议 - issue和pr是你了解的项目的敲门砖,一点要敢于讨论并发表观点。 - 贡献不分大小,要敢于尝试,并不断提升自己。 - ----- +--- ## 什么是 HertzBeat? @@ -142,12 +129,10 @@ keywords: [open source monitoring system, alerting system] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 +**Github: ** -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** 欢迎更多小伙伴参与到HertzBeat的开源协作中来,不管是一个错别字还是标点符号我们都非常欢迎,大家一起学习进步,目标做一个世界级开源软件。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md index 6d60f9bb1ee..f233e3dc7c4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md @@ -21,11 +21,11 @@ keywords: [open source monitoring system, alerting system] - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 -**Github: https://github.com/apache/hertzbeat** +**Github: ** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Gitee: ** -### HertzBeat's 1.4.4 新版本发布啦! +### HertzBeat's 1.4.4 新版本发布啦 - support snmp v3 monitoring protocol @TJxiaobao - support monitoring NebulaGraph metrics @ZY945 @@ -39,36 +39,35 @@ keywords: [open source monitoring system, alerting system] - add smtp protocol and support smtp monitoring by @ZY945 - more feature, document and bugfix - ### 尝试部署 - 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群 -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 更多配置详细步骤参考 [通过Docker方式安装HertzBeat](https://hertzbeat.com/docs/start/docker-deploy) ----- +--- ## ⛄ 已支持 -> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! +> 我们将监控采集类型(mysql,jvm,k8s)都定义为yml监控模版,用户可以导入这些模版来支持对应类型的监控! > 欢迎大家一起贡献你使用过程中自定义的通用监控类型监控模版。 - Site Monitor, Port Availability, Http Api, Ping Connectivity, Jvm, SiteMap Full Site, Ssl Certificate, SpringBoot, FTP Server @@ -82,88 +81,91 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - 和更多自定义监控模版。 - 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱`。 ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ----- +--- ### What's Changed > Welcome to explore more new version updates, thanks to the hard work of the community partners, love 💗! -* bugfix metrics tags value store jpa data-storage error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1403 -* add smtp protocol and support smtp monitoring by @ZY945 in https://github.com/apache/hertzbeat/pull/1407 -* add ZY945 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1409 -* support new parse type 'log' in ssh collect protocol by @tomsun28 in https://github.com/apache/hertzbeat/pull/1410 -* add ntp protocol and support ntp monitoring by @ZY945 in https://github.com/apache/hertzbeat/pull/1411 -* monitoring the availability of websockets through handshake. by @ZY945 in https://github.com/apache/hertzbeat/pull/1413 -* Task-1386 When adding tags in tag management, random colors are given by default. by @prolevel1 in https://github.com/apache/hertzbeat/pull/1412 -* add prolevel1 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1415 -* #1397 feature: support for dns monitoring by @Calvin979 in https://github.com/apache/hertzbeat/pull/1416 -* Support monitoring hive metrics by @a-little-fool in https://github.com/apache/hertzbeat/pull/1417 -* support legend pageable in history data charts by @tomsun28 in https://github.com/apache/hertzbeat/pull/1414 -* update component tip and help tip doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1418 -* feature: support monitoring nginx metrics and add a help doc by @a-little-fool in https://github.com/apache/hertzbeat/pull/1420 -* update parser to parse from prometheus txt metrics data by @tomsun28 in https://github.com/apache/hertzbeat/pull/1421 -* support monitoring memcached metrics and add a help doc by @ZY945 in https://github.com/apache/hertzbeat/pull/1423 -* support all ssh connect key exchange by @tomsun28 in https://github.com/apache/hertzbeat/pull/1424 -* doc add code of conduct by @tomsun28 in https://github.com/apache/hertzbeat/pull/1425 -* update label structure store in victoria metrics, make it prometheus like by @tomsun28 in https://github.com/apache/hertzbeat/pull/1426 -* feature: support monitoring pop3 metrics and add help doc by @a-little-fool in https://github.com/apache/hertzbeat/pull/1427 -* Update sidebars.json by @a-little-fool in https://github.com/apache/hertzbeat/pull/1428 -* Add zh-cn help doc by @a-little-fool in https://github.com/apache/hertzbeat/pull/1429 -* update monitoring state un-manage to unmonitored, update pic by @tomsun28 in https://github.com/apache/hertzbeat/pull/1430 -* Add jpa to date type storage by @Clownsw in https://github.com/apache/hertzbeat/pull/1431 -* bugfix ^o^ token error, protect metrics api auth by @tomsun28 in https://github.com/apache/hertzbeat/pull/1434 -* Add relevant documents for SMTP and NTP by @ZY945 in https://github.com/apache/hertzbeat/pull/1437 -* bugfix threshold init error in mysql env by @tomsun28 in https://github.com/apache/hertzbeat/pull/1435 -* app-rabbitmq.yml support for international name aliases by @ZY945 in https://github.com/apache/hertzbeat/pull/1439 -* fix: error create lru-cache-timeout-cleaner thread by @Clownsw in https://github.com/apache/hertzbeat/pull/1438 -* app-rabbitmq.yml Modifying Error Fields. by @ZY945 in https://github.com/apache/hertzbeat/pull/1440 -* support monitoring NebulaGraph metrics and add help doc by @ZY945 in https://github.com/apache/hertzbeat/pull/1441 -* Fix Nginx Collect validateParams function NPE by @Clownsw in https://github.com/apache/hertzbeat/pull/1442 -* feature: add metrics i18n for app-springboot3.yml by @liyin in https://github.com/apache/hertzbeat/pull/1445 -* feat: add metrics i18n for app-docker.yml by @liyin in https://github.com/apache/hertzbeat/pull/1446 -* update docker-compose script and fix version by @tomsun28 in https://github.com/apache/hertzbeat/pull/1447 -* bugfix java.lang.IllegalArgumentException: Illegal character in query… by @tomsun28 in https://github.com/apache/hertzbeat/pull/1443 -* bugfix delete monitor error after monitor canceled by @ZhangZixuan1994 in https://github.com/apache/hertzbeat/pull/1451 -* add ZhangZixuan1994 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1454 -* remove sleep, probably busy-waiting by @tomsun28 in https://github.com/apache/hertzbeat/pull/1456 -* doc add new committer ZY945 by @tomsun28 in https://github.com/apache/hertzbeat/pull/1453 -* Update app-zookeeper.yml by @hurenjie1 in https://github.com/apache/hertzbeat/pull/1458 -* add hurenjie1 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1459 -* update dashboard ui, remove ssh custom SignatureFactories, update app name by @tomsun28 in https://github.com/apache/hertzbeat/pull/1460 -* Task Monitoring Template Yml Metrics I18n | 监控模版指标国际化任务认领 #1212 by @tslj1024 in https://github.com/apache/hertzbeat/pull/1461 -* add tslj1024 as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1462 -* Add alarm trigger time for alarm restore by @Calvin979 in https://github.com/apache/hertzbeat/pull/1464 -* bugfix history range query not work when victoria-metrics store by @tomsun28 in https://github.com/apache/hertzbeat/pull/1463 -* bugfix springboot3 translation by @liyin in https://github.com/apache/hertzbeat/pull/1467 -* bugfix telegram-notice can not input bot-token by @tomsun28 in https://github.com/apache/hertzbeat/pull/1465 -* feat: support hostname target by @ldysdu in https://github.com/apache/hertzbeat/pull/1455 -* add ldysdu as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1471 -* feature support snmp v3 monitoring protocol by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1469 -* bugfix alarm trigger-times not work when alarm and recovered trigger cyclically by @tomsun28 in https://github.com/apache/hertzbeat/pull/1468 -* update switch monitoring metrics i18n by @tomsun28 in https://github.com/apache/hertzbeat/pull/1472 -* fixed: snmpv3 contextName bug by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1473 -* Fix npt of webhook notify by @Calvin979 in https://github.com/apache/hertzbeat/pull/1474 -* hertzbeat release hertzbeat version v1.4.4 by @tomsun28 in https://github.com/apache/hertzbeat/pull/1475 -* bugfix nginx collect http deadlock error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1476 -* alarm calculate ignore metrics collect code - TIMEOUT by @tomsun28 in https://github.com/apache/hertzbeat/pull/1478 +- bugfix metrics tags value store jpa data-storage error by @tomsun28 in +- add smtp protocol and support smtp monitoring by @ZY945 in +- add ZY945 as a contributor for code by @allcontributors in +- support new parse type 'log' in ssh collect protocol by @tomsun28 in +- add ntp protocol and support ntp monitoring by @ZY945 in +- monitoring the availability of websockets through handshake. by @ZY945 in +- Task-1386 When adding tags in tag management, random colors are given by default. by @prolevel1 in +- add prolevel1 as a contributor for code by @allcontributors in +- + +## 1397 feature: support for dns monitoring by @Calvin979 in + +- Support monitoring hive metrics by @a-little-fool in +- support legend pageable in history data charts by @tomsun28 in +- update component tip and help tip doc by @tomsun28 in +- feature: support monitoring nginx metrics and add a help doc by @a-little-fool in +- update parser to parse from prometheus txt metrics data by @tomsun28 in +- support monitoring memcached metrics and add a help doc by @ZY945 in +- support all ssh connect key exchange by @tomsun28 in +- doc add code of conduct by @tomsun28 in +- update label structure store in victoria metrics, make it prometheus like by @tomsun28 in +- feature: support monitoring pop3 metrics and add help doc by @a-little-fool in +- Update sidebars.json by @a-little-fool in +- Add zh-cn help doc by @a-little-fool in +- update monitoring state un-manage to unmonitored, update pic by @tomsun28 in +- Add jpa to date type storage by @Clownsw in +- bugfix ^o^ token error, protect metrics api auth by @tomsun28 in +- Add relevant documents for SMTP and NTP by @ZY945 in +- bugfix threshold init error in mysql env by @tomsun28 in +- app-rabbitmq.yml support for international name aliases by @ZY945 in +- fix: error create lru-cache-timeout-cleaner thread by @Clownsw in +- app-rabbitmq.yml Modifying Error Fields. by @ZY945 in +- support monitoring NebulaGraph metrics and add help doc by @ZY945 in +- Fix Nginx Collect validateParams function NPE by @Clownsw in +- feature: add metrics i18n for app-springboot3.yml by @liyin in +- feat: add metrics i18n for app-docker.yml by @liyin in +- update docker-compose script and fix version by @tomsun28 in +- bugfix java.lang.IllegalArgumentException: Illegal character in query… by @tomsun28 in +- bugfix delete monitor error after monitor canceled by @ZhangZixuan1994 in +- add ZhangZixuan1994 as a contributor for code by @allcontributors in +- remove sleep, probably busy-waiting by @tomsun28 in +- doc add new committer ZY945 by @tomsun28 in +- Update app-zookeeper.yml by @hurenjie1 in +- add hurenjie1 as a contributor for code by @allcontributors in +- update dashboard ui, remove ssh custom SignatureFactories, update app name by @tomsun28 in +- Task Monitoring Template Yml Metrics I18n | 监控模版指标国际化任务认领 #1212 by @tslj1024 in +- add tslj1024 as a contributor for code by @allcontributors in +- Add alarm trigger time for alarm restore by @Calvin979 in +- bugfix history range query not work when victoria-metrics store by @tomsun28 in +- bugfix springboot3 translation by @liyin in +- bugfix telegram-notice can not input bot-token by @tomsun28 in +- feat: support hostname target by @ldysdu in +- add ldysdu as a contributor for code by @allcontributors in +- feature support snmp v3 monitoring protocol by @TJxiaobao in +- bugfix alarm trigger-times not work when alarm and recovered trigger cyclically by @tomsun28 in +- update switch monitoring metrics i18n by @tomsun28 in +- fixed: snmpv3 contextName bug by @TJxiaobao in +- Fix npt of webhook notify by @Calvin979 in +- hertzbeat release hertzbeat version v1.4.4 by @tomsun28 in +- bugfix nginx collect http deadlock error by @tomsun28 in +- alarm calculate ignore metrics collect code - TIMEOUT by @tomsun28 in ## New Contributors -* @ZY945 made their first contribution in https://github.com/apache/hertzbeat/pull/1407 -* @prolevel1 made their first contribution in https://github.com/apache/hertzbeat/pull/1412 -* @ZhangZixuan1994 made their first contribution in https://github.com/apache/hertzbeat/pull/1451 -* @hurenjie1 made their first contribution in https://github.com/apache/hertzbeat/pull/1458 -* @tslj1024 made their first contribution in https://github.com/apache/hertzbeat/pull/1461 -* @ldysdu made their first contribution in https://github.com/apache/hertzbeat/pull/1455 +- @ZY945 made their first contribution in +- @prolevel1 made their first contribution in +- @ZhangZixuan1994 made their first contribution in +- @hurenjie1 made their first contribution in +- @tslj1024 made their first contribution in +- @ldysdu made their first contribution in -**Full Changelog**: https://github.com/apache/hertzbeat/compare/v1.4.3...v1.4.4 +**Full Changelog**: ----- +--- ## Supported @@ -176,10 +178,10 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - and more for your custom monitoring. - Notifications support `Discord` `Slack` `Telegram` `Mail` `Pinning` `WeChat` `FlyBook` `SMS` `Webhook` `ServerChan`. ----- +--- -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** +**Github: ** +**Gitee: ** ### **下载链接** @@ -203,8 +205,6 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN - ⬇️ [hertzbeat-collector-macos_amd64_1.4.4.tar.gz](https://github.com/apache/hertzbeat/releases/download/v1.4.4/hertzbeat-collector-macos_amd64_1.4.4.tar.gz) - ⬇️ [hertzbeat-collector-windows64_1.4.4.zip](https://github.com/apache/hertzbeat/releases/download/v1.4.4/hertzbeat-collector-windows64_1.4.4.zip) - **hertzbeat docker compose script** -- ⬇️ [docker-compose](https://github.com/apache/hertzbeat/releases/download/v1.4.4/docker-compose.zip) - +- ⬇️ [docker-compose](https://github.com/apache/hertzbeat/releases/download/v1.4.4/docker-compose.zip) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-04-17-to-apache.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-04-17-to-apache.md index d34f4b4097d..3495200adc9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-04-17-to-apache.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-04-17-to-apache.md @@ -12,18 +12,14 @@ keywords: [open source monitoring system, alerting system] HertzBeat 于 2022 年 1 月在 Dromara 开源社区正式开源,经过两年多的社区小伙伴们的不间断项目维护迭代,持续的社区成长,现在,HertzBeat 正式官宣加入 Apache 孵化器! - ![](/img/blog/apache-incubator-1.png) ![](/img/blog/apache-incubator-2.png) - - 加入 Apache 孵化器不是终点,这是项目的全新起点。加入 Apache 孵化器后,在社区层面,HertzBeat 将积极践行『开放、协作』 的 Apache 之道,持续构建一个公平,多元,包容的开源社区。在开源产品层面,倾听用户声音,提升优化产品使用体验,打造对接开源生态。 非常欢迎各位加入到 HertzBeat 社区,社区接受任何形式的贡献,让我们一起共同推动开源的发展,希望有朝一日 HertzBeat 能像 Apache Kafka, Apache Tomcat 这些基金会顶级项目一样,成为一款世界级的开源产品,我们所贡献的代码被部署运行在全球的各个行业,各个角落。 - ## 什么是 HertzBeat [Apache HertzBeat](https://github.com/apache/hertzbeat) (incubating) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 @@ -38,19 +34,16 @@ HertzBeat 于 2022 年 1 月在 Dromara 开源社区正式开源,经过两年 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - 提供强大的状态页构建能力,轻松向用户传达您产品服务的实时状态。 - > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助用户快速搭建自有监控系统。 ## HertzBeat 发展现状 HertzBeat 开源以来主仓库在 GitHub 累计收获 **4.5K+** star, Gitee **2.4K+** star, 累计发布版本 **20** 次,统计的软件安装包 DockerHub 等下载安装量累计超 **100K+** ,社区参与代码贡献人数 **180** 人,项目和社区的不断完善进步, 由衷的感谢每位贡献者的努力和付出💗。 - ## 社区小伙伴们 > 谢谢这些可爱的贡献者们。 -
@@ -281,8 +274,6 @@ HertzBeat 开源以来主仓库在 GitHub 累计收获 **4.5K+** star, Gitee **2
- - ## 特别感谢 感谢所有参与到社区的贡献者。 @@ -304,29 +295,26 @@ HertzBeat 开源以来主仓库在 GitHub 累计收获 **4.5K+** star, Gitee **2 > 感谢导师 @XiaoYu 、 @Yonglun 、 @Justin 、 @Francis 各位导师无私的帮助, 在合规和流程推进上的给予了专业指导。从 Dromara 开源社区到 Apache 孵化器,@XiaoYu 一直是 HertzBeat 的开源领路人。相信未来在各位导师的指导下社区一定社区更加健康的成长。 - ## 来自 Dromara 社区的寄语 > HertzBeat 从 Dromara 明星项目到成为 Apache 孵化器的一员,展现出了强劲的生命力和健康的成长态势。我们为 HertzBeat 的每一步前进感到自豪和振奋。在此,我们向 HertzBeat 团队致以最诚挚的祝贺,也向所有为该项目贡献力量的社区成员表示深深的感激。 - +> > 愿 HertzBeat 在未来的旅程中持续发展,不断创新,成为开源社区中的亮眼之星。我们相信,凭借团队的出色才能和社区的广泛支持,HertzBeat 必将实现更加辉煌的成就,为全球的开发者和用户提供优质的服务和体验。Dromara 将继续全力支持和关注 HertzBeat 的发展,期待它创造出更加精彩的篇章! ---- +--- **项目地址** -**https://github.com/apache/hertzbeat** +**** 欢迎 star 我们🐶🐶🐶 **官方网址** -**https://hertzbeat.apache.org/** +**** **邮件列表** -**dev@hertzbeat.apache.org** - -发送任意内容至 dev-subcribe@hertzbeat.apache.org 订阅 - +**** +发送任意内容至 订阅 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-05-09-hertzbeat-ospp-subject-introduction.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-05-09-hertzbeat-ospp-subject-introduction.md index 349490ea278..cb7c0af9d48 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-05-09-hertzbeat-ospp-subject-introduction.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-05-09-hertzbeat-ospp-subject-introduction.md @@ -13,11 +13,9 @@ - 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 -**Github: https://github.com/apache/hertzbeat** - -**Gitee: https://gitee.com/hertzbeat/hertzbeat** - +**Github: ** +**Gitee: ** ## 什么是开源之夏? @@ -39,8 +37,6 @@ 各位同学可以自由选择项目,与社区导师沟通实现方案并撰写项目计划书。被选中的学生将在社区导师指导下,按计划完成开发工作,并将成果贡献给社区。社区评估学生的完成度,主办方根据评估结果发放资助金额给学生。 - - ## HertzBeat 课题 ### 1、实现监控模版市场商店 @@ -55,8 +51,6 @@ 这样不仅能让 `HertzBeat` 的生态更加完善,也能让用户的体验变的更好! - - **要求:** 1. 使用Java17, springboot3编写后端代码,Angular(建议)或Vue编写前端代码。 @@ -64,20 +58,14 @@ 3. 模板页面展示下载量、分类、模板描述信息、模版历史版本(可选)。 4. 实现用户个人页面注册、登录(后期),上传模板。 - - **产出:** - 1. 特性代码能以PR的形式合入HertzBeat仓库。 - 2. 完成 HertzBeat官方模板市场 - 3. 更新相关帮助文档 - - **联系导师:** 赵青然 [zqr10159@dromara.org](mailto:zqr10159@dromara.org) - - ### 2、实现 Java 原生的 ipmi2 通信协议 **项目难度:进阶/Advanced** @@ -90,20 +78,13 @@ 温度传感器信息和时钟信息。 - - **要求:** 1. 使⽤ Java 基于 UDP 协议实现原⽣的 IPMI2 协议(查询部分),不依赖任何第三⽅包。 -2. 利⽤实现的 IPMI2 协议查询开启 IPMI 的服务器的各项指标信息,包括主板信息、⽹卡信息、电源信息、⻛扇信 - -息、温度传感器信息和时钟信息。 - +2. 利⽤实现的 IPMI2 协议查询开启 IPMI 的服务器的各项指标信息,包括主板信息、⽹卡信息、电源信息、⻛扇信息、温度传感器信息和时钟信息。 3. 对查询到的指标信息进⾏抽象和规范化处理,实现配置化管理(可选)。 4. 输出详细的项⽬⽂档,包括设计思路、实现细节、使⽤说明等。 - - **产出:** - 特性代码能以PR的形式合⼊HertzBeat仓库。 @@ -114,12 +95,8 @@ - 完善帮助⽂档。 - - **联系导师:** 铁甲小宝 [tjxiaobao2024@qq.com](mailto:tjxiaobao2024@qq.com) - - ## 参与 HertzBeat 能收获什么? 有的同学可能会疑惑参与开源之夏能收获到什么呢? @@ -130,4 +107,4 @@ 4. **【推荐入职/实习】在本次编程之夏项目中表现优秀同学,可推荐入职/实习 你心意的公司工作。** 5. **【额外获得社区惊喜】所有参与本次编程之夏项目的同学,均可有机会成为 Apache HertzBeat 的committer,并拥有属于自己的 apache邮箱。** -**百分百有奖品拿哦**,现在唯一的问题是时间不多了,赶紧上车报名!截止报名时间是6月4日,快点来报名参与 2023 编程之夏吧~ \ No newline at end of file +**百分百有奖品拿哦**,现在唯一的问题是时间不多了,赶紧上车报名!截止报名时间是6月4日,快点来报名参与 2023 编程之夏吧~ diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-11-hertzbeat-v1.6.0-update.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-11-hertzbeat-v1.6.0-update.md index f6bd48ae1a5..94bb6ce6388 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-11-hertzbeat-v1.6.0-update.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-11-hertzbeat-v1.6.0-update.md @@ -1,255 +1,271 @@ # HertzBeat 1.6.0 升级指南 -### 注意:该指适用于1.6.0之前的版本向1.6.0版本升级 +## 注意:该指南适用于1.5.0向1.6.0版本升级 -### 二进制安装包升级 +## 如果你使用更老的版本,建议使用导出功能重新安装,或先升级到1.5.0再按本指南升级到1.6.0 + +## 二进制安装包升级 1. 升级Java环境 -由于1.6.0版本使用Java17,且安装包不再提供内置jdk的版本,参考以下情况使用新版Hertzbeat。 + 由于1.6.0版本使用Java17,且安装包不再提供内置jdk的版本,参考以下情况使用新版Hertzbeat。 + + - 当你的服务器中默认环境变量为Java17时,这一步你无需任何操作。 + - 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**没有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并在搜索引擎搜索如何设置新的环境变量指向新的Java17。 + - 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并将解压后的文件夹重命名为java,复制到Hertzbeat的解压目录下。 -- 当你的服务器中默认环境变量为Java17时,这一步你无需任何操作。 -- 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**没有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并在搜索引擎搜索如何设置新的环境变量指向新的Java17。 -- 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并将解压后的文件夹重命名为java,复制到Hertzbeat的解压目录下。 2. 升级数据库 -打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), -选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件执行升级sql。 + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件执行升级sql。 3. 升级配置文件 -由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接使用新的yml配置文件,然后在自己的需求基础上进行修改。 - -- `application.yml`一般需要修改以下部分 - - 默认为: -```yaml - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL - hikari: - max-lifetime: 120000 - - jpa: - show-sql: false - database-platform: org.eclipse.persistence.platform.database.MySQLPlatform - database: h2 - properties: - eclipselink: - logging: - level: SEVERE -``` -如若修改为mysql数据库,给出一个示例: -```yaml - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: root - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - hikari: - max-lifetime: 120000 - - jpa: - show-sql: false - database-platform: org.eclipse.persistence.platform.database.MySQLPlatform - database: mysql - properties: - eclipselink: - logging: - level: SEVERE -``` - -- `sureness.yml`修改是可选的,一般在你需要修改账号密码时 -```yaml -# account info config -# eg: admin has role [admin,user], password is hertzbeat -# eg: tom has role [user], password is hertzbeat -# eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] - - appId: lili - # credential = MD5(password + salt) - # plain password: hertzbeat - # attention: digest authentication does not support salted encrypted password accounts - credential: 94C6B34E7A199A9F9D4E1F208093B489 - salt: 123 - role: [user] -``` - + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: org.h2.Driver + username: sa + password: 123456 + url: jdbc:h2:./data/hertzbeat;MODE=MYSQL + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: h2 + properties: + eclipselink: + logging: + level: SEVERE + ``` + + 如若修改为mysql数据库,给出一个示例: + + ```yaml + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: mysql + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` 4. 添加相应的数据库驱动 - 由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动,复制到安装目录下`ext-lib`中。 -mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) -oracle(如果你要监控oracle,这两个驱动是必须的) -[https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) -[https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动,复制到安装目录下`ext-lib`中。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) 接下来,像之前那样运行启动脚本,即可体验最新的HertzBeat1.6.0! ### Docker 方式升级 - Mysql数据库 1. 关闭 HertzBeat 容器 -``` -docker stop hertzbeat -``` + + ```shell + docker stop hertzbeat + ``` 2. 升级数据库脚本 -打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), -选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 Mysql 执行升级sql。 + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 Mysql 执行升级sql。 3. 升级配置文件 -由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 - -- `application.yml`一般需要修改以下部分 - - 默认为: -```yaml - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: root - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai - hikari: - max-lifetime: 120000 - - jpa: - show-sql: false - database-platform: org.eclipse.persistence.platform.database.MySQLPlatform - database: mysql - properties: - eclipselink: - logging: - level: SEVERE -``` - -- `sureness.yml`修改是可选的,一般在你需要修改账号密码时 -```yaml -# account info config -# eg: admin has role [admin,user], password is hertzbeat -# eg: tom has role [user], password is hertzbeat -# eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] - - appId: lili - # credential = MD5(password + salt) - # plain password: hertzbeat - # attention: digest authentication does not support salted encrypted password accounts - credential: 94C6B34E7A199A9F9D4E1F208093B489 - salt: 123 - role: [user] -``` + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: mysql + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` 4. 添加相应的数据库驱动 - 由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 -mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) -oracle(如果你要监控oracle,这两个驱动是必须的) -[https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) -[https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) 接下来,像之前那样 Docker 运行启动 HertzBeat,即可体验最新的HertzBeat1.6.0! ### Docker安装升级 - H2内置数据库(生产环境不推荐使用H2) 1. 关闭 HertzBeat 容器 -``` -docker stop hertzbeat -``` + + ```shell + docker stop hertzbeat + ``` 2. 编辑H2数据库文件 前题你已经将 H2 数据库文件 data 目录挂载到本地,或者启动老容器手动将 /opt/hertzbeat/data 目录拷贝出来。 下载 h2 驱动 jar [https://mvnrepository.com/artifact/com.h2database/h2/2.2.220](https://mvnrepository.com/artifact/com.h2database/h2/2.2.220) 使用 h2 驱动 jar 本地启动数据库 -``` -java -jar h2-2.2.220.jar -url jdbc:h2:file:./hertzbeat -user sa -password 123456 -``` -打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), -选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 H2 执行升级sql。 -3. 升级配置文件 + ```shell + java -jar h2-2.2.220.jar -url jdbc:h2:file:./hertzbeat -user sa -password 123456 + ``` + + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 H2 执行升级sql。 -由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 - -- `application.yml`一般需要修改以下部分 - - 默认为: -```yaml - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL - hikari: - max-lifetime: 120000 - - jpa: - show-sql: false - database-platform: org.eclipse.persistence.platform.database.MySQLPlatform - database: h2 - properties: - eclipselink: - logging: - level: SEVERE -``` - -- `sureness.yml`修改是可选的,一般在你需要修改账号密码时 -```yaml -# account info config -# eg: admin has role [admin,user], password is hertzbeat -# eg: tom has role [user], password is hertzbeat -# eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] - - appId: lili - # credential = MD5(password + salt) - # plain password: hertzbeat - # attention: digest authentication does not support salted encrypted password accounts - credential: 94C6B34E7A199A9F9D4E1F208093B489 - salt: 123 - role: [user] -``` +3. 升级配置文件 + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: org.h2.Driver + username: sa + password: 123456 + url: jdbc:h2:./data/hertzbeat;MODE=MYSQL + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: h2 + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` 4. 添加相应的数据库驱动 - 由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 -mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) -oracle(如果你要监控oracle,这两个驱动是必须的) -[https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) -[https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) 接下来,像之前那样 Docker 运行启动,即可体验最新的HertzBeat1.6.0! ### 通过导出导入升级 -> 若不想如上繁琐的脚本升级方式,可以直接将老环境的监控任务和阈值信息导出导入 +> 若不想如上繁琐的脚本升级方式,可以直接将老环境的监控任务和阈值信息导出导入 1. 部署一套最新版本的新环境 2. 在页面上将老环境的监控任务和阈值信息导出。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-hertzbeat-v1.6.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-hertzbeat-v1.6.0.md index 41267f8f964..031deb4806a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-hertzbeat-v1.6.0.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-06-15-hertzbeat-v1.6.0.md @@ -10,16 +10,16 @@ keywords: [open source, monitoring, alerting] **Hi 朋友们,我们很高兴地宣布,Apache HertzBeat (incubating) 的了第一个Apache版本 v1.6.0 发布啦!🎉.** -经过近五个月的社区开发迭代贡献和两个月的Apache Incubator孵化过程,Apache HertzBeat (incubating) v1.6.0 终于出来了。 -这个版本我们增加了对OpenAi监控,Redfish协议服务器,插件机制,支持了NebulaGraph, Apache Yarn, HDFS, Hbase, Storm等更多功能特性。 -由于License兼容问题,我们在底层替换了ORM框架,计算框架等多个依赖,Hibernate -> EclipseLink, 这也算是JPA生态下为数不多的迁移踩坑实践。 -同时修复了一些bug和优化了一些功能,更完善的文档。欢迎大家尝试使用,提出宝贵意见和建议,共同推动HertzBeat的发展。🎉 +经过近五个月的社区开发迭代贡献和两个月的Apache Incubator孵化过程,Apache HertzBeat (incubating) v1.6.0 终于出来了。 +这个版本我们增加了对OpenAi监控,Redfish协议服务器,插件机制,支持了NebulaGraph, Apache Yarn, HDFS, Hbase, Storm等更多功能特性。 +由于License兼容问题,我们在底层替换了ORM框架,计算框架等多个依赖,Hibernate -> EclipseLink, 这也算是JPA生态下为数不多的迁移踩坑实践。 +同时修复了一些bug和优化了一些功能,更完善的文档。欢迎大家尝试使用,提出宝贵意见和建议,共同推动HertzBeat的发展。🎉 **当然,最重要的是给在社区的贡献者们致以最好的感谢!** -下载页面: https://hertzbeat.apache.org/docs/download/ +下载页面: -升级指南: https://hertzbeat.apache.org/blog/2024/06/11/hertzbeat-v1.6.0-update/ +升级指南: ## 什么是 HertzBeat? @@ -35,14 +35,13 @@ keywords: [open source, monitoring, alerting] - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - 提供强大的状态页构建能力,轻松向用户传达您产品服务的实时状态。 - > `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助用户快速搭建自有监控系统。 ![hertzBeat](/img/docs/hertzbeat-arch.png) -**Github: https://github.com/apache/hertzbeat** +**Github: ** -## HertzBeat's 1.6.0 Version Release! +## HertzBeat's 1.6.0 Version Release ## 亮点更新 @@ -80,293 +79,292 @@ keywords: [open source, monitoring, alerting] ## What's Changed -* bugfix collector can not startup alone by @tomsun28 in https://github.com/apache/hertzbeat/pull/1633 -* translate some hertzbeat blog by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1635 -* Check class description by @ZY945 in https://github.com/apache/hertzbeat/pull/1638 -* translate class description to english by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1641 -* support monitor metrics name i18n: ClickHouse by @ZY945 in https://github.com/apache/hertzbeat/pull/1642 -* translate blog 20220601 to English by @vinci-897 in https://github.com/apache/hertzbeat/pull/1646 -* add a online prometheus parser and a prometheus-like push style. by @vinci-897 in https://github.com/apache/hertzbeat/pull/1644 -* translate blog 20220320 to English by @vinci-897 in https://github.com/apache/hertzbeat/pull/1647 -* support monitor metrics name i18n: DynamicTp by @ZY945 in https://github.com/apache/hertzbeat/pull/1649 -* translate blog 20220228 to English by @vinci-897 in https://github.com/apache/hertzbeat/pull/1648 -* translate blog 20220310 to English by @vinci-897 in https://github.com/apache/hertzbeat/pull/1651 -* translate blog 20220904 to English by @vinci-897 in https://github.com/apache/hertzbeat/pull/1652 -* support monitor metrics name i18n: Airflow by @ZY945 in https://github.com/apache/hertzbeat/pull/1654 -* support monitor metrics name i18n: IoTDB by @ZY945 in https://github.com/apache/hertzbeat/pull/1659 -* Translate 2022-02-11-hertzbeat document by @wang1027-wqh in https://github.com/apache/hertzbeat/pull/1660 -* bugfix The annotation @Transactional specifies rollbackFor. by @handy-git in https://github.com/apache/hertzbeat/pull/1643 -* add handy-git as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1661 -* feature:Translate 2022-02-17-hertzbeat Document by @wang1027-wqh in https://github.com/apache/hertzbeat/pull/1662 -* support monitor metrics name i18n: rocketmq by @ZY945 in https://github.com/apache/hertzbeat/pull/1663 -* [doc] update relate doc and readme by @tomsun28 in https://github.com/apache/hertzbeat/pull/1667 -* bugfix monitoring mongodb not work in springboot3 by @ZY945 in https://github.com/apache/hertzbeat/pull/1668 -* [feature] add storm monitor by @starmilkxin in https://github.com/apache/hertzbeat/pull/1673 -* [bugfix] fixed the issue in http_sd where services were incorrectly reported as available when they were actually unavailable by @starmilkxin in https://github.com/apache/hertzbeat/pull/1678 -* remove mysql-oracle dependency jar from release package lib by @tomsun28 in https://github.com/apache/hertzbeat/pull/1680 -* System config theme by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1636 -* update webapp menu layout and doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1682 -* bugfix can not find mysql dependency when startup by @tomsun28 in https://github.com/apache/hertzbeat/pull/1686 -* support config common aes secret by @tomsun28 in https://github.com/apache/hertzbeat/pull/1683 -* [bugfix]fix the issue of add redis cluster node test error report(#1601) by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1684 -* add LiuTianyou as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1687 -* mongodb monitoring support custom connection timeout param by @ZY945 in https://github.com/apache/hertzbeat/pull/1697 -* bugfix old data decode error when use new common-secret by @tomsun28 in https://github.com/apache/hertzbeat/pull/1696 -* [bugfix] fix bug where reopening pop-up window still retained previously edited data after closing. by @starmilkxin in https://github.com/apache/hertzbeat/pull/1698 -* monitor center add search type modal by @tomsun28 in https://github.com/apache/hertzbeat/pull/1699 -* fix status page logo overflow by @tomsun28 in https://github.com/apache/hertzbeat/pull/1700 -* bugfix npe monitor jobid may be null by @tomsun28 in https://github.com/apache/hertzbeat/pull/1701 -* support custom main menus in monitor template by @tomsun28 in https://github.com/apache/hertzbeat/pull/1703 -* update home website doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1712 -* [Improve] change package group to org apache hertzbeat by @vinci-897 in https://github.com/apache/hertzbeat/pull/1724 -* [improve] initial license clean up by @tomsun28 in https://github.com/apache/hertzbeat/pull/1725 -* update manager and collector logback config(#1704) by @handy-git in https://github.com/apache/hertzbeat/pull/1723 -* fix(sec): upgrade com.h2database:h2 to by @WinterKi1ler in https://github.com/apache/hertzbeat/pull/1718 -* add WinterKi1ler as a contributor for code by @allcontributors in https://github.com/apache/hertzbeat/pull/1736 -* update asf branch protected check by @tomsun28 in https://github.com/apache/hertzbeat/pull/1738 -* [doc]Update star chart by @zqr10159 in https://github.com/apache/hertzbeat/pull/1737 -* [fixed] fixed click collector online offline button error by @miki-hmt in https://github.com/apache/hertzbeat/pull/1734 -* [improve] initial doc clean up by @tomsun28 in https://github.com/apache/hertzbeat/pull/1741 -* [Improvement]Support multiple receivers. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1731 -* [improvement]Add lisence. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1746 -* Backend LICENSE Initialize by @wang1027-wqh in https://github.com/apache/hertzbeat/pull/1744 -* Back-end dependency upgrade by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1743 -* [Improve] run hertzbeat in docker compose support dependen service condition by @gjjjj0101 in https://github.com/apache/hertzbeat/pull/1748 -* [bugfix] fix statuspage index exception by @makechoicenow in https://github.com/apache/hertzbeat/pull/1747 -* remove unlicensed dependency 'wolfy87 eventemitter' by @alpha951 in https://github.com/apache/hertzbeat/pull/1745 -* [improve] auto label when pr, update asf config by @tomsun28 in https://github.com/apache/hertzbeat/pull/1749 -* [improve] update asf config set required status checks context by @tomsun28 in https://github.com/apache/hertzbeat/pull/1751 -* [improve] home add apache info by @a-little-fool in https://github.com/apache/hertzbeat/pull/1740 -* [doc] Change e2e path by @crossoverJie in https://github.com/apache/hertzbeat/pull/1758 -* fix : ingress tls inoperative by @PeixyJ in https://github.com/apache/hertzbeat/pull/1760 -* [refactor] method improvement rationale by @dukbong in https://github.com/apache/hertzbeat/pull/1757 -* [improve] create disclaimer file, add incubating in describe by @tomsun28 in https://github.com/apache/hertzbeat/pull/1764 -* [improve] update new hertzbeat brand logo, update doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1761 -* Complete the code comment translation of the common module by @Hi-Mr-Wind in https://github.com/apache/hertzbeat/pull/1766 -* Remove unnecessary if-else statement. by @dukbong in https://github.com/apache/hertzbeat/pull/1770 -* [doc] remove and translate chinese to english in warehous by @xuziyang in https://github.com/apache/hertzbeat/pull/1773 -* Replace deprecated methods with builder pattern for RedisURI construction by @dukbong in https://github.com/apache/hertzbeat/pull/1772 -* remove and translate chinese to english in collector,script,push,remoting and manager module by @MananPoojara in https://github.com/apache/hertzbeat/pull/1774 -* Added the function of sending SMS messages through Alibaba Cloud. by @lwqzz in https://github.com/apache/hertzbeat/pull/1768 -* [improve]Add frontend license. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1776 -* [test] Add RedisSingleCollectImplTest by @crossoverJie in https://github.com/apache/hertzbeat/pull/1784 -* [refactor] add override annotation by @handy-git in https://github.com/apache/hertzbeat/pull/1782 -* '[docs]bugfix: display syntax error of ipmi protocol' by @tomorrowshipyltm in https://github.com/apache/hertzbeat/pull/1793 -* [doc] translate alerter moudle code chinese to english by @tomsun28 in https://github.com/apache/hertzbeat/pull/1765 -* [refactor] database-related properties class, type changed to record by @xuziyang in https://github.com/apache/hertzbeat/pull/1786 -* Fix snmp template unit conversion problem by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1796 -* [doc] Add help documentation for clickhouse monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1798 -* [feature:update-checkstyle] Limit the java file header by @YxYL6125 in https://github.com/apache/hertzbeat/pull/1799 -* [improve]Add external lib folder to store mysql and oracle driver. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1783 -* [Improve]When multiple lines are returned, each alarm is triggered instead of only the first alarm by @15613060203 in https://github.com/apache/hertzbeat/pull/1797 -* [doc] add team page in website by @alpha951 in https://github.com/apache/hertzbeat/pull/1800 -* [feature] Improve the import checkstyle by @crossoverJie in https://github.com/apache/hertzbeat/pull/1802 -* [doc] Add help document for dns monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1804 -* [improve] preventing NPE by @dukbong in https://github.com/apache/hertzbeat/pull/1808 -* [refactor] change the warehouse properties the type to record by @xuziyang in https://github.com/apache/hertzbeat/pull/1806 -* Refactor: upgrade syntax to jdk17(instanceof & switch) by @Calvin979 in https://github.com/apache/hertzbeat/pull/1807 -* [test] Add NginxCollect test by @crossoverJie in https://github.com/apache/hertzbeat/pull/1809 -* [website] update team page by @tomsun28 in https://github.com/apache/hertzbeat/pull/1803 -* [test] Add RedisClusterCollectImplTest by @crossoverJie in https://github.com/apache/hertzbeat/pull/1789 -* [improve] Fix typo ReqStatusResponse by @crossoverJie in https://github.com/apache/hertzbeat/pull/1811 -* Comparing N objects for null with Assert.noNullElements(). by @dukbong in https://github.com/apache/hertzbeat/pull/1814 -* [doc] Add help document for elasticsearch monitoring and ftp monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1815 -* [doc] add help documentation for huawei switch monitoring by @Alanxtl in https://github.com/apache/hertzbeat/pull/1813 -* chore: upgrade the api-testing (e2e) to v0.0.16 by @LinuxSuRen in https://github.com/apache/hertzbeat/pull/1817 -* [Remove][Improve]Mail config by @zqr10159 in https://github.com/apache/hertzbeat/pull/1819 -* Remove and translate chinese to english in code by @dukbong in https://github.com/apache/hertzbeat/pull/1816 -* [feature]Add monitoring for Hbase Master by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1820 -* [doc] resolve code conflicts and coverage caused by pr(#1813) merge by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1821 -* [doc] Add help document for tidb and nacos monitoring by @Alanxtl in https://github.com/apache/hertzbeat/pull/1823 -* [improve] use eclipselink orm replace of hibernate orm by @tomsun28 in https://github.com/apache/hertzbeat/pull/1801 -* [improve] Add whitespace checkstyle by @crossoverJie in https://github.com/apache/hertzbeat/pull/1824 -* [bugfix] dns monitoring template add query class parameter by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1825 -* [Refactor] Preventing Unnecessary Object Creation and Using Utility Methods by @dukbong in https://github.com/apache/hertzbeat/pull/1818 -* [doc]Add and modify Doris FE Chinese and English documentation by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1828 -* [docs] Optimize: add help docs for UDP port & Springboot3 help doc by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/1832 -* Code Simplification, Structure Changes, and Translation Work, Along with a Question by @dukbong in https://github.com/apache/hertzbeat/pull/1827 -* [doc] add help document for mongodb monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1834 -* [collector] fix: inverts the compareTo sort of MetricsCollect run queue by @Pzz-2021 in https://github.com/apache/hertzbeat/pull/1837 -* [doc]Doc add debian system by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1842 -* [feature] Add Apache Hbase RegionServer monitoring by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1833 -* [improve] Optimize websocket monitor by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1838 -* [refactor] Split the WarehouseProperties class by @xuziyang in https://github.com/apache/hertzbeat/pull/1830 -* [test] Add test for HttpsdImpl by @crossoverJie in https://github.com/apache/hertzbeat/pull/1840 -* [fix] Fix the wrong comment by @xuziyang in https://github.com/apache/hertzbeat/pull/1843 -* [refactor] trans and use assert by @dukbong in https://github.com/apache/hertzbeat/pull/1841 -* [bugfix] modify the command in the mongodb monitoring template by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1844 -* [bigfix]Fix Debian system Top10 monitoring bug by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1846 -* [cleanup]Delete the corresponding Chinese comments by @hudongdong129 in https://github.com/apache/hertzbeat/pull/1847 -* [doc] translates chinese comment to english. by @dukbong in https://github.com/apache/hertzbeat/pull/1853 -* [doc] fix error and add help document for prometheus task by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1852 -* [feature] Add Linux process monitoring by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1857 -* [test] Add test for FtpCollectImpl by @crossoverJie in https://github.com/apache/hertzbeat/pull/1856 -* [improve] use apache jexl replace of aviator by @tomsun28 in https://github.com/apache/hertzbeat/pull/1859 -* [bugfix] jpa data save logic repair by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1863 -* [feature] add influxdb metrics monitoring by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1730 -* [doc] add help document for rocketmq by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1874 -* [improve] Imporve checkstyle of test code. by @crossoverJie in https://github.com/apache/hertzbeat/pull/1864 -* [feature] Support Redfish protocol to monitoring server by @gjjjj0101 in https://github.com/apache/hertzbeat/pull/1867 -* Fix debian monitoring template issue about process monitoring by @LLP2333 in https://github.com/apache/hertzbeat/pull/1868 -* [bugfix] centos Top10 shows missing one by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1870 -* [improve] add website apache incubator footer by @tomsun28 in https://github.com/apache/hertzbeat/pull/1860 -* [doc] update help document by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1861 -* [featurn] support flyway database migration by @tomsun28 in https://github.com/apache/hertzbeat/pull/1875 -* [improve] Delete the timestamp field in the class MetricFamily.Metric by @xuziyang in https://github.com/apache/hertzbeat/pull/1878 -* [improve] Use java.lang.AutoCloseable instead of CacheCloseable by @crossoverJie in https://github.com/apache/hertzbeat/pull/1879 -* [bugfix]Fix top10 process command. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1876 -* [feature] support the VictoriaMetrics cluster by @xuziyang in https://github.com/apache/hertzbeat/pull/1880 -* [improve] Refactor common cache code by @crossoverJie in https://github.com/apache/hertzbeat/pull/1881 -* Eliminate Unnecessary Unboxing and Generics by @handy-git in https://github.com/apache/hertzbeat/pull/1882 -* [bugfix][doc]Add kafka sidebar. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1883 -* [doc] I18n for monitoring template yml metrics by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/1888 -* [refactor] StoreProperties is no longer useful, delete it by @xuziyang in https://github.com/apache/hertzbeat/pull/1887 -* bugfix statistical metrics data matching fails by @tomsun28 in https://github.com/apache/hertzbeat/pull/1884 -* [doc] add help doc for flink monitoring by @HeartLinked in https://github.com/apache/hertzbeat/pull/1893 -* [doc] add almalinux documentation by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1892 -* [improve] Missing a generic by @crossoverJie in https://github.com/apache/hertzbeat/pull/1889 -* [bugfix] Fixed some metrics of Jexlespression not matching in Elasticsearch by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1894 -* feat(*): Support Time Type to Tengine Data Storage by @Clownsw in https://github.com/apache/hertzbeat/pull/1890 -* [feature] support random jwt secret when not custom by @tomsun28 in https://github.com/apache/hertzbeat/pull/1897 -* [doc] add opensuse doc by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1902 -* fix when manager restart, collect register error by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1896 -* [bugfix] fix can not use empty collection as query params in eclipselink by @tomsun28 in https://github.com/apache/hertzbeat/pull/1900 -* [doc] update doc add download page and pic by @tomsun28 in https://github.com/apache/hertzbeat/pull/1904 -* [test] Add test for UdpCollectImpl by @crossoverJie in https://github.com/apache/hertzbeat/pull/1906 -* fix license by @yqxxgh in https://github.com/apache/hertzbeat/pull/1907 -* [improve] refactor code by @Ceilzcx in https://github.com/apache/hertzbeat/pull/1901 -* [type:bugfix] fix customized menu invalid bug #1898 by @Aias00 in https://github.com/apache/hertzbeat/pull/1908 -* [type:bugfix] fix HTTP API bug #1895 by @Aias00 in https://github.com/apache/hertzbeat/pull/1909 -* [test] Add test for WebsocketCollectImpl by @crossoverJie in https://github.com/apache/hertzbeat/pull/1912 -* [doc] translates chinese comment to english. by @westboy in https://github.com/apache/hertzbeat/pull/1914 -* [doc] Add HIP document and template by @crossoverJie in https://github.com/apache/hertzbeat/pull/1913 -* [improve] clean up home webapp unused code by @tomsun28 in https://github.com/apache/hertzbeat/pull/1915 -* [feature] support use ngql query metrics from nebulaGraph by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1917 -* [doc] Improve the Contribution Documentation. by @crossoverJie in https://github.com/apache/hertzbeat/pull/1918 -* [featrue]add apache hdfs monitor by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1920 -* [doc] update hbase documentation description by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1921 -* [doc] Add documentation for nebulaGraph cluster monitoring and custom monitoring using NGQL, and clean up useless parameters by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1923 -* [test] Add test for TelnetCollectImplTest by @crossoverJie in https://github.com/apache/hertzbeat/pull/1924 -* fix(*): fix TdEngine Init not found Database by @Clownsw in https://github.com/apache/hertzbeat/pull/1891 -* [doc] update contribution and add run-build guide by @tomsun28 in https://github.com/apache/hertzbeat/pull/1919 -* bugfix collector startup error can not find JdbcClient by @tomsun28 in https://github.com/apache/hertzbeat/pull/1925 -* [doc] add help document for freebsd monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1928 -* [refactoring] Split AbstractHistoryDataStorage class by @xuziyang in https://github.com/apache/hertzbeat/pull/1926 -* [fix] fixed name error in monitoring template and improve NGQL protocol by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1931 -* [refactoring] Split AbstractRealTimeDataStorage class by @xuziyang in https://github.com/apache/hertzbeat/pull/1935 -* [bugfix] fix ssl-cert days_remaining and npe by @tomsun28 in https://github.com/apache/hertzbeat/pull/1934 -* [feature] add apache yarn monitor by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1937 -* [doc] add help document for redhat monitoring and rocky linux monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1939 -* [test] Add test for NtpCollectImpl by @crossoverJie in https://github.com/apache/hertzbeat/pull/1940 -* [bugfix] fix alarm center tags display error by @tomsun28 in https://github.com/apache/hertzbeat/pull/1938 -* [improve] prepare for release hertzbeat v1.6.0 by @tomsun28 in https://github.com/apache/hertzbeat/pull/1929 -* add:Updated the Open Source Summer Project blog. by @TJxiaobao in https://github.com/apache/hertzbeat/pull/1943 -* [feature] Support monitoring of OpenAI accounts by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/1947 -* [refactoring] Inject a single instance of the data store by @xuziyang in https://github.com/apache/hertzbeat/pull/1944 -* [refactoring] AbstractHistoryDataStorage implement the DisposableBean by @xuziyang in https://github.com/apache/hertzbeat/pull/1946 -* [doc] update iotdb init document by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1948 -* [improve] update build script by @tomsun28 in https://github.com/apache/hertzbeat/pull/1949 -* [test] add test for NgqlCollectImpl by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1953 -* [bugfix]Replace monitors to alert. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1954 -* [improve] add llm, server menu and update doc by @tomsun28 in https://github.com/apache/hertzbeat/pull/1955 -* [improve][HIP] HIP-01: Refactoring AbstractCollect by @crossoverJie in https://github.com/apache/hertzbeat/pull/1930 -* [bugfix] fix ConnectionCommonCache possible npe by @crossoverJie in https://github.com/apache/hertzbeat/pull/1959 -* [doc] add help document for eulerOS monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1960 -* [fixbug] Fix the problem of no data for springboot3 monitoring by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1961 -* commit:fix the front-end popup cannot exit by @Yanshuming1 in https://github.com/apache/hertzbeat/pull/1957 -* [fixbug] expression rule adaptation by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1963 -* [doc] add help doc for influxdb-promql and kafka-promql monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/1965 -* [doc]: update readme-cn docs by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1964 -* [improve][HIP] HIP-01: Implement refactoring AbstractCollect by @crossoverJie in https://github.com/apache/hertzbeat/pull/1966 -* [chore] update .gitignore to save .idea/icon.png by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1971 -* [improve][bugfix]: fix AlertTemplateUtilTest test exception and update code style by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1969 -* [feature] add apache hugegraph monitor by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1972 -* [improve] Implement cascading parameter list for SNMP protocol by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/1976 -* [improve] optimize DateUtil and add test case by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1974 -* [feature]Hertzbeat custom plugin. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1973 -* update login page and status page color by @lwjxy in https://github.com/apache/hertzbeat/pull/1977 -* [chore] update code style and add some comment by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1975 -* [doc]Hertzbeat plugin doc. by @zqr10159 in https://github.com/apache/hertzbeat/pull/1980 -* [doc] update contributors and update status page style by @tomsun28 in https://github.com/apache/hertzbeat/pull/1981 -* [feature] Implement cascading parameter list by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/1978 -* [doc]update threshold alarm doc by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1983 -* [chore] optimize code style by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1984 -* [fix] Compatible with MongoDB versions earlier than 3.6 by @gjjjj0101 in https://github.com/apache/hertzbeat/pull/1988 -* [chore] optimize manager code style by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1993 -* [doc] Translate part of documentation development.md under `zh-cn` directory from `en` to `zh-cn` by @Thespica in https://github.com/apache/hertzbeat/pull/1995 -* [improve] http protocol prometheus parsing optimization by @zhangshenghang in https://github.com/apache/hertzbeat/pull/1996 -* [feature] add at function for wechat by @Yanshuming1 in https://github.com/apache/hertzbeat/pull/1994 -* [improve] add common util test by @yuluo-yx in https://github.com/apache/hertzbeat/pull/2001 -* [improve] update release license notice and package by @tomsun28 in https://github.com/apache/hertzbeat/pull/2003 -* [bugfix] fix collector startup error classpath by @tomsun28 in https://github.com/apache/hertzbeat/pull/2004 -* [chore] optimize code style by @yuluo-yx in https://github.com/apache/hertzbeat/pull/2000 -* [improve] Bump up `eslint-plugin-jsdoc` to 48.2.5 to support node 20+ by @Thespica in https://github.com/apache/hertzbeat/pull/2005 -* [doc] fix doc highlighting by @boatrainlsz in https://github.com/apache/hertzbeat/pull/2006 -* [web-app]feature: case insensitive search by @JavaProgrammerLB in https://github.com/apache/hertzbeat/pull/2007 -* [feature] Support time calculation expressions. by @LiuTianyou in https://github.com/apache/hertzbeat/pull/2009 -* [doc] add document for time expression by @LiuTianyou in https://github.com/apache/hertzbeat/pull/2012 -* [feature] Add Apache Pulsar monitor by @zhangshenghang in https://github.com/apache/hertzbeat/pull/2013 -* [doc] home verify release doc update by @tomsun28 in https://github.com/apache/hertzbeat/pull/2014 -* [Improve] Improve clickhouse monitor And Improve Pulsar monitor by @zhangshenghang in https://github.com/apache/hertzbeat/pull/2015 -* [doc] translate help document for memcached monitoring by @LiuTianyou in https://github.com/apache/hertzbeat/pull/2019 -* [improve] optimize collector httpsd discovery by @yuluo-yx in https://github.com/apache/hertzbeat/pull/1991 -* [optimize] optimize code style and logic, add unit test by @yuluo-yx in https://github.com/apache/hertzbeat/pull/2010 -* [fix] Fix possible potential thread safe bugs by @gjjjj0101 in https://github.com/apache/hertzbeat/pull/2021 -* [improve] add ci for home by @LiuTianyou in https://github.com/apache/hertzbeat/pull/2024 -* [bugfix]Tag with empty value Shouldn't transform to Tag: by @JavaProgrammerLB in https://github.com/apache/hertzbeat/pull/2025 -* [bugfix] modify popup confirm to clear cache and cancel popup save by @Yanshuming1 in https://github.com/apache/hertzbeat/pull/2026 -* [improve] update monitor state desc by @tomsun28 in https://github.com/apache/hertzbeat/pull/2028 -* bugfix: fix overflow of integers by @Calvin979 in https://github.com/apache/hertzbeat/pull/2029 -* [improve] tips need update initial default password by @tomsun28 in https://github.com/apache/hertzbeat/pull/2030 -* [improve] deprecate support iotdb 0.* version by @Ceilzcx in https://github.com/apache/hertzbeat/pull/2032 -* [fixbug] required field check by @zhangshenghang in https://github.com/apache/hertzbeat/pull/2022 -* [improve] add IcmpCollectImplTest by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/2033 -* [improve] fix code style by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/2034 -* [improve] increase the length limit of the username field by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/2035 -* [improve] Checkstyle include testSource by @crossoverJie in https://github.com/apache/hertzbeat/pull/2036 -* [bugfix] fix collector and frontend dependent license error by @tomsun28 in https://github.com/apache/hertzbeat/pull/2037 -* [improve] Add test for MemcachedCollectImpl by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/2044 -* [imprve] Remove duplicate indices by @zuobiao-zhou in https://github.com/apache/hertzbeat/pull/2045 -* [docs]: fix several typos in docs by @lw-yang in https://github.com/apache/hertzbeat/pull/2047 -* Add the missing parts of docs, fix layout, sync the English version with the Chinese version by @xfl12345 in https://github.com/apache/hertzbeat/pull/2048 -* [improve] add filename check in home ci by @LiuTianyou in https://github.com/apache/hertzbeat/pull/2049 -* [improve] update dependency licenses and remove the aliyun sms depend by @tomsun28 in https://github.com/apache/hertzbeat/pull/2058 +- bugfix collector can not startup alone by @tomsun28 in +- translate some hertzbeat blog by @TJxiaobao in +- Check class description by @ZY945 in +- translate class description to english by @TJxiaobao in +- support monitor metrics name i18n: ClickHouse by @ZY945 in +- translate blog 20220601 to English by @vinci-897 in +- add a online prometheus parser and a prometheus-like push style. by @vinci-897 in +- translate blog 20220320 to English by @vinci-897 in +- support monitor metrics name i18n: DynamicTp by @ZY945 in +- translate blog 20220228 to English by @vinci-897 in +- translate blog 20220310 to English by @vinci-897 in +- translate blog 20220904 to English by @vinci-897 in +- support monitor metrics name i18n: Airflow by @ZY945 in +- support monitor metrics name i18n: IoTDB by @ZY945 in +- Translate 2022-02-11-hertzbeat document by @wang1027-wqh in +- bugfix The annotation @Transactional specifies rollbackFor. by @handy-git in +- add handy-git as a contributor for code by @allcontributors in +- feature:Translate 2022-02-17-hertzbeat Document by @wang1027-wqh in +- support monitor metrics name i18n: rocketmq by @ZY945 in +- [doc] update relate doc and readme by @tomsun28 in +- bugfix monitoring mongodb not work in springboot3 by @ZY945 in +- [feature] add storm monitor by @starmilkxin in +- [bugfix] fixed the issue in http_sd where services were incorrectly reported as available when they were actually unavailable by @starmilkxin in +- remove mysql-oracle dependency jar from release package lib by @tomsun28 in +- System config theme by @TJxiaobao in +- update webapp menu layout and doc by @tomsun28 in +- bugfix can not find mysql dependency when startup by @tomsun28 in +- support config common aes secret by @tomsun28 in +- [bugfix]fix the issue of add redis cluster node test error report(#1601) by @LiuTianyou in +- add LiuTianyou as a contributor for code by @allcontributors in +- mongodb monitoring support custom connection timeout param by @ZY945 in +- bugfix old data decode error when use new common-secret by @tomsun28 in +- [bugfix] fix bug where reopening pop-up window still retained previously edited data after closing. by @starmilkxin in +- monitor center add search type modal by @tomsun28 in +- fix status page logo overflow by @tomsun28 in +- bugfix npe monitor jobid may be null by @tomsun28 in +- support custom main menus in monitor template by @tomsun28 in +- update home website doc by @tomsun28 in +- [Improve] change package group to org apache hertzbeat by @vinci-897 in +- [improve] initial license clean up by @tomsun28 in +- update manager and collector logback config(#1704) by @handy-git in +- fix(sec): upgrade com.h2database:h2 to by @WinterKi1ler in +- add WinterKi1ler as a contributor for code by @allcontributors in +- update asf branch protected check by @tomsun28 in +- [doc]Update star chart by @zqr10159 in +- [fixed] fixed click collector online offline button error by @miki-hmt in +- [improve] initial doc clean up by @tomsun28 in +- [Improvement]Support multiple receivers. by @zqr10159 in +- [improvement]Add lisence. by @zqr10159 in +- Backend LICENSE Initialize by @wang1027-wqh in +- Back-end dependency upgrade by @TJxiaobao in +- [Improve] run hertzbeat in docker compose support dependen service condition by @gjjjj0101 in +- [bugfix] fix statuspage index exception by @makechoicenow in +- remove unlicensed dependency 'wolfy87 eventemitter' by @alpha951 in +- [improve] auto label when pr, update asf config by @tomsun28 in +- [improve] update asf config set required status checks context by @tomsun28 in +- [improve] home add apache info by @a-little-fool in +- [doc] Change e2e path by @crossoverJie in +- fix : ingress tls inoperative by @PeixyJ in +- [refactor] method improvement rationale by @dukbong in +- [improve] create disclaimer file, add incubating in describe by @tomsun28 in +- [improve] update new hertzbeat brand logo, update doc by @tomsun28 in +- Complete the code comment translation of the common module by @Hi-Mr-Wind in +- Remove unnecessary if-else statement. by @dukbong in +- [doc] remove and translate chinese to english in warehous by @xuziyang in +- Replace deprecated methods with builder pattern for RedisURI construction by @dukbong in +- remove and translate chinese to english in collector,script,push,remoting and manager module by @MananPoojara in +- Added the function of sending SMS messages through Alibaba Cloud. by @lwqzz in +- [improve]Add frontend license. by @zqr10159 in +- [test] Add RedisSingleCollectImplTest by @crossoverJie in +- [refactor] add override annotation by @handy-git in +- '[docs]bugfix: display syntax error of ipmi protocol' by @tomorrowshipyltm in +- [doc] translate alerter moudle code chinese to english by @tomsun28 in +- [refactor] database-related properties class, type changed to record by @xuziyang in +- Fix snmp template unit conversion problem by @TJxiaobao in +- [doc] Add help documentation for clickhouse monitoring by @LiuTianyou in +- [feature:update-checkstyle] Limit the java file header by @YxYL6125 in +- [improve]Add external lib folder to store mysql and oracle driver. by @zqr10159 in +- [Improve]When multiple lines are returned, each alarm is triggered instead of only the first alarm by @15613060203 in +- [doc] add team page in website by @alpha951 in +- [feature] Improve the import checkstyle by @crossoverJie in +- [doc] Add help document for dns monitoring by @LiuTianyou in +- [improve] preventing NPE by @dukbong in +- [refactor] change the warehouse properties the type to record by @xuziyang in +- Refactor: upgrade syntax to jdk17(instanceof & switch) by @Calvin979 in +- [test] Add NginxCollect test by @crossoverJie in +- [website] update team page by @tomsun28 in +- [test] Add RedisClusterCollectImplTest by @crossoverJie in +- [improve] Fix typo ReqStatusResponse by @crossoverJie in +- Comparing N objects for null with Assert.noNullElements(). by @dukbong in +- [doc] Add help document for elasticsearch monitoring and ftp monitoring by @LiuTianyou in +- [doc] add help documentation for huawei switch monitoring by @Alanxtl in +- chore: upgrade the api-testing (e2e) to v0.0.16 by @LinuxSuRen in +- [Remove][Improve]Mail config by @zqr10159 in +- Remove and translate chinese to english in code by @dukbong in +- [feature]Add monitoring for Hbase Master by @zhangshenghang in +- [doc] resolve code conflicts and coverage caused by pr(#1813) merge by @LiuTianyou in +- [doc] Add help document for tidb and nacos monitoring by @Alanxtl in +- [improve] use eclipselink orm replace of hibernate orm by @tomsun28 in +- [improve] Add whitespace checkstyle by @crossoverJie in +- [bugfix] dns monitoring template add query class parameter by @LiuTianyou in +- [Refactor] Preventing Unnecessary Object Creation and Using Utility Methods by @dukbong in +- [doc]Add and modify Doris FE Chinese and English documentation by @zhangshenghang in +- [docs] Optimize: add help docs for UDP port & Springboot3 help doc by @zuobiao-zhou in +- Code Simplification, Structure Changes, and Translation Work, Along with a Question by @dukbong in +- [doc] add help document for mongodb monitoring by @LiuTianyou in +- [collector] fix: inverts the compareTo sort of MetricsCollect run queue by @Pzz-2021 in +- [doc]Doc add debian system by @zhangshenghang in +- [feature] Add Apache Hbase RegionServer monitoring by @zhangshenghang in +- [improve] Optimize websocket monitor by @LiuTianyou in +- [refactor] Split the WarehouseProperties class by @xuziyang in +- [test] Add test for HttpsdImpl by @crossoverJie in +- [fix] Fix the wrong comment by @xuziyang in +- [refactor] trans and use assert by @dukbong in +- [bugfix] modify the command in the mongodb monitoring template by @LiuTianyou in +- [bigfix]Fix Debian system Top10 monitoring bug by @zhangshenghang in +- [cleanup]Delete the corresponding Chinese comments by @hudongdong129 in +- [doc] translates chinese comment to english. by @dukbong in +- [doc] fix error and add help document for prometheus task by @LiuTianyou in +- [feature] Add Linux process monitoring by @zhangshenghang in +- [test] Add test for FtpCollectImpl by @crossoverJie in +- [improve] use apache jexl replace of aviator by @tomsun28 in +- [bugfix] jpa data save logic repair by @zhangshenghang in +- [feature] add influxdb metrics monitoring by @TJxiaobao in +- [doc] add help document for rocketmq by @LiuTianyou in +- [improve] Imporve checkstyle of test code. by @crossoverJie in +- [feature] Support Redfish protocol to monitoring server by @gjjjj0101 in +- Fix debian monitoring template issue about process monitoring by @LLP2333 in +- [bugfix] centos Top10 shows missing one by @zhangshenghang in +- [improve] add website apache incubator footer by @tomsun28 in +- [doc] update help document by @LiuTianyou in +- [featurn] support flyway database migration by @tomsun28 in +- [improve] Delete the timestamp field in the class MetricFamily.Metric by @xuziyang in +- [improve] Use java.lang.AutoCloseable instead of CacheCloseable by @crossoverJie in +- [bugfix]Fix top10 process command. by @zqr10159 in +- [feature] support the VictoriaMetrics cluster by @xuziyang in +- [improve] Refactor common cache code by @crossoverJie in +- Eliminate Unnecessary Unboxing and Generics by @handy-git in +- [bugfix][doc]Add kafka sidebar. by @zqr10159 in +- [doc] I18n for monitoring template yml metrics by @zuobiao-zhou in +- [refactor] StoreProperties is no longer useful, delete it by @xuziyang in +- bugfix statistical metrics data matching fails by @tomsun28 in +- [doc] add help doc for flink monitoring by @HeartLinked in +- [doc] add almalinux documentation by @zhangshenghang in +- [improve] Missing a generic by @crossoverJie in +- [bugfix] Fixed some metrics of Jexlespression not matching in Elasticsearch by @zhangshenghang in +- feat(*): Support Time Type to Tengine Data Storage by @Clownsw in +- [feature] support random jwt secret when not custom by @tomsun28 in +- [doc] add opensuse doc by @zhangshenghang in +- fix when manager restart, collect register error by @Ceilzcx in +- [bugfix] fix can not use empty collection as query params in eclipselink by @tomsun28 in +- [doc] update doc add download page and pic by @tomsun28 in +- [test] Add test for UdpCollectImpl by @crossoverJie in +- fix license by @yqxxgh in +- [improve] refactor code by @Ceilzcx in +- [type:bugfix] fix customized menu invalid bug #1898 by @Aias00 in +- [type:bugfix] fix HTTP API bug #1895 by @Aias00 in +- [test] Add test for WebsocketCollectImpl by @crossoverJie in +- [doc] translates chinese comment to english. by @westboy in +- [doc] Add HIP document and template by @crossoverJie in +- [improve] clean up home webapp unused code by @tomsun28 in +- [feature] support use ngql query metrics from nebulaGraph by @LiuTianyou in +- [doc] Improve the Contribution Documentation. by @crossoverJie in +- [featrue]add apache hdfs monitor by @zhangshenghang in +- [doc] update hbase documentation description by @zhangshenghang in +- [doc] Add documentation for nebulaGraph cluster monitoring and custom monitoring using NGQL, and clean up useless parameters by @LiuTianyou in +- [test] Add test for TelnetCollectImplTest by @crossoverJie in +- fix(*): fix TdEngine Init not found Database by @Clownsw in +- [doc] update contribution and add run-build guide by @tomsun28 in +- bugfix collector startup error can not find JdbcClient by @tomsun28 in +- [doc] add help document for freebsd monitoring by @LiuTianyou in +- [refactoring] Split AbstractHistoryDataStorage class by @xuziyang in +- [fix] fixed name error in monitoring template and improve NGQL protocol by @LiuTianyou in +- [refactoring] Split AbstractRealTimeDataStorage class by @xuziyang in +- [bugfix] fix ssl-cert days_remaining and npe by @tomsun28 in +- [feature] add apache yarn monitor by @zhangshenghang in +- [doc] add help document for redhat monitoring and rocky linux monitoring by @LiuTianyou in +- [test] Add test for NtpCollectImpl by @crossoverJie in +- [bugfix] fix alarm center tags display error by @tomsun28 in +- [improve] prepare for release hertzbeat v1.6.0 by @tomsun28 in +- add:Updated the Open Source Summer Project blog. by @TJxiaobao in +- [feature] Support monitoring of OpenAI accounts by @zuobiao-zhou in +- [refactoring] Inject a single instance of the data store by @xuziyang in +- [refactoring] AbstractHistoryDataStorage implement the DisposableBean by @xuziyang in +- [doc] update iotdb init document by @zhangshenghang in +- [improve] update build script by @tomsun28 in +- [test] add test for NgqlCollectImpl by @LiuTianyou in +- [bugfix]Replace monitors to alert. by @zqr10159 in +- [improve] add llm, server menu and update doc by @tomsun28 in +- [improve][HIP] HIP-01: Refactoring AbstractCollect by @crossoverJie in +- [bugfix] fix ConnectionCommonCache possible npe by @crossoverJie in +- [doc] add help document for eulerOS monitoring by @LiuTianyou in +- [fixbug] Fix the problem of no data for springboot3 monitoring by @zhangshenghang in +- commit:fix the front-end popup cannot exit by @Yanshuming1 in +- [fixbug] expression rule adaptation by @zhangshenghang in +- [doc] add help doc for influxdb-promql and kafka-promql monitoring by @LiuTianyou in +- [doc]: update readme-cn docs by @yuluo-yx in +- [improve][HIP] HIP-01: Implement refactoring AbstractCollect by @crossoverJie in +- [chore] update .gitignore to save .idea/icon.png by @yuluo-yx in +- [improve][bugfix]: fix AlertTemplateUtilTest test exception and update code style by @yuluo-yx in +- [feature] add apache hugegraph monitor by @zhangshenghang in +- [improve] Implement cascading parameter list for SNMP protocol by @zuobiao-zhou in +- [improve] optimize DateUtil and add test case by @yuluo-yx in +- [feature]Hertzbeat custom plugin. by @zqr10159 in +- update login page and status page color by @lwjxy in +- [chore] update code style and add some comment by @yuluo-yx in +- [doc]Hertzbeat plugin doc. by @zqr10159 in +- [doc] update contributors and update status page style by @tomsun28 in +- [feature] Implement cascading parameter list by @zuobiao-zhou in +- [doc]update threshold alarm doc by @zhangshenghang in +- [chore] optimize code style by @yuluo-yx in +- [fix] Compatible with MongoDB versions earlier than 3.6 by @gjjjj0101 in +- [chore] optimize manager code style by @yuluo-yx in +- [doc] Translate part of documentation development.md under `zh-cn` directory from `en` to `zh-cn` by @Thespica in +- [improve] http protocol prometheus parsing optimization by @zhangshenghang in +- [feature] add at function for wechat by @Yanshuming1 in +- [improve] add common util test by @yuluo-yx in +- [improve] update release license notice and package by @tomsun28 in +- [bugfix] fix collector startup error classpath by @tomsun28 in +- [chore] optimize code style by @yuluo-yx in +- [improve] Bump up `eslint-plugin-jsdoc` to 48.2.5 to support node 20+ by @Thespica in +- [doc] fix doc highlighting by @boatrainlsz in +- [web-app]feature: case insensitive search by @JavaProgrammerLB in +- [feature] Support time calculation expressions. by @LiuTianyou in +- [doc] add document for time expression by @LiuTianyou in +- [feature] Add Apache Pulsar monitor by @zhangshenghang in +- [doc] home verify release doc update by @tomsun28 in +- [Improve] Improve clickhouse monitor And Improve Pulsar monitor by @zhangshenghang in +- [doc] translate help document for memcached monitoring by @LiuTianyou in +- [improve] optimize collector httpsd discovery by @yuluo-yx in +- [optimize] optimize code style and logic, add unit test by @yuluo-yx in +- [fix] Fix possible potential thread safe bugs by @gjjjj0101 in +- [improve] add ci for home by @LiuTianyou in +- [bugfix]Tag with empty value Shouldn't transform to Tag: by @JavaProgrammerLB in +- [bugfix] modify popup confirm to clear cache and cancel popup save by @Yanshuming1 in +- [improve] update monitor state desc by @tomsun28 in +- bugfix: fix overflow of integers by @Calvin979 in +- [improve] tips need update initial default password by @tomsun28 in +- [improve] deprecate support iotdb 0.* version by @Ceilzcx in +- [fixbug] required field check by @zhangshenghang in +- [improve] add IcmpCollectImplTest by @zuobiao-zhou in +- [improve] fix code style by @zuobiao-zhou in +- [improve] increase the length limit of the username field by @zuobiao-zhou in +- [improve] Checkstyle include testSource by @crossoverJie in +- [bugfix] fix collector and frontend dependent license error by @tomsun28 in +- [improve] Add test for MemcachedCollectImpl by @zuobiao-zhou in +- [imprve] Remove duplicate indices by @zuobiao-zhou in +- [docs]: fix several typos in docs by @lw-yang in +- Add the missing parts of docs, fix layout, sync the English version with the Chinese version by @xfl12345 in +- [improve] add filename check in home ci by @LiuTianyou in +- [improve] update dependency licenses and remove the aliyun sms depend by @tomsun28 in ## New Contributors -* @handy-git made their first contribution in https://github.com/apache/hertzbeat/pull/1643 -* @LiuTianyou made their first contribution in https://github.com/apache/hertzbeat/pull/1684 -* @WinterKi1ler made their first contribution in https://github.com/apache/hertzbeat/pull/1718 -* @miki-hmt made their first contribution in https://github.com/apache/hertzbeat/pull/1734 -* @gjjjj0101 made their first contribution in https://github.com/apache/hertzbeat/pull/1748 -* @makechoicenow made their first contribution in https://github.com/apache/hertzbeat/pull/1747 -* @alpha951 made their first contribution in https://github.com/apache/hertzbeat/pull/1745 -* @crossoverJie made their first contribution in https://github.com/apache/hertzbeat/pull/1758 -* @PeixyJ made their first contribution in https://github.com/apache/hertzbeat/pull/1760 -* @dukbong made their first contribution in https://github.com/apache/hertzbeat/pull/1757 -* @xuziyang made their first contribution in https://github.com/apache/hertzbeat/pull/1773 -* @MananPoojara made their first contribution in https://github.com/apache/hertzbeat/pull/1774 -* @lwqzz made their first contribution in https://github.com/apache/hertzbeat/pull/1768 -* @tomorrowshipyltm made their first contribution in https://github.com/apache/hertzbeat/pull/1793 -* @YxYL6125 made their first contribution in https://github.com/apache/hertzbeat/pull/1799 -* @15613060203 made their first contribution in https://github.com/apache/hertzbeat/pull/1797 -* @Alanxtl made their first contribution in https://github.com/apache/hertzbeat/pull/1813 -* @zhangshenghang made their first contribution in https://github.com/apache/hertzbeat/pull/1820 -* @zuobiao-zhou made their first contribution in https://github.com/apache/hertzbeat/pull/1832 -* @Pzz-2021 made their first contribution in https://github.com/apache/hertzbeat/pull/1837 -* @LLP2333 made their first contribution in https://github.com/apache/hertzbeat/pull/1868 -* @HeartLinked made their first contribution in https://github.com/apache/hertzbeat/pull/1893 -* @Aias00 made their first contribution in https://github.com/apache/hertzbeat/pull/1908 -* @westboy made their first contribution in https://github.com/apache/hertzbeat/pull/1914 -* @Yanshuming1 made their first contribution in https://github.com/apache/hertzbeat/pull/1957 -* @yuluo-yx made their first contribution in https://github.com/apache/hertzbeat/pull/1964 -* @lwjxy made their first contribution in https://github.com/apache/hertzbeat/pull/1977 -* @Thespica made their first contribution in https://github.com/apache/hertzbeat/pull/1995 -* @boatrainlsz made their first contribution in https://github.com/apache/hertzbeat/pull/2006 -* @JavaProgrammerLB made their first contribution in https://github.com/apache/hertzbeat/pull/2007 -* @lw-yang made their first contribution in https://github.com/apache/hertzbeat/pull/2047 -* @xfl12345 made their first contribution in https://github.com/apache/hertzbeat/pull/2048 - +- @handy-git made their first contribution in +- @LiuTianyou made their first contribution in +- @WinterKi1ler made their first contribution in +- @miki-hmt made their first contribution in +- @gjjjj0101 made their first contribution in +- @makechoicenow made their first contribution in +- @alpha951 made their first contribution in +- @crossoverJie made their first contribution in +- @PeixyJ made their first contribution in +- @dukbong made their first contribution in +- @xuziyang made their first contribution in +- @MananPoojara made their first contribution in +- @lwqzz made their first contribution in +- @tomorrowshipyltm made their first contribution in +- @YxYL6125 made their first contribution in +- @15613060203 made their first contribution in +- @Alanxtl made their first contribution in +- @zhangshenghang made their first contribution in +- @zuobiao-zhou made their first contribution in +- @Pzz-2021 made their first contribution in +- @LLP2333 made their first contribution in +- @HeartLinked made their first contribution in +- @Aias00 made their first contribution in +- @westboy made their first contribution in +- @Yanshuming1 made their first contribution in +- @yuluo-yx made their first contribution in +- @lwjxy made their first contribution in +- @Thespica made their first contribution in +- @boatrainlsz made their first contribution in +- @JavaProgrammerLB made their first contribution in +- @lw-yang made their first contribution in +- @xfl12345 made their first contribution in ## 一条命令即可开始 @@ -376,21 +374,18 @@ keywords: [open source, monitoring, alerting] ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` +详细参考 HertzBeat 官网文档 -详细参考 HertzBeat 官网文档 https://hertzbeat.com/docs - - ----- - -**Github: https://github.com/apache/hertzbeat** +--- +**Github: ** -下载页面: https://hertzbeat.apache.org/docs/download/ +下载页面: -升级指南: https://hertzbeat.apache.org/blog/2024/06/11/hertzbeat-v1.6.0-update/ +升级指南: Have Fun! ----- +--- HertzBeat, Make Monitoring Easier! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-07-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-07-new-committer.md index 3cd89bc0ac2..e1190acd56e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-07-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-07-new-committer.md @@ -8,7 +8,6 @@ tags: [opensource, practice] keywords: [open source monitoring system, alerting system] --- - ![hertzBeat](/img/blog/new-committer.png) > 🎉非常高兴成为 Apache HertzBeat 项目的 Committer,受社区邀请来做一个自我介绍🥰。 @@ -17,7 +16,7 @@ keywords: [open source monitoring system, alerting system] 个人一直热衷于开源社区,同时也是 Apache Pulsar 的 Committer,OpenTelemetry 和 VictoriaMetrics 的 Contributor。 -# 与 HertzBeat 结缘 +## 与 HertzBeat 结缘 今年 4 月份,也就是 HertzBeat 进入 Apache 孵化器的时候,我无意间在朋友圈里看到了一篇公众号的推荐。 @@ -27,7 +26,7 @@ keywords: [open source monitoring system, alerting system] 所以对监控系统有一些经验同时也非常感兴趣,于是便阅读了文档很快就在本地启动起来了(这一点社区做的很好,许多开源项目第一步启动就要劝退不少潜在的开发者)。 -# 开始贡献 +## 开始贡献 我的第一个 PR 是修改了一个 PR 模版里的错误路径,社区处理的非常快,所以第一次贡献就好感倍增。 @@ -42,7 +41,3 @@ keywords: [open source monitoring system, alerting system] 在这个过程中我也把在其他社区(Pulsar、OpenTelemetry)的优秀经验借鉴到 HertzBeat,大家取长补短,想必这也是开源的魅力所在吧。 最后要感谢社区的 logicz 邀请我成为 Committer,tom 对我 PR 的 review,预祝 HertzBeat 从孵化器毕业成为明星项目🎊。 - - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-08-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-08-new-committer.md index 9cefa3dc661..a045e67963a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-08-new-committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-08-new-committer.md @@ -8,10 +8,8 @@ tags: [opensource, practice] keywords: [open source monitoring system, alerting system] --- - ![hertzBeat](/img/blog/new-committer.png) - ### 初识 Apache Hertzbeat 我第一次接触 Apache Hertzbeat 项目是因为一个偶然的机会。当时,我正在寻找一个开源项目来监控我们公司相关服务。Apache Hertzbeat 作为一个通用监控的项目,自然进入了我的视野。我开始通过阅读官方文档和浏览项目的代码库,来了解它的架构和功能。 @@ -24,7 +22,6 @@ keywords: [open source monitoring system, alerting system] 随着对项目的理解加深,我开始挑战一些更复杂的问题。我阅读了大量的代码,参与了社区的日常讨论,月例会讨论,并在issue/pr中活跃发言。这些活动不仅帮助我提升了技术能力,还让我对项目的发展方向有了更好的把握。我开始提出自己的想法和建议,积极参与设计讨论,并提出了一些新的功能。 - ### 被提名为 Committer 在经过一段时间的积极贡献之后,我收到了来自社区(tom) 的Committer 的提名。成为 Committer 意味着我将拥有更大的责任和权限。提名过程是公开和透明的,社区的每一个成员都有机会表达他们的意见。 @@ -49,4 +46,4 @@ keywords: [open source monitoring system, alerting system] ### 结语 -成为 Apache Hertzbeat 项目的 Committer 是一个充满挑战和收获的旅程。通过不断的学习和贡献,我不仅提升了自己的技术能力,也在社区中找到了归属感和成就感。我希望我的经历能够激励更多的人参与到开源社区中来,共同推动技术的进步和发展。借用tom老哥的话:参与开源不要影响大家的工作和生活,那就违背初衷啦,大家利用下班后空闲时间参与哦。 \ No newline at end of file +成为 Apache Hertzbeat 项目的 Committer 是一个充满挑战和收获的旅程。通过不断的学习和贡献,我不仅提升了自己的技术能力,也在社区中找到了归属感和成就感。我希望我的经历能够激励更多的人参与到开源社区中来,共同推动技术的进步和发展。借用tom老哥的话:参与开源不要影响大家的工作和生活,那就违背初衷啦,大家利用下班后空闲时间参与哦。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-15-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-15-new-committer.md new file mode 100644 index 00000000000..1942ccf08d7 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-15-new-committer.md @@ -0,0 +1,33 @@ +--- +title: 热烈欢迎 HertzBeat 小伙伴新晋社区 Committer! +author: LiuTianyou +author_title: LiuTianyou +author_url: https://github.com/LiuTianyou +author_image_url: https://avatars.githubusercontent.com/u/30208283?v=4 +tags: [opensource, practice] +keywords: [open source monitoring system, alerting system] +--- + +![hertzBeat](/img/blog/new-committer.png) + +大家好,非常荣幸可以收到社区邀请被提名为 Apache HertzBeat 的 Committer。我先做一个简单的自我介绍,从2019年工作开始,一直从事后端开发工作,主要使用Java语言,目前在一家网络安全公司从事网络安全相关产品后端开发工作。 + +### 遇见 + +我工作的项目里部署着数台物理服务器,其中运行着各种数据库,中间件,尽管部署了 Prometheus + grafana 的监控组合,但由于大多数的服务和服务器都需要额外安装 exporter,这套监控系统并没有覆盖到项目的全部,有时候服务宕机了,被用到了才发现。四月份的某一天我刷到了一篇公众号文章介绍了 HertzBeat,我马上被不需要 agent,全程可视化配置的特新吸引加上支持docker一键部署,我迅速的部署起来了 HertzBeat 并投入了使用。 + +### 熟悉 + +由于完全可视化操作,很快就将项目中用到的服务器,数据库,中间件纳入了 HertzBeat 的管理。之后,恰好社区为发布第一个Apache版本做准备,需要补充大量的文档。我尝试提交一些文档,来熟悉社区的提交代码和文档的流程,也顺便在补充的文档的过程的熟悉相关部分的代码。 + +### 尝试加一点东西 + +我做的第一个大的改动是让 HertzBeat 支持使用NGQL语句从NebulaGraph中查询指标,并且这个基于协议增加了NebulaGraph集群的监控模板。最开始有这个想法来源于自己的需求,当我把这个想法提交给社区时,很快就得到了社区的回应,并得到了肯定,这也让对持续参与这个项目信心倍增。 + +### 加入 + +由于我不停的写文档,贡献代码,我开始熟悉这个社区,熟悉这个项目,开始尝试提出一些自己的建议。很多建议都被社区采纳,并且在新版本中发布,在第一个Apache版本发布后,我收到了@tomsun28和@TJxiaobao的邀请被提名为Committer。 + +### 结语 + +非常荣幸可以参与到这个项目中并被社区认可,感谢帮我review代码,给我指导和帮助的 @tomsun28,@TJxiaobao,@zqr10159,@tuohai666,@yuluo-yx,@crossoverJie,@zhangshenghang,@pwallk。最后祝 Apache HertzBeat 茁壮成长,有越来越多的贡献者参与其中。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-27-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-27-new-committer.md new file mode 100644 index 00000000000..05a5d5329ce --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-27-new-committer.md @@ -0,0 +1,39 @@ +--- +title: 热烈欢迎 HertzBeat 小伙伴新晋社区 Committer! +author: Calvin979 +author_title: Calvin979 +author_url: https://github.com/Calvin979 +author_image_url: https://avatars.githubusercontent.com/u/131688897?v=4 +tags: [opensource, practice] +keywords: [open source monitoring system, alerting system] +--- + +![hertzBeat](/img/blog/new-committer.png) + +> 非常荣幸能成为Apache Hertzbeat的Committer + +## 个人介绍 + +本人自21年参与工作至今,一直从事Java后端开发工作。目前在一家互联网公司中参与融合通信中台的开发。 + +## 初识 Apache Hertzbeat + +因工作的原因,在空闲时间里会研究学习开源框架的代码来提升自己。无意间萌生了为开源社区做贡献的想法,也正是这个时候在一篇文章中认识到了Hertzbeat。Hertzbeat与我在工作中接触到的Prometheus以及Skywalking不一样,其无需Agent以及可以通过yaml自定义监控的特性深深吸引了我。为方便进一步学习,我拉取了Hertzbeat源码并运行调试。 + +## 第一个PR + +说来也奇怪,在CONTRIBUTING文档的指引下,我尝试去启动Hertzbeat但没有成功,启动报错显示Node.js版本至少需要18以上。也正是因为如此,我修改了CONTRIBUTING文档并提交,最终促成了我的第一个PR。 + +## 持续贡献 + +随着阅读文档和源码,我越来越熟悉Hertzbeat,除了完善文档及修复bug以外,还接入了DNS和注册中心监控。在完成了注册中心监控后,便着手开始更有挑战性的http_sd新特性开发。 + +## 收获 + +回顾一路以来的贡献,即使一开始只是最简单的订正文档与文档翻译,社区也是十分欢迎,让我深刻感受到了这个社区的包容性。后来在开发http_sd新特性的时候,与作者tom的交流也让我更进一步了解Hertzbeat整体的架构以及职责划分,最终也能完成这个新特性。 + +同时,在阅读Hertzbeat源码期间,学习到了很多代码写法以及技术点的实际应用,对我个人的成长也是非常有帮助的。 + +## 结语 + +成为Apache Hertzbeat的Committer于我而言是一次很有趣的经历,无时无刻都在激励着我。今后我也会持续对Apache Hertzbeat社区贡献下去,也希望Apache Hertzbeat能顺利从孵化器毕业。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-28-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-28-new-committer.md new file mode 100644 index 00000000000..d5a34851d1b --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-28-new-committer.md @@ -0,0 +1,39 @@ +--- +title: 热烈欢迎 HertzBeat 小伙伴新晋社区 Committer! +author: linDong +author_title: linDong +author_url: https://github.com/Yanshuming1 +author_image_url: https://avatars.githubusercontent.com/u/118667222?v=4 +tags: [opensource, practice] +keywords: [open source monitoring system, alerting system] +--- + +![hertzBeat](/img/blog/new-committer.png) + +> 非常荣幸能成为Apache Hertzbeat的Committer +> +## 个人介绍 + +本人是2023年毕业,目前在一家互联网公司担任java开发工程师。 + +## 初识 Apache Hertzbeat + +毕业之后,工作了半年,萌生出接触开源的想法。然而,在 GitHub 上搜索开源项目时,发现诸多社区活跃度欠佳,官方文档也不完善,致使项目上手难度颇大,因此开源之事暂且搁置。 +某天,在某平台看到小宝大佬的一个帖子,我瞬间兴趣盎然,随即私聊小宝,咨询开源相关事宜。小宝大佬极其热情且细致地为我讲解了不少开源方面的情况,并向我推荐了 Hertzbeat 这个项目。 + +## 第一个PR + +我down了 Hertzbeat 的源码,并按照文档进行编译和测试,然后在页面点击功能的时候发现了一个前端弹窗的bug,所以我提交了自己的第一个issue,并且我成功认领了此issue +于是开启了我的第一个PR。 + +## 持续贡献 + +在提交第一个 PR 之后,我持续关注 Hertzbeat 社区的 issue ,且尝试去解决当中存在的问题。相继完成了微信指定艾特人、接入 AI 、添加 PrestoDB 监控器、Bug 修改以及官网文档贡献等工作。 + +## 收获 + +经过几个月对开源的贡献,我收获满满,学习到了代码中的业务逻辑、代码规范,一些此前未曾使用过的技术框架,还有一些算法,可谓是获益良多。 + +## 结语 + +成为Apache Hertzbeat的Committer于我而言是很有意义对事情,今后我也会持续对Apache Hertzbeat社区贡献下去,也希望Apache Hertzbeat能顺利从孵化器毕业,希望社区越来越好。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-29-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-29-new-committer.md new file mode 100644 index 00000000000..5292ceefc37 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-07-29-new-committer.md @@ -0,0 +1,39 @@ +--- +title: 热烈欢迎 HertzBeat 小伙伴新晋社区 Committer! +author: kerwin612 +author_title: Le Zhang +author_url: https://github.com/kerwin612 +author_image_url: https://avatars.githubusercontent.com/u/3371163?v=4 +tags: [opensource, practice] +keywords: [open source monitoring system, alerting system] +--- + +![hertzBeat](/img/blog/new-committer.png) + +> 非常荣幸能成为Apache Hertzbeat的Committer + +## 成为更强大团队的一份子:我的贡献与成长 + +在开源社区中,每一次的贡献不仅是对项目的推动,也是个人成长的见证。近期,在Apache HertzBeat项目中,我通过一系列的优化与功能增强,不仅为项目的发展贡献了力量,也实现了自我技能的提升。今天,我想借此机会分享我的贡献经历与成长感悟。 + +## 从细节入手,优化视觉与交互 + +我始终认为细节决定成败,在参与项目之初,我便从界面优化入手,致力于提升用户的视觉和交互体验。我优化了监控选择菜单的模态窗口布局,使其更加符合用户的操作习惯;调整了监控详情页面的头部样式和内容布局,使得信息展示更加清晰直观。同时,我还统一了组件的边框圆角值,解决了国际化翻译缺失等问题,确保了系统界面的一致性和完整性。 + +这些看似微小的改动,实则大大提升了系统的整体美观度和用户体验。通过这个过程,我深刻体会到界面设计对于用户体验的重要性,也锻炼了自己在细节处理上的能力。 + +## 深入功能模块,实现功能增强 + +除了界面优化外,我还积极参与了功能模块的扩展与增强工作。我重构了系统中的重复代码,抽象出了通用组件,提高了代码的复用性和可维护性。这些改进不仅简化了开发流程,还降低了后期维护的成本。同时,我还为多功能输入组件添加了密码类型支持和搜索类型支持,进一步丰富了组件的功能和用途。 + +在功能实现的过程中,我遇到了不少挑战。但正是这些挑战促使我不断学习和探索新的技术和方法。通过查阅官方文档等方式,我逐步攻克了难关,并成功完成了任务。这个过程不仅提升了我的技术能力,也让我更加深刻地理解了团队协作的重要性。 + +## 注重用户反馈,持续优化产品 + +我始终认为用户是产品的最终评判者。因此,我在公司内部以及社区持续收集和分析用户的反馈意见,并根据这些意见进行针对性的优化和改进。通过优化搜索与筛选功能、统一使用简洁的交互元素等方式,我不断提升了用户的使用体验。 + +这个过程中,我深刻体会到了用户导向的重要性。只有真正关注用户的需求和期望才能打造出符合市场需求的产品。 + +## 展望未来,持续贡献与成长 + +回顾过去一段时间的贡献经历我深感自豪和满足。但同时我也清楚地认识到自己还有很多不足之处需要不断学习和提升。未来我将继续秉持着严谨、创新、用户至上的精神不断探索和实践为Apache HertzBeat项目贡献更多的力量。同时我也期待与更多的团队成员一起共同成长和进步共同推动项目的繁荣发展。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-08-18-new-committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-08-18-new-committer.md new file mode 100644 index 00000000000..050fc8610a8 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-08-18-new-committer.md @@ -0,0 +1,96 @@ +--- +title: 成为 Apache Committer, 对我参与开源的肯定 +author: yuluo-yx +author_title: Shown Ji +author_url: https://github.com/yuluo-yx +author_image_url: https://avatars.githubusercontent.com/u/77964041 +tags: [opensource, practice] +keywords: [open source monitoring system, alerting system, Apache, Apache Committer, Hertzbeat] +--- + +## 我的开源历程 + +说起开源,我在大三刚开始的时候就接触到了。当时的场景仍然历历在目。 + +回想起来,我第一个正式的 Github Pull Request 是给 Spring Cloud Alibaba 项目删除了一个多余的 Pom 依赖项。当时手忙脚乱,在捉摸了两个多小时后,才算是成功提交了第一个 Pull Request。非常感谢[铖朴](https://github.com/steverao),是他带着我认识了开源,踏出了参与开源至关重要的第一步。 + +从刚开始使用 Git 的手忙脚乱,到现在 `git c -m XXX`,以及 Github 上参与的各个 PR/Issue。回想起来,真是思绪万千。我觉得人生莫过于如此。学习摸索 -> 熟练使用 -> 做出成绩。 + +从大三至今,我仍然保持着对开源的热情,参与开源,直至今日,我已经是三个项目的 Committer 了。 + +## 参与 Apache Community + +[Apache 软件基金会(Apache Software Foundation,简称为ASF)](https://community.apache.org/),是一家美国的非营利组织,旨在支持各类开源软件项目。ASF最初由 Apache HTTP Server 的一群开发者组成,并在1999年3月25日正式成立。 截至2021年,其总成员数大约在1000名。命名是根据北美当地的一支印第安部落而来,这支部落以高超的军事素养和超人的忍耐力著称,19世纪后半期对侵占他们领土的入侵者进行了反抗。为了对这支印第安部落表示敬仰之意,取该部落名称(Apache)作为服务器名。但一提到这个命名,这里还有流传着一段有意思的故事。因为这个服务器是在 NCSA HTTPd 服务器的基础之上,通过众人努力,不断地修正、打补丁(Patchy)的产物,被戏称为“A Patchy Server”(一个补丁服务器)。在这里,因为“A Patchy”与“Apache”是谐音,故最后正式命名为“Apache Server”。 + +以上是来自于维基百科中对 Apache 软件基金会的介绍。 + +Apache 软件基金会起初是由开发 [Apache HTTPd](https://httpd.apache.org/) 的开发人员组成,他们以 Apache HTTPd 这一网络服务器项目为起点,创建了许多优秀的开源项目,吸引全球共同的开源爱好者参与项目的维护与迭代。不断有项目退休,不断有新项目被孵化,反反复复。才有了今天的 Apache 软件基金会。 + +![Apache HTTPd Server Logo](/img/blog/committer/yuluo-yx/4.jpg) + +### 第一次贡献 + +在 Apache 社区中的第一次贡献应该是给 Dubbo 项目删除了一个 `{@link}` 代码链接。说来惭愧,[Dubbo](https://github.com/apache/dubbo) 是我参与 Apache 的第一个开源项目,到现在为止仅有 6 个提交。5 月份的时候通过 [Rick](https://github.com/LinuxSuRen) 接触到了 [Apache Hertzbeat](https://github.com/apache/hertzbeat) 项目,从单元测试开始了我的 Apache 贡献之路。 + +### 获得提名,成为 Committer + +此次提名是 Apache HertzbeatP(Incubating) 的 PMC Member [Logic](https://github.com/zqr10159) 举荐的,感谢 Apache Hertzbeat Team。顺利提名成为了 Hertzbeat Committer,有了自己的 Apache 邮箱。 + +![Apache ID Email](/img/blog/committer/yuluo-yx/3.jpg) + +### Apache Committer 的意义 + +俗话说,能力越大,任务越大。成为了项目的 Committer 不仅仅是一个身份的转换,更是一个对自己自身能力的认同和肯定。在 Review PR 时,我的 `LGTM` 不再是一个灰色样式,而是变成了蓝色(因个人 Github 主题不同,展现的颜色也不同)。不用在等待其他的 Committer Approve CI。意味着对项目有了管理权利。 + +![PR Approve](/img/blog/committer/yuluo-yx/5.jpg) + +## 参与开源的方法 + +任何人去做一件事情,都需要一个契机和引路人。在许许多多的 Apache 项目中,不乏关注项目 Issue List 的人。记忆犹新的一次是:某个晚上在写完工具类的单元测试,发现了一个小 Bug。当时心里想的是,这个上下文信息太多了,写在 PR 里面不太好,于是开了一个 Issue 记录上下文。这个 Bug 小到什么程度呢?小到我刚创建完 Issue,在将单元测试和修复 Bug 的代码一起提交之后,再次刷新 PR List,看到了一个修复 Bug 的 PR Title。 + +其实不缺乏关注项目的人,更多的是需要一个契机!参与项目的契机。 + +### The Apache Way + +Apache Community 奉行的 [The Apache Way](https://www.apache.org/theapacheway/)。社区大于代码,好的社区往往比优秀的代码更重要,社区的组成成分包括开发者,用户等等。用户才是项目代码的第一使用者,健康的社区状态是用户在使用过程中:发现问题,而后报告问题,最后解决问题。更可能发生的一种情况是,用户报告问题,从用户身份转为开发者,解决问题。并在之后持续参与社区项目的维护。 + +### 参与开源的路径 + +开源往往很纯粹,Apache 基金会存在的意义也是为了保护项目和开发者。 + +#### Apache 社区身份定义 + +参与社区贡献之前,先要了解社区的身份定义是怎样的,项目的 Committer 到底位于哪一层级,怎么才能成为 Committer。Apache 社区对[贡献者身份](https://community.apache.org/contributor-ladder.html)有很明确的定义: + +![Apache contributor label](/img/blog/committer/yuluo-yx/6.jpg) + +#### 项目 Committer 提名条件 + +项目 PMC Team 提名 Committer 的条件是不一样的。以 Apache Hertzbeat 为例: + +![Apache Hertzbeat becoming committer](/img/blog/committer/yuluo-yx/7.jpg) + +每个项目都有自己的标准,这些标准也不是一成不变,在项目的每个阶段会进行调整。 + +#### 如何参与开源 + +接下来是此章节的重头戏,如何参与开源并获得 Committer 提名? + +##### 开源活动 + +学生因为身份特殊,没有大型项目的开发经验,也没有机会在生产环境中切身使用。因此参与开源往往很困难,缺少契机。 + +我觉得参与开源并获得提名的最好方式是**开源之夏(OSPP)或者谷歌开源之夏(GSOC)活动**。在完成相关课题之后,逐步熟悉项目功能、代码、持续参与就会获得提名。也不乏一些学生在完成题目之后被直接提名成为项目 Committer。 + +其次是**提高自己的 Coding 能力**,发现项目中缺少的单元测试和代码 Bug,然后提交 PR 修复。这对刚开始的同学往往是比较难得。Coding 能力往往是在优化项目代码,了解每一次 Change 之后慢慢积累的。 + +一个好的项目,**周边生态往往是至关重要的**。一份好的文档,可以让用户/开发者快速上手使用,参与贡献。多语言扩展,可以让项目使用在其他语言构建的项目中,扩大项目受众。一个好的 Example 仓库,可以让用户发现更多项目的使用姿势。因此参与 Example 仓库的建设和文档编写、翻译等工作,也是熟悉项目获得提名的方式之一。 + +最后,我要说的是:获得提名是`水到渠成`的事情,不能为了获得提名而去参与开源,任何时候都不要忘记自己的初心。 + +项目社区往往欢迎各种方式的贡献:不论是代码、文档还是布道。 + +## 随想 + +写下此文,是为了纪念成为 Apache Hertzbeat Committer 这个特殊的事情, 同时也是对我之后参与开源的激励。 +保持热情,保持 Coding。感谢在参与开源的时候给与我帮助的各位。也祝 Hertzbeat 顺利孵化毕业,成为 Apache 顶级项目!🎉 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json index cbf88685925..d2a8b46468d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current.json @@ -4,7 +4,7 @@ "description": "The label for version current" }, "sidebar.docs.category.quickstart": { - "message": "快速入门", + "message": "快速开始", "description": "The label for category quickstart in sidebar docs" }, "sidebar.docs.category.custom": { @@ -130,5 +130,25 @@ "sidebar.docs.category.aiConfig": { "message": "Ai大模型配置", "description": "The label for category aiConfig in sidebar docs" + }, + "sidebar.docs.category.install": { + "message": "安装", + "description": "The label for category install in sidebar docs" + }, + "sidebar.docs.category.upgrade": { + "message": "升级", + "description": "The label for category upgrade in sidebar docs" + }, + "sidebar.docs.category.setting": { + "message": "配置", + "description": "The label for category setting in sidebar docs" + }, + "sidebar.docs.category.change-db": { + "message": "数据库切换", + "description": "The label for category change-db in sidebar docs" + }, + "sidebar.docs.category.use-case": { + "message": "使用案例", + "description": "The label for category use-case in sidebar docs" } } diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-default.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-default.md index 5f8db64d1be..8e61e71707e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-default.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-default.md @@ -3,14 +3,17 @@ id: extend-http-default title: HTTP协议系统默认解析方式 sidebar_label: 系统默认解析方式 --- -> HTTP接口调用获取响应数据后,用 Apache HertzBeat (incubating) 默认的解析方式去解析响应数据。 -**此需接口响应数据结构符合HertzBeat指定的数据结构规则** +> HTTP接口调用获取响应数据后,用 Apache HertzBeat (incubating) 默认的解析方式去解析响应数据。 -### HertzBeat数据格式规范 -注意⚠️ 响应数据为JSON +**此需接口响应数据结构符合HertzBeat指定的数据结构规则** + +### HertzBeat数据格式规范 + +注意⚠️ 响应数据为JSON 单层格式:key-value + ```json { "metricName1": "metricValue", @@ -19,7 +22,9 @@ sidebar_label: 系统默认解析方式 "metricName4": "metricValue" } ``` + 多层格式:数组里面套key-value + ```json [ { @@ -36,9 +41,11 @@ sidebar_label: 系统默认解析方式 } ] ``` + 样例: -查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 -若只有一台虚拟机,其单层格式为: +查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 +若只有一台虚拟机,其单层格式为: + ```json { "hostname": "linux-1", @@ -48,7 +55,9 @@ sidebar_label: 系统默认解析方式 "runningTime": 100 } ``` -若有多台虚拟机,其多层格式为: + +若有多台虚拟机,其多层格式为: + ```json [ { @@ -75,7 +84,7 @@ sidebar_label: 系统默认解析方式 ] ``` -**对应的监控模版YML可以配置为如下** +**对应的监控模版YML可以配置为如下** ```yaml category: custom diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-hertzbeat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-hertzbeat.md index 357cbd133ca..82a80523f52 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-hertzbeat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-hertzbeat.md @@ -1,20 +1,18 @@ --- id: extend-http-example-hertzbeat title: 教程一:适配一款基于HTTP协议的监控类型 -sidebar_label: 教程一:适配一款HTTP协议监控 +sidebar_label: 教程一:适配一款HTTP协议监控 --- -通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 监控系统下新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 监控系统下新增适配一款基于http协议的监控类型。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 ### HTTP协议解析通用响应结构体,获取指标数据 > 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ sidebar_label: 教程一:适配一款HTTP协议监控 } ``` + 如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API `http://localhost:1157/api/summary`, 其响应数据为: -``` +```json { "msg": null, "code": 0, @@ -58,12 +57,11 @@ sidebar_label: 教程一:适配一款HTTP协议监控 **我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - ### 新增自定义监控模版YML **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为`hertzbeat`的自定义监控类型,其使用HTTP协议采集指标数据。 @@ -190,38 +188,30 @@ metrics: **新增完毕,现在我们重启hertzbeat系统。我们可以看到系统页面已经多了一个`hertzbeat`监控类型了。** - ![](/img/docs/advanced/extend-http-example-1.png) - ### 系统页面添加对`hertzbeat`监控类型的监控 > 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### 设置阈值告警通知 > 接下来我们就可以正常的设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! 如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-token.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-token.md index b7a665a60b9..1c29671ad52 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-token.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-example-token.md @@ -6,15 +6,15 @@ sidebar_label: 教程二:获取TOKEN后续认证使用 通过此教程我们一步一步描述如何在教程一的基础上改造,新增一个监控指标,先调用认证接口获取TOKEN后,使用TOKEN作为参数供后面的监控指标采集认证使用。 -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 -### 请求流程 +### 请求流程 -【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 +【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 > 这里我们依然用教程一的hertzbeat监控举例!hertzbeat后台接口不仅仅支持教程一使用的basic直接账户密码认证,也支持token认证。 -**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: +**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: ```json { @@ -22,7 +22,8 @@ sidebar_label: 教程二:获取TOKEN后续认证使用 "identifier": "admin" } ``` -**响应结构数据如下**: + +**响应结构数据如下**: ```json { @@ -104,9 +105,9 @@ params: required: false ``` -### 定义监控指标`auth`登录请求获取`token` +### 定义监控指标`auth`登录请求获取`token` -1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. +1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. ```yaml @@ -211,7 +212,7 @@ metrics: ``` -**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下: ** +**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下:** ```json { @@ -222,16 +223,13 @@ metrics: ![](/img/docs/advanced/extend-http-example-5.png) - **新增成功后我们就可以在详情页面看到我们采集的 `token`, `refreshToken`指标数据。** ![](/img/docs/advanced/extend-http-example-6.png) ![](/img/docs/advanced/extend-http-example-7.png) - - -### 将`token`作为变量参数给后面的监控指标采集使用 +### 将`token`作为变量参数给后面的监控指标采集使用 **在`app-hertzbeat_token.yml`新增一个监控指标定义 `summary` 同教程一中的`summary`相同, 设置采集优先级为1** **设置此监控指标的HTTP协议配置中认证方式为 `Bearer Token` 将上一个监控指标`auth`采集的指标`token`作为参数给其赋值,使用`^o^`作为内部替换符标识,即`^o^token^o^`。如下:** @@ -247,7 +245,7 @@ metrics: bearerTokenToken: ^o^token^o^ ``` -**最终`app-hertzbeat_token.yml`定义如下:** +**最终`app-hertzbeat_token.yml`定义如下:** ```yaml @@ -381,9 +379,9 @@ metrics: ``` -**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** +**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** -![](/img/docs/advanced/extend-http-example-8.png) +![](/img/docs/advanced/extend-http-example-8.png) ![](/img/docs/advanced/extend-http-example-9.png) @@ -393,10 +391,10 @@ metrics: ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! 如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-jsonpath.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-jsonpath.md index fef3c3d2fa8..3ae1aa00a77 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-jsonpath.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http-jsonpath.md @@ -3,16 +3,18 @@ id: extend-http-jsonpath title: HTTP协议JsonPath解析方式 sidebar_label: JsonPath解析方式 --- + > HTTP接口调用获取响应数据后,用JsonPath脚本解析的解析方式去解析响应数据。 注意⚠️ 响应数据为JSON格式 -**使用JsonPath脚本将响应数据解析成符合 Apache HertzBeat (incubating) 指定的数据结构规则的数据** +**使用JsonPath脚本将响应数据解析成符合 Apache HertzBeat (incubating) 指定的数据结构规则的数据** + +#### JsonPath操作符 -#### JsonPath操作符 -[JSONPath在线验证](https://www.jsonpath.cn) +[JSONPath在线验证](https://www.jsonpath.cn) -| JSONPATH | 帮助描述 | +| JSONPATH | 帮助描述 | |------------------|-----------------------------------| | $ | 根对象或元素 | | @ | 当前对象或元素 | @@ -25,8 +27,10 @@ sidebar_label: JsonPath解析方式 | ?() | 过滤器(脚本)表达式. | | () | 脚本表达式. | -#### HertzBeat数据格式规范 +#### HertzBeat数据格式规范 + 单层格式:key-value + ```json { "metricName1": "metricValue", @@ -35,7 +39,9 @@ sidebar_label: JsonPath解析方式 "metricName4": "metricValue" } ``` + 多层格式:数组里面套key-value + ```json [ { @@ -53,10 +59,11 @@ sidebar_label: JsonPath解析方式 ] ``` -#### 样例 +#### 样例 + +查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 +接口返回的原始数据如下: -查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 -接口返回的原始数据如下: ```json { "firstName": "John", @@ -80,7 +87,8 @@ sidebar_label: JsonPath解析方式 } ``` -我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: +我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: + ```json [ { @@ -93,9 +101,10 @@ sidebar_label: JsonPath解析方式 } ] ``` -此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 -**对应的监控模版YML可以配置为如下** +此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 + +**对应的监控模版YML可以配置为如下** ```yaml category: custom diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http.md index 9a0dca41ae3..45e25794ca6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-http.md @@ -1,37 +1,37 @@ --- id: extend-http title: HTTP协议自定义监控 -sidebar_label: HTTP协议自定义监控 +sidebar_label: HTTP协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 -### HTTP协议采集流程 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 + +### HTTP协议采集流程 + 【**HTTP接口调用**】->【**响应校验**】->【**响应数据解析**】->【**默认方式解析|JsonPath脚本解析 | XmlPath解析(todo) | Prometheus解析**】->【**指标数据提取**】 -由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 -HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 +由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 +HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 -**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) -**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) - +**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) +**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- +------- -下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 +下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 -### 监控模版YML +### 监控模版YML -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 - +样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jdbc.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jdbc.md index 6ff4b9bbed1..cd24a177c63 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jdbc.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jdbc.md @@ -1,65 +1,71 @@ --- id: extend-jdbc title: JDBC协议自定义监控 -sidebar_label: JDBC协议自定义监控 +sidebar_label: JDBC协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 -> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 -### JDBC协议采集流程 -【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 +> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 + +### JDBC协议采集流程 + +【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 由流程可见,我们自定义一个JDBC协议的监控类型,需要配置JDBC请求参数,配置获取哪些指标,配置查询SQL语句。 -### 数据解析方式 +### 数据解析方式 + SQL查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有三种:oneRow, multiRow, columns -#### **oneRow** -> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 +#### **oneRow** -例如: +> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 + +例如: 查询的指标字段为:one tow three four 查询SQL:select one, tow, three, four from book limit 1; -这里指标字段就能和响应数据一一映射为一行采集数据。 +这里指标字段就能和响应数据一一映射为一行采集数据。 #### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 -例如: +> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 + +例如: 查询的指标字段为:one tow three four 查询SQL:select one, tow, three, four from book; 这里指标字段就能和响应数据一一映射为多行采集数据。 #### **columns** -> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 -例如: -查询字段:one tow three four -查询SQL:select key, value from book; -SQL响应数据: +> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 + +例如: +查询字段:one tow three four +查询SQL:select key, value from book; +SQL响应数据: -| key | value | -|----------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | +| key | value | +|-------|-------| +| one | 243 | +| two | 435 | +| three | 332 | +| four | 643 | -这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 +这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) +------- -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +下面详细介绍下文件的配置用法,请注意看使用注释。 -### 监控模版YML +### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为example_sql的自定义监控类型,其使用JDBC协议采集指标数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jmx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jmx.md index cca1bcfb726..41b013a8b6a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jmx.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-jmx.md @@ -1,38 +1,38 @@ --- id: extend-jmx title: JMX协议自定义监控 -sidebar_label: JMX协议自定义监控 +sidebar_label: JMX协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 -> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 -### JMX协议采集流程 -【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 +> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 -由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 +### JMX协议采集流程 -### 数据解析方式 +【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 -通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 +由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 +### 数据解析方式 +通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下监控模版的配置用法,请注意看使用注释。 +------- + +下面详细介绍下监控模版的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 - +样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring @@ -155,7 +155,7 @@ metrics: # 具体监控指标列表 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 + # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), label-是否是指标集合唯一标识符字段 - field: VmName type: 1 - field: VmVendor diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ngql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ngql.md index b5685eb3b16..3788a1400e9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ngql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ngql.md @@ -4,7 +4,7 @@ title: NQGL自定义监控 sidebar_label: NGQL自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用NGQL自定义指标监控。 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用NGQL自定义指标监控。 > NGQL自定义监控可以让我们很方便的使用NGQL或者OpenCypher从NebulaGraph图数据库中查询指标数据,支持NebulaGraph 3.X版本。 ### 数据解析方式 @@ -20,11 +20,12 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 > `filterName`: 过滤属性名称(可选) > `filterValue`: 过滤属性值(可选) -例如: +例如: + - online_meta_count#SHOW HOSTS META#Status#ONLINE - 对 `SHOW HOSTS META` 返回的结果中统计滤Status==ONLINE的数量 +对 `SHOW HOSTS META` 返回的结果中统计滤Status==ONLINE的数量 - online_meta_count#SHOW HOSTS META## - 统计 `SHOW HOSTS META` 返回的行数 +统计 `SHOW HOSTS META` 返回的行数 #### **oneRow** @@ -47,7 +48,8 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 > 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 -例如: +例如: + - 查询的指标字段为:a,b - 查询NGQL:match (v:metrics) return v.metrics.a as a,v.metrics.b as b; 这里指标字段就能和响应数据一一映射为多行采集数据。 @@ -71,12 +73,13 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 ![](/img/docs/advanced/extend-point-1.png) -------- +------- + 下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为example_ngql的自定义监控类型,其使用NGQL采集指标数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-point.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-point.md index d2b0ee36cdc..a141b38703a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-point.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-point.md @@ -1,12 +1,13 @@ --- id: extend-point title: 自定义监控 -sidebar_label: 自定义监控 +sidebar_label: 自定义监控 --- + > HertzBeat拥有自定义监控能力,您只需配置监控模版YML就能适配一款自定义的监控类型。 -> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 +> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 -### 自定义流程 +### 自定义流程 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** @@ -14,13 +15,13 @@ sidebar_label: 自定义监控 ------- -### 监控模版YML +### 监控模版YML **HertzBeat的设计是一个监控模版对应一个监控类型,所有监控类型都是由监控模版来定义的**。 -> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 +> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 -下面使用样例详细介绍下这监控模版YML的配置用法。 +下面使用样例详细介绍下这监控模版YML的配置用法。 样例:自定义一个 `app` 名称为 `example2` 的自定义监控类型,其使用HTTP协议采集指标数据。 @@ -149,7 +150,7 @@ metrics: # 具体监控指标列表 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 + # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), label-是否是指标集合唯一标识符字段 - field: responseTime type: 0 unit: ms @@ -175,4 +176,3 @@ metrics: parseType: website ``` - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-snmp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-snmp.md index 3ff65d60a17..49597c4b9a5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-snmp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-snmp.md @@ -1,38 +1,38 @@ --- id: extend-snmp title: SNMP协议自定义监控 -sidebar_label: SNMP协议自定义监控 +sidebar_label: SNMP协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 -> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 -### SNMP协议采集流程 -【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 +> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 -由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 +### SNMP协议采集流程 -### 数据解析方式 +【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 -通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 +由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 +### 数据解析方式 +通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +------- + +下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 - +样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 ```yaml # The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring @@ -162,7 +162,7 @@ metrics: # 具体监控指标列表 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 + # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), label-是否是指标集合唯一标识符字段 - field: name type: 1 - field: descr diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ssh.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ssh.md index 8284726e661..9ae2ba22c3b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ssh.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-ssh.md @@ -1,53 +1,63 @@ --- id: extend-ssh title: SSH协议自定义监控 -sidebar_label: SSH协议自定义监控 +sidebar_label: SSH协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 -> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 -### SSH协议采集流程 -【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 +> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 + +### SSH协议采集流程 + +【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 由流程可见,我们自定义一个SSH协议的监控类型,需要配置SSH请求参数,配置获取哪些指标,配置查询脚本语句。 -### 数据解析方式 +### 数据解析方式 + SHELL脚本查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有两种:oneRow, multiRow,能满足绝大部分指标需求。 -#### **oneRow** -> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 +#### **oneRow** -例如: -需要查询Linux的指标 hostname-主机名称,uptime-启动时间 -主机名称原始查询命令:`hostname` -启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` -则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): -`hostname; uptime | awk -F "," '{print $1}'` -终端响应的数据为: -``` +> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 + +例如: +需要查询Linux的指标 hostname-主机名称,uptime-启动时间 +主机名称原始查询命令:`hostname` +启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` +则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): +`hostname; uptime | awk -F "," '{print $1}'` +终端响应的数据为: + +```shell tombook 14:00:15 up 72 days -``` -则最后采集到的指标数据一一映射为: -hostname值为 `tombook` -uptime值为 `14:00:15 up 72 days` +``` -这里指标字段就能和响应数据一一映射为一行采集数据。 +则最后采集到的指标数据一一映射为: +hostname值为 `tombook` +uptime值为 `14:00:15 up 72 days` + +这里指标字段就能和响应数据一一映射为一行采集数据。 #### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 -例如: -查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 -内存指标原始查询命令为:`free -m`, 控制台响应: +> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 + +例如: +查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 +内存指标原始查询命令为:`free -m`, 控制台响应: + ```shell total used free shared buff/cache available Mem: 7962 4065 333 1 3562 3593 Swap: 8191 33 8158 ``` + 在hertzbeat中multiRow格式解析需要响应数据列名称和指标值一一映射,则对应的查询SHELL脚本为: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -控制台响应为: +`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` +控制台响应为: + ```shell total used free buff_cache available 7962 4066 331 3564 3592 @@ -55,22 +65,22 @@ total used free buff_cache available 这里指标字段就能和响应数据一一映射为采集数据。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +------- + +下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 - +样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 ```yaml # 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-telnet.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-telnet.md index 14643c29c4e..ebdd4786f17 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-telnet.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-telnet.md @@ -1,32 +1,35 @@ --- id: extend-telnet title: Telnet协议自定义监控 -sidebar_label: Telnet协议自定义监控 +sidebar_label: Telnet协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用Telnet协议自定义指标监控。 -> 使用 Telnet 协议自定义监控可以让我们通过编写 Telnet 命令脚本来监控和采集我们想要监控的 Linux 指标 -### Telnet协议采集流程 -【**系统直连Linux**】->【**运行TELNET命令脚本语句**】->【**响应数据解析**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用Telnet协议自定义指标监控。 +> 使用 Telnet 协议自定义监控可以让我们通过编写 Telnet 命令脚本来监控和采集我们想要监控的 Linux 指标 + +### Telnet协议采集流程 + +【**系统直连Linux**】->【**运行TELNET命令脚本语句**】->【**响应数据解析**】->【**指标数据提取**】 由流程可见,我们自定义一个Telnet协议的监控类型,需要配置Telnet请求参数,配置获取哪些指标,配置查询脚本语句。 -### 数据解析方式 -通过配置监控模版YML的指标field, aliasFields, telnet 协议下的获取数据映射。 +### 数据解析方式 +通过配置监控模版YML的指标field, aliasFields, telnet 协议下的获取数据映射。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +------- + +下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为zookeeper的自定义监控类型,其使用telnet协议采集指标数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-tutorial.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-tutorial.md index 22578d67854..8635126fdf9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-tutorial.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/advanced/extend-tutorial.md @@ -4,17 +4,15 @@ title: 自定义适配一款基于HTTP协议的新监控类型 sidebar_label: 教程案例 --- -通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 系统下自定义新增适配一款基于 http 协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 系统下自定义新增适配一款基于 http 协议的监控类型。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 ### HTTP协议解析通用响应结构体,获取指标数据 > 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ sidebar_label: 教程案例 } ``` + 如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API `http://localhost:1157/api/summary`, 其响应数据为: -``` +```json { "msg": null, "code": 0, @@ -58,12 +57,11 @@ sidebar_label: 教程案例 **我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - ### 新增配置监控模版YML **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 +定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。我们直接复用 `api`监控模版 里面的定义内容,修改为我们当前的监控类型`hertzbeat`配置参数即可,如下:注意⚠️我们这次获取接口响应数据中的`category`,`app`,`status`,`size`,`availableSize`等字段作为指标数据。 @@ -229,35 +227,26 @@ metrics: **点击保存并应用。我们可以看到系统页面的自定义监控菜单已经多了一个`hertzbeat`监控类型了。** - ![](/img/docs/advanced/extend-http-example-1.png) - ### 页面添加对`hertzbeat`监控类型的监控 > 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### 设置阈值告警通知 > 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数 `headers,params` 等,我们可以像用postman一样去定义它,可玩性也非常高! - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_committer.md index c91cdca7171..b444d0a970c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_committer.md @@ -5,23 +5,22 @@ sidebar_position: 2 --- - ## 成为 Apache HertzBeat™ 的 Committer 任何支持社区并在 CoPDoC 领域中工作的人都可以成为 Apache HertzBeat 的 Committer。CoPDoC 是 ASF 的缩写,用来描述我们如何不仅仅通过代码来认识到您的贡献。 @@ -33,7 +32,7 @@ sidebar_position: 2 Apache HertzBeat 社区努力追求基于功绩的原则。因此,一旦有人在 CoPDoC 的任何领域有了足够的贡献,他们就可以成为 Committer 的候选人,最终被投票选为 HertzBeat 的 Committer。成为 Apache HertzBeat 的 Committer 并不一定意味着你必须使用你的提交权限向代码库提交代码;它意味着你致力于 HertzBeat 项目并为我们社区的成功做出了积极的贡献。 -## Committer 的要求: +## Committer 的要求 没有成为 Committer 或 PPMC 成员的严格规则。新的 Committer 的候选人通常是积极的贡献者和社区成员。但是,如果能稍微明确一些规则,就可以在一定程度上消除贡献者的疑虑,使社区更加透明、合理和公平。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_pmc_member.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_pmc_member.md index e64661b7595..ff56d4cb723 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_pmc_member.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/become_pmc_member.md @@ -5,20 +5,20 @@ sidebar_position: 3 --- ## 成为 Apache HertzBeat™ 的 PMC 成员 @@ -32,7 +32,7 @@ sidebar_position: 3 Apache HertzBeat 社区努力追求基于功绩的原则。因此,一旦有人在 CoPDoC 的任何领域有了足够的贡献,他们就可以成为 PMC 成员资格的候选人,最终被投票选为 HertzBeat 的 PMC 成员。成为 Apache HertzBeat 的 PMC 成员并不一定意味着您必须使用您的提交权限向代码库提交代码;它意味着您致力于 HertzBeat 项目并为我们社区的成功做出了积极的贡献。 -## PMC 成员的要求: +## PMC 成员的要求 没有成为 Committer 或 PPMC 成员的严格规则。新的 PMC 成员的候选人通常是积极的贡献者和社区成员。但是,如果能稍微明确一些规则,就可以在一定程度上消除贡献者的疑虑,使社区更加透明、合理和公平。 @@ -45,6 +45,7 @@ PMC 成员的候选人应该持续参与并为 HertzBeat 做出大量的贡献 - +3 个月的高度活动和参与。 ### 贡献的质量 + - 对项目有深入的理解。 - 经过充分测试、良好设计、遵循 Apache HertzBeat 的编码标准,及简单的修复补丁。 - 井井有条的面向用户的详细文档。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/code-style-and-quality-guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/code-style-and-quality-guide.md index a9a6f54d474..ca23f3db755 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/code-style-and-quality-guide.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/code-style-and-quality-guide.md @@ -5,41 +5,38 @@ sidebar_position: 3 --- - ## 1 拉取请求与变更规则 1. `ISSUE`/`PR`(拉取请求) 的引导和命名 - - 新建 `PR` 后需要在 `PR` 页面的 Github Development 按钮处关联已存在的对应 `ISSUE`(若无建议新建对应ISSUE) + - 新建 `PR` 后需要在 `PR` 页面的 Github Development 按钮处关联已存在的对应 `ISSUE`(若无建议新建对应ISSUE) - - 标题命名格式(英文,小写) - `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` + - 标题命名格式(英文,小写) + `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` 2. 添加描述信息 - - 新建 `PR` 时请仔细描述此贡献,描述文档和代码同样重要。审阅者可以从描述中,而不仅仅是从代码中,了解问题和解决方案。 - - 勾选是否完成了对应的 Checklist。 - + - 新建 `PR` 时请仔细描述此贡献,描述文档和代码同样重要。审阅者可以从描述中,而不仅仅是从代码中,了解问题和解决方案。 + - 勾选是否完成了对应的 Checklist。 3. 建议一次 `PR` 只包含一个功能/一种修复/一类改进/一种重构/一次清理/一类文档等 - 4. 提交消息(英文,小写,无特殊字符) - 消息的提交应遵循与 `PR` 类似的模式:`[feature/bugfix/doc/improve/refactor/bug/cleanup] title` + 消息的提交应遵循与 `PR` 类似的模式:`[feature/bugfix/doc/improve/refactor/bug/cleanup] title` ## 2 代码检查样式 @@ -64,100 +61,165 @@ sidebar_position: 3 - 前端代码格式化插件 `eslint` 前端运行 `npm run lint:fix` +### 2.2 文档样式检查 + +1. 安装`markdownlint-cli2`,运行`npm install markdownlint-cli2 --global` +2. 在项目中运行`markdownlint "home/**/*.md"`,会执行Markdown文件格式自动检测。 +3. 在项目中运行`markdownlint --fix "home/**/*.md"`,会执行Markdown文件格式自动格化,以确保所有文档都符合规范。 + +> 提示: 修复只能修复部分问题,根据检查后的错误信息,手动调整。 + +错误码说明: + +| 错误代码 |说明 | +|---------------------------------------| ------------------------| +| **MD001 heading-increment** | 标题级别应一次只递增一个级别 | +| **MD003 heading-style** | 标题样式 | +| **MD004 ul-style** | 无序列表样式 | +| **MD005 list-indent** | 同一层级的列表项缩进不一致 | +| **MD007 ul-indent** | 无序列表缩进 | +| **MD009 no-trailing-spaces** | 行尾空格 | +| **MD010 no-hard-tabs** | 硬制表符 | +| **MD011 no-reversed-links** | 链接语法反转 | +| **MD012 no-multiple-blanks** | 多个连续空行 | +| **MD013 line-length** | 行长度 | +| **MD014 commands-show-output** | 命令前使用 `$` 符号但未显示输出 | +| **MD018 no-missing-space-atx** | ATX 样式标题符号后缺少空格 | +| **MD019 no-multiple-space-atx** | ATX 样式标题符号后有多个空格 | +| **MD020 no-missing-space-closed-atx** | 闭合 ATX 样式标题符号内部缺少空格 | +| **MD021 no-multiple-space-closed-atx** | 闭合 ATX 样式标题符号内部有多个空格 | +| **MD022 blanks-around-headings** | 标题周围应有空行 | +| **MD023 heading-start-left** | 标题必须从行首开始 | +| **MD024 no-duplicate-heading** | 存在多个内容相同的标题 | +| **MD025 single-title/single-h1** | 同一文档中有多个一级标题 | +| **MD026 no-trailing-punctuation** | 标题中有尾随标点符号 | +| **MD027 no-multiple-space-blockquote** | 引用符号后有多个空格 | +| **MD028 no-blanks-blockquote** | 引用块内有空行 | +| **MD029 ol-prefix** | 有序列表项前缀 | +| **MD030 list-marker-space** | 列表标记后的空格 | +| **MD031 blanks-around-fences** | 围栏代码块应被空行包围 | +| **MD032 blanks-around-lists** | 列表应被空行包围 | +| **MD033 no-inline-html** | 内联 HTML | +| **MD034 no-bare-urls** | 使用了裸露的 URL | +| **MD035 hr-style** | 水平分割线样式 | +| **MD036 no-emphasis-as-heading** | 不应使用强调样式代替标题 | +| **MD037 no-space-in-emphasis** | 强调标记内有空格 | +| **MD038 no-space-in-code** | 代码片段元素内有空格 | +| **MD039 no-space-in-links** | 链接文本内有空格 | +| **MD040 fenced-code-language** | 围栏代码块应指定语言 | +| **MD041 first-line-heading/first-line-h1** | 文件的第一行应为一级标题 | +| **MD042 no-empty-links** | 链接不可为空 | +| **MD043 required-headings** | 必须的标题结构 | +| **MD044 proper-names** | 专有名词应正确大写 | +| **MD045 no-alt-text** | 图片应有替代文字(alt 文本) | +| **MD046 code-block-style** | 代码块样式 | +| **MD047 single-trailing-newline** | 文件应以单个换行符结尾 | +| **MD048 code-fence-style** | 代码围栏样式 | +| **MD049 emphasis-style** | 强调样式 | +| **MD050 strong-style** | 粗体样式 | +| **MD051 link-fragments** | 链接片段应有效 | +| **MD052 reference-links-images** | 引用链接和图片应使用已定义的标签 | +| **MD053 link-image-reference-definitions** | 链接和图片引用定义应是必要的 | +| **MD054 link-image-style** | 链接和图片样式 | +| **MD055 table-pipe-style** | 表格管道样式 | +| **MD056 table-column-count** | 表格列数 | + ## 3 编程规范 ### 3.1 命名风格 1. 优先为变量命名选择名词,这样更容易区分`变量`或`方法`。 + ```java - Cache publicKeyCache; + Cache publicKeyCache; ``` 2. 变量的拼音缩写是禁止的(排除地名等名词),例如chengdu。 - 3. 推荐的变量名以 `类型` 结尾。 对于 `Collection/List` 类型的变量,取 `xxxx` (复数表示多个元素)或以 `xxxList` (特定类型)结束。 对于 `map` 类型的变量,清晰地描述 `key` 和 `value`: + ```java - Map idUserMap; - Map userIdNameMap; + Map idUserMap; + Map userIdNameMap; ``` 4. 通过其名称直观地知道变量的类型和含义。 方法名称应首先以动词开始,如下所示: + ```java - void computeVcores(Object parameter1); + void computeVcores(Object parameter1); ``` - > 注意:在 `Builder` 工具类中不必严格遵循这项规则。 - + > 注意:在 `Builder` 工具类中不必严格遵循这项规则。 ### 3.2 常量变量定义 1. 多余的字符串应提取为常量 - >如果一个常量被硬编码两次或多次,请直接提取它为常量并更改相应的引用。 - 通常,`log` 中的常量可以忽略提取。 - - - 负面示例: - - ```java - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put("status", "success"); - resp.put("code", ResponseCode.CODE_SUCCESS); - resp.put("data", data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put("status", "error"); - resp.put("code", ResponseCode.CODE_FAIL); - resp.put("data", null); - return resp; - } - ``` - - - 正面示例: - - > 字符串提取为常量引用。 - - ```java - public static final String STATUS = "status"; - public static final String CODE = "code"; - public static final String DATA = "data"; - - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "success"); - resp.put(CODE, ResponseCode.CODE_SUCCESS); - resp.put(DATA, data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "error"); - resp.put(CODE, ResponseCode.CODE_FAIL); - resp.put(DATA, null); - return resp; - } - ``` + + > 如果一个常量被硬编码两次或多次,请直接提取它为常量并更改相应的引用。 + > 通常,`log` 中的常量可以忽略提取。 + + - 负面示例: + + ```java + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put("status", "success"); + resp.put("code", ResponseCode.CODE_SUCCESS); + resp.put("data", data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put("status", "error"); + resp.put("code", ResponseCode.CODE_FAIL); + resp.put("data", null); + return resp; + } + ``` + + - 正面示例: + + > 字符串提取为常量引用。 + + ```java + public static final String STATUS = "status"; + public static final String CODE = "code"; + public static final String DATA = "data"; + + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "success"); + resp.put(CODE, ResponseCode.CODE_SUCCESS); + resp.put(DATA, data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "error"); + resp.put(CODE, ResponseCode.CODE_FAIL); + resp.put(DATA, null); + return resp; + } + ``` 2. 确保代码的可读性和直观性 -- `annotation` 符号中的字符串不需要提取为常量。 + - `annotation` 符号中的字符串不需要提取为常量。 -- 被引用的 `package` 或 `resource` 名称不需要提取为常量。 + - 被引用的 `package` 或 `resource` 名称不需要提取为常量。 3. 未被重新分配的变量也必须声明为 final 类型。 4. 关于 `constant/variable` 行的排序顺序 按以下顺序对类中的变量行进行排序: - 1. `public static final V`, `static final V`,`protected static final V`, `private static final V` - 2. `public static v`, `static v`,`protected static v`, `private static v` - 3. `public v`, `v`, `protected v`, `private v` + 1. `public static final V`, `static final V`,`protected static final V`, `private static final V` + 2. `public static v`, `static v`,`protected static v`, `private static v` + 3. `public v`, `v`, `protected v`, `private v` ### 3.3 方法规则 @@ -174,37 +236,33 @@ sidebar_position: 3 3. 如果方法中的代码行数太多,请尝试在适当的点上使用多个子方法来分段方法体。 一般来说,需要坚持以下原则: - - 便于测试 - - 有好的语义 - - 易于阅读 + - 便于测试 + - 有好的语义 + - 易于阅读 此外,还需要考虑在组件、逻辑、抽象和场景等方面的切割是否合理。 > 然而,目前还没有明确的演示定义。在演变过程中,我们将为开发者提供更多的示例,以便他们有更清晰的参考和理解。 - ### 3.4 集合规则 1. 对于返回的 `collection` 值,除非有特殊的 `concurrent` (如线程安全),总是返回 `interface`,例如: - - - 如果使用 `ArrayList`,则返回 List - - 如果使用 `HashMap`,则返回 Map - - 如果使用 `HashSet`,则返回 Set - + - 如果使用 `ArrayList`,则返回 List + - 如果使用 `HashMap`,则返回 Map + - 如果使用 `HashSet`,则返回 Set 2. 如果存在多线程,可以使用以下声明或返回类型: - ```java + ```java private CurrentHashMap map; public CurrentHashMap funName(); - ``` + ``` 3. 使用 `isEmpty()` 而不是 `length() == 0` 或者 `size() == 0` - - 负面示例: ```java if (pathPart.length() == 0) { - return; + return; } ``` @@ -212,7 +270,7 @@ sidebar_position: 3 ```java if (pathPart.isEmpty()) { - return; + return; } ``` @@ -227,88 +285,100 @@ sidebar_position: 3 ### 3.6 控制/条件语句 1. 避免因不合理的 `条件/控制` 分支顺序导致: - - - 多个代码行的 `深度` 为 `n+1` - - 多余的行 + - 多个代码行的 `深度` 为 `n+1` + - 多余的行 一般来说,如果一个方法的代码行深度由于连续嵌套的 `if... else..` 超过了 `2+ Tabs`,那么应该考虑试图 + - `合并分支`, - `反转分支条件` - `提取私有方法` 以减少代码行深度并提高可读性,例如: + - 联合或将逻辑合并到下一级调用中 - - 负面示例: - ```java - if (isInsert) { - save(platform); - } else { - updateById(platform); - } - ``` - - 正面示例: - ```java - saveOrUpdate(platform); - ``` + - 负面示例: + + ```java + if (isInsert) { + save(platform); + } else { + updateById(platform); + } + ``` + + - 正面示例: + + ```java + saveOrUpdate(platform); + ``` + - 合并条件 - - 负面示例: - ```java - if (expression1) { - if(expression2) { - ...... - } + - 负面示例: + + ```java + if (expression1) { + if(expression2) { + // ...... } - ``` - - 正面示例: - ```java - if (expression1 && expression2) { - ...... - } - ``` + } + ``` + + - 正面示例: + + ```java + if (expression1 && expression2) { + // ...... + } + ``` + - 反转条件 - - 负面示例: - - ```java - public void doSomething() { - // 忽略更深的代码块行 - // ..... - if (condition1) { - ... - } else { - ... - } - } - ``` - - - 正面示例: - - ```java - public void doSomething() { - // 忽略更深的代码块行 - // ..... - if (!condition1) { - ... + - 负面示例: + + ```java + public void doSomething() { + // 忽略更深的代码块行 + // ..... + if (condition1) { + // ... + } else { + // ... + } + } + ``` + + - 正面示例: + + ```java + public void doSomething() { + // 忽略更深的代码块行 + // ..... + if (!condition1) { + // ... return; - } - // ... } - ``` + // ... + } + ``` + - 使用单一变量或方法减少复杂的条件表达式 - - 负面示例: - ```java - if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { - ... - } - ``` - - - 正面示例: - ```java - if (containsSqlServer(dbType)) { - .... - } - //..... - // containsSqlServer的定义 - ``` + - 负面示例: + + ```java + if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { + // ... + } + ``` + + - 正面示例: + + ```java + if (containsSqlServer(dbType)) { + // .... + } + //..... + // containsSqlServer的定义 + ``` > 在未来,使用 `sonarlint` 和 `better highlights` 检查代码深度看起来是个不错的选择。 @@ -316,20 +386,20 @@ sidebar_position: 3 1. 方法缺少注释: - - `When`:该方法何时可以被调用 - - `How`:如何使用此方法以及如何传递参数等 - - `What`:此方法实现了哪些功能 - - `Note`:在调用此方法时开发人员应注意什么 + - `When`:该方法何时可以被调用 + - `How`:如何使用此方法以及如何传递参数等 + - `What`:此方法实现了哪些功能 + - `Note`:在调用此方法时开发人员应注意什么 2. 缺少必要的类头部描述注释。 - 添加 `What`,`Note` 等,如上述 `1` 中提到的。 + 添加 `What`,`Note` 等,如上述 `1` 中提到的。 3. 在接口中的方法声明必须被注释。 - - 如果实现的语义和接口声明的注释内容不一致,则具体的实现方法也需要用注释重写。 + - 如果实现的语义和接口声明的注释内容不一致,则具体的实现方法也需要用注释重写。 - - 如果方法实现的语义与接口声明的注释内容一致,则建议不写注释以避免重复的注释。 + - 如果方法实现的语义与接口声明的注释内容一致,则建议不写注释以避免重复的注释。 4. 在注释行中的第一个词需要大写,如 `param` 行,`return` 行。 如果特殊引用作为主题不需要大写,需要注意特殊符号,例如引号。 @@ -339,31 +409,31 @@ sidebar_position: 3 1. 更倾向于使用 `non-capturing` lambda(不包含对外部范围的引用的lambda)。 Capturing lambda 在每次调用时都需要创建一个新的对象实例。`Non-capturing` lambda 可以为每次调用使用相同的实例。 - - 负面示例: + - 负面示例: - ```java - map.computeIfAbsent(key, x -> key.toLowerCase()) - ``` + ```java + map.computeIfAbsent(key, x -> key.toLowerCase()) + ``` - - 正面示例: + - 正面示例: - ```java - map.computeIfAbsent(key, k -> k.toLowerCase()); - ``` + ```java + map.computeIfAbsent(key, k -> k.toLowerCase()); + ``` 2. 考虑使用方法引用而不是内联lambda - - 负面示例: + - 负面示例: - ```java - map.computeIfAbsent(key, k-> Loader.load(k)); - ``` + ```java + map.computeIfAbsent(key, k-> Loader.load(k)); + ``` - - 正面示例: + - 正面示例: - ```java - map.computeIfAbsent(key, Loader::load); - ``` + ```java + map.computeIfAbsent(key, Loader::load); + ``` ### 3.9 Java Streams @@ -381,186 +451,189 @@ sidebar_position: 3 1. 使用 `StringUtils.isBlank` 而不是 `StringUtils.isEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isEmpty(name)) { - return; - } - ``` + ```java + if (StringUtils.isEmpty(name)) { + return; + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isBlank(name)) { - return; - } - ``` + ```java + if (StringUtils.isBlank(name)) { + return; + } + ``` 2. 使用 `StringUtils.isNotBlank` 而不是 `StringUtils.isNotEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isNotEmpty(name)) { + ```java + if (StringUtils.isNotEmpty(name)) { return; - } - ``` + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isNotBlank(name)) { - return; - } - ``` + ```java + if (StringUtils.isNotBlank(name)) { + return; + } + ``` 3. 使用 `StringUtils.isAllBlank` 而不是 `StringUtils.isAllEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isAllEmpty(name, age)) { + ```java + if (StringUtils.isAllEmpty(name, age)) { return; - } - ``` + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isAllBlank(name, age)) { - return; - } - ``` + ```java + if (StringUtils.isAllBlank(name, age)) { + return; + } + ``` ### 3.12 `Enum` 类 1. 枚举值比较 - - 负面示例: + - 负面示例: - ```java - if (status.equals(JobStatus.RUNNING)) { + ```java + if (status.equals(JobStatus.RUNNING)) { return; - } - ``` + } + ``` - - 正面示例: + - 正面示例: - ```java - if (status == JobStatus.RUNNING) { - return; - } - ``` + ```java + if (status == JobStatus.RUNNING) { + return; + } + ``` 2. 枚举类不需要实现 Serializable - - 负面示例: + - 负面示例: - ```java - public enum JobStatus implements Serializable { - ... - } - ``` + ```java + public enum JobStatus implements Serializable { + // ... + } + ``` - - 正面示例: + - 正面示例: - ```java - public enum JobStatus { - ... - } - ``` + ```java + public enum JobStatus { + // ... + } + ``` 3. 使用 `Enum.name()` 而不是 `Enum.toString()` - - 负面示例: + - 负面示例: - ```java - System.out.println(JobStatus.RUNNING.toString()); - ``` + ```java + System.out.println(JobStatus.RUNNING.toString()); + ``` - - 正面示例: + - 正面示例: - ```java - System.out.println(JobStatus.RUNNING.name()); - ``` + ```java + System.out.println(JobStatus.RUNNING.name()); + ``` 4. 枚举类名称统一使用 Enum 后缀 - - 负面示例: + - 负面示例: - ```java - public enum JobStatus { - ... - } - ``` + ```java + public enum JobStatus { + // ... + } + ``` - - 正面示例: + - 正面示例: - ```java - public enum JobStatusEnum { - ... - } - ``` + ```java + public enum JobStatusEnum { + // ... + } + ``` ### 3.13 `Deprecated` 注解 - - 负面示例: +- 负面示例: - ```java - @deprecated - public void process(String input) { - ... - } - ``` +```java +@deprecated +public void process(String input) { + // ... +} +``` - - 正面示例: +- 正面示例: - ```java - @Deprecated - public void process(String input) { - ... - } - ``` +```java +@Deprecated +public void process(String input) { + // ... +} +``` ## 4 日志 1. 使用 `占位符` 进行日志输出: - - 负面示例 - ```java - log.info("Deploy cluster request " + deployRequest); - ``` - - 正面示例 - ```java - log.info("load plugin:{} to {}", file.getName(), appPlugins); - ``` + - 负面示例 + + ```java + log.info("Deploy cluster request " + deployRequest); + ``` + + - 正面示例 + + ```java + log.info("load plugin:{} to {}", file.getName(), appPlugins); + ``` 2. 打印日志时,注意选择 `日志级别` - 当打印日志内容时,如果传递了日志占位符的实际参数,必须避免过早评估,以避免由日志级别导致的不必要评估。 + 当打印日志内容时,如果传递了日志占位符的实际参数,必须避免过早评估,以避免由日志级别导致的不必要评估。 - - 负面示例: + - 负面示例: - 假设当前日志级别为 `INFO`: + 假设当前日志级别为 `INFO`: - ```java - // 忽略声明行。 - List userList = getUsersByBatch(1000); - LOG.debug("All users: {}", getAllUserIds(userList)); - ``` + ```java + // 忽略声明行。 + List userList = getUsersByBatch(1000); + LOG.debug("All users: {}", getAllUserIds(userList)); + ``` - - 正面示例: + - 正面示例: - 在这种情况下,我们应该在进行实际的日志调用之前提前确定日志级别,如下所示: + 在这种情况下,我们应该在进行实际的日志调用之前提前确定日志级别,如下所示: - ```java - // 忽略声明行。 - List userList = getUsersByBatch(1000); - if (LOG.isDebugEnabled()) { - LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); - } - ``` + ```java + // 忽略声明行。 + List userList = getUsersByBatch(1000); + if (LOG.isDebugEnabled()) { + LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); + } + ``` ## 5 测试 @@ -568,10 +641,10 @@ sidebar_position: 3 2. 实现的接口需在`e2e`模块下编写`e2e`测试用例脚本。 - ## 参考资料 -- https://site.mockito.org/ -- https://alibaba.github.io/p3c/ -- https://rules.sonarsource.com/java/ -- https://junit.org/junit5/ -- https://streampark.apache.org/ + +- +- +- +- +- diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contact.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contact.md index 72f147b11c3..0c574937517 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contact.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contact.md @@ -1,15 +1,16 @@ --- id: contact title: 交流联系 -sidebar_label: 交流联系 +sidebar_label: 交流联系 --- + > 如果您在使用过程有任何需要帮助或者想交流建议,可以通过 群 ISSUE 讨论交流。 [订阅邮件列表](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) : 发送邮件至 `dev-subscribe@hertzbeat.apache.org` 来订阅邮件列表. [Chat On Discord](https://discord.gg/Fb6M73htGr) -微信交流群 : 加 `tan-cloud` 好友邀请进群. +微信交流群 : 加 `ahertzbeat` 好友邀请进群. 微信公众号 : 搜索 ID `usthecom`. diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contribution.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contribution.md index 8cd528bb7e5..776fcb96a5d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contribution.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/contribution.md @@ -5,20 +5,20 @@ sidebar_position: 0 --- > 非常欢迎参与项目贡献,我们致力于维护一个互相帮助的快乐社区。 @@ -47,7 +47,7 @@ sidebar_position: 0 ### 让 HertzBeat 运行起来 -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 +> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 > 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 #### 后端启动 @@ -87,26 +87,34 @@ sidebar_position: 0 1. 首先您需要 Fork 目标仓库 [hertzbeat repository](https://github.com/apache/hertzbeat). 2. 然后 用 git 命令 将代码下载到本地: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` + + ```shell + git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended + ``` + 3. 下载完成后,请参考目标仓库的入门指南或者 README 文件对项目进行初始化。 4. 接着,您可以参考如下命令进行代码的提交, 切换新的分支, 进行开发: -```shell -git checkout -b a-feature-branch #Recommended -``` + + ```shell + git checkout -b a-feature-branch #Recommended + ``` + 5. 提交 commit, commit 描述信息需要符合约定格式: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` + + ```shell + git add + git commit -m '[docs]feature: necessary instructions' #Recommended + ``` + 6. 推送到远程仓库 -```shell -git push origin a-feature-branch -``` + + ```shell + git push origin a-feature-branch + ``` + 7. 然后您就可以在 GitHub 上发起新的 PR (Pull Request)。 -请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 + 请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 ### 等待PR代码被合并 @@ -143,19 +151,21 @@ git pull upstream master [Github Discussion](https://github.com/apache/hertzbeat/discussions) -加微信号 `tan-cloud` 拉您进微信交流群 +加微信号 `ahertzbeat` 拉您进微信交流群 ### 模块 - **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** 提供监控管理,系统管理基础服务 + > 提供对监控的管理,监控应用配置的管理,系统用户租户后台管理等。 -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 +> +> - **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 > 使用通用协议远程采集获取对端指标数据。 -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 +> - **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 > 采集指标结果数据管理,数据落盘,查询,计算统计。 -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 +> - **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 > 告警计算触发,任务状态联动,告警配置,告警通知。 -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 +> - **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 > 监控告警系统可视化控制台前端 ![hertzBeat](/img/docs/hertzbeat-arch.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md index 2bfebd21d2f..2d440e18f01 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/development.md @@ -1,15 +1,14 @@ --- id: development title: 如何将 HertzBeat 运行编译? -sidebar_label: 运行编译 +sidebar_label: 运行编译 --- ## 让 HertzBeat 运行起来 -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 +> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 > 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 - ### 后端启动 1. 需要 `maven3+`, `java17` 和 `lombok` 环境 @@ -38,7 +37,7 @@ sidebar_label: 运行编译 ## 生成二进制包 -> 需要 `maven3+`, `java17`, `node` 和 `yarn` 环境. +> 需要 `maven3+`, `java17`, `node` 和 `yarn` 环境. ### 前端打包 @@ -52,7 +51,6 @@ sidebar_label: 运行编译 5. 打包: `yarn package` - ### 后端打包 1. 需要 `maven3+`, `java17` 环境 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/document.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/document.md index e696b3c35e4..7032d24688e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/document.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/document.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- 对于任何类型的软件来说,良好的文档都是至关重要的。任何能够改进 HertzBeat 文档的贡献都是受欢迎的。 @@ -40,8 +40,8 @@ git clone git@github.com:/hertzbeat.git 1. 下载并安装 nodejs (版本 18.8.0) 2. 将代码克隆到本地 `git clone git@github.com:apache/hertzbeat.git` 3. 在`home`目录下运行 `npm install` 来安装所需的依赖库。 -4. 在`home`目录下运行 `npm run start`,您可以访问 http://localhost:3000 查看站点的英文模式预览 -5. 在`home`目录下运行 `npm run start-zh-cn`,您可以访问 http://localhost:3000 查看站点的中文模式预览 +4. 在`home`目录下运行 `npm run start`,您可以访问 查看站点的英文模式预览 +5. 在`home`目录下运行 `npm run start-zh-cn`,您可以访问 查看站点的中文模式预览 6. 若要生成静态网站资源文件,请运行 `npm run build`。构建的静态资源位于 build 目录中。 ## 目录结构 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-release.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-release.md index 0af99b19c08..a7ee981cdfc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-release.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-release.md @@ -12,7 +12,7 @@ sidebar_position: 4 - JDK 17 - Node18 Yarn -- Apache Maven 3.x +- Apache Maven 3.x - GnuPG 2.x - Git - SVN (Apache使用svn来托管项目发布) @@ -22,11 +22,12 @@ sidebar_position: 4 ## 2. 准备发布 > 首先整理帐户信息以更好地了解操作过程,稍后会多次使用。 -- apache id: `muchunjin (APACHE LDAP 用户名)` -- apache passphrase: `APACHE LDAP 密钥` -- apache email: `muchunjin@apache.org` -- gpg real name: `muchunjin (任何名称均可用, 在这里我将其设置为与apache id相同的名称)` -- gpg key passphrase: `创建gpg密钥时设置的密码,你需要记住此密码` +> +> - apache id: `muchunjin (APACHE LDAP 用户名)` +> - apache passphrase: `APACHE LDAP 密钥` +> - apache email: `muchunjin@apache.org` +> - gpg real name: `muchunjin (任何名称均可用, 在这里我将其设置为与apache id相同的名称)` +> - gpg key passphrase: `创建gpg密钥时设置的密码,你需要记住此密码` ### 2.1 生成密钥 @@ -128,13 +129,12 @@ gpg: Total number processed: 1 gpg: unchanged: 1 ``` -或者进入 https://keyserver.ubuntu.com/ 网址,输入密钥的名称,然后点击'Search key' 按钮,查看是否有对应名称的密钥。 - +或者进入 网址,输入密钥的名称,然后点击'Search key' 按钮,查看是否有对应名称的密钥。 #### 2.4 将 gpg 公钥添加到 Apache SVN 项目仓库的 KEYS 文件中 -- Apache HertzBeat Dev 分支 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat -- Apache HertzBeat Release 分支 https://dist.apache.org/repos/dist/release/incubator/hertzbeat +- Apache HertzBeat Dev 分支 +- Apache HertzBeat Release 分支 ##### 2.4.1 将公钥添加到dev分支的KEYS @@ -168,7 +168,9 @@ $ svn ci -m "add gpg key for muchunjin" ## 3. 准备物料 & 发布 -#### 3.1 基于 master 分支,创建一个名为 release-${release_version}-rcx 的分支,例如 release-1.6.0-rc1。并基于 release-1.6.0-rc1 分支创建一个名为 v1.6.0-rc1 的标签,并将此标签设置为预发布。 +### 准备发布物料 + +#### 3.1 基于 master 分支,创建一个名为 release-${release_version}-rcx 的分支,例如 release-1.6.0-rc1。并基于 release-1.6.0-rc1 分支创建一个名为 v1.6.0-rc1 的标签,并将此标签设置为预发布 ```shell git checkout master @@ -228,11 +230,13 @@ release-1.6.0-rc1 生成的代码归档文件在 `dist/apache-hertzbeat-1.6.0-incubating-src.tar.gz` +### 签名发布物料 + #### 3.5 对二进制和源码包进行签名 -将上步骤生成的三个文件包放到`dist`目录下(若无则新建目录),然后对文件包进行签名和SHA512校验和生成。 +将上步骤生成的三个文件包放到`dist`目录下(若无则新建目录),然后对文件包进行签名和SHA512校验和生成。 -> 其中 `gpg -u 33545C76` 的 `33545C76` 是你的 GPG 密钥 ID,可以通过 `gpg --keyid-format SHORT --list-keys` 查看。 +> 其中 `gpg -u 33545C76` 的 `33545C76` 是你的 GPG 密钥 ID,可以通过 `gpg --keyid-format SHORT --list-keys` 查看。 ```shell cd dist @@ -248,7 +252,7 @@ for i in *.tar.gz; do echo $i; sha512sum $i > $i.sha512 ; done > 最终文件列表如下 -``` +```text apache-hertzbeat-1.6.0-incubating-src.tar.gz apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512 @@ -331,19 +335,19 @@ svn commit -m "release for HertzBeat 1.6.0-RC1" - 检查 Apache SVN 提交结果 -> 在浏览器中访问 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ , 检查是否有新的版本内容 +> 在浏览器中访问 , 检查是否有新的版本内容 ## 4. 进入社区投票阶段 -#### 4.1 发送社区投票邮件 +### 4.1 发送社区投票邮件 发送社区投票邮件需要至少三个`+1`,且无`-1`。 -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0 rc1
-> `Body`: +> `Body`: -``` +```text Hello HertzBeat Community: This is a call for vote to release Apache HertzBeat (incubating) version release-1.6.0-RC1. @@ -395,17 +399,16 @@ Thanks! 在72小时后,将统计投票结果,并发送投票结果邮件,如下所示。 -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Dear HertzBeat community, Thanks for your review and vote for "Release Apache HertzBeat (incubating) 1.6.0-rc1" I'm happy to announce the vote has passed: - - +--- 4 binding +1, from: - cc @@ -413,34 +416,30 @@ I'm happy to announce the vote has passed: 1 non-binding +1, from: - Roc Marshal - - +--- no 0 or -1 votes. Vote thread: https://lists.apache.org/thread/t01b2lbtqzyt7j4dsbdp5qjc3gngjsdq - - +--- Thank you to everyone who helped us to verify and vote for this release. We will move to the ASF Incubator voting shortly. - - +--- Best, ChunJin Mu ``` -邮件内容中的一项是`Vote thread`,在 https://lists.apache.org/list.html?dev@hertzbeat.apache.org 查看获取 +邮件内容中的一项是`Vote thread`,在 查看获取 - -#### 3.2 发送孵化社区投票邮件 +### 3.2 发送孵化社区投票邮件 发送孵化社区投票邮件需要至少三个`+1`,且无`-1`。 -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org、private@hertzbeat.apache.org
+> `Send to`:
+> `cc`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hello Incubator Community: This is a call for a vote to release Apache HertzBeat (incubating) version 1.6.0-RC1. @@ -476,27 +475,24 @@ More detailed checklist please refer: Steps to validate the release, Please refer to: • https://www.apache.org/info/verification.html • https://hertzbeat.apache.org/docs/community/how_to_verify_release - - +--- How to Build: https://hertzbeat.apache.org/docs/community/development/#build-hertzbeat-binary-package - - +--- Thanks, On behalf of Apache HertzBeat (incubating) community - - +--- Best, ChunJin Mu ``` 如果72小时后没有-1,回复邮件如下 -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Body`: -``` +```text Thanks everyone for review and vote, 72H passed. I'll announce the vote result soon. Best, @@ -505,11 +501,11 @@ Chunjin Mu 然后将统计投票结果,并发送投票结果邮件,如下所示。 -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hi Incubator Community, The vote to release Apache HertzBeat (incubating) 1.6.0-rc4 has passed with 3 +1 binding and no +0 or -1 votes. @@ -531,28 +527,28 @@ Best, ChunJin Mu ``` -邮件内容中的一项是`Vote thread`,在 https://lists.apache.org/list.html?general@incubator.apache.org 查看获取 +邮件内容中的一项是`Vote thread`,在 查看获取 等待一天,查看看导师是否有其他意见,如果没有,发送以下公告邮件 ## 4. 完成最终发布步骤 -#### 4.1 迁移源代码和二进制包 +### 4.1 迁移源代码和二进制包 ```shell svn mv https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/1.6.0-RC1 https://dist.apache.org/repos/dist/release/incubator/hertzbeat/1.6.0 -m "transfer packages for 1.6.0-RC1" ``` -#### 4.2 添加新版本下载地址到官网 +### 4.2 添加新版本下载地址到官网 -https://github.com/apache/hertzbeat/blob/master/home/docs/download.md -https://github.com/apache/hertzbeat/blob/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md + + -完成后打开官网地址 https://hertzbeat.apache.org/docs/download/ 查看是否有新版本的下载 +完成后打开官网地址 查看是否有新版本的下载 > 需要注意的是,下载链接可能需要一个小时后才会生效,请注意。 -#### 4.3 Github 生成 Release +### 4.3 Github 生成 Release 基于 release-1.6.0-rc1 分支修改创建一个名为 v1.6.0 的标签,并将此标签设置为 latest release。 @@ -562,12 +558,15 @@ https://github.com/apache/hertzbeat/blob/master/home/i18n/zh-cn/docusaurus-plugi 然后输入发版标题和描述 -- 发版标题: -``` +- 发版标题: + +```text v1.6.0 ``` + - 描述: -``` + +```text xxx release note: xxx ``` @@ -576,14 +575,14 @@ release note: xxx 然后将 release-1.6.0-rc1 分支重命名 为 release-1.6.0。 -#### 4.4 发送新版本公告邮件 +### 4.4 发送新版本公告邮件 -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org
+> `Send to`:
+> `cc`:
> `Title`: [ANNOUNCE] Apache HertzBeat (incubating) 1.6.0 released
> `Body`: -``` +```text Hi Community, We are glad to announce the release of Apache HertzBeat (incubating) 1.6.0. @@ -603,8 +602,7 @@ https://hertzbeat.apache.org/ HertzBeat Resources: - Issue: https://github.com/apache/hertzbeat/issues - Mailing list: dev@hertzbeat.apache.org - - +--- Apache HertzBeat Team Best, @@ -613,6 +611,6 @@ ChunJin Mu 该版本的发布顺利结束。 ----- +--- -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md index ee4f9563c83..f6aa3c19039 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/how-to-verify.md @@ -3,13 +3,14 @@ id: how_to_verify_release title: 版本物料的验证 sidebar_position: 4 --- -# 验证候选版本 + +## 验证候选版本 详细检查列表请参考官方的[check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist) -在浏览器中可访问版本内容 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ +在浏览器中可访问版本内容 -## 1. 下载候选版本到本地 +### 1. 下载候选版本到本地 > 需要依赖gpg工具,如果没有,建议安装gpg2 @@ -21,13 +22,11 @@ wget https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_versio ``` - -## 2. 验证上传的版本是否合规 +### 2. 验证上传的版本是否合规 > 开始验证环节,验证包含但不局限于以下内容和形式 - -### 2.1 查看发布包是否完整 +#### 2.1 查看发布包是否完整 > 上传到dist的包必须包含源码包,二进制包可选 @@ -36,18 +35,18 @@ wget https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_versio 3. 是否包含源码包的sha512 4. 如果上传了二进制包,则同样检查(2)-(4)所列的内容 - -### 2.2 检查gpg签名 +#### 2.2 检查gpg签名 首先导入发布人公钥。从svn仓库导入KEYS到本地环境。(发布版本的人不需要再导入,帮助做验证的人需要导入,用户名填发版人的即可) -#### 2.2.1 导入公钥 +##### 2.2.1 导入公钥 ```shell -$ curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # 下载KEYS -$ gpg --import KEYS # 导入KEYS到本地 +curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # 下载KEYS +gpg --import KEYS # 导入KEYS到本地 ``` -#### 2.2.2 信任公钥 + +##### 2.2.2 信任公钥 > 信任此次版本所使用的KEY @@ -75,13 +74,15 @@ Do you really want to set this key to ultimate trust? (y/N) y #选择y gpg> ``` -#### 2.2.3 检查签名 + +##### 2.2.3 检查签名 ```shell for i in *.tar.gz; do echo $i; gpg --verify $i.asc $i ; done ``` 检查结果 + > 出现类似以下内容则说明签名正确,关键字:**`Good signature`** ```shell @@ -91,16 +92,15 @@ gpg: using RSA key XXXXX gpg: Good signature from "xxx @apache.org>" ``` -### 2.3 检查sha512哈希 +#### 2.3 检查sha512哈希 > 本地计算sha512哈希后,验证是否与dist上的一致,如果上传二进制包,则同样需要检查二进制包的sha512哈希 - ```shell for i in *.tar.gz; do echo $i; sha512sum --check $i.sha512; done ``` -### 2.4 检查二进制包 +#### 2.4 检查二进制包 解压缩 `apache-hertzbeat-${release.version}-incubating-bin.tar.gz` @@ -121,10 +121,9 @@ tar -xzvf apache-hertzbeat-${release.version}-incubating-bin.tar.gz - [ ] 如果依赖的是Apache许可证并且存在`NOTICE`文件,那么这些`NOTICE`文件也需要加入到版本的`NOTICE`文件中 - [ ] ..... -参考: https://apache.org/legal/resolved.html - +参考: -### 2.5. 源码编译验证 +#### 2.5. 源码编译验证 解压缩 `apache-hertzbeat-${release_version}-incubating-src.tar.gz` @@ -132,7 +131,7 @@ tar -xzvf apache-hertzbeat-${release.version}-incubating-bin.tar.gz cd apache-hertzbeat-${release_version}-incubating-src ``` -编译源码: https://hertzbeat.apache.org/docs/community/development/#build-hertzbeat-binary-package +编译源码: 进行如下检查: @@ -146,34 +145,33 @@ cd apache-hertzbeat-${release_version}-incubating-src - [ ] 能够正确编译 - [ ] ..... -参考: https://apache.org/legal/resolved.html +参考: - -## 3. 邮件回复 +### 3. 邮件回复 如果发起了发布投票,验证后,可以参照此回复示例进行邮件回复 :::caution 注意 回复的邮件一定要带上自己检查了那些项信息,仅仅回复`+1 approve`,是无效的。 -PPMC 在 dev@hertzbeat.apache.org HertzBeat 的社区投票时,请带上 binding 后缀,表示对 HertzBeat 社区中的投票具有约束性投票,方便统计投票结果。 +PPMC 在 HertzBeat 的社区投票时,请带上 binding 后缀,表示对 HertzBeat 社区中的投票具有约束性投票,方便统计投票结果。 -IPMC 在 general@incubator.apache.org incubator 社区投票,请带上 binding 后缀,表示对 incubator 社区中的投票具有约束性投票,方便统计投票结果。 +IPMC 在 incubator 社区投票,请带上 binding 后缀,表示对 incubator 社区中的投票具有约束性投票,方便统计投票结果。 ::: :::caution 注意 -如果在dev@hertzbeat.apache.org已经投过票,在incubator社区进行投票回复时,可以直接带过去,需要注意约束性 如: +如果在已经投过票,在incubator社区进行投票回复时,可以直接带过去,需要注意约束性 如: ```html //incubator社区 投票时,只有IPMC成员才具有约束性 binding,PPMC需要注意约束性的变化 Forward my +1 from dev@hertzbeat (non-binding) Copy my +1 from hertzbeat DEV ML (non-binding) ``` -::: - +::: 非PPMC/IPMC成员 + ```html +1 (non-binding) I checked: @@ -185,6 +183,7 @@ I checked: ``` PPMC/IPMC成员 + ```html //incubator社区 投票时,只有IPMC成员才具有约束性 binding +1 (binding) @@ -196,7 +195,6 @@ I checked: 5. .... ``` +--- ---- - -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/mailing_lists.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/mailing_lists.md index 57de5409834..64d938005fd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/mailing_lists.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/mailing_lists.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- [开发者邮件列表](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) 是社区推荐的沟通和获取最新信息的方式。 @@ -32,28 +32,26 @@ sidebar_position: 1 - 使用此列表提出您对 HertzBeat 的问题 - 由 HertzBeat 贡献者用来讨论 HertzBeat 的开发 - -| 列表名称 | 地址 | 订阅 | 退订 | 归档 | -|--------------|------------------------------|------------------------------------------------------|---------------------------------------------------------|------------------------------------------------------------------------| -| **开发者列表** | dev@hertzbeat.apache.org | [订阅](mailto:dev-subscribe@hertzbeat.apache.org) | [退订](mailto:dev-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | - +| 列表名称 | 地址 | 订阅 | 退订 | 归档 | +|-----------|--------------------------|-------------------------------------------------|---------------------------------------------------|-------------------------------------------------------------------| +| **开发者列表** | | [订阅](mailto:dev-subscribe@hertzbeat.apache.org) | [退订](mailto:dev-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | ### 通知列表 - 关于 HertzBeat 代码库的更改的通知,频繁通知 -| 列表名称 | 地址 | 订阅 | 退订 | 归档 | -|-----------|------------------------------|-------------------------------------------------------------|--------------------------------------------------------------|-----------------------------------------------------------------------------| -| **通知列表** | notifications@hertzbeat.apache.org | [订阅](mailto:notifications-subscribe@hertzbeat.apache.org) | [退订](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | +| 列表名称 | 地址 | 订阅 | 退订 | 归档 | +|----------|------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------|-----------------------------------------------------------------------------| +| **通知列表** | | [订阅](mailto:notifications-subscribe@hertzbeat.apache.org) | [退订](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | ## 订阅步骤 发送订阅邮件即可订阅。步骤如下: - 1、**订阅**:点击上表中的 **订阅** 按钮,它将重定向到您的邮件客户端。主题和内容是任意的。 - 之后,您会从 dev-help@hertzbeat.apache.org 收到确认邮件(如果没有收到,请确认电子邮件是否被自动分类为垃圾邮件、推广邮件、订阅邮件等)。 + 之后,您会从 收到确认邮件(如果没有收到,请确认电子邮件是否被自动分类为垃圾邮件、推广邮件、订阅邮件等)。 - 2、**确认**:直接回复确认邮件,或点击邮件中的链接快速回复。主题和内容是任意的。 -- 3、**欢迎**:在完成上述步骤后,您会收到一个主题为 WELCOME to dev@hertzbeat.apache.org 的欢迎邮件,您已成功订阅 Apache HertzBeat 邮件列表。 +- 3、**欢迎**:在完成上述步骤后,您会收到一个主题为 WELCOME to 的欢迎邮件,您已成功订阅 Apache HertzBeat 邮件列表。 ## 发送纯文本邮件 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_committer_process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_committer_process.md index a388728d5b5..f3cb4afad25 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_committer_process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_committer_process.md @@ -5,20 +5,20 @@ sidebar_position: 4 --- [官方指南](https://community.apache.org/newcommitter.html#new-committer-process) @@ -49,7 +49,6 @@ sidebar_position: 4 - 等待root告诉我们已经完成 - [Roster](https://whimsy.apache.org/roster/ppmc/hertzbeat) 添加新的 committer - - Announce New Committer 参见 **Announce New Committer Template** @@ -58,12 +57,16 @@ sidebar_position: 4 请注意,模板中有三个占位符在使用之前应该替换: -- NEW_COMMITTER_NAME +- NEW_COMMITTER_NAME 这须是真实名字,而非 Github 名称或 Id - NEW_COMMITTER_EMAIL - NEW_COMMITTER_APACHE_NAME ### Committer投票模板 +:::note +NEW_COMMITTER_NAME 这须是真实名字,而非 Github 名称或 Id +::: + ```text To: private@hertzbeat.apache.org Subject: [VOTE] New committer: ${NEW_COMMITTER_NAME} @@ -104,7 +107,7 @@ ttt ``` 注意,投票将在今天一周后结束,即 -[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache投票指南](https://community.apache.org/newcommitter.html) ### 关闭投票模板 @@ -141,6 +144,7 @@ Hello ${NEW_COMMITTER_NAME}, The HertzBeat Project Management Committee (PMC) hereby offers you committer privileges to the project. + These privileges are offered on the understanding that you'll use them reasonably and with common sense. We like to work on trust rather than unnecessary constraints. @@ -157,30 +161,53 @@ probably find that you spend more time here. Of course, you can decline and instead remain as a contributor, participating as you do now. -A. This personal invitation is a chance for you to -accept or decline in private. Either way, please -let us know in reply to the private@hertzbeat.apache.org -address only. +This personal invitation is a chance for you to accept or decline in private. +Please let us know in reply to this message whether you accept or decline. -B. If you accept, the next step is to register an iCLA: - 1. Details of the iCLA and the forms are found +If you accept, you will need an Apache account (id) with privileges. +Please follow these instructions. + +A. If you already have an ICLA on file: + + 1. If you already have an Apache account, let us know your id and we +will grant you privileges on the project repositories. + + 2. If you have previously sent an ICLA, let us know the email address +and public name used on the ICLA and your preferred Apache id, and +we will request your account. + + 3. If the email address on the previously submitted ICLA is no longer +valid, let us know the email address and public name used on the new ICLA, +and your preferred Apache id. Continue to step B below and file your new ICLA. + +Look to see if your preferred ID is already taken at +https://people.apache.org/committer-index.html + +B. If there is not already an ICLA on file, you need to submit an ICLA: + + 1. Details of the ICLA and the forms are found through this link: https://www.apache.org/licenses/#clas - 2. Instructions for its completion and return to + 2. Instructions for its completion and return to the Secretary of the ASF are found at - https://www.apache.org/licenses/#submitting + https://www.apache.org/licenses/contributor-agreements.html#submitting + + Do not copy the project or any other individual on your message + to Secretary, as the form contains Personally Identifiable Information + that should be kept private. - 3. When you transmit the completed iCLA, request - to notify the Apache HertzBeat and choose a - unique Apache ID. Look to see if your preferred - ID is already taken at + 3. When you complete the ICLA form, be sure to include in the form + the Apache [Project] project and choose a + unique Apache ID. Look to see if your preferred + ID is already taken at https://people.apache.org/committer-index.html - This will allow the Secretary to notify the PMC - when your iCLA has been recorded. + This will allow the Secretary to notify the PMC + when your ICLA has been recorded. -When recording of your iCLA is noted, you will -receive a follow-up message with the next steps for +When recording of your ICLA is noted, you will +receive a follow-up message with the next steps for establishing you as a committer. + ``` ### Committer接受模板 @@ -257,8 +284,10 @@ Best Wishes! ## 详细步骤 ### 接受邀请 + 当通过PMC内部投票后,PMC会向您索要个人邮箱,之后您会收到一封邮件,邮件会指引您进行下一步操作,内容为: -``` + +```text Hello xxxx, The HertzBeat Project Management Committee (PPMC) @@ -307,7 +336,7 @@ establishing you as a committer. 如果您接受邀请,请回复该邮件,记住要**回复全部**,回复内容为: -``` +```text hi, i accept. Thanks for invitaion. ``` @@ -319,70 +348,73 @@ hi, i accept. Thanks for invitaion. 1. 下载iCLA申请表 -打开访问:[https://www.apache.org/licenses/#clas](https://www.apache.org/licenses/#clas) + 打开访问:[https://www.apache.org/licenses/#clas](https://www.apache.org/licenses/#clas) -找到`CLAs`点击进入页面 + 找到`CLAs`点击进入页面 -![](/img/docs/community/clas-web.png) + ![](/img/docs/community/clas-web.png) -找到`ICLA(个人贡献者许可协议)`,点击[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) + 找到`ICLA(个人贡献者许可协议)`,点击[Individual Contributor License Agreement](https://www.apache.org/licenses/icla.pdf) -![](/img/docs/community/icla-web.png) + ![](/img/docs/community/icla-web.png) -跳转后,会显示需要签署的协议,这里可以在网页上直接填写,也可以下载后填写。 + 跳转后,会显示需要签署的协议,这里可以在网页上直接填写,也可以下载后填写。 -![](/img/docs/community/icla-pdf.png) + ![](/img/docs/community/icla-pdf.png) 2. 填写iCLA -> tips: 签名时需要手写签名,其他的可以直接填写后打印。 + > tips: 签名时需要手写签名,其他的可以直接填写后打印。 + + 需要填写的内容: -需要填写的内容: + ![](/img/docs/community/icla-content-1.png) + ![](/img/docs/community/icla-content-2.png) -![](/img/docs/community/icla-content-1.png) -![](/img/docs/community/icla-content-2.png) + 在PDF中需要填写的字段: -在PDF中需要填写的字段: - - `Full name` - - `Public name` - - `Postal Address` - - `Country` - - `E-Mail` - - `(optional) preferred Apache id(s)` - - `(optional) notify project` - - `Date` + - `Full name` + - `Public name` + - `Postal Address` + - `Country` + - `E-Mail` + - `(optional) preferred Apache id(s)` + - `(optional) notify project` + - `Date` -> 填写样例 -> ![](/img/docs/community/icla-content-3.png) -> ![](/img/docs/community/icla-content-4.png) + > 填写样例 + > ![](/img/docs/community/icla-content-3.png) + > ![](/img/docs/community/icla-content-4.png) 3. 打印并签署 -![](/img/docs/community/icla-content-5.png) + ![](/img/docs/community/icla-content-5.png) -`Please sign`字段需要将文件打印出来然后手写签名,内容为自己姓名的全拼。 + `Please sign`字段需要将文件打印出来然后手写签名,内容为自己姓名的全拼。 4. 将签名后的文件拍照或扫描转为PDF,并重命名为`姓名拼音-icla.pdf` 5. 发送邮件到指定邮箱 -邮件发送到`secretary@apache.org`,抄送到`private@hertzbeat.apache.org`。 + 邮件发送到`secretary@apache.org`,抄送到`private@hertzbeat.apache.org`。 -**发送模板** + 注意⚠️此邮件内容需要附加上之前的 committer 邀请邮件信息, 建议在之前的往来邮件点击回复然后修改标题和收件人等。 -主题:`Accept to become a Hertzbeat(incubating) committer` + **发送模板** -正文: + 主题:`Accept to become a Hertzbeat(incubating) committer` -``` -Hello Apache, - I am willing contribute to the ASF. The attachment is my ICLA information. My Github account is : https://github.com/xxxx. -Thanks ! -``` + 正文: + + ```text + Hello Apache, + I am willing contribute to the ASF. The attachment is my ICLA information. My Github account is : https://github.com/xxxx. + Thanks ! + ``` -大概1-5个工作日你就会收到一封来自`root@apache.org`的邮件。 + 大概1-5个工作日你就会收到一封来自`root@apache.org`的邮件。 -当您收到邮件标题为:`Welcome to the Apache Software Foundation`的邮件,恭喜你,你已经获取到Apache ID了! + 当您收到邮件标题为:`Welcome to the Apache Software Foundation`的邮件,恭喜你,你已经获取到Apache ID了! ### 设置Apache密码 @@ -396,7 +428,8 @@ Thanks ! ### 将Apache账号和GitHub账号关联 -访问: https://whimsy.apache.org/roster/committer/${APACHE_ID} +访问: + - `${APACHE_ID}`替换成你的Apache ID 登录后可以看到这个内容`Link GitHub username to ASF id`,点击跳转 @@ -420,6 +453,7 @@ Thanks ! ![](/img/docs/community/account-6.png) 邮箱中会收到一封邮件,点击`Join @apache` + > 这里邮箱指的是您提供给PMC的那个邮箱地址 ![](/img/docs/community/account-7.png) @@ -430,6 +464,7 @@ Thanks ! ![](/img/docs/community/account-9.png) 回到Apache页面,提示GitHub启用多重身份认证,在GitHub页面启用双重身份认证 + > GitHub双重身份认证介绍,[点击跳转官方文档](https://docs.github.com/zh/authentication/securing-your-account-with-two-factor-authentication-2fa/about-two-factor-authentication) ![](/img/docs/community/account-10.png) @@ -442,7 +477,6 @@ Thanks ! 最后一步,联系PMC主席开启svn和其他访问权限。 - ## 邮箱绑定 ### GMail邮箱绑定 @@ -465,4 +499,4 @@ Thanks ! 配置完成。 -最后一步,别忘了订阅开发邮箱。 +最后一步,别忘了订阅[开发者邮箱列表](./mailing_lists.md)。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_pmc_member_process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_pmc_member_process.md index 4488f1fcfea..500627ec5f2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_pmc_member_process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/new_pmc_member_process.md @@ -5,20 +5,20 @@ sidebar_position: 5 --- 这个指南是基于 [apache newcommitter](https://community.apache.org/newcommitter.html#new-committer-process) 的。 @@ -79,10 +79,9 @@ ${Work list}[1] ``` 注意,投票将在今天一周后结束,即 -[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache 参考投票指南](https://community.apache.org/newcommitter.html) - ### Close Vote Template ```text diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/submit-code.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/submit-code.md index ee553bb6e1c..7ad649e09d1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/submit-code.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/community/submit-code.md @@ -5,72 +5,68 @@ sidebar_position: 2 --- - * 首先从远程仓库 将代码的一份副本 fork 到您自己的仓库 * 远程仓库开发合并分支:`master` * 将您fork仓库clone到您的本地设备 - ```shell - git clone git@github.com:<您的账户名>/hertzbeat.git - ``` + ```shell + git clone git@github.com:<您的账户名>/hertzbeat.git + ``` * 添加远程仓库地址,命名为 upstream - ```shell - git remote add upstream git@github.com:apache/hertzbeat.git - ``` + ```shell + git remote add upstream git@github.com:apache/hertzbeat.git + ``` * 查看仓库 - ```shell - git remote -v - ``` + ```shell + git remote -v + ``` > 此时会有两个仓库:origin(您自己的仓库)和 upstream(远程仓库) * 获取/更新远程仓库代码 - ```shell - git fetch upstream - ``` + ```shell + git fetch upstream + ``` * 将远程仓库代码同步到本地仓库 - ```shell - git checkout origin/master - git merge --no-ff upstream/master - ``` + ```shell + git checkout origin/master + git merge --no-ff upstream/master + ``` * **⚠️注意一定要新建分支开发特性 `git checkout -b feature-xxx`,不建议使用master分支直接开发** - * 在本地修改代码后,提交到自己的仓库: - **注意提交信息为英文,不包含特殊字符** - ```shell - git commit -m '[docs]necessary instructions' - git push - ``` + **注意提交信息为英文,不包含特殊字符** -* 将更改提交到远程仓库后,您可以在您的仓库页面上看到一个绿色的按钮“Compare & pull request”,点击它。 + ```shell + git commit -m '[docs]necessary instructions' + git push + ``` +* 将更改提交到远程仓库后,您可以在您的仓库页面上看到一个绿色的按钮“Compare & pull request”,点击它。 * 这会弹出新建 Pull Request 页面,您需要这里仔细填写信息(英文),描述和代码同样重要,然后点击“Create pull request”按钮。 - * 然后社区的 Committers 将进行 CodeReview,并与您讨论一些细节(包括设计、实现、性能等),之后您可以根据建议直接在这个分支更新代码(无需新建PR)。当社区 Committer approve之后,提交将被合并到 master 分支。 - * 最后,恭喜您,您已经成为 HertzBeat 的官方贡献者,您会被加在贡献者墙上,您可以联系社区获取贡献者证书! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md index dedb919ebfc..0bac76f66a3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md @@ -4,12 +4,14 @@ title: 下载 Apache HertzBeat (incubating) sidebar_label: Download --- -> **这里是 Apache HertzBeat (incubating) 官方下载页面。** +> **这里是 Apache HertzBeat (incubating) 官方下载页面。** > **请再下方表中选择版本下载,推荐使用最新版本。** :::tip + - 验证下载版本,请使用相应的哈希(sha512)、签名和[项目发布KEYS](https://downloads.apache.org/incubator/hertzbeat/KEYS)。 - 检查哈希和签名的方法参考 [如何验证](https://www.apache.org/dyn/closer.cgi#verify)。 + ::: ## 最新版本 @@ -18,19 +20,16 @@ sidebar_label: Download 以前版本的 HertzBeat 可能会受到安全问题的影响,请考虑使用最新版本。 ::: - -| 版本 | 日期 | 下载 | Release Notes | -|---------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| -| v1.6.0 | 2024.06.10 | [apache-hertzbeat-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-1.6.0-incubating-src.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512) ) | [release note](https://github.com/apache/hertzbeat/releases/tag/v1.6.0) | - +| 版本 | 日期 | 下载 | Release Notes | +|--------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| +| v1.6.0 | 2024.06.10 | [apache-hertzbeat-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-1.6.0-incubating-src.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512) ) | [release note](https://github.com/apache/hertzbeat/releases/tag/v1.6.0) | ## Docker 镜像版本 > Apache HertzBeat 为每个版本制作了 Docker 镜像. 你可以从 [Docker Hub](https://hub.docker.com/r/apache/hertzbeat) 拉取使用. -- HertzBeat https://hub.docker.com/r/apache/hertzbeat -- HertzBeat Collector https://hub.docker.com/r/apache/hertzbeat-collector - +- HertzBeat +- HertzBeat Collector ## 归档版本 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/activemq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/activemq.md index b2d8f1489f5..a6c741ba2e7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/activemq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/activemq.md @@ -9,65 +9,68 @@ keywords: [开源监控系统, 开源中间件监控, ActiveMQ消息中间件监 **使用协议:JMX** -### 监控前操作 +### 监控前操作 > 您需要在 ActiveMQ 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 ActiveMQ 进行指标采集。 1. 修改安装目录下的 `conf/activemq.xml` 文件,开启JMX -> 在 `broker` 标签中添加 `userJmx="true"` 属性 - -```xml - - - -``` - -2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 - -将如下原配置信息 -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` -更新为如下配置,⚠️注意修改`本机对外IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` + > 在 `broker` 标签中添加 `userJmx="true"` 属性 + + ```xml + + + + ``` + +2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 + + 将如下原配置信息 + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` + + 更新为如下配置,⚠️注意修改`本机对外IP` + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` 3. 重启 ACTIVEMQ 服务,在 HertzBeat 添加对应 ActiveMQ 监控即可,参数使用 JMX 配置的 IP 端口。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | -| JMX URL | 可选,自定义 JMX URL 连接 | -| 用户名 | 认证时使用的用户名 | -| 密码 | 认证时使用的密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | +| JMX URL | 可选,自定义 JMX URL 连接 | +| 用户名 | 认证时使用的用户名 | +| 密码 | 认证时使用的密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 #### 指标集合:broker -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------------|------|-----------------------------------------------------------------------| | BrokerName | 无 | The name of the broker. | | BrokerVersion | 无 | The version of the broker. | @@ -88,57 +91,55 @@ ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" | MaxMessageSize | 无 | Max message size on this broker | | MinMessageSize | 无 | Min message size on this broker | -#### 指标集合:topic - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | 无 | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | 无 | The percentage of the memory limit used | -| ProducerCount | 无 | Number of producers attached to this destination | -| ConsumerCount | 无 | Number of consumers subscribed to this destination. | -| EnqueueCount | 无 | Number of messages that have been sent to the destination. | -| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | 无 | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - +#### 指标集合:topic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|-------------------------------------------------------------------------------------------| +| Name | 无 | Name of this destination. | +| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | +| MemoryPercentUsage | 无 | The percentage of the memory limit used | +| ProducerCount | 无 | Number of producers attached to this destination | +| ConsumerCount | 无 | Number of consumers subscribed to this destination. | +| EnqueueCount | 无 | Number of messages that have been sent to the destination. | +| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | +| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | +| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | +| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | +| ExpiredCount | 无 | Number of messages that have been expired. | +| StoreMessageSize | B | The memory size of all messages in this destination's store. | +| AverageEnqueueTime | ms | Average time a message was held on this destination. | +| MaxEnqueueTime | ms | The longest time a message was held on this destination | +| MinEnqueueTime | ms | The shortest time a message was held on this destination | +| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | +| AverageMessageSize | B | Average message size on this destination | +| MaxMessageSize | B | Max message size on this destination | +| MinMessageSize | B | Min message size on this destination | #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md index bf8d7570c59..d79888149e9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ai_config.md @@ -9,52 +9,53 @@ keywords: [人工智能 AI] ### 配置参数说明 -| 参数名称 | 参数帮助描述 | -| ----------- |------------------------------| -| type | 选择AI大模型(如智普、通义千问...) | -| model | 选择模型,默认为GLM-4 | -| api-key | 获取api_key,如果没有该配置,无法与大模型进行对话 | +| 参数名称 | 参数帮助描述 | +|---------|------------------------------| +| type | 选择AI大模型(如智普、通义千问...) | +| model | 选择模型,默认为GLM-4 | +| api-key | 获取api_key,如果没有该配置,无法与大模型进行对话 | ### 大模型选项与配置详解 #### 智普AI -| 参数名称 | 示例 | 链接 | -|--------------|-----------------------------------------------------|----| -| type | zhiPu(必须和示例完全相同) | 无 | -| model | glm-4-0520、glm-4 、glm-4-air、glm-4-airx、 glm-4-flash | 无 | -| api-key | xxxxx.xxxxxx | https://open.bigmodel.cn/login?redirect=%2Fusercenter%2Fapikeys | +| 参数名称 | 示例 | 链接 | +|---------|-----------------------------------------------------|-----------------------------------------------------------------| +| type | zhiPu(必须和示例完全相同) | 无 | +| model | glm-4-0520、glm-4 、glm-4-air、glm-4-airx、 glm-4-flash | 无 | +| api-key | xxxxx.xxxxxx | | #### 阿里巴巴AI -| 参数名称 | 示例 | 链接 | -|--------------|----------------------------------------------------|----| -| type | alibabaAi(必须和示例完全相同) | 无 | -| model | qwen-turbo、qwen-plus、qwen-max、qwen-max-0428、qwen-max-0403、qwen-max-0107、qwen-max-longcontext | https://help.aliyun.com/zh/dashscope/developer-reference/model-introduction?spm=a2c4g.11186623.0.0.4e0246c1RQFKMH | -| api-key | xxxxxxxxxxx | https://help.aliyun.com/zh/dashscope/developer-reference/activate-dashscope-and-create-an-api-key?spm=a2c4g.11186623.0.i10 | +| 参数名称 | 示例 | 链接 | +|---------|----------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------| +| type | alibabaAi(必须和示例完全相同) | 无 | +| model | qwen-turbo、qwen-plus、qwen-max、qwen-max-0428、qwen-max-0403、qwen-max-0107、qwen-max-longcontext | | +| api-key | xxxxxxxxxxx | | #### 月之暗面AI -| 参数名称 | 示例 | 链接 | -|--------------|----------------------------------------------------|-----------------------------------------------| -| type | kimiAi(必须和示例完全相同) | 无 | -| model | moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k | 无 | -| api-key | xxxxxxxxxxx | https://platform.moonshot.cn/console/api-keys | +| 参数名称 | 示例 | 链接 | +|---------|-------------------------------------------------|-----------------------------------------------| +| type | kimiAi(必须和示例完全相同) | 无 | +| model | moonshot-v1-8k、moonshot-v1-32k、moonshot-v1-128k | 无 | +| api-key | xxxxxxxxxxx | | #### 科大讯飞AI -快速入门:https://www.xfyun.cn/doc/platform/quickguide.html -| 参数名称 | 示例 | 链接 | -|--------------|-------------------------------------------------|---------------------------------------------------------------| -| type | sparkDesk (must be exactly the same as example) | | -| model | general、generalv2、generalv3、generalv3.5、4.0Ultra | | -| api-key | xxxxxxxxxxx |https://console.xfyun.cn/services/cbm| -| api-secret | xxxxxxxxxxx |https://console.xfyun.cn/services/cbm| +快速入门: -| 模型版本 | 模型类型(application.yml的model参数) | +| 参数名称 | 示例 | 链接 | +|------------|--------------------------------------------------|---------------------------------------| +| type | sparkDesk (must be exactly the same as example) | | +| model | general、generalv2、generalv3、generalv3.5、4.0Ultra | | +| api-key | xxxxxxxxxxx | | +| api-secret | xxxxxxxxxxx | | + +| 模型版本 | 模型类型(application.yml的model参数) | |-----------------|-------------------------------| -| Spark4.0 Ultra | 4.0Ultra | -| Spark Max | generalv3.5 | +| Spark4.0 Ultra | 4.0Ultra | +| Spark Max | generalv3.5 | | Spark Pro | generalv3 | -| Spark V2.0 | generalv2 | -| Spark Lite(免费版) | general | \ No newline at end of file +| Spark V2.0 | generalv2 | +| Spark Lite(免费版) | general | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/airflow.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/airflow.md index 5323ede8110..a7f77f7f5b6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/airflow.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/airflow.md @@ -9,33 +9,30 @@ keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8080 | +| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | +| HTTPS | 是否启用HTTPS | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:airflow_health -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|------------------| +| metadatabase | 无 | metadatabase健康情况 | +| scheduler | 无 | scheduler健康情况 | +| triggerer | 无 | triggerer健康情况 | #### 指标集合:airflow_version -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------------| +| value | 无 | Airflow版本 | +| git_version | 无 | Airflow git版本 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_console.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_console.md index 68cf7339eae..5198b961b66 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_console.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_console.md @@ -6,13 +6,13 @@ sidebar_label: 告警模板登录台地址 > 阈值触发后发送告警信息,通过钉钉/企业微信/飞书机器人通知或者使用邮箱通知的时候,告警内容中有登录控制台的详情链接 - ### 自定义设置 在我们的启动配置文件application.yml中,找到下面的配置 + ```yml alerter: console-url: #这里就是我们的自定义控制台地址 ``` -默认值是赫兹跳动的官方控制台地址 \ No newline at end of file +默认值是赫兹跳动的官方控制台地址 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_dingtalk.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_dingtalk.md index aec6342f7d3..44e78f392da 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_dingtalk.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_dingtalk.md @@ -5,37 +5,37 @@ sidebar_label: 告警钉钉机器人通知 keywords: [告警钉钉机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 +> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 -### 操作步骤 +### 操作步骤 1. **【钉钉桌面客户端】-> 【群设置】-> 【智能群助手】-> 【添加新建机器人-选自定义】-> 【设置机器人名称头像】-> 【注意⚠️设置自定义关键字: HertzBeat】 ->【添加成功后复制其WebHook地址】** -> 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 + > 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 -![email](/img/docs/help/alert-notice-8.png) + ![email](/img/docs/help/alert-notice-8.png) 2. **【保存机器人的WebHook地址access_token值】** -> 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` 3. **【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】** -![email](/img/docs/help/alert-notice-9.png) + ![email](/img/docs/help/alert-notice-9.png) -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 钉钉机器人通知常见问题 -### 钉钉机器人通知常见问题 +1. 钉钉群未收到机器人告警通知 -1. 钉钉群未收到机器人告警通知 > 请排查在告警中心是否已有触发的告警信息 > 请排查钉钉机器人是否配置了安全自定义关键字:HertzBeat > 请排查是否配置正确机器人ACCESS_TOKEN,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_discord.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_discord.md index d6c4879a2ba..469b9596cbe 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_discord.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_discord.md @@ -5,68 +5,66 @@ sidebar_label: 告警 Discord 机器人通知 keywords: [告警 Discord 机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 +> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 -### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token +### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token -1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 +1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 -![bot](/img/docs/help/discord-bot-1.png) + ![bot](/img/docs/help/discord-bot-1.png) -2. 在应用下创建机器人,获取机器人 Token +2. 在应用下创建机器人,获取机器人 Token -![bot](/img/docs/help/discord-bot-2.png) + ![bot](/img/docs/help/discord-bot-2.png) -![bot](/img/docs/help/discord-bot-3.png) + ![bot](/img/docs/help/discord-bot-3.png) -3. 授权机器人到聊天服务器 +3. 授权机器人到聊天服务器 -> 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` + > 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` -![bot](/img/docs/help/discord-bot-4.png) + ![bot](/img/docs/help/discord-bot-4.png) -> 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 + > 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 -4. 查看您的聊天服务器是否已经加入机器人成员 +4. 查看您的聊天服务器是否已经加入机器人成员 -![bot](/img/docs/help/discord-bot-5.png) + ![bot](/img/docs/help/discord-bot-5.png) -### 开启开发者模式,获取频道 Channel ID +### 开启开发者模式,获取频道 Channel ID -1. 个人设置 -> 高级设置 -> 开启开发者模式 +1. 个人设置 -> 高级设置 -> 开启开发者模式 -![bot](/img/docs/help/discord-bot-6.png) + ![bot](/img/docs/help/discord-bot-6.png) -2. 获取频道 Channel ID +2. 获取频道 Channel ID -> 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID +> 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID ![bot](/img/docs/help/discord-bot-7.png) - -### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot +### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot 1. **【告警通知】->【新增接收人】 ->【选择 Discord 机器人通知方式】->【设置机器人Token和ChannelId】-> 【确定】** -![email](/img/docs/help/discord-bot-8.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** + ![email](/img/docs/help/discord-bot-8.png) -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -![email](/img/docs/help/alert-notice-policy.png) + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + ![email](/img/docs/help/alert-notice-policy.png) -### Discord 机器人通知常见问题 +### Discord 机器人通知常见问题 -1. Discord 未收到机器人告警通知 +1. Discord 未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 +> 请排查在告警中心是否已有触发的告警信息 +> 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 > 请排查机器人是否被 Discord聊天服务器正确赋权 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_email.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_email.md index 7033f6036d6..7e4f59e7900 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_email.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_email.md @@ -5,34 +5,35 @@ sidebar_label: 告警邮件通知 keywords: [告警邮件通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过邮件通知到接收人。 +> 阈值触发后发送告警信息,通过邮件通知到接收人。 -### 操作步骤 +### 操作步骤 -1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** +1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** -![email](/img/docs/help/alert-notice-1.png) + ![email](/img/docs/help/alert-notice-1.png) -2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** -![email](/img/docs/help/alert-notice-2.png) +2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** + ![email](/img/docs/help/alert-notice-2.png) -![email](/img/docs/help/alert-notice-3.png) + ![email](/img/docs/help/alert-notice-3.png) -3. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 邮件通知常见问题 -### 邮件通知常见问题 +1. 自己内网部署的HertzBeat无法接收到邮件通知 -1. 自己内网部署的HertzBeat无法接收到邮件通知 -> HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 + > HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 -2. 云环境TanCloud无法接收到邮件通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确邮箱,是否已配置告警策略关联 -> 请查询邮箱的垃圾箱里是否把告警邮件拦截 +2. 云环境TanCloud无法接收到邮件通知 -其它问题可以通过交流群ISSUE反馈哦! + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确邮箱,是否已配置告警策略关联 + > 请查询邮箱的垃圾箱里是否把告警邮件拦截 + +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_enterprise_wechat_app.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_enterprise_wechat_app.md index 3f1c5a2b9c1..cc146c4f257 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_enterprise_wechat_app.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_enterprise_wechat_app.md @@ -5,28 +5,28 @@ sidebar_label: 企业微信应用告警通知 keywords: [开源告警系统, 开源监控告警系统, 企业微信应用告警通知] --- -> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. +> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. -### Operation steps +### Operation steps 1. **【企业微信后台管理】-> 【App管理】-> 【创建一个新的应用】-> 【设置应用信息】->【添加成功后复制应用的AgentId和Secret】** -![email](/img/docs/help/alert-wechat-1.jpg) + ![email](/img/docs/help/alert-wechat-1.jpg) 2. **【告警通知】->【新增接收人】 ->【选择企业微信应用通知方式】->【设置企业ID,企业应用id和应用的secret 】-> 【确定】** -![email](/img/docs/help/alert-wechat-2.jpg) + ![email](/img/docs/help/alert-wechat-2.jpg) -3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** -![email](/img/docs/help/alert-wechat-3.jpg) + ![email](/img/docs/help/alert-wechat-3.jpg) +### 企业微信应用通知常见问题 -### 企业微信应用通知常见问题 +1. 企业微信应用未收到告警通知. -1. 企业微信应用未收到告警通知. > 请检查用户是否具有应用程序权限. > 请检查企业应用程序回调地址设置是否正常. > 请检查服务器IP是否在企业应用程序白名单上. diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_feishu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_feishu.md index 448e70de223..bc6f3672df4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_feishu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_feishu.md @@ -5,30 +5,31 @@ sidebar_label: 告警飞书机器人通知 keywords: [告警飞书机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 +> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 -### 操作步骤 +### 操作步骤 1. **【飞书客户端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** -2. **【保存机器人的WebHook地址的KEY值】** +2. **【保存机器人的WebHook地址的KEY值】** -> 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > + > 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` 3. **【告警通知】->【新增接收人】 ->【选择飞书机器人通知方式】->【设置飞书机器人KEY】-> 【确定】** -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 飞书机器人通知常见问题 -### 飞书机器人通知常见问题 +1. 飞书群未收到机器人告警通知 -1. 飞书群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 +> 请排查在告警中心是否已有触发的告警信息 +> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_slack.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_slack.md index f2cc7a76673..f4ef1913fcd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_slack.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_slack.md @@ -5,34 +5,33 @@ sidebar_label: 告警 Slack Webhook 通知 keywords: [告警 Slack Webhook 通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 +> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 -### 在 Slack 开启 Webhook, 获取 Webhook URL +### 在 Slack 开启 Webhook, 获取 Webhook URL -参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) +参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) -### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook +### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook 1. **【告警通知】->【新增接收人】 ->【选择 Slack Webhook 通知方式】->【设置 Webhook URL】-> 【确定】** -![email](/img/docs/help/slack-bot-1.png) + ![email](/img/docs/help/slack-bot-1.png) -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-policy.png) + ![email](/img/docs/help/alert-notice-policy.png) +### Slack 机器人通知常见问题 -### Slack 机器人通知常见问题 +1. Slack 未收到机器人告警通知 -1. Slack 未收到机器人告警通知 +> 请排查在告警中心是否已有触发的告警信息 +> 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_smn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_smn.md index 73f434a8e8a..bcfe5d71a79 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_smn.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_smn.md @@ -11,33 +11,33 @@ keywords: [ 告警华为云SMN通知, 开源告警系统, 开源监控告警系 1. **按照[华为云SMN官方文档](https://support.huaweicloud.com/qs-smn/smn_json.html)开通SMN服务并配置SMN** -![alert-notice-10](/img/docs/help/alert-notice-10.png) + ![alert-notice-10](/img/docs/help/alert-notice-10.png) 2. **保存SMN的主题URN** -![alert-notice-11](/img/docs/help/alert-notice-11.png) + ![alert-notice-11](/img/docs/help/alert-notice-11.png) 3. **按照[华为云签名文档](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html)获取AK、SK和项目ID** -![alert-notice-12](/img/docs/help/alert-notice-12.png) + ![alert-notice-12](/img/docs/help/alert-notice-12.png) -![alert-notice-13](/img/docs/help/alert-notice-13.png) + ![alert-notice-13](/img/docs/help/alert-notice-13.png) 4. **【告警通知】->【新增接收人】 ->【选择华为云SMN通知方式】->【设置华为云SMN AK、SK等配置】-> 【确定】** -![alert-notice-14](/img/docs/help/alert-notice-14.png) + ![alert-notice-14](/img/docs/help/alert-notice-14.png) 5. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) ### 华为云SMN通知常见问题 1. 华为云SMN群未收到告警通知 -> 请排查在告警中心是否已有触发的告警信息 +> 请排查在告警中心是否已有触发的告警信息 > 请排查是否正确配置华为云SMN AK、SK等配置,是否已配置告警策略关联 其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_telegram.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_telegram.md index 6730aa19dcb..9760660bdff 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_telegram.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_telegram.md @@ -5,64 +5,63 @@ sidebar_label: 告警 Telegram 机器人通知 keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 +> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 ### 在 Telegram 创建机器人, 获取 Bot Token 和 UserId -1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. 获取接收人的 `User ID` - -**使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, -访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` - -```json -{ - "ok":true, - "result":[ - { - "update_id":632299191, - "message":{ - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date":1673858065, - "text":"111" +1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` + + ![telegram-bot](/img/docs/help/telegram-bot-1.png) + +2. 获取接收人的 `User ID` + + **使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, + 访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` + + ```json + { + "ok":true, + "result":[ + { + "update_id":632299191, + "message":{ + "from":{ + "id": "User ID" + }, + "chat":{ + }, + "date":1673858065, + "text":"111" + } } - } - ] -} -``` + ] + } + ``` -3. 记录保存我们获得的 `Token` 和 `User Id` +3. 记录保存我们获得的 `Token` 和 `User Id` -### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot +### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot 1. **【告警通知】->【新增接收人】 ->【选择 Telegram 机器人通知方式】->【设置机器人Token和UserId】-> 【确定】** -![email](/img/docs/help/telegram-bot-2.png) + ![email](/img/docs/help/telegram-bot-2.png) -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-policy.png) + ![email](/img/docs/help/alert-notice-policy.png) +### Telegram 机器人通知常见问题 -### Telegram 机器人通知常见问题 +1. Telegram 未收到机器人告警通知 -1. Telegram 未收到机器人告警通知 +> 请排查在告警中心是否已有触发的告警信息 +> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 +> UserId 应为消息接收对象的UserId -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 -> UserId 应为消息接收对象的UserId - -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold.md index 401a3d04d45..a41ae531e28 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold.md @@ -3,6 +3,7 @@ id: alert_threshold title: 阈值告警配置 sidebar_label: 阈值告警配置 --- + > 对监控指标配置告警阈值(警告告警,严重告警,紧急告警),系统根据阈值配置和采集指标数据计算触发告警。 ## 操作步骤 @@ -20,6 +21,7 @@ sidebar_label: 阈值告警配置 如上图所示,新增标签,这里我们设置标签为: linux:dev (开发环境使用Linux) #### 配置标签 + TODO 图片名称更新 ![threshold](/img/docs/help/alert-threshold-3.png) @@ -47,7 +49,6 @@ TODO 图片名称更新 - **恢复通知**:告警触发后是否发送恢复通知,默认不发送。 - **启用告警**:此告警阈值配置开启生效或关闭 - **阈值告警配置完毕,已经被成功触发的告警信息可以在【告警中心】看到。** **若需要将告警信息邮件,微信,钉钉飞书通知给相关人员,可以在【告警通知】配置。** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md index 5924d8965f8..37a9fb29d1b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md @@ -3,11 +3,11 @@ id: alert_threshold_expr title: 阈值触发表达式 sidebar_label: 阈值触发表达式 --- + > 在我们配置阈值告警时,需要配置阈值触发表达式,系统根据表达式和监控指标值计算触发是否告警,这里详细介绍下表达式使用。 #### 表达式支持的操作符 - | 运算符(可视化配置) | 运算符(表达式配置) | 支持类型 | 说明 | | | ------------------ | -------------------- | ----------------------- | ------------------------ | - | | 等于 | equals(str1,str2) | 字符型 | 判断字符串是否相等 | | @@ -27,22 +27,21 @@ sidebar_label: 阈值触发表达式 #### 表达式函数库列表 - -| 支持函数库 | 说明 | -| -------------------------------------------- | ------------------------------------------------------------------ | -| condition ? trueExpression : falseExpression | 三元运算符 | -| toDouble(str) | 将字符串转换为Double类型 | -| toBoolean(str) | 将字符串转换为Boolean类型 | -| toInteger(str) | 将字符串转换为Integer类型 | -| array[n] | 取数组第n个元素 | -| * | 算法乘 | -| / | 算法除 | -| % | 求余 | -| ( 和 ) | 括号用于控制运算的优先级,确保在逻辑或数学表达式中某些部分先被计算 | -| + | 加号用于表示数学中的加法运算、字符串拼接 | -| - | 减号用于表示数学中的减法运算 | -| && | 逻辑AND操作符 | -| \|\| | 逻辑OR操作符 | +| 支持函数库 | 说明 | +|----------------------------------------------|-----------------------------------| +| condition ? trueExpression : falseExpression | 三元运算符 | +| toDouble(str) | 将字符串转换为Double类型 | +| toBoolean(str) | 将字符串转换为Boolean类型 | +| toInteger(str) | 将字符串转换为Integer类型 | +| array[n] | 取数组第n个元素 | +| * | 算法乘 | +| / | 算法除 | +| % | 求余 | +| ( 和 ) | 括号用于控制运算的优先级,确保在逻辑或数学表达式中某些部分先被计算 | +| + | 加号用于表示数学中的加法运算、字符串拼接 | +| - | 减号用于表示数学中的减法运算 | +| && | 逻辑AND操作符 | +| \|\| | 逻辑OR操作符 | #### 支持的环境变量 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_webhook.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_webhook.md index 61ed1dc99b5..e07a3e61cce 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_webhook.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_webhook.md @@ -5,23 +5,24 @@ sidebar_label: 告警 Webhook 回调通知 keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 +> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 -## 操作步骤 +## 操作步骤 -1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** +1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** -![email](/img/docs/help/alert-notice-5.png) + ![email](/img/docs/help/alert-notice-5.png) -2. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) -### WebHook回调POST请求体BODY内容 +### WebHook回调POST请求体BODY内容 + +内容格式:JSON -内容格式:JSON ```json { "alarmId": 76456, @@ -43,22 +44,23 @@ keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警 } ``` -| | | -|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| tags | example: {key1:value1} | +| | | +|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | +| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | +| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | +| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | +| content | string title: The actual content of the alarm notification 告警通知实际内容 | +| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | +| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | +| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | +| tags | example: {key1:value1} | + +### webhook通知常见问题 -### webhook通知常见问题 +1. WebHook回调未生效 -1. WebHook回调未生效 -> 请查看告警中心是否已经产生此条告警信息 +> 请查看告警中心是否已经产生此条告警信息 > 请排查配置的WebHook回调地址是否正确 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_wework.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_wework.md index ce73c131d00..2fa9ae6ea0e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_wework.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_wework.md @@ -5,34 +5,35 @@ sidebar_label: 告警企业微信通知 keywords: [告警企业微信通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 +> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 -### 操作步骤 +### 操作步骤 -1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** +1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** -![email](/img/docs/help/alert-notice-6.jpg) + ![email](/img/docs/help/alert-notice-6.jpg) -2. **【保存机器人的WebHook地址的KEY值】** +2. **【保存机器人的WebHook地址的KEY值】** -> 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > + > 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** +3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** -![email](/img/docs/help/alert-notice-7.png) + ![email](/img/docs/help/alert-notice-7.png) -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 企业微信机器人通知常见问题 -### 企业微信机器人通知常见问题 +1. 企业微信群未收到机器人告警通知 -1. 企业微信群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 +> 请排查在告警中心是否已有触发的告警信息 +> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/almalinux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/almalinux.md index 64f15c3777d..abf262d52bd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/almalinux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/almalinux.md @@ -4,114 +4,104 @@ title: 监控:AlmaLinux操作系统监控 sidebar_label: AlmaLinux操作系统 keywords: [开源监控系统, 开源操作系统监控, AlmaLinux操作系统监控] --- + > 对AlmaLinux操作系统的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 密钥 | 连接服务器所需密钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | --------------------------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------------ | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:网卡信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:文件系统 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | -------------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | #### 指标集合:Top10 CPU进程 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| cpu_usage | % | CPU占用率 | -| mem_usage | % | 内存占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| cpu_usage | % | CPU占用率 | +| mem_usage | % | 内存占用率 | +| command | 无 | 执行命令 | #### 指标集合:Top10 内存进程 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| mem_usage | % | 内存占用率 | -| cpu_usage | % | CPU占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| mem_usage | % | 内存占用率 | +| cpu_usage | % | CPU占用率 | +| command | 无 | 执行命令 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/api.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/api.md index 6a39ef5977b..c1df34f880a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/api.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/api.md @@ -5,34 +5,32 @@ sidebar_label: HTTP API keywords: [开源监控系统, 开源网站监控, HTTP API监控] --- -> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 +> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | -| 密码 | 接口Basic认证或Digest认证时使用的密码 | -| 请求Headers | HTTP 请求头 | -| 查询Params | HTTP查询参数,支持[时间表达式](time_expression) | -| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | -| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | +| 密码 | 接口Basic认证或Digest认证时使用的密码 | +| 请求Headers | HTTP 请求头 | +| 查询Params | HTTP查询参数,支持[时间表达式](time_expression) | +| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | +| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/bulletin.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/bulletin.md new file mode 100644 index 00000000000..d6e8dd2613f --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/bulletin.md @@ -0,0 +1,28 @@ +--- +id: bulletin +title: 自定义看板 +sidebar_label: 自定义看板 +keywords: [看板, 自定义] +--- + +> 自定义监控看板,以表格形式展示某种监控的自选指标。 + +### 新增看板项 + +1. 点击新增看板项, 输入`看板名称`, 下拉选择`监控类型`, 再选择关联的`监控任务名称`, 最后在穿梭框中选择需要展示的`监控指标`。 + +2. 点击`确定`按钮, 即可完成自定义看板的创建。 + + ![new-bulletin](/img/docs/help/bulletin-1.png) + +### 查看多个看板 + +1. 点击标签页中的看板名称, 即可查看该看板的详细信息。 + +### 删除看板项 + +1. 点击`删除看板项`按钮, 即可删除当前看板项。 + +2. 点击`批量删除看板项`按钮, 即可选择批量删除选中的看板项。 + + ![bulletin](/img/docs/help/bulletin-2.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/centos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/centos.md index 03c514bc7b8..02a93f751c5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/centos.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/centos.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, CentOS操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/clickhouse.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/clickhouse.md index 1c5adeeccc2..1f0e1f0e6c2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/clickhouse.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/clickhouse.md @@ -4,96 +4,92 @@ title: 监控:Clickhouse数据库监控 sidebar_label: Clickhouse数据库 keywords: [开源监控系统, 开源数据库监控, Clickhouse数据库监控] --- + > 对Clickhouse数据库的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为8123。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为8123。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:ping 可用性 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------ | -| responseTime | 无 | 响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | 无 | 响应时间 | #### 指标集合:system.metrics表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | -------------------------------------- | -| Query | 无 | 正在执行的查询的数量 | -| Merge | 无 | 正在执行的后台合并的数量 | -| Move | 无 | 正在执行的后台移动的数量 | -| PartMutation | 无 | 表变更的次数 | -| ReplicatedFetch | 无 | 从副本收集的数据块数量 | -| ReplicatedSend | 无 | 发送到副本的数量块数量 | -| ReplicatedChecks | 无 | 检查一致性的数据块数量 | -| QueryPreempted | 无 | 停止或等待的查询数量 | -| TCPConnection | 无 | TCP连接数量 | -| HTTPConnection | 无 | HTTP连接数量 | -| OpenFileForRead | 无 | 打开的可读文件的数量 | -| OpenFileForWrite | 无 | 打开的可写文件的数量 | -| QueryThread | 无 | 查询处理的线程数量 | -| ReadonlyReplica | 无 | 处于只读状态的 Replicated table 的数量 | -| EphemeralNode | 无 | ZooKeeper 中保存的临时节点数 | -| ZooKeeperWatch | 无 | ZooKeeper事件订阅数 | -| StorageBufferBytes | Bytes | Buffer tables 中的字节数 | -| VersionInteger | 无 | ClickHouse 版本号 | -| RWLockWaitingReaders | 无 | 等待读表的读写锁的线程数量 | -| RWLockWaitingWriters | 无 | 等待写表的读写锁的线程数量 | -| RWLockActiveReaders | 无 | 在一个表的读写锁中持有读锁的线程数 | -| RWLockActiveWriters | 无 | 在一个表的读写锁中持有写锁的线程数 | -| GlobalThread | 无 | 全局线程池中的线程数 | -| GlobalThreadActive | 无 | 全局线程池中活跃的线程数 | -| LocalThread | 无 | 本地线程池中的线程数 | -| LocalThreadActive | 无 | 本地线程池中活跃的线程数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|-------|------------------------------| +| Query | 无 | 正在执行的查询的数量 | +| Merge | 无 | 正在执行的后台合并的数量 | +| Move | 无 | 正在执行的后台移动的数量 | +| PartMutation | 无 | 表变更的次数 | +| ReplicatedFetch | 无 | 从副本收集的数据块数量 | +| ReplicatedSend | 无 | 发送到副本的数量块数量 | +| ReplicatedChecks | 无 | 检查一致性的数据块数量 | +| QueryPreempted | 无 | 停止或等待的查询数量 | +| TCPConnection | 无 | TCP连接数量 | +| HTTPConnection | 无 | HTTP连接数量 | +| OpenFileForRead | 无 | 打开的可读文件的数量 | +| OpenFileForWrite | 无 | 打开的可写文件的数量 | +| QueryThread | 无 | 查询处理的线程数量 | +| ReadonlyReplica | 无 | 处于只读状态的 Replicated table 的数量 | +| EphemeralNode | 无 | ZooKeeper 中保存的临时节点数 | +| ZooKeeperWatch | 无 | ZooKeeper事件订阅数 | +| StorageBufferBytes | Bytes | Buffer tables 中的字节数 | +| VersionInteger | 无 | ClickHouse 版本号 | +| RWLockWaitingReaders | 无 | 等待读表的读写锁的线程数量 | +| RWLockWaitingWriters | 无 | 等待写表的读写锁的线程数量 | +| RWLockActiveReaders | 无 | 在一个表的读写锁中持有读锁的线程数 | +| RWLockActiveWriters | 无 | 在一个表的读写锁中持有写锁的线程数 | +| GlobalThread | 无 | 全局线程池中的线程数 | +| GlobalThreadActive | 无 | 全局线程池中活跃的线程数 | +| LocalThread | 无 | 本地线程池中的线程数 | +| LocalThreadActive | 无 | 本地线程池中活跃的线程数 | #### 指标集合:system.events表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------------------------- |-------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------------|-------|------------------------------------------------------------------------------------------------| | Query | 无 | 要解释和可能执行的查询数量。 不包括由于 AST 大小限制、配额限制或同时运行的查询数量限制而无法解析或被拒绝的查询。 可能包括 ClickHouse 本身发起的内部查询。 不计算子查询。 | -| SelectQuery | 无 | 可能执行的 Select 查询数 | -| InsertQuery | 无 | 可能执行的 Insert 查询数 | -| InsertedRows | 无 | 被插入到所有表中的行数 | -| InsertedBytes | Bytes | 被插入到所有表中的字节数 | -| FailedQuery | 无 | 执行失败的查询数量 | -| FailedSelectQuery | 无 | 执行失败的 Select 查询数量 | -| FileOpen | 无 | 文件打开数 | -| MergeTreeDataWriterRows | 无 | 写入 MergeTree 表的数据行数 | -| MergeTreeDataWriterCompressedBytes | Bytes | 压缩写入 MergeTree 表的数据字节数 | +| SelectQuery | 无 | 可能执行的 Select 查询数 | +| InsertQuery | 无 | 可能执行的 Insert 查询数 | +| InsertedRows | 无 | 被插入到所有表中的行数 | +| InsertedBytes | Bytes | 被插入到所有表中的字节数 | +| FailedQuery | 无 | 执行失败的查询数量 | +| FailedSelectQuery | 无 | 执行失败的 Select 查询数量 | +| FileOpen | 无 | 文件打开数 | +| MergeTreeDataWriterRows | 无 | 写入 MergeTree 表的数据行数 | +| MergeTreeDataWriterCompressedBytes | Bytes | 压缩写入 MergeTree 表的数据字节数 | #### 指标集合:system.asynchronous_metrics表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------------------------------- | ------ | ----------------------------------------- | -| AsynchronousMetricsCalculationTimeSpent | 无 | 异步指标计算花费的时间(秒) | -| jemalloc.arenas.all.muzzy_purged | 无 | 被清除的模糊(muzzy)页的数量 | -| jemalloc.arenas.all.dirty_purged | 无 | 被清除的脏 (dirty)页的数量 | -| BlockReadBytes_ram1 | 无 | ram1 块读取的字节数 | -| jemalloc.background_thread.run_intervals | 无 | jemalloc 后台线程的运行间隔数 | -| BlockQueueTime_nbd13 | 无 | nbd13 块队列等待时间 | -| jemalloc.background_thread.num_threads | 无 | jemalloc 后台线程的数量 | -| jemalloc.resident | 无 | jemalloc 分配器占用的物理内存大小(字节) | -| InterserverThreads | 无 | Interserver 线程数 | -| BlockWriteMerges_nbd7 | 无 | nbd7 块写合并数量 | -| MarkCacheBytes | 无 | StorageMergeTree 的 marks 的缓存大小 | -| MarkCacheFiles | 无 | StorageMergeTree 的 marks 的缓存文件数量 | -| MaxPartCountForPartition | 无 | partitions 中最大的活跃数据块的数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------------------|------|----------------------------------| +| AsynchronousMetricsCalculationTimeSpent | 无 | 异步指标计算花费的时间(秒) | +| jemalloc.arenas.all.muzzy_purged | 无 | 被清除的模糊(muzzy)页的数量 | +| jemalloc.arenas.all.dirty_purged | 无 | 被清除的脏 (dirty)页的数量 | +| BlockReadBytes_ram1 | 无 | ram1 块读取的字节数 | +| jemalloc.background_thread.run_intervals | 无 | jemalloc 后台线程的运行间隔数 | +| BlockQueueTime_nbd13 | 无 | nbd13 块队列等待时间 | +| jemalloc.background_thread.num_threads | 无 | jemalloc 后台线程的数量 | +| jemalloc.resident | 无 | jemalloc 分配器占用的物理内存大小(字节) | +| InterserverThreads | 无 | Interserver 线程数 | +| BlockWriteMerges_nbd7 | 无 | nbd7 块写合并数量 | +| MarkCacheBytes | 无 | StorageMergeTree 的 marks 的缓存大小 | +| MarkCacheFiles | 无 | StorageMergeTree 的 marks 的缓存文件数量 | +| MaxPartCountForPartition | 无 | partitions 中最大的活跃数据块的数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/debian.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/debian.md index dcda89ee2b6..983787f3b1e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/debian.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/debian.md @@ -4,71 +4,67 @@ title: 监控:debian 系统监控 sidebar_label: Debian keywords: [开源监控系统, 操作系统监控, Debian监控] --- + > 对Debian系统的通用性能指标进行采集监控 ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Debian系统的ssh端口,默认: 22 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | 服务器用户名 | -| 密码 | 服务器密码 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 密钥 | 连接服务器所需密钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Debian系统的ssh端口,默认: 22 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | 服务器用户名 | +| 密码 | 服务器密码 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Info | 无 | 型号 | -| Cores | 无 | 核数 | -| Interrupt | 无 | 中断数 | -| Load | 无 | 负载 | -| Context Switch | 无 | 上下文切换 | -| Usage | % | 使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Info | 无 | 型号 | +| Cores | 无 | 核数 | +| Interrupt | 无 | 中断数 | +| Load | 无 | 负载 | +| Context Switch | 无 | 上下文切换 | +| Usage | % | 使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------- | -------- | -------------- | -| Total Memory | Mb | 总内存容量 | -| User Program Memory | Mb | 用户程序内存量 | -| Free Memory | Mb | 空闲内存容量 | -| Buff Cache Memory | Mb | 缓存占用内存 | -| Available Memory | Mb | 剩余可用内存 | -| Memory Usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|---------| +| Total Memory | Mb | 总内存容量 | +| User Program Memory | Mb | 用户程序内存量 | +| Free Memory | Mb | 空闲内存容量 | +| Buff Cache Memory | Mb | 缓存占用内存 | +| Available Memory | Mb | 剩余可用内存 | +| Memory Usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------ | -| Disk Num | 无 | 磁盘总数 | -| Partition Num | 无 | 分区总数 | -| Block Write | 无 | 写磁盘块数 | -| Block Read | 无 | 读磁盘块数 | -| Write Rate | iops | 磁盘写速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|--------| +| Disk Num | 无 | 磁盘总数 | +| Partition Num | 无 | 分区总数 | +| Block Write | 无 | 写磁盘块数 | +| Block Read | 无 | 读磁盘块数 | +| Write Rate | iops | 磁盘写速率 | #### 指标集合:网卡信息 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dm.md index cdd9f6f6ee5..12cb13b8422 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dm.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dm.md @@ -9,41 +9,40 @@ keywords: [开源监控系统, 开源数据库监控, 达梦数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5236。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5236。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------------ | -| PORT_NUM | 无 | 数据库暴露服务端口 | -| CTL_PATH | 无 | 控制文件路径 | -| MAX_SESSIONS | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|-----------| +| PORT_NUM | 无 | 数据库暴露服务端口 | +| CTL_PATH | 无 | 控制文件路径 | +| MAX_SESSIONS | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| status$ | 无 | DM数据库的开闭状态 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|------------| +| status$ | 无 | DM数据库的开闭状态 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | ---------------------------------------------- | -| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | -| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | -| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------------------------------| +| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | +| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | +| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dns.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dns.md index 67ea72c177e..e012e347c20 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dns.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dns.md @@ -5,7 +5,7 @@ sidebar_label: DNS服务器 keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] --- -# 监控:DNS服务器 +## 监控:DNS服务器 > 收集和监控DNS的常规性能指标。 @@ -13,24 +13,24 @@ keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | -|-----------|------------------------------------------------| -| DNS服务器IP | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:https://,http://)。 | -| 监控名称 | 标识此监控的名称,名称需要是唯一的。 | -| 端口 | DNS服务对外提供的端口,默认为53。 | -| 域名解析的地址 | 域名解析的地址。 | -| 连接超时时间 | 设置连接DNS服务器的超时时间,单位ms毫秒,默认6000毫秒。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------------------| +| DNS服务器IP | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:https://,http://)。 | +| 监控名称 | 标识此监控的名称,名称需要是唯一的。 | +| 端口 | DNS服务对外提供的端口,默认为53。 | +| 域名解析的地址 | 域名解析的地址。 | +| 连接超时时间 | 设置连接DNS服务器的超时时间,单位ms毫秒,默认6000毫秒。 | | 查询类别 | DNS查询的类别. 可选的值包括 `IN`, `CHAOS`, `HESIOD`, `NONE`, 和 `ANY`。默认值:IN | -| 是否使用tcp协议 | 设置DNS查询是否使用tcp协议。 | -| 采集间隔 | 监控周期性数据采集的时间间隔,单位:秒,最小可设置为30秒。 | -| 绑定标签 | 用于对监控资源进行分类管理。 | -| 描述备注 | 用于更多关于标识和描述此监控的信息,用户可以在此处添加备注信息。 | +| 是否使用tcp协议 | 设置DNS查询是否使用tcp协议。 | +| 采集间隔 | 监控周期性数据采集的时间间隔,单位:秒,最小可设置为30秒。 | +| 绑定标签 | 用于对监控资源进行分类管理。 | +| 描述备注 | 用于更多关于标识和描述此监控的信息,用户可以在此处添加备注信息。 | ### 采集指标 #### 指标集:Header -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------|------|-----------------| | 响应时间 | 毫秒 | DNS服务器响应请求所需的时间 | | 操作码 | 无 | 当前消息的类型 | @@ -43,27 +43,30 @@ keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] ### 指标集: Question -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|-----------------------------------| | Section | 无 | 请求记录信息,其中包含查询的域名,资源类型,资源记录类,附加信息。 | ### 指标集: Answer -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|----------------------------------------| | Section0 | 无 | 请求响应信息,其中包含查询的域名,TTL,资源记录类,资源类型,查询的结果。 | + > Answer 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 ### 指标集: Authority -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|------------------------------------------------------------------| | Section0 | 无 | 域名的SOA(Start of Authority,权威区域起始)记录,其中包含查询的域名,TTL,资源类型,资源记录类等信息。 | + > Authority 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 ### 指标集: Additional -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|-------------| | Section0 | 无 | DNS查询的附加信息。 | + > Additional 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/docker.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/docker.md index 221776b2426..0b81365780b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/docker.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/docker.md @@ -7,7 +7,6 @@ keywords: [开源监控系统, 开源容器监控, Docker容器监控] > 对Docker容器的通用性能指标进行采集监控。 - ## 监控前操作 如果想要监控 `Docker` 中的容器信息,则需要按照一下步骤打开端口,让采集请求获取到对应的信息。 @@ -44,63 +43,59 @@ firewall-cmd --zone=public --add-port=2375/tcp --permanent firewall-cmd --reload ``` - - - - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为2375。 | -| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 器名称 | 一般是监控所有运行中的容器信息。 | -| 用户名 | 连接用户名,可选 | -| 密码 | 连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为2375。 | +| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 器名称 | 一般是监控所有运行中的容器信息。 | +| 用户名 | 连接用户名,可选 | +| 密码 | 连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:system -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | -------------------------------------- | -| Name | 无 | 服务器名称 | -| version | 无 | docker本版号 | -| os | 无 | 服务器版本 例如:linux x86_64 | -| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | -| containers | 无 | 容器总数(在运行+未运行) | -| containers_running | 无 | 运行中的容器数目 | -| containers_paused | 无 | 暂停中的容器数目 | -| images | 无 | 容器景象的总数目。 | -| ncpu | 无 | NCPU | -| mem_total | MB | 占用的内存总大小 | -| system_time | 无 | 系统时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------------------------------| +| Name | 无 | 服务器名称 | +| version | 无 | docker本版号 | +| os | 无 | 服务器版本 例如:linux x86_64 | +| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | +| containers | 无 | 容器总数(在运行+未运行) | +| containers_running | 无 | 运行中的容器数目 | +| containers_paused | 无 | 暂停中的容器数目 | +| images | 无 | 容器景象的总数目。 | +| ncpu | 无 | NCPU | +| mem_total | MB | 占用的内存总大小 | +| system_time | 无 | 系统时间 | #### 指标集合:containers -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| id | 无 | Docker中容器的ID | -| name | 无 | Docker容器中的容器名称 | -| image | 无 | Docker容器使用的镜像 | -| command | 无 | Docker中的默认启动命令 | -| state | 无 | Docker中容器的运行状态 | -| status | 无 | Docker容器中的更新时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| id | 无 | Docker中容器的ID | +| name | 无 | Docker容器中的容器名称 | +| image | 无 | Docker容器使用的镜像 | +| command | 无 | Docker中的默认启动命令 | +| state | 无 | Docker中容器的运行状态 | +| status | 无 | Docker容器中的更新时间 | #### 指标集合:stats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ---------------------------- | -| name | 无 | Docker容器中的名字 | -| available_memory | MB | Docker容器可以利用的内存大小 | -| used_memory | MB | Docker容器已经使用的内存大小 | -| memory_usage | 无 | Docker容器的内存使用率 | -| cpu_delta | 无 | Docker容器已经使用的CPU数量 | -| number_cpus | 无 | Docker容器可以使用的CPU数量 | -| cpu_usage | 无 | Docker容器CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------|------|--------------------| +| name | 无 | Docker容器中的名字 | +| available_memory | MB | Docker容器可以利用的内存大小 | +| used_memory | MB | Docker容器已经使用的内存大小 | +| memory_usage | 无 | Docker容器的内存使用率 | +| cpu_delta | 无 | Docker容器已经使用的CPU数量 | +| number_cpus | 无 | Docker容器可以使用的CPU数量 | +| cpu_usage | 无 | Docker容器CPU使用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/doris_fe.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/doris_fe.md index 0e4803826be..78afde77138 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/doris_fe.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/doris_fe.md @@ -15,118 +15,117 @@ keywords: [开源监控系统, 开源数据库监控, DORIS数据库FE监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |-----------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8030 , 取值自 `http_port` 配置项的值 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8030 , 取值自 `http_port` 配置项的值 | | 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认6000毫秒 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 绑定标签 | 您可以使用标签进行监控资源的分类管理, 例如给资源分别绑定生产环境、测试环境的标签。 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 绑定标签 | 您可以使用标签进行监控资源的分类管理, 例如给资源分别绑定生产环境、测试环境的标签。 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:doris_fe_connection_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前FE的MySQL端口连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| value | 无 | 当前FE的MySQL端口连接数 | #### 指标集合:doris_fe_edit_log_clean 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 清理历史元数据日志成功的次数 | -| failed | 无 | 清理历史元数据日志失败的次数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| success | 无 | 清理历史元数据日志成功的次数 | +| failed | 无 | 清理历史元数据日志失败的次数 | #### 指标集合:doris_fe_edit_log -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------- | -------- | ------------------------ | -| write | 无 | 元数据日志写入次数的计数 | -| read | 无 | 元数据日志读取次数的计数 | -| current | 无 | 元数据日志当前数量 | -| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | -| current_bytes | 字节 | 元数据日志当前值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|--------------| +| write | 无 | 元数据日志写入次数的计数 | +| read | 无 | 元数据日志读取次数的计数 | +| current | 无 | 元数据日志当前数量 | +| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | +| current_bytes | 字节 | 元数据日志当前值 | #### 指标集合:doris_fe_image_clean 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| success | 无 | 清理历史元数据镜像文件成功的次数 | -| failed | 无 | 清理历史元数据镜像文件失败的次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|------------------| +| success | 无 | 清理历史元数据镜像文件成功的次数 | +| failed | 无 | 清理历史元数据镜像文件失败的次数 | #### 指标集合:doris_fe_image_write 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 生成元数据镜像文件成功的次数 | -| failed | 无 | 生成元数据镜像文件失败的次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| success | 无 | 生成元数据镜像文件成功的次数 | +| failed | 无 | 生成元数据镜像文件失败的次数 | #### 指标集合:doris_fe_query_err -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------- | -| value | 无 | 错误查询的累积值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|----------| +| value | 无 | 错误查询的累积值 | #### 指标集合:doris_fe_max_journal_id -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------------------------------------------------------------------------------------------------| +| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | #### 指标集合:doris_fe_max_tablet_compaction_score -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------------------------------------------------| +| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | #### 指标集合:doris_fe_qps -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------ | -| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------| +| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | #### 指标集合:doris_fe_query_err_rate -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------- | -| value | 无 | 每秒错误查询数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------| +| value | 无 | 每秒错误查询数 | #### 指标集合:doris_fe_report_queue_size -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------------------------------| +| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | #### 指标集合:doris_fe_rps -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------------------------- | -| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------| +| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | #### 指标集合:doris_fe_scheduled_tablet_num -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------------------------------------------------------| +| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | #### 指标集合:doris_fe_txn_status 可以观测各个状态下导入事务的数量,来判断是否有堆积 -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------- | -| unknown | 无 | 未知 | -| prepare | 无 | 准备中 | -| committed | 无 | 已提交 | -| visible | 无 | 可见 | -| aborted | 无 | 已中止/已撤销 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|---------| +| unknown | 无 | 未知 | +| prepare | 无 | 准备中 | +| committed | 无 | 已提交 | +| visible | 无 | 可见 | +| aborted | 无 | 已中止/已撤销 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dynamic_tp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dynamic_tp.md index e3e143c17ed..ba5aecde81b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dynamic_tp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/dynamic_tp.md @@ -7,96 +7,95 @@ keywords: [开源监控系统, 开源中间件监控, DynamicTp线程池监控] > 对DynamicTp actuator 暴露的线程池性能指标进行采集监控。 -### 前提 - -1. 集成使用 `DynamicTp` - -`DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 - -集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) - -2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4 GB", - "totalMemory": "444 MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81 GB" - } -] -``` - -3. 在HertzBeat中间件监控下添加DynamicTp监控即可 - +### 前提 + +1. 集成使用 `DynamicTp` + + `DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 + + 集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) + +2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 + + ```yaml + management: + endpoints: + web: + exposure: + include: '*' + ``` + + 测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: + + ```json + [ + { + "poolName": "commonExecutor", + "corePoolSize": 1, + "maximumPoolSize": 1, + "queueType": "LinkedBlockingQueue", + "queueCapacity": 2147483647, + "queueSize": 0, + "fair": false, + "queueRemainingCapacity": 2147483647, + "activeCount": 0, + "taskCount": 0, + "completedTaskCount": 0, + "largestPoolSize": 0, + "poolSize": 0, + "waitTaskCount": 0, + "rejectCount": 0, + "rejectHandlerName": null, + "dynamic": false, + "runTimeoutCount": 0, + "queueTimeoutCount": 0 + }, + { + "maxMemory": "4 GB", + "totalMemory": "444 MB", + "freeMemory": "250.34 MB", + "usableMemory": "3.81 GB" + } + ] + ``` + +3. 在HertzBeat中间件监控下添加DynamicTp监控即可 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 应用服务对外提供的端口,默认为8080。 | | 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | - | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| Base Path | 暴露接口路径前缀,默认 /actuator | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:thread_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------------------| -| pool_name | 无 | 线程池名称 | -| core_pool_size | 无 | 核心线程数 | -| maximum_pool_size | 无 | 最大线程数 | -| queue_type | 无 | 任务队列类型 | -| queue_capacity | MB | 任务队列容量 | -| queue_size | 无 | 任务队列当前占用大小 | -| fair | 无 | 队列模式,SynchronousQueue会用到 | -| queue_remaining_capacity | MB | 任务队列剩余大小 | -| active_count | 无 | 活跃线程数 | -| task_count | 无 | 任务总数 | -| completed_task_count | 无 | 已完成任务数 | -| largest_pool_size | 无 | 历史最大线程数 | -| pool_size | 无 | 当前线程数 | -| wait_task_count | 无 | 等待执行任务数 | -| reject_count | 无 | 拒绝任务数 | -| reject_handler_name | 无 | 拒绝策略类型 | -| dynamic | 无 | 是否动态线程池 | -| run_timeout_count | 无 | 运行超时任务数 | -| queue_timeout_count | 无 | 等待超时任务数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|--------------------------| +| pool_name | 无 | 线程池名称 | +| core_pool_size | 无 | 核心线程数 | +| maximum_pool_size | 无 | 最大线程数 | +| queue_type | 无 | 任务队列类型 | +| queue_capacity | MB | 任务队列容量 | +| queue_size | 无 | 任务队列当前占用大小 | +| fair | 无 | 队列模式,SynchronousQueue会用到 | +| queue_remaining_capacity | MB | 任务队列剩余大小 | +| active_count | 无 | 活跃线程数 | +| task_count | 无 | 任务总数 | +| completed_task_count | 无 | 已完成任务数 | +| largest_pool_size | 无 | 历史最大线程数 | +| pool_size | 无 | 当前线程数 | +| wait_task_count | 无 | 等待执行任务数 | +| reject_count | 无 | 拒绝任务数 | +| reject_handler_name | 无 | 拒绝策略类型 | +| dynamic | 无 | 是否动态线程池 | +| run_timeout_count | 无 | 运行超时任务数 | +| queue_timeout_count | 无 | 等待超时任务数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/elasticsearch.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/elasticsearch.md index e64d956bc77..0e872084c2e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/elasticsearch.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/elasticsearch.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:health -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------------|------|----------| | cluster_name | 无 | 集群名称 | | status | 无 | 集群状态 | @@ -41,7 +41,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|--------| | total | 无 | 节点数 | | successful | 无 | 在线节点数 | @@ -49,7 +49,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:nodes_detail -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------|------|---------| | node_name | 无 | 节点名称 | | ip | 无 | IP地址 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/euleros.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/euleros.md index 258f7bb36dd..4c7324a3f5d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/euleros.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/euleros.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink.md index ef260f4dc2c..79dfd76fd7e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink.md @@ -9,7 +9,7 @@ keywords: [开源监控系统, 开源 Flink 监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -26,13 +26,10 @@ keywords: [开源监控系统, 开源 Flink 监控] #### 指标集合:overview -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|----------| | slots_total | 个 | 插槽总数 | | slots_used | 个 | 已用插槽数 | | task_total | 个 | 任务总数 | | jobs_running | 个 | 正在运行的任务数 | | jobs_failed | 个 | 已经失败的任务数 | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink_on_yarn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink_on_yarn.md index da2ebd82cfb..36e2508a52b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink_on_yarn.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/flink_on_yarn.md @@ -10,139 +10,134 @@ keywords: [开源监控系统, 开源 Flink On Yarn 监控] ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Yarn端口 | Yarn的端口,对应配置项:`yarn.resourcemanager.webapp.address`中的端口 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 启动SSL | 是否启用SSL | -| 用户名 | 连接用户名 | -| 密码 | 连接密码 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理。 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Yarn端口 | Yarn的端口,对应配置项:`yarn.resourcemanager.webapp.address`中的端口 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 启动SSL | 是否启用SSL | +| 用户名 | 连接用户名 | +| 密码 | 连接密码 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理。 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | ### 采集指标 #### 指标集合:JobManager Metrics - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------------------------------------------- | -------- | ------------------ | -| Status.JVM.Memory.NonHeap.Committed | 字节 | 非堆内存的提交量 | -| Status.JVM.Memory.Mapped.TotalCapacity | 字节 | 映射内存的总容量 | -| Status.JVM.Memory.NonHeap.Used | 字节 | 非堆内存的使用量 | -| Status.JVM.Memory.Metaspace.Max | 字节 | 元空间的最大容量 | -| Status.JVM.GarbageCollector.G1_Old_Generation.Count | 字节 | 老年代垃圾收集次数 | -| Status.JVM.Memory.Direct.MemoryUsed | 字节 | 直接内存的使用量 | -| Status.JVM.Memory.Mapped.MemoryUsed | 字节 | 映射内存的使用量 | -| Status.JVM.GarbageCollector.G1_Young_Generation.Count | 字节 | 年轻代垃圾收集次数 | -| Status.JVM.Memory.Direct.TotalCapacity | 字节 | 直接内存的总容量 | -| Status.JVM.GarbageCollector.G1_Old_Generation.Time | 字节 | 老年代垃圾收集时间 | -| Status.JVM.Memory.Heap.Committed | 字节 | 堆内存的提交量 | -| Status.JVM.Memory.Mapped.Count | - | 映射内存的数量 | -| Status.JVM.Memory.Metaspace.Used | 字节 | 元空间的使用量 | -| Status.JVM.Memory.Direct.Count | - | 直接内存的数量 | -| Status.JVM.Memory.Heap.Used | 字节 | 堆内存的使用量 | -| Status.JVM.Memory.Heap.Max | 字节 | 堆内存的最大容量 | -| Status.JVM.GarbageCollector.G1_Young_Generation.Time | 字节 | 年轻代垃圾收集时间 | -| Status.JVM.Memory.NonHeap.Max | 字节 | 非堆内存的最大容量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------------------------------------|------|-----------| +| Status.JVM.Memory.NonHeap.Committed | 字节 | 非堆内存的提交量 | +| Status.JVM.Memory.Mapped.TotalCapacity | 字节 | 映射内存的总容量 | +| Status.JVM.Memory.NonHeap.Used | 字节 | 非堆内存的使用量 | +| Status.JVM.Memory.Metaspace.Max | 字节 | 元空间的最大容量 | +| Status.JVM.GarbageCollector.G1_Old_Generation.Count | 字节 | 老年代垃圾收集次数 | +| Status.JVM.Memory.Direct.MemoryUsed | 字节 | 直接内存的使用量 | +| Status.JVM.Memory.Mapped.MemoryUsed | 字节 | 映射内存的使用量 | +| Status.JVM.GarbageCollector.G1_Young_Generation.Count | 字节 | 年轻代垃圾收集次数 | +| Status.JVM.Memory.Direct.TotalCapacity | 字节 | 直接内存的总容量 | +| Status.JVM.GarbageCollector.G1_Old_Generation.Time | 字节 | 老年代垃圾收集时间 | +| Status.JVM.Memory.Heap.Committed | 字节 | 堆内存的提交量 | +| Status.JVM.Memory.Mapped.Count | - | 映射内存的数量 | +| Status.JVM.Memory.Metaspace.Used | 字节 | 元空间的使用量 | +| Status.JVM.Memory.Direct.Count | - | 直接内存的数量 | +| Status.JVM.Memory.Heap.Used | 字节 | 堆内存的使用量 | +| Status.JVM.Memory.Heap.Max | 字节 | 堆内存的最大容量 | +| Status.JVM.GarbageCollector.G1_Young_Generation.Time | 字节 | 年轻代垃圾收集时间 | +| Status.JVM.Memory.NonHeap.Max | 字节 | 非堆内存的最大容量 | #### 指标集合:JobManager Config - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------------------------ | -------- | ---------------------------- | -| internal.jobgraph-path | - | 内部作业图路径 | -| env.java.home | - | Java 环境路径 | -| classloader.check-leaked-classloader | - | 是否检查类加载器 | -| env.java.opts | - | Java 选项 | -| high-availability.cluster-id | - | 高可用性集群 ID | -| jobmanager.rpc.address | - | JobManager 的 RPC 地址 | -| jobmanager.memory.jvm-overhead.min | 字节 | JobManager 的 JVM 开销最小值 | -| jobmanager.web.port | 端口号 | JobManager 的 Web 端口 | -| webclient.port | 端口号 | Web 客户端端口 | -| execution.savepoint.ignore-unclaimed-state | - | 是否忽略未声明的状态 | -| io.tmp.dirs | 路径 | 临时文件目录 | -| parallelism.default | - | 默认并行度 | -| taskmanager.memory.fraction | - | TaskManager 内存占比 | -| taskmanager.numberOfTaskSlots | - | TaskManager 的任务槽数量 | -| yarn.application.name | - | Yarn 应用名称 | -| taskmanager.heap.mb | MB | TaskManager 堆内存大小 | -| taskmanager.memory.process.size | GB | TaskManager 进程内存大小 | -| web.port | 端口号 | Web 端口 | -| classloader.resolve-order | - | 类加载器解析顺序 | -| jobmanager.heap.mb | MB | JobManager 堆内存大小 | -| jobmanager.memory.off-heap.size | 字节 | JobManager 堆外内存大小 | -| state.backend.incremental | - | 状态后端是否增量 | -| execution.target | - | 执行目标 | -| jobmanager.memory.process.size | GB | JobManager 进程内存大小 | -| web.tmpdir | 路径 | Web 临时目录 | -| yarn.ship-files | 路径 | Yarn 传输文件 | -| jobmanager.rpc.port | 端口号 | JobManager 的 RPC 端口 | -| internal.io.tmpdirs.use-local-default | - | 是否使用本地默认临时目录 | -| execution.checkpointing.interval | 毫秒 | 检查点间隔 | -| execution.attached | - | 是否附加执行 | -| internal.cluster.execution-mode | - | 内部集群执行模式 | -| execution.shutdown-on-attached-exit | - | 是否在附加退出时关闭 | -| pipeline.jars | 路径 | 管道 JAR 文件 | -| rest.address | - | REST 地址 | -| state.backend | - | 状态后端类型 | -| jobmanager.memory.jvm-metaspace.size | 字节 | JobManager JVM 元空间大小 | -| $internal.deployment.config-dir | 路径 | 内部部署配置目录 | -| $internal.yarn.log-config-file | 路径 | 内部 Yarn 日志配置文件路径 | -| jobmanager.memory.heap.size | 字节 | JobManager 堆内存大小 | -| state.checkpoints.dir | 路径 | 状态检查点目录 | -| jobmanager.memory.jvm-overhead.max | 字节 | JobManager 的 JVM 开销最大值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------------------|------|------------------------| +| internal.jobgraph-path | - | 内部作业图路径 | +| env.java.home | - | Java 环境路径 | +| classloader.check-leaked-classloader | - | 是否检查类加载器 | +| env.java.opts | - | Java 选项 | +| high-availability.cluster-id | - | 高可用性集群 ID | +| jobmanager.rpc.address | - | JobManager 的 RPC 地址 | +| jobmanager.memory.jvm-overhead.min | 字节 | JobManager 的 JVM 开销最小值 | +| jobmanager.web.port | 端口号 | JobManager 的 Web 端口 | +| webclient.port | 端口号 | Web 客户端端口 | +| execution.savepoint.ignore-unclaimed-state | - | 是否忽略未声明的状态 | +| io.tmp.dirs | 路径 | 临时文件目录 | +| parallelism.default | - | 默认并行度 | +| taskmanager.memory.fraction | - | TaskManager 内存占比 | +| taskmanager.numberOfTaskSlots | - | TaskManager 的任务槽数量 | +| yarn.application.name | - | Yarn 应用名称 | +| taskmanager.heap.mb | MB | TaskManager 堆内存大小 | +| taskmanager.memory.process.size | GB | TaskManager 进程内存大小 | +| web.port | 端口号 | Web 端口 | +| classloader.resolve-order | - | 类加载器解析顺序 | +| jobmanager.heap.mb | MB | JobManager 堆内存大小 | +| jobmanager.memory.off-heap.size | 字节 | JobManager 堆外内存大小 | +| state.backend.incremental | - | 状态后端是否增量 | +| execution.target | - | 执行目标 | +| jobmanager.memory.process.size | GB | JobManager 进程内存大小 | +| web.tmpdir | 路径 | Web 临时目录 | +| yarn.ship-files | 路径 | Yarn 传输文件 | +| jobmanager.rpc.port | 端口号 | JobManager 的 RPC 端口 | +| internal.io.tmpdirs.use-local-default | - | 是否使用本地默认临时目录 | +| execution.checkpointing.interval | 毫秒 | 检查点间隔 | +| execution.attached | - | 是否附加执行 | +| internal.cluster.execution-mode | - | 内部集群执行模式 | +| execution.shutdown-on-attached-exit | - | 是否在附加退出时关闭 | +| pipeline.jars | 路径 | 管道 JAR 文件 | +| rest.address | - | REST 地址 | +| state.backend | - | 状态后端类型 | +| jobmanager.memory.jvm-metaspace.size | 字节 | JobManager JVM 元空间大小 | +| $internal.deployment.config-dir | 路径 | 内部部署配置目录 | +| $internal.yarn.log-config-file | 路径 | 内部 Yarn 日志配置文件路径 | +| jobmanager.memory.heap.size | 字节 | JobManager 堆内存大小 | +| state.checkpoints.dir | 路径 | 状态检查点目录 | +| jobmanager.memory.jvm-overhead.max | 字节 | JobManager 的 JVM 开销最大值 | #### TaskManager - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------------------- | -------- | ------------------------------------- | -| Container ID | - | 容器 ID,用于唯一标识一个容器 | -| Path | - | 容器路径 | -| Data Port | 端口号 | 数据传输端口 | -| JMX Port | 端口号 | JMX(Java Management Extensions)端口 | -| Last Heartbeat | 时间戳 | 最后一次心跳时间 | -| All Slots | 数量 | 容器中所有任务槽的数量 | -| Free Slots | 数量 | 容器中空闲任务槽的数量 | -| totalResourceCpuCores | 核心数 | 容器总的CPU核心数 | -| totalResourceTaskHeapMemory | MB | 容器总的任务堆内存大小 | -| totalResourceManagedMemory | MB | 容器总的托管内存大小 | -| totalResourceNetworkMemory | MB | 容器总的网络内存大小 | -| freeResourceCpuCores | 核心数 | 容器中空闲的CPU核心数 | -| freeResourceTaskHeapMemory | MB | 容器中空闲的任务堆内存大小 | -| freeResourceTaskOffHeapMemory | MB | 容器中空闲的任务堆外内存大小 | -| freeResourceManagedMemory | MB | 容器中空闲的托管内存大小 | -| freeResourceNetworkMemory | MB | 容器中空闲的网络内存大小 | -| CPU Cores | 核心数 | CPU核心数 | -| Physical MEM | MB | 物理内存大小 | -| JVM Heap Size | MB | JVM堆内存大小 | -| Flink Managed MEM | MB | Flink管理的内存大小 | -| Framework Heap | MB | 框架堆内存大小 | -| Task Heap | MB | 任务堆内存大小 | -| Framework Off-Heap | MB | 框架堆外内存大小 | -| memoryConfigurationTaskOffHeap | Byte | 任务堆外内存配置 | -| Network | MB | 网络内存配置 | -| Managed Memory | MB | 托管内存配置 | -| JVM Metaspace | MB | JVM元空间大小 | -| JVM Overhead | MB | JVM开销 | -| memoryConfigurationTotalFlinkMemory | Byte | Flink总内存配置 | -| memoryConfigurationTotalProcessMemory | Byte | 进程总内存配置 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------------|------|-----------------------------------| +| Container ID | - | 容器 ID,用于唯一标识一个容器 | +| Path | - | 容器路径 | +| Data Port | 端口号 | 数据传输端口 | +| JMX Port | 端口号 | JMX(Java Management Extensions)端口 | +| Last Heartbeat | 时间戳 | 最后一次心跳时间 | +| All Slots | 数量 | 容器中所有任务槽的数量 | +| Free Slots | 数量 | 容器中空闲任务槽的数量 | +| totalResourceCpuCores | 核心数 | 容器总的CPU核心数 | +| totalResourceTaskHeapMemory | MB | 容器总的任务堆内存大小 | +| totalResourceManagedMemory | MB | 容器总的托管内存大小 | +| totalResourceNetworkMemory | MB | 容器总的网络内存大小 | +| freeResourceCpuCores | 核心数 | 容器中空闲的CPU核心数 | +| freeResourceTaskHeapMemory | MB | 容器中空闲的任务堆内存大小 | +| freeResourceTaskOffHeapMemory | MB | 容器中空闲的任务堆外内存大小 | +| freeResourceManagedMemory | MB | 容器中空闲的托管内存大小 | +| freeResourceNetworkMemory | MB | 容器中空闲的网络内存大小 | +| CPU Cores | 核心数 | CPU核心数 | +| Physical MEM | MB | 物理内存大小 | +| JVM Heap Size | MB | JVM堆内存大小 | +| Flink Managed MEM | MB | Flink管理的内存大小 | +| Framework Heap | MB | 框架堆内存大小 | +| Task Heap | MB | 任务堆内存大小 | +| Framework Off-Heap | MB | 框架堆外内存大小 | +| memoryConfigurationTaskOffHeap | Byte | 任务堆外内存配置 | +| Network | MB | 网络内存配置 | +| Managed Memory | MB | 托管内存配置 | +| JVM Metaspace | MB | JVM元空间大小 | +| JVM Overhead | MB | JVM开销 | +| memoryConfigurationTotalFlinkMemory | Byte | Flink总内存配置 | +| memoryConfigurationTotalProcessMemory | Byte | 进程总内存配置 | #### TaskManager Metrics - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------------------- | -------- | -------------------------- | -| Status.Shuffle.Netty.TotalMemory | MB | Netty Shuffle 使用的总内存 | -| Status.Flink.Memory.Managed.Used | MB | Flink 管理的已用内存 | -| Status.JVM.Memory.Metaspace.Used | MB | JVM 元空间已使用的内存 | -| Status.JVM.Memory.Metaspace.Max | MB | JVM 元空间的最大内存 | -| Status.JVM.Memory.Heap.Used | MB | JVM 堆内存已使用的内存 | -| Status.JVM.Memory.Heap.Max | MB | JVM 堆内存的最大容量 | -| Status.Flink.Memory.Managed.Total | MB | Flink 管理的内存总量 | -| Status.Shuffle.Netty.UsedMemory | MB | Netty Shuffle 使用的内存 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------------------|------|----------------------| +| Status.Shuffle.Netty.TotalMemory | MB | Netty Shuffle 使用的总内存 | +| Status.Flink.Memory.Managed.Used | MB | Flink 管理的已用内存 | +| Status.JVM.Memory.Metaspace.Used | MB | JVM 元空间已使用的内存 | +| Status.JVM.Memory.Metaspace.Max | MB | JVM 元空间的最大内存 | +| Status.JVM.Memory.Heap.Used | MB | JVM 堆内存已使用的内存 | +| Status.JVM.Memory.Heap.Max | MB | JVM 堆内存的最大容量 | +| Status.Flink.Memory.Managed.Total | MB | Flink 管理的内存总量 | +| Status.Shuffle.Netty.UsedMemory | MB | Netty Shuffle 使用的内存 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/freebsd.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/freebsd.md index 53f7eceb7c3..e2890cc3b9f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/freebsd.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/freebsd.md @@ -7,10 +7,9 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 > 对FreeBSD操作系统的通用性能指标 (系统信息、CPU、内存、磁盘、网卡、文件系统、TOP资源进程等) 进行采集监控。 - ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -29,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -37,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 核数 | CPU内核数量 | @@ -48,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|---------| | physmem | Mb | 物理内存 | | usermem | Mb | 用户程序内存量 | @@ -57,7 +56,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -69,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -80,10 +79,9 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | | cpu_usage | % | CPU占用率 | | command | 无 | 执行命令 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ftp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ftp.md index c86dfb14a7b..ac1e1621c24 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ftp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ftp.md @@ -11,7 +11,7 @@ keywords: [ 开源监控系统, 开源FTP服务器监控工具, 监控FTP指标 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|--------------------------------------| | 目标Host | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:ftp://)。 | | 监控名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源FTP服务器监控工具, 监控FTP指标 #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|------|------------------| | 活动状态 | 无 | 检查目录是否存在,且具有访问权限 | | 响应时间 | ms | 连接FTP响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/fullsite.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/fullsite.md index f7fc4c150b7..54553c1200c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/fullsite.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/fullsite.md @@ -5,31 +5,30 @@ sidebar_label: 全站监控 keywords: [开源监控系统, 开源网站监控, SiteMap监控] --- -> 对网站的全部页面监测是否可用 -> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 -> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 +> 对网站的全部页面监测是否可用 +> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 +> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| url | 无 | 网页的URL路径 | -| statusCode | 无 | 请求此网页的响应HTTP状态码 | -| responseTime | ms毫秒 | 网站响应时间 | -| errorMsg | 无 | 请求此网站反馈的错误信息 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|-----------------| +| url | 无 | 网页的URL路径 | +| statusCode | 无 | 请求此网页的响应HTTP状态码 | +| responseTime | ms毫秒 | 网站响应时间 | +| errorMsg | 无 | 请求此网站反馈的错误信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md new file mode 100644 index 00000000000..9e91b0e956d --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/grafana_dashboard.md @@ -0,0 +1,41 @@ +--- +id: grafana_dashboard +title: Grafana Dashboard +sidebar_label: Grafana历史图表 +keywords: [Grafana, 历史图表] +--- + +> `Grafana`是一个开源的可视化和分析平台,它可以帮助你轻松地创建、分享和监控仪表板。本文将介绍如何在`HertzBeat`中使用`Grafana`展示历史数据。 + +### 前提条件 + +- `Grafana`服务已经启动,并配置好了账号密码。 +- `HertzBeat`服务已经启动,并配置好了`VictoriaMetrics`时序数据库(注意: `VictoriaMetrics`数据源是必须的)。 + +:::caution 注意 +`Grafana`只能展示`Prometheus`类型监控的历史数据,目前并不支持`HertzBeat`中`yml`定义的监控数据。 +::: + +### 在HertzBeat中配置Grafana + +在`HertzBeat`的配置文件`hertzbeat.yml`中,配置`Grafana`数据源: + +```yaml +grafana: + enabled: true + url: http://127.0.0.1:3000 + username: admin + password: admin +``` + +### 在HertzBeat监控中上传Grafana监控模板json文件 + +在`HertzBeat`新建或编辑`Prometheus`类型监控时,点击启用Grafana模板,选择Grafana模板json文件上传。 +监控模板json文件可以在 下载。 +比如,在`HertzBeat`中新建一个关于`VictoriaMetrics`单节点的监控,然后打开 ,点击右侧 `Download JSON`按钮,下载模板json文件。在`HertzBeat`监控中上传模板json文件,保存。 + ![grafana-1.png](/img/docs/help/grafana-1.png) + +### 查看Grafana历史图表 + +在`HertzBeat`监控页面,点击`Grafana`按钮,选择`Grafana`历史图表,选择监控模板,点击`查询`按钮,即可查看`Grafana`历史图表。 + ![grafana-2.png](/img/docs/help/grafana-2.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/greenplum.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/greenplum.md new file mode 100644 index 00000000000..e1094830096 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/greenplum.md @@ -0,0 +1,55 @@ +--- +id: greenplum +title: 监控:GreenPlum 数据库监控 +sidebar_label: GreenPlum 数据库 +keywords: [开源监控系统, 开源数据库监控, GreenPlum 数据库监控] +--- + +> 对 GreenPlum 数据库的通用性能指标进行采集监控。支持 GreenPlum 6.23.0+。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------| +| 监控Host | 被监控的 Host 地址。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置 SQL 查询未响应数据时的超时时间,单位 ms 毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则 URL 里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:basic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | + +#### 指标集合:state + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|-------------------------------------------------------------------------| +| name | 无 | 数据库名称,或 share-object 为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 GreenPlum 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | + +#### 指标集合:activity + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/guide.md index 79c4ec85e52..0b5bfada4e7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/guide.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/guide.md @@ -1,136 +1,134 @@ ---- -id: guide -title: 帮助中心 -sidebar_label: 帮助入门 ---- - -> 易用友好的实时监控工具,无需Agent,强大自定义监控能力。 -> 使用过程中的帮助文档,辅助信息。 - -## 🔬 监控服务 - -> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 -> 规划的监控类型:应用服务,数据库,操作系统,云原生,开源中间件 - -### 应用服务监控 - -  👉 [网站监测](website)
-  👉 [HTTP API](api)
-  👉 [PING连通性](ping)
-  👉 [端口可用性](port)
-  👉 [全站监控](fullsite)
-  👉 [SSL证书有效期](ssl_cert)
-  👉 [JVM虚拟机](jvm)
-  👉 [SpringBoot2.0](springboot2)
-  👉 [DNS服务器](dns)
-  👉 [FTP服务器](ftp)
-  👉 [Websocket](websocket)
- -### 应用程序监控 - - 👉 [Linux进程](process)
- 👉 [JVM虚拟机](jvm)
- 👉 [SpringBoot2.0](springboot2)
- 👉 [SpringBoot3.0](springboot3)
- 👉 [DynamicTp线程池](dynamic_tp)
- - -### 数据库监控 - -  👉 [MYSQL数据库监控](mysql)
-  👉 [MariaDB数据库监控](mariadb)
-  👉 [PostgreSQL数据库监控](postgresql)
-  👉 [SqlServer数据库监控](sqlserver)
-  👉 [Oracle数据库监控](oracle)
-  👉 [达梦数据库监控](dm)
-  👉 [OpenGauss数据库监控](opengauss)
-  👉 [IoTDB数据库监控](iotdb)
-  👉 [TiDB数据库监控](tidb)
-  👉 [MongoDB数据库监控](mongodb)
-  👉 [NebulaGraph集群监控](nebulagraph_cluster)
- -### 缓存监控 - - 👉 [Redis](redis)
- 👉 [Memcached](memcached)
- -### 操作系统监控 - -  👉 [Linux操作系统监控](linux)
-  👉 [Windows操作系统监控](windows)
-  👉 [Ubuntu操作系统监控](ubuntu)
-  👉 [Centos操作系统监控](centos)
-  👉 [FreeBSD操作系统监控](freebsd)
-  👉 [RedHat操作系统监控](redhat)
-  👉 [RockyLinux操作系统监控](rockylinux)
-  👉 [EulerOS操作系统监控](euleros)
- -### 中间件监控 - -  👉 [Zookeeper](zookeeper)
-  👉 [Kafka](kafka)
-  👉 [Tomcat](tomcat)
-  👉 [ShenYu](shenyu)
-  👉 [DynamicTp](dynamic_tp)
-  👉 [RabbitMQ](rabbitmq)
-  👉 [ActiveMQ](activemq)
-  👉 [Jetty](jetty)
-  👉 [Nacos](nacos)
- -### 云原生监控 - -  👉 [Docker](docker)
-  👉 [Kubernetes](kubernetes)
- -### 大数据监控 - -  👉 [Clickhouse](clickhouse)
-  👉 [ElasticSearch](elasticsearch)
-  👉 [Flink](flink)
- -### Ai大模型监控 - - 👉 [OpenAi](openai)
- -### 网络监控 - -  👉 [华为通用交换机](huawei_switch)
- -### 服务器监控 - -## 💡 告警服务 - -> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 -> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 - -### 告警中心 - -> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 - -### 告警配置 - -> 指标阈值配置,提供表达式形式的指标阈值配置,可设置告警级别,触发次数,告警通知模版和是否启用,关联监控等功能。 - -详见 👉 [阈值告警](alert_threshold)
-   👉 [阈值表达式](alert_threshold_expr) - -### 告警通知 - -> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 -> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 -> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。 - - - 👉 [配置邮箱通知](alert_email)
- 👉 [配置 Webhook 通知](alert_webhook)
- 👉 [配置 Telegram 通知](alert_telegram)
- 👉 [配置 Discord 通知](alert_discord)
- 👉 [配置 Slack 通知](alert_slack)
- 👉 [配置企业微信机器人通知](alert_wework)
- 👉 [配置钉钉机器人通知](alert_dingtalk)
- 👉 [配置飞书机器人通知](alert_feishu)
- 👉 [配置华为云SMN通知](alert_smn)
- -### 插件 - - 👉 [插件](plugin)
+--- +id: guide +title: 帮助中心 +sidebar_label: 帮助入门 +--- + +> 易用友好的实时监控工具,无需Agent,强大自定义监控能力。 +> 使用过程中的帮助文档,辅助信息。 + +## 🔬 监控服务 + +> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 +> 规划的监控类型:应用服务,数据库,操作系统,云原生,开源中间件 + +### 应用服务监控 + + 👉 [网站监测](website)
+ 👉 [HTTP API](api)
+ 👉 [PING连通性](ping)
+ 👉 [端口可用性](port)
+ 👉 [全站监控](fullsite)
+ 👉 [SSL证书有效期](ssl_cert)
+ 👉 [JVM虚拟机](jvm)
+ 👉 [SpringBoot2.0](springboot2)
+ 👉 [DNS服务器](dns)
+ 👉 [FTP服务器](ftp)
+ 👉 [Websocket](websocket)
+ +### 应用程序监控 + + 👉 [Linux进程](process)
+ 👉 [JVM虚拟机](jvm)
+ 👉 [SpringBoot2.0](springboot2)
+ 👉 [SpringBoot3.0](springboot3)
+ 👉 [DynamicTp线程池](dynamic_tp)
+ +### 数据库监控 + + 👉 [MYSQL数据库监控](mysql)
+ 👉 [MariaDB数据库监控](mariadb)
+ 👉 [PostgreSQL数据库监控](postgresql)
+ 👉 [SqlServer数据库监控](sqlserver)
+ 👉 [Oracle数据库监控](oracle)
+ 👉 [达梦数据库监控](dm)
+ 👉 [OpenGauss数据库监控](opengauss)
+ 👉 [IoTDB数据库监控](iotdb)
+ 👉 [TiDB数据库监控](tidb)
+ 👉 [MongoDB数据库监控](mongodb)
+ 👉 [NebulaGraph集群监控](nebulagraph_cluster)
+ +### 缓存监控 + + 👉 [Redis](redis)
+ 👉 [Memcached](memcached)
+ +### 操作系统监控 + + 👉 [Linux操作系统监控](linux)
+ 👉 [Windows操作系统监控](windows)
+ 👉 [Ubuntu操作系统监控](ubuntu)
+ 👉 [Centos操作系统监控](centos)
+ 👉 [FreeBSD操作系统监控](freebsd)
+ 👉 [RedHat操作系统监控](redhat)
+ 👉 [RockyLinux操作系统监控](rockylinux)
+ 👉 [EulerOS操作系统监控](euleros)
+ +### 中间件监控 + + 👉 [Zookeeper](zookeeper)
+ 👉 [Kafka](kafka)
+ 👉 [Tomcat](tomcat)
+ 👉 [ShenYu](shenyu)
+ 👉 [DynamicTp](dynamic_tp)
+ 👉 [RabbitMQ](rabbitmq)
+ 👉 [ActiveMQ](activemq)
+ 👉 [Jetty](jetty)
+ 👉 [Nacos](nacos)
+ +### 云原生监控 + + 👉 [Docker](docker)
+ 👉 [Kubernetes](kubernetes)
+ +### 大数据监控 + + 👉 [Clickhouse](clickhouse)
+ 👉 [ElasticSearch](elasticsearch)
+ 👉 [Flink](flink)
+ +### Ai大模型监控 + + 👉 [OpenAi](openai)
+ +### 网络监控 + + 👉 [华为通用交换机](huawei_switch)
+ +### 服务器监控 + +## 💡 告警服务 + +> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 +> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 + +### 告警中心 + +> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 + +### 告警配置 + +> 指标阈值配置,提供表达式形式的指标阈值配置,可设置告警级别,触发次数,告警通知模版和是否启用,关联监控等功能。 + +详见 👉 [阈值告警](alert_threshold)
+   👉 [阈值表达式](alert_threshold_expr) + +### 告警通知 + +> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 +> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 +> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。 + + 👉 [配置邮箱通知](alert_email)
+ 👉 [配置 Webhook 通知](alert_webhook)
+ 👉 [配置 Telegram 通知](alert_telegram)
+ 👉 [配置 Discord 通知](alert_discord)
+ 👉 [配置 Slack 通知](alert_slack)
+ 👉 [配置企业微信机器人通知](alert_wework)
+ 👉 [配置钉钉机器人通知](alert_dingtalk)
+ 👉 [配置飞书机器人通知](alert_feishu)
+ 👉 [配置华为云SMN通知](alert_smn)
+ +### 插件 + + 👉 [插件](plugin)
diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hadoop.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hadoop.md index fec361e2366..186baede498 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hadoop.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hadoop.md @@ -37,57 +37,53 @@ export HADOOP_OPTS= "$HADOOP_OPTS ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache (限JDK8及以下) -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_master.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_master.md index f75d5cc8e98..6912712607f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_master.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_master.md @@ -4,6 +4,7 @@ title: 监控:Hbase Master监控 sidebar_label: Apache Hbase Master keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] --- + > 对Hbase Master的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,49 +15,45 @@ keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | -------------------------------------------------------------------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | hbase master的端口号,默认为16010。即:`hbase.master.info.port`参数值 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | hbase master的端口号,默认为16010。即:`hbase.master.info.port`参数值 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:server - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- |----| ---------------------------- | -| numRegionServers | 无 | 当前存活的 RegionServer 个数 | -| numDeadRegionServers | 无 | 当前Dead的 RegionServer 个数 | -| averageLoad | 无 | 集群平均负载 | -| clusterRequests | 无 | 集群请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|-------------------------| +| numRegionServers | 无 | 当前存活的 RegionServer 个数 | +| numDeadRegionServers | 无 | 当前Dead的 RegionServer 个数 | +| averageLoad | 无 | 集群平均负载 | +| clusterRequests | 无 | 集群请求数量 | #### 指标集合:Rit - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | ------ | ------------------- | -| ritCount | 无 | 当前的 RIT 数量 | -| ritCountOverThreshold | 无 | 超过阈值的 RIT 数量 | -| ritOldestAge | ms | 最老的RIT的持续时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|--------------| +| ritCount | 无 | 当前的 RIT 数量 | +| ritCountOverThreshold | 无 | 超过阈值的 RIT 数量 | +| ritOldestAge | ms | 最老的RIT的持续时间 | #### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------------- | ----- | ------------------------ | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|--------------------| | liveRegionServers | 无 | 当前活跃RegionServer列表 | | deadRegionServers | 无 | 当前离线RegionServer列表 | -| zookeeperQuorum | 无 | Zookeeper列表 | -| masterHostName | 无 | Master节点 | -| BalancerCluster_num_ops | 无 | 集群负载均衡次数 | -| numActiveHandler | 无 | RPC句柄数 | -| receivedBytes | MB | 集群接收数据量 | -| sentBytes | MB | 集群发送数据量(MB) | -| clusterRequests | 无 | 集群总请求数量 | +| zookeeperQuorum | 无 | Zookeeper列表 | +| masterHostName | 无 | Master节点 | +| BalancerCluster_num_ops | 无 | 集群负载均衡次数 | +| numActiveHandler | 无 | RPC句柄数 | +| receivedBytes | MB | 集群接收数据量 | +| sentBytes | MB | 集群发送数据量(MB) | +| clusterRequests | 无 | 集群总请求数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_regionserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_regionserver.md index 44d5b533932..2452e34a469 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_regionserver.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hbase_regionserver.md @@ -4,6 +4,7 @@ title: 监控 Hbase RegionServer监控 sidebar_label: Apache Hbase RegionServer keywords: [开源监控系统, 开源数据库监控, RegionServer监控] --- + > 对Hbase RegionServer的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,16 +15,15 @@ keywords: [开源监控系统, 开源数据库监控, RegionServer监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |----------------------------------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | hbase regionserver的端口号,默认为16030。即:`hbase.regionserver.info.port`参数值 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | hbase regionserver的端口号,默认为16030。即:`hbase.regionserver.info.port`参数值 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 @@ -31,67 +31,63 @@ keywords: [开源监控系统, 开源数据库监控, RegionServer监控] #### 指标集合:server - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- |-------|------------------------------------------| -| regionCount | 无 | Region数量 | -| readRequestCount | 无 | 重启集群后的读请求数量 | -| writeRequestCount | 无 | 重启集群后的写请求数量 | -| averageRegionSize | MB | 平均Region大小 | -| totalRequestCount | 无 | 全部请求数量 | -| ScanTime_num_ops | 无 | Scan 请求总量 | -| Append_num_ops | 无 | Append 请求量 | -| Increment_num_ops | 无 | Increment请求量 | -| Get_num_ops | 无 | Get 请求量 | -| Delete_num_ops | 无 | Delete 请求量 | -| Put_num_ops | 无 | Put 请求量 | -| ScanTime_mean | 无 | 平均 Scan 请求时间 | -| ScanTime_min | 无 | 最小 Scan 请求时间 | -| ScanTime_max | 无 | 最大 Scan 请求时间 | -| ScanSize_mean | bytes | 平均 Scan 请求大小 | -| ScanSize_min | 无 | 最小 Scan 请求大小 | -| ScanSize_max | 无 | 最大 Scan 请求大小 | -| slowPutCount | 无 | 慢操作次数/Put | -| slowGetCount | 无 | 慢操作次数/Get | -| slowAppendCount | 无 | 慢操作次数/Append | -| slowIncrementCount | 无 | 慢操作次数/Increment | -| slowDeleteCount | 无 | 慢操作次数/Delete | -| blockCacheSize | 无 | 缓存块内存占用大小 | -| blockCacheCount | 无 | 缓存块数量_Block Cache 中的 Block 数量 | -| blockCacheExpressHitPercent | 无 | 读缓存命中率 | -| memStoreSize | 无 | Memstore 大小 | -| FlushTime_num_ops | 无 | RS写磁盘次数/Memstore flush 写磁盘次数 | -| flushQueueLength | 无 | Region Flush 队列长度 | -| flushedCellsSize | 无 | flush到磁盘大小 | -| storeFileCount | 无 | Storefile 个数 | -| storeCount | 无 | Store 个数 | -| storeFileSize | 无 | Storefile 大小 | -| compactionQueueLength | 无 | Compaction 队列长度 | -| percentFilesLocal | 无 | Region 的 HFile 位于本地 HDFS Data Node的比例 | -| percentFilesLocalSecondaryRegions | 无 | Region 副本的 HFile 位于本地 HDFS Data Node的比例 | -| hlogFileCount | 无 | WAL 文件数量 | -| hlogFileSize | 无 | WAL 文件大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------------------|-------|-----------------------------------------| +| regionCount | 无 | Region数量 | +| readRequestCount | 无 | 重启集群后的读请求数量 | +| writeRequestCount | 无 | 重启集群后的写请求数量 | +| averageRegionSize | MB | 平均Region大小 | +| totalRequestCount | 无 | 全部请求数量 | +| ScanTime_num_ops | 无 | Scan 请求总量 | +| Append_num_ops | 无 | Append 请求量 | +| Increment_num_ops | 无 | Increment请求量 | +| Get_num_ops | 无 | Get 请求量 | +| Delete_num_ops | 无 | Delete 请求量 | +| Put_num_ops | 无 | Put 请求量 | +| ScanTime_mean | 无 | 平均 Scan 请求时间 | +| ScanTime_min | 无 | 最小 Scan 请求时间 | +| ScanTime_max | 无 | 最大 Scan 请求时间 | +| ScanSize_mean | bytes | 平均 Scan 请求大小 | +| ScanSize_min | 无 | 最小 Scan 请求大小 | +| ScanSize_max | 无 | 最大 Scan 请求大小 | +| slowPutCount | 无 | 慢操作次数/Put | +| slowGetCount | 无 | 慢操作次数/Get | +| slowAppendCount | 无 | 慢操作次数/Append | +| slowIncrementCount | 无 | 慢操作次数/Increment | +| slowDeleteCount | 无 | 慢操作次数/Delete | +| blockCacheSize | 无 | 缓存块内存占用大小 | +| blockCacheCount | 无 | 缓存块数量_Block Cache 中的 Block 数量 | +| blockCacheExpressHitPercent | 无 | 读缓存命中率 | +| memStoreSize | 无 | Memstore 大小 | +| FlushTime_num_ops | 无 | RS写磁盘次数/Memstore flush 写磁盘次数 | +| flushQueueLength | 无 | Region Flush 队列长度 | +| flushedCellsSize | 无 | flush到磁盘大小 | +| storeFileCount | 无 | Storefile 个数 | +| storeCount | 无 | Store 个数 | +| storeFileSize | 无 | Storefile 大小 | +| compactionQueueLength | 无 | Compaction 队列长度 | +| percentFilesLocal | 无 | Region 的 HFile 位于本地 HDFS Data Node的比例 | +| percentFilesLocalSecondaryRegions | 无 | Region 副本的 HFile 位于本地 HDFS Data Node的比例 | +| hlogFileCount | 无 | WAL 文件数量 | +| hlogFileSize | 无 | WAL 文件大小 | #### 指标集合:IPC - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | ------ | ------------------- | -| numActiveHandler | 无 | 当前的 RIT 数量 | -| NotServingRegionException | 无 | 超过阈值的 RIT 数量 | -| RegionMovedException | ms | 最老的RIT的持续时间 | -| RegionTooBusyException | ms | 最老的RIT的持续时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|--------------| +| numActiveHandler | 无 | 当前的 RIT 数量 | +| NotServingRegionException | 无 | 超过阈值的 RIT 数量 | +| RegionMovedException | ms | 最老的RIT的持续时间 | +| RegionTooBusyException | ms | 最老的RIT的持续时间 | #### 指标集合:JVM - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------------- | ----- | ------------------------ | -| MemNonHeapUsedM | 无 | 当前活跃RegionServer列表 | -| MemNonHeapCommittedM | 无 | 当前离线RegionServer列表 | -| MemHeapUsedM | 无 | Zookeeper列表 | -| MemHeapCommittedM | 无 | Master节点 | -| MemHeapMaxM | 无 | 集群负载均衡次数 | -| MemMaxM | 无 | RPC句柄数 | -| GcCount | MB | 集群接收数据量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|--------------------| +| MemNonHeapUsedM | 无 | 当前活跃RegionServer列表 | +| MemNonHeapCommittedM | 无 | 当前离线RegionServer列表 | +| MemHeapUsedM | 无 | Zookeeper列表 | +| MemHeapCommittedM | 无 | Master节点 | +| MemHeapMaxM | 无 | 集群负载均衡次数 | +| MemMaxM | 无 | RPC句柄数 | +| GcCount | MB | 集群接收数据量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_datanode.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_datanode.md index efb05494290..5fe981ddaff 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_datanode.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_datanode.md @@ -15,42 +15,42 @@ keywords: [大数据监控系统, 分布式文件系统监控, Apache HDFS DataN ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | Apache HDFS DataNode 的监控端口号,默认为50075。 | -| 查询超时时间 | 查询 Apache HDFS DataNode 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | -| 是否探测 | 新增监控前是否先探测检查监控可用性。 | -| 描述备注 | 此监控的更多描述和备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|----------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | Apache HDFS DataNode 的监控端口号,默认为50075。 | +| 查询超时时间 | 查询 Apache HDFS DataNode 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 是否探测 | 新增监控前是否先探测检查监控可用性。 | +| 描述备注 | 此监控的更多描述和备注信息。 | ### 采集指标 #### 指标集合:FSDatasetState -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------------- | -------- | ------------------------------------ | -| DfsUsed | GB | DataNode HDFS使用量 | -| Remaining | GB | DataNode HDFS剩余空间 | -| Capacity | GB | DataNode HDFS空间总量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|-------------------| +| DfsUsed | GB | DataNode HDFS使用量 | +| Remaining | GB | DataNode HDFS剩余空间 | +| Capacity | GB | DataNode HDFS空间总量 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ------------------------------------ | -| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | -| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | -| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | -| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | -| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | -| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | -| ThreadsRunnable | 个 | 处于 RUNNABLE 状态的线程数量 | -| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | -| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|-------------------------------| +| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | +| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | +| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | +| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | +| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | +| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | +| ThreadsRunnable | 个 | 处于 RUNNABLE 状态的线程数量 | +| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | +| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------| -------- | ----------------- | -| StartTime | | 启动时间 | \ No newline at end of file +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_namenode.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_namenode.md index 26fd5e985af..46d69e5e2b4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_namenode.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hdfs_namenode.md @@ -15,79 +15,78 @@ keywords: [大数据监控系统, 分布式文件系统监控, Apache HDFS NameN ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | HDFS NameNode 的监控端口号,默认为50070。 | -| 查询超时时间 | 查询 HDFS NameNode 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | -| 是否探测 | 新增监控前是否先探测检查监控可用性。 | -| 描述备注 | 此监控的更多描述和备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | HDFS NameNode 的监控端口号,默认为50070。 | +| 查询超时时间 | 查询 HDFS NameNode 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 是否探测 | 新增监控前是否先探测检查监控可用性。 | +| 描述备注 | 此监控的更多描述和备注信息。 | ### 采集指标 #### 指标集合:FSNamesystem -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------------- | -------- | ------------------------------------ | -| CapacityTotal | | 集群存储总容量 | -| CapacityTotalGB | GB | 集群存储总容量 | -| CapacityUsed | | 集群存储已使用容量 | -| CapacityUsedGB | GB | 集群存储已使用容量 | -| CapacityRemaining | | 集群存储剩余容量 | -| CapacityRemainingGB | GB | 集群存储剩余容量 | -| CapacityUsedNonDFS | | 集群非 HDFS 使用容量 | -| TotalLoad | | 整个集群的客户端连接数 | -| FilesTotal | | 集群文件总数量 | -| BlocksTotal | | 总 BLOCK 数量 | -| PendingReplicationBlocks | | 等待被备份的块数量 | -| UnderReplicatedBlocks | | 副本数不够的块数量 | -| CorruptBlocks | | 坏块数量 | -| ScheduledReplicationBlocks | | 安排要备份的块数量 | -| PendingDeletionBlocks | | 等待被删除的块数量 | -| ExcessBlocks | | 多余的块数量 | -| PostponedMisreplicatedBlocks | | 被推迟处理的异常块数量 | -| NumLiveDataNodes | | 活的数据节点数量 | -| NumDeadDataNodes | | 已经标记为 Dead 状态的数据节点数量 | -| NumDecomLiveDataNodes | | 下线且 Live 的节点数量 | -| NumDecomDeadDataNodes | | 下线且 Dead 的节点数量 | -| NumDecommissioningDataNodes | | 正在下线的节点数量 | -| TransactionsSinceLastCheckpoint | | 从上次Checkpoint之后的事务数量 | -| LastCheckpointTime | | 上一次Checkpoint时间 | -| PendingDataNodeMessageCount | | DATANODE 的请求被 QUEUE 在 standby namenode 中的个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|---------------------------------------------| +| CapacityTotal | | 集群存储总容量 | +| CapacityTotalGB | GB | 集群存储总容量 | +| CapacityUsed | | 集群存储已使用容量 | +| CapacityUsedGB | GB | 集群存储已使用容量 | +| CapacityRemaining | | 集群存储剩余容量 | +| CapacityRemainingGB | GB | 集群存储剩余容量 | +| CapacityUsedNonDFS | | 集群非 HDFS 使用容量 | +| TotalLoad | | 整个集群的客户端连接数 | +| FilesTotal | | 集群文件总数量 | +| BlocksTotal | | 总 BLOCK 数量 | +| PendingReplicationBlocks | | 等待被备份的块数量 | +| UnderReplicatedBlocks | | 副本数不够的块数量 | +| CorruptBlocks | | 坏块数量 | +| ScheduledReplicationBlocks | | 安排要备份的块数量 | +| PendingDeletionBlocks | | 等待被删除的块数量 | +| ExcessBlocks | | 多余的块数量 | +| PostponedMisreplicatedBlocks | | 被推迟处理的异常块数量 | +| NumLiveDataNodes | | 活的数据节点数量 | +| NumDeadDataNodes | | 已经标记为 Dead 状态的数据节点数量 | +| NumDecomLiveDataNodes | | 下线且 Live 的节点数量 | +| NumDecomDeadDataNodes | | 下线且 Dead 的节点数量 | +| NumDecommissioningDataNodes | | 正在下线的节点数量 | +| TransactionsSinceLastCheckpoint | | 从上次Checkpoint之后的事务数量 | +| LastCheckpointTime | | 上一次Checkpoint时间 | +| PendingDataNodeMessageCount | | DATANODE 的请求被 QUEUE 在 standby namenode 中的个数 | #### 指标集合:RPC -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------- | -------- | ---------------------- | -| ReceivedBytes | | 接收数据速率 | -| SentBytes | | 发送数据速率 | -| RpcQueueTimeNumOps | | RPC 调用速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|----------| +| ReceivedBytes | | 接收数据速率 | +| SentBytes | | 发送数据速率 | +| RpcQueueTimeNumOps | | RPC 调用速率 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------| -------- | ----------------- | -| StartTime | | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ---------------- | -| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | -| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | -| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | -| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | -| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | -| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | -| GcCountParNew | 次 | 新生代GC消耗时间 | -| GcTimeMillisParNew | 毫秒 | 新生代GC消耗时间 | -| GcCountConcurrentMarkSweep | 毫秒 | 老年代GC次数 | -| GcTimeMillisConcurrentMarkSweep | 个 | 老年代GC消耗时间 | -| GcCount | 个 | GC次数 | -| GcTimeMillis | 个 | GC消耗时间 | -| ThreadsRunnable | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | -| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|-------------------------------| +| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | +| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | +| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | +| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | +| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | +| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | +| GcCountParNew | 次 | 新生代GC消耗时间 | +| GcTimeMillisParNew | 毫秒 | 新生代GC消耗时间 | +| GcCountConcurrentMarkSweep | 毫秒 | 老年代GC次数 | +| GcTimeMillisConcurrentMarkSweep | 个 | 老年代GC消耗时间 | +| GcCount | 个 | GC次数 | +| GcTimeMillis | 个 | GC消耗时间 | +| ThreadsRunnable | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | +| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hive.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hive.md index 2c2136f91cf..bdf08d7b0ba 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hive.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hive.md @@ -5,7 +5,7 @@ sidebar_label: Apache Hive keywords: [开源监控工具, 开源 Apache Hive 监控工具, 监控 Apache Hive 指标] --- -> 收集和监控由 SpringBoot Actuator 提供的常规性能指标。 +> 收集和监控由 Apache Hive 提供的常规性能指标。 ## 监控前操作 @@ -16,6 +16,7 @@ keywords: [开源监控工具, 开源 Apache Hive 监控工具, 监控 Apache Hi ```shell hive --service metastore & ``` + **2. 启用 Hive Server2:** ```shell @@ -24,54 +25,52 @@ hive --service hiveserver2 & ### 配置参数 -| 参数名称 | 参数描述 | -| ---------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 10002。 | -| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | +| 参数名称 | 参数描述 | +|----------|--------------------------------------------------------| +| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | +| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | +| 端口 | 数据库提供的默认端口为 10002。 | +| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | ### 采集指标 #### 指标收集: 基本信息 -| 指标名称 | 指标单位 | 指标描述 | -|--------|-------|-----------------------------| -| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | -| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | -| 虚拟机版本 | 无 | 虚拟机的版本。 | -| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | +| 指标名称 | 指标单位 | 指标描述 | +|--------|------|-----------------------------| +| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | +| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | +| 虚拟机版本 | 无 | 虚拟机的版本。 | +| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | #### 指标收集: 环境信息 -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------|--------------------------------| -| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | -| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | -| 操作系统版本 | 无 | 操作系统的版本。 | -| 操作系统架构 | 无 | 操作系统的架构。 | -| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | -| java运行环境版本 | 无 | Java 运行时环境的版本。 | +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|--------------------------------| +| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | +| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | +| 操作系统版本 | 无 | 操作系统的版本。 | +| 操作系统架构 | 无 | 操作系统的架构。 | +| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | +| java运行环境版本 | 无 | Java 运行时环境的版本。 | #### 指标收集: 线程信息 -| 指标名称 | 指标单位 | 指标描述 | +| 指标名称 | 指标单位 | 指标描述 | |--------|------|------------------------------| | 线程数量 | None | HiveServer2 当前正在使用的线程数。 | -| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | +| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | | 最高线程数 | None | HiveServer2 在任何给定时间使用的最高线程数。 | | 守护线程数 | None | HiveServer2 当前活动的守护线程数。 | #### 指标收集: 代码缓存 -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------------|---------------| -| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | -| 内存池初始内存 | MB | 内存池请求的初始内存量。 | -| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | -| 内存池内存使用量 | MB | 内存池已使用内存量 | - - +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|---------------| +| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | +| 内存池初始内存 | MB | 内存池请求的初始内存量。 | +| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | +| 内存池内存使用量 | MB | 内存池已使用内存量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/huawei_switch.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/huawei_switch.md index c30c4186661..2d42a0170ee 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/huawei_switch.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/huawei_switch.md @@ -1,53 +1,53 @@ ---- -id: huawei_switch -title: 监控:华为通用交换机 -sidebar_label: 华为通用交换机 -keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] ---- - -> 对 华为交换机 的通用指标(可用性,系统信息,端口流量等)进行采集监控。 - -**使用协议:SNMP** - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|---------------------|-------------------------------------------------------------------------------------------------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | SNMP端口号,默认为161 | -| SNMP 版本 | 所使用的SNMP版本 | -| SNMP 团体字 | 用于SNMP v1 和 SNMP v2c,用于在SNMP Agent完成认证,字符串形式。团体名包括“read”和“write”两种,执行SNMP查询操作时,采用“read”团体名进行认证;执行SNMP设置操作时,则采用“write”团体名进行认证。 | -| SNMP username | 用于SNMP v3,MSG 用户名 | -| SNMP contextName | 用于SNMP v3,用于确定Context EngineID对被管理设备的MIB视图。 | -| SNMP authPassword | 用于SNMP v3,SNMP 认证密码 | -| authPassword 加密方式 | 用于SNMP v3,SNMP 认证算法 | -| SNMP privPassphrase | 用于SNMP v3,SNMP 加密密码 | -| privPassword 加密方式 | 用于SNMP v3,SNMP 加密算法 | -| 查询超时时间 | 设置查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | - -### 采集指标 - -由于华为通用交换机可查询的指标过多,详细的指标可于[华为MIB查询平台](https://info.support.huawei.com/info-finder/tool/zh/enterprise/mib) -进行查询。 - -此文档仅介绍监控模板中查询的监控指标。 - -#### 指标集合:huawei_core - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------------|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| ifIndex | 无 | 接口索引 该值大于零且全局唯一。 | -| ifDescr | 无 | 描述接口的字符串,应该包含制造商、产品名和接口软硬件的版本。 | -| ifMtu | octets | 最大传输单元。接口上可以传送的最大报文的大小。对于传输网络数据报的接口,这是接口可以传输的最大数据报的大小。 | -| ifSpeed | 比特/秒 | 估计的接口当前带宽。对于带宽无法改变或者无法准确估计的接口,该项为额定带宽值。 如果接口的带宽比该表项的值大,则该表项的值是其最大值(4,294,967,295),并且ifHighSpeed的值是接口的速率。对于没有速率概念的子层接口,该表项的值为零。 | -| ifInOctets | octets | 该接口入方向通过的总字节数,包括分桢的数据。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifInDiscards | 无 | 入方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文送往上层协议。 一个可能的原因是释放buffer的空间。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifInErrors | 无 | 出错而不会被送往上层协议的报文/传输单元个数。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifOutOctets | octets | 该接口出方向通过的总字节数,包括分桢的数据。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifOutDiscards | 无 | 出方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文发送。丢弃此类报文的一个可能原因是为了释放缓冲区空间。 在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifOutErrors | 无 | 对于面向数据包的接口,该节点表示由于错误而无法发送的数据包数量。对于面向字符或固定长度接口,该节点表示由于错误而无法传输的传输单元的数量。这种计数器的值可能在管理系统的重新初始化时会不连续,其他时间如ifCounterDiscontinuityTime的值。 | -| ifAdminStatus | 无 | 接口的理想状态。 testing(3)状态表示没有可操作的数据包通过。 当受管系统初始化时,全部接口开始于ifAdminStatus在down(2)状态。由于明确的管理动作或被管理的系统保留的每个配置信息,ifAdminStatus然后被更改为Up(1)或testing(3)状态(或保留在down(2)状态)。 | -| ifOperStatus | 无 | 当前接口的操作状态。testing(3)状态表示没有可操作的数据包可以通过。如果ifAdminStatus是down(2),则ifOperStatus应该是down(2)。 如果ifAdminStatus是改为up(1),则ifOperStatus应该更改为up(1)。如果接口准备好传输,接收网络流量; 它应该改为dormant(5)。如果接口正在等待外部动作(如串行线路等待传入连接); 它应该保持在down(2)状态,并且只有当有故障阻止它变成up(1)状态。 它应该留在notPresent(6)状态如果接口缺少(通常为硬件)组件。 | +--- +id: huawei_switch +title: 监控:华为通用交换机 +sidebar_label: 华为通用交换机 +keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] +--- + +> 对 华为交换机 的通用指标(可用性,系统信息,端口流量等)进行采集监控。 + +**使用协议:SNMP** + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|---------------------|-------------------------------------------------------------------------------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | SNMP端口号,默认为161 | +| SNMP 版本 | 所使用的SNMP版本 | +| SNMP 团体字 | 用于SNMP v1 和 SNMP v2c,用于在SNMP Agent完成认证,字符串形式。团体名包括“read”和“write”两种,执行SNMP查询操作时,采用“read”团体名进行认证;执行SNMP设置操作时,则采用“write”团体名进行认证。 | +| SNMP username | 用于SNMP v3,MSG 用户名 | +| SNMP contextName | 用于SNMP v3,用于确定Context EngineID对被管理设备的MIB视图。 | +| SNMP authPassword | 用于SNMP v3,SNMP 认证密码 | +| authPassword 加密方式 | 用于SNMP v3,SNMP 认证算法 | +| SNMP privPassphrase | 用于SNMP v3,SNMP 加密密码 | +| privPassword 加密方式 | 用于SNMP v3,SNMP 加密算法 | +| 查询超时时间 | 设置查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | + +### 采集指标 + +由于华为通用交换机可查询的指标过多,详细的指标可于[华为MIB查询平台](https://info.support.huawei.com/info-finder/tool/zh/enterprise/mib) +进行查询。 + +此文档仅介绍监控模板中查询的监控指标。 + +#### 指标集合:huawei_core + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| ifIndex | 无 | 接口索引 该值大于零且全局唯一。 | +| ifDescr | 无 | 描述接口的字符串,应该包含制造商、产品名和接口软硬件的版本。 | +| ifMtu | octets | 最大传输单元。接口上可以传送的最大报文的大小。对于传输网络数据报的接口,这是接口可以传输的最大数据报的大小。 | +| ifSpeed | 比特/秒 | 估计的接口当前带宽。对于带宽无法改变或者无法准确估计的接口,该项为额定带宽值。 如果接口的带宽比该表项的值大,则该表项的值是其最大值(4,294,967,295),并且ifHighSpeed的值是接口的速率。对于没有速率概念的子层接口,该表项的值为零。 | +| ifInOctets | octets | 该接口入方向通过的总字节数,包括分桢的数据。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifInDiscards | 无 | 入方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文送往上层协议。 一个可能的原因是释放buffer的空间。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifInErrors | 无 | 出错而不会被送往上层协议的报文/传输单元个数。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifOutOctets | octets | 该接口出方向通过的总字节数,包括分桢的数据。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifOutDiscards | 无 | 出方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文发送。丢弃此类报文的一个可能原因是为了释放缓冲区空间。 在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifOutErrors | 无 | 对于面向数据包的接口,该节点表示由于错误而无法发送的数据包数量。对于面向字符或固定长度接口,该节点表示由于错误而无法传输的传输单元的数量。这种计数器的值可能在管理系统的重新初始化时会不连续,其他时间如ifCounterDiscontinuityTime的值。 | +| ifAdminStatus | 无 | 接口的理想状态。 testing(3)状态表示没有可操作的数据包通过。 当受管系统初始化时,全部接口开始于ifAdminStatus在down(2)状态。由于明确的管理动作或被管理的系统保留的每个配置信息,ifAdminStatus然后被更改为Up(1)或testing(3)状态(或保留在down(2)状态)。 | +| ifOperStatus | 无 | 当前接口的操作状态。testing(3)状态表示没有可操作的数据包可以通过。如果ifAdminStatus是down(2),则ifOperStatus应该是down(2)。 如果ifAdminStatus是改为up(1),则ifOperStatus应该更改为up(1)。如果接口准备好传输,接收网络流量; 它应该改为dormant(5)。如果接口正在等待外部动作(如串行线路等待传入连接); 它应该保持在down(2)状态,并且只有当有故障阻止它变成up(1)状态。 它应该留在notPresent(6)状态如果接口缺少(通常为硬件)组件。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hugegraph.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hugegraph.md index 8770ababdcd..11c9a91749a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hugegraph.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/hugegraph.md @@ -4,6 +4,7 @@ title: 监控:HugeGraph监控 sidebar_label: Apache HugeGraph keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] --- + > 对HugeGraph的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,8 +15,7 @@ keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-----------|---------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 端口 | HugeGraph restserver的端口号,默认为8080。即:`restserver_port`参数值 | @@ -30,117 +30,111 @@ keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] #### 指标集合:gauges -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------------------ | -------- | --------------------------------- | -| edge-hugegraph-capacity | 无 | 表示当前图中边的容量上限 | -| edge-hugegraph-expire | 无 | 表示边数据的过期时间 | -| edge-hugegraph-hits | 无 | 表示边数据缓存的命中次数 | -| edge-hugegraph-miss | 无 | 表示边数据缓存的未命中次数 | -| edge-hugegraph-size | 无 | 表示当前图中边的数量 | -| instances | 无 | 表示当前运行的HugeGraph实例数量| -| schema-id-hugegraph-capacity | 无 | 表示图中schema ID的容量上限 | -| schema-id-hugegraph-expire | 无 | 表示schema ID数据的过期时间 | -| schema-id-hugegraph-hits | 无 | 表示schema ID数据缓存的命中次数| -| schema-id-hugegraph-miss | 无 | 表示schema ID数据缓存的未命中次数| -| schema-id-hugegraph-size | 无 | 表示当前图中schema ID的数量 | -| schema-name-hugegraph-capacity | 无 | 表示图中schema名称的容量上限 | -| schema-name-hugegraph-expire | 无 | 表示schema名称数据的过期时间 | -| schema-name-hugegraph-hits | 无 | 表示schema名称数据缓存的命中次数| -| schema-name-hugegraph-miss | 无 | 表示schema名称数据缓存的未命中次数| -| schema-name-hugegraph-size | 无 | 表示当前图中schema名称的数量 | -| token-hugegraph-capacity | 无 | 表示图中token的容量上限 | -| token-hugegraph-expire | 无 | 表示token数据的过期时间 | -| token-hugegraph-hits | 无 | 表示token数据缓存的命中次数 | -| token-hugegraph-miss | 无 | 表示token数据缓存的未命中次数 | -| token-hugegraph-size | 无 | 表示当前图中token的数量 | -| users-hugegraph-capacity | 无 | 表示图中用户的容量上限 | -| users-hugegraph-expire | 无 | 表示用户数据的过期时间 | -| users-hugegraph-hits | 无 | 表示用户数据缓存的命中次数 | -| users-hugegraph-miss | 无 | 表示用户数据缓存的未命中次数 | -| users-hugegraph-size | 无 | 表示当前图中用户的数量 | -| users_pwd-hugegraph-capacity | 无 | 表示users_pwd的容量上限 | -| users_pwd-hugegraph-expire | 无 | 表示users_pwd数据的过期时间 | -| users_pwd-hugegraph-hits | 无 | 表示users_pwd数据缓存的命中次数 | -| users_pwd-hugegraph-miss | 无 | 表示users_pwd数据缓存的未命中次数| -| users_pwd-hugegraph-size | 无 | 表示当前图中users_pwd的数量 | -| vertex-hugegraph-capacity | 无 | 表示图中顶点的容量上限 | -| vertex-hugegraph-expire | 无 | 表示顶点数据的过期时间 | -| vertex-hugegraph-hits | 无 | 表示顶点数据缓存的命中次数 | -| vertex-hugegraph-miss | 无 | 表示顶点数据缓存的未命中次数 | -| vertex-hugegraph-size | 无 | 表示当前图中顶点的数量 | -| batch-write-threads | 无 | 表示批量写入操作时的线程数 | -| max-write-threads | 无 | 表示最大写入操作的线程数 | -| pending-tasks | 无 | 表示待处理的任务数 | -| workers | 无 | 表示当前工作线程的数量 | -| average-load-penalty | 无 | 表示平均加载延迟 | -| estimated-size | 无 | 表示估计的数据大小 | -| eviction-count | 无 | 表示被驱逐的数据条数 | -| eviction-weight | 无 | 表示被驱逐数据的权重 | -| hit-count | 无 | 表示缓存命中总数 | -| hit-rate | 无 | 表示缓存命中率 | -| load-count | 无 | 表示数据加载次数 | -| load-failure-count | 无 | 表示数据加载失败次数 | -| load-failure-rate | 无 | 表示数据加载失败率 | -| load-success-count | 无 | 表示数据加载成功次数 | -| long-run-compilation-count | 无 | 表示长时间运行的编译次数 | -| miss-count | 无 | 表示缓存未命中总数 | -| miss-rate | 无 | 表示缓存未命中率 | -| request-count | 无 | 表示总的请求次数 | -| total-load-time | 无 | 表示总的数据加载时间 | -| sessions | 无 | 表示当前的活动会话数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-----------------------| +| edge-hugegraph-capacity | 无 | 表示当前图中边的容量上限 | +| edge-hugegraph-expire | 无 | 表示边数据的过期时间 | +| edge-hugegraph-hits | 无 | 表示边数据缓存的命中次数 | +| edge-hugegraph-miss | 无 | 表示边数据缓存的未命中次数 | +| edge-hugegraph-size | 无 | 表示当前图中边的数量 | +| instances | 无 | 表示当前运行的HugeGraph实例数量 | +| schema-id-hugegraph-capacity | 无 | 表示图中schema ID的容量上限 | +| schema-id-hugegraph-expire | 无 | 表示schema ID数据的过期时间 | +| schema-id-hugegraph-hits | 无 | 表示schema ID数据缓存的命中次数 | +| schema-id-hugegraph-miss | 无 | 表示schema ID数据缓存的未命中次数 | +| schema-id-hugegraph-size | 无 | 表示当前图中schema ID的数量 | +| schema-name-hugegraph-capacity | 无 | 表示图中schema名称的容量上限 | +| schema-name-hugegraph-expire | 无 | 表示schema名称数据的过期时间 | +| schema-name-hugegraph-hits | 无 | 表示schema名称数据缓存的命中次数 | +| schema-name-hugegraph-miss | 无 | 表示schema名称数据缓存的未命中次数 | +| schema-name-hugegraph-size | 无 | 表示当前图中schema名称的数量 | +| token-hugegraph-capacity | 无 | 表示图中token的容量上限 | +| token-hugegraph-expire | 无 | 表示token数据的过期时间 | +| token-hugegraph-hits | 无 | 表示token数据缓存的命中次数 | +| token-hugegraph-miss | 无 | 表示token数据缓存的未命中次数 | +| token-hugegraph-size | 无 | 表示当前图中token的数量 | +| users-hugegraph-capacity | 无 | 表示图中用户的容量上限 | +| users-hugegraph-expire | 无 | 表示用户数据的过期时间 | +| users-hugegraph-hits | 无 | 表示用户数据缓存的命中次数 | +| users-hugegraph-miss | 无 | 表示用户数据缓存的未命中次数 | +| users-hugegraph-size | 无 | 表示当前图中用户的数量 | +| users_pwd-hugegraph-capacity | 无 | 表示users_pwd的容量上限 | +| users_pwd-hugegraph-expire | 无 | 表示users_pwd数据的过期时间 | +| users_pwd-hugegraph-hits | 无 | 表示users_pwd数据缓存的命中次数 | +| users_pwd-hugegraph-miss | 无 | 表示users_pwd数据缓存的未命中次数 | +| users_pwd-hugegraph-size | 无 | 表示当前图中users_pwd的数量 | +| vertex-hugegraph-capacity | 无 | 表示图中顶点的容量上限 | +| vertex-hugegraph-expire | 无 | 表示顶点数据的过期时间 | +| vertex-hugegraph-hits | 无 | 表示顶点数据缓存的命中次数 | +| vertex-hugegraph-miss | 无 | 表示顶点数据缓存的未命中次数 | +| vertex-hugegraph-size | 无 | 表示当前图中顶点的数量 | +| batch-write-threads | 无 | 表示批量写入操作时的线程数 | +| max-write-threads | 无 | 表示最大写入操作的线程数 | +| pending-tasks | 无 | 表示待处理的任务数 | +| workers | 无 | 表示当前工作线程的数量 | +| average-load-penalty | 无 | 表示平均加载延迟 | +| estimated-size | 无 | 表示估计的数据大小 | +| eviction-count | 无 | 表示被驱逐的数据条数 | +| eviction-weight | 无 | 表示被驱逐数据的权重 | +| hit-count | 无 | 表示缓存命中总数 | +| hit-rate | 无 | 表示缓存命中率 | +| load-count | 无 | 表示数据加载次数 | +| load-failure-count | 无 | 表示数据加载失败次数 | +| load-failure-rate | 无 | 表示数据加载失败率 | +| load-success-count | 无 | 表示数据加载成功次数 | +| long-run-compilation-count | 无 | 表示长时间运行的编译次数 | +| miss-count | 无 | 表示缓存未命中总数 | +| miss-rate | 无 | 表示缓存未命中率 | +| request-count | 无 | 表示总的请求次数 | +| total-load-time | 无 | 表示总的数据加载时间 | +| sessions | 无 | 表示当前的活动会话数量 | #### 指标集合:counters - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------------------------------- | -------- | ---------------------------------------- | -| GET-SUCCESS_COUNTER | 无 | 记录GET请求成功的次数 | -| GET-TOTAL_COUNTER | 无 | 记录GET请求的总次数 | -| favicon-ico-GET-FAILED_COUNTER | 无 | 记录获取favicon.ico失败的GET请求次数 | -| favicon-ico-GET-TOTAL_COUNTER | 无 | 记录获取favicon.ico的GET请求总次数 | -| graphs-HEAD-FAILED_COUNTER | 无 | 记录graphs资源的HEAD请求失败的次数 | -| graphs-HEAD-SUCCESS_COUNTER | 无 | 记录graphs资源的HEAD请求成功的次数 | -| graphs-HEAD-TOTAL_COUNTER | 无 | 记录graphs资源的HEAD请求的总次数 | -| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求成功的次数 | -| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求的总次数 | -| metircs-GET-FAILED_COUNTER | 无 | 记录获取metrics失败的GET请求次数 | -| metircs-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | -| metrics-GET-SUCCESS_COUNTER | 无 | 记录获取metrics成功的GET请求次数 | -| metrics-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | -| metrics-gauges-GET-SUCCESS_COUNTER | 无 | 记录获取metrics gauges成功的GET请求次数 | -| metrics-gauges-GET-TOTAL_COUNTER | 无 | 记录获取metrics gauges的GET请求总次数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------------------------------------|------|------------------------------| +| GET-SUCCESS_COUNTER | 无 | 记录GET请求成功的次数 | +| GET-TOTAL_COUNTER | 无 | 记录GET请求的总次数 | +| favicon-ico-GET-FAILED_COUNTER | 无 | 记录获取favicon.ico失败的GET请求次数 | +| favicon-ico-GET-TOTAL_COUNTER | 无 | 记录获取favicon.ico的GET请求总次数 | +| graphs-HEAD-FAILED_COUNTER | 无 | 记录graphs资源的HEAD请求失败的次数 | +| graphs-HEAD-SUCCESS_COUNTER | 无 | 记录graphs资源的HEAD请求成功的次数 | +| graphs-HEAD-TOTAL_COUNTER | 无 | 记录graphs资源的HEAD请求的总次数 | +| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求成功的次数 | +| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求的总次数 | +| metircs-GET-FAILED_COUNTER | 无 | 记录获取metrics失败的GET请求次数 | +| metircs-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | +| metrics-GET-SUCCESS_COUNTER | 无 | 记录获取metrics成功的GET请求次数 | +| metrics-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | +| metrics-gauges-GET-SUCCESS_COUNTER | 无 | 记录获取metrics gauges成功的GET请求次数 | +| metrics-gauges-GET-TOTAL_COUNTER | 无 | 记录获取metrics gauges的GET请求总次数 | #### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------------------------------- | -------- | -------------------------------------------------- | -| mem | 无 | 表示系统的总内存量 | -| mem_total | 无 | 表示系统的总内存量(与mem相同) | -| mem_used | 无 | 表示系统当前使用的内存量 | -| mem_free | 无 | 表示系统空闲的内存量 | -| mem_unit | 无 | 表示内存量的单位(如字节、千字节、兆字节等) | -| processors | 无 | 表示系统的处理器数量 | -| uptime | 无 | 表示系统运行时间,即从启动到现在的时间 | -| systemload_average | 无 | 表示系统的平均负载,反映了系统的繁忙程度 | -| heap_committed | 无 | 表示JVM堆内存的承诺大小,即保证可供JVM使用的堆内存大小 | -| heap_init | 无 | 表示JVM堆内存的初始大小 | -| heap_used | 无 | 表示JVM当前使用的堆内存大小 | -| heap_max | 无 | 表示JVM堆内存的最大可使用大小 | -| nonheap_committed | 无 | 表示JVM非堆内存的承诺大小 | -| nonheap_init | 无 | 表示JVM非堆内存的初始大小 | -| nonheap_used | 无 | 表示JVM当前使用的非堆内存大小 | -| nonheap_max | 无 | 表示JVM非堆内存的最大可使用大小 | -| thread_peak | 无 | 表示自JVM启动以来峰值线程数 | -| thread_daemon | 无 | 表示当前活跃的守护线程数 | -| thread_total_started | 无 | 表示自JVM启动以来总共启动过的线程数 | -| thread_count | 无 | 表示当前活跃的线程数 | -| garbage_collector_g1_young_generation_count | 无 | 表示G1垃圾收集器年轻代垃圾收集的次数 | -| garbage_collector_g1_young_generation_time | 无 | 表示G1垃圾收集器年轻代垃圾收集的总时间 | -| garbage_collector_g1_old_generation_count | 无 | 表示G1垃圾收集器老年代垃圾收集的次数 | -| garbage_collector_g1_old_generation_time | 无 | 表示G1垃圾收集器老年代垃圾收集的总时间 | -| garbage_collector_time_unit | 无 | 表示垃圾收集时间的单位(如毫秒、秒等) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------------------|------|--------------------------------| +| mem | 无 | 表示系统的总内存量 | +| mem_total | 无 | 表示系统的总内存量(与mem相同) | +| mem_used | 无 | 表示系统当前使用的内存量 | +| mem_free | 无 | 表示系统空闲的内存量 | +| mem_unit | 无 | 表示内存量的单位(如字节、千字节、兆字节等) | +| processors | 无 | 表示系统的处理器数量 | +| uptime | 无 | 表示系统运行时间,即从启动到现在的时间 | +| systemload_average | 无 | 表示系统的平均负载,反映了系统的繁忙程度 | +| heap_committed | 无 | 表示JVM堆内存的承诺大小,即保证可供JVM使用的堆内存大小 | +| heap_init | 无 | 表示JVM堆内存的初始大小 | +| heap_used | 无 | 表示JVM当前使用的堆内存大小 | +| heap_max | 无 | 表示JVM堆内存的最大可使用大小 | +| nonheap_committed | 无 | 表示JVM非堆内存的承诺大小 | +| nonheap_init | 无 | 表示JVM非堆内存的初始大小 | +| nonheap_used | 无 | 表示JVM当前使用的非堆内存大小 | +| nonheap_max | 无 | 表示JVM非堆内存的最大可使用大小 | +| thread_peak | 无 | 表示自JVM启动以来峰值线程数 | +| thread_daemon | 无 | 表示当前活跃的守护线程数 | +| thread_total_started | 无 | 表示自JVM启动以来总共启动过的线程数 | +| thread_count | 无 | 表示当前活跃的线程数 | +| garbage_collector_g1_young_generation_count | 无 | 表示G1垃圾收集器年轻代垃圾收集的次数 | +| garbage_collector_g1_young_generation_time | 无 | 表示G1垃圾收集器年轻代垃圾收集的总时间 | +| garbage_collector_g1_old_generation_count | 无 | 表示G1垃圾收集器老年代垃圾收集的次数 | +| garbage_collector_g1_old_generation_time | 无 | 表示G1垃圾收集器老年代垃圾收集的总时间 | +| garbage_collector_time_unit | 无 | 表示垃圾收集时间的单位(如毫秒、秒等) | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iceberg.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iceberg.md new file mode 100644 index 00000000000..8bb6a51aeab --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iceberg.md @@ -0,0 +1,76 @@ +--- +id: iceberg +Title: 监控 Apache Iceberg +sidebar_label: Apache Iceberg +keywords: [开源监控工具, 开源 Apache Iceberg 监控工具, 监控 Apache Iceberg 指标] +--- + +> 收集和监控由 Apache Iceberg 提供的常规性能指标。 + +## 监控前操作 + +如果您想使用此监控类型监控 Apache Iceberg 的信息,您需要以远程模式启动您的 Hive Server2。 + +**1、启用元数据存储:** + +```shell +hive --service metastore & +``` + +**2. 启用 Hive Server2:** + +```shell +hive --service hiveserver2 & +``` + +### 配置参数 + +| 参数名称 | 参数描述 | +|----------|--------------------------------------------------------| +| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | +| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | +| 端口 | 数据库提供的默认端口为 10002。 | +| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | + +### 采集指标 + +#### 指标收集: 基本信息 + +| 指标名称 | 指标单位 | 指标描述 | +|--------|------|-----------------------------| +| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | +| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | +| 虚拟机版本 | 无 | 虚拟机的版本。 | +| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | + +#### 指标收集: 环境信息 + +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|--------------------------------| +| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | +| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | +| 操作系统版本 | 无 | 操作系统的版本。 | +| 操作系统架构 | 无 | 操作系统的架构。 | +| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | +| java运行环境版本 | 无 | Java 运行时环境的版本。 | + +#### 指标收集: 线程信息 + +| 指标名称 | 指标单位 | 指标描述 | +|--------|------|------------------------------| +| 线程数量 | None | HiveServer2 当前正在使用的线程数。 | +| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | +| 最高线程数 | None | HiveServer2 在任何给定时间使用的最高线程数。 | +| 守护线程数 | None | HiveServer2 当前活动的守护线程数。 | + +#### 指标收集: 代码缓存 + +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|---------------| +| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | +| 内存池初始内存 | MB | 内存池请求的初始内存量。 | +| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | +| 内存池内存使用量 | MB | 内存池已使用内存量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/imap.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/imap.md index 4b04a003ed6..aba2eef0f21 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/imap.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/imap.md @@ -5,7 +5,7 @@ sidebar_label: 邮箱信息监控 keywords: [开源监控系统, 开源网络监控, 邮箱信息监控] --- -> IMAP,即Internet Message Access Protocol(互联网邮件访问协议),您可以通过这种协议从邮件服务器上获取邮箱的详细信息 +> IMAP,即Internet Message Access Protocol(互联网邮件访问协议),您可以通过这种协议从邮件服务器上获取邮箱的详细信息 > 您可以点击`新建 QQ 邮箱监控`或`新建网易邮箱监控`并进行配置,或者选择`更多操作`,导入已有配置。 ### 启用 IMAP 服务 @@ -21,7 +21,7 @@ keywords: [开源监控系统, 开源网络监控, 邮箱信息监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |:----------|--------------------------------------------------| | 监控Host | IMAP 邮件服务器域名。注意⚠️不带协议头 (例如: https://, http://) 。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -40,7 +40,7 @@ keywords: [开源监控系统, 开源网络监控, 邮箱信息监控] #### 指标集合:(邮箱中文件夹名称) -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|---------------| | 邮件总数 | | 该文件夹下所有邮件数量 | | 最近收到邮件总数 | | 该文件夹下最近收到邮件数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb.md index 1881d79f4ee..1b3bda87fe3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb.md @@ -5,64 +5,61 @@ sidebar_label: InfluxDB 数据库 keywords: [开源监控系统, 开源数据库监控, InfluxDB 数据库监控] --- - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为8086。 | -| URL | 数据库连接URL,一般是由host拼接,不需要添加 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为8086。 | +| URL | 数据库连接URL,一般是由host拼接,不需要添加 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:influxdb 基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | -|------------| ----------- |--------| -| build_date | 无 | 创建日期 | -| os | 无 | 操作系统 | -| cpus | 无 | cpus | -| version | 无 | 版本号 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|--------| +| build_date | 无 | 创建日期 | +| os | 无 | 操作系统 | +| cpus | 无 | cpus | +| version | 无 | 版本号 | #### 指标集合:http 响应时间 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|---------| | handler | 无 | handler | | path | 无 | 路径 | | response_code | 无 | 返回code | | method | 无 | 请求方法 | | user_agent | 无 | 用户代理 | -| status | 无 | 状态 | +| status | 无 | 状态 | #### 指标集合:正在排队的 TSM 数 -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------------------------------|------|------------| -| bucket | 无 | 存储桶 | -| engine | 无 | 引擎类型 | -| id | 无 | 标识符 | -| level | 无 | 级别 | -| path | 无 | 数据文件路径 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| bucket | 无 | 存储桶 | +| engine | 无 | 引擎类型 | +| id | 无 | 标识符 | +| level | 无 | 级别 | +| path | 无 | 数据文件路径 | #### 指标集合:HTTP写入请求的字节数量 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------| -| endpoint | 无 | 终点 | -| org_id | 无 | 组织标识符 | -| status | 无 | 状态 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| endpoint | 无 | 终点 | +| org_id | 无 | 组织标识符 | +| status | 无 | 状态 | #### 指标集合:质量控制请求总数 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------| -| result | 无 | 结果 | -| org | 无 | 组织标识符 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| result | 无 | 结果 | +| org | 无 | 组织标识符 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb_promql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb_promql.md index ac56245fee4..5cb8d241015 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb_promql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/influxdb_promql.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合:basic_influxdb_memstats_alloc -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_database_numMeasurements -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | job | 无 | 指标名称 | | instance | 无 | 指标所属实例 | @@ -46,7 +46,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_query_rate_seconds -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | @@ -54,10 +54,8 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_queryExecutor_queriesFinished_10s -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | | value | 无 | 指标值 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iotdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iotdb.md index 0f0dc0e0ecb..88a20e4ab97 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iotdb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/iotdb.md @@ -5,49 +5,49 @@ sidebar_label: IoTDB数据库 keywords: [开源监控系统, 开源数据库监控, IoTDB数据库监控] --- -> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 +> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 -## 监控前操作 +## 监控前操作 -您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 +您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 -开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) +开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) -主要如下步骤: +主要如下步骤: 1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server -``` -# 是否启动监控模块,默认为false -enableMetric: true - -# 是否启用操作延迟统计 -enablePerformanceStat: false - -# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 -metricReporterList: - - JMX - - PROMETHEUS - -# 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. 重启 IoTDB, 打开浏览器或者用curl 访问 http://ip:9091/metrics, 就能看到metric数据了。 + ```text + # 是否启动监控模块,默认为false + enableMetric: true + + # 是否启用操作延迟统计 + enablePerformanceStat: false + + # 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 + metricReporterList: + - JMX + - PROMETHEUS + + # 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] + monitorType: MICROMETER + + # 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] + metricLevel: IMPORTANT + + # 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] + predefinedMetrics: + - JVM + - FILE + ``` + +2. 重启 IoTDB, 打开浏览器或者用curl 访问 , 就能看到metric数据了。 3. 在 HertzBeat 添加对应 IoTDB 监控即可。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -57,37 +57,37 @@ predefinedMetrics: | 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | | 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:cluster_node_status +#### 指标集合:cluster_node_status -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- |------|-------------------------| +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|-------------------------| | name | 无 | 节点名称IP | | status | 无 | 节点状态,1=online 2=offline | #### 指标集合:jvm_memory_committed_bytes -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------|------|------------------| | area | 无 | heap内存或nonheap内存 | | id | 无 | 内存区块 | -| value | MB | 当前向JVM申请的内存大小 | +| value | MB | 当前向JVM申请的内存大小 | #### 指标集合:jvm_memory_used_bytes -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| | area | 无 | heap内存或nonheap内存 | | id | 无 | 内存区块 | -| value | MB | JVM已使用内存大小 | +| value | MB | JVM已使用内存大小 | #### 指标集合:jvm_threads_states_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------| -| state | 无 | 线程状态 | -| count | 无 | 线程状态对应线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------| +| state | 无 | 线程状态 | +| count | 无 | 线程状态对应线程数量 | #### 指标集合:quantity 业务数据 @@ -99,22 +99,22 @@ predefinedMetrics: #### 指标集合:cache_hit 缓存 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------------------------------------------| -| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------| +| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | +| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | #### 指标集合:queue 任务队列 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|---------------------------------------------------| -| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | -| status | 无 | 状态 running/waiting | -| value | 无 | 当前时间任务数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|----------------------------------------------| +| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | +| status | 无 | 状态 running/waiting | +| value | 无 | 当前时间任务数 | #### 指标集合:thrift_connections -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-------------| -| name | 无 | 名称 | -| connection | 无 | thrift当前连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|-------------| +| name | 无 | 名称 | +| connection | 无 | thrift当前连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/issue.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/issue.md index b7414f878b1..27e9c63b3ba 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/issue.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/issue.md @@ -1,59 +1,65 @@ --- id: issue title: 常见问题 -sidebar_label: 常见问题 +sidebar_label: 常见问题 --- -### 监控常见问题 +### 监控常见问题 -1. ** 页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名 ** -> 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http +1. **页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名** -2. ** 网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK ** -> 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) + > 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http + +2. **网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK** + + > 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) 3. 安装包部署的hertzbeat下ping连通性监控异常 -安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 + + > 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 + > docker安装默认启用无此问题 + > 详见 4. 配置了k8s监控,但是实际监控时间并未按照正确间隔时间执行 -请参考下面几点排查问题: -> 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 -> 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 -> 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine + 请参考下面几点排查问题: + + > 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 + > 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 + > 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine 5. 配置http api监控,用于进行业务接口探测,确保业务可以用,另外接口有进行token鉴权校验,"Authorization:Bearer eyJhbGciOiJIUzI1....",配置后测试,提示“StatusCode 401”。服务端应用收到的token为"Authorization:Bearer%20eyJhbGciOiJIUzI1....",hertzbeat对空格进行转义为“%20”,服务器没有转义导致鉴权失败,建议转义功能作为可选项。 +### Docker部署常见问题 -### Docker部署常见问题 +1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** + 此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` + > 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP + > 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 +2. **按照流程部署,访问 无界面** + 请参考下面几点排查问题: + + > 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 + > 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 + +3. **日志报错TDengine连接或插入SQL失败** -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter ### 安装包部署常见问题 -1. **按照流程部署,访问 http://ip:1157/ 无界面** +1. **按照流程部署,访问 无界面** 请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 -2. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + > 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 + > 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 +2. **日志报错TDengine连接或插入SQL失败** + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jetty.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jetty.md index 04a15823529..5e5603783cc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jetty.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jetty.md @@ -15,84 +15,80 @@ keywords: [开源监控系统, 开源中间件监控, Jetty应用服务器监控 #### Jetty应用服务器开启JMX协议步骤 -[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. 在 Jetty 启动 JMX JMX-REMOTE 模块 - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 - -2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 - -**`localhost` 需修改为对外暴露 IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` +[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) + +1. 在 Jetty 启动 JMX JMX-REMOTE 模块 + + ```shell + java -jar $JETTY_HOME/start.jar --add-module=jmx + java -jar $JETTY_HOME/start.jar --add-module=jmx-remote + ``` + + 命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 + +2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 + + **`localhost` 需修改为对外暴露 IP** + + ```text + ## The host/address to bind the RMI server to. + # jetty.jmxremote.rmiserverhost=localhost + + ## The port the RMI server listens to (0 means a random port is chosen). + # jetty.jmxremote.rmiserverport=1099 + + ## The host/address to bind the RMI registry to. + # jetty.jmxremote.rmiregistryhost=localhost + + ## The port the RMI registry listens to. + # jetty.jmxremote.rmiregistryport=1099 + + ## The host name exported in the RMI stub. + -Djava.rmi.server.hostname=localhost + ``` 3. 重启 Jetty Server 即可。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jvm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jvm.md index c97cc73b003..3d9e96e55e1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jvm.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/jvm.md @@ -17,7 +17,7 @@ keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] 应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP -参考文档: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote +参考文档: ```shell -Djava.rmi.server.hostname=对外ip地址 @@ -28,57 +28,53 @@ keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache (限JDK8及以下) -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka.md index 2b4ed0514b7..8663360a9ad 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka.md @@ -7,7 +7,7 @@ keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] > 对Kafka的通用性能指标进行采集监控 -**使用协议:JMX** +**使用协议:JMX** ### 监控前操作 @@ -17,86 +17,79 @@ keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] 2. 修改 Kafka 启动脚本 -修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` -在脚本正文(即非注释行)的第一行前添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 + 修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` + 在脚本正文(即非注释行)的第一行前添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# 这是最后一行本来就存在的 -# exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` + ```shell + export JMX_PORT=9999; + export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; + + # 这是最后一行本来就存在的 + # exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" + ``` 3. 重启 Kafka 服务 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:server_info -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Version | 无 | Kafka版本 | -| StartTimeMs | ms | 运行时间 | -| CommitId | 无 | 版本提交ID | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------| +| Version | 无 | Kafka版本 | +| StartTimeMs | ms | 运行时间 | +| CommitId | 无 | 版本提交ID | #### 指标集合:code_cache -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:active_controller_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 活跃监控器数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------| +| Value | 个 | 活跃监控器数量 | #### 指标集合:broker_partition_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 分区数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------| +| Value | 个 | 分区数量 | #### 指标集合:broker_leader_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 领导者数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------| +| Value | 个 | 领导者数量 | #### 指标集合:broker_handler_avg_percent 请求处理器空闲率 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| EventType | 无 | 类型 | -| RateUnit | 具体情况具体分析 | 单位 | -| Count | 个 | 数量 | -| OneMinuteRate | % | 一分钟处理率 | -| FiveMinuteRate | % | 五分钟处理率 | -| MeanRate | 无 | 平均处理率 | -| FifteenMinuteRate | 无 | 十五分钟处理率 | - - -> 其他指标见文知意,欢迎贡献一起优化文档。 - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|----------|---------| +| EventType | 无 | 类型 | +| RateUnit | 具体情况具体分析 | 单位 | +| Count | 个 | 数量 | +| OneMinuteRate | % | 一分钟处理率 | +| FiveMinuteRate | % | 五分钟处理率 | +| MeanRate | 无 | 平均处理率 | +| FifteenMinuteRate | 无 | 十五分钟处理率 | + +> 其他指标见文知意,欢迎贡献一起优化文档。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka_promql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka_promql.md index a0b0b625485..f75ee33ba77 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka_promql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kafka_promql.md @@ -15,7 +15,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -34,7 +34,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL #### 指标集合:kafka_brokers -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | \_\_name__ | 无 | 指标名称 | | instance | 无 | 指标所属实例 | @@ -43,7 +43,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL #### 指标集合: kafka_topic_partitions -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | \_\_name__ | 无 | 指标名称 | | instance | 无 | 指标所属实例 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kingbase.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kingbase.md new file mode 100644 index 00000000000..febaa81db55 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kingbase.md @@ -0,0 +1,55 @@ +--- +id: kingbase +title: 监控:Kingbase数据库监控 +sidebar_label: Kingbase数据库 +keywords: [开源监控系统, 开源数据库监控, Kingbase数据库监控] +--- + +> 对Kingbase数据库的通用性能指标进行采集监控。支持Kingbase V8R6+。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:basic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | + +#### 指标集合:state + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|------------------------------------------------------------------------| +| name | 无 | 数据库名称,或share-object为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 Kingbase 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | + +#### 指标集合:activity + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kubernetes.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kubernetes.md index f45da8d9b27..58ed7e3fcf3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kubernetes.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/kubernetes.md @@ -7,28 +7,29 @@ keywords: [开源监控系统, 开源Kubernetes监控] > 对kubernetes的通用性能指标进行采集监控。 - ## 监控前操作 如果想要监控 `Kubernetes` 中的信息,则需要获取到可访问Api Server的授权TOKEN,让采集请求获取到对应的信息。 -参考获取token步骤 +参考获取token步骤 -#### 方式一: +### 方式一 1. 创建service account并绑定默认cluster-admin管理员集群角色 -```kubectl create serviceaccount dashboard-admin -n kube-system``` + ```kubectl create serviceaccount dashboard-admin -n kube-system``` 2. 用户授权 + ```shell + kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin + kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' + kubectl describe secret {secret} -n kube-system + ``` + +### 方式二 + ```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` -#### 方式二: -``` kubectl create serviceaccount cluster-admin kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin @@ -36,13 +37,14 @@ kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-adm kubectl create token --duration=1000h cluster-admin ``` + ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| APiServer端口 | K8s APiServer端口,默认6443 | +| APiServer端口 | K8s APiServer端口,默认6443 | | token | 授权Access Token | | URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | | 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | @@ -53,44 +55,44 @@ kubectl create token --duration=1000h cluster-admin #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------| -| node_name | 无 | 节点名称 | -| is_ready | 无 | 节点状态 | -| capacity_cpu | 无 | CPU容量 | -| allocatable_cpu | 无 | 已分配CPU | -| capacity_memory | 无 | 内存容量 | -| allocatable_memory | 无 | 已分配内存 | -| creation_time | 无 | 节点创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------| +| node_name | 无 | 节点名称 | +| is_ready | 无 | 节点状态 | +| capacity_cpu | 无 | CPU容量 | +| allocatable_cpu | 无 | 已分配CPU | +| capacity_memory | 无 | 内存容量 | +| allocatable_memory | 无 | 已分配内存 | +| creation_time | 无 | 节点创建时间 | #### 指标集合:namespaces -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- |-------------| -| namespace | 无 | namespace名称 | -| status | 无 | 状态 | -| creation_time | 无 | 创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-------------| +| namespace | 无 | namespace名称 | +| status | 无 | 状态 | +| creation_time | 无 | 创建时间 | #### 指标集合:pods -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- |----------------| -| pod | 无 | pod名称 | -| namespace | 无 | pod所属namespace | -| status | 无 | pod状态 | -| restart | 无 | 重启次数 | -| host_ip | 无 | 所在主机IP | -| pod_ip | 无 | pod ip | -| creation_time | 无 | pod创建时间 | -| start_time | 无 | pod启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|----------------| +| pod | 无 | pod名称 | +| namespace | 无 | pod所属namespace | +| status | 无 | pod状态 | +| restart | 无 | 重启次数 | +| host_ip | 无 | 所在主机IP | +| pod_ip | 无 | pod ip | +| creation_time | 无 | pod创建时间 | +| start_time | 无 | pod启动时间 | #### 指标集合:services -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------------------------------------------| -| service | 无 | service名称 | -| namespace | 无 | service所属namespace | -| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | 无 | cluster ip | -| selector | 无 | tag selector匹配 | -| creation_time | 无 | 创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|--------------------------------------------------------| +| service | 无 | service名称 | +| namespace | 无 | service所属namespace | +| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | +| cluster_ip | 无 | cluster ip | +| selector | 无 | tag selector匹配 | +| creation_time | 无 | 创建时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux.md index 853be6610b4..abd87de1ef8 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/linux.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, Linux操作系统监控 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mariadb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mariadb.md index 5fd59466717..e960d620649 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mariadb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mariadb.md @@ -7,51 +7,53 @@ keywords: [开源监控系统, 开源数据库监控, MariaDB数据库监控] > 对MariaDB数据库的通用性能指标进行采集监控。支持MariaDB5+。 +### 注意,必须添加 MYSQL jdbc 驱动 jar + +- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.1.0.jar. +- 将此 jar 包拷贝放入 HertzBeat 的安装目录下的 `ext-lib` 目录下. +- 重启 HertzBeat 服务。 + ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为3306。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|------------| +| version | 无 | 数据库版本 | +| port | 无 | 数据库暴露服务端口 | +| datadir | 无 | 数据库存储数据盘地址 | +| max_connections | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MariaDB已经创建的总连接数 | -| threads_connected | 无 | MariaDB已经连接的连接数 | -| threads_cached | 无 | MariaDB当前缓存的连接数 | -| threads_running | 无 | MariaDB当前活跃的连接数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|------------------| +| threads_created | 无 | MariaDB已经创建的总连接数 | +| threads_connected | 无 | MariaDB已经连接的连接数 | +| threads_cached | 无 | MariaDB当前缓存的连接数 | +| threads_running | 无 | MariaDB当前活跃的连接数 | #### 指标集合:innodb -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|-------------------------| +| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | +| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | +| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | +| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/memcached.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/memcached.md index 0debad01ce9..1066d3934dc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/memcached.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/memcached.md @@ -30,11 +30,11 @@ STAT version 1.4.15 ... ``` -**帮助文档: https://www.runoob.com/memcached/memcached-stats.html** +**帮助文档: ** ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------|---------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不带协议头(例如:https://,http://) | | 监控名称 | 标识此监控的名称。名称需要唯一 | @@ -47,7 +47,7 @@ STAT version 1.4.15 #### 指标集:server_info -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------| | pid | 无 | Memcache 服务器进程 ID | | uptime | s | 服务器已运行的秒数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb.md index 23c4a866809..46d602fac9f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:构建信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------------| | version | 无 | MongoDB版本信息 | | gitVersion | 无 | 源代码git版本 | @@ -39,7 +39,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:服务器文档 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|--------| | deleted | 无 | 已删除数 | | inserted | 无 | 已插入数 | @@ -48,21 +48,21 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:服务器操作 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|-------------------| | scanAndOrder | 无 | 执行查询时需要扫描并进行排序的次数 | | writeConflicts | 无 | 写冲突的次数 | #### 指标集合: 服务器_ttl -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------------------| | deletedDocuments | 无 | 删除的过期文档数量 | | passes | 无 | TTL清理过程的总传递次数,每次传递会检查并删除过期的文档 | #### 指标集合:系统信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-----------------------| | currentTime | 无 | 当前时间 | | hostname | 无 | 主机名 | @@ -75,7 +75,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:操作系统信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|--------| | type | 无 | 操作系统类型 | | name | 无 | 操作系统名称 | @@ -83,7 +83,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:额外信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------|------|----------------------| | versionString | 无 | 版本 | | libcVersion | 无 | 标准库版本 | @@ -93,4 +93,3 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] | pageSize | 无 | 内存页大小 | | numPages | 无 | 内存页数量 | | maxOpenFiles | 无 | 系统中允许打开的最大文件数 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb_atlas.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb_atlas.md index c2d24ed8c22..8747eb4660d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb_atlas.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mongodb_atlas.md @@ -4,79 +4,74 @@ title: 监控:MongoDB Atlas 数据库 sidebar_label: MongoDB Atlas 数据库 keywords: [ 开源监控系统, 开源数据库监控, MongoDB Atlas 数据库监控 ] --- + > 对MongoDB Atlas 数据库的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 用户名 | MongoDB用户名,可选。 | -| 密码 | MongoDB密码,可选。 | -| 数据库 | 数据库名称 | -| 认证数据库 | 存储用户凭据的数据库名称。 | -| 连接超时时间 | 设置连接MongoDB未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 集群模式 | MongoDB Atlas集群取值为:mongodb-atlas | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | -| 绑定标签 | 用于对监控资源进行分类管理。 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 用户名 | MongoDB用户名,可选。 | +| 密码 | MongoDB密码,可选。 | +| 数据库 | 数据库名称 | +| 认证数据库 | 存储用户凭据的数据库名称。 | +| 连接超时时间 | 设置连接MongoDB未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| 集群模式 | MongoDB Atlas集群取值为:mongodb-atlas | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | +| 绑定标签 | 用于对监控资源进行分类管理。 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | ### 采集指标 #### 指标集合:构建信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ----------------------------- | -| version | 无 | MongoDB版本信息 | -| gitVersion | 无 | 源代码git版本 | -| sysInfo | 无 | 系统信息 | -| allocator | 无 | MongoDB所使用的内存分配器 | -| javascriptEngine | 无 | MongoDB所使用的JavaScript引擎 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------|------|-------------------------| +| version | 无 | MongoDB版本信息 | +| gitVersion | 无 | 源代码git版本 | +| sysInfo | 无 | 系统信息 | +| allocator | 无 | MongoDB所使用的内存分配器 | +| javascriptEngine | 无 | MongoDB所使用的JavaScript引擎 | #### 指标集合:服务器文档 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| delete | 无 | 已删除数 | -| insert | 无 | 已插入数 | -| update | 无 | 更新数 | -| query | 无 | 查询数 | -| getmore | 无 | 光标中剩余文档的请求数 | -| command | 无 | 执行命令操作的总数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|-------------| +| delete | 无 | 已删除数 | +| insert | 无 | 已插入数 | +| update | 无 | 更新数 | +| query | 无 | 查询数 | +| getmore | 无 | 光标中剩余文档的请求数 | +| command | 无 | 执行命令操作的总数 | #### 指标集合:网络操作 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | ---------------------------------- | -| Bytes In | 无 | 执行查询时需要扫描并进行排序的次数 | -| Bytes Out | 无 | 写冲突的次数 | -| Request Num | 无 | 请求数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|-------------------| +| Bytes In | 无 | 执行查询时需要扫描并进行排序的次数 | +| Bytes Out | 无 | 写冲突的次数 | +| Request Num | 无 | 请求数 | #### 指标集合: 连接信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------- | -------- | ------------------ | -| Current Connections | 无 | 当前正在进行连接数 | -| Available Connections | 无 | 可用连接数 | -| Total Created Connections | 无 | 创建的连接总数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|-----------| +| Current Connections | 无 | 当前正在进行连接数 | +| Available Connections | 无 | 可用连接数 | +| Total Created Connections | 无 | 创建的连接总数 | #### 指标集合:数据库统计 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------- | -------- | ---------------- | -| Database Name | 无 | 数据库名称 | -| Collections | 无 | 集合数 | -| Views | 无 | 视图数 | -| Objects | 无 | 文档数 | -| Document Avg Size | Bytes | 文档平均大小 | -| Document Size | Bytes | 文档大小 | -| Storage Size | Bytes | 使用存储空间大小 | -| Indexes | 无 | 索引数 | -| Index Size | Bytes | 索引大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|-------|----------| +| Database Name | 无 | 数据库名称 | +| Collections | 无 | 集合数 | +| Views | 无 | 视图数 | +| Objects | 无 | 文档数 | +| Document Avg Size | Bytes | 文档平均大小 | +| Document Size | Bytes | 文档大小 | +| Storage Size | Bytes | 使用存储空间大小 | +| Indexes | 无 | 索引数 | +| Index Size | Bytes | 索引大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mysql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mysql.md index f93b2fdd736..46046f095c9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mysql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/mysql.md @@ -7,56 +7,53 @@ keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] > 对MYSQL数据库的通用性能指标进行采集监控。支持MYSQL5+。 -### 添加 MYSQL jdbc 驱动 jar +### 注意,必须添加 MYSQL jdbc 驱动 jar -- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.1.0.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 +- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.1.0.jar. - 将此 jar 包拷贝放入 HertzBeat 的安装目录下的 `ext-lib` 目录下. +- 重启 HertzBeat 服务。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为3306。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|------------| +| version | 无 | 数据库版本 | +| port | 无 | 数据库暴露服务端口 | +| datadir | 无 | 数据库存储数据盘地址 | +| max_connections | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MySql已经创建的总连接数 | -| threads_connected | 无 | MySql已经连接的连接数 | -| threads_cached | 无 | MySql当前缓存的连接数 | -| threads_running | 无 | MySql当前活跃的连接数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|----------------| +| threads_created | 无 | MySql已经创建的总连接数 | +| threads_connected | 无 | MySql已经连接的连接数 | +| threads_cached | 无 | MySql当前缓存的连接数 | +| threads_running | 无 | MySql当前活跃的连接数 | #### 指标集合:innodb -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|-------------------------| +| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | +| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | +| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | +| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nacos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nacos.md index ef643cf2fe3..f95da705d58 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nacos.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nacos.md @@ -1,93 +1,94 @@ ---- -id: nacos -title: 监控:Nacos分布式监控 -sidebar_label: Nacos分布式 -keywords: [开源监控系统, 中间件监控, Nacos分布式监控] ---- - -> 通过调用 Nacos Metrics 接口对 Nacos 注册配置中心服务的通用指标进行采集监控。 - -### 监控前操作 - -#### 搭建Nacos集群暴露metrics数据 - -1. 按照[部署文档](https://nacos.io/zh-cn/docs/deployment.html)搭建好Nacos集群。 -2. 配置application.properties文件,暴露metrics数据。 -``` -management.endpoints.web.exposure.include=* -``` -3. 访问```{ip}:8848/nacos/actuator/prometheus```,查看是否能访问到metrics数据。 - -更多信息请参考[Nacos 监控手册](https://nacos.io/zh-cn/docs/monitor-guide.html)。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 服务器Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Nacos服务端口 | Nacos服务对外提供的端口,默认为8848。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:jvm - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| system_cpu_usage | 无 | CPU使用率 | -| system_load_average_1m | 无 | load | -| jvm_memory_used_bytes | 字节 | 内存使用字节,包含各种内存区 | -| jvm_memory_max_bytes | 字节 | 内存最大字节,包含各种内存区 | -| jvm_gc_pause_seconds_count | 无 | gc次数,包含各种gc | -| jvm_gc_pause_seconds_sum | 秒 | gc耗时,包含各种gc | -| jvm_threads_daemon | 无 | 线程数 | - -#### 指标集合:Nacos - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| http_server_requests_seconds_count | 秒 | http请求次数,包括多种(url,方法,code) | -| http_server_requests_seconds_sum | 秒 | http请求总耗时,包括多种(url,方法,code) | -| nacos_timer_seconds_sum | 秒 | Nacos config水平通知耗时 | -| nacos_timer_seconds_count | 无 | Nacos config水平通知次数 | -| nacos_monitor{name='longPolling'} | 无 | Nacos config长连接数 | -| nacos_monitor{name='configCount'} | 无 | Nacos config配置个数 | -| nacos_monitor{name='dumpTask'} | 无 | Nacos config配置落盘任务堆积数 | -| nacos_monitor{name='notifyTask'} | 无 | Nacos config配置水平通知任务堆积数 | -| nacos_monitor{name='getConfig'} | 无 | Nacos config读配置统计数 | -| nacos_monitor{name='publish'} | 无 | Nacos config写配置统计数 | -| nacos_monitor{name='ipCount'} | 无 | Nacos naming ip个数 | -| nacos_monitor{name='domCount'} | 无 | Nacos naming域名个数(1.x 版本) | -| nacos_monitor{name='serviceCount'} | 无 | Nacos naming域名个数(2.x 版本) | -| nacos_monitor{name='failedPush'} | 无 | Nacos naming推送失败数 | -| nacos_monitor{name='avgPushCost'} | 秒 | Nacos naming平均推送耗时 | -| nacos_monitor{name='leaderStatus'} | 无 | Nacos naming角色状态 | -| nacos_monitor{name='maxPushCost'} | 秒 | Nacos naming最大推送耗时 | -| nacos_monitor{name='mysqlhealthCheck'} | 无 | Nacos naming mysql健康检查次数 | -| nacos_monitor{name='httpHealthCheck'} | 无 | Nacos naming http健康检查次数 | -| nacos_monitor{name='tcpHealthCheck'} | 无 | Nacos naming tcp健康检查次数 | - -#### 指标集合:Nacos 异常 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| nacos_exception_total{name='db'} | 无 | 数据库异常 | -| nacos_exception_total{name='configNotify'} | 无 | Nacos config水平通知失败 | -| nacos_exception_total{name='unhealth'} | 无 | Nacos config server之间健康检查异常 | -| nacos_exception_total{name='disk'} | 无 | Nacos naming写磁盘异常 | -| nacos_exception_total{name='leaderSendBeatFailed'} | 无 | Nacos naming leader发送心跳异常 | -| nacos_exception_total{name='illegalArgument'} | 无 | 请求参数不合法 | -| nacos_exception_total{name='nacos'} | 无 | Nacos请求响应内部错误异常(读写失败,没权限,参数错误) | - -#### 指标集合:client - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| nacos_monitor{name='subServiceCount'} | 无 | 订阅的服务数 | -| nacos_monitor{name='pubServiceCount'} | 无 | 发布的服务数 | -| nacos_monitor{name='configListenSize'} | 无 | 监听的配置数 | -| nacos_client_request_seconds_count | 无 | 请求的次数,包括多种(url,方法,code) | -| nacos_client_request_seconds_sum | 秒 | 请求的总耗时,包括多种(url,方法,code) | - \ No newline at end of file +--- +id: nacos +title: 监控:Nacos分布式监控 +sidebar_label: Nacos分布式 +keywords: [开源监控系统, 中间件监控, Nacos分布式监控] +--- + +> 通过调用 Nacos Metrics 接口对 Nacos 注册配置中心服务的通用指标进行采集监控。 + +### 监控前操作 + +#### 搭建Nacos集群暴露metrics数据 + +1. 按照[部署文档](https://nacos.io/zh-cn/docs/deployment.html)搭建好Nacos集群。 +2. 配置application.properties文件,暴露metrics数据。 + + ```properties + management.endpoints.web.exposure.include=* + ``` + +3. 访问```{ip}:8848/nacos/actuator/prometheus```,查看是否能访问到metrics数据。 + +更多信息请参考[Nacos 监控手册](https://nacos.io/zh-cn/docs/monitor-guide.html)。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 服务器Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Nacos服务端口 | Nacos服务对外提供的端口,默认为8848。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:jvm + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------|------|----------------| +| system_cpu_usage | 无 | CPU使用率 | +| system_load_average_1m | 无 | load | +| jvm_memory_used_bytes | 字节 | 内存使用字节,包含各种内存区 | +| jvm_memory_max_bytes | 字节 | 内存最大字节,包含各种内存区 | +| jvm_gc_pause_seconds_count | 无 | gc次数,包含各种gc | +| jvm_gc_pause_seconds_sum | 秒 | gc耗时,包含各种gc | +| jvm_threads_daemon | 无 | 线程数 | + +#### 指标集合:Nacos + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------|------|-----------------------------| +| http_server_requests_seconds_count | 秒 | http请求次数,包括多种(url,方法,code) | +| http_server_requests_seconds_sum | 秒 | http请求总耗时,包括多种(url,方法,code) | +| nacos_timer_seconds_sum | 秒 | Nacos config水平通知耗时 | +| nacos_timer_seconds_count | 无 | Nacos config水平通知次数 | +| nacos_monitor{name='longPolling'} | 无 | Nacos config长连接数 | +| nacos_monitor{name='configCount'} | 无 | Nacos config配置个数 | +| nacos_monitor{name='dumpTask'} | 无 | Nacos config配置落盘任务堆积数 | +| nacos_monitor{name='notifyTask'} | 无 | Nacos config配置水平通知任务堆积数 | +| nacos_monitor{name='getConfig'} | 无 | Nacos config读配置统计数 | +| nacos_monitor{name='publish'} | 无 | Nacos config写配置统计数 | +| nacos_monitor{name='ipCount'} | 无 | Nacos naming ip个数 | +| nacos_monitor{name='domCount'} | 无 | Nacos naming域名个数(1.x 版本) | +| nacos_monitor{name='serviceCount'} | 无 | Nacos naming域名个数(2.x 版本) | +| nacos_monitor{name='failedPush'} | 无 | Nacos naming推送失败数 | +| nacos_monitor{name='avgPushCost'} | 秒 | Nacos naming平均推送耗时 | +| nacos_monitor{name='leaderStatus'} | 无 | Nacos naming角色状态 | +| nacos_monitor{name='maxPushCost'} | 秒 | Nacos naming最大推送耗时 | +| nacos_monitor{name='mysqlhealthCheck'} | 无 | Nacos naming mysql健康检查次数 | +| nacos_monitor{name='httpHealthCheck'} | 无 | Nacos naming http健康检查次数 | +| nacos_monitor{name='tcpHealthCheck'} | 无 | Nacos naming tcp健康检查次数 | + +#### 指标集合:Nacos 异常 + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------------------|------|--------------------------------| +| nacos_exception_total{name='db'} | 无 | 数据库异常 | +| nacos_exception_total{name='configNotify'} | 无 | Nacos config水平通知失败 | +| nacos_exception_total{name='unhealth'} | 无 | Nacos config server之间健康检查异常 | +| nacos_exception_total{name='disk'} | 无 | Nacos naming写磁盘异常 | +| nacos_exception_total{name='leaderSendBeatFailed'} | 无 | Nacos naming leader发送心跳异常 | +| nacos_exception_total{name='illegalArgument'} | 无 | 请求参数不合法 | +| nacos_exception_total{name='nacos'} | 无 | Nacos请求响应内部错误异常(读写失败,没权限,参数错误) | + +#### 指标集合:client + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------|------|--------------------------| +| nacos_monitor{name='subServiceCount'} | 无 | 订阅的服务数 | +| nacos_monitor{name='pubServiceCount'} | 无 | 发布的服务数 | +| nacos_monitor{name='configListenSize'} | 无 | 监听的配置数 | +| nacos_client_request_seconds_count | 无 | 请求的次数,包括多种(url,方法,code) | +| nacos_client_request_seconds_sum | 秒 | 请求的总耗时,包括多种(url,方法,code) | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph.md index d070101da8f..9faed580e1b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph.md @@ -14,27 +14,27 @@ keywords: [ 开源监控工具, 开源 NebulaGraph 监控工具, 监控 NebulaGr nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB 的统计信息。 ``` -### +### **1、通过 stats 和 rocksdb stats 接口获取可用参数。** 1.1、如果只需要获取 nebulaGraph_stats,需要确保可以访问 stats,否则会出现错误。 -默认端口是 19669,访问地址为 http://ip:19669/stats +默认端口是 19669,访问地址为 1.2、如果需要获取 rocksdb stats 的附加参数,需要确保可以访问 rocksdb stats,否则会报错。 首次连接 NebulaGraph 时,必须先注册 Storage 服务,以便正确查询数据。 -**有帮助文档:https://docs.nebula-graph.com.cn/3.4.3/4.deployment-and-installation/connect-to-nebula-graph/** +**有帮助文档:** -**https://docs.nebula-graph.com.cn/3.4.3/2.quick-start/3.quick-start-on-premise/3.1add-storage-hosts/** +**** -默认端口是 19779,访问地址为:http://ip:19779/rocksdb_stats +默认端口是 19779,访问地址为: ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-------------|--------------------------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️没有协议头(例如:https://、http://) | | 监控名称 | 识别此监控的名称。名称需要唯一 | @@ -51,9 +51,9 @@ nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB #### 指标集:nebulaGraph_stats 指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/1.query-performance-metrics/** +**** -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------------------------------------------------|------|--------| | 达到内存水位线的语句的数量(rate) | | | | 达到内存水位线的语句的数量(sum) | | | @@ -114,9 +114,9 @@ nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB #### 指标集:rocksdb_stats 指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/2.rocksdb-statistics/** +**** -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------------|------|------------------------| | rocksdb.backup.read.bytes | | 备份 RocksDB 数据库期间读取的字节数 | | rocksdb.backup.write.bytes | | 指标名称 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph_cluster.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph_cluster.md index 851f6dd7946..7fe8792d29d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph_cluster.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nebulagraph_cluster.md @@ -11,7 +11,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:基础信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|---------| | responseTime | 无 | 响应时间 | | charset | 无 | 字符集 | @@ -35,21 +35,21 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Session -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------------|------|------------| | session | 无 | session的数量 | | running_query_count | 无 | 正在执行的查询的数量 | #### 指标集合:后台任务 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|--------------| | queue_jobs | 无 | 等待中的后台任务 | | running_jobs | 无 | 正在执行的后台任务的数量 | #### 指标集合:节点信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------|------|-----------------| | total_storage_node | 无 | storage节点的数量 | | offline_storage_node | 无 | 离线的storage节点的数量 | @@ -60,7 +60,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Storage节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | @@ -72,7 +72,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Meta节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | @@ -81,7 +81,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Graph节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md index a509ff7da2a..50837f79394 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/nginx.md @@ -13,143 +13,141 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标] 如果你想使用这种监控方式监控 'Nginx' 的信息,你需要修改你的 Nginx 配置文件以启用监控模块。 -### 启用 ngx_http_stub_status_module +### 启用 ngx_http_stub_status_module 1. 检查是否已添加 `ngx_http_stub_status_module` -```shell -nginx -V -``` -查看是否包含 `--with-http_stub_status_module`,如果没有则需要重新编译安装 Nginx。 + ```shell + nginx -V + ``` -2. 编译安装 Nginx, 添加 `ngx_http_stub_status_module` 模块 + 查看是否包含 `--with-http_stub_status_module`,如果没有则需要重新编译安装 Nginx。 -下载 Nginx 并解压,在目录下执行 +2. 编译安装 Nginx, 添加 `ngx_http_stub_status_module` 模块 -```shell -./configure --prefix=/usr/local/nginx --with-http_stub_status_module + 下载 Nginx 并解压,在目录下执行 -make && make install -``` + ```shell + ./configure --prefix=/usr/local/nginx --with-http_stub_status_module + + make && make install + ``` 3. 修改 Nginx 配置文件 -修改 `nginx.conf` 文件,添加监控模块暴露端点,如下配置: - -```shell -# modify nginx.conf -server { - listen 80; # port - server_name localhost; - location /nginx-status { - stub_status on; - access_log on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } -} -``` + 修改 `nginx.conf` 文件,添加监控模块暴露端点,如下配置: + + ```shell + # modify nginx.conf + server { + listen 80; # port + server_name localhost; + location /nginx-status { + stub_status on; + access_log on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } + } + ``` 4. 重新加载 Nginx -```shell -nginx -s reload -``` + ```shell + nginx -s reload + ``` 5. 在浏览器访问 `http://localhost/nginx-status` 即可查看 Nginx 监控状态信息。 -### 启用 `ngx_http_reqstat_module` +### 启用 `ngx_http_reqstat_module` 1. 安装 `ngx_http_reqstat_module` 模块 -```shell -# install `ngx_http_reqstat_module` -wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip - -unzip ngx_req_status.zip - -patch -p1 < ../ngx_req_status-master/write_filter.patch - -./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master - -make -j2 - -make install -``` + ```shell + # install `ngx_http_reqstat_module` + wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip + + unzip ngx_req_status.zip + + patch -p1 < ../ngx_req_status-master/write_filter.patch + + ./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master + + make -j2 + + make install + ``` 2. 修改 Nginx 配置文件 -修改 `nginx.conf` 文件,添加状态模块暴露端点,如下配置: - -```shell -# modify nginx.conf -http { - req_status_zone server_name $server_name 256k; - req_status_zone server_addr $server_addr 256k; - - req_status server_name server_addr; - - server { - location /req-status { - req_status_show on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts + 修改 `nginx.conf` 文件,添加状态模块暴露端点,如下配置: + + ```shell + # modify nginx.conf + http { + req_status_zone server_name $server_name 256k; + req_status_zone server_addr $server_addr 256k; + + req_status server_name server_addr; + + server { + location /req-status { + req_status_show on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } } } -} -``` + ``` 3. 重新加载 Nginx -```shell -nginx -s reload -``` + ```shell + nginx -s reload + ``` 4. 在浏览器访问 `http://localhost/req-status` 即可查看 Nginx 监控状态信息。 - -**参考文档: https://blog.csdn.net/weixin_55985097/article/details/116722309** +**参考文档: ** **⚠️注意监控模块的端点路径为 `/nginx-status` `/req-status`** ### 配置参数 -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | Nginx 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | +| 参数名 | 参数描述 | +|--------|-----------------------------------------------------| +| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | +| 监控名称 | 标识此监控的名称。名称需要唯一 | +| 端口 | Nginx 提供的端口 | +| 超时时间 | 允许收集响应时间 | +| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | +| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | +| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | ### 收集指标 #### 指标收集:nginx_status -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------------|------------| -| 接收连接数 | | 已接受的连接 | -| 处理连接数 | | 成功处理的连接 | -| 活动连接数 | | 当前活动连接 | -| 丢弃连接数 | | 丢弃的连接 | -| 请求连接数 | | 客户端请求 | -| 读连接数 | | 正在执行读操作的连接 | -| 写连接数 | | 正在执行写操作的连接 | -| 等待连接数 | | 等待连接 | +| 指标名称 | 指标单位 | 指标描述 | +|-------|------|------------| +| 接收连接数 | | 已接受的连接 | +| 处理连接数 | | 成功处理的连接 | +| 活动连接数 | | 当前活动连接 | +| 丢弃连接数 | | 丢弃的连接 | +| 请求连接数 | | 客户端请求 | +| 读连接数 | | 正在执行读操作的连接 | +| 写连接数 | | 正在执行写操作的连接 | +| 等待连接数 | | 等待连接 | #### 指标集:req_status -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|---------| -| 分组类别 | | 分组类别 | -| 分组名称 | | 分组名称 | -| 最大并发连接数 | | 最大并发连接数 | -| 最大带宽 | kb | 最大带宽 | -| 总流量 | kb | 总流量 | -| 总请求数 | | 总请求数 | -| 当前并发连接数 | | 当前并发连接数 | -| 当前带宽 | kb | 当前带宽 | - - +| 指标名称 | 指标单位 | 指标描述 | +|---------|------|---------| +| 分组类别 | | 分组类别 | +| 分组名称 | | 分组名称 | +| 最大并发连接数 | | 最大并发连接数 | +| 最大带宽 | kb | 最大带宽 | +| 总流量 | kb | 总流量 | +| 总请求数 | | 总请求数 | +| 当前并发连接数 | | 当前并发连接数 | +| 当前带宽 | kb | 当前带宽 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ntp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ntp.md index 5760321922f..0806232cee5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ntp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ntp.md @@ -7,7 +7,7 @@ keywords: [ open source monitoring tool, open source NTP monitoring tool, monito NTP监控的中文文档如下: -# NTP监控 +## NTP监控 > 收集和监控NTP的常规性能指标。 @@ -15,7 +15,7 @@ NTP监控的中文文档如下: ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------|--------------------------------------------------| | 监控主机 | 被监控的IPv4、IPv6或域名。注意⚠️不包含协议头(例如:https://,http://) | | 监控名称 | 标识此监控的名称。名称需要是唯一的 | @@ -27,7 +27,7 @@ NTP监控的中文文档如下: #### 指标集:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|------|--------------------------| | 响应时间 | 毫秒 | NTP服务器响应请求所需的时间。 | | 时间 | 毫秒 | NTP服务器报告的当前时间。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oceanbase.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oceanbase.md new file mode 100644 index 00000000000..2f319e3c414 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oceanbase.md @@ -0,0 +1,59 @@ +--- +id: oceanbase +title: 监控:OceanBase 数据库监控 +sidebar_label: OceanBase 数据库 +keywords: [开源监控系统, 开源数据库监控, OceanBase 数据库监控] +--- + +> 对 OceanBase 数据库的通用性能指标进行采集监控。支持 OceanBase 4.0+。 + +### 注意,必须添加 MYSQL jdbc 驱动 jar + +- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.1.0.jar. +- 将此 jar 包拷贝放入 HertzBeat 的安装目录下的 `ext-lib` 目录下. +- 重启 HertzBeat 服务。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端 IPV4,IPV6 或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为2881。 | +| 查询超时时间 | 设置 SQL 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接 URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:basic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|------------| +| version | 无 | 数据库版本 | +| port | 无 | 数据库暴露服务端口 | +| datadir | 无 | 数据库存储数据盘地址 | +| max_connections | 无 | 数据库最大连接数 | + +#### 指标集合:status + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|----------------| +| threads_created | 无 | OceanBase 已经创建的总连接数 | +| threads_connected | 无 | OceanBase 已经连接的连接数 | +| threads_cached | 无 | OceanBase 当前缓存的连接数 | +| threads_running | 无 | OceanBase 当前活跃的连接数 | + +#### 指标集合:innodb + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|-------------------------| +| innodb_data_reads | 无 | innodb 平均每秒从文件中读取的次数 | +| innodb_data_writes | 无 | innodb 平均每秒从文件中写入的次数 | +| innodb_data_read | KB | innodb 平均每秒钟读取的数据量,单位为 KB | +| innodb_data_written | KB | innodb 平均每秒钟写入的数据量,单位为 KB | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/openai.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/openai.md index d22b1238855..a67a0c1c820 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/openai.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/openai.md @@ -8,12 +8,13 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] ### 准备工作 #### 获取会话密钥 -> 1. 打开 Chrome 浏览器的网络请求界面 + +> 1. 打开 Chrome 浏览器的网络请求界面 > `Mac: cmd + option + i` > `Windows: ctrl + shift + i` -> 2. 访问 https://platform.openai.com/usage -> 3. 找到 https://api.openai.com/dashboard/billing/usage 请求 -> 4. 找到请求头中 Authorization 字段,并复制 `Bearer ` 之后的内容。例如: `sess-123456` +> 2. 访问 +> 3. 找到 请求 +> 4. 找到请求头中 Authorization 字段,并复制 `Bearer` 之后的内容。例如: `sess-123456` ### 注意事项 @@ -22,11 +23,11 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -|:-------|---------------------------------| +| 参数名称 | 参数帮助描述 | +|:-------|---------------------------------|---| | 监控Host | 此处填写 api.openai.com 。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | -| 会话密钥 | 即准备工作中获取的会话密钥。 | | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | +| 会话密钥 | 即准备工作中获取的会话密钥。 | | | 采集器 | 配置此监控使用哪台采集器调度采集。 | | 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | | 绑定标签 | 对监控资源的分类管理标签。 | @@ -36,7 +37,7 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] #### 指标集合:信用额度授予 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|--------|---------| | 总授予额度 | 美元 ($) | 总授予额度 | | 总使用额度 | 美元 ($) | 总使用额度 | @@ -45,14 +46,14 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] #### 指标集合:模型花费 -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|--------|---------| -| 模型名称 | 无 | 模型名称 | -| 花费 | 美元 ($) | 花费 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------|--------|--------| +| 模型名称 | 无 | 模型名称 | +| 花费 | 美元 ($) | 花费 | #### 指标集合:订阅计费 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|--------|--------------| | 是否有支付方式 | 无 | 是否有支付方式 | | 订阅是否已取消 | 无 | 订阅是否已取消 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opengauss.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opengauss.md index 632a7f41b2d..964fc909c33 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opengauss.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opengauss.md @@ -9,50 +9,47 @@ keywords: [开源监控系统, 开源数据库监控, OpenGauss数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | #### 指标集合:state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------------------------------------------------------------| +| name | 无 | 数据库名称,或share-object为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | #### 指标集合:activity -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opensuse.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opensuse.md index 6c3b2e9ac7e..2f1e00a9e39 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opensuse.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/opensuse.md @@ -4,114 +4,104 @@ title: 监控:OpenSUSE操作系统监控 sidebar_label: OpenSUSE操作系统 keywords: [开源监控系统, 开源操作系统监控, OpenSUSE操作系统监控] --- + > 对OpenSUSE操作系统的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- |------------------------------------------------------| +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | 端口 | Linux SSH对外提供的端口,默认为22。 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次获取信息都会创建一个连接 | -| 用户名 | SSH连接用户名,可选 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次获取信息都会创建一个连接 | +| 用户名 | SSH连接用户名,可选 | | 密码 | SSH连接密码,可选 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | | 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | --------------------------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------------ | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:网卡信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- |------|-------------| -| interface_name | 无 | 网卡名称 | -| receive_bytes | Mb | 入站数据流量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | Mb | 入站数据流量 | | transmit_bytes | Mb | 出站数据流量 | #### 指标集合:文件系统 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | -------------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | #### 指标集合:Top10 CPU进程 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| cpu_usage | % | CPU占用率 | -| mem_usage | % | 内存占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| cpu_usage | % | CPU占用率 | +| mem_usage | % | 内存占用率 | +| command | 无 | 执行命令 | #### 指标集合:Top10 内存进程 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| mem_usage | % | 内存占用率 | -| cpu_usage | % | CPU占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| mem_usage | % | 内存占用率 | +| cpu_usage | % | CPU占用率 | +| command | 无 | 执行命令 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oracle.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oracle.md index 49136e51c48..042c8d8b831 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oracle.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/oracle.md @@ -7,57 +7,63 @@ keywords: [开源监控系统, 开源数据库监控, Oracle数据库监控] > 对ORACLE数据库的通用性能指标进行采集监控。 +### 注意, 必须添加 ORACLE jdbc 驱动 jar + +- 下载 ORACLE jdbc 驱动 jar 包,例如 ojdbc8.jar。[下载](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) [oracle-i18n](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar) +- 将 jar 包复制到 `hertzbeat/ext-lib` 目录下。 +- 重启 HertzBeat 服务。 + ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1521。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为1521。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_version | 无 | 数据库版本 | -| database_type | 无 | 数据库类型 | -| hostname | 无 | 主机名称 | -| instance_name | 无 | 数据库实例名称 | -| startup_time | 无 | 数据库启动时间 | -| status | 无 | 数据库状态 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------|------|---------| +| database_version | 无 | 数据库版本 | +| database_type | 无 | 数据库类型 | +| hostname | 无 | 主机名称 | +| instance_name | 无 | 数据库实例名称 | +| startup_time | 无 | 数据库启动时间 | +| status | 无 | 数据库状态 | #### 指标集合:tablespace -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| file_id | 无 | 文件ID | -| file_name | 无 | 文件名称 | -| tablespace_name | 无 | 所属表空间名称 | -| status | 无 | 状态 | -| bytes | MB | 大小 | -| blocks | 无 | 区块数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------| +| file_id | 无 | 文件ID | +| file_name | 无 | 文件名称 | +| tablespace_name | 无 | 所属表空间名称 | +| status | 无 | 状态 | +| bytes | MB | 大小 | +| blocks | 无 | 区块数量 | #### 指标集合:user_connect -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| username | 无 | 用户名 | -| counts | 个数 | 当前连接数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| username | 无 | 用户名 | +| counts | 个数 | 当前连接数量 | #### 指标集合:performance -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per Second 每秒IO请求数量 | -| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | -| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------|------|---------------------------------------| +| qps | QPS | I/O Requests per Second 每秒IO请求数量 | +| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | +| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ping.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ping.md index 7b6613f25bd..59ac237ed34 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ping.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ping.md @@ -5,32 +5,32 @@ sidebar_label: PING连通性 keywords: [开源监控系统, 开源网络监控, 网络PING监控] --- -> 对对端HOST地址进行PING操作,判断其连通性 +> 对对端HOST地址进行PING操作,判断其连通性 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | - -### 常见问题 +### 常见问题 1. 安装包部署的hertzbeat下ping连通性监控异常 - 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 + +> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 +> docker安装默认启用无此问题 +> 详见 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md index e299056d5a9..54b6d9926e6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/plugin.md @@ -1,10 +1,11 @@ --- id: plugin title: 自定义插件 -sidebar_label: 自定义插件 +sidebar_label: 自定义插件 --- ## 自定义插件 + ### 简介 当前`Hertzbeat`在使用时,主要依赖`alert`模块对用户进行通知,然后用户采取一些措施如发送请求、执行`sql`、执行`shell`脚本等。 @@ -13,17 +14,8 @@ sidebar_label: 自定义插件 目前,`HertzBeat`只在告警后设置了触发`alert`方法,如需在采集、启动程序等时机设置触发方法,请在`https://github.com/apache/hertzbeat/issues/new/choose` 提`Task`。 ### 具体使用 + 1. 拉取主分支代码 `git clone https://github.com/apache/hertzbeat.git` ,定位到`plugin`模块的 `Plugin`接口。 - ![plugin-1.png](/img/docs/help/plugin-1.png) + ![plugin-1.png](/img/docs/help/plugin-1.png) 2. 在`org.apache.hertzbeat.plugin.impl`目录下, 新建一个接口实现类,如`org.apache.hertzbeat.plugin.impl.DemoPluginImpl`,在实现类中接收`Alert`类作为参数,实现`alert`方法,逻辑由用户自定义,这里我们简单打印一下对象。 - ![plugin-2.png](/img/docs/help/plugin-2.png) -3. 在 `META-INF/services/org.apache.hertzbeat.plugin.Plugin` 文件中增加接口实现类的全限定名,每个实现类全限定名单独成行。 -4. 打包`hertzbeat-plugin`模块。 - ![plugin-3.png](/img/docs/help/plugin-3.png) -5. 将打包后的`jar`包,通过 `插件管理`-`上传插件`功能将名称以 `-jar-with-lib.jar` 结尾的 jar 包上传到`HertzBeat` 中并启用该插件即可实现自定义告警后处理策略。 - ![plugin-5.jpg](/img/docs/help/plugin-5.jpg) - -### 使用建议 -1. 由于 `插件管理` 功能仅能对整个插件包启用或禁用,因此建议一个插件包中仅包含一个实现了 `org.apache.hertzbeat.plugin.Plugin` 接口的类。 -2. 如果你已经在没有`插件管理`功能的版本上使用 Hertzbeat 的插件功能,当升级到新版本时,你需要通过 `插件管理`-`上传插件` 将之前使用的所有插件包上传到 `Hertzbeat`,以便插件可以在新版本生效。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pop3.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pop3.md index 8d6c2eb5548..7a55a98df3e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pop3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pop3.md @@ -24,26 +24,23 @@ keywords: [开源监控工具,开源Java监控工具,监控POP3指标] 5. 通过POP3服务器域名,端口号,qq邮箱账号以及授权码连接POP3服务器,采集监控指标 ``` - ### 配置参数 -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | POP3 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | +| 参数名 | 参数描述 | +|--------|-----------------------------------------------------| +| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | +| 监控名称 | 标识此监控的名称。名称需要唯一 | +| 端口 | POP3 提供的端口 | +| 超时时间 | 允许收集响应时间 | +| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | +| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | +| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | ### 采集指标 #### 指标集:email_status -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|------------| -| 邮件数量 | | 邮件数量 | -| 邮箱总大小 | kb | 邮箱中邮件的总大小 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------| +| 邮件数量 | | 邮件数量 | +| 邮箱总大小 | kb | 邮箱中邮件的总大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/port.md index f27314e8e40..0b73299aa53 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/port.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/port.md @@ -9,22 +9,20 @@ keywords: [开源监控系统, 开源网络监控, TCP 端口可用性监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/postgresql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/postgresql.md index 4716d0e2e64..12485e62ffa 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/postgresql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/postgresql.md @@ -9,50 +9,47 @@ keywords: [开源监控系统, 开源数据库监控, PostgreSQL数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | #### 指标集合:state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------------------------------------------------------------| +| name | 无 | 数据库名称,或share-object为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | #### 指标集合:activity -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md index 1f2a7ac38e9..64b785fde73 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prestodb.md @@ -4,61 +4,71 @@ title: 监控:PrestoDB 数据库 sidebar_label: PrestoDB 数据库 keywords: [ 开源监控系统, 开源数据库监控, Presto数据库监控 ] --- + > 对PrestoDB Atlas 的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -|--------|---------------------------------------------| +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 被监控的平台端口。 | -| 连接超时时间 | 设置连接PrestoDB未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | -| 绑定标签 | 用于对监控资源进行分类管理。 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 被监控的平台端口。 | +| 连接超时时间 | 设置连接PrestoDB未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | +| 绑定标签 | 用于对监控资源进行分类管理。 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息。 | ### 采集指标 #### 指标集合:集群状态 +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------| +| activeWorkers | 无 | 活跃节点数 | +| runningQueries | 无 | 运行中的查询数 | +| queuedQueries | 无 | 队列中的查询数 | +| blockedQueries | 无 | 阻塞的查询数 | +| runningDrivers | 无 | 运行中的驱动数 | +| runningTasks | 无 | 运行中的任务数 | -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ----------------------------- | -| activeWorkers | 无 | 活跃节点数 | -| runningQueries | 无 | 运行中的查询数 | -| queuedQueries | 无 | 队列中的查询数 | -| blockedQueries | 无 | 阻塞的查询数 | -| runningDrivers | 无 | 运行中的驱动数 | -| runningTasks | 无 | 运行中的任务数 | +#### 指标集合:节点信息 +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|----------------| +| uri | 无 | 节点链接 | +| recentRequests | 无 | 最近一段时间内的请求数量 | +| recentFailures | 无 | 最近一段时间内的失败请求数量 | +| recentSuccesses | 无 | 最近一段时间内的成功请求数量 | +| lastRequestTime | 无 | 最近一次请求的时间 | +| lastResponseTime | 无 | 最近一次响应的时间 | +| age | 无 | 持续时间 | +| recentFailureRatio | 无 | 最近一段时间内的失败 | #### 指标集合:节点状态 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------| ---------------------------------- | -| nodeId | 无 | 节点ID | -| nodeVersion | 无 | 节点版本 | -| environment | 无 | 环境 | -| coordinator | 无 | 是否为协调节点 | -| uptime | 无 | 正常运行时间 | -| externalAddress | 无 | 外部地址 | -| internalAddress | 无 | 内部地址 | -| processors | 无 | 处理器数量 | -| processCpuLoad | 无 | 进程CPU负载 | -| systemCpuLoad | 无 | 系统CPU负载 | -| heapUsed | MB | 已使用堆内存 | -| heapAvailable | MB | 可用堆内存 | -| nonHeapUsed | MB | 请已使用非堆内存 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|----------| +| nodeId | 无 | 节点ID | +| nodeVersion | 无 | 节点版本 | +| environment | 无 | 环境 | +| coordinator | 无 | 是否为协调节点 | +| uptime | 无 | 正常运行时间 | +| externalAddress | 无 | 外部地址 | +| internalAddress | 无 | 内部地址 | +| processors | 无 | 处理器数量 | +| processCpuLoad | 无 | 进程CPU负载 | +| systemCpuLoad | 无 | 系统CPU负载 | +| heapUsed | MB | 已使用堆内存 | +| heapAvailable | MB | 可用堆内存 | +| nonHeapUsed | MB | 请已使用非堆内存 | #### 指标集合: 任务查询 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------- | -------- | ------------------ | -| taskId | 无 | 任务ID | -| version | 无 | 版本 | -| state | 无 | 状态 | -| self | 无 | 自身 | -| lastHeartbeat | 无 | 最后心跳时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|--------| +| taskId | 无 | 任务ID | +| version | 无 | 版本 | +| state | 无 | 状态 | +| self | 无 | 自身 | +| lastHeartbeat | 无 | 最后心跳时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/process.md index 91d7718e419..cd21bece380 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/process.md @@ -4,48 +4,46 @@ title: 监控:Linux 进程监控 sidebar_label: Process keywords: [开源监控系统, 操作系统进程监控, 进程监控] --- + > 对Linux系统进程基础信息进行采集监控,包括进程的 CPU使用率、内存使用率、物理内存、IO 等监控 ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux系统的ssh端口,默认: 22 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | 服务器用户名 | -| 密码 | 服务器密码 | -| 进程名称 | 需要监控的进程名称或进程部分名称 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 私钥 | 连接服务器所需私钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux系统的ssh端口,默认: 22 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | 服务器用户名 | +| 密码 | 服务器密码 | +| 进程名称 | 需要监控的进程名称或进程部分名称 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 私钥 | 连接服务器所需私钥 | ### 采集指标 #### 指标集合:进程基本信息 - | 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| User | 无 | 用户 | -| CPU | 无 | CPU使用率 | -| MEM | 无 | 内存使用率 | -| rss | 无 | 物理内存 | -| cmd | 无 | 运行命令 | +|------|------|--------| +| PID | 无 | 进程ID | +| User | 无 | 用户 | +| CPU | 无 | CPU使用率 | +| MEM | 无 | 内存使用率 | +| rss | 无 | 物理内存 | +| cmd | 无 | 运行命令 | #### 指标集合:内存使用信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| detail | 无 | 详细监控指标 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| PID | 无 | 进程ID | +| detail | 无 | 详细监控指标 | 包含的指标: @@ -63,22 +61,20 @@ keywords: [开源监控系统, 操作系统进程监控, 进程监控] #### 指标集合:其他监控信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| PID | 无 | 进程ID | -| path | 无 | 执行路径 | -| date | 无 | 启动时间 | -| fd_count | 无 | 打开文件描述符数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|-----------| +| PID | 无 | 进程ID | +| path | 无 | 执行路径 | +| date | 无 | 启动时间 | +| fd_count | 无 | 打开文件描述符数量 | #### 指标集合:IO - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| metric | 无 | 监控指标名称 | -| value | 无 | 监控指标值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| PID | 无 | 进程ID | +| metric | 无 | 监控指标名称 | +| value | 无 | 监控指标值 | 包含的指标: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prometheus.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prometheus.md index 50d148f72a9..a9feebfe623 100755 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prometheus.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/prometheus.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, Prometheus协议监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(例如: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -39,6 +39,3 @@ keywords: [ 开源监控系统, Prometheus协议监控 ] - 端点路径:`/actuator/prometheus` 其余设置保持默认。 - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pulsar.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pulsar.md index a59178686b3..f37070d8604 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pulsar.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/pulsar.md @@ -4,52 +4,48 @@ title: 监控:Pulsar监控 sidebar_label: Apache Pulsar keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] --- + > 对Pulsar的通用性能指标进行采集监控 **使用协议:HTTP** ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | Pulsar的webServiceProt值,默认为8080。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | Pulsar的webServiceProt值,默认为8080。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:版本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------ | -| Version Info | 无 | 版本信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| Version Info | 无 | 版本信息 | #### 指标集合:process_start_time_seconds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | ------------ | -| Process Start Time | 无 | 进程启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------| +| Process Start Time | 无 | 进程启动时间 | #### 指标集合:process_open_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | -------- | ---------------- | -| Open File Descriptors | 无 | 打开的文件描述符 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| Open File Descriptors | 无 | 打开的文件描述符 | #### 指标集合:process_max_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | -------------- | -| Max File Descriptors | 无 | 最大文件描述符 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|---------| +| Max File Descriptors | 无 | 最大文件描述符 | #### 指标集合: jvm_memory_pool_allocated_bytes @@ -74,4 +70,3 @@ Broker端消息发布延迟 #### 指标集合:pulsar_metadata_store_ops_latency_ms Broker端元数据存储操作延迟 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rabbitmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rabbitmq.md index 8cb91eeb3e6..7e4ff6383d7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rabbitmq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rabbitmq.md @@ -5,42 +5,42 @@ sidebar_label: RabbitMQ消息中间件 keywords: [开源监控系统, 开源消息中间件监控, RabbitMQ消息中间件监控] --- -> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 +> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 -### 监控前操作 +### 监控前操作 > HertzBeat 使用 RabbitMQ Management 的 Rest Api 对 RabbitMQ 进行指标数据采集。 -> 故需要您的 RabbitMQ 环境开启 Management 插件 +> 故需要您的 RabbitMQ 环境开启 Management 插件 -1. 开启 Management 插件,或使用自开启版本 +1. 开启 Management 插件,或使用自开启版本 -```shell -rabbitmq-plugins enable rabbitmq_management -``` + ```shell + rabbitmq-plugins enable rabbitmq_management + ``` -2. 浏览器访问 http://ip:15672/ ,默认账户密码 `guest/guest`. 成功登录即开启成功。 +2. 浏览器访问 ,默认账户密码 `guest/guest`. 成功登录即开启成功。 3. 在 HertzBeat 添加对应 RabbitMQ 监控即可,参数使用 Management 的 IP 端口,默认账户密码。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -|----------|---------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | -| 用户名 | 接口Basic认证时使用的用户名 | -| 密码 | 接口Basic认证时使用的密码 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | +| 用户名 | 接口Basic认证时使用的用户名 | +| 密码 | 接口Basic认证时使用的密码 | +| 超时时间 | HTTP请求查询超时时间 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:overview +#### 指标集合:overview -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------------|------|--------------------------| | product_version | 无 | 产品版本 | | product_name | 无 | 产品名称 | @@ -52,7 +52,7 @@ rabbitmq-plugins enable rabbitmq_management #### 指标集合:object_totals -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-----------------| | channels | 无 | channels的总数量 | | connections | 无 | connections的总数量 | @@ -62,65 +62,64 @@ rabbitmq-plugins enable rabbitmq_management #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------------| -| name | 无 | The node name | -| type | 无 | The node type | -| running | 无 | Running state | -| os_pid | 无 | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | 无 | File descriptors available | -| fd_used | 无 | File descriptors used | -| sockets_total | 无 | Sockets available | -| sockets_used | 无 | Sockets used | -| proc_total | 无 | Erlang process limit | -| proc_used | 无 | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | 无 | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | 无 | Context_switches num | -| io_read_count | 无 | 总共读操作的数量 | -| io_read_bytes | KB | 总共读入磁盘数据大小 | -| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | -| io_write_count | 无 | 磁盘写操作总量 | -| io_write_bytes | KB | 写入磁盘数据总量 | -| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | -| io_seek_count | 无 | seek操作总量 | -| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | -| io_sync_count | 无 | fsync操作的总量 | -| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | -| connection_created | 无 | connection created num | -| connection_closed | 无 | connection closed num | -| channel_created | 无 | channel created num | -| channel_closed | 无 | channel closed num | -| queue_declared | 无 | queue declared num | -| queue_created | 无 | queue created num | -| queue_deleted | 无 | queue deleted num | -| connection_closed | 无 | connection closed num | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|-------------------------------| +| name | 无 | The node name | +| type | 无 | The node type | +| running | 无 | Running state | +| os_pid | 无 | Pid in OS | +| mem_limit | MB | Memory usage high watermark | +| mem_used | MB | Total amount of memory used | +| fd_total | 无 | File descriptors available | +| fd_used | 无 | File descriptors used | +| sockets_total | 无 | Sockets available | +| sockets_used | 无 | Sockets used | +| proc_total | 无 | Erlang process limit | +| proc_used | 无 | Erlang processes used | +| disk_free_limit | GB | Free disk space low watermark | +| disk_free | GB | Free disk space | +| gc_num | 无 | GC runs | +| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | +| context_switches | 无 | Context_switches num | +| io_read_count | 无 | 总共读操作的数量 | +| io_read_bytes | KB | 总共读入磁盘数据大小 | +| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | +| io_write_count | 无 | 磁盘写操作总量 | +| io_write_bytes | KB | 写入磁盘数据总量 | +| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | +| io_seek_count | 无 | seek操作总量 | +| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | +| io_sync_count | 无 | fsync操作的总量 | +| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | +| connection_created | 无 | connection created num | +| connection_closed | 无 | connection closed num | +| channel_created | 无 | channel created num | +| channel_closed | 无 | channel closed num | +| queue_declared | 无 | queue declared num | +| queue_created | 无 | queue created num | +| queue_deleted | 无 | queue deleted num | +| connection_closed | 无 | connection closed num | #### 指标集合:queues -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------------------|------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | +| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | | node | 无 | The queue on the node name | -| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | +| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | | type | 无 | Queue type, one of: quorum, stream, classic. | -| vhost | 无 | vhost path | +| vhost | 无 | vhost path | | auto_delete | 无 | Whether the queue will be deleted automatically when no longer used | -| policy | 无 | Effective policy name for the queue. | +| policy | 无 | Effective policy name for the queue. | | consumers | 无 | Number of consumers. | | memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | | messages_ready | 无 | Number of messages ready to be delivered to clients | -| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | +| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | | messages | 无 | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | +| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | | messages_persistent | 无 | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | +| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | | message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | +| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | | message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | | message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redhat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redhat.md index 5ceb911c8d3..1c4c6b5167a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redhat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redhat.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis.md index dd9b304e1ce..0a0c9f77a65 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis.md @@ -2,244 +2,238 @@ id: redis title: 监控:REDIS数据库监控 sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] +keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] --- > 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | +| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:server -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|-----------------------------------------------| +| redis_version | 无 | Redis 服务器版本 | +| redis_git_sha1 | 无 | Git SHA1 | +| redis_git_dirty | 无 | Git dirty flag | +| redis_build_id | 无 | redis 构建的id | +| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | +| os | 无 | Redis 服务器的宿主操作系统 | +| arch_bits | 无 | 架构(32 或 64 位) | +| multiplexing_api | 无 | Redis使用的事件循环机制 | +| atomicvar_api | 无 | Redis使用的原子 API | +| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本 | +| process_id | 无 | 服务器进程的PID | +| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | +| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | +| tcp_port | 无 | TCP/IP侦听端口 | +| server_time_usec | 无 | 微秒级精度的基于时间的系统时间 | +| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | +| uptime_in_days | 无 | 自Redis服务器启动后的天数 | +| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | +| configured_hz | 无 | 服务器配置的频率设置 | +| lru_clock | 无 | 时钟每分钟递增,用于LRU管理 | +| executable | 无 | 服务器可执行文件的路径 | +| config_file | 无 | 配置文件的路径 | +| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志 | +| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。 | #### 指标集合:clients -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|--------------------------------------------------------------------------------| +| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | +| cluster_connections | 无 | 群集总线使用的套接字数量的近似值 | +| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。 | +| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | +| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | +| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | +| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING) | +| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | #### 指标集合:memory -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|----------|-----------------------------------------------------------------------------------------------| +| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | +| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | +| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字 | +| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak | byte | Redis消耗的峰值内存(字节) | +| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | +| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和 | +| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节) | +| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | +| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | +| allocator_allocated | byte | 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同 | +| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片 | +| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | +| total_system_memory | byte | Redis主机的内存总量 | +| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_lua | byte | Lua引擎使用的字节数 | +| used_memory_lua_human | KB | 上一个值的人类可读值 | +| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | +| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | +| number_of_cached_scripts | 无 | 缓存的lua脚本数量 | +| maxmemory | byte | maxmemory配置指令的值 | +| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | +| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | +| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | +| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | +| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | +| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | +| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | +| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | +| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | +| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | +| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。 | +| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | +| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | +| mem_clients_normal | 无 | 普通客户端使用的内存 | +| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | +| mem_allocator | 无 | 内存分配器,在编译时选择。 | +| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | +| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL) | +| lazyfreed_objects | 无 | 已延迟释放的对象数。 | #### 指标集合:persistence -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|--------|-----------------------------------------------------------------------------------------------------| +| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是 | +| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | +| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | +| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比 | +| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | +| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | +| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | +| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | +| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | +| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功 | +| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | +| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | +| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | +| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | +| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite | +| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | +| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | +| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | +| aof_last_write_status | 无 | 上次aof写入状态 | +| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | +| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | #### 指标集合:stats -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|----------------------------------------------------| +| total_connections_received | 无 | 服务器接受的连接总数 | +| total_commands_processed | 无 | 服务器处理的命令总数 | +| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | +| total_net_input_bytes | byte | 从网络读取的字节总数 | +| total_net_output_bytes | byte | 写入网络的总字节数 | +| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | +| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | +| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数 | +| sync_full | 无 | 具有副本的完整重新同步数 | +| sync_partial_ok | 无 | 接受的部分重新同步请求数 | +| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | +| expired_keys | 无 | 过期的key总数 | +| expired_stale_perc | 无 | 可能过期key的百分比 | +| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | +| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | +| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | +| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | +| keyspace_misses | 无 | 在主dict 中未查到key的次数 | +| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | +| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | +| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | +| total_forks | 无 | 自服务器启动以来的fork操作总数 | +| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | +| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | +| active_defrag_hits | 无 | 主动碎片整理命中次数 | +| active_defrag_misses | 无 | 主动碎片整理未命中次数 | +| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | +| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数 | +| tracking_total_keys | 无 | key 查询的总数 | +| tracking_total_items | 无 | item查询的总数 | +| tracking_total_prefixes | 无 | 前缀查询的总数 | +| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | +| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | +| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | +| total_reads_processed | 无 | 正在读取的请求数 | +| total_writes_processed | 无 | 正在写入的请求数 | +| io_threaded_reads_processed | 无 | 正在读取的线程数 | +| io_threaded_writes_processed | 无 | 正在写入的线程数 | #### 指标集合:replication -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-------------------------------------------------------------------------------------| +| role | 无 | 节点角色 master 主节点 slave 从节点 | +| connected_slaves | 无 | 连接的从节点数 | +| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | +| master_replid | 无 | 实例启动的随机字符串 | +| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID | +| master_repl_offset | 无 | 主从同步偏移量 | +| second_repl_offset | 无 | 接受从服务ID的最大偏移量 | +| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | +| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | +| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | +| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|------------------------| +| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和 | +| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和 | +| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU | +| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | #### 指标集合:errorstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|-----------| +| errorstat_ERR | 无 | 错误累计出现的次数 | +| errorstat_MISCONF | 无 | | #### 指标集合:cluster -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|--------------------| +| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是 | #### 指标集合:commandstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|---------------------------------------------------------------------------------------------------------------------------| +| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数 | +| cmdstat_get | 无 | get命令的统计信息 | +| cmdstat_setnx | 无 | setnx命令的统计信息 | +| cmdstat_hset | 无 | hset命令的统计信息 | +| cmdstat_hget | 无 | hget命令的统计信息 | +| cmdstat_lpush | 无 | lpush命令的统计信息 | +| cmdstat_rpush | 无 | rpush命令的统计信息 | +| cmdstat_lpop | 无 | lpop命令的统计信息 | +| cmdstat_rpop | 无 | rpop命令的统计信息 | +| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis_cluster.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis_cluster.md index 48858be3e86..c34681ba9c6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis_cluster.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/redis_cluster.md @@ -11,7 +11,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 *redis.config* - ``` + ```properties port 6379 cluster-enabled yes cluster-config-file nodes.conf @@ -19,10 +19,10 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 appendonly yes bind 0.0.0.0 protected-mode no - + ``` - *docker-compose.yml* + *docker-compose.yml* ```yml services: @@ -34,7 +34,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "1000:6379" - + redis-master-2: image: redis:latest container_name: redis-master-2 @@ -43,7 +43,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "2000:6379" - + redis-master-3: image: redis:latest container_name: redis-master-3 @@ -52,7 +52,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "3000:6379" - + redis-slave-1: image: redis:latest container_name: redis-slave-1 @@ -61,7 +61,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "1001:6379" - + redis-slave-2: image: redis:latest container_name: redis-slave-2 @@ -70,7 +70,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "2001:6379" - + redis-slave-3: image: redis:latest container_name: redis-slave-3 @@ -79,7 +79,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 - ./redis.conf:/usr/local/etc/redis/redis.conf ports: - "3001:6379" - + networks: default: external: @@ -88,51 +88,52 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 2. 查看所有容器的 IP 地址,搭建 Redis 集群时需要用到这些. - ```bash - docker-compose up -d - docker network inspect hertzbeat-redis-cluste - ``` - - ``` - "Containers": { - "187b879f73c473b3cbb82ff95f668e65af46115ddaa27f3ff1a712332b981531": { - ... - "Name": "redis-slave-2", - "IPv4Address": "192.168.117.6/24", - ... - }, - "45e22b64c82e51857fc104436cdd6cc0c5776ad10a2e4b9d8e52e36cfb87217e": { - ... - "Name": "redis-master-3", - "IPv4Address": "192.168.117.3/24 - ... - }, - "57838ae37956f8af181f9a131eb011efec332b9ed3d49480f59d8962ececf288": { - ... - "Name": "redis-master-2", - "IPv4Address": "192.168.117.7/24", - ... - }, - "94478d14bd950bcde533134870beb89b392515843027a0595af56dd1e3305a76": { - ... - "Name": "redis-master-1", - "IPv4Address": "192.168.117.4/24", - ... - }, - "ad055720747e7fc430ba794d5321723740eeb345c280073e4292ed4302ff657c": { - ... - "Name": "redis-slave-3", - "IPv4Address": "192.168.117.2/24", - ... - }, - "eddded1ac4c7528640ba0c6befbdaa48faa7cb13905b934ca1f5c69ab364c725": { - ... - "Name": "redis-slave-1", - "IPv4Address": "192.168.117.5/24", - ... - } - }, - ``` + ```bash + docker-compose up -d + docker network inspect hertzbeat-redis-cluste + ``` + + ```json + "Containers": { + "187b879f73c473b3cbb82ff95f668e65af46115ddaa27f3ff1a712332b981531": { + ... + "Name": "redis-slave-2", + "IPv4Address": "192.168.117.6/24", + ... + }, + "45e22b64c82e51857fc104436cdd6cc0c5776ad10a2e4b9d8e52e36cfb87217e": { + ... + "Name": "redis-master-3", + "IPv4Address": "192.168.117.3/24 + ... + }, + "57838ae37956f8af181f9a131eb011efec332b9ed3d49480f59d8962ececf288": { + ... + "Name": "redis-master-2", + "IPv4Address": "192.168.117.7/24", + ... + }, + "94478d14bd950bcde533134870beb89b392515843027a0595af56dd1e3305a76": { + ... + "Name": "redis-master-1", + "IPv4Address": "192.168.117.4/24", + ... + }, + "ad055720747e7fc430ba794d5321723740eeb345c280073e4292ed4302ff657c": { + ... + "Name": "redis-slave-3", + "IPv4Address": "192.168.117.2/24", + ... + }, + "eddded1ac4c7528640ba0c6befbdaa48faa7cb13905b934ca1f5c69ab364c725": { + ... + "Name": "redis-slave-1", + "IPv4Address": "192.168.117.5/24", + ... + } + }, + ``` + 3. 进入容器, 然后构建集群. ```bash @@ -149,6 +150,7 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 192.168.117.2:6379 \ --cluster-replicas 1 ``` + 4. 最终的效果. 添加监控节点时填入所需要的参数. @@ -159,6 +161,6 @@ keywords: [开源监控系统, 开源数据库监控, RedisCluster数据库监 ![](/img/docs/help/redis-cluster-view.png) - ### Configuration Parameters +### Configuration Parameters 查看 [REDIS](https://hertzbeat.apache.org/docs/help/redis) 文档. diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rocketmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rocketmq.md index f12a43628ac..65ca5d96613 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rocketmq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rocketmq.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-----------|------------------------------------------------| | 注册中心Host | RocketMQ注册中心的IPV4,IPV6(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -24,7 +24,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 #### 指标集合:集群 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------------|------|------------| | BrokerId | 无 | Broker唯一ID | | Address | 无 | Broker地址 | @@ -38,7 +38,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 #### 指标集合:消费者 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------|------|--------| | Consumer_group | 无 | 消费者组 | | Client_quantity | 无 | 客户端数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rockylinux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rockylinux.md index 0cf541702bc..35dcfae06ef 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rockylinux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/rockylinux.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/shenyu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/shenyu.md index 08788efeaae..40710bb3986 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/shenyu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/shenyu.md @@ -5,45 +5,45 @@ sidebar_label: ShenYu网关监控 keywords: [开源监控系统, 开源消息中间件监控, ShenYu网关监控监控] --- -> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 +> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 -## 监控前操作 +## 监控前操作 -您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 +您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 -开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) +开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) -主要如下两步骤: +主要如下两步骤: 1. 在网关的 pom.xml 文件中添加 metrics 的依赖。 -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` + ```xml + + org.apache.shenyu + shenyu-spring-boot-starter-plugin-metrics + ${project.version} + + ``` 2. 在网关的配置yaml文件中编辑如下内容: -```yaml -shenyu: - metrics: - enabled: true #设置为 true 表示开启 - name : prometheus - host: 127.0.0.1 #暴露的ip - port: 8090 #暴露的端口 - jmxConfig: #jmx配置 - props: - jvm_enabled: true #开启jvm的监控指标 -``` + ```yaml + shenyu: + metrics: + enabled: true #设置为 true 表示开启 + name : prometheus + host: 127.0.0.1 #暴露的ip + port: 8090 #暴露的端口 + jmxConfig: #jmx配置 + props: + jvm_enabled: true #开启jvm的监控指标 + ``` -最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 +最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -53,79 +53,77 @@ shenyu: | 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | | 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:shenyu_request_total +#### 指标集合:shenyu_request_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------------| -| value | 无 | 收集ShenYu网关的所有请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | 收集ShenYu网关的所有请求数量 | #### 指标集合:shenyu_request_throw_created -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------------| -| value | 无 | 收集ShenYu网关的异常请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | 收集ShenYu网关的异常请求数量 | #### 指标集合:process_cpu_seconds_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| value | 无 | 用户和系统CPU总计所用的秒数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| value | 无 | 用户和系统CPU总计所用的秒数 | #### 指标集合:process_open_fds -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------| -| value | 无 | 打开的文件描述符的数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------| +| value | 无 | 打开的文件描述符的数量 | #### 指标集合:process_max_fds -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------| -| value | 无 | 打开的文件描述符的最大数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------| +| value | 无 | 打开的文件描述符的最大数量 | #### 指标集合:jvm_info -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-----------| -| runtime | 无 | JVM 版本信息 | -| vendor | 无 | JVM 版本信息 | -| version | 无 | JVM 版本信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| runtime | 无 | JVM 版本信息 | +| vendor | 无 | JVM 版本信息 | +| version | 无 | JVM 版本信息 | #### 指标集合:jvm_memory_bytes_used -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | JVM 内存区域 | -| value | MB | 给定 JVM 内存区域的已用大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| +| area | 无 | JVM 内存区域 | +| value | MB | 给定 JVM 内存区域的已用大小 | #### 指标集合:jvm_memory_pool_bytes_used -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-----------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已用大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的已用大小 | #### 指标集合:jvm_memory_pool_bytes_committed -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已提交大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的已提交大小 | #### 指标集合:jvm_memory_pool_bytes_max -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------| ----------- | -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的最大大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的最大大小 | #### 指标集合:jvm_threads_state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------| -| state | 无 | 线程状态 | -| value | 无 | 对应线程状态的线程数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------| +| state | 无 | 线程状态 | +| value | 无 | 对应线程状态的线程数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/smtp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/smtp.md index 21dcd9a88f3..73e9af9ee13 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/smtp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/smtp.md @@ -11,14 +11,13 @@ keywords: [ open source monitoring tool, open source SMTP monitoring tool, monit 通过 SMTP 的 hello 命令确定服务器是否可用 ``` -> 详见 https://datatracker.ietf.org/doc/html/rfc821#page-13 - +> 详见 **协议使用:SMTP** ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|---------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️无需协议头(例如:https://、http://) | | 监控名称 | 标识此监控的名称。名称需要保持唯一 | @@ -33,7 +32,7 @@ keywords: [ open source monitoring tool, open source SMTP monitoring tool, monit #### 指标集:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-------------------| | 响应时间 | 毫秒 | SMTP 服务器响应请求所需的时间 | | 响应状态 | | 响应状态 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/spring_gateway.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/spring_gateway.md index 086e0a63ac8..aaba0dd9841 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/spring_gateway.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/spring_gateway.md @@ -19,6 +19,7 @@ keywords: [开源监控工具, 开源 Spring Gateway 监控工具, 监控 Spring spring-boot-starter-actuator ``` + **2. 修改 YML 配置以暴露度量接口:** ```yaml @@ -35,56 +36,54 @@ management: ### 配置参数 -| 参数名称 | 参数描述 | -| ----------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 8080。 | +| 参数名称 | 参数描述 | +|----------|--------------------------------------------------------|-----------------------------------------------| +| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | +| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | +| 端口 | 数据库提供的默认端口为 8080。 | | 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | will continue only if the probe is successful -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | will continue only if the probe is successful | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | ### 采集指标 #### 指标收集: 健康状态 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|--------------------------| -| 服务状态 | 无 | 服务健康状态: UP(正常),Down(异常) | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|-------------------------| +| 服务状态 | 无 | 服务健康状态: UP(正常),Down(异常) | #### 指标收集: 环境信息 -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|----------------------------------------------| -| profile | 无 | 应用程序运行的配置环境: prod(生产环境),dev(开发环境),test(测试环境) | -| 端口号 | 无 | 应用程序暴露的端口 | -| 操作系统 | 无 | 运行操作系统 | -| 操作系统架构 | 无 | 运行操作系统的架构 | -| JDK供应商 | 无 | JDK 供应商 | -| JVM版本 | 无 | JVM 版本 | +| 指标名称 | 指标单位 | 指标描述 | +|---------|------|----------------------------------------------| +| profile | 无 | 应用程序运行的配置环境: prod(生产环境),dev(开发环境),test(测试环境) | +| 端口号 | 无 | 应用程序暴露的端口 | +| 操作系统 | 无 | 运行操作系统 | +| 操作系统架构 | 无 | 运行操作系统的架构 | +| JDK供应商 | 无 | JDK 供应商 | +| JVM版本 | 无 | JVM 版本 | #### 指标收集: 线程信息 -| 指标名称 | 指标单位 | 指标描述 | -|-------------|------------|-------------| -| 状态 | 无 | 线程状态 | -| 数量 | 无 | 线程状态对应的线程数量 | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|-------------| +| 状态 | 无 | 线程状态 | +| 数量 | 无 | 线程状态对应的线程数量 | #### 指标收集: 内存使用情况 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|-------------| -| 内存空间 | 无 | 内存空间名称 | -| 内存占用 | MB | 此空间占用的内存大小 | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|------------| +| 内存空间 | 无 | 内存空间名称 | +| 内存占用 | MB | 此空间占用的内存大小 | #### 指标收集: 路由信息 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|----------| -| 路由id | 无 | 路由 ID | -| 匹配规则 | 无 | 路由匹配规则 | -| 资源标识符 | 无 | 服务资源标识符 | -| 优先级 | 无 | 此路由的优先级 | - - +| 指标名称 | 指标单位 | 指标描述 | +|-------|------|---------| +| 路由id | 无 | 路由 ID | +| 匹配规则 | 无 | 路由匹配规则 | +| 资源标识符 | 无 | 服务资源标识符 | +| 优先级 | 无 | 此路由的优先级 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot2.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot2.md index 280c6cb6b06..d39b67d3efd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot2.md @@ -7,7 +7,6 @@ keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控 > 对SpringBoot2.0 actuator 暴露的通用性能指标进行采集监控。 - ## 监控前操作 如果想要通过此监控类型监控 `SpringBoot` 中的信息,则需要您的SpringBoot应用集成并开启SpringBoot Actuator。 @@ -20,6 +19,7 @@ keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控 spring-boot-starter-actuator ``` + **2、修改YML配置暴露指标接口:** ```yaml @@ -30,7 +30,9 @@ management: include: '*' enabled-by-default: on ``` + *注意:如果你的项目里还引入了认证相关的依赖,比如springboot-security,那么SpringBoot Actuator暴露出的接口可能会被拦截,此时需要你手动放开这些接口,以springboot-security为例,需要在SecurityConfig配置类中加入以下代码:* + ```java public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override @@ -46,48 +48,49 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ } } ``` + ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 应用服务对外提供的端口,默认为8080。 | | 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:health -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------------------------------| -| status | 无 | 服务健康状态: UP,Down | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|-----------------| +| status | 无 | 服务健康状态: UP,Down | #### 指标集合:environment -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------| -------- |----------------------------| -| profile | 无 | 应用运行profile: prod,dev,test | -| port | 无 | 应用暴露端口 | -| os | 无 | 运行所在操作系统 | -| os_arch | 无 | 运行所在操作系统架构 | -| jdk_vendor | 无 | jdk vendor | -| jvm_version | 无 | jvm version | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|----------------------------| +| profile | 无 | 应用运行profile: prod,dev,test | +| port | 无 | 应用暴露端口 | +| os | 无 | 运行所在操作系统 | +| os_arch | 无 | 运行所在操作系统架构 | +| jdk_vendor | 无 | jdk vendor | +| jvm_version | 无 | jvm version | #### 指标集合:threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------| -| state | 无 | 线程状态 | -| number | 无 | 此线程状态对应的线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------------| +| state | 无 | 线程状态 | +| number | 无 | 此线程状态对应的线程数量 | #### 指标集合:memory_used -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------| -| space | 无 | 内存空间名称 | -| mem_used | MB | 此空间占用内存大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|-----------| +| space | 无 | 内存空间名称 | +| mem_used | MB | 此空间占用内存大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot3.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot3.md index 384f9249d16..58f1942cf0d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/springboot3.md @@ -51,7 +51,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -65,23 +65,27 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### 采集指标 #### 指标集合:可用性 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|--------| | responseTime | ms | 响应时间 | #### 指标集合:线程 -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|--------------------| -| state | 无 | 线程状态 | -| size | 无 | 此线程状态对应的线程数量 | + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------| +| state | 无 | 线程状态 | +| size | 无 | 此线程状态对应的线程数量 | #### 指标集合:内存使用 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|-----------| | space | 无 | 内存空间名称 | | mem_used | MB | 此空间占用内存大小 | #### 指标集合:健康状态 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |--------|------|-----------------| -| status | 无 | 服务健康状态: UP,Down | \ No newline at end of file +| status | 无 | 服务健康状态: UP,Down | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md index 5dc66e27cfc..847a7775adc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md @@ -9,68 +9,68 @@ keywords: [开源监控系统, 开源数据库监控, SqlServer数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1433。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为1433。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | -| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | -| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | -| edition | 无 | 已安装的 实例的产品SQL Server版本 | -| start_time | 无 | 数据库启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------------------------------------------------| +| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | +| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | +| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | +| edition | 无 | 已安装的 实例的产品SQL Server版本 | +| start_time | 无 | 数据库启动时间 | #### 指标集合:performance_counters -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | -| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | -| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | -| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | -| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | -| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------|------|-------------------------------------------------------------------------------------| +| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | +| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | +| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | +| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | +| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | +| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | +| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | #### 指标集合:connection -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| user_connection | 无 | 已连接的会话数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------| +| user_connection | 无 | 已连接的会话数 | +### 常见问题 -### 常见问题 +1. SSL连接问题修复 -1. SSL连接问题修复 +jdk版本:jdk11 +问题描述:SQL Server2019使用SA用户连接报错 +错误信息: -jdk版本:jdk11 -问题描述:SQL Server2019使用SA用户连接报错 -错误信息: ```text The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxx ``` + 问题截图: ![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) 解决方案: -添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 +添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 -样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` +样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` -参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) +参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ssl_cert.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ssl_cert.md index d5f23f56ff6..e15de6e3e97 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ssl_cert.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ssl_cert.md @@ -5,29 +5,29 @@ sidebar_label: SSL证书监控 keywords: [开源监控系统, 开源网站监控, SSL证书监控监控] --- -> 对网站的SSL证书过期时间,响应时间等指标进行监测 +> 对网站的SSL证书过期时间,响应时间等指标进行监测 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:certificate +#### 指标集合:certificate -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------| -| subject | 无 | 证书名称 | -| expired | 无 | 是否过期 | -| start_time | 无 | 有效期开始时间 | -| start_timestamp | ms毫秒 | 有效期开始时间戳 | -| end_time | 无 | 过期时间 | -| end_timestamp | ms毫秒 | 过期时间戳 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|----------| +| subject | 无 | 证书名称 | +| expired | 无 | 是否过期 | +| start_time | 无 | 有效期开始时间 | +| start_timestamp | ms毫秒 | 有效期开始时间戳 | +| end_time | 无 | 过期时间 | +| end_timestamp | ms毫秒 | 过期时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/status.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/status.md index ebae858ee4c..6d21a834525 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/status.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/status.md @@ -13,14 +13,14 @@ keywords: [开源监控系统, 开源网站监控, 状态页面] 需要填写的字段如下: -| 字段名称 | 字段说明 | 举例 | -|------|-----------------------------------------|---------------------------------------------------------------------------------------------------| -| 组织名称 | 组织的名称 | HertzBeat | -| 组织介绍 | 组织的详细介绍 | Apache HertzBeat (incubating) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 | -| 网站链接 | 组织网站的 URL,便于访问者获取更多信息 | https://hertzbeat.apache.org/ | -| 标志图片 | 组织官方标志或 Logo 的图片文件路径或 URL,建议使用 .svg 格式 | https://hertzbeat.apache.org/zh-cn/img/hertzbeat-logo.svg | -| 反馈地址 | 接收问题反馈的地址 | https://github.com/apache/hertzbeat/issues | -| 主题颜色 | 状态页面的主色调。 | 在页面中点击选择 | +| 字段名称 | 字段说明 | 举例 | +|------|----------------------------------------|---------------------------------------------------------------------------------------------------| +| 组织名称 | 组织的名称 | HertzBeat | +| 组织介绍 | 组织的详细介绍 | Apache HertzBeat (incubating) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 | +| 网站链接 | 组织网站的 URL,便于访问者获取更多信息 | | +| 标志图片 | 组织官方标志或 Logo 的图片文件路径或 URL,建议使用 .svg 格式 | | +| 反馈地址 | 接收问题反馈的地址 | | +| 主题颜色 | 状态页面的主色调。 | 在页面中点击选择 | 填写完组织信息后,点击 `确定`。 @@ -32,12 +32,12 @@ keywords: [开源监控系统, 开源网站监控, 状态页面] 点击 `新增组件` 添加需要监控的组件,并填写以下字段: -| 字段名称 | 字段说明 | 举例 | -|------|-----------------------------------------------------------------------------------------|------------------------------------| -| 服务组件 | 组件服务名称 | 开发环境 ElasticSearch | -| 组件描述 | 组件服务的详细描述信息 | 开发环境,ElasticSearch (ip:192.168.1.1) | -| 服务状态统计方式 | 计算组件服务状态的方式。
自动计算:根据组件监控的状态自动计算显示状态。
手动设置:手动配置组件状态。 | 自动计算 / 手动设置 二选一 | -| 匹配标签 | 状态计算关联标签,使用标签关联的所有监控可用性状态数据来计算组件服务状态。 | 在页面选择组件的标签 | +| 字段名称 | 字段说明 | 举例 | +|----------|-------------------------------------------------------------|-------------------------------------| +| 服务组件 | 组件服务名称 | 开发环境 ElasticSearch | +| 组件描述 | 组件服务的详细描述信息 | 开发环境,ElasticSearch (ip:192.168.1.1) | +| 服务状态统计方式 | 计算组件服务状态的方式。
自动计算:根据组件监控的状态自动计算显示状态。
手动设置:手动配置组件状态。 | 自动计算 / 手动设置 二选一 | +| 匹配标签 | 状态计算关联标签,使用标签关联的所有监控可用性状态数据来计算组件服务状态。 | 在页面选择组件的标签 | ### 设置状态统计时间 @@ -61,13 +61,13 @@ status: ![](/img/docs/help/status-1.png) -| 字段名称 | 字段说明 | 举例 | -|----------|-----------------------------------------------|------------------------------------------------| -| 事件名称 | 事件的标题,应简洁明了地反映事件的核心内容。 | "服务器宕机事件 - 2023 年 4 月 5 日" | -| 影响组件 | 选择受此事件影响的组件。 | 在页面中选择 | -| 过程状态 | 设置事件当前状态,便于追踪处理进度。可选值:调查中 / 已确认 / 观察中 / 已修复 | 已确认 | -| 发布消息 | 向相关方传达的正式通知,包括事件详情、影响评估和应对措施。 | Dear All,开发环境异常,开发人员正在紧急处理,预计两小时内修复。请耐心等待,如有紧急事项请联系 Tom:130xxxx0000! | +| 字段名称 | 字段说明 | 举例 | +|------|---------------------------------------------|----------------------------------------------------------------------| +| 事件名称 | 事件的标题,应简洁明了地反映事件的核心内容。 | "服务器宕机事件 - 2023 年 4 月 5 日" | +| 影响组件 | 选择受此事件影响的组件。 | 在页面中选择 | +| 过程状态 | 设置事件当前状态,便于追踪处理进度。可选值:调查中 / 已确认 / 观察中 / 已修复 | 已确认 | +| 发布消息 | 向相关方传达的正式通知,包括事件详情、影响评估和应对措施。 | Dear All,开发环境异常,开发人员正在紧急处理,预计两小时内修复。请耐心等待,如有紧急事项请联系 Tom:130xxxx0000! | > 提示:可以多次发布消息,及时向团队汇报当前状态。 -![](/img/docs/help/status-2.png) \ No newline at end of file +![](/img/docs/help/status-2.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tidb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tidb.md index cf0cfb417d1..b0ea82505ca 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tidb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tidb.md @@ -1,49 +1,46 @@ ---- -id: tidb -title: 监控:TiDB数据库监控 -sidebar_label: TiDB数据库 -keywords: [开源监控系统, 开源数据库监控, TiDB数据库监控] ---- - -> 使用 HTTP 和 JDBC 协议对 TiDB 的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Service端口 | TiDB数据库对外提供用于状态报告的端口,默认为10080。 | -| PD端口 | TiDB数据库的PD端口,默认为2379。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| JDBC端口 | TiDB数据库对外提供用于客户端请求的端口,默认为4000。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| JDBC URL | 数据库使用[JDBC驱动的](https://docs.pingcap.com/zh/tidb/stable/dev-guide-connect-to-tidb#jdbc)连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -监控模板将从TiDB系统变量表中检索监控指标,用户可以自行检索[TiDB系统变量表](https://docs.pingcap.com/zh/tidb/stable/system-variables)以查询所需信息或其他系统变量。 - -除此之外,TiDB也提供默认监控指标表,见[Metrics Schema](https://docs.pingcap.com/zh/tidb/stable/metrics-schema)与[METRICS_SUMMARY](https://docs.pingcap.com/zh/tidb/stable/information-schema-metrics-summary),用户可以根据需求自行添加检索式。 - -由于可以被监控的指标过多,下文仅介绍监控模板中所查询的指标。 - -#### 指标集合:系统变量 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | MySQL 的版本和 TiDB 的版本,例如 '8.0.11-TiDB-v7.5.1' | -| version_comment | 无 | TiDB 版本号的其他信息,例如 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible' | -| version_compile_machine | 无 | 运行 TiDB 的 CPU 架构的名称 | -| version_compile_os | 无 | TiDB 所在操作系统的名称 | -| max_connections | 无 | 该变量表示 TiDB 中同时允许的最大客户端连接数,用于资源控制。默认情况下,该变量值为 0 表示不限制客户端连接数。当本变量的值大于 0 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。 | -| datadir | 无 | 数据存储的位置,位置可以是本地路径 /tmp/tidb。如果数据存储在 TiKV 上,则可以是指向 PD 服务器的路径。变量值的格式为 ${pd-ip}:${pd-port},表示 TiDB 在启动时连接到的 PD 服务器。 | -| port | 无 | 使用 MySQL 协议时 tidb-server 监听的端口。 | - - - +--- +id: tidb +title: 监控:TiDB数据库监控 +sidebar_label: TiDB数据库 +keywords: [开源监控系统, 开源数据库监控, TiDB数据库监控] +--- + +> 使用 HTTP 和 JDBC 协议对 TiDB 的通用性能指标进行采集监控。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------------------------------------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Service端口 | TiDB数据库对外提供用于状态报告的端口,默认为10080。 | +| PD端口 | TiDB数据库的PD端口,默认为2379。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| JDBC端口 | TiDB数据库对外提供用于客户端请求的端口,默认为4000。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| JDBC URL | 数据库使用[JDBC驱动的](https://docs.pingcap.com/zh/tidb/stable/dev-guide-connect-to-tidb#jdbc)连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +监控模板将从TiDB系统变量表中检索监控指标,用户可以自行检索[TiDB系统变量表](https://docs.pingcap.com/zh/tidb/stable/system-variables)以查询所需信息或其他系统变量。 + +除此之外,TiDB也提供默认监控指标表,见[Metrics Schema](https://docs.pingcap.com/zh/tidb/stable/metrics-schema)与[METRICS_SUMMARY](https://docs.pingcap.com/zh/tidb/stable/information-schema-metrics-summary),用户可以根据需求自行添加检索式。 + +由于可以被监控的指标过多,下文仅介绍监控模板中所查询的指标。 + +#### 指标集合:系统变量 + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|------------------------------------------------------------------------------------------------------------------| +| version | 无 | MySQL 的版本和 TiDB 的版本,例如 '8.0.11-TiDB-v7.5.1' | +| version_comment | 无 | TiDB 版本号的其他信息,例如 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible' | +| version_compile_machine | 无 | 运行 TiDB 的 CPU 架构的名称 | +| version_compile_os | 无 | TiDB 所在操作系统的名称 | +| max_connections | 无 | 该变量表示 TiDB 中同时允许的最大客户端连接数,用于资源控制。默认情况下,该变量值为 0 表示不限制客户端连接数。当本变量的值大于 0 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。 | +| datadir | 无 | 数据存储的位置,位置可以是本地路径 /tmp/tidb。如果数据存储在 TiKV 上,则可以是指向 PD 服务器的路径。变量值的格式为 ${pd-ip}:${pd-port},表示 TiDB 在启动时连接到的 PD 服务器。 | +| port | 无 | 使用 MySQL 协议时 tidb-server 监听的端口。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/time_expression.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/time_expression.md index f03ebfab25e..4c3bd7b3e76 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/time_expression.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/time_expression.md @@ -11,7 +11,7 @@ HertzBeat支持使用表达式计算监控采集时的相对时间,支持更 ### 语法 -``` +```shell ${FORMATTER [{ + | - } ]} ``` @@ -23,7 +23,7 @@ ${FORMATTER [{ + | - } ]} > 示例输出以当前时间为 `2022-04-24 02:40:00.123` -| 名称 | 描述 | 示例 | +| 名称 | 描述 | 示例 | |--------------|----------------------------|---------------------| | @now | 格式化为 `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | | @date | 格式化为 `yyyy-MM-dd` | 2022-04-24 | @@ -42,9 +42,9 @@ ${FORMATTER [{ + | - } ]} | 名称 | 描述 | |----|----| -| y | 年 | +| y | 年 | | M | 月 | -| d | 日 | +| d | 日 | | H | 小时 | | m | 分钟 | | s | 秒 | @@ -57,10 +57,8 @@ ${FORMATTER [{ + | - } ]} #### 使用示例 1. 简单表达式 - - `${now}` 获取当前时间,并格式化为 `yyyy-MM-dd HH:mm:ss` - - `${time+1h}` 计算当前时间一小时之后的时间,并格式化为 `HH:mm:ss` - - `${time+1h+15s+30s}` 计算当前时间一小时15分钟30秒之后的时间,并格式化为 `HH:mm:ss` + - `${now}` 获取当前时间,并格式化为 `yyyy-MM-dd HH:mm:ss` + - `${time+1h}` 计算当前时间一小时之后的时间,并格式化为 `HH:mm:ss` + - `${time+1h+15s+30s}` 计算当前时间一小时15分钟30秒之后的时间,并格式化为 `HH:mm:ss` 2. 复杂表达式模板(如果内置的格式化器无法满足需要,可以组合使用多个表达式) - - `${@year}年${@month}月${@day}日`,获取当前日期并按照 yyyy年MM月dd日格式返回 - - + - `${@year}年${@month}月${@day}日`,获取当前日期并按照 yyyy年MM月dd日格式返回 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md index c306bebc550..e1f112777f7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/tomcat.md @@ -11,67 +11,65 @@ keywords: [开源监控系统, 开源网站监控, Tomcat监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | ### Tomcat开启JMX协议步骤 -1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 +1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 -2. vim catalina.sh +2. vim catalina.sh ```aidl CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" ``` -参考: https://blog.csdn.net/weixin_41924764/article/details/108694239 +参考: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ubuntu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ubuntu.md index e5d1be3a140..4425f1c2c06 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ubuntu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/ubuntu.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, Ubuntu监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/udp_port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/udp_port.md index 06c11717b25..dde32b91e4d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/udp_port.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/udp_port.md @@ -10,7 +10,7 @@ keywords: [开源监控系统, 开源网络监控, UDP 端口可用性监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |:-------|--------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头 (例如: https://, http://) 。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -26,6 +26,6 @@ keywords: [开源监控系统, 开源网络监控, UDP 端口可用性监控] #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|---------|--------| | 响应时间 | 毫秒 (ms) | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/valkey.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/valkey.md new file mode 100644 index 00000000000..eeba88568d3 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/valkey.md @@ -0,0 +1,239 @@ +--- +id: valkey +title: 监控:Valkey 数据库监控 +sidebar_label: Valkey 数据库 +keywords: [开源监控系统, 开源数据库监控, Valkey 数据库监控] +--- + +> 对 Valkey 数据库的通用性能指标进行采集监控。支持 Valkey 7.0+。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Valkey 对外提供的端口,默认为6379,sentinel节点默认26379 | +| 超时时间 | 设置 Valkey info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:server + +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|-----------------------------------------------| +| valkey_version | 无 | Valkey 服务器版本 | +| valkey_git_sha1 | 无 | Git SHA1 | +| valkey_git_dirty | 无 | Git dirty flag | +| valkey_build_id | 无 | Valkey 构建的id | +| valkey_mode | 无 | Valkey 模式(包括standalone, sentinel, cluster) | +| os | 无 | Valkey 服务器的宿主操作系统 | +| arch_bits | 无 | 架构(32 或 64 位) | +| multiplexing_api | 无 | Valkey 使用的事件循环机制 | +| atomicvar_api | 无 | Valkey 使用的原子 API | +| gcc_version | 无 | 用于编译 Valkey 服务器的GCC编译器版本 | +| process_id | 无 | 服务器进程的PID | +| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | +| run_id | 无 | 标识 Valkey 服务器的随机值(由Sentinel和Cluster使用) | +| tcp_port | 无 | TCP/IP侦听端口 | +| server_time_usec | 无 | 微秒级精度的基于时间的系统时间 | +| uptime_in_seconds | 无 | 自 Valkey 服务器启动后的秒数 | +| uptime_in_days | 无 | 自 Valkey 服务器启动后的天数 | +| hz | 无 | 服务器的当前频率设置,valkey 相关定时任务的执行频率(如清除过期key,关闭超时客户端) | +| configured_hz | 无 | 服务器配置的频率设置 | +| lru_clock | 无 | 时钟每分钟递增,用于LRU管理 | +| executable | 无 | 服务器可执行文件的路径 | +| config_file | 无 | 配置文件的路径 | +| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志 | +| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。 | + +#### 指标集合:clients + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|--------------------------------------------------------------------------------| +| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | +| cluster_connections | 无 | 群集总线使用的套接字数量的近似值 | +| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。 | +| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | +| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | +| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | +| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING) | +| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | + +#### 指标集合:memory + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|----------|-----------------------------------------------------------------------------------------------| +| used_memory | byte | valkey 使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | +| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | +| used_memory_rss | byte | 操作系统看到的 valkey 分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字 | +| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak | byte | valkey 消耗的峰值内存(字节) | +| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | +| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和 | +| used_memory_startup | byte | valkey 在启动时消耗的初始内存量(字节) | +| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | +| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | +| allocator_allocated | byte | 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同 | +| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片 | +| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | +| total_system_memory | byte | valkey 主机的内存总量 | +| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_lua | byte | Lua引擎使用的字节数 | +| used_memory_lua_human | KB | 上一个值的人类可读值 | +| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | +| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | +| number_of_cached_scripts | 无 | 缓存的lua脚本数量 | +| maxmemory | byte | maxmemory配置指令的值 | +| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | +| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | +| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | +| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | +| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | +| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | +| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | +| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | +| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | +| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | +| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。 | +| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | +| mem_clients_slaves | 无 | 副本客户端使用的内存-从 valkey 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | +| mem_clients_normal | 无 | 普通客户端使用的内存 | +| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | +| mem_allocator | 无 | 内存分配器,在编译时选择。 | +| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | +| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL) | +| lazyfreed_objects | 无 | 已延迟释放的对象数。 | + +#### 指标集合:persistence + +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|--------|-----------------------------------------------------------------------------------------------------| +| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是 | +| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | +| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | +| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比 | +| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | +| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | +| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | +| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | +| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | +| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功 | +| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | +| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | +| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | +| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | +| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite | +| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | +| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | +| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | +| aof_last_write_status | 无 | 上次aof写入状态 | +| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | +| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | + +#### 指标集合:stats + +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|----------------------------------------------------| +| total_connections_received | 无 | 服务器接受的连接总数 | +| total_commands_processed | 无 | 服务器处理的命令总数 | +| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | +| total_net_input_bytes | byte | 从网络读取的字节总数 | +| total_net_output_bytes | byte | 写入网络的总字节数 | +| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | +| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | +| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数 | +| sync_full | 无 | 具有副本的完整重新同步数 | +| sync_partial_ok | 无 | 接受的部分重新同步请求数 | +| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | +| expired_keys | 无 | 过期的key总数 | +| expired_stale_perc | 无 | 可能过期key的百分比 | +| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | +| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | +| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | +| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | +| keyspace_misses | 无 | 在主dict 中未查到key的次数 | +| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | +| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | +| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | +| total_forks | 无 | 自服务器启动以来的fork操作总数 | +| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | +| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | +| active_defrag_hits | 无 | 主动碎片整理命中次数 | +| active_defrag_misses | 无 | 主动碎片整理未命中次数 | +| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | +| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数 | +| tracking_total_keys | 无 | key 查询的总数 | +| tracking_total_items | 无 | item查询的总数 | +| tracking_total_prefixes | 无 | 前缀查询的总数 | +| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | +| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | +| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | +| total_reads_processed | 无 | 正在读取的请求数 | +| total_writes_processed | 无 | 正在写入的请求数 | +| io_threaded_reads_processed | 无 | 正在读取的线程数 | +| io_threaded_writes_processed | 无 | 正在写入的线程数 | + +#### 指标集合:replication + +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-------------------------------------------------------------------------------------| +| role | 无 | 节点角色 master 主节点 slave 从节点 | +| connected_slaves | 无 | 连接的从节点数 | +| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | +| master_replid | 无 | 实例启动的随机字符串 | +| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID | +| master_repl_offset | 无 | 主从同步偏移量 | +| second_repl_offset | 无 | 接受从服务ID的最大偏移量 | +| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | +| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | +| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | +| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | + +#### 指标集合:cpu + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|------------------------| +| used_cpu_sys | 无 | valkey主进程在内核态所占用CPU时钟总和 | +| used_cpu_user | 无 | valkey主进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_children | 无 | valkey子进程在内核态所占用CPU时钟总和 | +| used_cpu_user_children | 无 | valkey子进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_main_thread | 无 | valkey服务器主线程消耗的内核CPU | +| used_cpu_user_main_thread | 无 | valkey服务器主线程消耗的用户CPU | + +#### 指标集合:errorstats + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|-----------| +| errorstat_ERR | 无 | 错误累计出现的次数 | +| errorstat_MISCONF | 无 | | + +#### 指标集合:cluster + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|--------------------| +| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是 | + +#### 指标集合:commandstats + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|---------------------------------------------------------------------------------------------------------------------------| +| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数 | +| cmdstat_get | 无 | get命令的统计信息 | +| cmdstat_setnx | 无 | setnx命令的统计信息 | +| cmdstat_hset | 无 | hset命令的统计信息 | +| cmdstat_hget | 无 | hget命令的统计信息 | +| cmdstat_lpush | 无 | lpush命令的统计信息 | +| cmdstat_rpush | 无 | rpush命令的统计信息 | +| cmdstat_lpop | 无 | lpop命令的统计信息 | +| cmdstat_rpop | 无 | rpop命令的统计信息 | +| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/vastbase.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/vastbase.md new file mode 100644 index 00000000000..1a5b020ff8d --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/vastbase.md @@ -0,0 +1,55 @@ +--- +id: vastbase +title: 监控:Vastbase 数据库监控 +sidebar_label: Vastbase 数据库 +keywords: [开源监控系统, 开源数据库监控, Vastbase 数据库监控] +--- + +> 对 Vastbase 数据库的通用性能指标进行采集监控。支持Vastbase 9.2.4+。 + +### 配置参数 + +| 参数名称 | 参数帮助描述 | +|--------|-------------------------------------------------| +| 监控Host | 被监控的 Host 地址。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置 SQL 查询未响应数据时的超时时间,单位 ms 毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | + +### 采集指标 + +#### 指标集合:basic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | + +#### 指标集合:state + +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|------------------------------------------------------------------------| +| name | 无 | 数据库名称,或 share-object 为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 Vastbase 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | + +#### 指标集合:activity + +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/website.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/website.md index ee8921e316b..7403f255aec 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/website.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/website.md @@ -5,26 +5,25 @@ sidebar_label: 网站监测 keywords: [开源监控系统, 开源网站监控] --- -> 对网站是否可用,响应时间等指标进行监测 +> 对网站是否可用,响应时间等指标进行监测 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | +#### 指标集合:summary +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/websocket.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/websocket.md index ad8baa7d71b..b4dfc13d701 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/websocket.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/websocket.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, Websocket监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------------------|--------------------------------------------------------------| | WebSocket服务的Host | 被监控的Websocket的IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -23,7 +23,7 @@ keywords: [ 开源监控系统, Websocket监控 ] #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|---------| | responseTime | ms | 响应时间 | | httpVersion | 无 | HTTP 版本 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows.md index 6a1c79b9ede..0b1791435f4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/windows.md @@ -6,38 +6,38 @@ keywords: [开源监控系统, 开源操作系统监控, Windows操作系统监 --- > 通过SNMP协议对Windows操作系统的通用性能指标进行采集监控。 -> 注意⚠️ Windows服务器需开启SNMP服务 +> 注意⚠️ Windows服务器需开启SNMP服务 -参考资料: -[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) +参考资料: +[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) +[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) +[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) +[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | -| SNMP 版本 | SNMP协议版本 V1 V2c V3 | +| 参数名称 | 参数帮助描述 | +|----------|----------------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | +| SNMP 版本 | SNMP协议版本 V1 V2c V3 | | SNMP 团体字 | SNMP 协议团体名(Community Name),用于实现SNMP网络管理员访问SNMP管理代理时的身份验证。类似于密码,默认值为 public | -| 超时时间 | 协议连接超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 超时时间 | 协议连接超时时间 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:system -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 主机名称 | -| descr | 无 | 操作系统描述 | -| uptime | 无 | 系统运行时间 | -| numUsers | 个数 | 当前用户数 | -| services | 个数 | 当前服务数量 | -| processes | 个数 | 当前进程数量 | -| responseTime | ms | 采集响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| name | 无 | 主机名称 | +| descr | 无 | 操作系统描述 | +| uptime | 无 | 系统运行时间 | +| numUsers | 个数 | 当前用户数 | +| services | 个数 | 当前服务数量 | +| processes | 个数 | 当前进程数量 | +| responseTime | ms | 采集响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/yarn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/yarn.md index 2c88fe1e5a9..6694aff14fe 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/yarn.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/yarn.md @@ -15,69 +15,69 @@ keywords: [大数据监控系统, Apache Yarn监控, 资源管理器监控] ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | Apache Yarn 的监控端口号,默认为8088。 | -| 查询超时时间 | 查询 Apache Yarn 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 参数名称 | 参数帮助描述 | +|--------|-------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | Apache Yarn 的监控端口号,默认为8088。 | +| 查询超时时间 | 查询 Apache Yarn 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | ### 采集指标 #### 指标集合:ClusterMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ---------------------------------- | -| NumActiveNMs | | 当前存活的 NodeManager 个数 | -| NumDecommissionedNMs | | 当前 Decommissioned 的 NodeManager 个数 | -| NumDecommissioningNMs| | 集群正在下线的节点数 | -| NumLostNMs | | 集群丢失的节点数 | -| NumUnhealthyNMs | | 集群不健康的节点数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|------------------------------------| +| NumActiveNMs | | 当前存活的 NodeManager 个数 | +| NumDecommissionedNMs | | 当前 Decommissioned 的 NodeManager 个数 | +| NumDecommissioningNMs | | 集群正在下线的节点数 | +| NumLostNMs | | 集群丢失的节点数 | +| NumUnhealthyNMs | | 集群不健康的节点数 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ------------------------------------ | -| MemNonHeapCommittedM | MB | JVM当前非堆内存大小已提交大小 | -| MemNonHeapMaxM | MB | JVM非堆最大可用内存 | -| MemNonHeapUsedM | MB | JVM当前已使用的非堆内存大小 | -| MemHeapCommittedM | MB | JVM当前已使用堆内存大小 | -| MemHeapMaxM | MB | JVM堆内存最大可用内存 | -| MemHeapUsedM | MB | JVM当前已使用堆内存大小 | -| GcTimeMillis | | JVM GC时间 | -| GcCount | | JVM GC次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|------------------| +| MemNonHeapCommittedM | MB | JVM当前非堆内存大小已提交大小 | +| MemNonHeapMaxM | MB | JVM非堆最大可用内存 | +| MemNonHeapUsedM | MB | JVM当前已使用的非堆内存大小 | +| MemHeapCommittedM | MB | JVM当前已使用堆内存大小 | +| MemHeapMaxM | MB | JVM堆内存最大可用内存 | +| MemHeapUsedM | MB | JVM当前已使用堆内存大小 | +| GcTimeMillis | | JVM GC时间 | +| GcCount | | JVM GC次数 | #### 指标集合:QueueMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ------------------------------------ | -| queue | | 队列名称 | -| AllocatedVCores | | 分配的虚拟核数(已分配) | -| ReservedVCores | | 预留核数 | -| AvailableVCores | | 可用核数(尚未分配) | -| PendingVCores | | 阻塞调度核数 | -| AllocatedMB | MB | 已分配(已用)的内存大小 | -| AvailableMB | MB | 可用内存(尚未分配) | -| PendingMB | MB | 阻塞调度内存 | -| ReservedMB | MB | 预留内存 | -| AllocatedContainers | | 已分配(已用)的container数 | -| PendingContainers | | 阻塞调度container个数 | -| ReservedContainers | | 预留container数 | -| AggregateContainersAllocated | | 累积的container分配总数 | -| AggregateContainersReleased | | 累积的container释放总数 | -| AppsCompleted | | 完成的任务数 | -| AppsKilled | | 被杀掉的任务数 | -| AppsFailed | | 失败的任务数 | -| AppsPending | | 阻塞的任务数 | -| AppsRunning | | 提正在运行的任务数 | -| AppsSubmitted | | 提交过的任务数 | -| running_0 | | 运行时间小于60分钟的作业个数 | -| running_60 | | 运行时间介于60~300分钟的作业个数 | -| running_300 | | 运行时间介于300~1440分钟的作业个数 | -| running_1440 | | 运行时间大于1440分钟的作业个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|------|-----------------------| +| queue | | 队列名称 | +| AllocatedVCores | | 分配的虚拟核数(已分配) | +| ReservedVCores | | 预留核数 | +| AvailableVCores | | 可用核数(尚未分配) | +| PendingVCores | | 阻塞调度核数 | +| AllocatedMB | MB | 已分配(已用)的内存大小 | +| AvailableMB | MB | 可用内存(尚未分配) | +| PendingMB | MB | 阻塞调度内存 | +| ReservedMB | MB | 预留内存 | +| AllocatedContainers | | 已分配(已用)的container数 | +| PendingContainers | | 阻塞调度container个数 | +| ReservedContainers | | 预留container数 | +| AggregateContainersAllocated | | 累积的container分配总数 | +| AggregateContainersReleased | | 累积的container释放总数 | +| AppsCompleted | | 完成的任务数 | +| AppsKilled | | 被杀掉的任务数 | +| AppsFailed | | 失败的任务数 | +| AppsPending | | 阻塞的任务数 | +| AppsRunning | | 提正在运行的任务数 | +| AppsSubmitted | | 提交过的任务数 | +| running_0 | | 运行时间小于60分钟的作业个数 | +| running_60 | | 运行时间介于60~300分钟的作业个数 | +| running_300 | | 运行时间介于300~1440分钟的作业个数 | +| running_1440 | | 运行时间大于1440分钟的作业个数 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ---------------------------- | -| StartTime | | 启动时间戳 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/zookeeper.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/zookeeper.md index 0783ceaf3fb..9b8e3427f6b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/zookeeper.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/zookeeper.md @@ -12,89 +12,108 @@ keywords: [开源监控系统, Zookeeper监控监控] > 监控 zookeeper 目前的实现方案使用的是 zookeeper 提供的四字命令 + netcat 来收集指标数据 > 需要用户自己将zookeeper的四字命令加入白名单 -1. 加白名单步骤 +1. 加白名单步骤 -> 1.找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -> -> 2.配置文件中加入以下命令 + 1. 找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -```shell -# 将需要的命令添加到白名单中 -4lw.commands.whitelist=stat, ruok, conf, isro + 2. 配置文件中加入以下命令 -# 将所有命令添加到白名单中 -4lw.commands.whitelist=* -``` -> 3.重启服务 + ```shell + # 将需要的命令添加到白名单中 + 4lw.commands.whitelist=stat, ruok, conf, isro + + # 将所有命令添加到白名单中 + 4lw.commands.whitelist=* + ``` -```shell -zkServer.sh restart -``` + 3. 重启服务 -2. netcat 协议 + ```shell + zkServer.sh restart + ``` + +2. netcat 协议 目前实现方案需要我们部署zookeeper的linux服务器,安装netcat的命令环境 > netcat安装步骤 -```shell -yum install -y nc -``` +> +> ```shell +> yum install -y nc +> ``` 如果终端显示以下信息则说明安装成功 + ```shell Complete! ``` - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Zookeeper的Linux服务器SSH端口。 | -| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | Zookeeper所在Linux连接用户名 | -| 密码 | Zookeeper所在Linux连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Zookeeper的Linux服务器SSH端口。 | +| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | Zookeeper所在Linux连接用户名 | +| 密码 | Zookeeper所在Linux连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:conf -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| clientPort | 无 | 端口 | -| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | -| dataDirSize | kb | 数据快照文件大小 | -| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | -| dataLogSize | kb | 事务日志文件大小 | -| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | -| minSessionTimeout | ms| 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | -| maxSessionTimeout | ms |最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | -| serverId | 无 | 服务器编号 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|----------------------------------------| +| clientPort | 无 | 端口 | +| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | +| dataDirSize | kb | 数据快照文件大小 | +| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | +| dataLogSize | kb | 事务日志文件大小 | +| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | +| minSessionTimeout | ms | 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | +| maxSessionTimeout | ms | 最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | +| serverId | 无 | 服务器编号 | #### 指标集合:stats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| zk_version | 无 | 服务器版本 | -| zk_server_state | 无 | 服务器角色 | -| zk_num_alive_connections | 个 | 连接数 | -| zk_avg_latency | ms | 平均延时 | -| zk_outstanding_requests | 个 | 堆积请求数 | -| zk_znode_count | 个 | znode结点数量 | -| zk_packets_sent | 个 | 发包数 | -| zk_packets_received | 个 | 收包数 | -| zk_watch_count | 个 | watch数量 | -| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | -| zk_approximate_data_size | kb | 数据大小 | -| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | -| zk_max_latency | ms | 最大延时 | -| zk_ephemerals_count | 个 | 临时节点数 | -| zk_min_latency | ms | 最小延时 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------------|------|------------| +| zk_version | 无 | 服务器版本 | +| zk_server_state | 无 | 服务器角色 | +| zk_num_alive_connections | 个 | 连接数 | +| zk_avg_latency | ms | 平均延时 | +| zk_outstanding_requests | 个 | 堆积请求数 | +| zk_znode_count | 个 | znode结点数量 | +| zk_packets_sent | 个 | 发包数 | +| zk_packets_received | 个 | 收包数 | +| zk_watch_count | 个 | watch数量 | +| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | +| zk_approximate_data_size | kb | 数据大小 | +| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | +| zk_max_latency | ms | 最大延时 | +| zk_ephemerals_count | 个 | 临时节点数 | +| zk_min_latency | ms | 最小延时 | + +#### 指标集合:envi + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|-------------| +| zk_version | 无 | ZooKeeper版本 | +| hostname | 无 | 主机名 | +| java_version | 无 | Java版本 | +| java_vendor | 无 | Java供应商 | +| java_home | 无 | Java主目录 | +| java_class_path | 无 | Java类路径 | +| java_library_path | 无 | Java库路径 | +| java_io_tmpdir | 无 | Java临时目录 | +| java_compiler | 无 | Java编译器 | +| os_name | 无 | 操作系统名称 | +| os_arch | 无 | 操作系统架构 | +| os_version | 无 | 操作系统版本 | +| user_name | 无 | 用户名 | +| user_home | 无 | 用户主目录 | +| user_dir | 无 | 用户当前目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md index cd0274a5f98..31c0a33eeaa 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md @@ -16,7 +16,6 @@ slug: / [![QQ](https://img.shields.io/badge/QQ-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) - ## 🎡 介绍 [Apache HertzBeat](https://github.com/apache/hertzbeat) (incubating) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 @@ -31,15 +30,15 @@ slug: / - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - 提供强大的状态页构建能力,轻松向用户传达您产品服务的实时状态。 -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 +> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 ----- +--- ### 强大的监控模版 > 开始我们就说 HertzBeat 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 HertzBeat 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 -HertzBeat 自身并没有去创造一种采集数据协议让监控对端来适配它。而是充分使用了现有的生态,`SNMP协议`采集网络交换机路由器信息,`JMX规范`采集JAVA应用信息,`JDBC规范`采集数据集信息,`SSH`直连执行脚本获取回显信息,`HTTP+(JsonPath | prometheus等)`解析API接口信息,`IPMI协议`采集服务器信息等等。 +HertzBeat 自身并没有去创造一种采集数据协议让监控对端来适配它。而是充分使用了现有的生态,`SNMP协议`采集网络交换机路由器信息,`JMX规范`采集JAVA应用信息,`JDBC规范`采集数据集信息,`SSH`直连执行脚本获取回显信息,`HTTP+(JsonPath | prometheus等)`解析API接口信息,`IPMI协议`采集服务器信息等等。 HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标数据。 ![hertzbeat](/img/blog/multi-protocol.png) @@ -48,7 +47,6 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ![hertzbeat](/img/home/9.png) - ### 内置监控类型 **官方内置了大量的监控模版类型,方便用户直接在页面添加使用,一款监控类型对应一个YML监控模版** @@ -94,30 +92,31 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ### 强大自定义功能 -> 由前面的**监控模版**介绍,大概清楚了 `HertzBeat` 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 +> 由前面的**监控模版**介绍,大概清楚了 `HertzBeat` 拥有的强大自定义功能。 +> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 > 模版里面包含各个协议的使用配置,环境变量,指标转换,指标计算,单位转换,指标采集等一系列功能,帮助用户能采集到自己想要的监控指标。 ![hertzbeat](/img/docs/custom-arch.png) ### 无需 Agent -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 `agent` 的安装部署调试升级了。 -> 每台主机得装个 `agent`,为了监控不同应用中间件可能还得装几个对应的 `agent`,监控数量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 +> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 `agent` 的安装部署调试升级了。 +> 每台主机得装个 `agent`,为了监控不同应用中间件可能还得装几个对应的 `agent`,监控数量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 > `agent` 的版本是否与主应用兼容, `agent` 与主应用的通讯调试, `agent` 的同步升级等等等等,这些全是头大的点。 -`HertzBeat` 的原理就是使用不同的协议去直连对端系统,采用 `PULL` 的形式去拉取采集数据,无需用户在对端主机上部署安装 `Agent` | `Exporter` 等。 -- 比如监控 `linux操作系统`, 在 `HertzBeat` 端输入IP端口账户密码或密钥即可。 -- 比如监控 `mysql数据库`, 在 `HertzBeat` 端输入IP端口账户密码即可。 +`HertzBeat` 的原理就是使用不同的协议去直连对端系统,采用 `PULL` 的形式去拉取采集数据,无需用户在对端主机上部署安装 `Agent` | `Exporter` 等。 + +- 比如监控 `linux操作系统`, 在 `HertzBeat` 端输入IP端口账户密码或密钥即可。 +- 比如监控 `mysql数据库`, 在 `HertzBeat` 端输入IP端口账户密码即可。 **密码等敏感信息全链路加密** ### 高性能集群 -> 当监控数量指数级上升,采集性能下降或者环境不稳定容易造成采集器单点故障时,这时我们的采集器集群就出场了。 +> 当监控数量指数级上升,采集性能下降或者环境不稳定容易造成采集器单点故障时,这时我们的采集器集群就出场了。 -- `HertzBeat` 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 -- 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 +- `HertzBeat` 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 +- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 +- 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 ![hertzbeat](/img/docs/cluster-arch.png) @@ -134,10 +133,10 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ### 易用友好 -- 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -- 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -- 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -- 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 +- 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 +- 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 +- 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 +- 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 - 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 ### 完全开源 @@ -145,21 +144,20 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 - Apache 基金会孵化器下开源项目,Gitee GVP,使用`Apache2`协议,由自由开放的开源社区主导维护的开源协作产品。 - 无监控数量`License`,监控类型等伪开源限制。 - 基于`Java+SpringBoot+TypeScript+Angular`主流技术栈构建,方便的二次开发。 -- 开源不等同于免费,基于HertzBeat二次开发需保留页面脚注,版权等。 +- 开源不等同于免费,基于HertzBeat二次开发需保留版权等。 **HertzBeat 已被 [CNCF云原生全景图](https://landscape.cncf.io/card-mode?category=monitoring&grouping=category) 收录** ![cncf](/img/home/cncf-landscape-left-logo.svg) ------ - +--- **`HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** ------ +--- ## 即刻体验一波 -Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` +Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` 浏览器访问 `http://localhost:1157` 默认账户密码 `admin/hertzbeat` ### 登陆页面 @@ -269,7 +267,6 @@ Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1 ![hertzbeat](/img/home/13.png) - ### 告警静默 - 当通过阈值规则判断触发告警后,会进入到告警静默,告警静默会根据规则对特定一次性时间段或周期性时候段的告警消息屏蔽静默,此时间段不发送告警消息。 @@ -301,11 +298,10 @@ Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1 ![hertzbeat](/img/home/9.png) - ------ +--- **还有更多强大的功能快去探索呀。Have Fun!** ------ +--- -**Github: https://github.com/apache/hertzbeat** +**Github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/design.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/design.md index 7799d12fe52..7f3854c3e12 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/design.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/design.md @@ -1,9 +1,9 @@ --- id: design title: 设计文档 -sidebar_label: 设计文档 +sidebar_label: 设计文档 --- -### HertzBeat 架构 +### HertzBeat 架构 -![architecture](/img/docs/hertzbeat-arch.svg) +![architecture](/img/docs/hertzbeat-arch.svg) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md index 46699d69a23..910499fe860 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md @@ -1,20 +1,19 @@ --- id: resource title: 相关资源 -sidebar_label: 相关资源 +sidebar_label: 相关资源 --- -## 图标资源 +## 图标资源 -### HertzBeat LOGO +### HertzBeat LOGO ![logo](/img/hertzbeat-logo.svg) Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) -### HertzBeat Brand LOGO +### HertzBeat Brand LOGO ![logo](/img/hertzbeat-brand.svg) -Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) - +Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/account-modify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/account-modify.md index 028138275cb..46d24c91b5d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/account-modify.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/account-modify.md @@ -1,15 +1,15 @@ --- id: account-modify title: 配置修改账户密码和加密密钥 -sidebar_label: 更新账户和密钥 +sidebar_label: 更新账户和密钥 --- ## 更新账户 -Apache HertzBeat (incubating) 默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat -若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 -修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 -配置文件内容参考如下 +Apache HertzBeat (incubating) 默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat +若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 +修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 +配置文件内容参考如下 ```yaml @@ -157,4 +157,4 @@ sureness: dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' ``` -**重启 HertzBeat 浏览器访问 http://ip:1157/ 即可探索使用 HertzBeat** +**重启 HertzBeat 浏览器访问 即可探索使用 HertzBeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/custom-config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/custom-config.md index 27ebbf49520..4e70646d1dc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/custom-config.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/custom-config.md @@ -1,72 +1,76 @@ --- id: custom-config title: 常见参数配置 -sidebar_label: 常见参数配置 +sidebar_label: 常见参数配置 --- 这里描述了如果配置短信服务器,内置可用性告警触发次数等。 -**`hertzbeat`的配置文件`application.yml`** +**`hertzbeat`的配置文件`application.yml`** -### 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 - 安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 +### 配置HertzBeat的配置文件 + +修改位于 `hertzbeat/config/application.yml` 的配置文件 +注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 +安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 1. 配置短信发送服务器 -> 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 - -在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: 赫兹跳动 - template-id: 1343434 -``` -1.1 腾讯云短信创建签名(sign-name) -![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) - -1.2 腾讯云短信创建正文模板(template-id) -``` -监控:{1},告警级别:{2}。内容:{3} -``` -![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) - - -1.3 腾讯云短信创建应用(app-id) -![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) - -1.4 腾讯云访问管理(secret-id、secret-key) -![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) - - -2. 配置告警自定义参数 - -```yaml -alerter: - # 自定义控制台地址 - console-url: https://console.tancloud.cn -``` - -3. 使用外置redis代替内存存储实时指标数据 - -> 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 - -注意⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` + > 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 + + 在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) + + ```yaml + common: + sms: + tencent: + secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY + secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA + app-id: 1435441637 + sign-name: 赫兹跳动 + template-id: 1343434 + ``` + + 1.1 腾讯云短信创建签名(sign-name) + ![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) + + 1.2 腾讯云短信创建正文模板(template-id) + + ```text + 监控:{1},告警级别:{2}。内容:{3} + ``` + + ![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) + + 1.3 腾讯云短信创建应用(app-id) + ![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) + + 1.4 腾讯云访问管理(secret-id、secret-key) + ![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) + +2. 配置告警自定义参数 + + ```yaml + alerter: + # 自定义控制台地址 + console-url: https://console.tancloud.io + ``` + +3. 使用外置redis代替内存存储实时指标数据 + + > 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 + + 注意⚠️ `memory.enabled: false, redis.enabled: true` + + ```yaml + warehouse: + store: + memory: + enabled: false + init-size: 1024 + redis: + enabled: true + host: 127.0.0.1 + port: 6379 + password: 123456 + ``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-compose-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-compose-deploy.md new file mode 100644 index 00000000000..e1c91187530 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-compose-deploy.md @@ -0,0 +1,67 @@ +--- +id: docker-compose-deploy +title: 通过 Docker Compose 方式安装 HertzBeat +sidebar_label: Docker Compose方式安装 +--- + +:::tip +推荐使用 Docker Compose 方式一键部署 HertzBeat 及其依赖服务。 +::: + +:::note +需您的环境中已经拥有 Docker 环境 和 Docker Compose 环境 ,若未安装请参考 [Docker官网文档](https://docs.docker.com/compose/install/) +执行命令 `docker compose version` 检查是否拥有 Docker Compose 环境。 +::: + +1. 下载启动脚本包 + + 从 [下载地址](https://github.com/apache/hertzbeat/releases/download/v1.6.0/apache-hertzbeat-1.6.0-incubating-docker-compose.tar.gz) 下载安装脚本包 `apache-hertzbeat-xxx-incubating-docker-compose.tar.gz` + +2. 选择使用 HertzBeat + PostgreSQL + VictoriaMetrics 方案 + + :::tip + + - `apache-hertzbeat-xxx-incubating-docker-compose.tar.gz` 解压后包含多个部署方案,这里我们推荐选择 `hertzbeat-postgresql-victoria-metrics` 方案。 + - 其它部署方式请详细阅读各个部署方案的 README.md 文件, MySQL 方案需要自行准备 MySQL 驱动包。 + + ::: + + - 解压脚本包 + + ```shell + tar zxvf apache-hertzbeat-1.6.0-incubating-docker-compose.tar.gz + ``` + + - 进入解压目录, 选择 `HertzBeat + PostgreSQL + VictoriaMetrics` 一键部署 + + ```shell + cd apache-hertzbeat-1.6.0-incubating-docker-compose + cd hertzbeat-postgresql-victoria-metrics + ``` + + - 一键启动 + + > 在 `hertzbeat-postgresql-victoria-metrics` 目录下执行以下命令 + + ```shell + docker-compose up -d + ``` + + - 查看服务状态 + + > 查看各个容器的运行状态,up 为正常运行状态 + + ```shell + docker-compose ps + ``` + +3. 开始探索 HertzBeat + 浏览器访问 即可开始探索使用,默认账户密码 admin/hertzbeat。 + +**HAVE FUN** + +---- + +### 部署常见问题 + +**最多的问题就是容器网络问题,请先提前排查** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-deploy.md index a5c1e86c884..894b8b79684 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/docker-deploy.md @@ -1,161 +1,150 @@ --- id: docker-deploy title: 通过 Docker 方式安装 HertzBeat -sidebar_label: Docker方式部署 +sidebar_label: Docker方式安装 --- -> 推荐使用 Docker 部署 Apache HertzBeat (incubating) +:::tip +使用 Docker 方式一键启动 HertzBeat 最小可用环境,无外部服务依赖,方便快速体验。 +但不建议在生产环境中使用,生产环境建议使用 Docker Compose 方式部署, 安装包方式部署, Kubernetes 方式部署。 +::: -1. 下载安装Docker环境 - Docker 工具自身的下载请参考以下资料: - [Docker官网文档](https://docs.docker.com/get-docker/) - [菜鸟教程-Docker教程](https://www.runoob.com/docker/docker-tutorial.html) - 安装完毕后终端查看Docker版本是否正常输出。 +:::note +需您的环境中已经拥有 Docker 环境,若未安装请参考 [Docker官网文档](https://docs.docker.com/get-docker/) +::: - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` +### 部署 HertzBeat Server -2. 拉取HertzBeat Docker镜像 - 镜像版本TAG可查看 [dockerhub 官方镜像仓库](https://hub.docker.com/r/apache/hertzbeat/tags) - 或者使用 [quay.io 镜像仓库](https://quay.io/repository/tancloud/hertzbeat) +1. 执行以下命令 ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector - ``` - 若网络超时或者使用 - ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector + $ docker run -d -p 1157:1157 -p 1158:1158 \ + -v $(pwd)/data:/opt/hertzbeat/data \ + -v $(pwd)/logs:/opt/hertzbeat/logs \ + -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ + -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ + --restart=always \ + --name hertzbeat apache/hertzbeat ``` -3. 部署HertzBeat您可能需要掌握的几条命令 + > 命令参数详解 + + - `docker run -d` : 通过 Docker 后台运行容器 + - `-p 1157:1157 -p 1158:1158` : 映射容器端口到主机端口(前面是宿主机的端口号,后面是容器的端口号)。1157是页面端口,1158是集群端口。 + - `-v $(pwd)/data:/opt/hertzbeat/data` : (可选,数据持久化) 重要,挂载数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 + - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (可选) 挂载日志文件到本地主机方便查看 + - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (可选) 挂载配置文件到容器中(请确保本地已有此文件)。[下载源](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选) 挂载账户配置文件到容器中(请确保本地已有此文件)。[下载源](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + - `-v $(pwd)/ext-lib:/opt/hertzbeat/ext-lib` : (可选) 挂载外部的第三方 JAR 包 [mysql-jdbc](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip) [oracle-jdbc](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) [oracle-i18n](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar) + - `--name hertzbeat` : (可选) 命名容器名称为 hertzbeat + - `--restart=always` : (可选) 配置容器自动重启。 + - `apache/hertzbeat` : 使用[官方应用镜像](https://hub.docker.com/r/apache/hertzbeat)来启动容器, 若网络超时可用`quay.io/tancloud/hertzbeat`代替。 + + :::tip + + - 标记为可选的参数,非必填项,若不需要则删除。 + - 此将容器的 1157,1158 端口映射到宿主机的 1157,1158 端口上。若宿主机该端口已被占用,则需修改主机映射端口。 + - 挂载文件时,前面参数为你自定义本地文件地址,后面参数为容器内文件地址。挂载时请确保你本地已有此文件。 + - 可执行```docker update --restart=always hertzbeat```配置容器自动重启。 + + ::: + +2. 开始探索 HertzBeat + 浏览器访问 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 + +### 部署 HertzBeat Collector 集群(可选) + +:::note +HertzBeat Collector 是一个轻量级的数据采集器,用于采集并将数据发送到 HertzBeat Server。 +通过部署多个 HertzBeat Collector 可以实现数据的高可用,负载均衡和云边协同。 +::: + +![hertzbeat](/img/docs/cluster-arch.png) + +1. 执行以下命令 ```shell - #查看所有容器(在运行和已经停止运行的容器) - $ docker ps -a - #启动/终止/重启/运行状态 - $ docker start/stop/restart/stats 容器id或者容器名 - #进入容器并打开容器的shell终端 - $ docker exec -it 容器id或者容器名 /bin/bash - #退出容器终端 - ctrl+p然后ctrl+q - #完全退出容器的终端 - ctrl+d或者 - $ exit + $ docker run -d \ + -e IDENTITY=custom-collector-name \ + -e MODE=public \ + -e MANAGER_HOST=127.0.0.1 \ + -e MANAGER_PORT=1158 \ + --name hertzbeat-collector apache/hertzbeat-collector ``` -4. 挂载并配置HertzBeat的配置文件(可选) - 下载 `application.yml` 文件到主机目录下,例如: $(pwd)/application.yml - 下载源 [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - - 若需使用邮件发送告警,需替换 `application.yml` 里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.victoria-metrics`参数 具体步骤参见 [使用victoria-metrics存储指标数据](victoria-metrics-init) - -5. 挂载并配置HertzBeat用户配置文件,自定义用户密码(可选) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 - 下载 `sureness.yml` 文件到主机目录下,例如: $(pwd)/sureness.yml - 下载源 [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) - 具体修改步骤参考 [配置修改账户密码](account-modify) - -6. 启动HertzBeat Docker容器 - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --restart=always \ - --name hertzbeat apache/hertzbeat -``` - - 这条命令启动一个运行HertzBeat的Docker容器,并且将容器的1157端口映射到宿主机的1157端口上。若宿主机已有进程占用该端口,则需要修改主机映射端口。 - - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - - `-e LANG=zh_CN.UTF-8` : 设置系统语言 - - `-e TZ=Asia/Shanghai` : 设置系统时区 - - `-p 1157:1157 -p 1158:1158` : 映射容器端口到主机端口,请注意,前面是宿主机的端口号,后面是容器的端口号。1157是WEB端口,1158是集群端口。 - - `-v $(pwd)/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 - - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (可选,不需要可删除)挂载上上一步修改的本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。我们需要修改此配置文件的MYSQL,TDengine配置信息来连接外部服务。 - - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选,不需要可删除)挂载上一步修改的账户配置文件到容器中,若无修改账户需求可删除此命令参数。 - - `-v $(pwd)/ext-lib:/opt/hertzbeat/ext-lib` : (可选,不需要可删除)根据自己下载的mysql/oracle等数据库连接驱动jar复制到宿主机相应目录并挂载到ext-lib目录 - mysql:https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip - oracle:https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar - - `还有一种自定义数据源连接驱动不需要挂载的方式`(可选)这种方式是把自己需要的数据源驱动直接放到容器内部 - - `docker cp $(pwd)/mysql-connector-java-8.0.18.jar hertzbeat:/opt/hertzbeat/ext-lib` 使用docker cp 命令先把自己下载好的数据源驱动cp到容器内部 - - `docker restart hertzbeat` 重启成功后就要可以正常使用了 - - `docker commit -a "operator" -m "在容器内部/ext-lib文件夹下新增了自定义的数据源驱动" hertzbeat hertzbeat:版本号自己定义`(可选) 如果想自己做一个自定义镜像可以使用此命令 ,-a 当前操作人 -m 对自己重做的容器进行描述 - - - - 注意⚠️ 挂载文件时,前面参数为你自定义本地文件地址,后面参数为docker容器内文件地址(固定) - - - `--name hertzbeat` : 命名容器名称 hertzbeat - - - `--restart=always`:(可选,不需要可删除)使容器在Docker启动后自动重启。若您未在容器创建时指定该参数,可通过以下命令实现该容器自启。 - - ```shell - $ docker update --restart=always hertzbeat - ``` - - - `apache/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat`代替。** - -7. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -8. 部署采集器集群(可选) - -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` - - 这条命令启动一个运行HertzBeat采集器的Docker容器,并直连上了HertzBeat主服务节点。 - - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - - `-e IDENTITY=custom-collector-name` : (可选) 设置采集器的唯一标识名称。⚠️注意多采集器时采集器名称需保证唯一性。 + > 命令参数详解 + + - `docker run -d` : 通过 Docker 后台运行容器 + - `-e IDENTITY=custom-collector-name` : (可选) 设置采集器的唯一标识名称。注意多采集器时名称需保证唯一性。 - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 - - `-e MANAGER_HOST=127.0.0.1` : 重要⚠️ 设置连接的主HertzBeat服务地址IP。 - - `-e MANAGER_PORT=1158` : (可选) 设置连接的主HertzBeat服务地址端口,默认 1158. - - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - - `--name hertzbeat-collector` : 命名容器名称 hertzbeat-collector - - `apache/hertzbeat-collector` : 使用拉取最新的的HertzBeat采集器官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat-collector`代替。** + - `-e MANAGER_HOST=127.0.0.1` : 重要, 配置连接的 HertzBeat Server 地址,127.0.0.1 需替换为 HertzBeat Server 对外 IP 地址。 + - `-e MANAGER_PORT=1158` : (可选) 配置连接的 HertzBeat Server 端口,默认 1158. + - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (可选)挂载日志文件到本地主机方便查看 + - `--name hertzbeat-collector` : 命名容器名称为 hertzbeat-collector + - `apache/hertzbeat-collector` : 使用[官方应用镜像](https://hub.docker.com/r/apache/hertzbeat-collector)来启动容器, 若网络超时可用`quay.io/tancloud/hertzbeat-collector`代替。 -8. 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 + :::tip -**HAVE FUN** + - `MANAGER_HOST=127.0.0.1` 中的 `127.0.0.1` 需被替换为 HertzBeat Server 对外 IP 地址。 + - 标记为可选的参数,非必填项,若不需要则删除。 + - 挂载文件时,前面参数为你自定义本地文件地址,后面参数为容器内文件地址。挂载时请确保你本地已有此文件。 + - 可执行```docker update --restart=always hertzbeat-collector```配置容器自动重启。 -### Docker部署常见问题 + ::: + +2. 开始探索 HertzBeat Collector + 浏览器访问 即可开始探索使用,默认账户密码 admin/hertzbeat。 + +**HAVE FUN** + +---- + +### Docker 方式部署常见问题 **最多的问题就是网络问题,请先提前排查** -1. **MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` +1. MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败 + 此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 + > 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP + > 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` + +2. 按照流程部署,访问 无界面 + 请参考下面几点排查问题: + + > 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 + > 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 3. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - -> 安装初始化此时序数据库 + + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - + > 安装初始化此时序数据库 4. 安装配置了时序数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置的时许数据库参数是否正确 -> 时序数据库对应的 enable 是否设置为true -> 注意⚠️若hertzbeat和外置数据库都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + > 请检查配置的时许数据库参数是否正确 + > 时序数据库对应的 enable 是否设置为true + > 注意⚠️若hertzbeat和外置数据库都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 + +5. application.yml 是干什么用的 + + > 此文件是HertzBeat的配置文件,用于配置HertzBeat的各种参数,如数据库连接信息,时序数据库配置等。 + + 下载 `application.yml` 文件到主机目录下,例如: $(pwd)/application.yml + 下载源 [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + + - 若需使用邮件发送告警,需替换 `application.yml` 里面的邮件服务器参数 + - 若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) + - 若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.victoria-metrics`参数 具体步骤参见 [使用victoria-metrics存储指标数据](victoria-metrics-init) + +6. sureness.yml 是干什么用的 + + > 此文件是HertzBeat的用户配置文件,用于配置HertzBeat的用户信息,如账户密码等。 + HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat + 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 + 下载 `sureness.yml` 文件到主机目录下,例如: $(pwd)/sureness.yml + 下载源 [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + 具体修改步骤参考 [配置修改账户密码](account-modify) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md index 57cf7603a16..7c40e2a8255 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/greptime-init.md @@ -8,67 +8,69 @@ Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任 > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. +[GreptimeDB](https://github.com/GreptimeTeam/greptimedb) is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** -### 通过Docker方式安装GreptimeDB -> 可参考官方网站[安装教程](https://docs.greptime.com/getting-started/overview) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +### 通过Docker方式安装GreptimeDB + +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装GreptimeDB -```shell -$ docker run -p 127.0.0.1:4000-4003:4000-4003 \ - -v "$(pwd)/greptimedb:/tmp/greptimedb" \ - --name greptime --rm \ - greptime/greptimedb:latest standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 \ - --mysql-addr 0.0.0.0:4002 \ - --postgres-addr 0.0.0.0:4003 -``` +2. Docker安装GreptimeDB + + ```shell + $ docker run -p 127.0.0.1:4000-4003:4000-4003 \ + -v "$(pwd)/greptimedb:/tmp/greptimedb" \ + --name greptime --rm \ + greptime/greptimedb:latest standalone start \ + --http-addr 0.0.0.0:4000 \ + --rpc-addr 0.0.0.0:4001 \ + --mysql-addr 0.0.0.0:4002 \ + --postgres-addr 0.0.0.0:4003 + ``` - `-v "$(pwd)/greptimedb:/tmp/greptimedb` 为 greptimedb 数据目录本地持久化挂载,需将 `$(pwd)/greptimedb` 替换为实际本地存在的目录,默认使用执行命令的当前目录下的 `greptimedb` 目录作为数据目录。 + `-v "$(pwd)/greptimedb:/tmp/greptimedb` 为 greptimedb 数据目录本地持久化挂载,需将 `$(pwd)/greptimedb` 替换为实际本地存在的目录,默认使用执行命令的当前目录下的 `greptimedb` 目录作为数据目录。 使用```$ docker ps```查看数据库是否启动成功 -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - greptime: - enabled: true - grpc-endpoints: localhost:4001 - url: jdbc:mysql://localhost:4002/hertzbeat?connectionTimeZone=Asia/Shanghai&forceConnectionTimeZoneToSession=true - driver-class-name: com.mysql.cj.jdbc.Driver - username: greptime - password: greptime - expire-time: 30d -``` - -默认数据库是 URL 中配置的 `hertzbeat` ,将自动创建。 `expire-time` 是自动创建的数据库的 TTL (数据过期)时间,默认为 30 天。 + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + greptime: + enabled: true + grpc-endpoints: localhost:4001 + url: jdbc:mysql://localhost:4002/hertzbeat?connectionTimeZone=Asia/Shanghai&forceConnectionTimeZoneToSession=true + driver-class-name: com.mysql.cj.jdbc.Driver + username: greptime + password: greptime + expire-time: 30d + ``` + + 默认数据库是 URL 中配置的 `hertzbeat` ,将自动创建。 `expire-time` 是自动创建的数据库的 TTL (数据过期)时间,默认为 30 天。 2. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库 GreptimeDB 或者 IoTDB 或者 TDengine 是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md index 91d30eef74d..12dc86fd662 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/influxdb-init.md @@ -1,76 +1,75 @@ --- id: influxdb-init title: 依赖时序数据库服务InfluxDB安装初始化(可选) -sidebar_label: 指标数据存储InfluxDB +sidebar_label: 指标数据存储InfluxDB --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 +InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** ### 1. 直接使用华为云服务 GaussDB For Influx -> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - +> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) +> > 获取云数据库对外暴露连接地址,账户密码即可 ⚠️注意云数据库默认开启了SSL,云数据库地址应使用 `https:` -### 2. 通过Docker方式安装InfluxDB -> 可参考官方网站[安装教程](https://hub.docker.com/_/influxdb) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +### 2. 通过Docker方式安装InfluxDB + +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v - Docker version 20.10.12, build e91ed57 + Docker version 20.10.12, build e91ed57 ``` -2. Docker安装InfluxDB 1.x -```shell -$ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 -``` +2. Docker安装InfluxDB 1.x - `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 + ```shell + $ docker run -p 8086:8086 \ + -v /opt/influxdb:/var/lib/influxdb \ + influxdb:1.8 + ``` + `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 + 使用```$ docker ps```查看数据库是否启动成功 -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` + 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + influxdb: + enabled: true + server-url: http://localhost:8086 + username: root + password: root + expire-time: '30d' + replication: 1 + ``` 2. 重启 HertzBeat -### 常见问题 - -1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 - -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 +### 常见问题 +1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md index b4c924f6d9f..af9e6531d34 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/iotdb-init.md @@ -3,6 +3,7 @@ id: iotdb-init title: 依赖时序数据库服务IoTDB安装初始化(可选) sidebar_label: 指标数据存储IoTDB --- + Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 @@ -23,21 +24,22 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据 Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 安装完毕后终端查看Docker版本是否正常输出。 - ``` + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Docker安装IoTDB -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:1.2.2-standalone -``` + ```shell + $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ + -v /opt/iotdb/data:/iotdb/data \ + --name iotdb \ + apache/iotdb:1.2.2-standalone + ``` -`-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 -使用```$ docker ps```查看数据库是否启动成功 + `-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 + 使用```$ docker ps```查看数据库是否启动成功 3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接 @@ -45,64 +47,63 @@ $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ 修改位于 `hertzbeat/config/application.yml` 的配置文件 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # use default queryTimeoutInMs = -1 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -**IoTDB集群版配置** -如果您使用IoTDB为集群请参考下面配置 - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667''] - username: root - password: root - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -参数说明: - - -| 参数名称 | 参数说明 | -| ------------------- |-------------------------------------------| -| enabled | 是否启用 | -| host | IoTDB数据库地址 | -| rpc-port | IoTDB数据库端口 | -| node-urls | IoTDB集群地址 | -| username | IoTDB数据库账户 | -| password | IoTDB数据库密码 | -| version | IoTDB数据库版本,已废弃,仅支持V1.* | -| query-timeout-in-ms | 查询超时时间 | -| expire-time | 数据存储时间,默认'7776000000'(90天,单位为毫秒,-1代表永不过期) | - -> 如果集群配置`node-urls`和单机配置同时设置,以集群`node-urls`配置稳准 + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用IotDB + iot-db: + enabled: true + host: 127.0.0.1 + rpc-port: 6667 + username: root + password: root + # use default queryTimeoutInMs = -1 + query-timeout-in-ms: -1 + # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) + expire-time: '7776000000' + ``` + + **IoTDB集群版配置** + 如果您使用IoTDB为集群请参考下面配置 + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用IotDB + iot-db: + enabled: true + node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667''] + username: root + password: root + # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 + query-timeout-in-ms: -1 + # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) + expire-time: '7776000000' + ``` + + 参数说明: + + | 参数名称 | 参数说明 | + |---------------------|-------------------------------------------| + | enabled | 是否启用 | + | host | IoTDB数据库地址 | + | rpc-port | IoTDB数据库端口 | + | node-urls | IoTDB集群地址 | + | username | IoTDB数据库账户 | + | password | IoTDB数据库密码 | + | version | IoTDB数据库版本,已废弃,仅支持V1.* | + | query-timeout-in-ms | 查询超时时间 | + | expire-time | 数据存储时间,默认'7776000000'(90天,单位为毫秒,-1代表永不过期) | + + > 如果集群配置`node-urls`和单机配置同时设置,以集群`node-urls`配置稳准 4. 重启 HertzBeat @@ -110,15 +111,15 @@ warehouse: 1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db enable是否设置为true -> 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + > 请检查配置参数是否正确 + > iot-db enable是否设置为true + > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md index 7c8f4f64c92..1fcdad7e8a1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/mysql-change.md @@ -1,24 +1,29 @@ --- id: mysql-change title: 关系型数据库使用 Mysql 替换依赖的 H2 存储系统元数据(可选) -sidebar_label: 元数据存储Mysql +sidebar_label: 元数据存储Mysql --- -MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 + +MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 注意⚠️ 使用外置Mysql数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 -> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 +> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 + +### 通过Docker方式安装MYSQL -### 通过Docker方式安装MYSQL -1. 下载安装Docker环境 +1. 下载安装Docker环境 Docker 的安装请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后请于终端检查Docker版本输出是否正常。 - ``` + 安装完毕后请于终端检查Docker版本输出是否正常。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装MYSQl - ``` + +2. Docker安装MYSQl + + ```shell $ docker run -d --name mysql \ -p 3306:3306 \ -v /opt/data:/var/lib/mysql \ @@ -26,31 +31,34 @@ MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) --restart=always \ mysql:5.7 ``` - `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 + + `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 使用```$ docker ps```查看数据库是否启动成功 -### 数据库创建 -1. 进入MYSQL或使用客户端连接MYSQL服务 - `mysql -uroot -p123456` -2. 创建名称为hertzbeat的数据库 +### 数据库创建 + +1. 进入MYSQL或使用客户端连接MYSQL服务 + `mysql -uroot -p123456` +2. 创建名称为hertzbeat的数据库 `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` 3. 查看hertzbeat数据库是否创建成功 `show databases;` ### 添加 MYSQL jdbc 驱动 jar -- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 +- 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. - 将此 jar 包拷贝放入 HertzBeat 的安装目录下的 `ext-lib` 目录下. -### 修改hertzbeat的配置文件application.yml切换数据源 +### 修改hertzbeat的配置文件application.yml切换数据源 - 配置 HertzBeat 的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) + 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 + ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) + + 需修改部分原参数: - 需修改部分原参数: ```yaml spring: datasource: @@ -70,7 +78,9 @@ spring: logging: level: SEVERE ``` - 具体替换参数如下,需根据mysql环境配置账户密码IP: + +具体替换参数如下,需根据mysql环境配置账户密码IP: + ```yaml spring: datasource: @@ -90,6 +100,6 @@ spring: level: SEVERE ``` -- 通过docker启动时,建议修改host为宿主机的外网IP地址,包括mysql连接字符串。 +- 通过docker启动时,建议修改host为宿主机的外网IP地址,包括mysql连接字符串。 -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** +**启动 HertzBeat 浏览器访问 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/package-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/package-deploy.md index b5f9d7e0456..fd7d1e55ff3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/package-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/package-deploy.md @@ -1,91 +1,134 @@ --- id: package-deploy title: 通过安装包安装 HertzBeat -sidebar_label: 安装包方式部署 +sidebar_label: 安装包方式安装 --- -> Apache HertzBeat (incubating) 支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 下载HertzBeat安装包 - 下载您系统环境对应的安装包 `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` - - [下载页面](/docs/download) - -2. 配置HertzBeat的配置文件(可选) - 解压安装包到主机 eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-xx.tar.gz - or - $ unzip -o hertzbeat-xx.zip + +:::tip +Apache HertzBeat (incubating) 支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 +安装包方式依赖 Java 运行环境,需您的环境中已经拥有 Java17 环境,若未安装请参考 [官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) +::: + +### 部署 HertzBeat Server + +1. 下载安装包 + + 从 [下载页面](/docs/download) 下载您系统环境对应的安装包版本 `apache-hertzbeat-xxx-incubating-bin.tar.gz` + +2. 设置配置文件(可选) + + 解压安装包到主机 eg: /opt/hertzbeat + + ```shell + tar zxvf apache-hertzbeat-xxx-incubating-bin.tar.gz + ``` + + :::tip + 位于 `config/application.yml` 的配置文件,您可以根据需求修改配置文件来配置外部依赖的服务,如数据库,时序数据库等参数。 + HertzBeat 启动时默认全使用内部服务,但生产环境建议切换为外部数据库服务。 + ::: + + 建议元数据存储使用 [PostgreSQL](postgresql-change), 指标数据存储使用 [VictoriaMetrics](victoria-metrics-init), 具体步骤参见 + + - [内置 H2 数据库切换为 PostgreSQL](postgresql-change) + - [使用 VictoriaMetrics 存储指标数据](victoria-metrics-init) + +3. 配置账户文件(可选) + + HertzBeat 默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat + 若需要新增删除修改账户或密码,可以通过修改位于 `config/sureness.yml` 的配置文件实现,具体参考 + + - [配置修改账户密码](account-modify) + +4. 启动 + + 执行位于安装目录 bin 下的启动脚本 startup.sh, windows 环境下为 startup.bat + + ```shell + ./startup.sh + ``` + +5. 开始探索HertzBeat + 浏览器访问 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 + +### 部署 HertzBeat Collector 集群(可选) + +:::note +HertzBeat Collector 是一个轻量级的数据采集器,用于采集并将数据发送到 HertzBeat Server。 +通过部署多个 HertzBeat Collector 可以实现数据的高可用,负载均衡和云边协同。 +::: + +![hertzbeat](/img/docs/cluster-arch.png) + +1. 下载安装包 + + 从 [下载页面](/docs/download) 下载您系统环境对应的安装包版本 `apache-hertzbeat-collector-xxx-incubating-bin.tar.gz` + +2. 设置配置文件 + + 解压安装包到主机 eg: /opt/hertzbeat-collector + + ```shell + tar zxvf apache-hertzbeat-collector-xxx-incubating-bin.tar.gz + ``` + + 配置采集器的配置文件 `config/application.yml` 里面的 HertzBeat Server 连接 IP, 端口, 采集器名称(需保证唯一性)等参数。 + + ```yaml + collector: + dispatch: + entrance: + netty: + enabled: true + identity: ${IDENTITY:} + mode: ${MODE:public} + manager-host: ${MANAGER_HOST:127.0.0.1} + manager-port: ${MANAGER_PORT:1158} ``` - 修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **强烈推荐** 以后我们将主要支持VictoriaMetrics作为时序数据库,若需使用时序数据库VictoriaMetrics来存储指标数据,需替换`application.yml`里面的`warehouse.store.victoria-metrics`参数 具体步骤参见 [使用VictoriaMetrics存储指标数据](victoria-metrics-init) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -3. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](account-modify) - -4. 部署启动 - 执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh + + > 参数详解 + + - `identity` : (可选) 设置采集器的唯一标识名称。注意多采集器时名称需保证唯一性。 + - `mode` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 + - `manager-host` : 重要, 配置连接的 HertzBeat Server 地址, + - `manager-port` : (可选) 配置连接的 HertzBeat Server 端口,默认 1158. + +3. 启动 + + 执行位于安装目录 hertzbeat-collector/bin/ 下的启动脚本 startup.sh, windows 环境下为 startup.bat + + ```shell + ./startup.sh ``` -5. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -6. 部署采集器集群(可选) - - 下载解压您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [下载页面](/docs/download) - - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` - - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 +4. 开始探索 HertzBeat Collector + 浏览器访问 即可开始探索使用,默认账户密码 admin/hertzbeat。 **HAVE FUN** - +---- + ### 安装包部署常见问题 **最多的问题就是网络环境问题,请先提前排查** -1. **若您使用的是不含JDK的安装包,需您提前准备JAVA运行环境** +1. 启动失败,需您提前准备JAVA运行环境 -安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) -要求:JAVA17环境 -下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) -安装后命令行检查是否成功安装 - ``` + 安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) + 要求:JAVA17环境 + 下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) + 安装后命令行检查是否成功安装 + + ```shell $ java -version java version "17.0.9" Java(TM) SE Runtime Environment 17.0.9 (build 17.0.9+8-LTS-237) Java HotSpot(TM) 64-Bit Server VM 17.0.9 (build 17.0.9+8-LTS-237, mixed mode) - ``` -2. **按照流程部署,访问 http://ip:1157/ 无界面** +2. 按照流程部署,访问 无界面 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -4. **监控历史图表长时间都一直无数据** -> 一:时序数据库是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 时序数据库 IP账户密码等配置是否正确 + + > 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 + > 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/postgresql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/postgresql-change.md index a1835610a02..18b33658f0e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/postgresql-change.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/postgresql-change.md @@ -3,52 +3,59 @@ id: postgresql-change title: 关系型数据库使用 PostgreSQL 替换依赖的 H2 存储系统元数据(推荐) sidebar_label: 元数据存储PostgreSQL(推荐) --- -PostgreSQL是一个功能强大,开源的关系型数据库管理系统(RDBMS)。Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用PostgreSQL存储监控信息,告警信息,配置信息等结构化关系数据。 -注意⚠️ 使用外置PostgreSQL数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 +PostgreSQL 是一个功能强大,开源的关系型数据库管理系统(RDBMS)。Apache HertzBeat (incubating) 除了支持使用默认内置的 H2 数据库外,还可以切换为使用 PostgreSQL 存储监控信息,告警信息,配置信息等结构化关系数据。 -> 如果您已有PostgreSQL环境,可直接跳到数据库创建那一步。 +注意⚠️ 使用外置 PostgreSQL 数据库替换内置 H2 数据库为可选项,但建议生产环境配置,以提供更好的性能 +> 如果您已有 PostgreSQL 环境,可直接跳到数据库创建那一步。 -### 通过Docker方式安装PostgreSQL +### 通过 Docker 方式安装 PostgreSQL -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` +1. 下载安装 Docker 环境 + Docker 的安装请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。安装完毕后请于终端检查 Docker 版本输出是否正常。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` - -2. Docker安装 PostgreSQL - ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 + +2. Docker 安装 PostgreSQL + + ```shell + docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 ``` - 使用```$ docker ps```查看数据库是否启动成功 -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). + 使用 ```$ docker ps``` 查看数据库是否启动成功 -### 数据库创建 +### 数据库创建 -1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 - ``` +1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 + + ```shell su - postgres psql ``` - -2. 创建名称为hertzbeat的数据库 - `CREATE DATABASE hertzbeat;` -3. 查看hertzbeat数据库是否创建成功 - `\l` +2. 创建名称为 hertzbeat 的数据库 -### 修改hertzbeat的配置文件application.yml切换数据源 + ```sql + CREATE DATABASE hertzbeat; + ``` + +3. 查看 hertzbeat 数据库是否创建成功 + + ```sql + SELECT * FROM pg_database where datname='hertzbeat'; + ``` -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) +### 修改 hertzbeat 的配置文件 application.yml 切换数据源 + +1. 配置 HertzBeat 的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 注意⚠️ docker 容器方式需要将 application.yml 文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + 替换里面的 `spring.database` 数据源参数,IP 端口账户密码驱动 + ⚠️注意 `application.yml` 文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) ```yaml spring: @@ -69,7 +76,9 @@ spring: logging: level: SEVERE ``` -具体替换参数如下,需根据 PostgreSQL 环境配置账户密码IP: + +具体替换参数如下,需根据 PostgreSQL 环境配置账户密码 IP: + ```yaml spring: datasource: @@ -89,4 +98,4 @@ spring: level: SEVERE ``` -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** +**启动 HertzBeat 浏览器访问 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/quickstart.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/quickstart.md index 3702a89d87d..310bc9e2f71 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/quickstart.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/quickstart.md @@ -1,50 +1,52 @@ --- id: quickstart title: 快速开始 -sidebar_label: 快速开始 +sidebar_label: 快速开始 --- ### 🐕 开始使用 - 如果您是想将 Apache HertzBeat (incubating) 部署到本地搭建监控系统,请参考下面的部署文档进行操作。 +### 🍞 HertzBeat安装 -### 🍞 HertzBeat安装 > HertzBeat支持通过源码安装启动,Docker容器运行和安装包方式安装部署,CPU架构支持X86/ARM64。 -#### 方式一:Docker方式快速安装 +#### 方式一:Docker方式快速安装 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群(可选) -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 -#### 方式二:通过安装包安装 +更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) + +#### 方式二:通过安装包安装 1. 下载您系统环境对应的安装包`hertzbeat-xx.tar.gz` [Download Page](https://hertzbeat.apache.org/docs/download) 2. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml`(可选) -3. 部署启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` +3. 部署启动 `$ ./bin/startup.sh` 或 `bin/startup.bat` 4. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 5. 部署采集器集群(可选) - 下载您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [Download Page](https://hertzbeat.apache.org/docs/download) - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` + ```yaml collector: dispatch: @@ -56,12 +58,13 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` + + - 启动 `$ ./bin/startup.sh` 或 `bin/startup.bat` - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 -更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) +更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) -#### 方式三:本地代码启动 +#### 方式三:本地代码启动 1. 此为前后端分离项目,本地代码调试需要分别启动后端工程`manager`和前端工程`web-app` 2. 后端:需要`maven3+`, `java17`和`lombok`环境,修改`YML`配置信息并启动`manager`服务 @@ -74,7 +77,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN 通过 [docker-compose部署脚本](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) 一次性把 postgresql/mysql 数据库, victoria-metrics/iotdb/tdengine 时序数据库和 hertzbeat 安装部署。 -详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) +详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) ##### 方式五:Kubernetes Helm Charts 部署 hertzbeat+collector+postgresql+tsdb diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/rainbond-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/rainbond-deploy.md index 5da0679d327..8e01b8cf7a2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/rainbond-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/rainbond-deploy.md @@ -1,7 +1,7 @@ --- id: rainbond-deploy title: 使用 Rainbond 部署 HertzBeat -sidebar_label: Rainbond方式部署 +sidebar_label: Rainbond方式部署 --- 如果你不熟悉 Kubernetes,想在 Kubernetes 中安装 Apache HertzBeat (incubating),可以使用 Rainbond 来部署。Rainbond 是一个基于 Kubernetes 构建的云原生应用管理平台,可以很简单的将你的应用部署到 Kubernetes中。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/sslcert-practice.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/sslcert-practice.md index 62cd3e157a3..f8c604c2924 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/sslcert-practice.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/sslcert-practice.md @@ -1,10 +1,9 @@ --- id: ssl-cert-practice title: SSL证书过期监控使用案例 -sidebar_label: 使用案例 +sidebar_label: SSL证书过期监控使用案例 --- - 现在大部分网站都默认支持 HTTPS,我们申请的证书一般是3个月或者1年,很容易随着时间的流逝SSL证书过期了我们却没有第一时间发现,或者在过期之前没有及时更新证书。 这篇文章介绍如果使用 hertzbeat 监控系统来检测我们网站的SSL证书有效期,当证书过期时或证书快过期前几天,给我们发告警消息。 @@ -13,14 +12,13 @@ sidebar_label: 使用案例 Apache HertzBeat (incubating) 一个拥有强大自定义监控能力,无需Agent的实时监控工具。网站监测,PING连通性,端口可用性,数据库,操作系统,中间件,API监控,阈值告警,告警通知(邮件微信钉钉飞书)。 - -github: https://github.com/apache/hertzbeat +github: #### 安装 HertzBeat 1. `docker` 环境仅需一条命令即可安装 -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` + `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` 2. 安装成功浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` @@ -28,72 +26,71 @@ github: https://github.com/apache/hertzbeat 1. 点击新增SSL证书监控 -> 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 - - -![](/img/docs/start/ssl_1.png) + > 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 + ![](/img/docs/start/ssl_1.png) 2. 配置监控网站 -> 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 -> 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 + > 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 + > + > 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 -![](/img/docs/start/ssl_2.png) + ![](/img/docs/start/ssl_2.png) 3. 查看检测指标数据 -> 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 + > 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 -![](/img/docs/start/ssl_3.png) + ![](/img/docs/start/ssl_3.png) -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 4. 设置阈值(证书过期时触发) -> 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 + > 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 -![](/img/docs/start/ssl_4.png) + ![](/img/docs/start/ssl_4.png) -> 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 + > 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 -![](/img/docs/start/ssl_5.png) + ![](/img/docs/start/ssl_5.png) -> 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 + > 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 -![](/img/docs/start/ssl_6.png) + ![](/img/docs/start/ssl_6.png) 5. 设置阈值(证书过期前一周触发) -> 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 + > 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 -![](/img/docs/start/ssl_7.png) + ![](/img/docs/start/ssl_7.png) -> 最终可以在告警中心看到已触发的告警。 + > 最终可以在告警中心看到已触发的告警。 -![](/img/docs/start/ssl_8.png) + ![](/img/docs/start/ssl_8.png) 6. 告警通知(通过钉钉微信飞书等及时通知) -> 监控系统 -> 告警通知 -> 新增接收人 + > 监控系统 -> 告警通知 -> 新增接收人 -![](/img/docs/start/ssl_9.png) + ![](/img/docs/start/ssl_9.png) -钉钉微信飞书等token配置可以参考帮助文档 + 钉钉微信飞书等token配置可以参考帮助文档 -https://hertzbeat.apache.org/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk + + -> 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 + > 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 -![](/img/docs/start/ssl_10.png) + ![](/img/docs/start/ssl_10.png) 7. OK 当阈值触发后我们就可以收到对应告警消息啦,如果没有配通知,也可以在告警中心查看告警信息。 ---- -#### 完! +#### 完 监控SSL证书的实践就到这里,当然对hertzbeat来说这个功能只是冰山一角,如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md index b64743d1f7b..c8c84be2815 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md @@ -8,63 +8,66 @@ Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任 > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 +TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** > 如果您已有TDengine环境,可直接跳到创建数据库实例那一步。 +### 通过Docker方式安装TDengine -### 通过Docker方式安装TDengine -> 可参考官方网站[安装教程](https://docs.taosdata.com/get-started/docker/) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装TDengine -```shell -$ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 -``` +2. Docker安装TDengine + + ```shell + $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ + -v /opt/taosdata:/var/lib/taos \ + --name tdengine -e TZ=Asia/Shanghai \ + tdengine/tdengine:3.0.4.0 + ``` `-v /opt/taosdata:/var/lib/taos` 为tdengine数据目录本地持久化挂载,需将`/opt/taosdata`替换为实际本地存在的目录 - `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 + `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 使用```$ docker ps```查看数据库是否启动成功 -### 创建数据库实例 +### 创建数据库实例 -> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) +> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) -1. 进入数据库Docker容器 - ``` - $ docker exec -it tdengine /bin/bash +1. 进入数据库Docker容器 + + ```shell + docker exec -it tdengine /bin/bash ``` 2. 修改账户密码 > 建议您修改密码。TDengine默认的账户密码是 root/taosdata - > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: + > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: - ``` + ```shell root@tdengine-server:~/TDengine-server# taos Welcome to the TDengine shell from Linux, Client Version Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. taos> ``` + > 在 TDengine CLI 中使用 alter user 命令可以修改用户密码,缺省密码为 taosdata 3. 创建名称为hertzbeat的数据库 执行创建数据库命令 - ``` + ```shell taos> show databases; taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; ``` @@ -73,58 +76,62 @@ $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ 4. 查看hertzbeat数据库是否成功创建 - ``` + ```shell taos> show databases; taos> use hertzbeat; ``` 5. 退出TDengine CLI - ``` + ```text 输入 q 或 quit 或 exit 回车 ``` -**注意⚠️若是安装包安装的TDengine** +**注意⚠️若是安装包安装的TDengine** > 除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` + 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + td-engine: + enabled: true + driver-class-name: com.taosdata.jdbc.rs.RestfulDriver + url: jdbc:TAOS-RS://localhost:6041/hertzbeat + username: root + password: taosdata + ``` 2. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 -3. 监控详情历史图片不展示或无数据,已经配置了TDengine -> 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 +2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] + + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + +3. 监控详情历史图片不展示或无数据,已经配置了TDengine + + > 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 4. 安装配置了TDengine数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> td-engine enable是否设置为true -> 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + + > 请检查配置参数是否正确 + > td-engine enable是否设置为true + > 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/update-1.6.0.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/update-1.6.0.md new file mode 100644 index 00000000000..e8a563d8f88 --- /dev/null +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/update-1.6.0.md @@ -0,0 +1,280 @@ +--- +id: 1.6.0-update +title: 如何升级到1.6.0 +sidebar_label: 1.6.0升级指南 +--- + +## HertzBeat 1.6.0 升级指南 + +### 注意:该指南适用于1.5.0向1.6.0版本升级 + +### 如果你使用更老的版本,建议使用导出功能重新安装,或先升级到1.5.0再按本指南升级到1.6.0 + +### 二进制安装包升级 + +1. 升级Java环境 + + 由于1.6.0版本使用Java17,且安装包不再提供内置jdk的版本,参考以下情况使用新版Hertzbeat。 + + - 当你的服务器中默认环境变量为Java17时,这一步你无需任何操作。 + - 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**没有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并在搜索引擎搜索如何设置新的环境变量指向新的Java17。 + - 当你的服务器中默认环境变量不为Java17时,如Java8、Java11,若你服务器中**有**其他应用需要低版本Java,根据你的系统,到 [https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html](https://www.oracle.com/java/technologies/javase/jdk17-archive-downloads.html) 选择相应的发行版下载,并将解压后的文件夹重命名为java,复制到Hertzbeat的解压目录下。 + +2. 升级数据库 + + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件执行升级sql。 + +3. 升级配置文件 + + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: org.h2.Driver + username: sa + password: 123456 + url: jdbc:h2:./data/hertzbeat;MODE=MYSQL + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: h2 + properties: + eclipselink: + logging: + level: SEVERE + ``` + + 如若修改为mysql数据库,给出一个示例: + + ```yaml + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: mysql + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` + +4. 添加相应的数据库驱动 + +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动,复制到安装目录下`ext-lib`中。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +接下来,像之前那样运行启动脚本,即可体验最新的HertzBeat1.6.0! + +### Docker 方式升级 - Mysql数据库 + +1. 关闭 HertzBeat 容器 + + ```shell + docker stop hertzbeat + ``` + +2. 升级数据库脚本 + + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 Mysql 执行升级sql。 + +3. 升级配置文件 + + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: com.mysql.cj.jdbc.Driver + username: root + password: root + url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: mysql + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` + +4. 添加相应的数据库驱动 + +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +接下来,像之前那样 Docker 运行启动 HertzBeat,即可体验最新的HertzBeat1.6.0! + +### Docker安装升级 - H2内置数据库(生产环境不推荐使用H2) + +1. 关闭 HertzBeat 容器 + + ```shell + docker stop hertzbeat + ``` + +2. 编辑H2数据库文件 + + 前题你已经将 H2 数据库文件 data 目录挂载到本地,或者启动老容器手动将 /opt/hertzbeat/data 目录拷贝出来。 + 下载 h2 驱动 jar [https://mvnrepository.com/artifact/com.h2database/h2/2.2.220](https://mvnrepository.com/artifact/com.h2database/h2/2.2.220) + 使用 h2 驱动 jar 本地启动数据库 + + ```shell + java -jar h2-2.2.220.jar -url jdbc:h2:file:./hertzbeat -user sa -password 123456 + ``` + + 打开[https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/db/migration), + 选择你使用的数据库的目录下相应的 `V160__update_column.sql`文件在 H2 执行升级sql。 + +3. 升级配置文件 + + 由于 `application.yml`和 `sureness.yml`更新变动较大,建议直接挂载使用新的yml配置文件,然后在自己的需求基础上进行修改。 + + - `application.yml`一般需要修改以下部分 + + 默认为: + + ```yaml + datasource: + driver-class-name: org.h2.Driver + username: sa + password: 123456 + url: jdbc:h2:./data/hertzbeat;MODE=MYSQL + hikari: + max-lifetime: 120000 + + jpa: + show-sql: false + database-platform: org.eclipse.persistence.platform.database.MySQLPlatform + database: h2 + properties: + eclipselink: + logging: + level: SEVERE + ``` + + - `sureness.yml`修改是可选的,一般在你需要修改账号密码时 + + ```yaml + # account info config + # eg: admin has role [admin,user], password is hertzbeat + # eg: tom has role [user], password is hertzbeat + # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 + account: + - appId: admin + credential: hertzbeat + role: [admin] + - appId: tom + credential: hertzbeat + role: [user] + - appId: guest + credential: hertzbeat + role: [guest] + - appId: lili + # credential = MD5(password + salt) + # plain password: hertzbeat + # attention: digest authentication does not support salted encrypted password accounts + credential: 94C6B34E7A199A9F9D4E1F208093B489 + salt: 123 + role: [user] + ``` + +4. 添加相应的数据库驱动 + +由于apache基金会对于license合规的要求,HertzBeat的安装包不能包含mysql,oracle等gpl许可的依赖,需要用户自行添加,用户可通过以下链接自行下载驱动 jar 放到本地 `ext-lib`目录下,然后启动时将`ext-lib`挂载到容器的 `/opt/hertzbeat/ext-lib`目录。 + +mysql:[https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip](https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.18.zip) +oracle(如果你要监控oracle,这两个驱动是必须的): + [https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar](https://download.oracle.com/otn-pub/otn_software/jdbc/234/ojdbc8.jar) + [https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar](https://repo.mavenlibs.com/maven/com/oracle/database/nls/orai18n/21.5.0.0/orai18n-21.5.0.0.jar?utm_source=mavenlibs.com) +接下来,像之前那样 Docker 运行启动,即可体验最新的HertzBeat1.6.0! + +### 通过导出导入升级 + +> 若不想如上繁琐的脚本升级方式,可以直接将老环境的监控任务和阈值信息导出导入 + +1. 部署一套最新版本的新环境 +2. 在页面上将老环境的监控任务和阈值信息导出。 +3. 在页面上将监控任务和阈值信息文件导入。 + +⚠️注意此方式只保留了老环境的监控任务信息和阈值信息,没有其它数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/upgrade.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/upgrade.md index 461065fa003..2e2124534ec 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/upgrade.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/upgrade.md @@ -1,7 +1,7 @@ --- id: upgrade title: HertzBeat 新版本更新指引 -sidebar_label: 版本更新指引 +sidebar_label: 版本更新指引 --- **Apache HertzBeat (incubating) 的发布版本列表** @@ -14,8 +14,6 @@ HertzBeat 的元数据信息保存在 H2 或 Mysql, PostgreSQL 关系型数据 **升级前您需要保存备份好数据库的数据文件和监控模版文件** - - ### Docker部署方式的升级 1. 若使用了自定义监控模版 @@ -23,32 +21,26 @@ HertzBeat 的元数据信息保存在 H2 或 Mysql, PostgreSQL 关系型数据 - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - 然后在后续升级启动 docker 容器的时候需要挂载上这个 define 目录,`-v $(pwd)/define:/opt/hertzbeat/define` - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. 若使用内置默认 H2 数据库 +2. 若使用内置默认 H2 数据库 - 需挂载或备份 `-v $(pwd)/data:/opt/hertzbeat/data` 容器内的数据库文件目录 `/opt/hertzbeat/data` - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,注意需要将数据库文件目录挂载 `-v $(pwd)/data:/opt/hertzbeat/data` - 3. 若使用外置关系型数据库 Mysql, PostgreSQL - 无需挂载备份容器内的数据库文件目录 - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,`application.yml`配置数据库连接即可 - ### 安装包部署方式的升级 1. 若使用内置默认 H2 数据库 - - 备份安装包下的数据库文件目录 `/opt/hertzbeat/data` + - 备份安装包下的数据库文件目录 `/opt/hertzbeat/data` - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动 - 2. 若使用外置关系型数据库 Mysql, PostgreSQL - 无需备份安装包下的数据库文件目录 - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动,`application.yml`配置数据库连接即可 - - -**HAVE FUN** +**HAVE FUN** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md index abc8a1f94b2..ffd99ca6d8d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/victoria-metrics-init.md @@ -1,7 +1,7 @@ --- id: victoria-metrics-init title: 依赖时序数据库服务VictoriaMetrics安装初始化 -sidebar_label: 指标数据存储VictoriaMetrics(推荐) +sidebar_label: 指标数据存储VictoriaMetrics(推荐) --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) @@ -10,59 +10,60 @@ Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任 VictoriaMetrics,是一个快速高效、经济并且可扩展的监控解决方案和时序数据库,兼容 Prometheus 生态。推荐版本(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** > 如果您已有VictoriaMetrics环境,可直接跳到YML配置那一步。 +### 通过Docker方式安装VictoriaMetrics -### 通过Docker方式安装VictoriaMetrics -> 可参考官方网站[安装教程](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装VictoriaMetrics - -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` - - `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` 为VictoriaMetrics数据目录本地持久化挂载 - 使用```$ docker ps```查看数据库是否启动成功 - -3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接 - - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用 victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` + +2. Docker安装VictoriaMetrics + + ```shell + $ docker run -d -p 8428:8428 \ + -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ + --name victoria-metrics \ + victoriametrics/victoria-metrics:v1.95.1 + ``` + + `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` 为VictoriaMetrics数据目录本地持久化挂载 + 使用```$ docker ps```查看数据库是否启动成功 + +3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接 + + 配置HertzBeat的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用 victoria-metrics + victoria-metrics: + enabled: true + url: http://localhost:8428 + username: root + password: root + ``` 4. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,但会影响历史图表数据和存储时长等。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,但会影响历史图表数据和存储时长等。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/template.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/template.md index 55d89c73cba..521e528a299 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/template.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/template.md @@ -4,27 +4,27 @@ title: 监控模版中心 sidebar_label: 监控模版 --- -> Apache HertzBeat (incubating) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 +> Apache HertzBeat (incubating) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 +> +> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 > 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? -这是它的架构原理: +这是它的架构原理: ![hertzBeat](/img/docs/hertzbeat-arch.png) -**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** +**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** ![](/img/docs/advanced/extend-point-1.png) **欢迎大家一起贡献你使用过程中自定义的通用监控类型YML模版,可用的模板如下:** -### 应用服务监控模版 +### 应用服务监控模版  👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
+ 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
+ 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
+ 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
@@ -32,7 +32,7 @@ sidebar_label: 监控模版  👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
-### 数据库监控模版 +### 数据库监控模版  👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
@@ -49,7 +49,7 @@ sidebar_label: 监控模版  👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
-### 操作系统监控模版 +### 操作系统监控模版  👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
@@ -64,7 +64,6 @@ sidebar_label: 监控模版  👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- ### 中间件监控模版  👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
@@ -78,13 +77,12 @@ sidebar_label: 监控模版  👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- ### 云原生监控模版  👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
-### 网络监控模版 +### 网络监控模版  👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x.json b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x.json deleted file mode 100644 index e66ec375b03..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x.json +++ /dev/null @@ -1,78 +0,0 @@ -{ - "version.label": { - "message": "v1.3.x", - "description": "The label for version v1.3.x" - }, - "sidebar.docs.category.quickstart": { - "message": "quickstart", - "description": "The label for category quickstart in sidebar docs" - }, - "sidebar.docs.category.custom": { - "message": "custom", - "description": "The label for category custom in sidebar docs" - }, - "sidebar.docs.category.http": { - "message": "http", - "description": "The label for category http in sidebar docs" - }, - "sidebar.docs.category.jdbc": { - "message": "jdbc", - "description": "The label for category jdbc in sidebar docs" - }, - "sidebar.docs.category.ssh": { - "message": "ssh", - "description": "The label for category ssh in sidebar docs" - }, - "sidebar.docs.category.jmx": { - "message": "jmx", - "description": "The label for category jmx in sidebar docs" - }, - "sidebar.docs.category.snmp": { - "message": "snmp", - "description": "The label for category snmp in sidebar docs" - }, - "sidebar.docs.category.help": { - "message": "help", - "description": "The label for category help in sidebar docs" - }, - "sidebar.docs.category.service": { - "message": "service", - "description": "The label for category service in sidebar docs" - }, - "sidebar.docs.category.database": { - "message": "database", - "description": "The label for category database in sidebar docs" - }, - "sidebar.docs.category.os": { - "message": "os", - "description": "The label for category os in sidebar docs" - }, - "sidebar.docs.category.mid": { - "message": "mid", - "description": "The label for category mid in sidebar docs" - }, - "sidebar.docs.category.cloud-native": { - "message": "cloud-native", - "description": "The label for category cloud-native in sidebar docs" - }, - "sidebar.docs.category.threshold": { - "message": "threshold", - "description": "The label for category threshold in sidebar docs" - }, - "sidebar.docs.category.notice": { - "message": "notice", - "description": "The label for category notice in sidebar docs" - }, - "sidebar.docs.category.Others": { - "message": "Others", - "description": "The label for category Others in sidebar docs" - }, - "sidebar.docs.link.Cloud Service": { - "message": "Cloud Service", - "description": "The label for link Cloud Service in sidebar docs, linking to https://console.tancloud.cn" - }, - "sidebar.docs.link.Install via HuaweiCloud": { - "message": "Install via HuaweiCloud", - "description": "The label for link Install via HuaweiCloud in sidebar docs, linking to https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - } -} diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-default.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-default.md deleted file mode 100644 index 6f9e39beed4..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-default.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -id: extend-http-default -title: HTTP协议系统默认解析方式 -sidebar_label: 系统默认解析方式 ---- -> HTTP接口调用获取响应数据后,用HertzBeat默认的解析方式去解析响应数据。 - -**此需接口响应数据结构符合HertzBeat指定的数据结构规则** - -### HertzBeat数据格式规范 -注意⚠️ 响应数据为JSON - -单层格式:key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -多层格式:数组里面套key-value -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` -样例: -查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 -若只有一台虚拟机,其单层格式为: -```json -{ - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 -} -``` -若有多台虚拟机,其多层格式为: -```json -[ - { - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 - }, - { - "hostname": "linux-2", - "core": 3, - "usage": 78.0, - "allTime": 566, - "runningTime": 34 - }, - { - "hostname": "linux-3", - "core": 4, - "usage": 38.0, - "allTime": 500, - "runningTime": 20 - } -] -``` - -**对应的监控模版YML可以配置为如下** - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - cpu - # 监控指标 - cpu - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - instance: true - - field: usage - type: 0 - unit: '%' - - field: core - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/cpu - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # 这里使用HertzBeat默认解析 - parseType: default -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md deleted file mode 100644 index 43289c83d2b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md +++ /dev/null @@ -1,227 +0,0 @@ ---- -id: extend-http-example-hertzbeat -title: 教程一:适配一款基于HTTP协议的监控类型 -sidebar_label: 教程一:适配一款HTTP协议监控 ---- - -通过此教程我们一步一步描述如何在hertzbeat监控系统下新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - - -### HTTP协议解析通用响应结构体,获取指标数据 - -> 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API -`http://localhost:1157/api/summary`, 其响应数据为: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - - -### 新增自定义监控模版YML - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为`hertzbeat`的自定义监控类型,其使用HTTP协议采集指标数据。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - summary - # 监控指标 - summary - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: responseTime - type: 0 - unit: ms - - field: app - type: 1 - instance: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk, 我们这里使用HTTP协议 - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径,我们这里不需要输入传参,写死为 /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # 请求方式 GET POST PUT DELETE PATCH,写死为 - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控,我们这里使用jsonpath来解析响应数据 - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**新增完毕,现在我们重启hertzbeat系统。我们可以看到系统页面已经多了一个`hertzbeat`监控类型了。** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### 系统页面添加对`hertzbeat`监控类型的监控 - -> 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### 设置阈值告警通知 - -> 接下来我们就可以正常的设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! - -如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-token.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-token.md deleted file mode 100644 index 5bbfe58cf32..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-example-token.md +++ /dev/null @@ -1,391 +0,0 @@ ---- -id: extend-http-example-token -title: 教程二:基于HTTP协议获取TOKEN指标值,给后续采集认证使用 -sidebar_label: 教程二:获取TOKEN后续认证使用 ---- - -通过此教程我们一步一步描述如何在教程一的基础上改造,新增一个监控指标,先调用认证接口获取TOKEN后,使用TOKEN作为参数供后面的监控指标采集认证使用。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - -### 请求流程 - -【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 - -> 这里我们依然用教程一的hertzbeat监控举例!hertzbeat后台接口不仅仅支持教程一使用的basic直接账户密码认证,也支持token认证。 - -**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` -**响应结构数据如下**: - -```json -{ - "data": { - "token": "xxxx", - "refreshToken": "xxxx" - }, - "msg": null, - "code": 0 -} -``` - -### 新增自定义监控类型`hertzbeat_token` - -1. 自定义监控类型需新增配置监控模版YML,我们直接复用教程一的 `hertzbeat` 监控类型,在其基础上修改 - -监控配置定义文件是用来定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。 -我们直接复用 app-hertzbeat.yml 里面的定义内容,修改为我们当前的监控类型`hertzbeat_auth`配置参数, 比如 `app, category等`。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 todo 下方配置 -metrics: ...... - -``` - -### 定义监控指标`auth`登录请求获取`token` - -1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. - -```yaml - -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 -metrics: - # 第一个监控指标 auth - # 注意:内置监控指标有 (responseTime - 响应时间) - - name: auth - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: token - type: 1 - - field: refreshToken - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/account/auth/form - # 请求方式 GET POST PUT DELETE PATCH - method: POST - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # 请求头内容 - headers: - content-type: ^_^contentType^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data' - -``` - -**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下: ** - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` - -![](/img/docs/advanced/extend-http-example-5.png) - - -**新增成功后我们就可以在详情页面看到我们采集的 `token`, `refreshToken`指标数据。** - -![](/img/docs/advanced/extend-http-example-6.png) - -![](/img/docs/advanced/extend-http-example-7.png) - - - -### 将`token`作为变量参数给后面的监控指标采集使用 - -**在`app-hertzbeat_token.yml`新增一个监控指标定义 `summary` 同教程一中的`summary`相同, 设置采集优先级为1** -**设置此监控指标的HTTP协议配置中认证方式为 `Bearer Token` 将上一个监控指标`auth`采集的指标`token`作为参数给其赋值,使用`^o^`作为内部替换符标识,即`^o^token^o^`。如下:** - -```yaml - - name: summary -# 当protocol为http协议时具体的采集配置 - http: - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ -``` - -**最终`app-hertzbeat_token.yml`定义如下:** - -```yaml - -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 -metrics: -# 第一个监控指标 cpu -# 注意:内置监控指标有 (responseTime - 响应时间) - - name: auth - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: token - type: 1 - - field: refreshToken - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/account/auth/form - # 请求方式 GET POST PUT DELETE PATCH - method: POST - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # 请求头内容 - headers: - content-type: ^_^contentType^_^ - ^_^headers^_^: ^_^headers^_^ - # 请求参数内容 - params: - ^_^params^_^: ^_^params^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data' - - - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 1 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: category - type: 1 - - field: app - type: 1 - - field: size - type: 0 - - field: status - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/summary - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** - -![](/img/docs/advanced/extend-http-example-8.png) - -![](/img/docs/advanced/extend-http-example-9.png) - -### 设置阈值告警通知 - -> 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! - -如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-jsonpath.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-jsonpath.md deleted file mode 100644 index 706448f6763..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http-jsonpath.md +++ /dev/null @@ -1,167 +0,0 @@ ---- -id: extend-http-jsonpath -title: HTTP协议JsonPath解析方式 -sidebar_label: JsonPath解析方式 ---- -> HTTP接口调用获取响应数据后,用JsonPath脚本解析的解析方式去解析响应数据。 - -注意⚠️ 响应数据为JSON格式 - -**使用JsonPath脚本将响应数据解析成符合HertzBeat指定的数据结构规则的数据** - -#### JsonPath操作符 -[JSONPath在线验证](https://www.jsonpath.cn) - -| JSONPATH | 帮助描述 | -|------------------|-----------------------------------| -| $ | 根对象或元素 | -| @ | 当前对象或元素 | -| . or [] | 子元素操作符 | -| .. | 递归匹配所有子元素 | -| * | 通配符. 匹配所有对象或元素. | -| [] | 下标运算符,JsonPath索引从0开始 | -| [,] | 连接运算符,将多个结果拼成数组返回,JSONPath允许使用别名. | -| [start:end:step] | 数组切片运算符 | -| ?() | 过滤器(脚本)表达式. | -| () | 脚本表达式. | - -#### HertzBeat数据格式规范 -单层格式:key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -多层格式:数组里面套key-value -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` - -#### 样例 - -查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 -接口返回的原始数据如下: -```json -{ - "firstName": "John", - "lastName" : "doe", - "age" : 26, - "address" : { - "streetAddress": "naist street", - "city" : "Nara", - "postalCode" : "630-0192" - }, - "number": [ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } - ] -} -``` - -我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: -```json -[ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } -] -``` -此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 - -**对应的监控模版YML可以配置为如下** - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' -# 采集指标配置列表 -metrics: -# 第一个监控指标 person -# 注意:内置监控指标有 (responseTime - 响应时间) - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: type - type: 1 - instance: true - - field: num - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/person - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # 这里使用jsonPath解析 - parseType: jsonPath - parseScript: '$.number[*]' -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http.md deleted file mode 100644 index cd2cdedd8a5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-http.md +++ /dev/null @@ -1,205 +0,0 @@ ---- -id: extend-http -title: HTTP协议自定义监控 -sidebar_label: HTTP协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 - -### HTTP协议采集流程 -【**HTTP接口调用**】->【**响应校验**】->【**响应数据解析**】->【**默认方式解析|JsonPath脚本解析 | XmlPath解析(todo) | Prometheus解析**】->【**指标数据提取**】 - -由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 -HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 - -**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) -**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- - -下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 - - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_http -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - # 当type为text时,用limit表示字符串限制大小 - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: ssl - name: - zh-CN: 启动SSL - en-US: Enable SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: method - name: - zh-CN: 请求方式 - en-US: Method - type: radio - required: true - # 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2} - options: - - label: GET请求 - value: GET - - label: POST请求 - value: POST - - label: PUT请求 - value: PUT - - label: DELETE请求 - value: DELETE -# 采集指标配置列表 -metrics: -# 第一个监控指标 cpu -# 注意:内置监控指标有 (responseTime - 响应时间) - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - instance: true - - field: usage - type: 0 - unit: '%' - - field: cores - type: 0 - - field: waitTime - type: 0 - unit: s -# (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - hostname - - core1 - - core2 - - usage - - allTime - - runningTime -# (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 -# eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - hostname=hostname - - cores=core1+core2 - - usage=usage - - waitTime=allTime-runningTime -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/cpu - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 请求头内容 - headers: - apiVersion: v1 - # 请求参数内容 - params: - param1: param1 - param2: param2 - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # todo xmlPath-xmlPath脚本,prometheus-Prometheus数据规则 - parseType: jsonPath - parseScript: '$' - - - name: memory - priority: 1 - fields: - - field: hostname - type: 1 - instance: true - - field: total - type: 0 - unit: kb - - field: usage - type: 0 - unit: '%' - - field: speed - type: 0 - protocol: http - http: - host: ^_^host^_^ - port: ^_^port^_^ - url: /metrics/memory - method: GET - headers: - apiVersion: v1 - params: - param1: param1 - param2: param2 - authorization: - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - parseType: default -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jdbc.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jdbc.md deleted file mode 100644 index 2dd855aba94..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jdbc.md +++ /dev/null @@ -1,240 +0,0 @@ ---- -id: extend-jdbc -title: JDBC协议自定义监控 -sidebar_label: JDBC协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 -> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 - -### JDBC协议采集流程 -【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 - -由流程可见,我们自定义一个JDBC协议的监控类型,需要配置JDBC请求参数,配置获取哪些指标,配置查询SQL语句。 - -### 数据解析方式 -SQL查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有三种:oneRow, multiRow, columns - -#### **oneRow** -> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 - -例如: -查询的指标字段为:one tow three four -查询SQL:select one, tow, three, four from book limit 1; -这里指标字段就能和响应数据一一映射为一行采集数据。 - -#### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 - -例如: -查询的指标字段为:one tow three four -查询SQL:select one, tow, three, four from book; -这里指标字段就能和响应数据一一映射为多行采集数据。 - -#### **columns** -> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 - -例如: -查询字段:one tow three four -查询SQL:select key, value from book; -SQL响应数据: - -| key | value | -|----------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | - -这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_sql的自定义监控类型,其使用JDBC协议采集指标数据。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: db -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_sql -name: - zh-CN: 模拟MYSQL应用类型 - en-US: MYSQL EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 80 - placeholder: '请输入端口' - - field: database - name: - zh-CN: 数据库名称 - en-US: Database - type: text - required: false - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: url - name: - zh-CN: Url - en-US: Url - type: text - required: false -# collect metrics config list -# 采集指标配置列表 -metrics: - - name: basic - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: version - type: 1 - instance: true - - field: port - type: 1 - - field: datadir - type: 1 - - field: max_connections - type: 0 - # (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - version - - version_compile_os - - version_compile_machine - - port - - datadir - - max_connections - # (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - port=port - - datadir=datadir - - max_connections=max_connections - - version=version+"_"+version_compile_os+"_"+version_compile_machine - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global variables where Variable_name like 'version%' or Variable_name = 'max_connections' or Variable_name = 'datadir' or Variable_name = 'port'; - url: ^_^url^_^ - - - name: status - priority: 1 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: threads_created - type: 0 - - field: threads_connected - type: 0 - - field: threads_cached - type: 0 - - field: threads_running - type: 0 - # (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - threads_created - - threads_connected - - threads_cached - - threads_running - # (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - threads_created=threads_created - - threads_connected=threads_connected - - threads_cached=threads_cached - - threads_running=threads_running - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'thread%' or Variable_name = 'com_commit' or Variable_name = 'com_rollback' or Variable_name = 'questions' or Variable_name = 'uptime'; - url: ^_^url^_^ - - - name: innodb - priority: 2 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: innodb_data_reads - type: 0 - unit: 次数 - - field: innodb_data_writes - type: 0 - unit: 次数 - - field: innodb_data_read - type: 0 - unit: kb - - field: innodb_data_written - type: 0 - unit: kb - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'innodb%'; - url: ^_^url^_^ -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jmx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jmx.md deleted file mode 100644 index 542fe7cd808..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-jmx.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-jmx -title: JMX协议自定义监控 -sidebar_label: JMX协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 -> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 - -### JMX协议采集流程 -【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 - -由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 - -### 数据解析方式 - -通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 - - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下监控模版的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: service -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: example_jvm -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: 自定义JVM虚拟机 - en-US: CUSTOM JVM -# Input params define for monitoring(render web ui by the definition) -# 监控所需输入参数定义(根据定义渲染页面UI) -params: - # field-param field key - # field-字段名称标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # 是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 端口默认值 - defaultValue: 9999 - # field-param field key - # field-变量字段标识符 - - field: url - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: JMX URL - en-US: JMX URL - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - # param field input placeholder - # 参数输入框提示信息 - placeholder: 'service:jmx:rmi:///jndi/rmi://host:port/jmxrmi' - # field-param field key - # field-变量字段标识符 - - field: username - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 用户名 - en-US: Username - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 20 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - # field-param field key - # field-变量字段标识符 - - field: password - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 密码 - en-US: Password - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: password - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - basic - # 监控指标 - basic - - name: basic - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: VmName - type: 1 - - field: VmVendor - type: 1 - - field: VmVersion - type: 1 - - field: Uptime - type: 0 - unit: ms - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - # 用于监控的协议,例: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: jmx - # the config content when protocol is jmx - jmx: - # host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # port - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - # jmx mbean object name - # jmx mbean 对象名称 - objectName: java.lang:type=Runtime - url: ^_^url^_^ - - - name: memory_pool - priority: 1 - fields: - - field: name - type: 1 - instance: true - - field: committed - type: 0 - unit: MB - - field: init - type: 0 - unit: MB - - field: max - type: 0 - unit: MB - - field: used - type: 0 - unit: MB - units: - - committed=B->MB - - init=B->MB - - max=B->MB - - used=B->MB - # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field - # (可选)监控指标别名, 做为中间字段与采集数据字段和指标字段映射转换 - aliasFields: - - Name - - Usage->committed - - Usage->init - - Usage->max - - Usage->used - # mapping and conversion expressions, use these and aliasField above to calculate metrics value - # (可选)指标映射转换计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - name=Name - - committed=Usage->committed - - init=Usage->init - - max=Usage->max - - used=Usage->used - protocol: jmx - jmx: - # host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # port - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - objectName: java.lang:type=MemoryPool,name=* - url: ^_^url^_^ -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-point.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-point.md deleted file mode 100644 index c951f1bc190..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-point.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -id: extend-point -title: 自定义监控 -sidebar_label: 自定义监控 ---- -> HertzBeat拥有自定义监控能力,您只需配置监控模版YML就能适配一款自定义的监控类型。 -> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 - -### 自定义流程 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- - -### 监控模版YML - -**HertzBeat的设计是一个监控模版对应一个监控类型,所有监控类型都是由监控模版来定义的**。 - -> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 - -下面使用样例详细介绍下这监控模版YML的配置用法。 - -样例:自定义一个 `app` 名称为 `example2` 的自定义监控类型,其使用HTTP协议采集指标数据。 - -[监控模版] -> [新增监控类型] -> [右边配置如下监控模版YML] -> [保存并应用] - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: example2 -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: 模拟网站监测 - en-US: EXAMPLE WEBSITE -# 监控所需输入参数定义(根据定义渲染页面UI) -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - # field-变量字段标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 默认值 - defaultValue: 80 - # field-param field key - # field-变量字段标识符 - - field: uri - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 相对路径 - en-US: URI - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 200 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # 参数输入框提示信息 - # param field input placeholder - placeholder: 'Website uri path(no ip port) EG:/console' - # field-param field key - # field-变量字段标识符 - - field: ssl - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 启用HTTPS - en-US: HTTPS - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: boolean - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: timeout - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - -metrics: - # metrics - summary, inner monitoring metrics (responseTime - response time, keyword - number of keywords) - # 监控指标 - summary, 内置监控指标有 (responseTime - 响应时间, keyword - 关键字数量) - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: responseTime - type: 0 - unit: ms - - field: keyword - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url - url: ^_^uri^_^ - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH - method: GET - # if enabled https - ssl: ^_^ssl^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule - # http 响应数据解析方式: default-系统规则, jsonPath-jsonPath脚本, website-网站可用性指标监控, prometheus-Prometheus数据规则 - parseType: website - -``` - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-snmp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-snmp.md deleted file mode 100644 index 3ff65d60a17..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-snmp.md +++ /dev/null @@ -1,209 +0,0 @@ ---- -id: extend-snmp -title: SNMP协议自定义监控 -sidebar_label: SNMP协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 -> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 - -### SNMP协议采集流程 -【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 - -由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 - -### 数据解析方式 - -通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 - - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: os -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: windows -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: Windows操作系统 - en-US: OS Windows -# 监控所需输入参数定义(根据定义渲染页面UI) -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - # field-变量字段标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 默认值 - defaultValue: 161 - # field-param field key - # field-变量字段标识符 - - field: version - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: SNMP 版本 - en-US: SNMP Version - # type-param field type(radio mapping the html radio tag) - # type-当type为radio时,前端用radio展示开关 - type: radio - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # when type is radio checkbox, use option to show optional values {name1:value1,name2:value2} - # 当type为radio单选框, checkbox复选框时, option表示可选项值列表 {name1:value1,name2:value2} - options: - - label: SNMPv1 - value: 0 - - label: SNMPv2c - value: 1 - # field-param field key - # field-变量字段标识符 - - field: community - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: SNMP 团体字 - en-US: SNMP Community - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 100 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # 参数输入框提示信息 - # param field input placeholder - placeholder: 'Snmp community for v1 v2c' - # field-param field key - # field-变量字段标识符 - - field: timeout - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,100000]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide-is hide this field and put it in advanced layout - # hide-是否隐藏此参数将其放入高级设置中 - hide: true - # default value - # 默认值 - defaultValue: 6000 -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - system - # 监控指标 - system - - name: system - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: name - type: 1 - - field: descr - type: 1 - - field: uptime - type: 1 - - field: numUsers - type: 0 - - field: services - type: 0 - - field: processes - type: 0 - - field: responseTime - type: 0 - unit: ms - - field: location - type: 1 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: snmp - # the config content when protocol is snmp - snmp: - # server host: ipv4 ipv6 domain - host: ^_^host^_^ - # server port - port: ^_^port^_^ - # snmp connect timeout - timeout: ^_^timeout^_^ - # snmp community - # snmp 团体字 - community: ^_^community^_^ - # snmp version - version: ^_^version^_^ - # snmp operation: get, walk - operation: get - # metrics oids: metric_name - oid_value - oids: - name: 1.3.6.1.2.1.1.5.0 - descr: 1.3.6.1.2.1.1.1.0 - uptime: 1.3.6.1.2.1.25.1.1.0 - numUsers: 1.3.6.1.2.1.25.1.5.0 - services: 1.3.6.1.2.1.1.7.0 - processes: 1.3.6.1.2.1.25.1.6.0 - location: 1.3.6.1.2.1.1.6.0 -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-ssh.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-ssh.md deleted file mode 100644 index 9378f83d3a2..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-ssh.md +++ /dev/null @@ -1,207 +0,0 @@ ---- -id: extend-ssh -title: SSH协议自定义监控 -sidebar_label: SSH协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 -> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 - -### SSH协议采集流程 -【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 - -由流程可见,我们自定义一个SSH协议的监控类型,需要配置SSH请求参数,配置获取哪些指标,配置查询脚本语句。 - -### 数据解析方式 -SHELL脚本查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有两种:oneRow, multiRow,能满足绝大部分指标需求。 - -#### **oneRow** -> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 - -例如: -需要查询Linux的指标 hostname-主机名称,uptime-启动时间 -主机名称原始查询命令:`hostname` -启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` -则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): -`hostname; uptime | awk -F "," '{print $1}'` -终端响应的数据为: -``` -tombook -14:00:15 up 72 days -``` -则最后采集到的指标数据一一映射为: -hostname值为 `tombook` -uptime值为 `14:00:15 up 72 days` - -这里指标字段就能和响应数据一一映射为一行采集数据。 - -#### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 - -例如: -查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 -内存指标原始查询命令为:`free -m`, 控制台响应: -```shell - total used free shared buff/cache available -Mem: 7962 4065 333 1 3562 3593 -Swap: 8191 33 8158 -``` -在hertzbeat中multiRow格式解析需要响应数据列名称和指标值一一映射,则对应的查询SHELL脚本为: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -控制台响应为: -```shell -total used free buff_cache available -7962 4066 331 3564 3592 -``` - -这里指标字段就能和响应数据一一映射为采集数据。 - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 - - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: os -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_linux -name: - zh-CN: 模拟LINUX应用类型 - en-US: LINUX EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 22 - placeholder: '请输入端口' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: true -# 采集指标配置列表 -metrics: - # 第一个监控指标 basic - # 注意:内置监控指标有 (responseTime - 响应时间) - - name: basic - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - instance: true - - field: version - type: 1 - - field: uptime - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: (uname -r ; hostname ; uptime | awk -F "," '{print $1}' | sed "s/ //g") | sed ":a;N;s/\n/^/g;ta" | awk -F '^' 'BEGIN{print "version hostname uptime"} {print $1, $2, $3}' - # 响应数据解析方式:oneRow, multiRow - parseType: multiRow - - - name: cpu - priority: 1 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: info - type: 1 - - field: cores - type: 0 - unit: 核数 - - field: interrupt - type: 0 - unit: 个数 - - field: load - type: 1 - - field: context_switch - type: 0 - unit: 个数 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: "LANG=C lscpu | awk -F: '/Model name/ {print $2}';awk '/processor/{core++} END{print core}' /proc/cpuinfo;uptime | sed 's/,/ /g' | awk '{for(i=NF-2;i<=NF;i++)print $i }' | xargs;vmstat 1 1 | awk 'NR==3{print $11}';vmstat 1 1 | awk 'NR==3{print $12}'" - parseType: oneRow - - - name: memory - priority: 2 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: total - type: 0 - unit: Mb - - field: used - type: 0 - unit: Mb - - field: free - type: 0 - unit: Mb - - field: buff_cache - type: 0 - unit: Mb - - field: available - type: 0 - unit: Mb - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}' - parseType: multiRow -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-tutorial.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-tutorial.md deleted file mode 100644 index afd546f4ecd..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/advanced/extend-tutorial.md +++ /dev/null @@ -1,255 +0,0 @@ ---- -id: extend-tutorial -title: 自定义适配一款基于HTTP协议的新监控类型 -sidebar_label: 教程案例 ---- - -通过此教程我们一步一步描述如何在hertzbeat监控系统下自定义新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - - -### HTTP协议解析通用响应结构体,获取指标数据 - -> 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API -`http://localhost:1157/api/summary`, 其响应数据为: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - - -### 新增配置监控模版YML - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** - -定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 - -定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。我们直接复用 `api`监控模版 里面的定义内容,修改为我们当前的监控类型`hertzbeat`配置参数即可,如下:注意⚠️我们这次获取接口响应数据中的`category`,`app`,`status`,`size`,`availableSize`等字段作为指标数据。 - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -# 监控所需输入参数定义(根据定义渲染页面UI) -params: - # field-param field key - # field-字段名称标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # 是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 端口默认值 - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: app - type: 1 - instance: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk, 我们这里使用HTTP协议 - protocol: http - # the config content when protocol is http - # 当protocol为http协议时具体的采集配置 - http: - # http host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # http port - # 端口 - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - # url请求接口路径,我们这里不需要输入传参,写死为 /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - # 请求方式 GET POST PUT DELETE PATCH,写死为 GET - method: GET - # if enabled https, default value is false - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # http auth - # 认证 - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控,我们这里使用jsonpath来解析响应数据 - parseType: jsonPath - parseScript: '$.data.apps.*' -``` - -**点击保存并应用。我们可以看到系统页面的自定义监控菜单已经多了一个`hertzbeat`监控类型了。** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### 页面添加对`hertzbeat`监控类型的监控 - -> 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### 设置阈值告警通知 - -> 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数 `headers,params` 等,我们可以像用postman一样去定义它,可玩性也非常高! - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/activemq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/activemq.md deleted file mode 100644 index b2d8f1489f5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/activemq.md +++ /dev/null @@ -1,144 +0,0 @@ ---- -id: activemq -title: 监控 Apache ActiveMQ 消息中间件 -sidebar_label: ActiveMQ消息中间件 -keywords: [开源监控系统, 开源中间件监控, ActiveMQ消息中间件监控] ---- - -> 对 Apache ActiveMQ 消息中间件的运行状态,节点,Topic等相关指标进行监测。 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 ActiveMQ 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 ActiveMQ 进行指标采集。 - -1. 修改安装目录下的 `conf/activemq.xml` 文件,开启JMX - -> 在 `broker` 标签中添加 `userJmx="true"` 属性 - -```xml - - - -``` - -2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 - -将如下原配置信息 -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` -更新为如下配置,⚠️注意修改`本机对外IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -3. 重启 ACTIVEMQ 服务,在 HertzBeat 添加对应 ActiveMQ 监控即可,参数使用 JMX 配置的 IP 端口。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | -| JMX URL | 可选,自定义 JMX URL 连接 | -| 用户名 | 认证时使用的用户名 | -| 密码 | 认证时使用的密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:broker - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-----------------------------------------------------------------------| -| BrokerName | 无 | The name of the broker. | -| BrokerVersion | 无 | The version of the broker. | -| Uptime | 无 | Uptime of the broker. | -| UptimeMillis | ms | Uptime of the broker in milliseconds. | -| Persistent | 无 | Messages are synchronized to disk. | -| MemoryPercentUsage | % | Percent of memory limit used. | -| StorePercentUsage | % | Percent of store limit used. | -| TempPercentUsage | % | Percent of temp limit used. | -| CurrentConnectionsCount | 无 | Attribute exposed for management | -| TotalConnectionsCount | 无 | Attribute exposed for management | -| TotalEnqueueCount | 无 | Number of messages that have been sent to the broker. | -| TotalDequeueCount | 无 | Number of messages that have been acknowledged on the broker. | -| TotalConsumerCount | 无 | Number of message consumers subscribed to destinations on the broker. | -| TotalProducerCount | 无 | Number of message producers active on destinations on the broker. | -| TotalMessageCount | 无 | Number of unacknowledged messages on the broker. | -| AverageMessageSize | 无 | Average message size on this broker | -| MaxMessageSize | 无 | Max message size on this broker | -| MinMessageSize | 无 | Min message size on this broker | - -#### 指标集合:topic - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | 无 | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | 无 | The percentage of the memory limit used | -| ProducerCount | 无 | Number of producers attached to this destination | -| ConsumerCount | 无 | Number of consumers subscribed to this destination. | -| EnqueueCount | 无 | Number of messages that have been sent to the destination. | -| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | 无 | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_console.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_console.md deleted file mode 100644 index 68cf7339eae..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_console.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: alert_console -title: 告警模板中自定义的控制台地址 -sidebar_label: 告警模板登录台地址 ---- - -> 阈值触发后发送告警信息,通过钉钉/企业微信/飞书机器人通知或者使用邮箱通知的时候,告警内容中有登录控制台的详情链接 - - -### 自定义设置 - -在我们的启动配置文件application.yml中,找到下面的配置 -```yml -alerter: - console-url: #这里就是我们的自定义控制台地址 -``` - -默认值是赫兹跳动的官方控制台地址 \ No newline at end of file diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_dingtalk.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_dingtalk.md deleted file mode 100644 index aec6342f7d3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_dingtalk.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: alert_dingtalk -title: 告警钉钉机器人通知 -sidebar_label: 告警钉钉机器人通知 -keywords: [告警钉钉机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 - -### 操作步骤 - -1. **【钉钉桌面客户端】-> 【群设置】-> 【智能群助手】-> 【添加新建机器人-选自定义】-> 【设置机器人名称头像】-> 【注意⚠️设置自定义关键字: HertzBeat】 ->【添加成功后复制其WebHook地址】** - -> 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 - -![email](/img/docs/help/alert-notice-8.png) - -2. **【保存机器人的WebHook地址access_token值】** - -> 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` - -3. **【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】** - -![email](/img/docs/help/alert-notice-9.png) - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 钉钉机器人通知常见问题 - -1. 钉钉群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查钉钉机器人是否配置了安全自定义关键字:HertzBeat -> 请排查是否配置正确机器人ACCESS_TOKEN,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_discord.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_discord.md deleted file mode 100644 index d6c4879a2ba..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_discord.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: alert_discord -title: 告警 Discord 机器人通知 -sidebar_label: 告警 Discord 机器人通知 -keywords: [告警 Discord 机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token - -1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 - -![bot](/img/docs/help/discord-bot-1.png) - -2. 在应用下创建机器人,获取机器人 Token - -![bot](/img/docs/help/discord-bot-2.png) - -![bot](/img/docs/help/discord-bot-3.png) - -3. 授权机器人到聊天服务器 - -> 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` - -![bot](/img/docs/help/discord-bot-4.png) - -> 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 - -4. 查看您的聊天服务器是否已经加入机器人成员 - -![bot](/img/docs/help/discord-bot-5.png) - -### 开启开发者模式,获取频道 Channel ID - -1. 个人设置 -> 高级设置 -> 开启开发者模式 - -![bot](/img/docs/help/discord-bot-6.png) - -2. 获取频道 Channel ID - -> 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID - -![bot](/img/docs/help/discord-bot-7.png) - - -### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot - -1. **【告警通知】->【新增接收人】 ->【选择 Discord 机器人通知方式】->【设置机器人Token和ChannelId】-> 【确定】** - -![email](/img/docs/help/discord-bot-8.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Discord 机器人通知常见问题 - -1. Discord 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 -> 请排查机器人是否被 Discord聊天服务器正确赋权 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_email.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_email.md deleted file mode 100644 index 7033f6036d6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_email.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_email -title: 告警邮件通知 -sidebar_label: 告警邮件通知 -keywords: [告警邮件通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过邮件通知到接收人。 - -### 操作步骤 - -1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** - -![email](/img/docs/help/alert-notice-1.png) - -2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** -![email](/img/docs/help/alert-notice-2.png) - -![email](/img/docs/help/alert-notice-3.png) - -3. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 邮件通知常见问题 - -1. 自己内网部署的HertzBeat无法接收到邮件通知 -> HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 - -2. 云环境TanCloud无法接收到邮件通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确邮箱,是否已配置告警策略关联 -> 请查询邮箱的垃圾箱里是否把告警邮件拦截 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_enterprise_wechat_app.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_enterprise_wechat_app.md deleted file mode 100644 index 3f1c5a2b9c1..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_enterprise_wechat_app.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_enterprise_wechat_app -title: 企业微信应用告警通知 -sidebar_label: 企业微信应用告警通知 -keywords: [开源告警系统, 开源监控告警系统, 企业微信应用告警通知] ---- - -> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. - -### Operation steps - -1. **【企业微信后台管理】-> 【App管理】-> 【创建一个新的应用】-> 【设置应用信息】->【添加成功后复制应用的AgentId和Secret】** - -![email](/img/docs/help/alert-wechat-1.jpg) - -2. **【告警通知】->【新增接收人】 ->【选择企业微信应用通知方式】->【设置企业ID,企业应用id和应用的secret 】-> 【确定】** - -![email](/img/docs/help/alert-wechat-2.jpg) - -3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** - -![email](/img/docs/help/alert-wechat-3.jpg) - - -### 企业微信应用通知常见问题 - -1. 企业微信应用未收到告警通知. -> 请检查用户是否具有应用程序权限. -> 请检查企业应用程序回调地址设置是否正常. -> 请检查服务器IP是否在企业应用程序白名单上. - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_feishu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_feishu.md deleted file mode 100644 index 448e70de223..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_feishu.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_feishu -title: 告警飞书机器人通知 -sidebar_label: 告警飞书机器人通知 -keywords: [告警飞书机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 - -### 操作步骤 - -1. **【飞书客户端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** - -2. **【保存机器人的WebHook地址的KEY值】** - -> 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【告警通知】->【新增接收人】 ->【选择飞书机器人通知方式】->【设置飞书机器人KEY】-> 【确定】** - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 飞书机器人通知常见问题 - -1. 飞书群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_slack.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_slack.md deleted file mode 100644 index f2cc7a76673..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_slack.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_slack -title: 告警 Slack Webhook 通知 -sidebar_label: 告警 Slack Webhook 通知 -keywords: [告警 Slack Webhook 通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Slack 开启 Webhook, 获取 Webhook URL - -参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) - -### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook - -1. **【告警通知】->【新增接收人】 ->【选择 Slack Webhook 通知方式】->【设置 Webhook URL】-> 【确定】** - -![email](/img/docs/help/slack-bot-1.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Slack 机器人通知常见问题 - -1. Slack 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_smn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_smn.md deleted file mode 100644 index 73f434a8e8a..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_smn.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: alert_smn -title: 华为云SMN通知 -sidebar_label: 告警华为云SMN通知 -keywords: [ 告警华为云SMN通知, 开源告警系统, 开源监控告警系统 ] ---- - -> 阈值触发后发送告警信息,通过华为云SMN通知到接收人。 - -### 操作步骤 - -1. **按照[华为云SMN官方文档](https://support.huaweicloud.com/qs-smn/smn_json.html)开通SMN服务并配置SMN** - -![alert-notice-10](/img/docs/help/alert-notice-10.png) - -2. **保存SMN的主题URN** - -![alert-notice-11](/img/docs/help/alert-notice-11.png) - -3. **按照[华为云签名文档](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html)获取AK、SK和项目ID** - -![alert-notice-12](/img/docs/help/alert-notice-12.png) - -![alert-notice-13](/img/docs/help/alert-notice-13.png) - -4. **【告警通知】->【新增接收人】 ->【选择华为云SMN通知方式】->【设置华为云SMN AK、SK等配置】-> 【确定】** - -![alert-notice-14](/img/docs/help/alert-notice-14.png) - -5. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - -### 华为云SMN通知常见问题 - -1. 华为云SMN群未收到告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否正确配置华为云SMN AK、SK等配置,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_telegram.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_telegram.md deleted file mode 100644 index 6730aa19dcb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_telegram.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -id: alert_telegram -title: 告警 Telegram 机器人通知 -sidebar_label: 告警 Telegram 机器人通知 -keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Telegram 创建机器人, 获取 Bot Token 和 UserId - -1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. 获取接收人的 `User ID` - -**使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, -访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` - -```json -{ - "ok":true, - "result":[ - { - "update_id":632299191, - "message":{ - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date":1673858065, - "text":"111" - } - } - ] -} -``` - -3. 记录保存我们获得的 `Token` 和 `User Id` - -### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot - -1. **【告警通知】->【新增接收人】 ->【选择 Telegram 机器人通知方式】->【设置机器人Token和UserId】-> 【确定】** - -![email](/img/docs/help/telegram-bot-2.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Telegram 机器人通知常见问题 - -1. Telegram 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 -> UserId 应为消息接收对象的UserId - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold.md deleted file mode 100644 index 42a711c5916..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_threshold -title: 阈值告警配置 -sidebar_label: 阈值告警配置 ---- - -> 对监控指标配置告警阈值(警告告警,严重告警,紧急告警),系统根据阈值配置和采集指标数据计算触发告警。 - -### 操作步骤 - -1. **【告警配置】->【新增阈值】-> 【配置后确定】** - -![threshold](/img/docs/help/alert-threshold-1.png) - -如上图: - -**指标对象**:选择我们需要配置阈值的监控指标对象 例如:网站监控类型下的 -> summary指标集合下的 -> responseTime响应时间指标 -**阈值触发表达式**:根据此表达式来计算判断是否触发阈值,表达式环境变量和操作符见页面提示,例如:设置响应时间大于50触发告警,表达式为 `responseTime > 50`。阈值表达式详细帮助见 [阈值表达式帮助](alert_threshold_expr) -**告警级别**:触发阈值的告警级别,从低到高依次为:警告-warning,严重-critical,紧急-emergency -**触发次数**:设置触发阈值多少次之后才会真正的触发告警 -**通知模版**:告警触发后发送的通知信息模版,模版环境变量见页面提示,例如:`${app}.${metrics}.${metric}指标的值为${responseTime},大于50触发告警` -**全局默认**: 设置此阈值是否对全局的此类指标都应用有效,默认否。新增阈值后还需将阈值与监控对象关联,这样阈值才会对此监控生效。 -**启用告警**:此告警阈值配置开启生效或关闭 - -2. ** 阈值关联监控⚠️ 【告警配置】-> 【将刚设置的阈值】-> 【配置关联监控】-> 【配置后确定】** - -> ** 注意⚠️ 新增阈值后还需将阈值与监控对象关联(即设置此阈值对哪些监控有效),这样阈值才会对此监控生效 **。 - -![threshold](/img/docs/help/alert-threshold-2.png) - -![threshold](/img/docs/help/alert-threshold-3.png) - -**阈值告警配置完毕,已经被成功触发的告警信息可以在【告警中心】看到。** -**若需要将告警信息邮件,微信,钉钉飞书通知给相关人员,可以在【告警通知】配置。** - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold_expr.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold_expr.md deleted file mode 100644 index 14fbcdb13dc..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_threshold_expr.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -id: alert_threshold_expr -title: 阈值触发表达式 -sidebar_label: 阈值触发表达式 ---- - -> 在我们配置阈值告警时,需要配置阈值触发表达式,系统根据表达式和监控指标值计算触发是否告警,这里详细介绍下表达式使用。 - -#### 表达式支持的操作符 - -``` -equals(str1,str2) -== -< -<= -> ->= -!= -( ) -+ -- -&& -|| -``` - -丰富的操作符让我们可以很自由的定义表达式。 -注意⚠️ 字符串的相等请用 `equals(str1,str2)` 数字类型的相等判断请用== 或 != - -#### 表达式函数库列表 - -参考: https://www.yuque.com/boyan-avfmj/aviatorscript/ashevw - -#### 支持的环境变量 -> 环境变量即指标值等支持的变量,用于在表达式中,阈值计算判断时会将变量替换成实际值进行计算 - -非固定环境变量:这些变量会根据我们选择的监控指标对象而动态变化,例如我们选择了**网站监控的响应时间指标**,则环境变量就有 `responseTime - 此为响应时间变量` -如果我们想设置**网站监控的响应时间大于400时**触发告警,则表达式为 `responseTime>400` - -固定环境变量(不常用):`instance : 所属行实例值` -此变量主要用于计算多实例时,比如采集到c盘d盘的`usage`(`usage为非固定环境变量`),我们只想设置**c盘的usage大于80**时告警,则表达式为 `equals(instance,"c")&&usage>80` - -#### 表达式设置案例 - -1. 网站监控->响应时间大于等于400ms时触发告警 -`responseTime>=400` -2. API监控->响应时间大于3000ms时触发告警 -`responseTime>3000` -3. 全站监控->URL(instance)路径为 `https://baidu.com/book/3` 的响应时间大于200ms时触发告警 -`equals(instance,"https://baidu.com/book/3")&&responseTime>200` -4. MYSQL监控->status指标->threads_running(运行线程数)指标大于7时触发告警 -`threads_running>7` - -若遇到问题可以通过交流群ISSUE交流反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_webhook.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_webhook.md deleted file mode 100644 index 2f1b5ff36ac..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_webhook.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: alert_webhook -title: 告警 Webhook 回调通知 -sidebar_label: 告警 Webhook 回调通知 -keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 - -## 操作步骤 - -1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** - -![email](/img/docs/help/alert-notice-5.png) - -2. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - -### WebHook回调POST请求体BODY内容 - -内容格式:JSON -```json -{ - "id":76456, - "target":"available", - "alertDefineId":232, - "priority":0, - "content":"监控紧急可用性告警: UN_CONNECTABLE", - "tag": { - "monitorId": 3543534545, - "monitorName":"API_poetry.didi.top" - }, - "status":0, - "times":1, - "gmtCreate":"2022-02-25T13:32:13", - "gmtUpdate":"2022-02-25T13:32:13" -} -``` - -| | | -|-----|-----| -| id | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| alertDefineId integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| firstTriggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| lastTriggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 最近告警触发时间(毫秒时间戳) | -| nextEvalInterval | integer($int64) title: Alarm evaluation interval (milliseconds) 告警评估时间间隔(单位毫秒) | -| tags | example: {key1:value1} | -| gmtCreate | string($date-time) title: Record the latest creation time (timestamp in milliseconds) 记录最新创建时间(毫秒时间戳) | -| gmtUpdate |string($date-time) title: Record modify time(毫秒时间戳) | - -### webhook通知常见问题 - -1. WebHook回调未生效 -> 请查看告警中心是否已经产生此条告警信息 -> 请排查配置的WebHook回调地址是否正确 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_wework.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_wework.md deleted file mode 100644 index ce73c131d00..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/alert_wework.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_wework -title: 告警企业微信通知 -sidebar_label: 告警企业微信通知 -keywords: [告警企业微信通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 - -### 操作步骤 - -1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** - -![email](/img/docs/help/alert-notice-6.jpg) - -2. **【保存机器人的WebHook地址的KEY值】** - -> 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** - -![email](/img/docs/help/alert-notice-7.png) - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 企业微信机器人通知常见问题 - -1. 企业微信群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/api.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/api.md deleted file mode 100644 index 0714499be71..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/api.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: api -title: 监控:HTTP API -sidebar_label: HTTP API -keywords: [开源监控系统, 开源网站监控, HTTP API监控] ---- - -> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | -| 密码 | 接口Basic认证或Digest认证时使用的密码 | -| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | -| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/centos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/centos.md deleted file mode 100644 index 03c514bc7b8..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/centos.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: centos -title: 监控:CentOS操作系统监控 -sidebar_label: CentOS操作系统 -keywords: [开源监控系统, 开源操作系统监控, CentOS操作系统监控] ---- - -> 对CentOS操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dm.md deleted file mode 100644 index cdd9f6f6ee5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dm.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: dm -title: 监控:达梦数据库监控 -sidebar_label: 达梦数据库 -keywords: [开源监控系统, 开源数据库监控, 达梦数据库监控] ---- - -> 对DM达梦数据库的通用性能指标进行采集监控。支持DM8+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5236。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------------ | -| PORT_NUM | 无 | 数据库暴露服务端口 | -| CTL_PATH | 无 | 控制文件路径 | -| MAX_SESSIONS | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| status$ | 无 | DM数据库的开闭状态 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | ---------------------------------------------- | -| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | -| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | -| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/docker.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/docker.md deleted file mode 100644 index 132dddc6aeb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/docker.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: docker -title: 监控:Docker 监控 -sidebar_label: Docker 容器监控 -keywords: [开源监控系统, 开源容器监控, Docker容器监控] ---- - -> 对Docker容器的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要监控 `Docker` 中的容器信息,则需要按照一下步骤打开端口,让采集请求获取到对应的信息。 - -**1、编辑docker.server文件:** - -```shell -vi /usr/lib/systemd/system/docker.service -``` - -找到 **[Service]** 节点,修改 ExecStart 属性,增加 `-H tcp://0.0.0.0:2375` - -```shell -ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -``` - -这样相当于对外开放的是 **2375** 端口,当然也可以根据自己情况修改成其他的。 - -**2、重新加载Docker配置生效:** - -```shell -systemctl daemon-reload -systemctl restart docker -``` - -**注意:记得在服务器中台打开 `2375` 端口号。** - -**3、如果上述方法不行则:** - -在服务器内部打开 `2375` 端口号。 - -```shell -firewall-cmd --zone=public --add-port=2375/tcp --permanent -firewall-cmd --reload -``` - - - - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为2375。 | -| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 器名称 | 一般是监控所有运行中的容器信息。 | -| 用户名 | 连接用户名,可选 | -| 密码 | 连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | -------------------------------------- | -| Name | 无 | 服务器名称 | -| version | 无 | docker本版号 | -| os | 无 | 服务器版本 例如:linux x86_64 | -| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | -| containers | 无 | 容器总数(在运行+未运行) | -| containers_running | 无 | 运行中的容器数目 | -| containers_paused | 无 | 暂停中的容器数目 | -| images | 无 | 容器景象的总数目。 | -| ncpu | 无 | NCPU | -| mem_total | MB | 占用的内存总大小 | -| system_time | 无 | 系统时间 | - -#### 指标集合:containers - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| id | 无 | Docker中容器的ID | -| name | 无 | Docker容器中的容器名称 | -| image | 无 | Docker容器使用的镜像 | -| command | 无 | Docker中的默认启动命令 | -| state | 无 | Docker中容器的运行状态 | -| status | 无 | Docker容器中的更新时间 | - -#### 指标集合:stats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ---------------------------- | -| name | 无 | Docker容器中的名字 | -| available_memory | MB | Docker容器可以利用的内存大小 | -| used_memory | MB | Docker容器已经使用的内存大小 | -| memory_usage | 无 | Docker容器的内存使用率 | -| cpu_delta | 无 | Docker容器已经使用的CPU数量 | -| number_cpus | 无 | Docker容器可以使用的CPU数量 | -| cpu_usage | 无 | Docker容器CPU使用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dynamic_tp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dynamic_tp.md deleted file mode 100644 index e3e143c17ed..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/dynamic_tp.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: dynamic_tp -title: 监控:DynamicTp 线程池监控 -sidebar_label: DynamicTp线程池监控 -keywords: [开源监控系统, 开源中间件监控, DynamicTp线程池监控] ---- - -> 对DynamicTp actuator 暴露的线程池性能指标进行采集监控。 - -### 前提 - -1. 集成使用 `DynamicTp` - -`DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 - -集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) - -2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4 GB", - "totalMemory": "444 MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81 GB" - } -] -``` - -3. 在HertzBeat中间件监控下添加DynamicTp监控即可 - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | - | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:thread_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------------------| -| pool_name | 无 | 线程池名称 | -| core_pool_size | 无 | 核心线程数 | -| maximum_pool_size | 无 | 最大线程数 | -| queue_type | 无 | 任务队列类型 | -| queue_capacity | MB | 任务队列容量 | -| queue_size | 无 | 任务队列当前占用大小 | -| fair | 无 | 队列模式,SynchronousQueue会用到 | -| queue_remaining_capacity | MB | 任务队列剩余大小 | -| active_count | 无 | 活跃线程数 | -| task_count | 无 | 任务总数 | -| completed_task_count | 无 | 已完成任务数 | -| largest_pool_size | 无 | 历史最大线程数 | -| pool_size | 无 | 当前线程数 | -| wait_task_count | 无 | 等待执行任务数 | -| reject_count | 无 | 拒绝任务数 | -| reject_handler_name | 无 | 拒绝策略类型 | -| dynamic | 无 | 是否动态线程池 | -| run_timeout_count | 无 | 运行超时任务数 | -| queue_timeout_count | 无 | 等待超时任务数 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/fullsite.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/fullsite.md deleted file mode 100644 index f7fc4c150b7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/fullsite.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: fullsite -title: 监控:全站监控 -sidebar_label: 全站监控 -keywords: [开源监控系统, 开源网站监控, SiteMap监控] ---- - -> 对网站的全部页面监测是否可用 -> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 -> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| url | 无 | 网页的URL路径 | -| statusCode | 无 | 请求此网页的响应HTTP状态码 | -| responseTime | ms毫秒 | 网站响应时间 | -| errorMsg | 无 | 请求此网站反馈的错误信息 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/guide.md deleted file mode 100644 index 7d177cfe868..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/guide.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: guide -title: 帮助中心 -sidebar_label: 帮助入门 ---- - -> 易用友好的实时监控工具,无需Agent,强大自定义监控能力。 -> 使用过程中的帮助文档,辅助信息。 - -## 🔬 监控服务 - -> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 -> 规划的监控类型:应用服务,数据库,操作系统,云原生,开源中间件 - -### 应用服务监控 - -  👉 [网站监测](website)
-  👉 [HTTP API](api)
-  👉 [PING连通性](ping)
-  👉 [端口可用性](port)
-  👉 [全站监控](fullsite)
-  👉 [SSL证书有效期](ssl_cert)
-  👉 [JVM虚拟机](jvm)
-  👉 [SpringBoot2.0](springboot2)
- -### 数据库监控 - -  👉 [MYSQL数据库监控](mysql)
-  👉 [MariaDB数据库监控](mariadb)
-  👉 [PostgreSQL数据库监控](postgresql)
-  👉 [SqlServer数据库监控](sqlserver)
-  👉 [Oracle数据库监控](oracle)
-  👉 [达梦数据库监控](dm)
-  👉 [OpenGauss数据库监控](opengauss)
-  👉 [IoTDB数据库监控](iotdb)
- -### 操作系统监控 - -  👉 [Linux操作系统监控](linux)
-  👉 [Windows操作系统监控](windows)
-  👉 [Ubuntu操作系统监控](ubuntu)
-  👉 [Centos操作系统监控](centos)
- -### 中间件监控 - -  👉 [Zookeeper](zookeeper)
-  👉 [Kafka](kafka)
-  👉 [Tomcat](tomcat)
-  👉 [ShenYu](shenyu)
-  👉 [DynamicTp](dynamic_tp)
-  👉 [RabbitMQ](rabbitmq)
-  👉 [ActiveMQ](activemq)
-  👉 [Jetty](jetty)
- -### 云原生监控 - -  👉 [Docker](docker)
-  👉 [Kubernetes](kubernetes)
- -## 💡 告警服务 - -> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 -> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 - -### 告警中心 - -> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 - -### 告警配置 - -> 指标阈值配置,提供表达式形式的指标阈值配置,可设置告警级别,触发次数,告警通知模版和是否启用,关联监控等功能。 - -详见 👉 [阈值告警](alert_threshold)
-   👉 [阈值表达式](alert_threshold_expr) - -### 告警通知 - -> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 -> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 -> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。 - - - 👉 [配置邮箱通知](alert_email)
- 👉 [配置 Webhook 通知](alert_webhook)
- 👉 [配置 Telegram 通知](alert_telegram)
- 👉 [配置 Discord 通知](alert_discord)
- 👉 [配置 Slack 通知](alert_slack)
- 👉 [配置企业微信机器人通知](alert_wework)
- 👉 [配置钉钉机器人通知](alert_dingtalk)
- 👉 [配置飞书机器人通知](alert_feishu)
- 👉 [配置华为云SMN通知](alert_smn)
diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/hadoop.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/hadoop.md deleted file mode 100644 index fec361e2366..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/hadoop.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -id: hadoop -title: 监控:Hadoop -sidebar_label: Hadoop -keywords: [开源监控系统, 开源JAVA监控, Hadoop的JVM虚拟机监控] ---- - -> 对Hadoop的JVM虚拟机的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 Hadoop 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对Hadoop中的 JVM 进行指标采集。 - -#### Hadoop应用开启JMX协议步骤 - -应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP - -- 1.进入hadoop-env.sh配置文件,在命令行终端输入以下命令: - -```shell -vi $HADOOP_HOME/etc/hadoop/hadoop-env.sh -``` - -- 2.添加如下参数,`` 为自定义暴露端口号。 - -```shell -export HADOOP_OPTS= "$HADOOP_OPTS --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false " -``` - -- 3.保存并退出,并在 $HADOOP_HOME/sbin 目录下执行 `start-all.sh` 重启服务。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache (限JDK8及以下) - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/iotdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/iotdb.md deleted file mode 100644 index 0f0dc0e0ecb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/iotdb.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: iotdb -title: 监控 Apache IoTDB 物联网时序数据库 -sidebar_label: IoTDB数据库 -keywords: [开源监控系统, 开源数据库监控, IoTDB数据库监控] ---- - -> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 - -## 监控前操作 - -您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 - -开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) - -主要如下步骤: - -1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server - -``` -# 是否启动监控模块,默认为false -enableMetric: true - -# 是否启用操作延迟统计 -enablePerformanceStat: false - -# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 -metricReporterList: - - JMX - - PROMETHEUS - -# 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. 重启 IoTDB, 打开浏览器或者用curl 访问 http://ip:9091/metrics, 就能看到metric数据了。 - -3. 在 HertzBeat 添加对应 IoTDB 监控即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|--------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | IoTDB指标接口对外提供的端口,默认为9091。 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:cluster_node_status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- |------|-------------------------| -| name | 无 | 节点名称IP | -| status | 无 | 节点状态,1=online 2=offline | - -#### 指标集合:jvm_memory_committed_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|------------------| -| area | 无 | heap内存或nonheap内存 | -| id | 无 | 内存区块 | -| value | MB | 当前向JVM申请的内存大小 | - -#### 指标集合:jvm_memory_used_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | heap内存或nonheap内存 | -| id | 无 | 内存区块 | -| value | MB | JVM已使用内存大小 | - -#### 指标集合:jvm_threads_states_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------| -| state | 无 | 线程状态 | -| count | 无 | 线程状态对应线程数量 | - -#### 指标集合:quantity 业务数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--|------|----------------| -| name | 无 | 业务名称 timeSeries/storageGroup/device/deviceUsingTemplate | -| type | 无 | 类型 total/normal/template/template | -| value | 无 | 当前时间timeSeries/storageGroup/device/激活了模板的device的数量 | - -#### 指标集合:cache_hit 缓存 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------------------------------------------| -| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | - -#### 指标集合:queue 任务队列 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|---------------------------------------------------| -| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | -| status | 无 | 状态 running/waiting | -| value | 无 | 当前时间任务数 | - -#### 指标集合:thrift_connections - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-------------| -| name | 无 | 名称 | -| connection | 无 | thrift当前连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/issue.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/issue.md deleted file mode 100644 index 49577b2a1b7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/issue.md +++ /dev/null @@ -1,61 +0,0 @@ ---- -id: issue -title: 常见问题 -sidebar_label: 常见问题 ---- - -### 监控常见问题 - -1. ** 页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名 ** -> 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http - -2. ** 网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK ** -> 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) - -3. 安装包部署的hertzbeat下ping连通性监控异常 -安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 - -4. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖服务TDengine时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - TDengine数据库 -> 安装初始化此数据库参考 [TDengine安装初始化](../start/tdengine-init) - -5. 配置了k8s监控,但是实际监控时间并未按照正确间隔时间执行 -请参考下面几点排查问题: -> 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 -> 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 -> 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine -6.配置http api监控,用于进行业务接口探测,确保业务可以用,另外接口有进行token鉴权校验,"Authorization:Bearer eyJhbGciOiJIUzI1....",配置后测试,提示“StatusCode 401”。服务端应用收到的token为"Authorization:Bearer%20eyJhbGciOiJIUzI1....",hertzbeat对空格进行转义为“%20”,服务器没有转义导致鉴权失败,建议转义功能作为可选项。 - - -### Docker部署常见问题 - -1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` - -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -### 安装包部署常见问题 - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jetty.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jetty.md deleted file mode 100644 index 04a15823529..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jetty.md +++ /dev/null @@ -1,98 +0,0 @@ ---- -id: jetty -title: 监控:Jetty应用服务器 -sidebar_label: Jetty应用服务器 -keywords: [开源监控系统, 开源中间件监控, Jetty应用服务器监控] ---- - -> 对Jetty应用服务器的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 JVM 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 JVM 进行指标采集。 - -#### Jetty应用服务器开启JMX协议步骤 - -[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. 在 Jetty 启动 JMX JMX-REMOTE 模块 - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 - -2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 - -**`localhost` 需修改为对外暴露 IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` - -3. 重启 Jetty Server 即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jvm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jvm.md deleted file mode 100644 index c97cc73b003..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/jvm.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -id: jvm -title: 监控:JVM虚拟机监控 -sidebar_label: JVM虚拟机 -keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] ---- - -> 对JVM虚拟机的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 JVM 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 JVM 进行指标采集。 - -#### JVM应用开启JMX协议步骤 - -应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP - -参考文档: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote - -```shell --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false -``` - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache (限JDK8及以下) - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kafka.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kafka.md deleted file mode 100644 index a1028aa1298..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kafka.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: kafka -title: 监控:Kafka监控 -sidebar_label: Kafka监控 -keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] ---- - -> 对Kafka的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 Kafka 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 Kafka 进行指标采集。 - -1. 安装部署 Kafka 服务 - -2. 修改 Kafka 启动脚本 - -修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` -在倒数第二行添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 - -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# 这是最后一行本来就存在的 -# exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` - -3. 重启 Kafka 服务 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:server_info - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Version | 无 | Kafka版本 | -| StartTimeMs | ms | 运行时间 | -| CommitId | 无 | 版本提交ID | - - -#### 指标集合:code_cache - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:active_controller_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 活跃监控器数量 | - - - -#### 指标集合:broker_partition_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 分区数量 | - -#### 指标集合:broker_leader_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 领导者数量 | - - -#### 指标集合:broker_handler_avg_percent 请求处理器空闲率 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| EventType | 无 | 类型 | -| RateUnit | 具体情况具体分析 | 单位 | -| Count | 个 | 数量 | -| OneMinuteRate | % | 一分钟处理率 | -| FiveMinuteRate | % | 五分钟处理率 | -| MeanRate | 无 | 平均处理率 | -| FifteenMinuteRate | 无 | 十五分钟处理率 | - - -> 其他指标见文知意,欢迎贡献一起优化文档。 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kubernetes.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kubernetes.md deleted file mode 100644 index f45da8d9b27..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/kubernetes.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: kubernetes -title: 监控:Kubernetes 监控 -sidebar_label: Kubernetes 监控 -keywords: [开源监控系统, 开源Kubernetes监控] ---- - -> 对kubernetes的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要监控 `Kubernetes` 中的信息,则需要获取到可访问Api Server的授权TOKEN,让采集请求获取到对应的信息。 - -参考获取token步骤 - -#### 方式一: - -1. 创建service account并绑定默认cluster-admin管理员集群角色 - -```kubectl create serviceaccount dashboard-admin -n kube-system``` - -2. 用户授权 - -```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` -#### 方式二: -``` -kubectl create serviceaccount cluster-admin - -kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin - -kubectl create token --duration=1000h cluster-admin - -``` -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| APiServer端口 | K8s APiServer端口,默认6443 | -| token | 授权Access Token | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:nodes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------| -| node_name | 无 | 节点名称 | -| is_ready | 无 | 节点状态 | -| capacity_cpu | 无 | CPU容量 | -| allocatable_cpu | 无 | 已分配CPU | -| capacity_memory | 无 | 内存容量 | -| allocatable_memory | 无 | 已分配内存 | -| creation_time | 无 | 节点创建时间 | - -#### 指标集合:namespaces - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- |-------------| -| namespace | 无 | namespace名称 | -| status | 无 | 状态 | -| creation_time | 无 | 创建时间 | - -#### 指标集合:pods - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- |----------------| -| pod | 无 | pod名称 | -| namespace | 无 | pod所属namespace | -| status | 无 | pod状态 | -| restart | 无 | 重启次数 | -| host_ip | 无 | 所在主机IP | -| pod_ip | 无 | pod ip | -| creation_time | 无 | pod创建时间 | -| start_time | 无 | pod启动时间 | - -#### 指标集合:services - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------------------------------------------| -| service | 无 | service名称 | -| namespace | 无 | service所属namespace | -| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | 无 | cluster ip | -| selector | 无 | tag selector匹配 | -| creation_time | 无 | 创建时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/linux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/linux.md deleted file mode 100644 index 853be6610b4..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/linux.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: linux -title: 监控:Linux操作系统监控 -sidebar_label: Linux操作系统 -keywords: [开源监控系统, 开源操作系统监控, Linux操作系统监控] ---- - -> 对Linux操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mariadb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mariadb.md deleted file mode 100644 index 5fd59466717..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mariadb.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mariadb -title: 监控:MariaDB数据库监控 -sidebar_label: MariaDB数据库 -keywords: [开源监控系统, 开源数据库监控, MariaDB数据库监控] ---- - -> 对MariaDB数据库的通用性能指标进行采集监控。支持MariaDB5+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MariaDB已经创建的总连接数 | -| threads_connected | 无 | MariaDB已经连接的连接数 | -| threads_cached | 无 | MariaDB当前缓存的连接数 | -| threads_running | 无 | MariaDB当前活跃的连接数 | - - -#### 指标集合:innodb - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mysql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mysql.md deleted file mode 100644 index dc23f3d6fa5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/mysql.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mysql -title: 监控:MYSQL数据库监控 -sidebar_label: MYSQL数据库 -keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] ---- - -> 对MYSQL数据库的通用性能指标进行采集监控。支持MYSQL5+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MySql已经创建的总连接数 | -| threads_connected | 无 | MySql已经连接的连接数 | -| threads_cached | 无 | MySql当前缓存的连接数 | -| threads_running | 无 | MySql当前活跃的连接数 | - - -#### 指标集合:innodb - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/opengauss.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/opengauss.md deleted file mode 100644 index 632a7f41b2d..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/opengauss.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: opengauss -title: 监控:OpenGauss数据库监控 -sidebar_label: OpenGauss数据库 -keywords: [开源监控系统, 开源数据库监控, OpenGauss数据库监控] ---- - -> 对PostgreSQL数据库的通用性能指标进行采集监控。支持PostgreSQL 10+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | - -#### 指标集合:state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - - -#### 指标集合:activity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/oracle.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/oracle.md deleted file mode 100644 index 49136e51c48..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/oracle.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: oracle -title: 监控:ORACLE数据库监控 -sidebar_label: ORACLE数据库 -keywords: [开源监控系统, 开源数据库监控, Oracle数据库监控] ---- - -> 对ORACLE数据库的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1521。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_version | 无 | 数据库版本 | -| database_type | 无 | 数据库类型 | -| hostname | 无 | 主机名称 | -| instance_name | 无 | 数据库实例名称 | -| startup_time | 无 | 数据库启动时间 | -| status | 无 | 数据库状态 | - -#### 指标集合:tablespace - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| file_id | 无 | 文件ID | -| file_name | 无 | 文件名称 | -| tablespace_name | 无 | 所属表空间名称 | -| status | 无 | 状态 | -| bytes | MB | 大小 | -| blocks | 无 | 区块数量 | - -#### 指标集合:user_connect - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| username | 无 | 用户名 | -| counts | 个数 | 当前连接数量 | - -#### 指标集合:performance - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per Second 每秒IO请求数量 | -| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | -| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ping.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ping.md deleted file mode 100644 index 9427c97439c..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ping.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -id: ping -title: 监控:PING连通性 -sidebar_label: PING连通性 -keywords: [开源监控系统, 开源网络监控, 网络PING监控] ---- - -> 对对端HOST地址进行PING操作,判断其连通性 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/port.md deleted file mode 100644 index b89fde24a81..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/port.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: port -title: 监控:端口可用性 -sidebar_label: 端口可用性 -keywords: [开源监控系统, 开源网络监控, 端口可用性监控] ---- - -> 判断对端服务暴露端口是否可用,进而判断对端服务是否可用,采集响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/postgresql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/postgresql.md deleted file mode 100644 index 4716d0e2e64..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/postgresql.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: postgresql -title: 监控:PostgreSQL数据库监控 -sidebar_label: PostgreSQL数据库 -keywords: [开源监控系统, 开源数据库监控, PostgreSQL数据库监控] ---- - -> 对PostgreSQL数据库的通用性能指标进行采集监控。支持PostgreSQL 10+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | - -#### 指标集合:state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - - -#### 指标集合:activity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/rabbitmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/rabbitmq.md deleted file mode 100644 index 8cb91eeb3e6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/rabbitmq.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -id: rabbitmq -title: 监控 RabbitMQ 消息中间件 -sidebar_label: RabbitMQ消息中间件 -keywords: [开源监控系统, 开源消息中间件监控, RabbitMQ消息中间件监控] ---- - -> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 - -### 监控前操作 - -> HertzBeat 使用 RabbitMQ Management 的 Rest Api 对 RabbitMQ 进行指标数据采集。 -> 故需要您的 RabbitMQ 环境开启 Management 插件 - -1. 开启 Management 插件,或使用自开启版本 - -```shell -rabbitmq-plugins enable rabbitmq_management -``` - -2. 浏览器访问 http://ip:15672/ ,默认账户密码 `guest/guest`. 成功登录即开启成功。 - -3. 在 HertzBeat 添加对应 RabbitMQ 监控即可,参数使用 Management 的 IP 端口,默认账户密码。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|----------|---------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | -| 用户名 | 接口Basic认证时使用的用户名 | -| 密码 | 接口Basic认证时使用的密码 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:overview - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------| -| product_version | 无 | 产品版本 | -| product_name | 无 | 产品名称 | -| rabbitmq_version | 无 | rabbitmq 版本 | -| management_version | 无 | rabbitmq management 插件版本 | -| erlang_version | 无 | erlang 版本 | -| cluster_name | 无 | 集群名称 | -| rates_mode | 无 | rates模式 | - -#### 指标集合:object_totals - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------|------|-----------------| -| channels | 无 | channels的总数量 | -| connections | 无 | connections的总数量 | -| consumers | 无 | consumers的总数量 | -| exchanges | 无 | exchanges的总数量 | -| queues | 无 | queues的总数量 | - -#### 指标集合:nodes - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------------| -| name | 无 | The node name | -| type | 无 | The node type | -| running | 无 | Running state | -| os_pid | 无 | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | 无 | File descriptors available | -| fd_used | 无 | File descriptors used | -| sockets_total | 无 | Sockets available | -| sockets_used | 无 | Sockets used | -| proc_total | 无 | Erlang process limit | -| proc_used | 无 | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | 无 | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | 无 | Context_switches num | -| io_read_count | 无 | 总共读操作的数量 | -| io_read_bytes | KB | 总共读入磁盘数据大小 | -| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | -| io_write_count | 无 | 磁盘写操作总量 | -| io_write_bytes | KB | 写入磁盘数据总量 | -| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | -| io_seek_count | 无 | seek操作总量 | -| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | -| io_sync_count | 无 | fsync操作的总量 | -| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | -| connection_created | 无 | connection created num | -| connection_closed | 无 | connection closed num | -| channel_created | 无 | channel created num | -| channel_closed | 无 | channel closed num | -| queue_declared | 无 | queue declared num | -| queue_created | 无 | queue created num | -| queue_deleted | 无 | queue deleted num | -| connection_closed | 无 | connection closed num | - - -#### 指标集合:queues - -| 指标名称 | 指标单位 | 指标帮助描述 | -|------------------------------|------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | -| node | 无 | The queue on the node name | -| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | -| type | 无 | Queue type, one of: quorum, stream, classic. | -| vhost | 无 | vhost path | -| auto_delete | 无 | Whether the queue will be deleted automatically when no longer used | -| policy | 无 | Effective policy name for the queue. | -| consumers | 无 | Number of consumers. | -| memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | -| messages_ready | 无 | Number of messages ready to be delivered to clients | -| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | -| messages | 无 | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | -| messages_persistent | 无 | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | -| message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | -| message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | -| message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/redis.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/redis.md deleted file mode 100644 index dd9b304e1ce..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/redis.md +++ /dev/null @@ -1,245 +0,0 @@ ---- -id: redis -title: 监控:REDIS数据库监控 -sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] ---- - -> 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:server - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - - -#### 指标集合:clients - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - - -#### 指标集合:memory - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - - -#### 指标集合:persistence - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - - -#### 指标集合:stats - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - - -#### 指标集合:replication - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | - -#### 指标集合:errorstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | - -#### 指标集合:cluster - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - - -#### 指标集合:commandstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/shenyu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/shenyu.md deleted file mode 100644 index 08788efeaae..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/shenyu.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -id: shenyu -title: 监控 Apache ShenYu API网关 -sidebar_label: ShenYu网关监控 -keywords: [开源监控系统, 开源消息中间件监控, ShenYu网关监控监控] ---- - -> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 - -## 监控前操作 - -您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 - -开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) - -主要如下两步骤: - -1. 在网关的 pom.xml 文件中添加 metrics 的依赖。 - -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` - -2. 在网关的配置yaml文件中编辑如下内容: - -```yaml -shenyu: - metrics: - enabled: true #设置为 true 表示开启 - name : prometheus - host: 127.0.0.1 #暴露的ip - port: 8090 #暴露的端口 - jmxConfig: #jmx配置 - props: - jvm_enabled: true #开启jvm的监控指标 -``` - -最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|--------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网关指标接口对外提供的端口,默认为8090。 | -| 超时时间 | HTTP请求响应超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:shenyu_request_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------------| -| value | 无 | 收集ShenYu网关的所有请求数量 | - -#### 指标集合:shenyu_request_throw_created - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------------| -| value | 无 | 收集ShenYu网关的异常请求数量 | - -#### 指标集合:process_cpu_seconds_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| value | 无 | 用户和系统CPU总计所用的秒数 | - -#### 指标集合:process_open_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------| -| value | 无 | 打开的文件描述符的数量 | - -#### 指标集合:process_max_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------| -| value | 无 | 打开的文件描述符的最大数量 | - -#### 指标集合:jvm_info - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-----------| -| runtime | 无 | JVM 版本信息 | -| vendor | 无 | JVM 版本信息 | -| version | 无 | JVM 版本信息 | - -#### 指标集合:jvm_memory_bytes_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | JVM 内存区域 | -| value | MB | 给定 JVM 内存区域的已用大小 | - -#### 指标集合:jvm_memory_pool_bytes_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-----------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已用大小 | - -#### 指标集合:jvm_memory_pool_bytes_committed - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已提交大小 | - -#### 指标集合:jvm_memory_pool_bytes_max - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------| ----------- | -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的最大大小 | - -#### 指标集合:jvm_threads_state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------| -| state | 无 | 线程状态 | -| value | 无 | 对应线程状态的线程数量 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/springboot2.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/springboot2.md deleted file mode 100644 index 84318e29d1b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/springboot2.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -id: springboot2 -title: 监控:SpringBoot2.0 监控 -sidebar_label: SpringBoot2.0 监控 -keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控] ---- - -> 对SpringBoot2.0 actuator 暴露的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要通过此监控类型监控 `SpringBoot` 中的信息,则需要您的SpringBoot应用集成并开启SpringBoot Actuator。 - -**1、添加POM.XML依赖:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2、修改YML配置暴露指标接口:** - -```yaml -management: - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:health - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------------------------------| -| status | 无 | 服务健康状态: UP,Down | - -#### 指标集合:environment - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------| -------- |----------------------------| -| profile | 无 | 应用运行profile: prod,dev,test | -| port | 无 | 应用暴露端口 | -| os | 无 | 运行所在操作系统 | -| os_arch | 无 | 运行所在操作系统架构 | -| jdk_vendor | 无 | jdk vendor | -| jvm_version | 无 | jvm version | - -#### 指标集合:threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------| -| state | 无 | 线程状态 | -| number | 无 | 此线程状态对应的线程数量 | - -#### 指标集合:memory_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------| -| space | 无 | 内存空间名称 | -| mem_used | MB | 此空间占用内存大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/sqlserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/sqlserver.md deleted file mode 100644 index 5dc66e27cfc..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/sqlserver.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -id: sqlserver -title: 监控:SqlServer数据库监控 -sidebar_label: SqlServer数据库 -keywords: [开源监控系统, 开源数据库监控, SqlServer数据库监控] ---- - -> 对SqlServer数据库的通用性能指标进行采集监控。支持SqlServer 2017+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1433。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | -| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | -| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | -| edition | 无 | 已安装的 实例的产品SQL Server版本 | -| start_time | 无 | 数据库启动时间 | - -#### 指标集合:performance_counters - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | -| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | -| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | -| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | -| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | -| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | - - -#### 指标集合:connection - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| user_connection | 无 | 已连接的会话数 | - - -### 常见问题 - -1. SSL连接问题修复 - -jdk版本:jdk11 -问题描述:SQL Server2019使用SA用户连接报错 -错误信息: -```text -The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxx -``` -问题截图: -![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) - -解决方案: -添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 - -样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` - -参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ssl_cert.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ssl_cert.md deleted file mode 100644 index d5f23f56ff6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ssl_cert.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: ssl_cert -title: 监控:SSL证书监控 -sidebar_label: SSL证书监控 -keywords: [开源监控系统, 开源网站监控, SSL证书监控监控] ---- - -> 对网站的SSL证书过期时间,响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:certificate - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------| -| subject | 无 | 证书名称 | -| expired | 无 | 是否过期 | -| start_time | 无 | 有效期开始时间 | -| start_timestamp | ms毫秒 | 有效期开始时间戳 | -| end_time | 无 | 过期时间 | -| end_timestamp | ms毫秒 | 过期时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/tomcat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/tomcat.md deleted file mode 100644 index c306bebc550..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/tomcat.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: tomcat -title: 监控:Tomcat监控 -sidebar_label: Tomcat监控 -keywords: [开源监控系统, 开源网站监控, Tomcat监控] ---- - -> 对Tomcat的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - -### Tomcat开启JMX协议步骤 - -1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 - -2. vim catalina.sh - -```aidl -CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" -``` - -参考: https://blog.csdn.net/weixin_41924764/article/details/108694239 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ubuntu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ubuntu.md deleted file mode 100644 index e5d1be3a140..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/ubuntu.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: ubuntu -title: 监控:Ubuntu操作系统监控 -sidebar_label: Ubuntu操作系统 -keywords: [开源监控系统, 开源操作系统监控, Ubuntu监控] ---- - -> 对Ubuntu操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/website.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/website.md deleted file mode 100644 index ee8921e316b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/website.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: website -title: 监控:网站监测 -sidebar_label: 网站监测 -keywords: [开源监控系统, 开源网站监控] ---- - -> 对网站是否可用,响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/windows.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/windows.md deleted file mode 100644 index 6a1c79b9ede..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/windows.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: windows -title: 监控:Windows操作系统监控 -sidebar_label: Windows操作系统 -keywords: [开源监控系统, 开源操作系统监控, Windows操作系统监控] ---- - -> 通过SNMP协议对Windows操作系统的通用性能指标进行采集监控。 -> 注意⚠️ Windows服务器需开启SNMP服务 - -参考资料: -[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | -| SNMP 版本 | SNMP协议版本 V1 V2c V3 | -| SNMP 团体字 | SNMP 协议团体名(Community Name),用于实现SNMP网络管理员访问SNMP管理代理时的身份验证。类似于密码,默认值为 public | -| 超时时间 | 协议连接超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 主机名称 | -| descr | 无 | 操作系统描述 | -| uptime | 无 | 系统运行时间 | -| numUsers | 个数 | 当前用户数 | -| services | 个数 | 当前服务数量 | -| processes | 个数 | 当前进程数量 | -| responseTime | ms | 采集响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/zookeeper.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/zookeeper.md deleted file mode 100644 index 0783ceaf3fb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/help/zookeeper.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -id: zookeeper -title: 监控:Zookeeper监控 -sidebar_label: Zookeeper监控 -keywords: [开源监控系统, Zookeeper监控监控] ---- - -> 对Zookeeper的通用性能指标进行采集监控 - -### 监控前操作 - -> 监控 zookeeper 目前的实现方案使用的是 zookeeper 提供的四字命令 + netcat 来收集指标数据 -> 需要用户自己将zookeeper的四字命令加入白名单 - -1. 加白名单步骤 - -> 1.找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -> -> 2.配置文件中加入以下命令 - -```shell -# 将需要的命令添加到白名单中 -4lw.commands.whitelist=stat, ruok, conf, isro - -# 将所有命令添加到白名单中 -4lw.commands.whitelist=* -``` -> 3.重启服务 - -```shell -zkServer.sh restart -``` - -2. netcat 协议 - -目前实现方案需要我们部署zookeeper的linux服务器,安装netcat的命令环境 - -> netcat安装步骤 -```shell -yum install -y nc -``` - -如果终端显示以下信息则说明安装成功 -```shell -Complete! -``` - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Zookeeper的Linux服务器SSH端口。 | -| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | Zookeeper所在Linux连接用户名 | -| 密码 | Zookeeper所在Linux连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:conf - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| clientPort | 无 | 端口 | -| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | -| dataDirSize | kb | 数据快照文件大小 | -| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | -| dataLogSize | kb | 事务日志文件大小 | -| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | -| minSessionTimeout | ms| 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | -| maxSessionTimeout | ms |最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | -| serverId | 无 | 服务器编号 | - - -#### 指标集合:stats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| zk_version | 无 | 服务器版本 | -| zk_server_state | 无 | 服务器角色 | -| zk_num_alive_connections | 个 | 连接数 | -| zk_avg_latency | ms | 平均延时 | -| zk_outstanding_requests | 个 | 堆积请求数 | -| zk_znode_count | 个 | znode结点数量 | -| zk_packets_sent | 个 | 发包数 | -| zk_packets_received | 个 | 收包数 | -| zk_watch_count | 个 | watch数量 | -| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | -| zk_approximate_data_size | kb | 数据大小 | -| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | -| zk_max_latency | ms | 最大延时 | -| zk_ephemerals_count | 个 | 临时节点数 | -| zk_min_latency | ms | 最小延时 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/introduce.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/introduce.md deleted file mode 100644 index aaf541d1827..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/introduce.md +++ /dev/null @@ -1,95 +0,0 @@ ---- -id: introduce -title: HertzBeat赫兹跳动 -sidebar_label: 介绍 -slug: / ---- - -> 易用友好的开源实时监控告警系统,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警系统。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 易用友好,全 WEB 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -> 更自由化的阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云](https://console.tancloud.cn)**,中小团队和个人无需再为了监控自己的网站资源,而去部署学习一套繁琐的监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - - ----- - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - ----- - -## 🥐 模块 - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** 提供监控管理,系统管理基础服务 -> 提供对监控的管理,监控应用配置的管理,系统用户租户后台管理等。 -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 -> 使用通用协议远程采集获取对端指标数据。 -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 -> 采集指标结果数据管理,数据落盘,查询,计算统计。 -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 -> 告警计算触发,任务状态联动,告警配置,告警通知。 -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 -> 监控告警系统可视化控制台前端(angular+ts+zorro) - -![hertzBeat](https://tancloud.gd2.qingstor.com/img/docs/hertzbeat-arch.svg) - ----- - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -## ⛄ Supported - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contact.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contact.md deleted file mode 100644 index e462dc8d051..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contact.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -id: contact -title: 交流联系 -sidebar_label: 交流联系 ---- -> 如果您在使用过程有任何需要帮助或者想交流建议,可以通过 群 ISSUE 讨论交流。 - -[GITHUB ISSUES](https://github.com/apache/hertzbeat/issues) - -[Chat On Discord](https://discord.gg/Fb6M73htGr) - -[Follow Us Twitter](https://twitter.com/hertzbeat1024) - -**微信交流群** 加微信号 tan-cloud 邀请您进微信群。 - -**QQ交流群** 加QQ群号 630061200 - -##### Github Discussion - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contributing.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contributing.md deleted file mode 100644 index a49aa4830d2..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/contributing.md +++ /dev/null @@ -1,132 +0,0 @@ ---- -id: contributing -title: 贡献者指南 -sidebar_label: 贡献者指南 ---- - -> 非常欢迎参与项目贡献,我们致力于维护一个互相帮助的快乐社区。 - -### 贡献方式 - -> 在 HertzBeat 社区,贡献方式有很多: - -- 💻**代码**:可以帮助社区完成一些任务、编写新的feature或者是修复一些bug; - -- ⚠️**测试**:可以来参与测试代码的编写,包括了单元测试、集成测试、e2e测试; - -- 📖**文档**:可以编写或完善文档,来帮助用户更好地了解和使用 HertzBeat; - -- 📝**博客**:可以撰写 HertzBeat 的相关文章,来帮助社区更好地推广; - -- 🤔**讨论**:可以参与 HertzBeat 新的feature的讨论,将您的想法跟 HertzBeat 融合; - -- 💡**布道**:可以帮助宣传或推广 HertzBeat 社区,在 meetup 或 summit 中演讲; - -- 💬**建议**:也可以对项目或者社区提出一些建议,促进社区的良性发展; - -更多贡献方式参见 [Contribution Types](https://allcontributors.org/docs/en/emoji-key) - -即便是小到错别字的修正我们也都非常欢迎 :) - -### 让 HertzBeat 运行起来 - -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 -> 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 - -- 后端启动 - -1. 需要`maven3+`, `java11`和`lombok`环境 -2. (可选)修改配置文件配置信息-`manager/src/main/resources/application.yml` -3. 启动`springboot manager`服务 `manager/src/main/java/org/apache/hertzbeat/manager/Manager.java` - -- 前端启动 - -1. 需要`nodejs npm angular-cli`环境 -2. 安装yarn `npm install -g yarn` -3. 在前端工程目录web-app下执行 `yarn install` -4. 全局安装angular-cli `npm install -g @angular/cli@14 --registry=https://registry.npm.taobao.org` -5. 待本地后端启动后,在web-app目录下启动本地前端 `ng serve --open` -6. 浏览器访问 localhost:4200 即可开始,默认账号密码 admin/hertzbeat - -### 寻找任务 - -寻找您感兴趣的Issue!在我们的GitHub仓库和邮件列表中,我们经常会发布一些带有 good first issue 或者 status: volunteer wanted 标签的issue,这些issue都欢迎贡献者的帮助。 -其中good first issue往往门槛较低、适合新手。 - -当然,如果您有好的想法,也可以直接在GitHub Discussion 中提出或者联系社区。 - -### 提交 Pull Request - -1. 首先您需要 Fork 目标仓库 [hertzbeat repository](https://github.com/apache/hertzbeat). -2. 然后 用git命令 将代码下载到本地: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` -3. 下载完成后,请参考目标仓库的入门指南或者 README 文件对项目进行初始化。 -4. 接着,您可以参考如下命令进行代码的提交, 切换新的分支, 进行开发: -```shell -git checkout -b a-feature-branch #Recommended -``` -5. 提交 commit , commit 描述信息需要符合约定格式: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` -6. 推送到远程仓库 -```shell -git push origin a-feature-branch -``` -7. 然后您就可以在 GitHub 上发起新的 PR (Pull Request)。 - -请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 - -### 等待PR代码被合并 - -在提交了 PR 后,Committer 或者社区的小伙伴们会对您提交的代码进行审查(Code Review),会提出一些修改建议,或者是进行一些讨论,请及时关注您的PR。 - -若后续需要改动,不需要发起一个新的 PR,在原有的分支上提交 commit 并推送到远程仓库后,PR会自动更新。 - -另外,我们的项目有比较规范和严格的 CI 检查流程,在提交 PR 之后会触发 CI,请注意是否通过 CI 检查。 - -最后,Committer 可以将 PR 合并入DEV主分支。 - -### 代码被合并后 - -在代码被合并后,您就可以在本地和远程仓库删除这个开发分支了: - -```shell -git branch -d a-dev-branch -git push origin --delete a-dev-branch -``` - -在主分支上,您可以执行以下操作来同步上游仓库: - -```shell -git remote add upstream https://github.com/apache/hertzbeat.git #Bind the remote warehouse, if it has been executed, it does not need to be executed again -git checkout master -git pull upstream master -``` - -### 如何成为Committer? - -通过上述步骤,您就是 HertzBeat 的贡献者了。重复前面的步骤,在社区中保持活跃,坚持下去,您就能成为 Committer! - -### 加入讨论交流 - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) - -加微信号 `tan-cloud` 拉您进微信交流群 - - -### 模块 - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** 提供监控管理,系统管理基础服务 -> 提供对监控的管理,监控应用配置的管理,系统用户租户后台管理等。 -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 -> 使用通用协议远程采集获取对端指标数据。 -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 -> 采集指标结果数据管理,数据落盘,查询,计算统计。 -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 -> 告警计算触发,任务状态联动,告警配置,告警通知。 -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 -> 监控告警系统可视化控制台前端 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/design.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/design.md deleted file mode 100644 index 12069809575..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/design.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: design -title: 设计文档 -sidebar_label: 设计文档 ---- - -### HertzBeat架构 - -![architecture](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/docs/hertzbeat-arch.svg) - -### TanCloud架构 - -TanCloud是基于HertzBeat的公网SAAS集群版本,采用多集群,多租户的架构模式。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/developer.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/developer.md deleted file mode 100644 index 7274bf16e3a..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/developer.md +++ /dev/null @@ -1,219 +0,0 @@ ---- -id: developer -title: 开发者们 -sidebar_label: 开发者们 ---- - -## ✨ HertzBeat的成员们 - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
zcx
zcx

💻 🐛 🎨
进击的阿晨
进击的阿晨

💻 🎨 🐛
铁甲小宝
铁甲小宝

🐛 💻 📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
hudongdong129
hudongdong129

💻 ⚠️ 📖
- -cert - -## ✨ HertzBeat的开发者们 - -Thanks these wonderful people, welcome to join us: [贡献者指南](contributing) - -cert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
MaxKey
MaxKey

💻 🎨 🤔
观沧海
观沧海

💻 🎨 🐛
yuye
yuye

💻 📖
jx10086
jx10086

💻 🐛
winnerTimer
winnerTimer

💻 🐛
goo-kits
goo-kits

💻 🐛
brave4Time
brave4Time

💻 🐛
WalkerLee
WalkerLee

💻 🐛
jianghang
jianghang

💻 🐛
ChineseTony
ChineseTony

💻 🐛
wyt199905
wyt199905

💻
卫傅庆
卫傅庆

💻 🐛
zklmcookle
zklmcookle

💻
DevilX5
DevilX5

📖 💻
tea
tea

💻
yangshihui
yangshihui

💻 🐛
DreamGirl524
DreamGirl524

💻 📖
gzwlly
gzwlly

📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
lambert
lambert

💻
mroldx
mroldx

📖
woshiniusange
woshiniusange

📖
VampireAchao
VampireAchao

💻
zcx
zcx

💻 🐛 🎨
CharlieXCL
CharlieXCL

📖
Privauto
Privauto

💻 📖
emrys
emrys

📖
SxLiuYu
SxLiuYu

🐛
All Contributors
All Contributors

📖
铁甲小宝
铁甲小宝

💻 📖
click33
click33

📖
蒋小小
蒋小小

📖
Kevin Huang
Kevin Huang

📖
铁甲小宝
铁甲小宝

🐛 💻 📖
Captain Jack
Captain Jack

📖
haibo.duan
haibo.duan

⚠️ 💻
assassin
assassin

🐛 💻
Reverse wind
Reverse wind

⚠️ 💻
luxx
luxx

💻
Ikko Ashimine
Ikko Ashimine

📖
leizenan
leizenan

💻
BKing
BKing

📖
xingshuaiLi
xingshuaiLi

📖
wangke6666
wangke6666

📖
刺猬
刺猬

🐛 💻
Haste
Haste

💻
zhongshi.yi
zhongshi.yi

📖
Qi Zhang
Qi Zhang

📖
MrAndyMing
MrAndyMing

📖
idongliming
idongliming

💻
Zichao Lin
Zichao Lin

💻 📖
liudonghua
liudonghua

💻 🤔
Jerry
Jerry

💻 ⚠️ 🤔
yanhom
yanhom

📖
fsl
fsl

💻
xttttv
xttttv

📖
NavinKumarBarnwal
NavinKumarBarnwal

💻
Zakkary
Zakkary

📖
sunxinbo
sunxinbo

💻 ⚠️
ldzbook
ldzbook

📖 🐛
余与雨
余与雨

💻 ⚠️
MysticalDream
MysticalDream

💻 ⚠️
zhouyoulin12
zhouyoulin12

💻 ⚠️
jerjjj
jerjjj

💻
wjl110
wjl110

💻
Sean
Sean

📖
chenyiqin
chenyiqin

💻 ⚠️
hudongdong129
hudongdong129

💻 ⚠️ 📖
TherChenYang
TherChenYang

💻 ⚠️
HattoriHenzo
HattoriHenzo

💻 ⚠️
ycilry
ycilry

📖
aoshiguchen
aoshiguchen

📖 💻
蔡本祥
蔡本祥

💻
浮游
浮游

💻
Grass-Life
Grass-Life

💻
xiaohe428
xiaohe428

💻 📖
TableRow
TableRow

📖 💻
ByteIDance
ByteIDance

💻
Jangfe
Jangfe

💻
zqr10159
zqr10159

📖 💻
vinci
vinci

💻
js110
js110

💻
CrazyLionLi
CrazyLionLi

📖
banmajio
banmajio

💻
topsuder
topsuder

💻
richar2022
richar2022

💻
fcb-xiaobo
fcb-xiaobo

💻
wenkyzhang
wenkyzhang

📖
ZangJuxy
ZangJuxy

📖
l646505418
l646505418

💻
Carpe-Wang
Carpe-Wang

💻
莫枢
莫枢

💻
huangcanda
huangcanda

💻
世纪末的架构师
世纪末的架构师

💻
ShuningWan
ShuningWan

📖
MrYZhou
MrYZhou

📖
suncqujsj
suncqujsj

📖
sunqinbo
sunqinbo

💻
haoww
haoww

📖
i-mayuan
i-mayuan

📖
fengruge
fengruge

📖
zhanghuan
zhanghuan

💻
shenymin
shenymin

💻
Dhruva Chandra
Dhruva Chandra

💻
miss_z
miss_z

📖
wyt990
wyt990

💻
licocon
licocon

💻
Mi Na
Mi Na

💻
Kylin-Guo
Kylin-Guo

📖
Mr灬Dong先生
Mr灬Dong先生

💻
Pratyay Banerjee
Pratyay Banerjee

📖 💻
yujianzhong520
yujianzhong520

💻
SPPan
SPPan

💻
ZhangJiashu
ZhangJiashu

💻
impress
impress

💻
凌晨一点半
凌晨一点半

📖
Eeshaan Sawant
Eeshaan Sawant

💻
nandofromthebando
nandofromthebando

💻
caiboking
caiboking

💻
baixing99
baixing99

💻
Yang Chuang
Yang Chuang

💻
wlin20
wlin20

💻
guojing1983
guojing1983

💻
moxi
moxi

📖
qq471754603
qq471754603

💻
渭雨
渭雨

💻
liuxuezhuo
liuxuezhuo

💻
lisongning
lisongning

💻
YutingNie
YutingNie

💻
Mike Zhou
Mike Zhou

💻
小笨蛋
小笨蛋

💻
littlezhongzer
littlezhongzer

💻
ChenXiangxxxxx
ChenXiangxxxxx

💻
Mr.zhou
Mr.zhou

💻
- - - - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/huaweicloud.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/huaweicloud.md deleted file mode 100644 index b934a5c2ca3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/huaweicloud.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: huaweicloud -title: HertzBeat & HuaweiCloud -sidebar_label: HertzBeat & HuaweiCloud ---- - -### HertzBeat 与 HuaweiCloud 的开源合作需求Issue - -> 欢迎大家对感兴趣的Issue领取贡献。 - -- [Task] support using Huawei Cloud OBS to store custom define yml file [#841](https://github.com/apache/hertzbeat/issues/841) -- [Task] support Huawei Cloud CCE metrics monitoring [#839](https://github.com/apache/hertzbeat/issues/839) -- [Task] support EulerOS metrics monitoring [#838](https://github.com/apache/hertzbeat/issues/838) -- [Task] support using Huawei Cloud SMN send alarm notification message [#837](https://github.com/apache/hertzbeat/issues/837) -- [Task] support using GaussDB For Influx store history metrics data [#836](https://github.com/apache/hertzbeat/issues/836) - - - - -### 关于 HuaweiCloud 开源活动 - -HuaweiCloud 华为云将面向开源软件工具链与环境、开源应用构建和开源生态组件构建这三大重点场景,提供技术支持、奖金支持、活动支持,邀请更多的开发者,携手构建开源for HuaweiCloud。 - -开发者将开源软件工具、开源应用和开源组件与华为云对象存储OBS、数仓DWS、云容器CCE等云服务对接,同时基于Terraform模板,上架到华为云云商店,支持其他开发者一键部署使用开源组件 ,称为“开源xxx for HuaweiCloud”。 - -感兴趣的开发者可以查看:华为云开源项目仓库 https://gitee.com/HuaweiCloudDeveloper/huaweicloud-cloud-native-plugins-kits 了解更多。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/images-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/images-deploy.md deleted file mode 100644 index 782dbe83c05..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/images-deploy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: images-deploy -title: HertzBeat 华为云镜像部署 -sidebar_label: HertzBeat 华为云镜像部署快速指引 ---- - - -> 易用友好的开源实时监控告警工具,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云](https://console.tancloud.cn)**,中小团队和个人无需再为了监控自己的网站资源,而去部署学习一套繁琐的监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - - ----- - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - -## ⛄ Supported - -- [网站监控](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [端口可用性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping连通性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap全站](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl证书](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP服务器](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml) -- [Mysql](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml), - [达梦](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml) -- [Linux](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml) -- [Tomcat](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml) -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -## 镜像部署 - -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 开通服务器时选用 HertzBeat 镜像 -2. 启动服务器 -3. 配置HertzBeat的配置文件(可选) - - 修改位于 `/opt/hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](../start/mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](../start/tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](../start/iotdb-init) - - -4. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `/opt/hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](../start/account-modify) - -5. 部署启动 - 执行位于安装目录/opt/hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -6. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### 部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/resource.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/resource.md deleted file mode 100644 index a4c715fa5d7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/resource.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -id: resource -title: 相关资源 -sidebar_label: 相关资源 ---- - -## 图标资源 - -### HertzBeat LOGO - -![logo](/img/hertzbeat-logo.svg) - -下载: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.png) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.jpg) - -### HertzBeat Brand LOGO - -![logo](/img/hertzbeat-brand.svg) - -下载: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.png) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/sponsor.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/sponsor.md deleted file mode 100644 index 0b52c4e75a4..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/others/sponsor.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: sponsor -title: 赞助我们 -sidebar_label: 赞助我们 ---- - -**HertzBeat对个人或企业完全免费,我们也在全职做这件事情,如果您喜欢这个项目并且愿意提供帮助,请我们喝杯咖啡吧** - -planet - - -感谢[吉实信息(构建全新的微波+光交易网络)](https://www.flarespeed.com) 赞助服务器采集节点 -感谢[蓝易云(全新智慧上云)](https://www.tsyvps.com/aff/BZBEGYLX) 赞助服务器采集节点 -感谢[Postcat(开源 API 管理工具)](https://datayi.cn/w/xRxVBBko) 赞助 - - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/account-modify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/account-modify.md deleted file mode 100644 index 8436a317158..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/account-modify.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: account-modify -title: 配置修改账户密码 -sidebar_label: 配置修改账户密码 ---- - -HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat -若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 -修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 -配置文件内容参考 项目仓库[/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) - -```yaml - -resourceRole: - - /api/account/auth/refresh===post===[admin,user,guest] - - /api/apps/**===get===[admin,user,guest] - - /api/monitor/**===get===[admin,user,guest] - - /api/monitor/**===post===[admin,user] - - /api/monitor/**===put===[admin,user] - - /api/monitor/**===delete==[admin] - - /api/monitors/**===get===[admin,user,guest] - - /api/monitors/**===post===[admin,user] - - /api/monitors/**===put===[admin,user] - - /api/monitors/**===delete===[admin] - - /api/alert/**===get===[admin,user,guest] - - /api/alert/**===post===[admin,user] - - /api/alert/**===put===[admin,user] - - /api/alert/**===delete===[admin] - - /api/alerts/**===get===[admin,user,guest] - - /api/alerts/**===post===[admin,user] - - /api/alerts/**===put===[admin,user] - - /api/alerts/**===delete===[admin] - - /api/notice/**===get===[admin,user,guest] - - /api/notice/**===post===[admin,user] - - /api/notice/**===put===[admin,user] - - /api/notice/**===delete===[admin] - - /api/tag/**===get===[admin,user,guest] - - /api/tag/**===post===[admin,user] - - /api/tag/**===put===[admin,user] - - /api/tag/**===delete===[admin] - - /api/summary/**===get===[admin,user,guest] - - /api/summary/**===post===[admin,user] - - /api/summary/**===put===[admin,user] - - /api/summary/**===delete===[admin] - -# 需要被过滤保护的资源,不认证鉴权直接访问 -# /api/v1/source3===get 表示 /api/v1/source3===get 可以被任何人访问 无需登录认证鉴权 -excludedResource: - - /api/account/auth/**===* - - /api/i18n/**===get - - /api/apps/hierarchy===get - # web ui 前端静态资源 - - /===get - - /dashboard/**===get - - /monitors/**===get - - /alert/**===get - - /account/**===get - - /setting/**===get - - /passport/**===get - - /**/*.html===get - - /**/*.js===get - - /**/*.css===get - - /**/*.ico===get - - /**/*.ttf===get - - /**/*.png===get - - /**/*.gif===get - - /**/*.jpg===get - - /**/*.svg===get - - /**/*.json===get - # swagger ui 资源 - - /swagger-resources/**===get - - /v2/api-docs===get - - /v3/api-docs===get - -# 用户账户信息 -# 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为hertzbeat -# eg: tom 拥有[user],密码为hertzbeat -# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -修改`sureness.yml`的如下**部分参数**:**[注意⚠️sureness配置的其它默认参数需保留]** - -```yaml - -# 用户账户信息 -# 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为hertzbeat -# eg: tom 拥有[user],密码为hertzbeat -# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -## 更新安全密钥 - -> 此密钥为账户安全加密管理的密钥,需要更新为相同长度的你自定义密钥串。 - -更新 `config` 目录下的 `application.yml` 文件,修改 `sureness.jwt.secret` 参数为你自定义的相同长度的密钥串。 - -```yaml -sureness: - jwt: - secret: 'CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R - LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 - 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 - dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' -``` - -**重启 HertzBeat 浏览器访问 http://ip:1157/ 即可探索使用 HertzBeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/custom-config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/custom-config.md deleted file mode 100644 index 27ebbf49520..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/custom-config.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: custom-config -title: 常见参数配置 -sidebar_label: 常见参数配置 ---- - -这里描述了如果配置短信服务器,内置可用性告警触发次数等。 - -**`hertzbeat`的配置文件`application.yml`** - -### 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 - 安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -1. 配置短信发送服务器 - -> 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 - -在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: 赫兹跳动 - template-id: 1343434 -``` -1.1 腾讯云短信创建签名(sign-name) -![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) - -1.2 腾讯云短信创建正文模板(template-id) -``` -监控:{1},告警级别:{2}。内容:{3} -``` -![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) - - -1.3 腾讯云短信创建应用(app-id) -![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) - -1.4 腾讯云访问管理(secret-id、secret-key) -![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) - - -2. 配置告警自定义参数 - -```yaml -alerter: - # 自定义控制台地址 - console-url: https://console.tancloud.cn -``` - -3. 使用外置redis代替内存存储实时指标数据 - -> 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 - -注意⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/docker-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/docker-deploy.md deleted file mode 100644 index 1d20eff6ad5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/docker-deploy.md +++ /dev/null @@ -1,145 +0,0 @@ ---- -id: docker-deploy -title: 通过 Docker 方式安装 HertzBeat -sidebar_label: Docker方式部署 ---- - -> 推荐使用Docker部署HertzBeat - -1. 下载安装Docker环境 - Docker 工具自身的下载请参考以下资料: - [Docker官网文档](https://docs.docker.com/get-docker/) - [菜鸟教程-Docker教程](https://www.runoob.com/docker/docker-tutorial.html) - 安装完毕后终端查看Docker版本是否正常输出。 - - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. 拉取HertzBeat Docker镜像 - 镜像版本TAG可查看 [dockerhub 官方镜像仓库](https://hub.docker.com/r/apache/hertzbeat/tags) - 或者使用 [quay.io 镜像仓库](https://quay.io/repository/apache/hertzbeat) - - ```shell - $ docker pull apache/hertzbeat - ``` - 若网络超时或者使用 - ```shell - $ docker pull quay.io/tancloud/hertzbeat - ``` - -3. 部署HertzBeat您可能需要掌握的几条命令 - - ```shell - #查看所有容器(在运行和已经停止运行的容器) - $ docker ps -a - #启动/终止/重启/运行状态 - $ docker start/stop/restart/stats 容器id或者容器名 - #进入容器并打开容器的shell终端 - $ docker exec -it 容器id或者容器名 /bin/bash - #退出容器终端 - ctrl+p然后ctrl+q - #完全退出容器的终端 - ctrl+d或者 - $ exit - ``` - -4. 配置挂载的HertzBeat的配置文件(可选) - 在主机目录下创建application.yml,eg:/opt/application.yml - 配置文件完整内容见项目仓库[/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) 您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -5. 配置挂载的HertzBeat用户配置文件,自定义用户密码(可选) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 - 在主机目录下创建sureness.yml,eg:/opt/sureness.yml - 配置文件完整内容见项目仓库[/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) - 具体修改步骤参考 [配置修改账户密码](account-modify) - -6. 启动HertzBeat Docker容器 - -```shell -$ docker run -d -p 1157:1157 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v /opt/data:/opt/hertzbeat/data \ - -v /opt/logs:/opt/hertzbeat/logs \ - -v /opt/application.yml:/opt/hertzbeat/config/application.yml \ - -v /opt/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --restart=always \ - --name hertzbeat apache/hertzbeat -``` - - 这条命令启动一个运行HertzBeat的Docker容器,并且将容器的1157端口映射到宿主机的1157端口上。若宿主机已有进程占用该端口,则需要修改主机映射端口。 - - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - - - `-p 1157:1157` : 映射容器端口到主机端口,请注意,前面是宿主机的端口号,后面是容器的端口号。 - - - `-e LANG=zh_CN.UTF-8` : (可选) 设置语言 - - - `-e TZ=Asia/Shanghai` : (可选) 设置时区 - - - `-v /opt/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 - - - `-v /opt/logs:/opt/hertzbeat/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - - - `-v /opt/application.yml:/opt/hertzbeat/config/application.yml` : (可选,不需要可删除)挂载上上一步修改的本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。我们需要修改此配置文件的MYSQL,TDengine配置信息来连接外部服务。 - - - `-v /opt/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选,不需要可删除)挂载上一步修改的账户配置文件到容器中,若无修改账户需求可删除此命令参数。 - - - 注意⚠️ 挂载文件时,前面参数为你自定义本地文件地址,后面参数为docker容器内文件地址(固定) - - - `--name hertzbeat` : 命名容器名称 hertzbeat - - - `--restart=always`:(可选,不需要可删除)使容器在Docker启动后自动重启。若您未在容器创建时指定该参数,可通过以下命令实现该容器自启。 - - ```shell - $ docker update --restart=always hertzbeat - ``` - - - `apache/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat`代替。** - -7. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### Docker部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` - -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -4. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB或Tdengine IP账户密码等配置是否正确 - -5. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - -> 安装初始化此数据库参考 [TDengine安装初始化](tdengine-init) 或 [IoTDB安装初始化](iotdb-init) - -6. 安装配置了时序数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db 或td-engine enable 是否设置为true -> 注意⚠️若hertzbeat和IotDB,TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/greptime-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/greptime-init.md deleted file mode 100644 index 34e69740061..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/greptime-init.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -id: greptime-init -title: 依赖时序数据库服务GreptimeDB安装初始化 -sidebar_label: 使用GreptimeDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库 GreptimeDB, 或 TDengine 或 IoTDB,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) - -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. -It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. - -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -### 通过Docker方式安装GreptimeDB -> 可参考官方网站[安装教程](https://docs.greptime.com/getting-started/overview) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装GreptimeDB - -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 -``` - - `-v /opt/greptimedb:/tmp/greptimedb` 为greptimedb数据目录本地持久化挂载,需将`/opt/greptimedb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - greptime: - enabled: true - endpoint: localhost:4001 -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库 GreptimeDB 或者 IoTDB 或者 TDengine 是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/influxdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/influxdb-init.md deleted file mode 100644 index 60db6c086c2..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/influxdb-init.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -id: influxdb-init -title: 依赖时序数据库服务InfluxDB安装初始化 -sidebar_label: 使用InfluxDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库 InfluxDB, TDengine 或 IoTDB,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) - -InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -### 1. 直接使用华为云服务 GaussDB For Influx - -> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> 获取云数据库对外暴露连接地址,账户密码即可 - -⚠️注意云数据库默认开启了SSL,云数据库地址应使用 `https:` - -### 2. 通过Docker方式安装InfluxDB -> 可参考官方网站[安装教程](https://hub.docker.com/_/influxdb) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装InfluxDB 1.x - -```shell -$ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 -``` - - `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 - -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/iotdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/iotdb-init.md deleted file mode 100644 index 9145649b602..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/iotdb-init.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -id: iotdb-init -title: 依赖时序数据库服务IoTDB安装初始化 -sidebar_label: 使用IoTDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库 IoTDB 或 TDengine,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) - -Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据的软件系统,我们使用其存储分析采集到的监控指标历史数据。支持V0.12 - V0.13版本,推荐使用V0.13.*版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -> 如果您已有IoTDB环境,可直接跳到YML配置那一步。 - - -### 通过Docker方式安装IoTDB -> 可参考官方网站[安装教程](https://iotdb.apache.org/zh/UserGuide/V0.13.x/QuickStart/WayToGetIoTDB.html) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装IoTDB - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - - `-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接 - - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # V_O_12 || V_0_13 - version: V_0_13 - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -4. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 - -3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db enable是否设置为true -> 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/mysql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/mysql-change.md deleted file mode 100644 index 8db668fb634..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/mysql-change.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -id: mysql-change -title: 关系型数据库使用 Mysql 替换依赖的 H2 存储系统元数据 -sidebar_label: 元数据使用Mysql存储(可选) ---- -MYSQL是一款值得信赖的关系型数据库,HertzBeat除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 - -注意⚠️ 使用外置Mysql数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 - -> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 - -### 通过Docker方式安装MYSQL -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装MYSQl - ``` - $ docker run -d --name mysql \ - -p 3306:3306 \ - -v /opt/data:/var/lib/mysql \ - -e MYSQL_ROOT_PASSWORD=123456 \ - --restart=always \ - mysql:5.7 - ``` - `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -### 数据库创建 -1. 进入MYSQL或使用客户端连接MYSQL服务 - `mysql -uroot -p123456` -2. 创建名称为hertzbeat的数据库 - `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` -3. 查看hertzbeat数据库是否创建成功 - `show databases;` - -### 修改hertzbeat的配置文件application.yml切换数据源 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml) - -需修改部分原参数: -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -具体替换参数如下,需根据mysql环境配置账户密码IP: -```yaml -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 123456 - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false -``` - -2. 通过docker启动时,需要修改host为宿主机的外网Ip,包括mysql连接字符串和redis。 - - -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** - -### 常见问题 - -1. 缺少hibernate的mysql方言,导致启动异常 Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set - -如果上述配置启动系统,出现` Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set`异常, -需要在`application.yml`文件中增加以下配置: - -```yaml -spring: - jpa: - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.MySQL5InnoDBDialect -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/package-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/package-deploy.md deleted file mode 100644 index ff4ea8c0269..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/package-deploy.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: package-deploy -title: 通过安装包安装 HertzBeat -sidebar_label: 安装包方式部署 ---- -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 -> 由于安装包自身不包含JAVA运行环境,需您提前准备JAVA运行环境。 - -1. 安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) - 要求:JAVA11环境 - 下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) - 安装后命令行检查是否成功安装 - ``` - $ java -version - java version "11.0.12" - Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) - Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode) - - ``` - -2. 下载HertzBeat安装包 - 下载您系统环境对应的安装包 - - 从[GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) 仓库下载 - - 从[GITHUB Release](https://github.com/apache/hertzbeat/releases) 仓库下载 - -3. 配置HertzBeat的配置文件(可选) - 解压安装包到主机 eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-[版本号].tar.gz - ``` - 修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -4. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](account-modify) - -5. 部署启动 - 执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -⚠️注意,如果在多java环境中,环境变量中JAVA已经配置了其他java环境如`java8`,没有`java11`,需编辑`$ ./startup.sh ` 或 `startup.bat`手动指定java路径。 -`startup.sh`在第一行添加`JAVA_HOME=${JAVA_DIR}`,`startup.bat`修改`start javaw %JAVA_OPTS% %JAVA_MEM_OPTS% %CONFIG_FILES% -jar %DEPLOY_DIR%\%JAR_NAME% >logs\startup.log 2>&1 &`中的`javaw`为`java11`的路径,如`C:\Users\user\.jdks\corretto-11.0.18\bin\javaw` - -6. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### 安装包部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -3. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/postgresql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/postgresql-change.md deleted file mode 100644 index b09f969e4da..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/postgresql-change.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -id: postgresql-change -title: 关系型数据库使用 PostgreSQL 替换依赖的 H2 存储系统元数据 -sidebar_label: 元数据使用PostgreSQL存储(可选) ---- -PostgreSQL是一个功能强大,开源的关系型数据库管理系统(RDBMS)。HertzBeat除了支持使用默认内置的H2数据库外,还可以切换为使用PostgreSQL存储监控信息,告警信息,配置信息等结构化关系数据。 - -注意⚠️ 使用外置PostgreSQL数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 - -> 如果您已有PostgreSQL环境,可直接跳到数据库创建那一步。 - - -### 通过Docker方式安装PostgreSQL - -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. Docker安装 PostgreSQL - ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` - 使用```$ docker ps```查看数据库是否启动成功 - -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). - -### 数据库创建 - -1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 - ``` - su - postgres - psql - ``` - -2. 创建名称为hertzbeat的数据库 - `CREATE DATABASE hertzbeat;` - -3. 查看hertzbeat数据库是否创建成功 - `\l` - -### 修改hertzbeat的配置文件application.yml切换数据源 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml) - -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -具体替换参数如下,需根据 PostgreSQL 环境配置账户密码IP: -```yaml -spring: - config: - activate: - on-profile: prod - datasource: - driver-class-name: org.postgresql.Driver - username: root - password: 123456 - url: jdbc:postgresql://127.0.0.1:5432/hertzbeat - hikari: - max-lifetime: 120000 - - jpa: - database: postgresql - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.PostgreSQLDialect -``` - -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/quickstart.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/quickstart.md deleted file mode 100644 index 1dcfc79f7ee..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/quickstart.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: quickstart -title: 快速开始 -sidebar_label: 快速开始 ---- - -### 🐕 开始使用 - -- 如果您不想部署而是直接使用,我们提供SAAS监控云-[TanCloud探云](https://console.tancloud.cn),即刻[登录注册](https://console.tancloud.cn)免费使用。 -- 如果您是想将HertzBeat部署到内网环境搭建监控系统,请参考下面的部署文档进行操作。 - -### 🐵 依赖服务部署(可选) - -> HertzBeat依赖于 **关系型数据库** H2(默认已内置无需安装) 或 [Mysql](mysql-change) 和 **时序性数据库** [TDengine2+](tdengine-init) 或 [IOTDB](iotdb-init) (可选) - -**注意⚠️ 若需要部署时序数据库,IotDB 和 TDengine 任选其一即可!** - -##### 安装Mysql(可选) - -1. docker安装Mysql - ` $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7` - `-v /opt/data:/var/lib/mysql` - 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 -2. 创建名称为hertzbeat的数据库 - `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` -3. 在hertzbeat的配置文件`application.yml`配置Mysql数据库替换H2内置数据库连接参数 - -详细步骤参考 [使用Mysql替换内置H2数据库](mysql-change) - -##### 安装TDengine(可选) - -1. docker安装TDengine - `docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp --name tdengine tdengine/tdengine:3.0.4.0` -2. 创建名称为hertzbeat的数据库 -3. 在hertzbeat的配置文件`application.yml`配置tdengine连接 - -详细步骤参考 [使用时序数据库TDengine存储指标数据(可选)](tdengine-init) - -##### 安装IotDB(可选) - -1. Docker安装IoTDB - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - -详细步骤参考 [使用时序数据库IoTDB存储指标数据(可选)](iotdb-init) - -### 🍞 HertzBeat安装 -> HertzBeat支持通过源码安装启动,Docker容器运行和安装包方式安装部署,CPU架构支持X86/ARM64。 - -#### 方式一:Docker方式快速安装 - -1. `docker` 环境仅需一条命令即可开始 - -```docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat``` - -```或者使用 quay.io (若 dockerhub 网络链接超时)``` - -```docker run -d -p 1157:1157 --name hertzbeat quay.io/tancloud/hertzbeat``` - -2. 浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` - -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) - -#### 方式二:通过安装包安装 - -1. 下载您系统环境对应的安装包 [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) -2. 需要已安装java环境, `jdk11` -3. [可选]配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml` -4. 部署启动 `$ ./startup.sh ` -5. 浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` - -更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) - -#### 方式三:本地代码启动 -1. 此为前后端分离项目,本地代码调试需要分别启动后端工程manager和前端工程web-app -2. 后端:需要`maven3+`, `java11`和`lombok`环境,修改YML配置信息并启动manager服务 -3. 前端:需要`nodejs npm angular-cli`环境,待本地后端启动后,在web-app目录下启动 `ng serve --open` -4. 浏览器访问 `localhost:4200` 即可开始,默认账号密码 `admin/hertzbeat` - -详细步骤参考 [参与贡献之本地代码启动](../others/contributing) - -##### 方式四:Docker-Compose 统一安装 hertzbeat+mysql+iotdb/tdengine - -通过 [docker-compose部署脚本](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) 一次性把 mysql 数据库, iotdb/tdengine 时序数据库和 hertzbeat 安装部署。 - -详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) - -**HAVE FUN** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/rainbond-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/rainbond-deploy.md deleted file mode 100644 index 0a55beb17a7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/rainbond-deploy.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: rainbond-deploy -title: 使用 Rainbond 部署 HertzBeat -sidebar_label: Rainbond方式部署 ---- - -如果你不熟悉 Kubernetes,想在 Kubernetes 中安装 HertzBeat,可以使用 Rainbond 来部署。Rainbond 是一个基于 Kubernetes 构建的云原生应用管理平台,可以很简单的将你的应用部署到 Kubernetes中。 - -## 前提 - -安装 Rainbond,请参阅 [Rainbond 快速安装](https://www.rainbond.com/docs/quick-start/quick-install)。 - -## 部署 HertzBeat - -登录 Rainbond 后,点击左侧菜单中的 `应用市场`,切换到开源应用商店,在搜索框中搜索 `HertzBeat`,点击安装按钮。 - -![](/img/docs/start/install-to-rainbond.png) - -填写以下信息,然后点击确认按钮进行安装。 - -* 团队:选择现有团队或创建新的团队 -* 集群:选择对应的集群 -* 应用:选择现有应用或创建新的应用 -* 版本:选择要安装的 HertzBeat 版本 - -等待安装完成,即可访问 HertzBeat 应用。 - -![](/img/docs/start/hertzbeat-topology.png) - -:::tip -通过 Rainbond 安装的 HertzBeat,默认使用了外部的 Mysql 数据库 和 Redis 以及 IoTDB。同时也挂载了 HertzBeat 的配置文件,可以在 `组件 -> 环境配置 -> 配置文件设置` 中修改配置文件。 -::: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/sslcert-practice.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/sslcert-practice.md deleted file mode 100644 index 5b9fc3fce41..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/sslcert-practice.md +++ /dev/null @@ -1,119 +0,0 @@ ---- -id: ssl-cert-practice -title: SSL证书过期监控使用案例 -sidebar_label: 使用案例 ---- - - -现在大部分网站都默认支持 HTTPS,我们申请的证书一般是3个月或者1年,很容易随着时间的流逝SSL证书过期了我们却没有第一时间发现,或者在过期之前没有及时更新证书。 - -这篇文章介绍如果使用 hertzbeat 监控系统来检测我们网站的SSL证书有效期,当证书过期时或证书快过期前几天,给我们发告警消息。 - -#### HertzBeat是什么 - -HertzBeat 一个拥有强大自定义监控能力,无需Agent的实时监控工具。网站监测,PING连通性,端口可用性,数据库,操作系统,中间件,API监控,阈值告警,告警通知(邮件微信钉钉飞书)。 - -**官网: https://hertzbeat.com | https://tancloud.cn** - -github: https://github.com/apache/hertzbeat -gitee: https://gitee.com/hertzbeat/hertzbeat - -#### 安装 HertzBeat - -1.如果不想安装可以直接使用云服务 [TanCloud探云 console.tancloud.cn](https://console.tancloud.cn) - -2. `docker` 环境仅需一条命令即可安装 - -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` - -3. 安装成功浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` - -#### 监控SSL证书 - -1. 点击新增SSL证书监控 - -> 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/bd53f343a5b54feab62e71458d076441~tplv-k3u1fbpfcp-zoom-1.image) - -2. 配置监控网站 - -> 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 -> 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ad1154670648413bb82c8bdeb5b13609~tplv-k3u1fbpfcp-zoom-1.image) - -3. 查看检测指标数据 - -> 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f874b45e909c4bb0acdd28b3fb034a61~tplv-k3u1fbpfcp-zoom-1.image) - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ef5d7443f8c04818ae5aa28d421203be~tplv-k3u1fbpfcp-zoom-1.image) - - - -4. 设置阈值(证书过期时触发) - -> 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8d6205172d43463aa34e534477f132f1~tplv-k3u1fbpfcp-zoom-1.image) - -> 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/83d17b381d994f26a6240e01915b2001~tplv-k3u1fbpfcp-zoom-1.image) - -> 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9b9063d7bcf9454387be0491fc382bd1~tplv-k3u1fbpfcp-zoom-1.image) - - - - -5. 设置阈值(证书过期前一周触发) - -> 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0d6f837f57c247e09f668f60eff4a0ff~tplv-k3u1fbpfcp-zoom-1.image) - -> 最终可以在告警中心看到已触发的告警。 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5a61b23127524976b2c209ce0ca6a339~tplv-k3u1fbpfcp-zoom-1.image) - - -6. 告警通知(通过钉钉微信飞书等及时通知) - -> 监控系统 -> 告警通知 -> 新增接收人 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/7f36956060ef410a82bbecafcbb2957f~tplv-k3u1fbpfcp-zoom-1.image) - -钉钉微信飞书等token配置可以参考帮助文档 - -https://hertzbeat.com/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk - -> 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d976343e81f843138344a039f3aff8a3~tplv-k3u1fbpfcp-zoom-1.image) - -7. OK 当阈值触发后我们就可以收到对应告警消息啦,如果没有配通知,也可以在告警中心查看告警信息。 - ----- - -#### 完! - -监控SSL证书的实践就到这里,当然对hertzbeat来说这个功能只是冰山一角,如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/tdengine-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/tdengine-init.md deleted file mode 100644 index 70885d9da25..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/start/tdengine-init.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: tdengine-init -title: 依赖时序数据库服务TDengine安装初始化 -sidebar_label: 使用TDengine存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库 TDengine 或 IoTDB,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) - -TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -> 如果您已有TDengine环境,可直接跳到创建数据库实例那一步。 - - -### 通过Docker方式安装TDengine -> 可参考官方网站[安装教程](https://docs.taosdata.com/get-started/docker/) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装TDengine - -```shell -$ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 -``` - - `-v /opt/taosdata:/var/lib/taos` 为tdengine数据目录本地持久化挂载,需将`/opt/taosdata`替换为实际本地存在的目录 - `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 - 使用```$ docker ps```查看数据库是否启动成功 - -### 创建数据库实例 - -> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) - -1. 进入数据库Docker容器 - ``` - $ docker exec -it tdengine /bin/bash - ``` - -2. 修改账户密码 - - > 建议您修改密码。TDengine默认的账户密码是 root/taosdata - > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: - - ``` - root@tdengine-server:~/TDengine-server# taos - Welcome to the TDengine shell from Linux, Client Version - Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. - taos> - ``` - > 在 TDengine CLI 中使用 alter user 命令可以修改用户密码,缺省密码为 taosdata - -3. 创建名称为hertzbeat的数据库 - - 执行创建数据库命令 - - ``` - taos> show databases; - taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; - ``` - - 上述语句将创建一个名为 hertzbeat 的库,这个库的数据将保留90天(超过90天将被自动删除),每 10 天一个数据文件,每个 VNode 的写入内存池的大小为 16 MB - -4. 查看hertzbeat数据库是否成功创建 - - ``` - taos> show databases; - taos> use hertzbeat; - ``` - -5. 退出TDengine CLI - - ``` - 输入 q 或 quit 或 exit 回车 - ``` - -**注意⚠️若是安装包安装的TDengine** - -> 除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 - -3. 监控详情历史图片不展示或无数据,已经配置了TDengine -> 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 - -4. 安装配置了TDengine数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> td-engine enable是否设置为true -> 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/template.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/template.md deleted file mode 100644 index c3d507a11f8..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.3.x/template.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -id: template -title: 监控模版中心 -sidebar_label: 监控模版 ---- - -> Hertzbeat 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -这是它的架构原理: - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** - -![](/img/docs/advanced/extend-point-1.png) - -**欢迎大家一起贡献你使用过程中自定义的通用监控类型YML模版,可用的模板如下:** - -### 应用服务监控模版 - - 👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
- 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
- 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
- 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
- 👉 [SpringBoot2.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml)
- 👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
- 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
- -### 数据库监控模版 - - 👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
- 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
- 👉 [PostgreSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml)
- 👉 [SqlServer database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml)
- 👉 [Oracle database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml)
- 👉 [DM database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml)
- 👉 [OpenGauss database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml)
- 👉 [IoTDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml)
- 👉 [ElasticSearch database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml)
- 👉 [MongoDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml)
- 👉 [ClickHouse database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml)
- 👉 [Redis database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml)
- 👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
- 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
- -### 操作系统监控模版 - - 👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
- 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
- 👉 [Ubuntu operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml)
- 👉 [Centos operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml)
- 👉 [EulerOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml)
- 👉 [Fedora CoreOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml)
- 👉 [OpenSUSE operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml)
- 👉 [Rocky Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml)
- 👉 [Red Hat operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml)
- 👉 [FreeBSD operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml)
- 👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
- 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- - -### 中间件监控模版 - - 👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
- 👉 [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml)
- 👉 [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml)
- 👉 [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml)
- 👉 [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml)
- 👉 [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml)
- 👉 [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml)
- 👉 [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml)
- 👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
- 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- - -### 云原生监控模版 - - 👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
- 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
- -### 网络监控模版 - - 👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
- 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
- 👉 [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml)
- 👉 [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml)
- 👉 [H3CSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml)
- ---- - -**Have Fun!** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-default.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-default.md deleted file mode 100644 index 4df0501dd83..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-default.md +++ /dev/null @@ -1,150 +0,0 @@ ---- -id: extend-http-default -title: HTTP协议系统默认解析方式 -sidebar_label: 系统默认解析方式 ---- -> HTTP接口调用获取响应数据后,用HertzBeat默认的解析方式去解析响应数据。 - -**此需接口响应数据结构符合HertzBeat指定的数据结构规则** - -### HertzBeat数据格式规范 -注意⚠️ 响应数据为JSON - -单层格式:key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -多层格式:数组里面套key-value -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` -样例: -查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 -若只有一台虚拟机,其单层格式为: -```json -{ - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 -} -``` -若有多台虚拟机,其多层格式为: -```json -[ - { - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 - }, - { - "hostname": "linux-2", - "core": 3, - "usage": 78.0, - "allTime": 566, - "runningTime": 34 - }, - { - "hostname": "linux-3", - "core": 4, - "usage": 38.0, - "allTime": 500, - "runningTime": 20 - } -] -``` - -**对应的监控模版YML可以配置为如下** - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' -# collect metrics config list -# 采集指标配置列表 -metrics: - # First monitoring metric group cpu - # Note: The built-in monitoring metrics include (responseTime - response time) - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - label: true - - field: usage - type: 0 - unit: '%' - - field: core - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/cpu - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # 这里使用HertzBeat默认解析 - parseType: default -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md deleted file mode 100644 index aac574f42ad..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md +++ /dev/null @@ -1,227 +0,0 @@ ---- -id: extend-http-example-hertzbeat -title: 教程一:适配一款基于HTTP协议的监控类型 -sidebar_label: 教程一:适配一款HTTP协议监控 ---- - -通过此教程我们一步一步描述如何在hertzbeat监控系统下新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - - -### HTTP协议解析通用响应结构体,获取指标数据 - -> 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API -`http://localhost:1157/api/summary`, 其响应数据为: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - - -### 新增自定义监控模版YML - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为`hertzbeat`的自定义监控类型,其使用HTTP协议采集指标数据。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型名称(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - summary - # 监控指标 - summary - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: responseTime - type: 0 - unit: ms - - field: app - type: 1 - label: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk, 我们这里使用HTTP协议 - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径,我们这里不需要输入传参,写死为 /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # 请求方式 GET POST PUT DELETE PATCH,写死为 - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控,我们这里使用jsonpath来解析响应数据 - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**新增完毕,现在我们重启hertzbeat系统。我们可以看到系统页面已经多了一个`hertzbeat`监控类型了。** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### 系统页面添加对`hertzbeat`监控类型的监控 - -> 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### 设置阈值告警通知 - -> 接下来我们就可以正常的设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! - -如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-token.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-token.md deleted file mode 100644 index 5bbfe58cf32..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-example-token.md +++ /dev/null @@ -1,391 +0,0 @@ ---- -id: extend-http-example-token -title: 教程二:基于HTTP协议获取TOKEN指标值,给后续采集认证使用 -sidebar_label: 教程二:获取TOKEN后续认证使用 ---- - -通过此教程我们一步一步描述如何在教程一的基础上改造,新增一个监控指标,先调用认证接口获取TOKEN后,使用TOKEN作为参数供后面的监控指标采集认证使用。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - -### 请求流程 - -【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 - -> 这里我们依然用教程一的hertzbeat监控举例!hertzbeat后台接口不仅仅支持教程一使用的basic直接账户密码认证,也支持token认证。 - -**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` -**响应结构数据如下**: - -```json -{ - "data": { - "token": "xxxx", - "refreshToken": "xxxx" - }, - "msg": null, - "code": 0 -} -``` - -### 新增自定义监控类型`hertzbeat_token` - -1. 自定义监控类型需新增配置监控模版YML,我们直接复用教程一的 `hertzbeat` 监控类型,在其基础上修改 - -监控配置定义文件是用来定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。 -我们直接复用 app-hertzbeat.yml 里面的定义内容,修改为我们当前的监控类型`hertzbeat_auth`配置参数, 比如 `app, category等`。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 todo 下方配置 -metrics: ...... - -``` - -### 定义监控指标`auth`登录请求获取`token` - -1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. - -```yaml - -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 -metrics: - # 第一个监控指标 auth - # 注意:内置监控指标有 (responseTime - 响应时间) - - name: auth - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: token - type: 1 - - field: refreshToken - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/account/auth/form - # 请求方式 GET POST PUT DELETE PATCH - method: POST - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # 请求头内容 - headers: - content-type: ^_^contentType^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data' - -``` - -**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下: ** - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` - -![](/img/docs/advanced/extend-http-example-5.png) - - -**新增成功后我们就可以在详情页面看到我们采集的 `token`, `refreshToken`指标数据。** - -![](/img/docs/advanced/extend-http-example-6.png) - -![](/img/docs/advanced/extend-http-example-7.png) - - - -### 将`token`作为变量参数给后面的监控指标采集使用 - -**在`app-hertzbeat_token.yml`新增一个监控指标定义 `summary` 同教程一中的`summary`相同, 设置采集优先级为1** -**设置此监控指标的HTTP协议配置中认证方式为 `Bearer Token` 将上一个监控指标`auth`采集的指标`token`作为参数给其赋值,使用`^o^`作为内部替换符标识,即`^o^token^o^`。如下:** - -```yaml - - name: summary -# 当protocol为http协议时具体的采集配置 - http: - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ -``` - -**最终`app-hertzbeat_token.yml`定义如下:** - -```yaml - -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - zh-CN: HertzBeat监控(Token) - en-US: HertzBeat Monitor(Token) -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 1157 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: ssl - name: - zh-CN: 启动SSL - en-US: SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: contentType - name: - zh-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - zh-CN: 请求BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# 采集指标配置列表 -metrics: -# 第一个监控指标 cpu -# 注意:内置监控指标有 (responseTime - 响应时间) - - name: auth - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: token - type: 1 - - field: refreshToken - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/account/auth/form - # 请求方式 GET POST PUT DELETE PATCH - method: POST - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # 请求头内容 - headers: - content-type: ^_^contentType^_^ - ^_^headers^_^: ^_^headers^_^ - # 请求参数内容 - params: - ^_^params^_^: ^_^params^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data' - - - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 1 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: category - type: 1 - - field: app - type: 1 - - field: size - type: 0 - - field: status - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /api/summary - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** - -![](/img/docs/advanced/extend-http-example-8.png) - -![](/img/docs/advanced/extend-http-example-9.png) - -### 设置阈值告警通知 - -> 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! - -如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-jsonpath.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-jsonpath.md deleted file mode 100644 index fb3a6ef36d9..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http-jsonpath.md +++ /dev/null @@ -1,168 +0,0 @@ ---- -id: extend-http-jsonpath -title: HTTP协议JsonPath解析方式 -sidebar_label: JsonPath解析方式 ---- -> HTTP接口调用获取响应数据后,用JsonPath脚本解析的解析方式去解析响应数据。 - -注意⚠️ 响应数据为JSON格式 - -**使用JsonPath脚本将响应数据解析成符合HertzBeat指定的数据结构规则的数据** - -#### JsonPath操作符 -[JSONPath在线验证](https://www.jsonpath.cn) - -| JSONPATH | 帮助描述 | -|------------------|-----------------------------------| -| $ | 根对象或元素 | -| @ | 当前对象或元素 | -| . or [] | 子元素操作符 | -| .. | 递归匹配所有子元素 | -| * | 通配符. 匹配所有对象或元素. | -| [] | 下标运算符,JsonPath索引从0开始 | -| [,] | 连接运算符,将多个结果拼成数组返回,JSONPath允许使用别名. | -| [start:end:step] | 数组切片运算符 | -| ?() | 过滤器(脚本)表达式. | -| () | 脚本表达式. | - -#### HertzBeat数据格式规范 -单层格式:key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -多层格式:数组里面套key-value -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` - -#### 样例 - -查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 -接口返回的原始数据如下: -```json -{ - "firstName": "John", - "lastName" : "doe", - "age" : 26, - "address" : { - "streetAddress": "naist street", - "city" : "Nara", - "postalCode" : "630-0192" - }, - "number": [ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } - ] -} -``` - -我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: -```json -[ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } -] -``` -此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 - -**对应的监控模版YML可以配置为如下** - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - cpu - # 监控指标 - cpu - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: type - type: 1 - label: true - - field: num - type: 0 -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/person - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # 这里使用jsonPath解析 - parseType: jsonPath - parseScript: '$.number[*]' -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http.md deleted file mode 100644 index c4175928195..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-http.md +++ /dev/null @@ -1,205 +0,0 @@ ---- -id: extend-http -title: HTTP协议自定义监控 -sidebar_label: HTTP协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 - -### HTTP协议采集流程 -【**HTTP接口调用**】->【**响应校验**】->【**响应数据解析**】->【**默认方式解析|JsonPath脚本解析 | XmlPath解析(todo) | Prometheus解析**】->【**指标数据提取**】 - -由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 -HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 - -**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) -**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- - -下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 - - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_http -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - # field-字段名称标识符 - - field: host - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # 是否是必输项 true-必填 false-可选 - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # 当type为number时,用range表示范围 - range: '[0,65535]' - required: true - # 端口默认值 - defaultValue: 80 - # 参数输入框提示信息 - placeholder: '请输入端口' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - # 当type为text时,用limit表示字符串限制大小 - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: ssl - name: - zh-CN: 启动SSL - en-US: Enable SSL - # 当type为boolean时,前端用switch展示开关 - type: boolean - required: false - - field: method - name: - zh-CN: 请求方式 - en-US: Method - type: radio - required: true - # 当type为radio单选框,checkbox复选框时,option表示可选项值列表 {name1:value1,name2:value2} - options: - - label: GET请求 - value: GET - - label: POST请求 - value: POST - - label: PUT请求 - value: PUT - - label: DELETE请求 - value: DELETE -# 采集指标配置列表 -metrics: -# 第一个监控指标 cpu -# 注意:内置监控指标有 (responseTime - 响应时间) - - name: cpu - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - label: true - - field: usage - type: 0 - unit: '%' - - field: cores - type: 0 - - field: waitTime - type: 0 - unit: s -# (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - hostname - - core1 - - core2 - - usage - - allTime - - runningTime -# (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 -# eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - hostname=hostname - - cores=core1+core2 - - usage=usage - - waitTime=allTime-runningTime -# 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# 当protocol为http协议时具体的采集配置 - http: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - # url请求接口路径 - url: /metrics/cpu - # 请求方式 GET POST PUT DELETE PATCH - method: GET - # 是否启用ssl/tls,即是http还是https,默认false - ssl: false - # 请求头内容 - headers: - apiVersion: v1 - # 请求参数内容 - params: - param1: param1 - param2: param2 - # 认证 - authorization: - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控 - # todo xmlPath-xmlPath脚本,prometheus-Prometheus数据规则 - parseType: jsonPath - parseScript: '$' - - - name: memory - priority: 1 - fields: - - field: hostname - type: 1 - label: true - - field: total - type: 0 - unit: kb - - field: usage - type: 0 - unit: '%' - - field: speed - type: 0 - protocol: http - http: - host: ^_^host^_^ - port: ^_^port^_^ - url: /metrics/memory - method: GET - headers: - apiVersion: v1 - params: - param1: param1 - param2: param2 - authorization: - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - parseType: default -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jdbc.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jdbc.md deleted file mode 100644 index f3453c6de80..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jdbc.md +++ /dev/null @@ -1,239 +0,0 @@ ---- -id: extend-jdbc -title: JDBC协议自定义监控 -sidebar_label: JDBC协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 -> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 - -### JDBC协议采集流程 -【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 - -由流程可见,我们自定义一个JDBC协议的监控类型,需要配置JDBC请求参数,配置获取哪些指标,配置查询SQL语句。 - -### 数据解析方式 -SQL查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有三种:oneRow, multiRow, columns - -#### **oneRow** -> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 - -例如: -查询的指标字段为:one tow three four -查询SQL:select one, tow, three, four from book limit 1; -这里指标字段就能和响应数据一一映射为一行采集数据。 - -#### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 - -例如: -查询的指标字段为:one tow three four -查询SQL:select one, tow, three, four from book; -这里指标字段就能和响应数据一一映射为多行采集数据。 - -#### **columns** -> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 - -例如: -查询字段:one tow three four -查询SQL:select key, value from book; -SQL响应数据: - -| key | value | -|----------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | - -这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_sql的自定义监控类型,其使用JDBC协议采集指标数据。 - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: db -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_sql -name: - zh-CN: 模拟MYSQL应用类型 - en-US: MYSQL EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 80 - placeholder: '请输入端口' - - field: database - name: - zh-CN: 数据库名称 - en-US: Database - type: text - required: false - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: url - name: - zh-CN: Url - en-US: Url - type: text - required: false -# 采集指标配置列表 -metrics: - - name: basic - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: version - type: 1 - label: true - - field: port - type: 1 - - field: datadir - type: 1 - - field: max_connections - type: 0 - # (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - version - - version_compile_os - - version_compile_machine - - port - - datadir - - max_connections - # (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - port=port - - datadir=datadir - - max_connections=max_connections - - version=version+"_"+version_compile_os+"_"+version_compile_machine - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global variables where Variable_name like 'version%' or Variable_name = 'max_connections' or Variable_name = 'datadir' or Variable_name = 'port'; - url: ^_^url^_^ - - - name: status - priority: 1 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: threads_created - type: 0 - - field: threads_connected - type: 0 - - field: threads_cached - type: 0 - - field: threads_running - type: 0 - # (非必须)监控指标别名,与上面的指标名映射。用于采集接口数据字段不直接是最终指标名称,需要此别名做映射转换 - aliasFields: - - threads_created - - threads_connected - - threads_cached - - threads_running - # (非必须)指标计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - threads_created=threads_created - - threads_connected=threads_connected - - threads_cached=threads_cached - - threads_running=threads_running - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'thread%' or Variable_name = 'com_commit' or Variable_name = 'com_rollback' or Variable_name = 'questions' or Variable_name = 'uptime'; - url: ^_^url^_^ - - - name: innodb - priority: 2 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: innodb_data_reads - type: 0 - unit: 次数 - - field: innodb_data_writes - type: 0 - unit: 次数 - - field: innodb_data_read - type: 0 - unit: kb - - field: innodb_data_written - type: 0 - unit: kb - protocol: jdbc - jdbc: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL查询方式: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'innodb%'; - url: ^_^url^_^ -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jmx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jmx.md deleted file mode 100644 index e1ce0dd90a3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-jmx.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-jmx -title: JMX协议自定义监控 -sidebar_label: JMX协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 -> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 - -### JMX协议采集流程 -【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 - -由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 - -### 数据解析方式 - -通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 - - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下监控模版的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: service -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: example_jvm -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: 自定义JVM虚拟机 - en-US: CUSTOM JVM -# Input params define for monitoring(render web ui by the definition) -# 监控所需输入参数定义(根据定义渲染页面UI) -params: - # field-param field key - # field-字段名称标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # 是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 端口默认值 - defaultValue: 9999 - # field-param field key - # field-变量字段标识符 - - field: url - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: JMX URL - en-US: JMX URL - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - # param field input placeholder - # 参数输入框提示信息 - placeholder: 'service:jmx:rmi:///jndi/rmi://host:port/jmxrmi' - # field-param field key - # field-变量字段标识符 - - field: username - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 用户名 - en-US: Username - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 20 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - # field-param field key - # field-变量字段标识符 - - field: password - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 密码 - en-US: Password - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: password - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - basic - # 监控指标 - basic - - name: basic - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: VmName - type: 1 - - field: VmVendor - type: 1 - - field: VmVersion - type: 1 - - field: Uptime - type: 0 - unit: ms - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - # 用于监控的协议,例: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: jmx - # the config content when protocol is jmx - jmx: - # host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # port - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - # jmx mbean object name - # jmx mbean 对象名称 - objectName: java.lang:type=Runtime - url: ^_^url^_^ - - - name: memory_pool - priority: 1 - fields: - - field: name - type: 1 - label: true - - field: committed - type: 0 - unit: MB - - field: init - type: 0 - unit: MB - - field: max - type: 0 - unit: MB - - field: used - type: 0 - unit: MB - units: - - committed=B->MB - - init=B->MB - - max=B->MB - - used=B->MB - # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field - # (可选)监控指标别名, 做为中间字段与采集数据字段和指标字段映射转换 - aliasFields: - - Name - - Usage->committed - - Usage->init - - Usage->max - - Usage->used - # mapping and conversion expressions, use these and aliasField above to calculate metrics value - # (可选)指标映射转换计算表达式,与上面的别名一起作用,计算出最终需要的指标值 - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - name=Name - - committed=Usage->committed - - init=Usage->init - - max=Usage->max - - used=Usage->used - protocol: jmx - jmx: - # host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # port - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - objectName: java.lang:type=MemoryPool,name=* - url: ^_^url^_^ -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-point.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-point.md deleted file mode 100644 index c951f1bc190..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-point.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -id: extend-point -title: 自定义监控 -sidebar_label: 自定义监控 ---- -> HertzBeat拥有自定义监控能力,您只需配置监控模版YML就能适配一款自定义的监控类型。 -> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 - -### 自定义流程 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- - -### 监控模版YML - -**HertzBeat的设计是一个监控模版对应一个监控类型,所有监控类型都是由监控模版来定义的**。 - -> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 - -下面使用样例详细介绍下这监控模版YML的配置用法。 - -样例:自定义一个 `app` 名称为 `example2` 的自定义监控类型,其使用HTTP协议采集指标数据。 - -[监控模版] -> [新增监控类型] -> [右边配置如下监控模版YML] -> [保存并应用] - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: example2 -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: 模拟网站监测 - en-US: EXAMPLE WEBSITE -# 监控所需输入参数定义(根据定义渲染页面UI) -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - # field-变量字段标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 默认值 - defaultValue: 80 - # field-param field key - # field-变量字段标识符 - - field: uri - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 相对路径 - en-US: URI - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 200 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # 参数输入框提示信息 - # param field input placeholder - placeholder: 'Website uri path(no ip port) EG:/console' - # field-param field key - # field-变量字段标识符 - - field: ssl - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 启用HTTPS - en-US: HTTPS - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: boolean - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: timeout - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input tag) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide param-true or false - # 是否隐藏字段 true or false - hide: true - -metrics: - # metrics - summary, inner monitoring metrics (responseTime - response time, keyword - number of keywords) - # 监控指标 - summary, 内置监控指标有 (responseTime - 响应时间, keyword - 关键字数量) - - name: summary - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: responseTime - type: 0 - unit: ms - - field: keyword - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url - url: ^_^uri^_^ - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH - method: GET - # if enabled https - ssl: ^_^ssl^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule - # http 响应数据解析方式: default-系统规则, jsonPath-jsonPath脚本, website-网站可用性指标监控, prometheus-Prometheus数据规则 - parseType: website - -``` - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-push.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-push.md deleted file mode 100644 index 7245afe2a12..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-push.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: extend-push -title: Push Style Custom Monitoring -sidebar_label: Push Style Custom Monitoring ---- - -> 推送方式监控是一种特殊的监控,允许用户配置数据格式并编写代码将指标推送到 Hertzbeat。 -> 下面我们将介绍如何使用这一功能。 - -### 推送方式监控的采集流程 - -【用户开始推送数据】->【HertzBeat推送模块暂存数据】->【HertzBeat采集模块定期采集数据】 - -### 数据解析方式 - -HertzBeat会使用用户添加新监控时配置的格式来解析数据。 - -### 创建监控步骤 - -HertzBeat页面 -> 应用服务监控 -> 推送方式监控 -> 新建推送方式监视器 -> 设置推送模块主机(Hertzbeat服务器ip,通常为127.0.0.1或localhost) -> 设置推送模块端口(hertzbeat服务器端口,通常为1157) -> 配置数据字段(单位:字符串表示,类型:0表示数字/1表示字符串)-> 结束 - ---- - -### 监控配置示例 - -![](/img/docs/advanced/extend-push-example-1.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-snmp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-snmp.md deleted file mode 100644 index 3ff65d60a17..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-snmp.md +++ /dev/null @@ -1,209 +0,0 @@ ---- -id: extend-snmp -title: SNMP协议自定义监控 -sidebar_label: SNMP协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 -> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 - -### SNMP协议采集流程 -【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 - -由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 - -### 数据解析方式 - -通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 - - - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: os -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: windows -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: Windows操作系统 - en-US: OS Windows -# 监控所需输入参数定义(根据定义渲染页面UI) -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - # field-变量字段标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 默认值 - defaultValue: 161 - # field-param field key - # field-变量字段标识符 - - field: version - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: SNMP 版本 - en-US: SNMP Version - # type-param field type(radio mapping the html radio tag) - # type-当type为radio时,前端用radio展示开关 - type: radio - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # when type is radio checkbox, use option to show optional values {name1:value1,name2:value2} - # 当type为radio单选框, checkbox复选框时, option表示可选项值列表 {name1:value1,name2:value2} - options: - - label: SNMPv1 - value: 0 - - label: SNMPv2c - value: 1 - # field-param field key - # field-变量字段标识符 - - field: community - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: SNMP 团体字 - en-US: SNMP Community - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: text - # when type is text, use limit to limit string length - # 当type为text时,用limit表示字符串限制大小 - limit: 100 - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # 参数输入框提示信息 - # param field input placeholder - placeholder: 'Snmp community for v1 v2c' - # field-param field key - # field-变量字段标识符 - - field: timeout - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,100000]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: false - # hide-is hide this field and put it in advanced layout - # hide-是否隐藏此参数将其放入高级设置中 - hide: true - # default value - # 默认值 - defaultValue: 6000 -# collect metrics config list -# 采集指标配置列表 -metrics: - # metrics - system - # 监控指标 - system - - name: system - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标采集调度优先级(0->127)->(优先级高->低) 优先级低的指标会等优先级高的指标采集完成后才会被调度, 相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - # field-指标名称, type-指标类型(0-number数字,1-string字符串), unit-指标单位('%','ms','MB'), instance-是否是指标集合唯一标识符字段 - - field: name - type: 1 - - field: descr - type: 1 - - field: uptime - type: 1 - - field: numUsers - type: 0 - - field: services - type: 0 - - field: processes - type: 0 - - field: responseTime - type: 0 - unit: ms - - field: location - type: 1 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: snmp - # the config content when protocol is snmp - snmp: - # server host: ipv4 ipv6 domain - host: ^_^host^_^ - # server port - port: ^_^port^_^ - # snmp connect timeout - timeout: ^_^timeout^_^ - # snmp community - # snmp 团体字 - community: ^_^community^_^ - # snmp version - version: ^_^version^_^ - # snmp operation: get, walk - operation: get - # metrics oids: metric_name - oid_value - oids: - name: 1.3.6.1.2.1.1.5.0 - descr: 1.3.6.1.2.1.1.1.0 - uptime: 1.3.6.1.2.1.25.1.1.0 - numUsers: 1.3.6.1.2.1.25.1.5.0 - services: 1.3.6.1.2.1.1.7.0 - processes: 1.3.6.1.2.1.25.1.6.0 - location: 1.3.6.1.2.1.1.6.0 -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-ssh.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-ssh.md deleted file mode 100644 index a38086f8dd9..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-ssh.md +++ /dev/null @@ -1,208 +0,0 @@ ---- -id: extend-ssh -title: SSH协议自定义监控 -sidebar_label: SSH协议自定义监控 ---- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 -> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 - -### SSH协议采集流程 -【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 - -由流程可见,我们自定义一个SSH协议的监控类型,需要配置SSH请求参数,配置获取哪些指标,配置查询脚本语句。 - -### 数据解析方式 -SHELL脚本查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有两种:oneRow, multiRow,能满足绝大部分指标需求。 - -#### **oneRow** -> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 - -例如: -需要查询Linux的指标 hostname-主机名称,uptime-启动时间 -主机名称原始查询命令:`hostname` -启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` -则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): -`hostname; uptime | awk -F "," '{print $1}'` -终端响应的数据为: -``` -tombook -14:00:15 up 72 days -``` -则最后采集到的指标数据一一映射为: -hostname值为 `tombook` -uptime值为 `14:00:15 up 72 days` - -这里指标字段就能和响应数据一一映射为一行采集数据。 - -#### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 - -例如: -查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 -内存指标原始查询命令为:`free -m`, 控制台响应: -```shell - total used free shared buff/cache available -Mem: 7962 4065 333 1 3562 3593 -Swap: 8191 33 8158 -``` -在hertzbeat中multiRow格式解析需要响应数据列名称和指标值一一映射,则对应的查询SHELL脚本为: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -控制台响应为: -```shell -total used free buff_cache available -7962 4066 331 3564 3592 -``` - -这里指标字段就能和响应数据一一映射为采集数据。 - -### 自定义步骤 - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** - -![](/img/docs/advanced/extend-point-1.png) - -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 - -### 监控模版YML - -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 -> 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 - -样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 - - -```yaml -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: os -# 监控应用类型(与文件名保持一致) eg: linux windows tomcat mysql aws... -app: example_linux -name: - zh-CN: 模拟LINUX应用类型 - en-US: LINUX EXAMPLE APP -# 监控参数定义. field 这些为输入参数变量,即可以用^_^host^_^的形式写到后面的配置中,系统自动变量值替换 -# 强制固定必须参数 - host -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 22 - placeholder: '请输入端口' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: true -# collect metrics config list -# 采集指标配置列表 -metrics: - # 第一个监控指标 basic - # 注意:内置监控指标有 (responseTime - 响应时间) - - name: basic - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # 具体监控指标列表 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: hostname - type: 1 - label: true - - field: version - type: 1 - - field: uptime - type: 1 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: (uname -r ; hostname ; uptime | awk -F "," '{print $1}' | sed "s/ //g") | sed ":a;N;s/\n/^/g;ta" | awk -F '^' 'BEGIN{print "version hostname uptime"} {print $1, $2, $3}' - # 响应数据解析方式:oneRow, multiRow - parseType: multiRow - - - name: cpu - priority: 1 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: info - type: 1 - - field: cores - type: 0 - unit: 核数 - - field: interrupt - type: 0 - unit: 个数 - - field: load - type: 1 - - field: context_switch - type: 0 - unit: 个数 - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: "LANG=C lscpu | awk -F: '/Model name/ {print $2}';awk '/processor/{core++} END{print core}' /proc/cpuinfo;uptime | sed 's/,/ /g' | awk '{for(i=NF-2;i<=NF;i++)print $i }' | xargs;vmstat 1 1 | awk 'NR==3{print $11}';vmstat 1 1 | awk 'NR==3{print $12}'" - parseType: oneRow - - - name: memory - priority: 2 - fields: - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: total - type: 0 - unit: Mb - - field: used - type: 0 - unit: Mb - - field: free - type: 0 - unit: Mb - - field: buff_cache - type: 0 - unit: Mb - - field: available - type: 0 - unit: Mb - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # 当protocol为http协议时具体的采集配置 - ssh: - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # 端口 - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}' - parseType: multiRow -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-tutorial.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-tutorial.md deleted file mode 100644 index a639a13a8b9..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/advanced/extend-tutorial.md +++ /dev/null @@ -1,255 +0,0 @@ ---- -id: extend-tutorial -title: 自定义适配一款基于HTTP协议的新监控类型 -sidebar_label: 教程案例 ---- - -通过此教程我们一步一步描述如何在hertzbeat监控系统下自定义新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 - - -### HTTP协议解析通用响应结构体,获取指标数据 - -> 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API -`http://localhost:1157/api/summary`, 其响应数据为: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - - -### 新增配置监控模版YML - -**HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** - -定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 - -定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。我们直接复用 `api`监控模版 里面的定义内容,修改为我们当前的监控类型`hertzbeat`配置参数即可,如下:注意⚠️我们这次获取接口响应数据中的`category`,`app`,`status`,`size`,`availableSize`等字段作为指标数据。 - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -# 监控类型 eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -# 监控类型国际化名称 -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -# 监控所需输入参数定义(根据定义渲染页面UI) -params: - # field-param field key - # field-字段名称标识符 - - field: host - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: host - # required-true or false - # 是否是必输项 true-必填 false-可选 - required: true - # field-param field key - # field-变量字段标识符 - - field: port - # name-param field display i18n name - # name-参数字段显示名称 - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - # type-字段类型,样式(大部分映射input标签type属性) - type: number - # when type is number, range is required - # 当type为number时,用range表示范围 - range: '[0,65535]' - # required-true or false - # required-是否是必输项 true-必填 false-可选 - required: true - # default value - # 端口默认值 - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - # 指标调度优先级(0-127)越小优先级越高,优先级低的指标会等优先级高的指标采集完成后才会被调度,相同优先级的指标会并行调度采集 - # 优先级为0的指标为可用性指标,即它会被首先调度,采集成功才会继续调度其它指标,采集失败则中断调度 - priority: 0 - # collect metrics content - # 具体监控指标列表 - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - # 指标信息 包括 field名称 type字段类型:0-number数字,1-string字符串 label是否为标签 unit:指标单位 - - field: app - type: 1 - label: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - # 监控采集使用协议 eg: sql, ssh, http, telnet, wmi, snmp, sdk, 我们这里使用HTTP协议 - protocol: http - # the config content when protocol is http - # 当protocol为http协议时具体的采集配置 - http: - # http host: ipv4 ipv6 domain - # 主机host: ipv4 ipv6 域名 - host: ^_^host^_^ - # http port - # 端口 - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - # url请求接口路径,我们这里不需要输入传参,写死为 /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - # 请求方式 GET POST PUT DELETE PATCH,写死为 GET - method: GET - # if enabled https, default value is false - # 是否启用ssl/tls,即是http还是https,默认false - ssl: ^_^ssl^_^ - # http auth - # 认证 - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - # 认证方式: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - # 响应数据解析方式: default-系统规则,jsonPath-jsonPath脚本,website-网站可用性指标监控,我们这里使用jsonpath来解析响应数据 - parseType: jsonPath - parseScript: '$.data.apps.*' -``` - -**点击保存并应用。我们可以看到系统页面的自定义监控菜单已经多了一个`hertzbeat`监控类型了。** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### 页面添加对`hertzbeat`监控类型的监控 - -> 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### 设置阈值告警通知 - -> 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - - ----- - -#### 完! - -HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数 `headers,params` 等,我们可以像用postman一样去定义它,可玩性也非常高! - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/activemq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/activemq.md deleted file mode 100644 index b2d8f1489f5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/activemq.md +++ /dev/null @@ -1,144 +0,0 @@ ---- -id: activemq -title: 监控 Apache ActiveMQ 消息中间件 -sidebar_label: ActiveMQ消息中间件 -keywords: [开源监控系统, 开源中间件监控, ActiveMQ消息中间件监控] ---- - -> 对 Apache ActiveMQ 消息中间件的运行状态,节点,Topic等相关指标进行监测。 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 ActiveMQ 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 ActiveMQ 进行指标采集。 - -1. 修改安装目录下的 `conf/activemq.xml` 文件,开启JMX - -> 在 `broker` 标签中添加 `userJmx="true"` 属性 - -```xml - - - -``` - -2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 - -将如下原配置信息 -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` -更新为如下配置,⚠️注意修改`本机对外IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -3. 重启 ACTIVEMQ 服务,在 HertzBeat 添加对应 ActiveMQ 监控即可,参数使用 JMX 配置的 IP 端口。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | -| JMX URL | 可选,自定义 JMX URL 连接 | -| 用户名 | 认证时使用的用户名 | -| 密码 | 认证时使用的密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:broker - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-----------------------------------------------------------------------| -| BrokerName | 无 | The name of the broker. | -| BrokerVersion | 无 | The version of the broker. | -| Uptime | 无 | Uptime of the broker. | -| UptimeMillis | ms | Uptime of the broker in milliseconds. | -| Persistent | 无 | Messages are synchronized to disk. | -| MemoryPercentUsage | % | Percent of memory limit used. | -| StorePercentUsage | % | Percent of store limit used. | -| TempPercentUsage | % | Percent of temp limit used. | -| CurrentConnectionsCount | 无 | Attribute exposed for management | -| TotalConnectionsCount | 无 | Attribute exposed for management | -| TotalEnqueueCount | 无 | Number of messages that have been sent to the broker. | -| TotalDequeueCount | 无 | Number of messages that have been acknowledged on the broker. | -| TotalConsumerCount | 无 | Number of message consumers subscribed to destinations on the broker. | -| TotalProducerCount | 无 | Number of message producers active on destinations on the broker. | -| TotalMessageCount | 无 | Number of unacknowledged messages on the broker. | -| AverageMessageSize | 无 | Average message size on this broker | -| MaxMessageSize | 无 | Max message size on this broker | -| MinMessageSize | 无 | Min message size on this broker | - -#### 指标集合:topic - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | 无 | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | 无 | The percentage of the memory limit used | -| ProducerCount | 无 | Number of producers attached to this destination | -| ConsumerCount | 无 | Number of consumers subscribed to this destination. | -| EnqueueCount | 无 | Number of messages that have been sent to the destination. | -| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | 无 | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/airflow.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/airflow.md deleted file mode 100644 index 5323ede8110..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/airflow.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: airflow -title: 监控:Apache Airflow监控 -sidebar_label: Apache Airflow -keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ---- - -> 对Apache Airflow通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:airflow_health - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | - -#### 指标集合:airflow_version - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_console.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_console.md deleted file mode 100644 index 68cf7339eae..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_console.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: alert_console -title: 告警模板中自定义的控制台地址 -sidebar_label: 告警模板登录台地址 ---- - -> 阈值触发后发送告警信息,通过钉钉/企业微信/飞书机器人通知或者使用邮箱通知的时候,告警内容中有登录控制台的详情链接 - - -### 自定义设置 - -在我们的启动配置文件application.yml中,找到下面的配置 -```yml -alerter: - console-url: #这里就是我们的自定义控制台地址 -``` - -默认值是赫兹跳动的官方控制台地址 \ No newline at end of file diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_dingtalk.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_dingtalk.md deleted file mode 100644 index aec6342f7d3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_dingtalk.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: alert_dingtalk -title: 告警钉钉机器人通知 -sidebar_label: 告警钉钉机器人通知 -keywords: [告警钉钉机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 - -### 操作步骤 - -1. **【钉钉桌面客户端】-> 【群设置】-> 【智能群助手】-> 【添加新建机器人-选自定义】-> 【设置机器人名称头像】-> 【注意⚠️设置自定义关键字: HertzBeat】 ->【添加成功后复制其WebHook地址】** - -> 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 - -![email](/img/docs/help/alert-notice-8.png) - -2. **【保存机器人的WebHook地址access_token值】** - -> 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` - -3. **【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】** - -![email](/img/docs/help/alert-notice-9.png) - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 钉钉机器人通知常见问题 - -1. 钉钉群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查钉钉机器人是否配置了安全自定义关键字:HertzBeat -> 请排查是否配置正确机器人ACCESS_TOKEN,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_discord.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_discord.md deleted file mode 100644 index d6c4879a2ba..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_discord.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: alert_discord -title: 告警 Discord 机器人通知 -sidebar_label: 告警 Discord 机器人通知 -keywords: [告警 Discord 机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token - -1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 - -![bot](/img/docs/help/discord-bot-1.png) - -2. 在应用下创建机器人,获取机器人 Token - -![bot](/img/docs/help/discord-bot-2.png) - -![bot](/img/docs/help/discord-bot-3.png) - -3. 授权机器人到聊天服务器 - -> 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` - -![bot](/img/docs/help/discord-bot-4.png) - -> 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 - -4. 查看您的聊天服务器是否已经加入机器人成员 - -![bot](/img/docs/help/discord-bot-5.png) - -### 开启开发者模式,获取频道 Channel ID - -1. 个人设置 -> 高级设置 -> 开启开发者模式 - -![bot](/img/docs/help/discord-bot-6.png) - -2. 获取频道 Channel ID - -> 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID - -![bot](/img/docs/help/discord-bot-7.png) - - -### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot - -1. **【告警通知】->【新增接收人】 ->【选择 Discord 机器人通知方式】->【设置机器人Token和ChannelId】-> 【确定】** - -![email](/img/docs/help/discord-bot-8.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Discord 机器人通知常见问题 - -1. Discord 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 -> 请排查机器人是否被 Discord聊天服务器正确赋权 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_email.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_email.md deleted file mode 100644 index 7033f6036d6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_email.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_email -title: 告警邮件通知 -sidebar_label: 告警邮件通知 -keywords: [告警邮件通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过邮件通知到接收人。 - -### 操作步骤 - -1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** - -![email](/img/docs/help/alert-notice-1.png) - -2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** -![email](/img/docs/help/alert-notice-2.png) - -![email](/img/docs/help/alert-notice-3.png) - -3. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 邮件通知常见问题 - -1. 自己内网部署的HertzBeat无法接收到邮件通知 -> HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 - -2. 云环境TanCloud无法接收到邮件通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确邮箱,是否已配置告警策略关联 -> 请查询邮箱的垃圾箱里是否把告警邮件拦截 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_enterprise_wechat_app.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_enterprise_wechat_app.md deleted file mode 100644 index 3f1c5a2b9c1..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_enterprise_wechat_app.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_enterprise_wechat_app -title: 企业微信应用告警通知 -sidebar_label: 企业微信应用告警通知 -keywords: [开源告警系统, 开源监控告警系统, 企业微信应用告警通知] ---- - -> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. - -### Operation steps - -1. **【企业微信后台管理】-> 【App管理】-> 【创建一个新的应用】-> 【设置应用信息】->【添加成功后复制应用的AgentId和Secret】** - -![email](/img/docs/help/alert-wechat-1.jpg) - -2. **【告警通知】->【新增接收人】 ->【选择企业微信应用通知方式】->【设置企业ID,企业应用id和应用的secret 】-> 【确定】** - -![email](/img/docs/help/alert-wechat-2.jpg) - -3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** - -![email](/img/docs/help/alert-wechat-3.jpg) - - -### 企业微信应用通知常见问题 - -1. 企业微信应用未收到告警通知. -> 请检查用户是否具有应用程序权限. -> 请检查企业应用程序回调地址设置是否正常. -> 请检查服务器IP是否在企业应用程序白名单上. - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_feishu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_feishu.md deleted file mode 100644 index 448e70de223..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_feishu.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_feishu -title: 告警飞书机器人通知 -sidebar_label: 告警飞书机器人通知 -keywords: [告警飞书机器人通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 - -### 操作步骤 - -1. **【飞书客户端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** - -2. **【保存机器人的WebHook地址的KEY值】** - -> 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【告警通知】->【新增接收人】 ->【选择飞书机器人通知方式】->【设置飞书机器人KEY】-> 【确定】** - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 飞书机器人通知常见问题 - -1. 飞书群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_slack.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_slack.md deleted file mode 100644 index f2cc7a76673..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_slack.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_slack -title: 告警 Slack Webhook 通知 -sidebar_label: 告警 Slack Webhook 通知 -keywords: [告警 Slack Webhook 通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Slack 开启 Webhook, 获取 Webhook URL - -参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) - -### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook - -1. **【告警通知】->【新增接收人】 ->【选择 Slack Webhook 通知方式】->【设置 Webhook URL】-> 【确定】** - -![email](/img/docs/help/slack-bot-1.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Slack 机器人通知常见问题 - -1. Slack 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_smn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_smn.md deleted file mode 100644 index 73f434a8e8a..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_smn.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: alert_smn -title: 华为云SMN通知 -sidebar_label: 告警华为云SMN通知 -keywords: [ 告警华为云SMN通知, 开源告警系统, 开源监控告警系统 ] ---- - -> 阈值触发后发送告警信息,通过华为云SMN通知到接收人。 - -### 操作步骤 - -1. **按照[华为云SMN官方文档](https://support.huaweicloud.com/qs-smn/smn_json.html)开通SMN服务并配置SMN** - -![alert-notice-10](/img/docs/help/alert-notice-10.png) - -2. **保存SMN的主题URN** - -![alert-notice-11](/img/docs/help/alert-notice-11.png) - -3. **按照[华为云签名文档](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html)获取AK、SK和项目ID** - -![alert-notice-12](/img/docs/help/alert-notice-12.png) - -![alert-notice-13](/img/docs/help/alert-notice-13.png) - -4. **【告警通知】->【新增接收人】 ->【选择华为云SMN通知方式】->【设置华为云SMN AK、SK等配置】-> 【确定】** - -![alert-notice-14](/img/docs/help/alert-notice-14.png) - -5. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - -### 华为云SMN通知常见问题 - -1. 华为云SMN群未收到告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否正确配置华为云SMN AK、SK等配置,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_telegram.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_telegram.md deleted file mode 100644 index 6730aa19dcb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_telegram.md +++ /dev/null @@ -1,68 +0,0 @@ ---- -id: alert_telegram -title: 告警 Telegram 机器人通知 -sidebar_label: 告警 Telegram 机器人通知 -keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 - -## 操作步骤 - -> 部署网络本身需支持科学上网,不支持设置代理 - -### 在 Telegram 创建机器人, 获取 Bot Token 和 UserId - -1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. 获取接收人的 `User ID` - -**使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, -访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` - -```json -{ - "ok":true, - "result":[ - { - "update_id":632299191, - "message":{ - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date":1673858065, - "text":"111" - } - } - ] -} -``` - -3. 记录保存我们获得的 `Token` 和 `User Id` - -### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot - -1. **【告警通知】->【新增接收人】 ->【选择 Telegram 机器人通知方式】->【设置机器人Token和UserId】-> 【确定】** - -![email](/img/docs/help/telegram-bot-2.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 - -![email](/img/docs/help/alert-notice-policy.png) - - -### Telegram 机器人通知常见问题 - -1. Telegram 未收到机器人告警通知 - -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 -> UserId 应为消息接收对象的UserId - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold.md deleted file mode 100644 index 42a711c5916..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_threshold -title: 阈值告警配置 -sidebar_label: 阈值告警配置 ---- - -> 对监控指标配置告警阈值(警告告警,严重告警,紧急告警),系统根据阈值配置和采集指标数据计算触发告警。 - -### 操作步骤 - -1. **【告警配置】->【新增阈值】-> 【配置后确定】** - -![threshold](/img/docs/help/alert-threshold-1.png) - -如上图: - -**指标对象**:选择我们需要配置阈值的监控指标对象 例如:网站监控类型下的 -> summary指标集合下的 -> responseTime响应时间指标 -**阈值触发表达式**:根据此表达式来计算判断是否触发阈值,表达式环境变量和操作符见页面提示,例如:设置响应时间大于50触发告警,表达式为 `responseTime > 50`。阈值表达式详细帮助见 [阈值表达式帮助](alert_threshold_expr) -**告警级别**:触发阈值的告警级别,从低到高依次为:警告-warning,严重-critical,紧急-emergency -**触发次数**:设置触发阈值多少次之后才会真正的触发告警 -**通知模版**:告警触发后发送的通知信息模版,模版环境变量见页面提示,例如:`${app}.${metrics}.${metric}指标的值为${responseTime},大于50触发告警` -**全局默认**: 设置此阈值是否对全局的此类指标都应用有效,默认否。新增阈值后还需将阈值与监控对象关联,这样阈值才会对此监控生效。 -**启用告警**:此告警阈值配置开启生效或关闭 - -2. ** 阈值关联监控⚠️ 【告警配置】-> 【将刚设置的阈值】-> 【配置关联监控】-> 【配置后确定】** - -> ** 注意⚠️ 新增阈值后还需将阈值与监控对象关联(即设置此阈值对哪些监控有效),这样阈值才会对此监控生效 **。 - -![threshold](/img/docs/help/alert-threshold-2.png) - -![threshold](/img/docs/help/alert-threshold-3.png) - -**阈值告警配置完毕,已经被成功触发的告警信息可以在【告警中心】看到。** -**若需要将告警信息邮件,微信,钉钉飞书通知给相关人员,可以在【告警通知】配置。** - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold_expr.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold_expr.md deleted file mode 100644 index 14fbcdb13dc..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold_expr.md +++ /dev/null @@ -1,53 +0,0 @@ ---- -id: alert_threshold_expr -title: 阈值触发表达式 -sidebar_label: 阈值触发表达式 ---- - -> 在我们配置阈值告警时,需要配置阈值触发表达式,系统根据表达式和监控指标值计算触发是否告警,这里详细介绍下表达式使用。 - -#### 表达式支持的操作符 - -``` -equals(str1,str2) -== -< -<= -> ->= -!= -( ) -+ -- -&& -|| -``` - -丰富的操作符让我们可以很自由的定义表达式。 -注意⚠️ 字符串的相等请用 `equals(str1,str2)` 数字类型的相等判断请用== 或 != - -#### 表达式函数库列表 - -参考: https://www.yuque.com/boyan-avfmj/aviatorscript/ashevw - -#### 支持的环境变量 -> 环境变量即指标值等支持的变量,用于在表达式中,阈值计算判断时会将变量替换成实际值进行计算 - -非固定环境变量:这些变量会根据我们选择的监控指标对象而动态变化,例如我们选择了**网站监控的响应时间指标**,则环境变量就有 `responseTime - 此为响应时间变量` -如果我们想设置**网站监控的响应时间大于400时**触发告警,则表达式为 `responseTime>400` - -固定环境变量(不常用):`instance : 所属行实例值` -此变量主要用于计算多实例时,比如采集到c盘d盘的`usage`(`usage为非固定环境变量`),我们只想设置**c盘的usage大于80**时告警,则表达式为 `equals(instance,"c")&&usage>80` - -#### 表达式设置案例 - -1. 网站监控->响应时间大于等于400ms时触发告警 -`responseTime>=400` -2. API监控->响应时间大于3000ms时触发告警 -`responseTime>3000` -3. 全站监控->URL(instance)路径为 `https://baidu.com/book/3` 的响应时间大于200ms时触发告警 -`equals(instance,"https://baidu.com/book/3")&&responseTime>200` -4. MYSQL监控->status指标->threads_running(运行线程数)指标大于7时触发告警 -`threads_running>7` - -若遇到问题可以通过交流群ISSUE交流反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_webhook.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_webhook.md deleted file mode 100644 index 61ed1dc99b5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_webhook.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: alert_webhook -title: 告警 Webhook 回调通知 -sidebar_label: 告警 Webhook 回调通知 -keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 - -## 操作步骤 - -1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** - -![email](/img/docs/help/alert-notice-5.png) - -2. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - -### WebHook回调POST请求体BODY内容 - -内容格式:JSON -```json -{ - "alarmId": 76456, - "target": "${target}", - "thresholdId": 33455, - "priority": 0, - "content": "udp_port monitoring availability alert, code is FAIL", - "status": 0, - "times": 1, - "triggerTime": "2022-02-25T13:32:13", - "tags": { - "app": "windows", - "monitorId": "180427708350720", - "metrics": "availability", - "code": "UN_CONNECTABLE", - "thresholdId": "112", - "monitorName": "WINDOWS_192.168.124.12" - } -} -``` - -| | | -|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| tags | example: {key1:value1} | - -### webhook通知常见问题 - -1. WebHook回调未生效 -> 请查看告警中心是否已经产生此条告警信息 -> 请排查配置的WebHook回调地址是否正确 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_wework.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_wework.md deleted file mode 100644 index ce73c131d00..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_wework.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_wework -title: 告警企业微信通知 -sidebar_label: 告警企业微信通知 -keywords: [告警企业微信通知, 开源告警系统, 开源监控告警系统] ---- - -> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 - -### 操作步骤 - -1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** - -![email](/img/docs/help/alert-notice-6.jpg) - -2. **【保存机器人的WebHook地址的KEY值】** - -> 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** - -![email](/img/docs/help/alert-notice-7.png) - -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** - -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 - -![email](/img/docs/help/alert-notice-4.png) - - -### 企业微信机器人通知常见问题 - -1. 企业微信群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/api.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/api.md deleted file mode 100644 index 0714499be71..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/api.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: api -title: 监控:HTTP API -sidebar_label: HTTP API -keywords: [开源监控系统, 开源网站监控, HTTP API监控] ---- - -> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | -| 密码 | 接口Basic认证或Digest认证时使用的密码 | -| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | -| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/centos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/centos.md deleted file mode 100644 index 03c514bc7b8..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/centos.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: centos -title: 监控:CentOS操作系统监控 -sidebar_label: CentOS操作系统 -keywords: [开源监控系统, 开源操作系统监控, CentOS操作系统监控] ---- - -> 对CentOS操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dm.md deleted file mode 100644 index cdd9f6f6ee5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dm.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: dm -title: 监控:达梦数据库监控 -sidebar_label: 达梦数据库 -keywords: [开源监控系统, 开源数据库监控, 达梦数据库监控] ---- - -> 对DM达梦数据库的通用性能指标进行采集监控。支持DM8+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5236。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------------ | -| PORT_NUM | 无 | 数据库暴露服务端口 | -| CTL_PATH | 无 | 控制文件路径 | -| MAX_SESSIONS | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| status$ | 无 | DM数据库的开闭状态 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | ---------------------------------------------- | -| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | -| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | -| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/docker.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/docker.md deleted file mode 100644 index 221776b2426..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/docker.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: docker -title: 监控:Docker 监控 -sidebar_label: Docker 容器监控 -keywords: [开源监控系统, 开源容器监控, Docker容器监控] ---- - -> 对Docker容器的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要监控 `Docker` 中的容器信息,则需要按照一下步骤打开端口,让采集请求获取到对应的信息。 - -**1、编辑docker.server文件:** - -```shell -vi /usr/lib/systemd/system/docker.service -``` - -找到 **[Service]** 节点,修改 ExecStart 属性,增加 `-H tcp://0.0.0.0:2375` - -```shell -ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -``` - -这样相当于对外开放的是 **2375** 端口,当然也可以根据自己情况修改成其他的。 - -**2、重新加载Docker配置生效:** - -```shell -systemctl daemon-reload -systemctl restart docker -``` - -**注意:记得在服务器中打开 `2375` 端口号。** - -**3、如果上述方法不行则:** - -在服务器内部打开 `2375` 端口号。 - -```shell -firewall-cmd --zone=public --add-port=2375/tcp --permanent -firewall-cmd --reload -``` - - - - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为2375。 | -| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 器名称 | 一般是监控所有运行中的容器信息。 | -| 用户名 | 连接用户名,可选 | -| 密码 | 连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | -------------------------------------- | -| Name | 无 | 服务器名称 | -| version | 无 | docker本版号 | -| os | 无 | 服务器版本 例如:linux x86_64 | -| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | -| containers | 无 | 容器总数(在运行+未运行) | -| containers_running | 无 | 运行中的容器数目 | -| containers_paused | 无 | 暂停中的容器数目 | -| images | 无 | 容器景象的总数目。 | -| ncpu | 无 | NCPU | -| mem_total | MB | 占用的内存总大小 | -| system_time | 无 | 系统时间 | - -#### 指标集合:containers - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| id | 无 | Docker中容器的ID | -| name | 无 | Docker容器中的容器名称 | -| image | 无 | Docker容器使用的镜像 | -| command | 无 | Docker中的默认启动命令 | -| state | 无 | Docker中容器的运行状态 | -| status | 无 | Docker容器中的更新时间 | - -#### 指标集合:stats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ---------------------------- | -| name | 无 | Docker容器中的名字 | -| available_memory | MB | Docker容器可以利用的内存大小 | -| used_memory | MB | Docker容器已经使用的内存大小 | -| memory_usage | 无 | Docker容器的内存使用率 | -| cpu_delta | 无 | Docker容器已经使用的CPU数量 | -| number_cpus | 无 | Docker容器可以使用的CPU数量 | -| cpu_usage | 无 | Docker容器CPU使用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dynamic_tp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dynamic_tp.md deleted file mode 100644 index e3e143c17ed..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/dynamic_tp.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: dynamic_tp -title: 监控:DynamicTp 线程池监控 -sidebar_label: DynamicTp线程池监控 -keywords: [开源监控系统, 开源中间件监控, DynamicTp线程池监控] ---- - -> 对DynamicTp actuator 暴露的线程池性能指标进行采集监控。 - -### 前提 - -1. 集成使用 `DynamicTp` - -`DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 - -集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) - -2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4 GB", - "totalMemory": "444 MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81 GB" - } -] -``` - -3. 在HertzBeat中间件监控下添加DynamicTp监控即可 - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | - | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:thread_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------------------| -| pool_name | 无 | 线程池名称 | -| core_pool_size | 无 | 核心线程数 | -| maximum_pool_size | 无 | 最大线程数 | -| queue_type | 无 | 任务队列类型 | -| queue_capacity | MB | 任务队列容量 | -| queue_size | 无 | 任务队列当前占用大小 | -| fair | 无 | 队列模式,SynchronousQueue会用到 | -| queue_remaining_capacity | MB | 任务队列剩余大小 | -| active_count | 无 | 活跃线程数 | -| task_count | 无 | 任务总数 | -| completed_task_count | 无 | 已完成任务数 | -| largest_pool_size | 无 | 历史最大线程数 | -| pool_size | 无 | 当前线程数 | -| wait_task_count | 无 | 等待执行任务数 | -| reject_count | 无 | 拒绝任务数 | -| reject_handler_name | 无 | 拒绝策略类型 | -| dynamic | 无 | 是否动态线程池 | -| run_timeout_count | 无 | 运行超时任务数 | -| queue_timeout_count | 无 | 等待超时任务数 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/fullsite.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/fullsite.md deleted file mode 100644 index f7fc4c150b7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/fullsite.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: fullsite -title: 监控:全站监控 -sidebar_label: 全站监控 -keywords: [开源监控系统, 开源网站监控, SiteMap监控] ---- - -> 对网站的全部页面监测是否可用 -> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 -> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| url | 无 | 网页的URL路径 | -| statusCode | 无 | 请求此网页的响应HTTP状态码 | -| responseTime | ms毫秒 | 网站响应时间 | -| errorMsg | 无 | 请求此网站反馈的错误信息 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/guide.md deleted file mode 100644 index 7d177cfe868..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/guide.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: guide -title: 帮助中心 -sidebar_label: 帮助入门 ---- - -> 易用友好的实时监控工具,无需Agent,强大自定义监控能力。 -> 使用过程中的帮助文档,辅助信息。 - -## 🔬 监控服务 - -> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 -> 规划的监控类型:应用服务,数据库,操作系统,云原生,开源中间件 - -### 应用服务监控 - -  👉 [网站监测](website)
-  👉 [HTTP API](api)
-  👉 [PING连通性](ping)
-  👉 [端口可用性](port)
-  👉 [全站监控](fullsite)
-  👉 [SSL证书有效期](ssl_cert)
-  👉 [JVM虚拟机](jvm)
-  👉 [SpringBoot2.0](springboot2)
- -### 数据库监控 - -  👉 [MYSQL数据库监控](mysql)
-  👉 [MariaDB数据库监控](mariadb)
-  👉 [PostgreSQL数据库监控](postgresql)
-  👉 [SqlServer数据库监控](sqlserver)
-  👉 [Oracle数据库监控](oracle)
-  👉 [达梦数据库监控](dm)
-  👉 [OpenGauss数据库监控](opengauss)
-  👉 [IoTDB数据库监控](iotdb)
- -### 操作系统监控 - -  👉 [Linux操作系统监控](linux)
-  👉 [Windows操作系统监控](windows)
-  👉 [Ubuntu操作系统监控](ubuntu)
-  👉 [Centos操作系统监控](centos)
- -### 中间件监控 - -  👉 [Zookeeper](zookeeper)
-  👉 [Kafka](kafka)
-  👉 [Tomcat](tomcat)
-  👉 [ShenYu](shenyu)
-  👉 [DynamicTp](dynamic_tp)
-  👉 [RabbitMQ](rabbitmq)
-  👉 [ActiveMQ](activemq)
-  👉 [Jetty](jetty)
- -### 云原生监控 - -  👉 [Docker](docker)
-  👉 [Kubernetes](kubernetes)
- -## 💡 告警服务 - -> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 -> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 - -### 告警中心 - -> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 - -### 告警配置 - -> 指标阈值配置,提供表达式形式的指标阈值配置,可设置告警级别,触发次数,告警通知模版和是否启用,关联监控等功能。 - -详见 👉 [阈值告警](alert_threshold)
-   👉 [阈值表达式](alert_threshold_expr) - -### 告警通知 - -> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 -> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 -> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。 - - - 👉 [配置邮箱通知](alert_email)
- 👉 [配置 Webhook 通知](alert_webhook)
- 👉 [配置 Telegram 通知](alert_telegram)
- 👉 [配置 Discord 通知](alert_discord)
- 👉 [配置 Slack 通知](alert_slack)
- 👉 [配置企业微信机器人通知](alert_wework)
- 👉 [配置钉钉机器人通知](alert_dingtalk)
- 👉 [配置飞书机器人通知](alert_feishu)
- 👉 [配置华为云SMN通知](alert_smn)
diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hadoop.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hadoop.md deleted file mode 100644 index fec361e2366..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hadoop.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -id: hadoop -title: 监控:Hadoop -sidebar_label: Hadoop -keywords: [开源监控系统, 开源JAVA监控, Hadoop的JVM虚拟机监控] ---- - -> 对Hadoop的JVM虚拟机的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 Hadoop 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对Hadoop中的 JVM 进行指标采集。 - -#### Hadoop应用开启JMX协议步骤 - -应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP - -- 1.进入hadoop-env.sh配置文件,在命令行终端输入以下命令: - -```shell -vi $HADOOP_HOME/etc/hadoop/hadoop-env.sh -``` - -- 2.添加如下参数,`` 为自定义暴露端口号。 - -```shell -export HADOOP_OPTS= "$HADOOP_OPTS --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false " -``` - -- 3.保存并退出,并在 $HADOOP_HOME/sbin 目录下执行 `start-all.sh` 重启服务。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache (限JDK8及以下) - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hive.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hive.md deleted file mode 100644 index 2c2136f91cf..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/hive.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: hive -Title: 监控 Apache Hive -sidebar_label: Apache Hive -keywords: [开源监控工具, 开源 Apache Hive 监控工具, 监控 Apache Hive 指标] ---- - -> 收集和监控由 SpringBoot Actuator 提供的常规性能指标。 - -## 监控前操作 - -如果您想使用此监控类型监控 Apache Hive 的信息,您需要以远程模式启动您的 Hive Server2。 - -**1、启用元数据存储:** - -```shell -hive --service metastore & -``` -**2. 启用 Hive Server2:** - -```shell -hive --service hiveserver2 & -``` - -### 配置参数 - -| 参数名称 | 参数描述 | -| ---------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 10002。 | -| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | - -### 采集指标 - -#### 指标收集: 基本信息 - -| 指标名称 | 指标单位 | 指标描述 | -|--------|-------|-----------------------------| -| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | -| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | -| 虚拟机版本 | 无 | 虚拟机的版本。 | -| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | - -#### 指标收集: 环境信息 - -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------|--------------------------------| -| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | -| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | -| 操作系统版本 | 无 | 操作系统的版本。 | -| 操作系统架构 | 无 | 操作系统的架构。 | -| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | -| java运行环境版本 | 无 | Java 运行时环境的版本。 | - -#### 指标收集: 线程信息 - -| 指标名称 | 指标单位 | 指标描述 | -|--------|------|------------------------------| -| 线程数量 | None | HiveServer2 当前正在使用的线程数。 | -| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | -| 最高线程数 | None | HiveServer2 在任何给定时间使用的最高线程数。 | -| 守护线程数 | None | HiveServer2 当前活动的守护线程数。 | - -#### 指标收集: 代码缓存 - -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------------|---------------| -| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | -| 内存池初始内存 | MB | 内存池请求的初始内存量。 | -| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | -| 内存池内存使用量 | MB | 内存池已使用内存量 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/iotdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/iotdb.md deleted file mode 100644 index 0f0dc0e0ecb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/iotdb.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: iotdb -title: 监控 Apache IoTDB 物联网时序数据库 -sidebar_label: IoTDB数据库 -keywords: [开源监控系统, 开源数据库监控, IoTDB数据库监控] ---- - -> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 - -## 监控前操作 - -您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 - -开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) - -主要如下步骤: - -1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server - -``` -# 是否启动监控模块,默认为false -enableMetric: true - -# 是否启用操作延迟统计 -enablePerformanceStat: false - -# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 -metricReporterList: - - JMX - - PROMETHEUS - -# 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. 重启 IoTDB, 打开浏览器或者用curl 访问 http://ip:9091/metrics, 就能看到metric数据了。 - -3. 在 HertzBeat 添加对应 IoTDB 监控即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|--------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | IoTDB指标接口对外提供的端口,默认为9091。 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:cluster_node_status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- |------|-------------------------| -| name | 无 | 节点名称IP | -| status | 无 | 节点状态,1=online 2=offline | - -#### 指标集合:jvm_memory_committed_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|------------------| -| area | 无 | heap内存或nonheap内存 | -| id | 无 | 内存区块 | -| value | MB | 当前向JVM申请的内存大小 | - -#### 指标集合:jvm_memory_used_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | heap内存或nonheap内存 | -| id | 无 | 内存区块 | -| value | MB | JVM已使用内存大小 | - -#### 指标集合:jvm_threads_states_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------| -| state | 无 | 线程状态 | -| count | 无 | 线程状态对应线程数量 | - -#### 指标集合:quantity 业务数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--|------|----------------| -| name | 无 | 业务名称 timeSeries/storageGroup/device/deviceUsingTemplate | -| type | 无 | 类型 total/normal/template/template | -| value | 无 | 当前时间timeSeries/storageGroup/device/激活了模板的device的数量 | - -#### 指标集合:cache_hit 缓存 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------------------------------------------| -| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | - -#### 指标集合:queue 任务队列 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|---------------------------------------------------| -| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | -| status | 无 | 状态 running/waiting | -| value | 无 | 当前时间任务数 | - -#### 指标集合:thrift_connections - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-------------| -| name | 无 | 名称 | -| connection | 无 | thrift当前连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/issue.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/issue.md deleted file mode 100644 index 6dbfc73a7f2..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/issue.md +++ /dev/null @@ -1,62 +0,0 @@ ---- -id: issue -title: 常见问题 -sidebar_label: 常见问题 ---- - -### 监控常见问题 - -1. ** 页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名 ** -> 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http - -2. ** 网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK ** -> 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) - -3. 安装包部署的hertzbeat下ping连通性监控异常 -安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address - -4. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖服务TDengine时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - TDengine数据库 -> 安装初始化此数据库参考 [TDengine安装初始化](../start/tdengine-init) - -5. 配置了k8s监控,但是实际监控时间并未按照正确间隔时间执行 -请参考下面几点排查问题: -> 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 -> 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 -> 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine -6.配置http api监控,用于进行业务接口探测,确保业务可以用,另外接口有进行token鉴权校验,"Authorization:Bearer eyJhbGciOiJIUzI1....",配置后测试,提示“StatusCode 401”。服务端应用收到的token为"Authorization:Bearer%20eyJhbGciOiJIUzI1....",hertzbeat对空格进行转义为“%20”,服务器没有转义导致鉴权失败,建议转义功能作为可选项。 - - -### Docker部署常见问题 - -1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` - -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -### 安装包部署常见问题 - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jetty.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jetty.md deleted file mode 100644 index 04a15823529..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jetty.md +++ /dev/null @@ -1,98 +0,0 @@ ---- -id: jetty -title: 监控:Jetty应用服务器 -sidebar_label: Jetty应用服务器 -keywords: [开源监控系统, 开源中间件监控, Jetty应用服务器监控] ---- - -> 对Jetty应用服务器的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 JVM 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 JVM 进行指标采集。 - -#### Jetty应用服务器开启JMX协议步骤 - -[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. 在 Jetty 启动 JMX JMX-REMOTE 模块 - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 - -2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 - -**`localhost` 需修改为对外暴露 IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` - -3. 重启 Jetty Server 即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jvm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jvm.md deleted file mode 100644 index c97cc73b003..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/jvm.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -id: jvm -title: 监控:JVM虚拟机监控 -sidebar_label: JVM虚拟机 -keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] ---- - -> 对JVM虚拟机的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 JVM 应用开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 JVM 进行指标采集。 - -#### JVM应用开启JMX协议步骤 - -应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP - -参考文档: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote - -```shell --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false -``` - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache (限JDK8及以下) - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kafka.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kafka.md deleted file mode 100644 index 2b4ed0514b7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kafka.md +++ /dev/null @@ -1,102 +0,0 @@ ---- -id: kafka -title: 监控:Kafka监控 -sidebar_label: Kafka监控 -keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] ---- - -> 对Kafka的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 监控前操作 - -> 您需要在 Kafka 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 Kafka 进行指标采集。 - -1. 安装部署 Kafka 服务 - -2. 修改 Kafka 启动脚本 - -修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` -在脚本正文(即非注释行)的第一行前添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 - -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# 这是最后一行本来就存在的 -# exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` - -3. 重启 Kafka 服务 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:server_info - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Version | 无 | Kafka版本 | -| StartTimeMs | ms | 运行时间 | -| CommitId | 无 | 版本提交ID | - - -#### 指标集合:code_cache - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:active_controller_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 活跃监控器数量 | - - - -#### 指标集合:broker_partition_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 分区数量 | - -#### 指标集合:broker_leader_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 领导者数量 | - - -#### 指标集合:broker_handler_avg_percent 请求处理器空闲率 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| EventType | 无 | 类型 | -| RateUnit | 具体情况具体分析 | 单位 | -| Count | 个 | 数量 | -| OneMinuteRate | % | 一分钟处理率 | -| FiveMinuteRate | % | 五分钟处理率 | -| MeanRate | 无 | 平均处理率 | -| FifteenMinuteRate | 无 | 十五分钟处理率 | - - -> 其他指标见文知意,欢迎贡献一起优化文档。 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kubernetes.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kubernetes.md deleted file mode 100644 index f45da8d9b27..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/kubernetes.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: kubernetes -title: 监控:Kubernetes 监控 -sidebar_label: Kubernetes 监控 -keywords: [开源监控系统, 开源Kubernetes监控] ---- - -> 对kubernetes的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要监控 `Kubernetes` 中的信息,则需要获取到可访问Api Server的授权TOKEN,让采集请求获取到对应的信息。 - -参考获取token步骤 - -#### 方式一: - -1. 创建service account并绑定默认cluster-admin管理员集群角色 - -```kubectl create serviceaccount dashboard-admin -n kube-system``` - -2. 用户授权 - -```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` -#### 方式二: -``` -kubectl create serviceaccount cluster-admin - -kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin - -kubectl create token --duration=1000h cluster-admin - -``` -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| APiServer端口 | K8s APiServer端口,默认6443 | -| token | 授权Access Token | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:nodes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------| -| node_name | 无 | 节点名称 | -| is_ready | 无 | 节点状态 | -| capacity_cpu | 无 | CPU容量 | -| allocatable_cpu | 无 | 已分配CPU | -| capacity_memory | 无 | 内存容量 | -| allocatable_memory | 无 | 已分配内存 | -| creation_time | 无 | 节点创建时间 | - -#### 指标集合:namespaces - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- |-------------| -| namespace | 无 | namespace名称 | -| status | 无 | 状态 | -| creation_time | 无 | 创建时间 | - -#### 指标集合:pods - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- |----------------| -| pod | 无 | pod名称 | -| namespace | 无 | pod所属namespace | -| status | 无 | pod状态 | -| restart | 无 | 重启次数 | -| host_ip | 无 | 所在主机IP | -| pod_ip | 无 | pod ip | -| creation_time | 无 | pod创建时间 | -| start_time | 无 | pod启动时间 | - -#### 指标集合:services - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------------------------------------------| -| service | 无 | service名称 | -| namespace | 无 | service所属namespace | -| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | 无 | cluster ip | -| selector | 无 | tag selector匹配 | -| creation_time | 无 | 创建时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/linux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/linux.md deleted file mode 100644 index 853be6610b4..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/linux.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: linux -title: 监控:Linux操作系统监控 -sidebar_label: Linux操作系统 -keywords: [开源监控系统, 开源操作系统监控, Linux操作系统监控] ---- - -> 对Linux操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mariadb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mariadb.md deleted file mode 100644 index 5fd59466717..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mariadb.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mariadb -title: 监控:MariaDB数据库监控 -sidebar_label: MariaDB数据库 -keywords: [开源监控系统, 开源数据库监控, MariaDB数据库监控] ---- - -> 对MariaDB数据库的通用性能指标进行采集监控。支持MariaDB5+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MariaDB已经创建的总连接数 | -| threads_connected | 无 | MariaDB已经连接的连接数 | -| threads_cached | 无 | MariaDB当前缓存的连接数 | -| threads_running | 无 | MariaDB当前活跃的连接数 | - - -#### 指标集合:innodb - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/memcached.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/memcached.md deleted file mode 100644 index 5d89ce0977b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/memcached.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -id: memcached -title: Monitoring Memcached -sidebar_label: Memcached Monitor -keywords: [ open source monitoring tool, open source Memcached monitoring tool, monitoring memcached metrics ] ---- - -> Collect and monitor the general performance Metrics of Memcached. - -**Protocol Use:Memcached** - -```text -The default YML configuration for the memcache version is in compliance with 1.4.15. -You need to use the stats command to view the parameters that your memcache can monitor -``` - -### - -**1、Obtain usable parameter indicators through commands such as stats、stats setting、stats settings. - -```shell -# telnet ip port -[root@server ~]# telnet localhost 11211 -Trying ::1... -Connected to localhost. -Escape character is '^]'. -stats -STAT pid 15168 -STAT uptime 11691 -STAT time 1702569246 -STAT version 1.4.15 -... -``` - -**There is help_doc: https://www.runoob.com/memcached/memcached-stats.html** - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Memcached | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:server_info - -| Metric name | Metric unit | Metric help description | -|------------------|-------------|---------------------------------------------------| -| pid | | Memcache server process ID | -| uptime | s | The number of seconds the server has been running | -| version | | Memcache version | -| curr_connections | | Current number of connections | -| auth_errors | | Number of authentication failures | -| threads | | Current number of threads | -| item_size | byte | The size of the item | -| item_count | | Number of items | -| curr_items | | The total number of data currently stored | -| total_items | | The total number of data stored since startup | -| bytes | byte | The current number of bytes occupied by storage | -| cmd_get | | Get command request count | -| cmd_set | | Set command request count | -| cmd_flush | | Flush command request count | -| get_misses | | Get command misses | -| delete_misses | | Delete command misses | \ No newline at end of file diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mysql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mysql.md deleted file mode 100644 index dc23f3d6fa5..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/mysql.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mysql -title: 监控:MYSQL数据库监控 -sidebar_label: MYSQL数据库 -keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] ---- - -> 对MYSQL数据库的通用性能指标进行采集监控。支持MYSQL5+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | - -#### 指标集合:status - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MySql已经创建的总连接数 | -| threads_connected | 无 | MySql已经连接的连接数 | -| threads_cached | 无 | MySql当前缓存的连接数 | -| threads_running | 无 | MySql当前活跃的连接数 | - - -#### 指标集合:innodb - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nebulagraph.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nebulagraph.md deleted file mode 100644 index d070101da8f..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nebulagraph.md +++ /dev/null @@ -1,123 +0,0 @@ ---- -id: nebulaGraph -title: 监控 NebulaGraph 数据库 -sidebar_label: NebulaGraph 数据库 -keywords: [ 开源监控工具, 开源 NebulaGraph 监控工具, 监控 NebulaGraph 指标 ] ---- - -> 收集和监控 NebulaGraph 的常规性能指标。 - -**使用协议:nebulaGraph** - -```text -监控分为两个部分,nebulaGraph_stats 和 rocksdb_stats。 -nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB 的统计信息。 -``` - -### - -**1、通过 stats 和 rocksdb stats 接口获取可用参数。** - -1.1、如果只需要获取 nebulaGraph_stats,需要确保可以访问 stats,否则会出现错误。 - -默认端口是 19669,访问地址为 http://ip:19669/stats - -1.2、如果需要获取 rocksdb stats 的附加参数,需要确保可以访问 rocksdb stats,否则会报错。 - -首次连接 NebulaGraph 时,必须先注册 Storage 服务,以便正确查询数据。 - -**有帮助文档:https://docs.nebula-graph.com.cn/3.4.3/4.deployment-and-installation/connect-to-nebula-graph/** - -**https://docs.nebula-graph.com.cn/3.4.3/2.quick-start/3.quick-start-on-premise/3.1add-storage-hosts/** - -默认端口是 19779,访问地址为:http://ip:19779/rocksdb_stats - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|-------------|--------------------------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️没有协议头(例如:https://、http://) | -| 监控名称 | 识别此监控的名称。名称需要唯一 | -| graphPort | Nebula Graph 提供的 Graph 服务的端口 | -| timePeriod | 可以是 5 秒、60 秒、600 秒或 3600 秒,分别表示最近 5 秒、最近 1 分钟、最近 10 分钟和最近 1 小时的时间段 | -| storagePort | Nebula Graph 提供的 Storage 服务的端口 | -| 超时 | 允许收集响应时间 | -| 收集间隔 | 监控周期性数据收集的间隔时间,单位:秒,最小可设置的间隔为 30 秒 | -| 是否检测 | 是否检测和验证添加监控之前的可用性。只有检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用于识别和描述此监控的更多信息,用户可以在此处记录信息 | - -### 收集指标 - -#### 指标集:nebulaGraph_stats - -指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/1.query-performance-metrics/** - -| 指标名称 | 指标单位 | 指标帮助描述 | -|----------------------------------------------------------------|------|--------| -| 达到内存水位线的语句的数量(rate) | | | -| 达到内存水位线的语句的数量(sum) | | | -| 服务端主动回收的过期的会话数量(rate) | | | -| 服务端主动回收的过期的会话数量(sum) | | | -| 慢查询延迟时间(avg) | | | -| 慢查询延迟时间(p75) | | | -| 慢查询延迟时间(p95) | | | -| 慢查询延迟时间(p99) | | | -| 慢查询延迟时间(p999) | | | -| 查询延迟时间(avg) | | | -| 查询延迟时间(p75) | | | -| 查询延迟时间(p95) | | | -| 查询延迟时间(p99) | | | -| 查询延迟时间(p999) | | | -| 因用户名密码错误导验证失败的会话数量(rate) | | | -| 因用户名密码错误导验证失败的会话数量(sum) | | | -| 查询次数(rate) | | | -| 查询次数(sum) | | | -| 排序(Sort)算子执行时间(rate) | | | -| 排序(Sort)算子执行时间(sum) | | | -| Graphd 服务发给 Storaged 服务的 RPC 请求失败的数量(rate) | | | -| Graphd 服务发给 Storaged 服务的 RPC 请求失败的数量(sum) | | | -| 登录验证失败的会话数量(rate) | | | -| 登录验证失败的会话数量(sum) | | | -| 查询报错语句数量(rate) | | | -| 查询报错语句数量(sum) | | | -| 被终止的查询数量(rate) | | | -| 被终止的查询数量(sum) | | | -| 因查询错误而导致的 Leader 变更的次数(rate) | | | -| 因查询错误而导致的 Leader 变更的次数(sum) | | | -| Graphd 服务发给 Metad 服务的 RPC 请求数量(rate) | | | -| Graphd 服务发给 Metad 服务的 RPC 请求数量(sum) | | | -| 慢查询次数(rate) | | | -| 慢查询次数(sum) | | | -| 活跃的会话数的变化数(sum) | | | -| 活跃的查询语句数的变化数(sum) | | | -| Graphd 服务接收的语句数(rate) | | | -| Graphd 服务接收的语句数(sum) | | | -| 聚合(Aggregate)算子执行时间(rate) | | | -| 聚合(Aggregate)算子执行时间(sum) | | | -| 优化器阶段延迟时间(avg) | | | -| 优化器阶段延迟时间(p75) | | | -| 优化器阶段延迟时间(p95) | | | -| 优化器阶段延迟时间(p99) | | | -| 优化器阶段延迟时间(p999) | | | -| Graphd 服务发给 Metad 的 RPC 请求失败的数量(rate) | | | -| Graphd 服务发给 Metad 的 RPC 请求失败的数量(sum) | | | -| 索引扫描(IndexScan)算子执行时间(rate) | | | -| 索引扫描(IndexScan)算子执行时间(sum) | | | -| 服务端建立过的会话数量(rate) | | | -| 服务端建立过的会话数量(sum) | | | -| 因为超过FLAG_OUT_OF_MAX_ALLOWED_CONNECTIONS参数导致的验证登录的失败的会话数量(rate) | | | -| 因为超过FLAG_OUT_OF_MAX_ALLOWED_CONNECTIONS参数导致的验证登录的失败的会话数量(sum) | | | -| Graphd 服务发给 Storaged 服务的 RPC 请求数量(rate) | | | -| Graphd 服务发给 Storaged 服务的 RPC 请求数量(sum) | | | - -#### 指标集:rocksdb_stats - -指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/2.rocksdb-statistics/** - -| 指标名称 | 指标单位 | 指标帮助描述 | -|----------------------------|------|------------------------| -| rocksdb.backup.read.bytes | | 备份 RocksDB 数据库期间读取的字节数 | -| rocksdb.backup.write.bytes | | 指标名称 | -| ... | | ... | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nginx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nginx.md deleted file mode 100644 index a509ff7da2a..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/nginx.md +++ /dev/null @@ -1,155 +0,0 @@ ---- -id: nginx -title: 监控 Nginx -sidebar_label: Nginx 监控 -keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标] ---- - -> 收集和监控 Nginx 的常规性能指标。 - -**使用的协议:Nginx** - -### 需要启用 Nginx 的 `ngx_http_stub_status_module` 和 `ngx_http_reqstat_module` 监控模块 - -如果你想使用这种监控方式监控 'Nginx' 的信息,你需要修改你的 Nginx 配置文件以启用监控模块。 - -### 启用 ngx_http_stub_status_module - -1. 检查是否已添加 `ngx_http_stub_status_module` - -```shell -nginx -V -``` -查看是否包含 `--with-http_stub_status_module`,如果没有则需要重新编译安装 Nginx。 - -2. 编译安装 Nginx, 添加 `ngx_http_stub_status_module` 模块 - -下载 Nginx 并解压,在目录下执行 - -```shell -./configure --prefix=/usr/local/nginx --with-http_stub_status_module - -make && make install -``` - -3. 修改 Nginx 配置文件 - -修改 `nginx.conf` 文件,添加监控模块暴露端点,如下配置: - -```shell -# modify nginx.conf -server { - listen 80; # port - server_name localhost; - location /nginx-status { - stub_status on; - access_log on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } -} -``` - -4. 重新加载 Nginx - -```shell -nginx -s reload -``` - -5. 在浏览器访问 `http://localhost/nginx-status` 即可查看 Nginx 监控状态信息。 - -### 启用 `ngx_http_reqstat_module` - -1. 安装 `ngx_http_reqstat_module` 模块 - -```shell -# install `ngx_http_reqstat_module` -wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip - -unzip ngx_req_status.zip - -patch -p1 < ../ngx_req_status-master/write_filter.patch - -./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master - -make -j2 - -make install -``` - -2. 修改 Nginx 配置文件 - -修改 `nginx.conf` 文件,添加状态模块暴露端点,如下配置: - -```shell -# modify nginx.conf -http { - req_status_zone server_name $server_name 256k; - req_status_zone server_addr $server_addr 256k; - - req_status server_name server_addr; - - server { - location /req-status { - req_status_show on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } - } -} -``` - -3. 重新加载 Nginx - -```shell -nginx -s reload -``` - -4. 在浏览器访问 `http://localhost/req-status` 即可查看 Nginx 监控状态信息。 - - -**参考文档: https://blog.csdn.net/weixin_55985097/article/details/116722309** - -**⚠️注意监控模块的端点路径为 `/nginx-status` `/req-status`** - -### 配置参数 - -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | Nginx 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | - -### 收集指标 - -#### 指标收集:nginx_status - -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------------|------------| -| 接收连接数 | | 已接受的连接 | -| 处理连接数 | | 成功处理的连接 | -| 活动连接数 | | 当前活动连接 | -| 丢弃连接数 | | 丢弃的连接 | -| 请求连接数 | | 客户端请求 | -| 读连接数 | | 正在执行读操作的连接 | -| 写连接数 | | 正在执行写操作的连接 | -| 等待连接数 | | 等待连接 | - -#### 指标集:req_status - -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|---------| -| 分组类别 | | 分组类别 | -| 分组名称 | | 分组名称 | -| 最大并发连接数 | | 最大并发连接数 | -| 最大带宽 | kb | 最大带宽 | -| 总流量 | kb | 总流量 | -| 总请求数 | | 总请求数 | -| 当前并发连接数 | | 当前并发连接数 | -| 当前带宽 | kb | 当前带宽 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ntp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ntp.md deleted file mode 100644 index 5760321922f..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ntp.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: ntp -title: 监控 NTP 服务器 -sidebar_label: NTP 服务器 -keywords: [ open source monitoring tool, open source NTP monitoring tool, monitoring NTP metrics ] ---- - -NTP监控的中文文档如下: - -# NTP监控 - -> 收集和监控NTP的常规性能指标。 - -**协议使用:NTP** - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|------|--------------------------------------------------| -| 监控主机 | 被监控的IPv4、IPv6或域名。注意⚠️不包含协议头(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要是唯一的 | -| 采集间隔 | 监控周期性数据采集的时间间隔,单位:秒,最小可设置为30秒 | -| 是否检测 | 是否在添加监控之前检测和检查监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用于更多关于标识和描述此监控的信息,用户可以在此处添加备注信息 | - -### 采集指标 - -#### 指标集:概要 - -| 指标名称 | 指标单位 | 指标帮助描述 | -|------|------|--------------------------| -| 响应时间 | 毫秒 | NTP服务器响应请求所需的时间。 | -| 时间 | 毫秒 | NTP服务器报告的当前时间。 | -| 日期 | | 与NTP服务器报告的当前时间对应的日期。 | -| 偏移量 | 毫秒 | NTP服务器的时钟与客户端时钟之间的时间差。 | -| 延迟 | 毫秒 | 请求到达NTP服务器并返回响应所需的时间。 | -| 版本号 | | 服务器使用的NTP协议的版本号。 | -| 模式 | | NTP服务器的操作模式,如客户端、服务器或广播。 | -| 层级 | | NTP服务器的层级,表示其与参考时钟的距离。 | -| 参考ID | | 指示NTP服务器使用的参考时钟或时间源的标识符。 | -| 精度 | | NTP服务器时钟的精度,表示其准确性。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/opengauss.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/opengauss.md deleted file mode 100644 index 632a7f41b2d..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/opengauss.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: opengauss -title: 监控:OpenGauss数据库监控 -sidebar_label: OpenGauss数据库 -keywords: [开源监控系统, 开源数据库监控, OpenGauss数据库监控] ---- - -> 对PostgreSQL数据库的通用性能指标进行采集监控。支持PostgreSQL 10+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | - -#### 指标集合:state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - - -#### 指标集合:activity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/oracle.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/oracle.md deleted file mode 100644 index 49136e51c48..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/oracle.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: oracle -title: 监控:ORACLE数据库监控 -sidebar_label: ORACLE数据库 -keywords: [开源监控系统, 开源数据库监控, Oracle数据库监控] ---- - -> 对ORACLE数据库的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1521。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_version | 无 | 数据库版本 | -| database_type | 无 | 数据库类型 | -| hostname | 无 | 主机名称 | -| instance_name | 无 | 数据库实例名称 | -| startup_time | 无 | 数据库启动时间 | -| status | 无 | 数据库状态 | - -#### 指标集合:tablespace - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| file_id | 无 | 文件ID | -| file_name | 无 | 文件名称 | -| tablespace_name | 无 | 所属表空间名称 | -| status | 无 | 状态 | -| bytes | MB | 大小 | -| blocks | 无 | 区块数量 | - -#### 指标集合:user_connect - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| username | 无 | 用户名 | -| counts | 个数 | 当前连接数量 | - -#### 指标集合:performance - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per Second 每秒IO请求数量 | -| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | -| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ping.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ping.md deleted file mode 100644 index 7b6613f25bd..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ping.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: ping -title: 监控:PING连通性 -sidebar_label: PING连通性 -keywords: [开源监控系统, 开源网络监控, 网络PING监控] ---- - -> 对对端HOST地址进行PING操作,判断其连通性 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - -### 常见问题 - -1. 安装包部署的hertzbeat下ping连通性监控异常 - 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/pop3.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/pop3.md deleted file mode 100644 index 8d6c2eb5548..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/pop3.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: pop3 -title: 监控POP3 -sidebar_label: POP3监控 -keywords: [开源监控工具,开源Java监控工具,监控POP3指标] ---- - -> 收集和监控POP3的常规性能指标。 - -**使用的协议:POP3** - -### 启用POP3服务 - -如果您想使用此监控类型来监控"POP3"的信息,请在您的邮件服务器上开启POP3服务。 - -**1、开启POP3服务:** - -```text -以qq邮箱为例【其它邮箱类似】: - 1. 点击`设置`选项 - 2. 选择`账号` - 3. 找到开启SMTP/POP3/IMAP选项,并开启 - 4. 得到POP3服务器域名,端口号,以及授权码【开启SMTP/POP3/IMAP服务后,qq邮箱提供】 - 5. 通过POP3服务器域名,端口号,qq邮箱账号以及授权码连接POP3服务器,采集监控指标 -``` - - -### 配置参数 - -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | POP3 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | - -### 采集指标 - -#### 指标集:email_status - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|------------| -| 邮件数量 | | 邮件数量 | -| 邮箱总大小 | kb | 邮箱中邮件的总大小 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/port.md deleted file mode 100644 index b89fde24a81..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/port.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: port -title: 监控:端口可用性 -sidebar_label: 端口可用性 -keywords: [开源监控系统, 开源网络监控, 端口可用性监控] ---- - -> 判断对端服务暴露端口是否可用,进而判断对端服务是否可用,采集响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/postgresql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/postgresql.md deleted file mode 100644 index 4716d0e2e64..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/postgresql.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: postgresql -title: 监控:PostgreSQL数据库监控 -sidebar_label: PostgreSQL数据库 -keywords: [开源监控系统, 开源数据库监控, PostgreSQL数据库监控] ---- - -> 对PostgreSQL数据库的通用性能指标进行采集监控。支持PostgreSQL 10+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | - -#### 指标集合:state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - - -#### 指标集合:activity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/rabbitmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/rabbitmq.md deleted file mode 100644 index 8cb91eeb3e6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/rabbitmq.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -id: rabbitmq -title: 监控 RabbitMQ 消息中间件 -sidebar_label: RabbitMQ消息中间件 -keywords: [开源监控系统, 开源消息中间件监控, RabbitMQ消息中间件监控] ---- - -> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 - -### 监控前操作 - -> HertzBeat 使用 RabbitMQ Management 的 Rest Api 对 RabbitMQ 进行指标数据采集。 -> 故需要您的 RabbitMQ 环境开启 Management 插件 - -1. 开启 Management 插件,或使用自开启版本 - -```shell -rabbitmq-plugins enable rabbitmq_management -``` - -2. 浏览器访问 http://ip:15672/ ,默认账户密码 `guest/guest`. 成功登录即开启成功。 - -3. 在 HertzBeat 添加对应 RabbitMQ 监控即可,参数使用 Management 的 IP 端口,默认账户密码。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|----------|---------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | -| 用户名 | 接口Basic认证时使用的用户名 | -| 密码 | 接口Basic认证时使用的密码 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:overview - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------| -| product_version | 无 | 产品版本 | -| product_name | 无 | 产品名称 | -| rabbitmq_version | 无 | rabbitmq 版本 | -| management_version | 无 | rabbitmq management 插件版本 | -| erlang_version | 无 | erlang 版本 | -| cluster_name | 无 | 集群名称 | -| rates_mode | 无 | rates模式 | - -#### 指标集合:object_totals - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------|------|-----------------| -| channels | 无 | channels的总数量 | -| connections | 无 | connections的总数量 | -| consumers | 无 | consumers的总数量 | -| exchanges | 无 | exchanges的总数量 | -| queues | 无 | queues的总数量 | - -#### 指标集合:nodes - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------------| -| name | 无 | The node name | -| type | 无 | The node type | -| running | 无 | Running state | -| os_pid | 无 | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | 无 | File descriptors available | -| fd_used | 无 | File descriptors used | -| sockets_total | 无 | Sockets available | -| sockets_used | 无 | Sockets used | -| proc_total | 无 | Erlang process limit | -| proc_used | 无 | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | 无 | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | 无 | Context_switches num | -| io_read_count | 无 | 总共读操作的数量 | -| io_read_bytes | KB | 总共读入磁盘数据大小 | -| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | -| io_write_count | 无 | 磁盘写操作总量 | -| io_write_bytes | KB | 写入磁盘数据总量 | -| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | -| io_seek_count | 无 | seek操作总量 | -| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | -| io_sync_count | 无 | fsync操作的总量 | -| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | -| connection_created | 无 | connection created num | -| connection_closed | 无 | connection closed num | -| channel_created | 无 | channel created num | -| channel_closed | 无 | channel closed num | -| queue_declared | 无 | queue declared num | -| queue_created | 无 | queue created num | -| queue_deleted | 无 | queue deleted num | -| connection_closed | 无 | connection closed num | - - -#### 指标集合:queues - -| 指标名称 | 指标单位 | 指标帮助描述 | -|------------------------------|------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | -| node | 无 | The queue on the node name | -| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | -| type | 无 | Queue type, one of: quorum, stream, classic. | -| vhost | 无 | vhost path | -| auto_delete | 无 | Whether the queue will be deleted automatically when no longer used | -| policy | 无 | Effective policy name for the queue. | -| consumers | 无 | Number of consumers. | -| memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | -| messages_ready | 无 | Number of messages ready to be delivered to clients | -| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | -| messages | 无 | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | -| messages_persistent | 无 | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | -| message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | -| message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | -| message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/redis.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/redis.md deleted file mode 100644 index dd9b304e1ce..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/redis.md +++ /dev/null @@ -1,245 +0,0 @@ ---- -id: redis -title: 监控:REDIS数据库监控 -sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] ---- - -> 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:server - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - - -#### 指标集合:clients - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - - -#### 指标集合:memory - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - - -#### 指标集合:persistence - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - - -#### 指标集合:stats - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - - -#### 指标集合:replication - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | - -#### 指标集合:errorstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | - -#### 指标集合:cluster - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - - -#### 指标集合:commandstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/shenyu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/shenyu.md deleted file mode 100644 index 08788efeaae..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/shenyu.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -id: shenyu -title: 监控 Apache ShenYu API网关 -sidebar_label: ShenYu网关监控 -keywords: [开源监控系统, 开源消息中间件监控, ShenYu网关监控监控] ---- - -> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 - -## 监控前操作 - -您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 - -开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) - -主要如下两步骤: - -1. 在网关的 pom.xml 文件中添加 metrics 的依赖。 - -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` - -2. 在网关的配置yaml文件中编辑如下内容: - -```yaml -shenyu: - metrics: - enabled: true #设置为 true 表示开启 - name : prometheus - host: 127.0.0.1 #暴露的ip - port: 8090 #暴露的端口 - jmxConfig: #jmx配置 - props: - jvm_enabled: true #开启jvm的监控指标 -``` - -最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|--------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网关指标接口对外提供的端口,默认为8090。 | -| 超时时间 | HTTP请求响应超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:shenyu_request_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------------| -| value | 无 | 收集ShenYu网关的所有请求数量 | - -#### 指标集合:shenyu_request_throw_created - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------------| -| value | 无 | 收集ShenYu网关的异常请求数量 | - -#### 指标集合:process_cpu_seconds_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| value | 无 | 用户和系统CPU总计所用的秒数 | - -#### 指标集合:process_open_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------| -| value | 无 | 打开的文件描述符的数量 | - -#### 指标集合:process_max_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------| -| value | 无 | 打开的文件描述符的最大数量 | - -#### 指标集合:jvm_info - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-----------| -| runtime | 无 | JVM 版本信息 | -| vendor | 无 | JVM 版本信息 | -| version | 无 | JVM 版本信息 | - -#### 指标集合:jvm_memory_bytes_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | JVM 内存区域 | -| value | MB | 给定 JVM 内存区域的已用大小 | - -#### 指标集合:jvm_memory_pool_bytes_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-----------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已用大小 | - -#### 指标集合:jvm_memory_pool_bytes_committed - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已提交大小 | - -#### 指标集合:jvm_memory_pool_bytes_max - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------| ----------- | -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的最大大小 | - -#### 指标集合:jvm_threads_state - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------| -| state | 无 | 线程状态 | -| value | 无 | 对应线程状态的线程数量 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/smtp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/smtp.md deleted file mode 100644 index 21dcd9a88f3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/smtp.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: smtp -title: SMTP 邮件服务器监控 -sidebar_label: SMTP 监控 -keywords: [ open source monitoring tool, open source SMTP monitoring tool, monitoring SMTP metrics ] ---- - -> 收集和监控 SMTP 邮件服务器的常规性能指标。 - -```text -通过 SMTP 的 hello 命令确定服务器是否可用 -``` - -> 详见 https://datatracker.ietf.org/doc/html/rfc821#page-13 - - -**协议使用:SMTP** - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -|---------|---------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️无需协议头(例如:https://、http://) | -| 监控名称 | 标识此监控的名称。名称需要保持唯一 | -| 端口 | SMTP 提供的端口号 | -| 电子邮件 | 您的电子邮件名称,用于 hello 命令的参数 | -| 超时时间 | 允许的收集响应时间 | -| 收集间隔 | 监视定期数据收集的间隔时间,单位:秒,最小可设置的间隔为 30 秒 | -| 是否检测可用性 | 是否在添加监控之前检测和验证监控的可用性。只有在检测成功后,才会继续进行添加和修改操作 | -| 描述备注 | 用于标识和描述此监控的更多信息,用户可以在此处添加备注信息 | - -### 收集的指标 - -#### 指标集:概要 - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------|------|-------------------| -| 响应时间 | 毫秒 | SMTP 服务器响应请求所需的时间 | -| 响应状态 | | 响应状态 | -| SMTP 服务器标语 | | SMTP 服务器的标语 | -| helo 命令返回信息 | | helo 命令返回的响应信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/spring_gateway.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/spring_gateway.md deleted file mode 100644 index 086e0a63ac8..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/spring_gateway.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -id: spring_gateway -Title: 监控 Spring Gateway -sidebar_label: Spring Gateway -keywords: [开源监控工具, 开源 Spring Gateway 监控工具, 监控 Spring Gateway 指标] ---- - -> 收集和监控 SpringBoot Actuator 提供的常规性能指标。 - -## 监控前操作 - -如果您想使用此监控类型监控 'Spring Gateway' 的信息,您需要集成您的 SpringBoot 应用程序并启用 SpringBoot Actuator。 - -**1、添加 POM .XML 依赖:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2. 修改 YML 配置以暴露度量接口:** - -```yaml -management: - endpoint: - gateway: - enabled: true # default value - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` - -### 配置参数 - -| 参数名称 | 参数描述 | -| ----------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 8080。 | -| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | will continue only if the probe is successful -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | - -### 采集指标 - -#### 指标收集: 健康状态 - -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|--------------------------| -| 服务状态 | 无 | 服务健康状态: UP(正常),Down(异常) | - -#### 指标收集: 环境信息 - -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|----------------------------------------------| -| profile | 无 | 应用程序运行的配置环境: prod(生产环境),dev(开发环境),test(测试环境) | -| 端口号 | 无 | 应用程序暴露的端口 | -| 操作系统 | 无 | 运行操作系统 | -| 操作系统架构 | 无 | 运行操作系统的架构 | -| JDK供应商 | 无 | JDK 供应商 | -| JVM版本 | 无 | JVM 版本 | - -#### 指标收集: 线程信息 - -| 指标名称 | 指标单位 | 指标描述 | -|-------------|------------|-------------| -| 状态 | 无 | 线程状态 | -| 数量 | 无 | 线程状态对应的线程数量 | - -#### 指标收集: 内存使用情况 - -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|-------------| -| 内存空间 | 无 | 内存空间名称 | -| 内存占用 | MB | 此空间占用的内存大小 | - -#### 指标收集: 路由信息 - -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|----------| -| 路由id | 无 | 路由 ID | -| 匹配规则 | 无 | 路由匹配规则 | -| 资源标识符 | 无 | 服务资源标识符 | -| 优先级 | 无 | 此路由的优先级 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/springboot2.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/springboot2.md deleted file mode 100644 index 280c6cb6b06..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/springboot2.md +++ /dev/null @@ -1,93 +0,0 @@ ---- -id: springboot2 -title: 监控:SpringBoot2.0 监控 -sidebar_label: SpringBoot2.0 监控 -keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控] ---- - -> 对SpringBoot2.0 actuator 暴露的通用性能指标进行采集监控。 - - -## 监控前操作 - -如果想要通过此监控类型监控 `SpringBoot` 中的信息,则需要您的SpringBoot应用集成并开启SpringBoot Actuator。 - -**1、添加POM.XML依赖:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2、修改YML配置暴露指标接口:** - -```yaml -management: - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` -*注意:如果你的项目里还引入了认证相关的依赖,比如springboot-security,那么SpringBoot Actuator暴露出的接口可能会被拦截,此时需要你手动放开这些接口,以springboot-security为例,需要在SecurityConfig配置类中加入以下代码:* -```java -public class SecurityConfig extends WebSecurityConfigurerAdapter{ - @Override - protected void configure(HttpSecurity httpSecurity) throws Exception{ - httpSecurity - // 配置要放开的接口 ----------------------------------- - .antMatchers("/actuator/**").permitAll() - .antMatchers("/metrics/**").permitAll() - .antMatchers("/trace").permitAll() - .antMatchers("/heapdump").permitAll() - // 。。。 - // 其他接口请参考:https://blog.csdn.net/JHIII/article/details/126601858 ----------------------------------- - } -} -``` -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:health - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------------------------------| -| status | 无 | 服务健康状态: UP,Down | - -#### 指标集合:environment - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------| -------- |----------------------------| -| profile | 无 | 应用运行profile: prod,dev,test | -| port | 无 | 应用暴露端口 | -| os | 无 | 运行所在操作系统 | -| os_arch | 无 | 运行所在操作系统架构 | -| jdk_vendor | 无 | jdk vendor | -| jvm_version | 无 | jvm version | - -#### 指标集合:threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------| -| state | 无 | 线程状态 | -| number | 无 | 此线程状态对应的线程数量 | - -#### 指标集合:memory_used - -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------| -| space | 无 | 内存空间名称 | -| mem_used | MB | 此空间占用内存大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/sqlserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/sqlserver.md deleted file mode 100644 index 5dc66e27cfc..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/sqlserver.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -id: sqlserver -title: 监控:SqlServer数据库监控 -sidebar_label: SqlServer数据库 -keywords: [开源监控系统, 开源数据库监控, SqlServer数据库监控] ---- - -> 对SqlServer数据库的通用性能指标进行采集监控。支持SqlServer 2017+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1433。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | -| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | -| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | -| edition | 无 | 已安装的 实例的产品SQL Server版本 | -| start_time | 无 | 数据库启动时间 | - -#### 指标集合:performance_counters - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | -| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | -| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | -| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | -| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | -| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | - - -#### 指标集合:connection - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| user_connection | 无 | 已连接的会话数 | - - -### 常见问题 - -1. SSL连接问题修复 - -jdk版本:jdk11 -问题描述:SQL Server2019使用SA用户连接报错 -错误信息: -```text -The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxx -``` -问题截图: -![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) - -解决方案: -添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 - -样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` - -参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ssl_cert.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ssl_cert.md deleted file mode 100644 index d5f23f56ff6..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ssl_cert.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: ssl_cert -title: 监控:SSL证书监控 -sidebar_label: SSL证书监控 -keywords: [开源监控系统, 开源网站监控, SSL证书监控监控] ---- - -> 对网站的SSL证书过期时间,响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:certificate - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------| -| subject | 无 | 证书名称 | -| expired | 无 | 是否过期 | -| start_time | 无 | 有效期开始时间 | -| start_timestamp | ms毫秒 | 有效期开始时间戳 | -| end_time | 无 | 过期时间 | -| end_timestamp | ms毫秒 | 过期时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/tomcat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/tomcat.md deleted file mode 100644 index c306bebc550..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/tomcat.md +++ /dev/null @@ -1,77 +0,0 @@ ---- -id: tomcat -title: 监控:Tomcat监控 -sidebar_label: Tomcat监控 -keywords: [开源监控系统, 开源网站监控, Tomcat监控] ---- - -> 对Tomcat的通用性能指标进行采集监控 - -**使用协议:JMX** - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - - -#### 指标集合:memory_pool - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:code_cache - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - -#### 指标集合:class_loading - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - - -#### 指标集合:thread - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - -### Tomcat开启JMX协议步骤 - -1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 - -2. vim catalina.sh - -```aidl -CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" -``` - -参考: https://blog.csdn.net/weixin_41924764/article/details/108694239 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ubuntu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ubuntu.md deleted file mode 100644 index e5d1be3a140..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/ubuntu.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: ubuntu -title: 监控:Ubuntu操作系统监控 -sidebar_label: Ubuntu操作系统 -keywords: [开源监控系统, 开源操作系统监控, Ubuntu监控] ---- - -> 对Ubuntu操作系统的通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - - -#### 指标集合:memory - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | - -#### 指标集合:disk - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | - -#### 指标集合:interface - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | - -#### 指标集合:disk_free - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/website.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/website.md deleted file mode 100644 index ee8921e316b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/website.md +++ /dev/null @@ -1,30 +0,0 @@ ---- -id: website -title: 监控:网站监测 -sidebar_label: 网站监测 -keywords: [开源监控系统, 开源网站监控] ---- - -> 对网站是否可用,响应时间等指标进行监测 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/windows.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/windows.md deleted file mode 100644 index 6a1c79b9ede..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/windows.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: windows -title: 监控:Windows操作系统监控 -sidebar_label: Windows操作系统 -keywords: [开源监控系统, 开源操作系统监控, Windows操作系统监控] ---- - -> 通过SNMP协议对Windows操作系统的通用性能指标进行采集监控。 -> 注意⚠️ Windows服务器需开启SNMP服务 - -参考资料: -[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | -| SNMP 版本 | SNMP协议版本 V1 V2c V3 | -| SNMP 团体字 | SNMP 协议团体名(Community Name),用于实现SNMP网络管理员访问SNMP管理代理时的身份验证。类似于密码,默认值为 public | -| 超时时间 | 协议连接超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 主机名称 | -| descr | 无 | 操作系统描述 | -| uptime | 无 | 系统运行时间 | -| numUsers | 个数 | 当前用户数 | -| services | 个数 | 当前服务数量 | -| processes | 个数 | 当前进程数量 | -| responseTime | ms | 采集响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/zookeeper.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/zookeeper.md deleted file mode 100644 index 0783ceaf3fb..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/zookeeper.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -id: zookeeper -title: 监控:Zookeeper监控 -sidebar_label: Zookeeper监控 -keywords: [开源监控系统, Zookeeper监控监控] ---- - -> 对Zookeeper的通用性能指标进行采集监控 - -### 监控前操作 - -> 监控 zookeeper 目前的实现方案使用的是 zookeeper 提供的四字命令 + netcat 来收集指标数据 -> 需要用户自己将zookeeper的四字命令加入白名单 - -1. 加白名单步骤 - -> 1.找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -> -> 2.配置文件中加入以下命令 - -```shell -# 将需要的命令添加到白名单中 -4lw.commands.whitelist=stat, ruok, conf, isro - -# 将所有命令添加到白名单中 -4lw.commands.whitelist=* -``` -> 3.重启服务 - -```shell -zkServer.sh restart -``` - -2. netcat 协议 - -目前实现方案需要我们部署zookeeper的linux服务器,安装netcat的命令环境 - -> netcat安装步骤 -```shell -yum install -y nc -``` - -如果终端显示以下信息则说明安装成功 -```shell -Complete! -``` - - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Zookeeper的Linux服务器SSH端口。 | -| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | Zookeeper所在Linux连接用户名 | -| 密码 | Zookeeper所在Linux连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:conf - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| clientPort | 无 | 端口 | -| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | -| dataDirSize | kb | 数据快照文件大小 | -| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | -| dataLogSize | kb | 事务日志文件大小 | -| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | -| minSessionTimeout | ms| 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | -| maxSessionTimeout | ms |最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | -| serverId | 无 | 服务器编号 | - - -#### 指标集合:stats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| zk_version | 无 | 服务器版本 | -| zk_server_state | 无 | 服务器角色 | -| zk_num_alive_connections | 个 | 连接数 | -| zk_avg_latency | ms | 平均延时 | -| zk_outstanding_requests | 个 | 堆积请求数 | -| zk_znode_count | 个 | znode结点数量 | -| zk_packets_sent | 个 | 发包数 | -| zk_packets_received | 个 | 收包数 | -| zk_watch_count | 个 | watch数量 | -| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | -| zk_approximate_data_size | kb | 数据大小 | -| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | -| zk_max_latency | ms | 最大延时 | -| zk_ephemerals_count | 个 | 临时节点数 | -| zk_min_latency | ms | 最小延时 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/introduce.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/introduce.md deleted file mode 100644 index b9767924b38..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/introduce.md +++ /dev/null @@ -1,313 +0,0 @@ ---- -id: introduce -title: HertzBeat赫兹跳动 -sidebar_label: 介绍 -slug: / ---- - -> 实时监控系统,无需Agent,性能集群,兼容Prometheus,自定义监控和状态页构建能力。 - -[![Discord](https://img.shields.io/badge/Chat-Discord-7289DA?logo=discord)](https://discord.gg/Fb6M73htGr) -[![Reddit](https://img.shields.io/badge/Reddit-Community-7289DA?logo=reddit)](https://www.reddit.com/r/hertzbeat/) -[![Twitter](https://img.shields.io/twitter/follow/hertzbeat1024?logo=twitter)](https://twitter.com/hertzbeat1024) -[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8139/badge)](https://www.bestpractices.dev/projects/8139) -[![Docker Pulls](https://img.shields.io/docker/pulls/apache/hertzbeat?style=%20for-the-badge&logo=docker&label=DockerHub%20Download)](https://hub.docker.com/r/apache/hertzbeat) -[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/hertzbeat)](https://artifacthub.io/packages/search?repo=hertzbeat) -[![QQ](https://img.shields.io/badge/QQ-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -[![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) - - -## 🎡 介绍 - -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 - -### 特点 - -- 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控阈值告警通知一步到位。 -- 易用友好,无需 `Agent`,全 `WEB` 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -- 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 兼容 `Prometheus` 的系统生态并且更多,只需页面操作就可以监控 `Prometheus` 所能监控的。 -- 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 -- 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 -- 提供强大的状态页构建能力,轻松向用户传达您产品服务的实时状态。 - -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 - ----- - -### 强大的监控模版 - -> 开始我们就说 HertzBeat 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 HertzBeat 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 - -HertzBeat 自身并没有去创造一种采集数据协议让监控对端来适配它。而是充分使用了现有的生态,`SNMP协议`采集网络交换机路由器信息,`JMX规范`采集JAVA应用信息,`JDBC规范`采集数据集信息,`SSH`直连执行脚本获取回显信息,`HTTP+(JsonPath | prometheus等)`解析API接口信息,`IPMI协议`采集服务器信息等等。 -HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标数据。 - -![hertzbeat](/img/blog/multi-protocol.png) - -你相信用户只需在UI页面编写一个监控模版,点击保存后,就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -![hertzbeat](/img/home/9.png) - - -### 内置监控类型 - -**官方内置了大量的监控模版类型,方便用户直接在页面添加使用,一款监控类型对应一个YML监控模版** - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml), - [Udp Port](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-udp.yml), [Dns](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dns.yml), - [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), - [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), - [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) - [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), - [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml), - [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), - [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), - [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- 和更多自定义监控模版。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱`。 - -### 强大自定义功能 - -> 由前面的**监控模版**介绍,大概清楚了 `HertzBeat` 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 -> 模版里面包含各个协议的使用配置,环境变量,指标转换,指标计算,单位转换,指标采集等一系列功能,帮助用户能采集到自己想要的监控指标。 - -![hertzbeat](/img/docs/custom-arch.png) - -### 无需 Agent - -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 `agent` 的安装部署调试升级了。 -> 每台主机得装个 `agent`,为了监控不同应用中间件可能还得装几个对应的 `agent`,监控数量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 -> `agent` 的版本是否与主应用兼容, `agent` 与主应用的通讯调试, `agent` 的同步升级等等等等,这些全是头大的点。 - -`HertzBeat` 的原理就是使用不同的协议去直连对端系统,采用 `PULL` 的形式去拉取采集数据,无需用户在对端主机上部署安装 `Agent` | `Exporter` 等。 -- 比如监控 `linux操作系统`, 在 `HertzBeat` 端输入IP端口账户密码或密钥即可。 -- 比如监控 `mysql数据库`, 在 `HertzBeat` 端输入IP端口账户密码即可。 -**密码等敏感信息全链路加密** - -### 高性能集群 - -> 当监控数量指数级上升,采集性能下降或者环境不稳定容易造成采集器单点故障时,这时我们的采集器集群就出场了。 - -- `HertzBeat` 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 -- 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 云边协同 - -> 两地三中心,多云环境,多隔离网络,这些场景名词可能大家略有耳闻。当需要用一套监控系统统一监控不同隔离网络的IT资源时,这时我们的云边协同就来啦。 - -- `HertzBeat` 支持部署边缘采集器集群,与主 `HertzBeat` 服务云边协同提升采集能力。 - -在多个网络不相通的隔离网络中,在以往方案中我们需要在每个网络都部署一套监控系统,这导致数据不互通,管理部署维护都不方便。 -`HertzBeat` 提供的云边协同能力,可以在多个隔离网络部署边缘采集器,采集器在隔离网络内部进行监控任务采集,采集数据上报,由主服务统一调度管理展示。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 易用友好 - -- 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -- 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -- 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -- 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 -- 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 - -### 完全开源 - -- Dromara开源社区顶级项目,Gitee GVP,使用`Apache2`协议,由自由开放的开源社区主导维护的开源协作产品。 -- 无监控数量`License`,监控类型等伪开源限制。 -- 基于`Java+SpringBoot+TypeScript+Angular`主流技术栈构建,方便的二次开发。 -- 开源不等同于免费,基于HertzBeat二次开发需保留logo,名称,页面脚注,版权等。 - -**HertzBeat 已被 [CNCF云原生全景图](https://landscape.cncf.io/card-mode?category=monitoring&grouping=category) 收录** - -![cncf](/img/home/cncf-landscape-left-logo.svg) - ------ - -**`HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** - ------ - -## 即刻体验一波 - -Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` -浏览器访问 `http://localhost:1157` 默认账户密码 `admin/hertzbeat` - -### 登陆页面 - -- HertzBeat 的用户管理统一由配置文件 `sureness.yml` 维护,用户可以通过修改此文件来新增删除修改用户信息,用户角色权限等。默认账户密码 admin/hertzbeat - -![hertzbeat](/img/home/0.png) - -### 概览页面 - -- 全局概览页面,分类展示了当前监控大类别数量分布,用户可直观查看当前的监控类型与数量并点击跳转至对应监控类型进行维护管理。 -- 展示当前注册的采集器集群状态,包括采集器的上线状态,监控任务,启动时间,IP地址,名称等。 -- 下发展示了最近告警信息列表,告警级别分布情况,告警处理率情况。 - -![hertzbeat](/img/home/1.png) - -### 监控中心 - -- 监控入口,支持对应用服务,数据库,操作系统,中间件,网络,自定义等监控的管理。 -- 以列表的形式展示当前已添加的监控,支持对监控的新增,修改,删除,取消监控,导入导出,批量管理等。 -- 支持标签分组,查询过滤,查看监控详情入口等。 - -内置支持的监控类型包括: - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml), - [Udp Port](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-udp.yml), [Dns](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dns.yml), - [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), - [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), - [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) - [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), - [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml), - [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), - [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), - [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) - -![hertzbeat](/img/home/2.png) - -### 新增修改监控 - -- 新增或修改指定监控类型的监控实例,配置对端监控的IP,端口等参数,设置采集周期,采集任务调度方式,支持提前探测可用性等。 -- 页面上配置的监控参数由对应监控类型的监控模版所定义,用户可以通过修改监控模版来修改页面配置参数。 -- 支持关联标签,用标签来管理监控分组,告警匹配等。 - -![hertzbeat](/img/home/10.png) - -### 监控详情 - -- 监控的数据详情页面,展示了当前监控的基本参数信息,监控指标数据信息。 -- 监控实时数据报告,以小卡片列表的形式展示了当前监控的所有指标实时值,用户可根据实时值参考配置告警阈值规则。 -- 监控历史数据报告,以趋势图表的形式展示了当前监控数值类型的指标的历史值,支持查询小时,天,月的历史数据,支持配置页面刷新时间。 -- ⚠️注意监控历史图表需配置外置时序数据库才能获取完整功能,时序数据库支持: IOTDB, TDengine, InfluxDB, GreptimeDB - -![hertzbeat](/img/home/3.png) - -![hertzbeat](/img/home/4.png) - -### 告警中心 - -- 已触发告警消息的管理展示页面,使用户有直观的展示当前告警情况。 -- 支持告警处理,告警标记未处理,告警删除清空等批量操作。 - -![hertzbeat](/img/home/7.png) - -### 阈值规则 - -- 对于监控的可用性状态设置阈值规则,特定指标的值超过我们预期范围时发出告警,这些都可以在阈值规则这里配置。 -- 告警级别分为三级:通知告警,严重告警,紧急告警。 -- 阈值规则支持可视化页面配置或表达式规则配置,灵活性更高。 -- 支持配置触发次数,告警级别,通知模版,关联指定监控等。 - -![hertzbeat](/img/home/6.png) - -![hertzbeat](/img/home/11.png) - -### 告警收敛 - -- 当通过阈值规则判断触发告警后,会进入到告警收敛,告警收敛会根据规则对特定时间段的重复告警消息去重收敛,已避免大量重复性告警导致接收人告警麻木。 -- 告警收敛规则支持重复告警生效时间段,标签匹配和告警级别匹配过滤。 - -![hertzbeat](/img/home/12.png) - -![hertzbeat](/img/home/13.png) - - -### 告警静默 - -- 当通过阈值规则判断触发告警后,会进入到告警静默,告警静默会根据规则对特定一次性时间段或周期性时候段的告警消息屏蔽静默,此时间段不发送告警消息。 -- 此应用场景如用户在系统维护中,无需发已知告警。用户在工作日时间才会接收告警消息,用户在晚上需避免打扰等。 -- 告警静默规则支持一次性时间段或周期性时间段,支持标签匹配和告警级别匹配。 - -![hertzbeat](/img/home/14.png) - -![hertzbeat](/img/home/15.png) - -### 消息通知 - -- 消息通知功能是把告警消息通过不同媒体渠道通知给指定的接收人,告警消息及时触达。 -- 功能包含接收人信息管理和通知策略管理,接收人管理维护接收人信息以其通知方式信息,通知策略管理维护把哪些告警信息通知给哪些接收人的策略规则。 -- 通知方式支持 `邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式。 -- 通知策略支持标签匹配和告警级别匹配,方便的使不同标签的告警和告警级别分派给不同的接收处理人。 -- 支持通知模版,用户可以自定义通过模版内容格式来满足自己的个性化通知展示需求。 - -![hertzbeat](/img/home/16.png) - -![hertzbeat](/img/home/17.png) - -![hertzbeat](/img/home/8.png) - -### 监控模版 - -- HertzBeat 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 同理我们内置的所有监控类型(mysql,website,jvm,k8s)也一一映射为对应的监控模版,用户可以新增修改监控模版来自定义监控功能。 - -![hertzbeat](/img/home/9.png) - - ------ - -**还有更多强大的功能快去探索呀。Have Fun!** - ------ - -**官网: https://hertzbeat.com/** -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contact.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contact.md deleted file mode 100644 index e462dc8d051..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contact.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -id: contact -title: 交流联系 -sidebar_label: 交流联系 ---- -> 如果您在使用过程有任何需要帮助或者想交流建议,可以通过 群 ISSUE 讨论交流。 - -[GITHUB ISSUES](https://github.com/apache/hertzbeat/issues) - -[Chat On Discord](https://discord.gg/Fb6M73htGr) - -[Follow Us Twitter](https://twitter.com/hertzbeat1024) - -**微信交流群** 加微信号 tan-cloud 邀请您进微信群。 - -**QQ交流群** 加QQ群号 630061200 - -##### Github Discussion - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contributing.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contributing.md deleted file mode 100644 index 375b3bef2d9..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/contributing.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -id: contributing -title: 贡献者指南 -sidebar_label: 贡献者指南 ---- - -> 非常欢迎参与项目贡献,我们致力于维护一个互相帮助的快乐社区。 - -### 贡献方式 - -> 在 HertzBeat 社区,贡献方式有很多: - -- 💻**代码**:可以帮助社区完成一些任务、编写新的feature或者是修复一些bug; - -- ⚠️**测试**:可以来参与测试代码的编写,包括了单元测试、集成测试、e2e测试; - -- 📖**文档**:可以编写或完善文档,来帮助用户更好地了解和使用 HertzBeat; - -- 📝**博客**:可以撰写 HertzBeat 的相关文章,来帮助社区更好地推广; - -- 🤔**讨论**:可以参与 HertzBeat 新的feature的讨论,将您的想法跟 HertzBeat 融合; - -- 💡**布道**:可以帮助宣传或推广 HertzBeat 社区,在 meetup 或 summit 中演讲; - -- 💬**建议**:也可以对项目或者社区提出一些建议,促进社区的良性发展; - -更多贡献方式参见 [Contribution Types](https://allcontributors.org/docs/en/emoji-key) - -即便是小到错别字的修正我们也都非常欢迎 :) - -### 让 HertzBeat 运行起来 - -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 -> 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 - -- 后端启动 - -1. 需要`maven3+`, `java11`和`lombok`环境 -2. (可选)修改配置文件配置信息-`manager/src/main/resources/application.yml` -3. 启动`springboot manager`服务 `manager/src/main/java/org/apache/hertzbeat/manager/Manager.java` - -- 前端启动 - -1. 需要`nodejs npm angular-cli`环境 -2. 安装yarn `npm install -g yarn` -3. 在前端工程目录web-app下执行 `yarn install` -4. 全局安装angular-cli `npm install -g @angular/cli@14 --registry=https://registry.npm.taobao.org` -5. 待本地后端启动后,在web-app目录下启动本地前端 `ng serve --open` -6. 浏览器访问 localhost:4200 即可开始,默认账号密码 admin/hertzbeat - -### 寻找任务 - -寻找您感兴趣的Issue!在我们的GitHub仓库和邮件列表中,我们经常会发布一些带有 good first issue 或者 status: volunteer wanted 标签的issue,这些issue都欢迎贡献者的帮助。 -其中good first issue往往门槛较低、适合新手。 - -当然,如果您有好的想法,也可以直接在GitHub Discussion 中提出或者联系社区。 - -### 提交 Pull Request - -1. 首先您需要 Fork 目标仓库 [hertzbeat repository](https://github.com/apache/hertzbeat). -2. 然后 用git命令 将代码下载到本地: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` -3. 下载完成后,请参考目标仓库的入门指南或者 README 文件对项目进行初始化。 -4. 接着,您可以参考如下命令进行代码的提交, 切换新的分支, 进行开发: -```shell -git checkout -b a-feature-branch #Recommended -``` -5. 提交 commit , commit 描述信息需要符合约定格式: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` -6. 推送到远程仓库 -```shell -git push origin a-feature-branch -``` -7. 然后您就可以在 GitHub 上发起新的 PR (Pull Request)。 - -请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 - -### 等待PR代码被合并 - -在提交了 PR 后,Committer 或者社区的小伙伴们会对您提交的代码进行审查(Code Review),会提出一些修改建议,或者是进行一些讨论,请及时关注您的PR。 - -若后续需要改动,不需要发起一个新的 PR,在原有的分支上提交 commit 并推送到远程仓库后,PR会自动更新。 - -另外,我们的项目有比较规范和严格的 CI 检查流程,在提交 PR 之后会触发 CI,请注意是否通过 CI 检查。 - -最后,Committer 可以将 PR 合并入 master 主分支。 - -### 代码被合并后 - -在代码被合并后,您就可以在本地和远程仓库删除这个开发分支了: - -```shell -git branch -d a-dev-branch -git push origin --delete a-dev-branch -``` - -在主分支上,您可以执行以下操作来同步上游仓库: - -```shell -git remote add upstream https://github.com/apache/hertzbeat.git #Bind the remote warehouse, if it has been executed, it does not need to be executed again -git checkout master -git pull upstream master -``` - -### 如何成为Committer? - -通过上述步骤,您就是 HertzBeat 的贡献者了。重复前面的步骤,在社区中保持活跃,坚持下去,您就能成为 Committer! - -### 加入讨论交流 - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) - -加微信号 `tan-cloud` 拉您进微信交流群 - -### 模块 - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** 提供监控管理,系统管理基础服务 -> 提供对监控的管理,监控应用配置的管理,系统用户租户后台管理等。 -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 -> 使用通用协议远程采集获取对端指标数据。 -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 -> 采集指标结果数据管理,数据落盘,查询,计算统计。 -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 -> 告警计算触发,任务状态联动,告警配置,告警通知。 -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 -> 监控告警系统可视化控制台前端 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/design.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/design.md deleted file mode 100644 index 12069809575..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/design.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: design -title: 设计文档 -sidebar_label: 设计文档 ---- - -### HertzBeat架构 - -![architecture](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/docs/hertzbeat-arch.svg) - -### TanCloud架构 - -TanCloud是基于HertzBeat的公网SAAS集群版本,采用多集群,多租户的架构模式。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/developer.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/developer.md deleted file mode 100644 index f40f3bd9efd..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/developer.md +++ /dev/null @@ -1,263 +0,0 @@ ---- -id: developer -title: 开发者们 -sidebar_label: 开发者们 ---- - -## ✨ HertzBeat的成员们 - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
zcx
zcx

💻 🐛 🎨
进击的阿晨
进击的阿晨

💻 🎨 🐛
铁甲小宝
铁甲小宝

🐛 💻 📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
hudongdong129
hudongdong129

💻 ⚠️ 📖
zqr10159
Logic

📖 💻🎨
vinci
vinci

💻 📖 🎨
淞筱
淞筱

💻 📖 🎨
东风
东风

💻 🎨 📖
- -cert - -## ✨ HertzBeat的开发者们 - -Thanks these wonderful people, welcome to join us: [贡献者指南](contributing) - -cert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
MaxKey
MaxKey

💻 🎨 🤔
观沧海
观沧海

💻 🎨 🐛
yuye
yuye

💻 📖
jx10086
jx10086

💻 🐛
winnerTimer
winnerTimer

💻 🐛
goo-kits
goo-kits

💻 🐛
brave4Time
brave4Time

💻 🐛
WalkerLee
WalkerLee

💻 🐛
jianghang
jianghang

💻 🐛
ChineseTony
ChineseTony

💻 🐛
wyt199905
wyt199905

💻
卫傅庆
卫傅庆

💻 🐛
zklmcookle
zklmcookle

💻
DevilX5
DevilX5

📖 💻
tea
tea

💻
yangshihui
yangshihui

💻 🐛
DreamGirl524
DreamGirl524

💻 📖
gzwlly
gzwlly

📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
lambert
lambert

💻
mroldx
mroldx

📖
woshiniusange
woshiniusange

📖
VampireAchao
VampireAchao

💻
zcx
zcx

💻 🐛 🎨
CharlieXCL
CharlieXCL

📖
Privauto
Privauto

💻 📖
emrys
emrys

📖
SxLiuYu
SxLiuYu

🐛
All Contributors
All Contributors

📖
铁甲小宝
铁甲小宝

💻 📖
click33
click33

📖
蒋小小
蒋小小

📖
Kevin Huang
Kevin Huang

📖
铁甲小宝
铁甲小宝

🐛 💻 📖
Captain Jack
Captain Jack

📖
haibo.duan
haibo.duan

⚠️ 💻
assassin
assassin

🐛 💻
Reverse wind
Reverse wind

⚠️ 💻
luxx
luxx

💻
Ikko Ashimine
Ikko Ashimine

📖
leizenan
leizenan

💻
BKing
BKing

📖
xingshuaiLi
xingshuaiLi

📖
wangke6666
wangke6666

📖
刺猬
刺猬

🐛 💻
Haste
Haste

💻
zhongshi.yi
zhongshi.yi

📖
Qi Zhang
Qi Zhang

📖
MrAndyMing
MrAndyMing

📖
idongliming
idongliming

💻
Zichao Lin
Zichao Lin

💻 📖
liudonghua
liudonghua

💻 🤔
Jerry
Jerry

💻 ⚠️ 🤔
yanhom
yanhom

📖
fsl
fsl

💻
xttttv
xttttv

📖
NavinKumarBarnwal
NavinKumarBarnwal

💻
Zakkary
Zakkary

📖
sunxinbo
sunxinbo

💻 ⚠️
ldzbook
ldzbook

📖 🐛
余与雨
余与雨

💻 ⚠️
MysticalDream
MysticalDream

💻 ⚠️
zhouyoulin12
zhouyoulin12

💻 ⚠️
jerjjj
jerjjj

💻
wjl110
wjl110

💻
Sean
Sean

📖
chenyiqin
chenyiqin

💻 ⚠️
hudongdong129
hudongdong129

💻 ⚠️ 📖
TherChenYang
TherChenYang

💻 ⚠️
HattoriHenzo
HattoriHenzo

💻 ⚠️
ycilry
ycilry

📖
aoshiguchen
aoshiguchen

📖 💻
蔡本祥
蔡本祥

💻
浮游
浮游

💻
Grass-Life
Grass-Life

💻
xiaohe428
xiaohe428

💻 📖
TableRow
TableRow

📖 💻
ByteIDance
ByteIDance

💻
Jangfe
Jangfe

💻
zqr10159
zqr10159

📖 💻
vinci
vinci

💻 📖 🎨
js110
js110

💻
CrazyLionLi
CrazyLionLi

📖
banmajio
banmajio

💻
topsuder
topsuder

💻
richar2022
richar2022

💻
fcb-xiaobo
fcb-xiaobo

💻
wenkyzhang
wenkyzhang

📖
ZangJuxy
ZangJuxy

📖
l646505418
l646505418

💻
Carpe-Wang
Carpe-Wang

💻
莫枢
莫枢

💻
huangcanda
huangcanda

💻
世纪末的架构师
世纪末的架构师

💻
ShuningWan
ShuningWan

📖
MrYZhou
MrYZhou

📖
suncqujsj
suncqujsj

📖
sunqinbo
sunqinbo

💻
haoww
haoww

📖
i-mayuan
i-mayuan

📖
fengruge
fengruge

📖
zhanghuan
zhanghuan

💻
shenymin
shenymin

💻
Dhruva Chandra
Dhruva Chandra

💻
miss_z
miss_z

📖
wyt990
wyt990

💻
licocon
licocon

💻
Mi Na
Mi Na

💻
Kylin-Guo
Kylin-Guo

📖
Mr灬Dong先生
Mr灬Dong先生

💻
Pratyay Banerjee
Pratyay Banerjee

📖 💻
yujianzhong520
yujianzhong520

💻
SPPan
SPPan

💻
ZhangJiashu
ZhangJiashu

💻
impress
impress

💻
凌晨一点半
凌晨一点半

📖
Eeshaan Sawant
Eeshaan Sawant

💻
nandofromthebando
nandofromthebando

💻
caiboking
caiboking

💻
baixing99
baixing99

💻
Yang Chuang
Yang Chuang

💻
wlin20
wlin20

💻
guojing1983
guojing1983

💻
moxi
moxi

📖
qq471754603
qq471754603

💻
渭雨
渭雨

💻
liuxuezhuo
liuxuezhuo

💻
lisongning
lisongning

💻
YutingNie
YutingNie

💻 📖 🎨
Mike Zhou
Mike Zhou

💻 📖 🎨
小笨蛋
小笨蛋

💻
littlezhongzer
littlezhongzer

💻
ChenXiangxxxxx
ChenXiangxxxxx

💻
Mr.zhou
Mr.zhou

💻
姚贤丰
姚贤丰

💻
lingluojun
lingluojun

💻
1ue
1ue

💻
qyaaaa
qyaaaa

💻
novohit
novohit

💻
zhuoshangyi
zhuoshangyi

💻
ruanliang
ruanliang

📖 💻
Eden4701
Eden4701

💻 📖 🎨
XiaTian688
XiaTian688

📖
liyinjiang
liyinjiang

💻
ZhangJiashu
ZhangJiashu

📖
moghn
moghn

📖
xiaoguolong
xiaoguolong

💻
Smliexx
Smliexx

💻
Naruse
Naruse

📖 💻
Bala Sukesh
Bala Sukesh

💻
Jinyao Ma
Jinyao Ma

💻
Rick
Rick

💻 ⚠️
东风
东风

💻 🎨 📖
sonam singh
sonam singh

💻
ZhangZixuan1994
ZhangZixuan1994

💻
SHIG
SHIG

💻
泰上老菌
泰上老菌

💻
ldysdu
ldysdu

💻
梁同学
梁同学

💻
avv
avv

💻
yqxxgh
yqxxgh

📖
CharlieShi46
CharlieShi46

💻
Nctllnty
Nctllnty

💻
Wang-Yonghao
Wang-Yonghao

📖
- - - - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/huaweicloud.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/huaweicloud.md deleted file mode 100644 index b934a5c2ca3..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/huaweicloud.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: huaweicloud -title: HertzBeat & HuaweiCloud -sidebar_label: HertzBeat & HuaweiCloud ---- - -### HertzBeat 与 HuaweiCloud 的开源合作需求Issue - -> 欢迎大家对感兴趣的Issue领取贡献。 - -- [Task] support using Huawei Cloud OBS to store custom define yml file [#841](https://github.com/apache/hertzbeat/issues/841) -- [Task] support Huawei Cloud CCE metrics monitoring [#839](https://github.com/apache/hertzbeat/issues/839) -- [Task] support EulerOS metrics monitoring [#838](https://github.com/apache/hertzbeat/issues/838) -- [Task] support using Huawei Cloud SMN send alarm notification message [#837](https://github.com/apache/hertzbeat/issues/837) -- [Task] support using GaussDB For Influx store history metrics data [#836](https://github.com/apache/hertzbeat/issues/836) - - - - -### 关于 HuaweiCloud 开源活动 - -HuaweiCloud 华为云将面向开源软件工具链与环境、开源应用构建和开源生态组件构建这三大重点场景,提供技术支持、奖金支持、活动支持,邀请更多的开发者,携手构建开源for HuaweiCloud。 - -开发者将开源软件工具、开源应用和开源组件与华为云对象存储OBS、数仓DWS、云容器CCE等云服务对接,同时基于Terraform模板,上架到华为云云商店,支持其他开发者一键部署使用开源组件 ,称为“开源xxx for HuaweiCloud”。 - -感兴趣的开发者可以查看:华为云开源项目仓库 https://gitee.com/HuaweiCloudDeveloper/huaweicloud-cloud-native-plugins-kits 了解更多。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/images-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/images-deploy.md deleted file mode 100644 index 782dbe83c05..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/images-deploy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: images-deploy -title: HertzBeat 华为云镜像部署 -sidebar_label: HertzBeat 华为云镜像部署快速指引 ---- - - -> 易用友好的开源实时监控告警工具,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云](https://console.tancloud.cn)**,中小团队和个人无需再为了监控自己的网站资源,而去部署学习一套繁琐的监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - - ----- - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - -## ⛄ Supported - -- [网站监控](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [端口可用性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping连通性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap全站](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl证书](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP服务器](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml) -- [Mysql](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml), - [达梦](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml) -- [Linux](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml) -- [Tomcat](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml) -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -## 镜像部署 - -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 开通服务器时选用 HertzBeat 镜像 -2. 启动服务器 -3. 配置HertzBeat的配置文件(可选) - - 修改位于 `/opt/hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](../start/mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](../start/tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](../start/iotdb-init) - - -4. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `/opt/hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](../start/account-modify) - -5. 部署启动 - 执行位于安装目录/opt/hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -6. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### 部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/media.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/media.md deleted file mode 100644 index 5edb2ac721e..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/media.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: media -title: 媒体推荐 -sidebar_label: 媒体推荐 ---- - -## 我们推荐的公众号 - - - - - - -
- -
- Dromara -
- Dromara开源社区,好玩有趣的百宝箱开源社区! -
- -
- TanCloud -
- 探云-开源的高性能全托管监控云服务! -
- -
-
-
-
-
-
-
-
-
-
-
-
- -> 感谢以上媒体公众号对 HertzBeat 项目的推荐,如果您也是媒体运营者,欢迎互相推荐。 - -### 相互推荐哇,支持开源项目 - -#### HertzBeat作为一个新兴项目,迫切需要一定的途径进行项目推广。如果您也是媒体公众号运营者,欢迎您将HertzBeat推荐给您的粉丝: - -1. 推荐文案参考: [公众号文章](https://mp.weixin.qq.com/s/9TlqN5qrF_pRmpjDkQr5Eg) [MarkDown源内容](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md) [网页文章](https://hertzbeat.com/zh-cn/docs/) [图片资源](https://gitee.com/hertzbeat/hertzbeat/tree/master/home/static/img/home) -2. 在文章底部或内容中留下项目GitHub仓库链接 https://github.com/apache/hertzbeat -3. 文章需要是 `1000+` 的阅读量 - -#### 作为回报,HertzBeat将: - -1. 在官网文档 [推荐媒体] 处永久留下您的媒体公众号二维码和介绍 -2. 在官方交流群里@全体成员推荐您的公众号一次 -3. 您媒体公众号的新推文章都可以将分享到HertzBeat交流群中增加阅读量(为避免频繁推送连接,请不要超过一周三次) - -欢迎您有意愿加微信`tan-cloud`和我们联系,非常期待您的推荐,感谢对开源的支持。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/resource.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/resource.md deleted file mode 100644 index f87ee49393b..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/resource.md +++ /dev/null @@ -1,24 +0,0 @@ ---- -id: resource -title: 相关资源 -sidebar_label: 相关资源 ---- - -## HertzBeat PDF介绍文档 - -下载: [PDF](http://cdn.hertzbeat.com/hertzbeat.pdf) - -## 图标资源 - -### HertzBeat LOGO - -![logo](/img/hertzbeat-logo.svg) - -下载: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.png) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.jpg) - -### HertzBeat Brand LOGO - -![logo](/img/hertzbeat-brand.svg) - -下载: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.png) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-brand.png) - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/sponsor.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/sponsor.md deleted file mode 100644 index 0e6a876da32..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/sponsor.md +++ /dev/null @@ -1,17 +0,0 @@ ---- -id: sponsor -title: 赞助我们 -sidebar_label: 赞助我们 ---- - -**HertzBeat对个人或企业完全免费,我们也在全职做这件事情,如果您喜欢这个项目并且愿意提供帮助,请我们喝杯咖啡吧** - -planet - - -感谢[吉实信息(构建全新的微波+光交易网络)](https://www.flarespeed.com) 赞助服务器采集节点 -感谢[蓝易云(全新智慧上云)](https://www.tsyvps.com/aff/BZBEGYLX) 赞助服务器采集节点 - - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/account-modify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/account-modify.md deleted file mode 100644 index 8436a317158..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/account-modify.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: account-modify -title: 配置修改账户密码 -sidebar_label: 配置修改账户密码 ---- - -HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat -若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 -修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 -配置文件内容参考 项目仓库[/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) - -```yaml - -resourceRole: - - /api/account/auth/refresh===post===[admin,user,guest] - - /api/apps/**===get===[admin,user,guest] - - /api/monitor/**===get===[admin,user,guest] - - /api/monitor/**===post===[admin,user] - - /api/monitor/**===put===[admin,user] - - /api/monitor/**===delete==[admin] - - /api/monitors/**===get===[admin,user,guest] - - /api/monitors/**===post===[admin,user] - - /api/monitors/**===put===[admin,user] - - /api/monitors/**===delete===[admin] - - /api/alert/**===get===[admin,user,guest] - - /api/alert/**===post===[admin,user] - - /api/alert/**===put===[admin,user] - - /api/alert/**===delete===[admin] - - /api/alerts/**===get===[admin,user,guest] - - /api/alerts/**===post===[admin,user] - - /api/alerts/**===put===[admin,user] - - /api/alerts/**===delete===[admin] - - /api/notice/**===get===[admin,user,guest] - - /api/notice/**===post===[admin,user] - - /api/notice/**===put===[admin,user] - - /api/notice/**===delete===[admin] - - /api/tag/**===get===[admin,user,guest] - - /api/tag/**===post===[admin,user] - - /api/tag/**===put===[admin,user] - - /api/tag/**===delete===[admin] - - /api/summary/**===get===[admin,user,guest] - - /api/summary/**===post===[admin,user] - - /api/summary/**===put===[admin,user] - - /api/summary/**===delete===[admin] - -# 需要被过滤保护的资源,不认证鉴权直接访问 -# /api/v1/source3===get 表示 /api/v1/source3===get 可以被任何人访问 无需登录认证鉴权 -excludedResource: - - /api/account/auth/**===* - - /api/i18n/**===get - - /api/apps/hierarchy===get - # web ui 前端静态资源 - - /===get - - /dashboard/**===get - - /monitors/**===get - - /alert/**===get - - /account/**===get - - /setting/**===get - - /passport/**===get - - /**/*.html===get - - /**/*.js===get - - /**/*.css===get - - /**/*.ico===get - - /**/*.ttf===get - - /**/*.png===get - - /**/*.gif===get - - /**/*.jpg===get - - /**/*.svg===get - - /**/*.json===get - # swagger ui 资源 - - /swagger-resources/**===get - - /v2/api-docs===get - - /v3/api-docs===get - -# 用户账户信息 -# 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为hertzbeat -# eg: tom 拥有[user],密码为hertzbeat -# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -修改`sureness.yml`的如下**部分参数**:**[注意⚠️sureness配置的其它默认参数需保留]** - -```yaml - -# 用户账户信息 -# 下面有 admin tom lili 三个账户 -# eg: admin 拥有[admin,user]角色,密码为hertzbeat -# eg: tom 拥有[user],密码为hertzbeat -# eg: lili 拥有[guest],明文密码为lili, 加盐密码为1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -## 更新安全密钥 - -> 此密钥为账户安全加密管理的密钥,需要更新为相同长度的你自定义密钥串。 - -更新 `config` 目录下的 `application.yml` 文件,修改 `sureness.jwt.secret` 参数为你自定义的相同长度的密钥串。 - -```yaml -sureness: - jwt: - secret: 'CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R - LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 - 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 - dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' -``` - -**重启 HertzBeat 浏览器访问 http://ip:1157/ 即可探索使用 HertzBeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/custom-config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/custom-config.md deleted file mode 100644 index 27ebbf49520..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/custom-config.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: custom-config -title: 常见参数配置 -sidebar_label: 常见参数配置 ---- - -这里描述了如果配置短信服务器,内置可用性告警触发次数等。 - -**`hertzbeat`的配置文件`application.yml`** - -### 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 - 安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -1. 配置短信发送服务器 - -> 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 - -在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: 赫兹跳动 - template-id: 1343434 -``` -1.1 腾讯云短信创建签名(sign-name) -![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) - -1.2 腾讯云短信创建正文模板(template-id) -``` -监控:{1},告警级别:{2}。内容:{3} -``` -![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) - - -1.3 腾讯云短信创建应用(app-id) -![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) - -1.4 腾讯云访问管理(secret-id、secret-key) -![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) - - -2. 配置告警自定义参数 - -```yaml -alerter: - # 自定义控制台地址 - console-url: https://console.tancloud.cn -``` - -3. 使用外置redis代替内存存储实时指标数据 - -> 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 - -注意⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/docker-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/docker-deploy.md deleted file mode 100644 index c0b963c69e7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/docker-deploy.md +++ /dev/null @@ -1,163 +0,0 @@ ---- -id: docker-deploy -title: 通过 Docker 方式安装 HertzBeat -sidebar_label: Docker方式部署 ---- - -> 推荐使用Docker部署HertzBeat - -1. 下载安装Docker环境 - Docker 工具自身的下载请参考以下资料: - [Docker官网文档](https://docs.docker.com/get-docker/) - [菜鸟教程-Docker教程](https://www.runoob.com/docker/docker-tutorial.html) - 安装完毕后终端查看Docker版本是否正常输出。 - - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. 拉取HertzBeat Docker镜像 - 镜像版本TAG可查看 [dockerhub 官方镜像仓库](https://hub.docker.com/r/apache/hertzbeat/tags) - 或者使用 [quay.io 镜像仓库](https://quay.io/repository/apache/hertzbeat) - - ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector - ``` - 若网络超时或者使用 - ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector - ``` - -3. 部署HertzBeat您可能需要掌握的几条命令 - - ```shell - #查看所有容器(在运行和已经停止运行的容器) - $ docker ps -a - #启动/终止/重启/运行状态 - $ docker start/stop/restart/stats 容器id或者容器名 - #进入容器并打开容器的shell终端 - $ docker exec -it 容器id或者容器名 /bin/bash - #退出容器终端 - ctrl+p然后ctrl+q - #完全退出容器的终端 - ctrl+d或者 - $ exit - ``` - -4. 挂载并配置HertzBeat的配置文件(可选) - 下载 `application.yml` 文件到主机目录下,例如: $(pwd)/application.yml - 下载源 [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) 或 [gitee/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml) - - 若需使用邮件发送告警,需替换 `application.yml` 里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -5. 挂载并配置HertzBeat用户配置文件,自定义用户密码(可选) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 - 下载 `sureness.yml` 文件到主机目录下,例如: $(pwd)/sureness.yml - 下载源 [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) 或 [gitee/script/sureness.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/sureness.yml) - 具体修改步骤参考 [配置修改账户密码](account-modify) - -6. 启动HertzBeat Docker容器 - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --restart=always \ - --name hertzbeat apache/hertzbeat -``` - - 这条命令启动一个运行HertzBeat的Docker容器,并且将容器的1157端口映射到宿主机的1157端口上。若宿主机已有进程占用该端口,则需要修改主机映射端口。 - - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - - `-e LANG=zh_CN.UTF-8` : 设置系统语言 - - `-e TZ=Asia/Shanghai` : 设置系统时区 - - `-p 1157:1157 -p 1158:1158` : 映射容器端口到主机端口,请注意,前面是宿主机的端口号,后面是容器的端口号。1157是WEB端口,1158是集群端口。 - - `-v $(pwd)/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 - - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (可选,不需要可删除)挂载上上一步修改的本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。我们需要修改此配置文件的MYSQL,TDengine配置信息来连接外部服务。 - - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选,不需要可删除)挂载上一步修改的账户配置文件到容器中,若无修改账户需求可删除此命令参数。 - - - 注意⚠️ 挂载文件时,前面参数为你自定义本地文件地址,后面参数为docker容器内文件地址(固定) - - - `--name hertzbeat` : 命名容器名称 hertzbeat - - - `--restart=always`:(可选,不需要可删除)使容器在Docker启动后自动重启。若您未在容器创建时指定该参数,可通过以下命令实现该容器自启。 - - ```shell - $ docker update --restart=always hertzbeat - ``` - - - `apache/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat`代替。** - -7. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -8. 部署采集器集群(可选) - -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` - - 这条命令启动一个运行HertzBeat采集器的Docker容器,并直连上了HertzBeat主服务节点。 - - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - - `-e IDENTITY=custom-collector-name` : (可选) 设置采集器的唯一标识名称。⚠️注意多采集器时采集器名称需保证唯一性。 - - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 - - `-e MANAGER_HOST=127.0.0.1` : 重要⚠️ 设置连接的主HertzBeat服务地址IP。 - - `-e MANAGER_PORT=1158` : (可选) 设置连接的主HertzBeat服务地址端口,默认 1158. - - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - - `--name hertzbeat-collector` : 命名容器名称 hertzbeat-collector - - `apache/hertzbeat-collector` : 使用拉取最新的的HertzBeat采集器官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat-collector`代替。** - -8. 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 - -**HAVE FUN** - -### Docker部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` - -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -4. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB或Tdengine IP账户密码等配置是否正确 - -5. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - -> 安装初始化此数据库参考 [TDengine安装初始化](tdengine-init) 或 [IoTDB安装初始化](iotdb-init) - -6. 安装配置了时序数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db 或td-engine enable 是否设置为true -> 注意⚠️若hertzbeat和IotDB,TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/greptime-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/greptime-init.md deleted file mode 100644 index 4c98f15722d..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/greptime-init.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: greptime-init -title: 依赖时序数据库服务GreptimeDB安装初始化 -sidebar_label: 使用GreptimeDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) -我们推荐使用并长期支持VictoriaMetrics - -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. -It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. - -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -### 通过Docker方式安装GreptimeDB -> 可参考官方网站[安装教程](https://docs.greptime.com/getting-started/overview) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装GreptimeDB - -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 -``` - - `-v /opt/greptimedb:/tmp/greptimedb` 为greptimedb数据目录本地持久化挂载,需将`/opt/greptimedb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - greptime: - enabled: true - endpoint: localhost:4001 -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库 GreptimeDB 或者 IoTDB 或者 TDengine 是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/influxdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/influxdb-init.md deleted file mode 100644 index f98fb837438..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/influxdb-init.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -id: influxdb-init -title: 依赖时序数据库服务InfluxDB安装初始化 -sidebar_label: 使用InfluxDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) -我们推荐使用并长期支持VictoriaMetrics - -InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -### 1. 直接使用华为云服务 GaussDB For Influx - -> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> 获取云数据库对外暴露连接地址,账户密码即可 - -⚠️注意云数据库默认开启了SSL,云数据库地址应使用 `https:` - -### 2. 通过Docker方式安装InfluxDB -> 可参考官方网站[安装教程](https://hub.docker.com/_/influxdb) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装InfluxDB 1.x - -```shell -$ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 -``` - - `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 - -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/iotdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/iotdb-init.md deleted file mode 100644 index bc37b31491a..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/iotdb-init.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: iotdb-init -title: 依赖时序数据库服务IoTDB安装初始化 -sidebar_label: 使用IoTDB存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) -我们推荐使用并长期支持VictoriaMetrics - -Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据的软件系统,我们使用其存储分析采集到的监控指标历史数据。支持V0.12 - V0.13版本,推荐使用V0.13.*版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -> 如果您已有IoTDB环境,可直接跳到YML配置那一步。 - - -### 通过Docker方式安装IoTDB -> 可参考官方网站[安装教程](https://iotdb.apache.org/zh/UserGuide/V0.13.x/QuickStart/WayToGetIoTDB.html) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装IoTDB - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - - `-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接 - - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # V_O_12 || V_0_13 - version: V_0_13 - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -4. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 - -3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db enable是否设置为true -> 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/mysql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/mysql-change.md deleted file mode 100644 index 8db668fb634..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/mysql-change.md +++ /dev/null @@ -1,87 +0,0 @@ ---- -id: mysql-change -title: 关系型数据库使用 Mysql 替换依赖的 H2 存储系统元数据 -sidebar_label: 元数据使用Mysql存储(可选) ---- -MYSQL是一款值得信赖的关系型数据库,HertzBeat除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 - -注意⚠️ 使用外置Mysql数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 - -> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 - -### 通过Docker方式安装MYSQL -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装MYSQl - ``` - $ docker run -d --name mysql \ - -p 3306:3306 \ - -v /opt/data:/var/lib/mysql \ - -e MYSQL_ROOT_PASSWORD=123456 \ - --restart=always \ - mysql:5.7 - ``` - `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 - -### 数据库创建 -1. 进入MYSQL或使用客户端连接MYSQL服务 - `mysql -uroot -p123456` -2. 创建名称为hertzbeat的数据库 - `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` -3. 查看hertzbeat数据库是否创建成功 - `show databases;` - -### 修改hertzbeat的配置文件application.yml切换数据源 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml) - -需修改部分原参数: -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -具体替换参数如下,需根据mysql环境配置账户密码IP: -```yaml -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 123456 - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false -``` - -2. 通过docker启动时,需要修改host为宿主机的外网Ip,包括mysql连接字符串和redis。 - - -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** - -### 常见问题 - -1. 缺少hibernate的mysql方言,导致启动异常 Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set - -如果上述配置启动系统,出现` Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set`异常, -需要在`application.yml`文件中增加以下配置: - -```yaml -spring: - jpa: - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.MySQL5InnoDBDialect -``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/package-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/package-deploy.md deleted file mode 100644 index 4c672d7f7a2..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/package-deploy.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: package-deploy -title: 通过安装包安装 HertzBeat -sidebar_label: 安装包方式部署 ---- -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 下载HertzBeat安装包 - 下载您系统环境对应的安装包 `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` - - 从[GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) 仓库下载 - - 从[GITHUB Release](https://github.com/apache/hertzbeat/releases) 仓库下载 - -2. 配置HertzBeat的配置文件(可选) - 解压安装包到主机 eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-xx.tar.gz - or - $ unzip -o hertzbeat-xx.zip - ``` - 修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **强烈推荐** 以后我们将主要支持VictoriaMetrics作为时序数据库,若需使用时序数据库VictoriaMetrics来存储指标数据,需替换`application.yml`里面的`warehouse.store.victoria-metrics`参数 具体步骤参见 [使用VictoriaMetrics存储指标数据](victoria-metrics-init) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -3. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](account-modify) - -4. 部署启动 - 执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -5. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -6. 部署采集器集群(可选) - - 下载解压您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) - - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` - - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 - -**HAVE FUN** - - -### 安装包部署常见问题 - -**最多的问题就是网络环境问题,请先提前排查** - -1. **若您使用的是不含JDK的安装包,需您提前准备JAVA运行环境** - -安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) -要求:JAVA11环境 -下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) -安装后命令行检查是否成功安装 - ``` - $ java -version - java version "11.0.12" - Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) - Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode) - - ``` - -2. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -4. **监控历史图表长时间都一直无数据** -> 一:时序数据库是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 时序数据库 IP账户密码等配置是否正确 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/postgresql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/postgresql-change.md deleted file mode 100644 index b09f969e4da..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/postgresql-change.md +++ /dev/null @@ -1,84 +0,0 @@ ---- -id: postgresql-change -title: 关系型数据库使用 PostgreSQL 替换依赖的 H2 存储系统元数据 -sidebar_label: 元数据使用PostgreSQL存储(可选) ---- -PostgreSQL是一个功能强大,开源的关系型数据库管理系统(RDBMS)。HertzBeat除了支持使用默认内置的H2数据库外,还可以切换为使用PostgreSQL存储监控信息,告警信息,配置信息等结构化关系数据。 - -注意⚠️ 使用外置PostgreSQL数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 - -> 如果您已有PostgreSQL环境,可直接跳到数据库创建那一步。 - - -### 通过Docker方式安装PostgreSQL - -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. Docker安装 PostgreSQL - ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` - 使用```$ docker ps```查看数据库是否启动成功 - -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). - -### 数据库创建 - -1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 - ``` - su - postgres - psql - ``` - -2. 创建名称为hertzbeat的数据库 - `CREATE DATABASE hertzbeat;` - -3. 查看hertzbeat数据库是否创建成功 - `\l` - -### 修改hertzbeat的配置文件application.yml切换数据源 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml) - -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -具体替换参数如下,需根据 PostgreSQL 环境配置账户密码IP: -```yaml -spring: - config: - activate: - on-profile: prod - datasource: - driver-class-name: org.postgresql.Driver - username: root - password: 123456 - url: jdbc:postgresql://127.0.0.1:5432/hertzbeat - hikari: - max-lifetime: 120000 - - jpa: - database: postgresql - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.PostgreSQLDialect -``` - -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/quickstart.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/quickstart.md deleted file mode 100644 index d63248185ad..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/quickstart.md +++ /dev/null @@ -1,124 +0,0 @@ ---- -id: quickstart -title: 快速开始 -sidebar_label: 快速开始 ---- - -### 🐕 开始使用 - -- 如果您是想将HertzBeat部署到本地搭建监控系统,请参考下面的部署文档进行操作。 - - -### 🍞 HertzBeat安装 -> HertzBeat支持通过源码安装启动,Docker容器运行和安装包方式安装部署,CPU架构支持X86/ARM64。 - -#### 方式一:Docker方式快速安装 - -1. `docker` 环境仅需一条命令即可开始 - -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` - -```或者使用 quay.io (若 dockerhub 网络链接超时)``` - -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` - -2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` - -3. 部署采集器集群 - -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 - -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) - -#### 方式二:通过安装包安装 - -1. 下载您系统环境对应的安装包`hertzbeat-xx.tar.gz` [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) -2. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml`(可选) -3. 部署启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` -4. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` -5. 部署采集器集群 - - 下载您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) - - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` - - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 - -更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) - -#### 方式三:本地代码启动 - -1. 此为前后端分离项目,本地代码调试需要分别启动后端工程`manager`和前端工程`web-app` -2. 后端:需要`maven3+`, `java11`和`lombok`环境,修改`YML`配置信息并启动`manager`服务 -3. 前端:需要`nodejs npm angular-cli`环境,待本地后端启动后,在`web-app`目录下启动 `ng serve --open` -4. 浏览器访问 `http://localhost:4200` 即可开始,默认账号密码 `admin/hertzbeat` - -详细步骤参考 [参与贡献之本地代码启动](../others/contributing) - -##### 方式四:Docker-Compose 统一安装 hertzbeat+mysql+iotdb/tdengine - -通过 [docker-compose部署脚本](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) 一次性把 mysql 数据库, iotdb/tdengine 时序数据库和 hertzbeat 安装部署。 - -详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) - -##### 方式五:Kubernetes Helm Charts 部署 hertzbeat+collector+mysql+iotdb - -通过 Helm Chart 一次性将 HertzBeat 集群组件部署到 Kubernetes 集群中。 - -详细步骤参考 [Artifact Hub](https://artifacthub.io/packages/helm/hertzbeat/hertzbeat) - -**HAVE FUN** - -### 🐵 依赖服务部署(可选) - -> HertzBeat依赖于 **关系型数据库** H2(默认已内置无需安装) 或 [Mysql](mysql-change) 和 **时序性数据库** [TDengine2+](tdengine-init) 或 [IOTDB](iotdb-init) (可选) - -**注意⚠️ 若需要部署时序数据库,IotDB 和 TDengine 任选其一即可!** - -##### 安装Mysql(可选) - -1. docker安装Mysql - ` $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7` - `-v /opt/data:/var/lib/mysql` - 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 -2. 创建名称为hertzbeat的数据库 - `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` -3. 在hertzbeat的配置文件`application.yml`配置Mysql数据库替换H2内置数据库连接参数 - -详细步骤参考 [使用Mysql替换内置H2数据库](mysql-change) - -##### 安装TDengine(可选) - -1. docker安装TDengine - `docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp --name tdengine tdengine/tdengine:3.0.4.0` -2. 创建名称为hertzbeat的数据库 -3. 在hertzbeat的配置文件`application.yml`配置tdengine连接 - -详细步骤参考 [使用时序数据库TDengine存储指标数据(可选)](tdengine-init) - -##### 安装IotDB(可选) - -1. Docker安装IoTDB - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - -详细步骤参考 [使用时序数据库IoTDB存储指标数据(可选)](iotdb-init) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/rainbond-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/rainbond-deploy.md deleted file mode 100644 index 0a55beb17a7..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/rainbond-deploy.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: rainbond-deploy -title: 使用 Rainbond 部署 HertzBeat -sidebar_label: Rainbond方式部署 ---- - -如果你不熟悉 Kubernetes,想在 Kubernetes 中安装 HertzBeat,可以使用 Rainbond 来部署。Rainbond 是一个基于 Kubernetes 构建的云原生应用管理平台,可以很简单的将你的应用部署到 Kubernetes中。 - -## 前提 - -安装 Rainbond,请参阅 [Rainbond 快速安装](https://www.rainbond.com/docs/quick-start/quick-install)。 - -## 部署 HertzBeat - -登录 Rainbond 后,点击左侧菜单中的 `应用市场`,切换到开源应用商店,在搜索框中搜索 `HertzBeat`,点击安装按钮。 - -![](/img/docs/start/install-to-rainbond.png) - -填写以下信息,然后点击确认按钮进行安装。 - -* 团队:选择现有团队或创建新的团队 -* 集群:选择对应的集群 -* 应用:选择现有应用或创建新的应用 -* 版本:选择要安装的 HertzBeat 版本 - -等待安装完成,即可访问 HertzBeat 应用。 - -![](/img/docs/start/hertzbeat-topology.png) - -:::tip -通过 Rainbond 安装的 HertzBeat,默认使用了外部的 Mysql 数据库 和 Redis 以及 IoTDB。同时也挂载了 HertzBeat 的配置文件,可以在 `组件 -> 环境配置 -> 配置文件设置` 中修改配置文件。 -::: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/sslcert-practice.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/sslcert-practice.md deleted file mode 100644 index 9731621b4e9..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/sslcert-practice.md +++ /dev/null @@ -1,105 +0,0 @@ ---- -id: ssl-cert-practice -title: SSL证书过期监控使用案例 -sidebar_label: 使用案例 ---- - - -现在大部分网站都默认支持 HTTPS,我们申请的证书一般是3个月或者1年,很容易随着时间的流逝SSL证书过期了我们却没有第一时间发现,或者在过期之前没有及时更新证书。 - -这篇文章介绍如果使用 hertzbeat 监控系统来检测我们网站的SSL证书有效期,当证书过期时或证书快过期前几天,给我们发告警消息。 - -#### HertzBeat是什么 - -HertzBeat 一个拥有强大自定义监控能力,无需Agent的实时监控工具。网站监测,PING连通性,端口可用性,数据库,操作系统,中间件,API监控,阈值告警,告警通知(邮件微信钉钉飞书)。 - -**官网: https://hertzbeat.com | https://tancloud.cn** - -github: https://github.com/apache/hertzbeat -gitee: https://gitee.com/hertzbeat/hertzbeat - -#### 安装 HertzBeat - -1.如果不想安装可以直接使用云服务 [TanCloud探云 console.tancloud.cn](https://console.tancloud.cn) - -2. `docker` 环境仅需一条命令即可安装 - -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` - -3. 安装成功浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` - -#### 监控SSL证书 - -1. 点击新增SSL证书监控 - -> 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 - - -![](/img/docs/start/ssl_1.png) - - -2. 配置监控网站 - -> 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 -> 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 - -![](/img/docs/start/ssl_2.png) - -3. 查看检测指标数据 - -> 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 - -![](/img/docs/start/ssl_3.png) - -![](/img/docs/start/ssl_11.png) - -4. 设置阈值(证书过期时触发) - -> 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 - -![](/img/docs/start/ssl_4.png) - -> 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 - -![](/img/docs/start/ssl_5.png) - -> 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 - -![](/img/docs/start/ssl_6.png) - -5. 设置阈值(证书过期前一周触发) - -> 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 - -![](/img/docs/start/ssl_7.png) - -> 最终可以在告警中心看到已触发的告警。 - -![](/img/docs/start/ssl_8.png) - -6. 告警通知(通过钉钉微信飞书等及时通知) - -> 监控系统 -> 告警通知 -> 新增接收人 - -![](/img/docs/start/ssl_9.png) - -钉钉微信飞书等token配置可以参考帮助文档 - -https://hertzbeat.com/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk - -> 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 - -![](/img/docs/start/ssl_10.png) - -7. OK 当阈值触发后我们就可以收到对应告警消息啦,如果没有配通知,也可以在告警中心查看告警信息。 - ----- - -#### 完! - -监控SSL证书的实践就到这里,当然对hertzbeat来说这个功能只是冰山一角,如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/tdengine-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/tdengine-init.md deleted file mode 100644 index 1b70a487d41..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/tdengine-init.md +++ /dev/null @@ -1,129 +0,0 @@ ---- -id: tdengine-init -title: 依赖时序数据库服务TDengine安装初始化 -sidebar_label: 使用TDengine存储指标数据(可选) ---- - -HertzBeat的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) -我们推荐使用并长期支持VictoriaMetrics - -TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -> 如果您已有TDengine环境,可直接跳到创建数据库实例那一步。 - - -### 通过Docker方式安装TDengine -> 可参考官方网站[安装教程](https://docs.taosdata.com/get-started/docker/) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装TDengine - -```shell -$ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 -``` - - `-v /opt/taosdata:/var/lib/taos` 为tdengine数据目录本地持久化挂载,需将`/opt/taosdata`替换为实际本地存在的目录 - `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 - 使用```$ docker ps```查看数据库是否启动成功 - -### 创建数据库实例 - -> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) - -1. 进入数据库Docker容器 - ``` - $ docker exec -it tdengine /bin/bash - ``` - -2. 修改账户密码 - - > 建议您修改密码。TDengine默认的账户密码是 root/taosdata - > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: - - ``` - root@tdengine-server:~/TDengine-server# taos - Welcome to the TDengine shell from Linux, Client Version - Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. - taos> - ``` - > 在 TDengine CLI 中使用 alter user 命令可以修改用户密码,缺省密码为 taosdata - -3. 创建名称为hertzbeat的数据库 - - 执行创建数据库命令 - - ``` - taos> show databases; - taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; - ``` - - 上述语句将创建一个名为 hertzbeat 的库,这个库的数据将保留90天(超过90天将被自动删除),每 10 天一个数据文件,每个 VNode 的写入内存池的大小为 16 MB - -4. 查看hertzbeat数据库是否成功创建 - - ``` - taos> show databases; - taos> use hertzbeat; - ``` - -5. 退出TDengine CLI - - ``` - 输入 q 或 quit 或 exit 回车 - ``` - -**注意⚠️若是安装包安装的TDengine** - -> 除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter - -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 - -1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` - -2. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 - -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 - -3. 监控详情历史图片不展示或无数据,已经配置了TDengine -> 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 - -4. 安装配置了TDengine数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> td-engine enable是否设置为true -> 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/upgrade.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/upgrade.md deleted file mode 100644 index a5482f21b2d..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/upgrade.md +++ /dev/null @@ -1,55 +0,0 @@ ---- -id: upgrade -title: HertzBeat 新版本更新指引 -sidebar_label: 版本更新指引 ---- - -**HertzBeat 的发布版本列表** - -- [Github Release](https://github.com/apache/hertzbeat/releases) -- [Gitee Release](https://gitee.com/hertzbeat/hertzbeat/releases) -- [DockerHub Release](https://hub.docker.com/r/apache/hertzbeat/tags) -- [Docker quay.io Release](https://quay.io/repository/apache/hertzbeat?tab=tags) - -HertzBeat 的元数据信息保存在 H2 或 Mysql, PostgreSQL 关系型数据库内, 采集指标数据存储在 TDengine, IotDB 等时序数据库内。 - -**升级前您需要保存备份好数据库的数据文件和监控模版文件** - - - -### Docker部署方式的升级 - -1. 若使用了自定义监控模版 - - 需要备份 `docker cp hertzbeat:/opt/hertzbeat/define ./define` 当前运行 docker 容器里面的 `/opt/hertzbeat/define` 目录到当前主机下 - - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - - 然后在后续升级启动 docker 容器的时候需要挂载上这个 define 目录,`-v $(pwd)/define:/opt/hertzbeat/define` - - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. 若使用内置默认 H2 数据库 - - 需挂载或备份 `-v $(pwd)/data:/opt/hertzbeat/data` 容器内的数据库文件目录 `/opt/hertzbeat/data` - - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,注意需要将数据库文件目录挂载 `-v $(pwd)/data:/opt/hertzbeat/data` - -3. 若使用外置关系型数据库 Mysql, PostgreSQL - - 无需挂载备份容器内的数据库文件目录 - - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,`application.yml`配置数据库连接即可 - - -### 安装包部署方式的升级 - -1. 若使用内置默认 H2 数据库 - - 备份安装包下的数据库文件目录 `/opt/hertzbeat/data` - - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动 - -2. 若使用外置关系型数据库 Mysql, PostgreSQL - - 无需备份安装包下的数据库文件目录 - - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动,`application.yml`配置数据库连接即可 - - - -**HAVE FUN** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/victoria-metrics-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/victoria-metrics-init.md deleted file mode 100644 index 8c9ae087058..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/victoria-metrics-init.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -id: victoria-metrics-init -title: 依赖时序数据库服务VictoriaMetrics安装初始化 -sidebar_label: 使用VictoriaMetrics存储指标数据(推荐) ---- - -HertzBeat的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) -我们推荐使用并长期支持VictoriaMetrics - -VictoriaMetrics,是一个快速高效、经济并且可扩展的监控解决方案和时序数据库,兼容 Prometheus 生态。推荐版本(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) - -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** - -> 如果您已有VictoriaMetrics环境,可直接跳到YML配置那一步。 - - -### 通过Docker方式安装VictoriaMetrics -> 可参考官方网站[安装教程](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Docker安装VictoriaMetrics - -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` - - `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` 为VictoriaMetrics数据目录本地持久化挂载 - 使用```$ docker ps```查看数据库是否启动成功 - -3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接 - - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用 victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` - -4. 重启 HertzBeat - -### 常见问题 - -1. 时序数据库是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,但会影响历史图表数据和存储时长等。 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/template.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/template.md deleted file mode 100644 index c3d507a11f8..00000000000 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/template.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -id: template -title: 监控模版中心 -sidebar_label: 监控模版 ---- - -> Hertzbeat 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -这是它的架构原理: - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** - -![](/img/docs/advanced/extend-point-1.png) - -**欢迎大家一起贡献你使用过程中自定义的通用监控类型YML模版,可用的模板如下:** - -### 应用服务监控模版 - - 👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
- 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
- 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
- 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
- 👉 [SpringBoot2.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml)
- 👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
- 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
- -### 数据库监控模版 - - 👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
- 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
- 👉 [PostgreSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml)
- 👉 [SqlServer database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml)
- 👉 [Oracle database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml)
- 👉 [DM database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml)
- 👉 [OpenGauss database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml)
- 👉 [IoTDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml)
- 👉 [ElasticSearch database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml)
- 👉 [MongoDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml)
- 👉 [ClickHouse database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml)
- 👉 [Redis database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml)
- 👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
- 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
- -### 操作系统监控模版 - - 👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
- 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
- 👉 [Ubuntu operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml)
- 👉 [Centos operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml)
- 👉 [EulerOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml)
- 👉 [Fedora CoreOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml)
- 👉 [OpenSUSE operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml)
- 👉 [Rocky Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml)
- 👉 [Red Hat operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml)
- 👉 [FreeBSD operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml)
- 👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
- 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- - -### 中间件监控模版 - - 👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
- 👉 [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml)
- 👉 [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml)
- 👉 [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml)
- 👉 [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml)
- 👉 [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml)
- 👉 [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml)
- 👉 [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml)
- 👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
- 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- - -### 云原生监控模版 - - 👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
- 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
- -### 网络监控模版 - - 👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
- 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
- 👉 [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml)
- 👉 [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml)
- 👉 [H3CSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml)
- ---- - -**Have Fun!** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x.json b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x.json similarity index 75% rename from home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x.json rename to home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x.json index 53a82b3fbdb..0c1b1a99b55 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x.json +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x.json @@ -1,7 +1,7 @@ { "version.label": { - "message": "v1.4.x", - "description": "The label for version v1.4.x" + "message": "v1.5.x", + "description": "The label for version v1.5.x" }, "sidebar.docs.category.quickstart": { "message": "quickstart", @@ -35,6 +35,26 @@ "message": "push", "description": "The label for category push in sidebar docs" }, + "sidebar.docs.category.NGQL": { + "message": "NGQL", + "description": "The label for category NGQL in sidebar docs" + }, + "sidebar.docs.category.Community": { + "message": "Community", + "description": "The label for category Community in sidebar docs" + }, + "sidebar.docs.category.contribution": { + "message": "contribution", + "description": "The label for category contribution in sidebar docs" + }, + "sidebar.docs.category.submit": { + "message": "submit", + "description": "The label for category submit in sidebar docs" + }, + "sidebar.docs.category.release": { + "message": "release", + "description": "The label for category release in sidebar docs" + }, "sidebar.docs.category.help": { "message": "help", "description": "The label for category help in sidebar docs" @@ -75,6 +95,14 @@ "message": "cloud-native", "description": "The label for category cloud-native in sidebar docs" }, + "sidebar.docs.category.llm": { + "message": "llm", + "description": "The label for category llm in sidebar docs" + }, + "sidebar.docs.category.network": { + "message": "network", + "description": "The label for category network in sidebar docs" + }, "sidebar.docs.category.threshold": { "message": "threshold", "description": "The label for category threshold in sidebar docs" @@ -87,14 +115,6 @@ "message": "Others", "description": "The label for category Others in sidebar docs" }, - "sidebar.docs.link.Cloud Service": { - "message": "Cloud Service", - "description": "The label for link Cloud Service in sidebar docs, linking to https://console.tancloud.cn" - }, - "sidebar.docs.link.Install via HuaweiCloud": { - "message": "Install via HuaweiCloud", - "description": "The label for link Install via HuaweiCloud in sidebar docs, linking to https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - }, "sidebar.docs.link.Install via Helm": { "message": "Install via Helm", "description": "The label for link Install via Helm in sidebar docs, linking to https://artifacthub.io/packages/helm/hertzbeat/hertzbeat" diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-default.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-default.md index 31fe0ac98f7..9d092b935c8 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-default.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-default.md @@ -3,14 +3,17 @@ id: extend-http-default title: HTTP协议系统默认解析方式 sidebar_label: 系统默认解析方式 --- -> HTTP接口调用获取响应数据后,用 Apache HertzBeat (incubating) 默认的解析方式去解析响应数据。 -**此需接口响应数据结构符合HertzBeat指定的数据结构规则** +> HTTP接口调用获取响应数据后,用 Apache HertzBeat (incubating) 默认的解析方式去解析响应数据。 -### HertzBeat数据格式规范 -注意⚠️ 响应数据为JSON +**此需接口响应数据结构符合HertzBeat指定的数据结构规则** + +### HertzBeat数据格式规范 + +注意⚠️ 响应数据为JSON 单层格式:key-value + ```json { "metricName1": "metricValue", @@ -19,7 +22,9 @@ sidebar_label: 系统默认解析方式 "metricName4": "metricValue" } ``` + 多层格式:数组里面套key-value + ```json [ { @@ -36,9 +41,11 @@ sidebar_label: 系统默认解析方式 } ] ``` + 样例: -查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 -若只有一台虚拟机,其单层格式为: +查询自定义系统的CPU信息,其暴露接口为 `/metrics/cpu`,我们需要其中的`hostname,core,useage`指标 +若只有一台虚拟机,其单层格式为: + ```json { "hostname": "linux-1", @@ -48,7 +55,9 @@ sidebar_label: 系统默认解析方式 "runningTime": 100 } ``` -若有多台虚拟机,其多层格式为: + +若有多台虚拟机,其多层格式为: + ```json [ { @@ -75,7 +84,7 @@ sidebar_label: 系统默认解析方式 ] ``` -**对应的监控模版YML可以配置为如下** +**对应的监控模版YML可以配置为如下** ```yaml # 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md index 160adf031c9..c2574f03001 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md @@ -1,20 +1,18 @@ --- id: extend-http-example-hertzbeat title: 教程一:适配一款基于HTTP协议的监控类型 -sidebar_label: 教程一:适配一款HTTP协议监控 +sidebar_label: 教程一:适配一款HTTP协议监控 --- -通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 监控系统下新增适配一款基于http协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 监控系统下新增适配一款基于http协议的监控类型。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 ### HTTP协议解析通用响应结构体,获取指标数据 > 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ sidebar_label: 教程一:适配一款HTTP协议监控 } ``` + 如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API `http://localhost:1157/api/summary`, 其响应数据为: -``` +```json { "msg": null, "code": 0, @@ -58,12 +57,11 @@ sidebar_label: 教程一:适配一款HTTP协议监控 **我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - ### 新增自定义监控模版YML **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为`hertzbeat`的自定义监控类型,其使用HTTP协议采集指标数据。 @@ -188,38 +186,30 @@ metrics: **新增完毕,现在我们重启hertzbeat系统。我们可以看到系统页面已经多了一个`hertzbeat`监控类型了。** - ![](/img/docs/advanced/extend-http-example-1.png) - ### 系统页面添加对`hertzbeat`监控类型的监控 > 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### 设置阈值告警通知 > 接下来我们就可以正常的设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! 如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-token.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-token.md index 94f49c01f61..1f8e81907d6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-token.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-example-token.md @@ -6,15 +6,15 @@ sidebar_label: 教程二:获取TOKEN后续认证使用 通过此教程我们一步一步描述如何在教程一的基础上改造,新增一个监控指标,先调用认证接口获取TOKEN后,使用TOKEN作为参数供后面的监控指标采集认证使用。 -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 -### 请求流程 +### 请求流程 -【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 +【**认证信息监控指标(优先级最高)**】【**HTTP接口携带账户密码调用**】->【**响应数据解析**】->【**解析签发TOKEN-accessToken作为指标**】->【**将accessToken作为变量参数赋值给其他采集监控指标**】 > 这里我们依然用教程一的hertzbeat监控举例!hertzbeat后台接口不仅仅支持教程一使用的basic直接账户密码认证,也支持token认证。 -**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: +**我们需要`POST`调用登录接口`/api/account/auth/form`获取`accessToken`,请求body(json格式)如下**: ```json { @@ -22,7 +22,8 @@ sidebar_label: 教程二:获取TOKEN后续认证使用 "identifier": "admin" } ``` -**响应结构数据如下**: + +**响应结构数据如下**: ```json { @@ -99,9 +100,9 @@ metrics: ...... ``` -### 定义监控指标`auth`登录请求获取`token` +### 定义监控指标`auth`登录请求获取`token` -1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. +1. 在`app-hertzbeat_token.yml`新增一个监控指标定义 `auth`, 设置采集优先级为最高0,采集指标 `token`. ```yaml @@ -195,7 +196,7 @@ metrics: ``` -**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下: ** +**此时,重启hertzbeat系统,在系统页面上添加 `hertzbeat_token` 类型监控,配置输入参数,`content-type`填`application/json` , `请求Body`填账户密码json如下:** ```json { @@ -206,16 +207,13 @@ metrics: ![](/img/docs/advanced/extend-http-example-5.png) - **新增成功后我们就可以在详情页面看到我们采集的 `token`, `refreshToken`指标数据。** ![](/img/docs/advanced/extend-http-example-6.png) ![](/img/docs/advanced/extend-http-example-7.png) - - -### 将`token`作为变量参数给后面的监控指标采集使用 +### 将`token`作为变量参数给后面的监控指标采集使用 **在`app-hertzbeat_token.yml`新增一个监控指标定义 `summary` 同教程一中的`summary`相同, 设置采集优先级为1** **设置此监控指标的HTTP协议配置中认证方式为 `Bearer Token` 将上一个监控指标`auth`采集的指标`token`作为参数给其赋值,使用`^o^`作为内部替换符标识,即`^o^token^o^`。如下:** @@ -231,7 +229,7 @@ metrics: bearerTokenToken: ^o^token^o^ ``` -**最终`app-hertzbeat_token.yml`定义如下:** +**最终`app-hertzbeat_token.yml`定义如下:** ```yaml @@ -368,9 +366,9 @@ metrics: ``` -**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** +**配置完成后,再次重启 `hertzbeat` 系统,查看监控详情页面** -![](/img/docs/advanced/extend-http-example-8.png) +![](/img/docs/advanced/extend-http-example-8.png) ![](/img/docs/advanced/extend-http-example-9.png) @@ -380,10 +378,10 @@ metrics: ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数headers,params等,我们可以像用postman一样去定义它,可玩性也非常高! 如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-jsonpath.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-jsonpath.md index ae29f265574..8a2385951a2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-jsonpath.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http-jsonpath.md @@ -3,16 +3,18 @@ id: extend-http-jsonpath title: HTTP协议JsonPath解析方式 sidebar_label: JsonPath解析方式 --- + > HTTP接口调用获取响应数据后,用JsonPath脚本解析的解析方式去解析响应数据。 注意⚠️ 响应数据为JSON格式 -**使用JsonPath脚本将响应数据解析成符合 Apache HertzBeat (incubating) 指定的数据结构规则的数据** +**使用JsonPath脚本将响应数据解析成符合 Apache HertzBeat (incubating) 指定的数据结构规则的数据** + +#### JsonPath操作符 -#### JsonPath操作符 -[JSONPath在线验证](https://www.jsonpath.cn) +[JSONPath在线验证](https://www.jsonpath.cn) -| JSONPATH | 帮助描述 | +| JSONPATH | 帮助描述 | |------------------|-----------------------------------| | $ | 根对象或元素 | | @ | 当前对象或元素 | @@ -25,8 +27,10 @@ sidebar_label: JsonPath解析方式 | ?() | 过滤器(脚本)表达式. | | () | 脚本表达式. | -#### HertzBeat数据格式规范 +#### HertzBeat数据格式规范 + 单层格式:key-value + ```json { "metricName1": "metricValue", @@ -35,7 +39,9 @@ sidebar_label: JsonPath解析方式 "metricName4": "metricValue" } ``` + 多层格式:数组里面套key-value + ```json [ { @@ -53,10 +59,11 @@ sidebar_label: JsonPath解析方式 ] ``` -#### 样例 +#### 样例 + +查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 +接口返回的原始数据如下: -查询自定义系统的数值信息,其暴露接口为 `/metrics/person`,我们需要其中的`type,num`指标 -接口返回的原始数据如下: ```json { "firstName": "John", @@ -80,7 +87,8 @@ sidebar_label: JsonPath解析方式 } ``` -我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: +我们使用JsonPath脚本解析,对应的脚本为: `$.number[*]` ,解析后的数据结构如下: + ```json [ { @@ -93,9 +101,10 @@ sidebar_label: JsonPath解析方式 } ] ``` -此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 -**对应的监控模版YML可以配置为如下** +此数据结构符合HertzBeat的数据格式规范,成功提取指标`type,num`值。 + +**对应的监控模版YML可以配置为如下** ```yaml # 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http.md index 21b8015da77..d6f0ded47c2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-http.md @@ -1,37 +1,37 @@ --- id: extend-http title: HTTP协议自定义监控 -sidebar_label: HTTP协议自定义监控 +sidebar_label: HTTP协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 -### HTTP协议采集流程 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用HTTP协议自定义指标监控。 + +### HTTP协议采集流程 + 【**HTTP接口调用**】->【**响应校验**】->【**响应数据解析**】->【**默认方式解析|JsonPath脚本解析 | XmlPath解析(todo) | Prometheus解析**】->【**指标数据提取**】 -由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 -HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 +由流程可见,我们自定义一个HTTP协议的监控类型,需要配置HTTP请求参数,配置获取哪些指标,对响应数据配置解析方式和解析脚本。 +HTTP协议支持我们自定义HTTP请求路径,请求header,请求参数,请求方式,请求体等。 -**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) -**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) - +**系统默认解析方式**:http接口返回hertzbeat规定的json数据结构,即可用默认解析方式解析数据提取对应的指标数据,详细介绍见 [**系统默认解析**](extend-http-default) +**JsonPath脚本解析方式**:用JsonPath脚本对响应的json数据进行解析,返回系统指定的数据结构,然后提供对应的指标数据,详细介绍见 [**JsonPath脚本解析**](extend-http-jsonpath) -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- +------- -下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 +下面详细介绍下监控模版YML的配置用法,请注意看使用注释。 -### 监控模版YML +### 监控模版YML -> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控模版YML用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个监控模版,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 - +样例:自定义一个名称为example_http的自定义监控类型,其使用HTTP协议采集指标数据。 ```yaml # 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jdbc.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jdbc.md index 6ff4b9bbed1..cd24a177c63 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jdbc.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jdbc.md @@ -1,65 +1,71 @@ --- id: extend-jdbc title: JDBC协议自定义监控 -sidebar_label: JDBC协议自定义监控 +sidebar_label: JDBC协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 -> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 -### JDBC协议采集流程 -【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JDBC(目前支持mysql,mariadb,postgresql,sqlserver)自定义指标监控。 +> JDBC协议自定义监控可以让我们很方便的通过写SQL查询语句就能监控到我们想监控的指标 + +### JDBC协议采集流程 + +【**系统直连MYSQL**】->【**运行SQL查询语句**】->【**响应数据解析:oneRow, multiRow, columns**】->【**指标数据提取**】 由流程可见,我们自定义一个JDBC协议的监控类型,需要配置JDBC请求参数,配置获取哪些指标,配置查询SQL语句。 -### 数据解析方式 +### 数据解析方式 + SQL查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有三种:oneRow, multiRow, columns -#### **oneRow** -> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 +#### **oneRow** -例如: +> 查询一行数据, 通过查询返回结果集的列名称,和查询的字段映射 + +例如: 查询的指标字段为:one tow three four 查询SQL:select one, tow, three, four from book limit 1; -这里指标字段就能和响应数据一一映射为一行采集数据。 +这里指标字段就能和响应数据一一映射为一行采集数据。 #### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 -例如: +> 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 + +例如: 查询的指标字段为:one tow three four 查询SQL:select one, tow, three, four from book; 这里指标字段就能和响应数据一一映射为多行采集数据。 #### **columns** -> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 -例如: -查询字段:one tow three four -查询SQL:select key, value from book; -SQL响应数据: +> 采集一行指标数据, 通过查询的两列数据(key-value),key和查询的字段匹配,value为查询字段的值 + +例如: +查询字段:one tow three four +查询SQL:select key, value from book; +SQL响应数据: -| key | value | -|----------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | +| key | value | +|-------|-------| +| one | 243 | +| two | 435 | +| three | 332 | +| four | 643 | -这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 +这里指标字段就能和响应数据的key映射,获取对应的value为其采集监控数据。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) +------- -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +下面详细介绍下文件的配置用法,请注意看使用注释。 -### 监控模版YML +### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为example_sql的自定义监控类型,其使用JDBC协议采集指标数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jmx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jmx.md index cca1bcfb726..4c4a019c3ab 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jmx.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-jmx.md @@ -1,38 +1,38 @@ --- id: extend-jmx title: JMX协议自定义监控 -sidebar_label: JMX协议自定义监控 +sidebar_label: JMX协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 -> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 -### JMX协议采集流程 -【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用JMX协议自定义指标监控。 +> JMX协议自定义监控可以让我们很方便的通过配置 JMX Mbean Object 就能监控采集到我们想监控的 Mbean 指标 -由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 +### JMX协议采集流程 -### 数据解析方式 +【**对端JAVA应用暴露JMX服务**】->【**HertzBeat直连对端JMX服务**】->【**获取配置的 Mbean Object 数据**】->【**指标数据提取**】 -通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 +由流程可见,我们自定义一个JMX协议的监控类型,需要配置JMX请求参数,配置获取哪些指标,配置查询Object信息。 +### 数据解析方式 +通过配置监控模版YML的指标`field`, `aliasFields`, `jmx` 协议的 `objectName` 来和对端系统暴露的 `Mbean`对象信息映射解析。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下监控模版的配置用法,请注意看使用注释。 +------- + +下面详细介绍下监控模版的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 - +样例:自定义一个名称为 `example_jvm` 的自定义监控类型,其使用JMX协议采集指标数据。 ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ngql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ngql.md index b5685eb3b16..3788a1400e9 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ngql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ngql.md @@ -4,7 +4,7 @@ title: NQGL自定义监控 sidebar_label: NGQL自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用NGQL自定义指标监控。 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用NGQL自定义指标监控。 > NGQL自定义监控可以让我们很方便的使用NGQL或者OpenCypher从NebulaGraph图数据库中查询指标数据,支持NebulaGraph 3.X版本。 ### 数据解析方式 @@ -20,11 +20,12 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 > `filterName`: 过滤属性名称(可选) > `filterValue`: 过滤属性值(可选) -例如: +例如: + - online_meta_count#SHOW HOSTS META#Status#ONLINE - 对 `SHOW HOSTS META` 返回的结果中统计滤Status==ONLINE的数量 +对 `SHOW HOSTS META` 返回的结果中统计滤Status==ONLINE的数量 - online_meta_count#SHOW HOSTS META## - 统计 `SHOW HOSTS META` 返回的行数 +统计 `SHOW HOSTS META` 返回的行数 #### **oneRow** @@ -47,7 +48,8 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 > 查询多行数据, 通过查询返回结果集的列名称,和查询的字段映射 -例如: +例如: + - 查询的指标字段为:a,b - 查询NGQL:match (v:metrics) return v.metrics.a as a,v.metrics.b as b; 这里指标字段就能和响应数据一一映射为多行采集数据。 @@ -71,12 +73,13 @@ NGQL查询回来的数据字段和我们需要的指标映射,就能获取对 ![](/img/docs/advanced/extend-point-1.png) -------- +------- + 下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 样例:自定义一个名称为example_ngql的自定义监控类型,其使用NGQL采集指标数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-point.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-point.md index c951f1bc190..9f7ae8ee1b1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-point.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-point.md @@ -1,12 +1,13 @@ --- id: extend-point title: 自定义监控 -sidebar_label: 自定义监控 +sidebar_label: 自定义监控 --- + > HertzBeat拥有自定义监控能力,您只需配置监控模版YML就能适配一款自定义的监控类型。 -> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 +> 目前自定义监控支持[HTTP协议](extend-http),[JDBC协议](extend-jdbc),[SSH协议](extend-ssh),[JMX协议](extend-jmx),[SNMP协议](extend-snmp),后续会支持更多通用协议。 -### 自定义流程 +### 自定义流程 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** @@ -14,13 +15,13 @@ sidebar_label: 自定义监控 ------- -### 监控模版YML +### 监控模版YML **HertzBeat的设计是一个监控模版对应一个监控类型,所有监控类型都是由监控模版来定义的**。 -> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 +> 监控模版YML定义了 *监控类型的名称(国际化), 配置参数映射, 采集指标信息, 采集协议配置* 等。 -下面使用样例详细介绍下这监控模版YML的配置用法。 +下面使用样例详细介绍下这监控模版YML的配置用法。 样例:自定义一个 `app` 名称为 `example2` 的自定义监控类型,其使用HTTP协议采集指标数据。 @@ -167,4 +168,3 @@ metrics: parseType: website ``` - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-snmp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-snmp.md index 3ff65d60a17..1172b263c2e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-snmp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-snmp.md @@ -1,38 +1,38 @@ --- id: extend-snmp title: SNMP协议自定义监控 -sidebar_label: SNMP协议自定义监控 +sidebar_label: SNMP协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 -> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 -### SNMP协议采集流程 -【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用 SNMP 协议自定义指标监控。 +> SNMP 协议自定义监控可以让我们很方便的通过配置 Mib OID信息 就能监控采集到我们想监控的OID指标 -由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 +### SNMP协议采集流程 -### 数据解析方式 +【**对端开启SNMP服务**】->【**HertzBeat直连对端SNMP服务**】->【**根据配置抓取对端OID指标信息**】->【**指标数据提取**】 -通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 +由流程可见,我们自定义一个SNMP协议的监控类型,需要配置SNMP请求参数,配置获取哪些指标,配置查询OID信息。 +### 数据解析方式 +通过配置监控模版YML的指标`field`, `aliasFields`, `snmp` 协议下的 `oids`来抓取对端指定的数据并解析映射。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +------- + +下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 - +样例:自定义一个名称为 example_windows 的自定义监控类型,其使用 SNMP 协议采集指标数据。 ```yaml # The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ssh.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ssh.md index 8284726e661..9ae2ba22c3b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ssh.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-ssh.md @@ -1,53 +1,63 @@ --- id: extend-ssh title: SSH协议自定义监控 -sidebar_label: SSH协议自定义监控 +sidebar_label: SSH协议自定义监控 --- -> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 -> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 -### SSH协议采集流程 -【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 +> 从[自定义监控](extend-point)了解熟悉了怎么自定义类型,指标,协议等,这里我们来详细介绍下用SSH协议自定义指标监控。 +> SSH协议自定义监控可以让我们很方便的通过写sh命令脚本就能监控采集到我们想监控的Linux指标 + +### SSH协议采集流程 + +【**系统直连Linux**】->【**运行SHELL命令脚本语句**】->【**响应数据解析:oneRow, multiRow**】->【**指标数据提取**】 由流程可见,我们自定义一个SSH协议的监控类型,需要配置SSH请求参数,配置获取哪些指标,配置查询脚本语句。 -### 数据解析方式 +### 数据解析方式 + SHELL脚本查询回来的数据字段和我们需要的指标映射,就能获取对应的指标数据,目前映射解析方式有两种:oneRow, multiRow,能满足绝大部分指标需求。 -#### **oneRow** -> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 +#### **oneRow** -例如: -需要查询Linux的指标 hostname-主机名称,uptime-启动时间 -主机名称原始查询命令:`hostname` -启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` -则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): -`hostname; uptime | awk -F "," '{print $1}'` -终端响应的数据为: -``` +> 查询出一列数据, 通过查询返回结果集的字段值(一行一个值)与字段映射 + +例如: +需要查询Linux的指标 hostname-主机名称,uptime-启动时间 +主机名称原始查询命令:`hostname` +启动时间原始查询命令:`uptime | awk -F "," '{print $1}'` +则在hertzbeat对应的这两个指标的查询脚本为(用`;`将其连接到一起): +`hostname; uptime | awk -F "," '{print $1}'` +终端响应的数据为: + +```shell tombook 14:00:15 up 72 days -``` -则最后采集到的指标数据一一映射为: -hostname值为 `tombook` -uptime值为 `14:00:15 up 72 days` +``` -这里指标字段就能和响应数据一一映射为一行采集数据。 +则最后采集到的指标数据一一映射为: +hostname值为 `tombook` +uptime值为 `14:00:15 up 72 days` + +这里指标字段就能和响应数据一一映射为一行采集数据。 #### **multiRow** -> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 -例如: -查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 -内存指标原始查询命令为:`free -m`, 控制台响应: +> 查询多行数据, 通过查询返回结果集的列名称,和查询的指标字段映射 + +例如: +查询的Linux内存相关指标字段:total-内存总量 used-已使用内存 free-空闲内存 buff-cache-缓存大小 available-可用内存 +内存指标原始查询命令为:`free -m`, 控制台响应: + ```shell total used free shared buff/cache available Mem: 7962 4065 333 1 3562 3593 Swap: 8191 33 8158 ``` + 在hertzbeat中multiRow格式解析需要响应数据列名称和指标值一一映射,则对应的查询SHELL脚本为: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -控制台响应为: +`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` +控制台响应为: + ```shell total used free buff_cache available 7962 4066 331 3564 3592 @@ -55,22 +65,22 @@ total used free buff_cache available 这里指标字段就能和响应数据一一映射为采集数据。 -### 自定义步骤 +### 自定义步骤 **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -> **点击保存应用** -> **使用新监控类型添加监控** ![](/img/docs/advanced/extend-point-1.png) -------- -下面详细介绍下文件的配置用法,请注意看使用注释。 +------- + +下面详细介绍下文件的配置用法,请注意看使用注释。 ### 监控模版YML -> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 +> 监控配置定义文件用于定义 *监控类型的名称(国际化), 请求参数结构定义(前端页面根据配置自动渲染UI), 采集指标信息, 采集协议配置* 等。 > 即我们通过自定义这个YML,配置定义什么监控类型,前端页面需要输入什么参数,采集哪些性能指标,通过什么协议去采集。 -样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 - +样例:自定义一个名称为example_linux的自定义监控类型,其使用SSH协议采集指标数据。 ```yaml # 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-tutorial.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-tutorial.md index c536fabf6c4..80dc3f36077 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-tutorial.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/advanced/extend-tutorial.md @@ -4,17 +4,15 @@ title: 自定义适配一款基于HTTP协议的新监控类型 sidebar_label: 教程案例 --- -通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 系统下自定义新增适配一款基于 http 协议的监控类型。 - -阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 +通过此教程我们一步一步描述如何在 Apache HertzBeat (incubating) 系统下自定义新增适配一款基于 http 协议的监控类型。 +阅读此教程前我们希望您已经从[自定义监控](extend-point)和[http协议自定义](extend-http)了解熟悉了怎么自定义类型,指标,协议等。 ### HTTP协议解析通用响应结构体,获取指标数据 > 很多场景我们需要对提供的 HTTP API 接口进行监控,获取接口返回的指标值。这篇文章我们通过http自定义协议来解析我们常见的http接口响应结构,获取返回体中的字段作为指标数据。 - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ sidebar_label: 教程案例 } ``` + 如上,通常我们的后台API接口会设计这这样一个通用返回。hertzbeat系统的后台也是如此,我们今天就用hertzbeat的 API 做样例,新增适配一款新的监控类型 **hertzbeat**,监控采集它的系统摘要统计API `http://localhost:1157/api/summary`, 其响应数据为: -``` +```json { "msg": null, "code": 0, @@ -58,12 +57,11 @@ sidebar_label: 教程案例 **我们这次获取其app下的 `category`,`app`,`status`,`size`,`availableSize`等指标数据。** - ### 新增配置监控模版YML **HertzBeat页面** -> **监控模版菜单** -> **新增监控类型** -> **配置自定义监控模版YML** -定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 +定义我们在页面上需要输入哪些参数,一般的HTTP协议参数主要有ip, port, headers, params, uri, 账户密码等,我们直接复用 `api`监控模版 里面的参数定义内容,删除其中的我们不需要输入的uri参数和keyword关键字等参数即可。 定义采集类型是啥,需要用哪种协议采集方式,采集的指标是啥,协议的配置参数等。我们直接复用 `api`监控模版 里面的定义内容,修改为我们当前的监控类型`hertzbeat`配置参数即可,如下:注意⚠️我们这次获取接口响应数据中的`category`,`app`,`status`,`size`,`availableSize`等字段作为指标数据。 @@ -221,35 +219,26 @@ metrics: **点击保存并应用。我们可以看到系统页面的自定义监控菜单已经多了一个`hertzbeat`监控类型了。** - ![](/img/docs/advanced/extend-http-example-1.png) - ### 页面添加对`hertzbeat`监控类型的监控 > 我们点击新增 `HertzBeat监控系统`,配置监控IP,端口,采集周期,高级设置里的账户密码等, 点击确定添加监控。 - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > 过一定时间(取决于采集周期)我们就可以在监控详情看到具体的指标数据和历史图表啦! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### 设置阈值告警通知 > 接下来我们就可以正常设置阈值,告警触发后可以在告警中心查看,也可以新增接收人,设置告警通知等,Have Fun!!! - ---- -#### 完! +#### 完 HTTP协议的自定义监控的实践就到这里,HTTP协议还带其他参数 `headers,params` 等,我们可以像用postman一样去定义它,可玩性也非常高! - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_committer.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_committer.md index c91cdca7171..b444d0a970c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_committer.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_committer.md @@ -5,23 +5,22 @@ sidebar_position: 2 --- - ## 成为 Apache HertzBeat™ 的 Committer 任何支持社区并在 CoPDoC 领域中工作的人都可以成为 Apache HertzBeat 的 Committer。CoPDoC 是 ASF 的缩写,用来描述我们如何不仅仅通过代码来认识到您的贡献。 @@ -33,7 +32,7 @@ sidebar_position: 2 Apache HertzBeat 社区努力追求基于功绩的原则。因此,一旦有人在 CoPDoC 的任何领域有了足够的贡献,他们就可以成为 Committer 的候选人,最终被投票选为 HertzBeat 的 Committer。成为 Apache HertzBeat 的 Committer 并不一定意味着你必须使用你的提交权限向代码库提交代码;它意味着你致力于 HertzBeat 项目并为我们社区的成功做出了积极的贡献。 -## Committer 的要求: +## Committer 的要求 没有成为 Committer 或 PPMC 成员的严格规则。新的 Committer 的候选人通常是积极的贡献者和社区成员。但是,如果能稍微明确一些规则,就可以在一定程度上消除贡献者的疑虑,使社区更加透明、合理和公平。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_pmc_member.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_pmc_member.md index e64661b7595..ff56d4cb723 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_pmc_member.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/become_pmc_member.md @@ -5,20 +5,20 @@ sidebar_position: 3 --- ## 成为 Apache HertzBeat™ 的 PMC 成员 @@ -32,7 +32,7 @@ sidebar_position: 3 Apache HertzBeat 社区努力追求基于功绩的原则。因此,一旦有人在 CoPDoC 的任何领域有了足够的贡献,他们就可以成为 PMC 成员资格的候选人,最终被投票选为 HertzBeat 的 PMC 成员。成为 Apache HertzBeat 的 PMC 成员并不一定意味着您必须使用您的提交权限向代码库提交代码;它意味着您致力于 HertzBeat 项目并为我们社区的成功做出了积极的贡献。 -## PMC 成员的要求: +## PMC 成员的要求 没有成为 Committer 或 PPMC 成员的严格规则。新的 PMC 成员的候选人通常是积极的贡献者和社区成员。但是,如果能稍微明确一些规则,就可以在一定程度上消除贡献者的疑虑,使社区更加透明、合理和公平。 @@ -45,6 +45,7 @@ PMC 成员的候选人应该持续参与并为 HertzBeat 做出大量的贡献 - +3 个月的高度活动和参与。 ### 贡献的质量 + - 对项目有深入的理解。 - 经过充分测试、良好设计、遵循 Apache HertzBeat 的编码标准,及简单的修复补丁。 - 井井有条的面向用户的详细文档。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/code-style-and-quality-guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/code-style-and-quality-guide.md index a9a6f54d474..dea85bc8aae 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/code-style-and-quality-guide.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/code-style-and-quality-guide.md @@ -5,41 +5,38 @@ sidebar_position: 3 --- - ## 1 拉取请求与变更规则 1. `ISSUE`/`PR`(拉取请求) 的引导和命名 - - 新建 `PR` 后需要在 `PR` 页面的 Github Development 按钮处关联已存在的对应 `ISSUE`(若无建议新建对应ISSUE) + - 新建 `PR` 后需要在 `PR` 页面的 Github Development 按钮处关联已存在的对应 `ISSUE`(若无建议新建对应ISSUE) - - 标题命名格式(英文,小写) - `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` + - 标题命名格式(英文,小写) + `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` 2. 添加描述信息 - - 新建 `PR` 时请仔细描述此贡献,描述文档和代码同样重要。审阅者可以从描述中,而不仅仅是从代码中,了解问题和解决方案。 - - 勾选是否完成了对应的 Checklist。 - + - 新建 `PR` 时请仔细描述此贡献,描述文档和代码同样重要。审阅者可以从描述中,而不仅仅是从代码中,了解问题和解决方案。 + - 勾选是否完成了对应的 Checklist。 3. 建议一次 `PR` 只包含一个功能/一种修复/一类改进/一种重构/一次清理/一类文档等 - 4. 提交消息(英文,小写,无特殊字符) - 消息的提交应遵循与 `PR` 类似的模式:`[feature/bugfix/doc/improve/refactor/bug/cleanup] title` + 消息的提交应遵循与 `PR` 类似的模式:`[feature/bugfix/doc/improve/refactor/bug/cleanup] title` ## 2 代码检查样式 @@ -69,95 +66,97 @@ sidebar_position: 3 ### 3.1 命名风格 1. 优先为变量命名选择名词,这样更容易区分`变量`或`方法`。 + ```java - Cache publicKeyCache; + Cache publicKeyCache; ``` 2. 变量的拼音缩写是禁止的(排除地名等名词),例如chengdu。 - 3. 推荐的变量名以 `类型` 结尾。 对于 `Collection/List` 类型的变量,取 `xxxx` (复数表示多个元素)或以 `xxxList` (特定类型)结束。 对于 `map` 类型的变量,清晰地描述 `key` 和 `value`: + ```java - Map idUserMap; - Map userIdNameMap; + Map idUserMap; + Map userIdNameMap; ``` 4. 通过其名称直观地知道变量的类型和含义。 方法名称应首先以动词开始,如下所示: + ```java - void computeVcores(Object parameter1); + void computeVcores(Object parameter1); ``` - > 注意:在 `Builder` 工具类中不必严格遵循这项规则。 - + > 注意:在 `Builder` 工具类中不必严格遵循这项规则。 ### 3.2 常量变量定义 1. 多余的字符串应提取为常量 - >如果一个常量被硬编码两次或多次,请直接提取它为常量并更改相应的引用。 - 通常,`log` 中的常量可以忽略提取。 - - - 负面示例: - - ```java - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put("status", "success"); - resp.put("code", ResponseCode.CODE_SUCCESS); - resp.put("data", data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put("status", "error"); - resp.put("code", ResponseCode.CODE_FAIL); - resp.put("data", null); - return resp; - } - ``` - - - 正面示例: - - > 字符串提取为常量引用。 - - ```java - public static final String STATUS = "status"; - public static final String CODE = "code"; - public static final String DATA = "data"; - - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "success"); - resp.put(CODE, ResponseCode.CODE_SUCCESS); - resp.put(DATA, data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "error"); - resp.put(CODE, ResponseCode.CODE_FAIL); - resp.put(DATA, null); - return resp; - } - ``` + + > 如果一个常量被硬编码两次或多次,请直接提取它为常量并更改相应的引用。 + > 通常,`log` 中的常量可以忽略提取。 + + - 负面示例: + + ```java + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put("status", "success"); + resp.put("code", ResponseCode.CODE_SUCCESS); + resp.put("data", data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put("status", "error"); + resp.put("code", ResponseCode.CODE_FAIL); + resp.put("data", null); + return resp; + } + ``` + + - 正面示例: + + > 字符串提取为常量引用。 + + ```java + public static final String STATUS = "status"; + public static final String CODE = "code"; + public static final String DATA = "data"; + + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "success"); + resp.put(CODE, ResponseCode.CODE_SUCCESS); + resp.put(DATA, data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "error"); + resp.put(CODE, ResponseCode.CODE_FAIL); + resp.put(DATA, null); + return resp; + } + ``` 2. 确保代码的可读性和直观性 -- `annotation` 符号中的字符串不需要提取为常量。 + - `annotation` 符号中的字符串不需要提取为常量。 -- 被引用的 `package` 或 `resource` 名称不需要提取为常量。 + - 被引用的 `package` 或 `resource` 名称不需要提取为常量。 3. 未被重新分配的变量也必须声明为 final 类型。 4. 关于 `constant/variable` 行的排序顺序 按以下顺序对类中的变量行进行排序: - 1. `public static final V`, `static final V`,`protected static final V`, `private static final V` - 2. `public static v`, `static v`,`protected static v`, `private static v` - 3. `public v`, `v`, `protected v`, `private v` + 1. `public static final V`, `static final V`,`protected static final V`, `private static final V` + 2. `public static v`, `static v`,`protected static v`, `private static v` + 3. `public v`, `v`, `protected v`, `private v` ### 3.3 方法规则 @@ -174,37 +173,33 @@ sidebar_position: 3 3. 如果方法中的代码行数太多,请尝试在适当的点上使用多个子方法来分段方法体。 一般来说,需要坚持以下原则: - - 便于测试 - - 有好的语义 - - 易于阅读 + - 便于测试 + - 有好的语义 + - 易于阅读 此外,还需要考虑在组件、逻辑、抽象和场景等方面的切割是否合理。 > 然而,目前还没有明确的演示定义。在演变过程中,我们将为开发者提供更多的示例,以便他们有更清晰的参考和理解。 - ### 3.4 集合规则 1. 对于返回的 `collection` 值,除非有特殊的 `concurrent` (如线程安全),总是返回 `interface`,例如: - - - 如果使用 `ArrayList`,则返回 List - - 如果使用 `HashMap`,则返回 Map - - 如果使用 `HashSet`,则返回 Set - + - 如果使用 `ArrayList`,则返回 List + - 如果使用 `HashMap`,则返回 Map + - 如果使用 `HashSet`,则返回 Set 2. 如果存在多线程,可以使用以下声明或返回类型: - ```java + ```java private CurrentHashMap map; public CurrentHashMap funName(); - ``` + ``` 3. 使用 `isEmpty()` 而不是 `length() == 0` 或者 `size() == 0` - - 负面示例: ```java if (pathPart.length() == 0) { - return; + return; } ``` @@ -212,7 +207,7 @@ sidebar_position: 3 ```java if (pathPart.isEmpty()) { - return; + return; } ``` @@ -227,87 +222,99 @@ sidebar_position: 3 ### 3.6 控制/条件语句 1. 避免因不合理的 `条件/控制` 分支顺序导致: + - 多个代码行的 `深度` 为 `n+1` + - 多余的行 - - 多个代码行的 `深度` 为 `n+1` - - 多余的行 + 一般来说,如果一个方法的代码行深度由于连续嵌套的 `if... else..` 超过了 `2+ Tabs`,那么应该考虑试图 -一般来说,如果一个方法的代码行深度由于连续嵌套的 `if... else..` 超过了 `2+ Tabs`,那么应该考虑试图 -- `合并分支`, -- `反转分支条件` -- `提取私有方法` + - `合并分支`, + - `反转分支条件` + - `提取私有方法` -以减少代码行深度并提高可读性,例如: -- 联合或将逻辑合并到下一级调用中 - - 负面示例: - ```java + 以减少代码行深度并提高可读性,例如: + + - 联合或将逻辑合并到下一级调用中 + - 负面示例: + + ```java if (isInsert) { - save(platform); + save(platform); } else { - updateById(platform); + updateById(platform); } - ``` - - 正面示例: - ```java + ``` + + - 正面示例: + + ```java saveOrUpdate(platform); - ``` -- 合并条件 - - 负面示例: - ```java + ``` + + - 合并条件 + - 负面示例: + + ```java if (expression1) { - if(expression2) { - ...... - } + if(expression2) { + // ...... + } } - ``` - - 正面示例: - ```java - if (expression1 && expression2) { - ...... - } - ``` -- 反转条件 - - 负面示例: + ``` - ```java - public void doSomething() { + - 正面示例: + + ```java + if (expression1 && expression2) { + // ...... + } + ``` + + - 反转条件 + - 负面示例: + + ```java + public void doSomething() { // 忽略更深的代码块行 // ..... if (condition1) { - ... + // ... } else { - ... + // ... } - } - ``` + } + ``` + + - 正面示例: - - 正面示例: - - ```java - public void doSomething() { - // 忽略更深的代码块行 - // ..... - if (!condition1) { - ... - return; - } - // ... - } - ``` -- 使用单一变量或方法减少复杂的条件表达式 - - 负面示例: ```java - if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { - ... - } + public void doSomething() { + // 忽略更深的代码块行 + // ..... + if (!condition1) { + // ... + return; + } + // ... + } ``` - - 正面示例: + - 使用单一变量或方法减少复杂的条件表达式 + - 负面示例: + ```java - if (containsSqlServer(dbType)) { - .... - } - //..... - // containsSqlServer的定义 + if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { + // ... + } + ``` + + - 正面示例: + + ```java + if (containsSqlServer(dbType)) { + // .... + } + //..... + // containsSqlServer的定义 ``` > 在未来,使用 `sonarlint` 和 `better highlights` 检查代码深度看起来是个不错的选择。 @@ -316,20 +323,20 @@ sidebar_position: 3 1. 方法缺少注释: - - `When`:该方法何时可以被调用 - - `How`:如何使用此方法以及如何传递参数等 - - `What`:此方法实现了哪些功能 - - `Note`:在调用此方法时开发人员应注意什么 + - `When`:该方法何时可以被调用 + - `How`:如何使用此方法以及如何传递参数等 + - `What`:此方法实现了哪些功能 + - `Note`:在调用此方法时开发人员应注意什么 2. 缺少必要的类头部描述注释。 - 添加 `What`,`Note` 等,如上述 `1` 中提到的。 + 添加 `What`,`Note` 等,如上述 `1` 中提到的。 3. 在接口中的方法声明必须被注释。 - - 如果实现的语义和接口声明的注释内容不一致,则具体的实现方法也需要用注释重写。 + - 如果实现的语义和接口声明的注释内容不一致,则具体的实现方法也需要用注释重写。 - - 如果方法实现的语义与接口声明的注释内容一致,则建议不写注释以避免重复的注释。 + - 如果方法实现的语义与接口声明的注释内容一致,则建议不写注释以避免重复的注释。 4. 在注释行中的第一个词需要大写,如 `param` 行,`return` 行。 如果特殊引用作为主题不需要大写,需要注意特殊符号,例如引号。 @@ -339,31 +346,31 @@ sidebar_position: 3 1. 更倾向于使用 `non-capturing` lambda(不包含对外部范围的引用的lambda)。 Capturing lambda 在每次调用时都需要创建一个新的对象实例。`Non-capturing` lambda 可以为每次调用使用相同的实例。 - - 负面示例: + - 负面示例: - ```java - map.computeIfAbsent(key, x -> key.toLowerCase()) - ``` + ```java + map.computeIfAbsent(key, x -> key.toLowerCase()) + ``` - - 正面示例: + - 正面示例: - ```java - map.computeIfAbsent(key, k -> k.toLowerCase()); - ``` + ```java + map.computeIfAbsent(key, k -> k.toLowerCase()); + ``` 2. 考虑使用方法引用而不是内联lambda - - 负面示例: + - 负面示例: - ```java - map.computeIfAbsent(key, k-> Loader.load(k)); - ``` + ```java + map.computeIfAbsent(key, k-> Loader.load(k)); + ``` - - 正面示例: + - 正面示例: - ```java - map.computeIfAbsent(key, Loader::load); - ``` + ```java + map.computeIfAbsent(key, Loader::load); + ``` ### 3.9 Java Streams @@ -381,186 +388,189 @@ sidebar_position: 3 1. 使用 `StringUtils.isBlank` 而不是 `StringUtils.isEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isEmpty(name)) { - return; - } - ``` + ```java + if (StringUtils.isEmpty(name)) { + return; + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isBlank(name)) { - return; - } - ``` + ```java + if (StringUtils.isBlank(name)) { + return; + } + ``` 2. 使用 `StringUtils.isNotBlank` 而不是 `StringUtils.isNotEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isNotEmpty(name)) { - return; - } - ``` + ```java + if (StringUtils.isNotEmpty(name)) { + return; + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isNotBlank(name)) { + ```java + if (StringUtils.isNotBlank(name)) { return; - } - ``` + } + ``` 3. 使用 `StringUtils.isAllBlank` 而不是 `StringUtils.isAllEmpty` - - 负面示例: + - 负面示例: - ```java - if (StringUtils.isAllEmpty(name, age)) { - return; - } - ``` + ```java + if (StringUtils.isAllEmpty(name, age)) { + return; + } + ``` - - 正面示例: + - 正面示例: - ```java - if (StringUtils.isAllBlank(name, age)) { + ```java + if (StringUtils.isAllBlank(name, age)) { return; - } - ``` + } + ``` ### 3.12 `Enum` 类 1. 枚举值比较 - - 负面示例: + - 负面示例: - ```java - if (status.equals(JobStatus.RUNNING)) { - return; - } - ``` + ```java + if (status.equals(JobStatus.RUNNING)) { + return; + } + ``` - - 正面示例: + - 正面示例: - ```java - if (status == JobStatus.RUNNING) { + ```java + if (status == JobStatus.RUNNING) { return; - } - ``` + } + ``` 2. 枚举类不需要实现 Serializable - - 负面示例: + - 负面示例: - ```java - public enum JobStatus implements Serializable { - ... - } - ``` + ```java + public enum JobStatus implements Serializable { + // ... + } + ``` - - 正面示例: + - 正面示例: - ```java - public enum JobStatus { - ... - } - ``` + ```java + public enum JobStatus { + // ... + } + ``` 3. 使用 `Enum.name()` 而不是 `Enum.toString()` - - 负面示例: + - 负面示例: - ```java - System.out.println(JobStatus.RUNNING.toString()); - ``` + ```java + System.out.println(JobStatus.RUNNING.toString()); + ``` - - 正面示例: + - 正面示例: - ```java - System.out.println(JobStatus.RUNNING.name()); - ``` + ```java + System.out.println(JobStatus.RUNNING.name()); + ``` 4. 枚举类名称统一使用 Enum 后缀 - - 负面示例: + - 负面示例: - ```java - public enum JobStatus { - ... - } - ``` + ```java + public enum JobStatus { + // ... + } + ``` - - 正面示例: + - 正面示例: - ```java - public enum JobStatusEnum { - ... - } - ``` + ```java + public enum JobStatusEnum { + // ... + } + ``` ### 3.13 `Deprecated` 注解 - - 负面示例: +- 负面示例: - ```java - @deprecated - public void process(String input) { - ... - } - ``` +```java +@deprecated +public void process(String input) { + // ... +} +``` - - 正面示例: +- 正面示例: - ```java - @Deprecated - public void process(String input) { - ... - } - ``` +```java +@Deprecated +public void process(String input) { + // ... +} +``` ## 4 日志 1. 使用 `占位符` 进行日志输出: - - 负面示例 - ```java - log.info("Deploy cluster request " + deployRequest); - ``` - - 正面示例 - ```java - log.info("load plugin:{} to {}", file.getName(), appPlugins); - ``` + - 负面示例 + + ```java + log.info("Deploy cluster request " + deployRequest); + ``` + + - 正面示例 + + ```java + log.info("load plugin:{} to {}", file.getName(), appPlugins); + ``` 2. 打印日志时,注意选择 `日志级别` - 当打印日志内容时,如果传递了日志占位符的实际参数,必须避免过早评估,以避免由日志级别导致的不必要评估。 + 当打印日志内容时,如果传递了日志占位符的实际参数,必须避免过早评估,以避免由日志级别导致的不必要评估。 - - 负面示例: + - 负面示例: - 假设当前日志级别为 `INFO`: + 假设当前日志级别为 `INFO`: - ```java - // 忽略声明行。 - List userList = getUsersByBatch(1000); - LOG.debug("All users: {}", getAllUserIds(userList)); - ``` + ```java + // 忽略声明行。 + List userList = getUsersByBatch(1000); + LOG.debug("All users: {}", getAllUserIds(userList)); + ``` - - 正面示例: + - 正面示例: - 在这种情况下,我们应该在进行实际的日志调用之前提前确定日志级别,如下所示: + 在这种情况下,我们应该在进行实际的日志调用之前提前确定日志级别,如下所示: - ```java - // 忽略声明行。 - List userList = getUsersByBatch(1000); - if (LOG.isDebugEnabled()) { - LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); - } - ``` + ```java + // 忽略声明行。 + List userList = getUsersByBatch(1000); + if (LOG.isDebugEnabled()) { + LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); + } + ``` ## 5 测试 @@ -568,10 +578,10 @@ sidebar_position: 3 2. 实现的接口需在`e2e`模块下编写`e2e`测试用例脚本。 - ## 参考资料 -- https://site.mockito.org/ -- https://alibaba.github.io/p3c/ -- https://rules.sonarsource.com/java/ -- https://junit.org/junit5/ -- https://streampark.apache.org/ + +- +- +- +- +- diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contact.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contact.md index 72f147b11c3..0c574937517 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contact.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contact.md @@ -1,15 +1,16 @@ --- id: contact title: 交流联系 -sidebar_label: 交流联系 +sidebar_label: 交流联系 --- + > 如果您在使用过程有任何需要帮助或者想交流建议,可以通过 群 ISSUE 讨论交流。 [订阅邮件列表](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) : 发送邮件至 `dev-subscribe@hertzbeat.apache.org` 来订阅邮件列表. [Chat On Discord](https://discord.gg/Fb6M73htGr) -微信交流群 : 加 `tan-cloud` 好友邀请进群. +微信交流群 : 加 `ahertzbeat` 好友邀请进群. 微信公众号 : 搜索 ID `usthecom`. diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contribution.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contribution.md index 314571f8fc9..8b2a17fd1d6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contribution.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/contribution.md @@ -5,20 +5,20 @@ sidebar_position: 0 --- > 非常欢迎参与项目贡献,我们致力于维护一个互相帮助的快乐社区。 @@ -47,7 +47,7 @@ sidebar_position: 0 ### 让 HertzBeat 运行起来 -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 +> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 > 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 #### 后端启动 @@ -87,23 +87,31 @@ sidebar_position: 0 1. 首先您需要 Fork 目标仓库 [hertzbeat repository](https://github.com/apache/hertzbeat). 2. 然后 用git命令 将代码下载到本地: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` + + ```shell + git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended + ``` + 3. 下载完成后,请参考目标仓库的入门指南或者 README 文件对项目进行初始化。 4. 接着,您可以参考如下命令进行代码的提交, 切换新的分支, 进行开发: -```shell -git checkout -b a-feature-branch #Recommended -``` + + ```shell + git checkout -b a-feature-branch #Recommended + ``` + 5. 提交 commit , commit 描述信息需要符合约定格式: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` + + ```shell + git add + git commit -m '[docs]feature: necessary instructions' #Recommended + ``` + 6. 推送到远程仓库 -```shell -git push origin a-feature-branch -``` + + ```shell + git push origin a-feature-branch + ``` + 7. 然后您就可以在 GitHub 上发起新的 PR (Pull Request)。 请注意 PR 的标题需要符合我们的规范,并且在 PR 中写上必要的说明,来方便 Committer 和其他贡献者进行代码审查。 @@ -143,19 +151,21 @@ git pull upstream master [Github Discussion](https://github.com/apache/hertzbeat/discussions) -加微信号 `tan-cloud` 拉您进微信交流群 +加微信号 `ahertzbeat` 拉您进微信交流群 ### 模块 - **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** 提供监控管理,系统管理基础服务 + > 提供对监控的管理,监控应用配置的管理,系统用户租户后台管理等。 -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 +> +> - **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** 提供监控数据采集服务 > 使用通用协议远程采集获取对端指标数据。 -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 +> - **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** 提供监控数据仓储服务 > 采集指标结果数据管理,数据落盘,查询,计算统计。 -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 +> - **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** 提供告警服务 > 告警计算触发,任务状态联动,告警配置,告警通知。 -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 +> - **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** 提供可视化控制台页面 > 监控告警系统可视化控制台前端 ![hertzBeat](/img/docs/hertzbeat-arch.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/development.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/development.md index 2bfebd21d2f..2d440e18f01 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/development.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/development.md @@ -1,15 +1,14 @@ --- id: development title: 如何将 HertzBeat 运行编译? -sidebar_label: 运行编译 +sidebar_label: 运行编译 --- ## 让 HertzBeat 运行起来 -> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 +> 让 HertzBeat 的代码在您的开发工具上运行起来,并且能够断点调试。 > 此为前后端分离项目,本地代码启动需将后端 [manager](https://github.com/apache/hertzbeat/tree/master/manager) 和前端 [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) 分别启动生效。 - ### 后端启动 1. 需要 `maven3+`, `java17` 和 `lombok` 环境 @@ -38,7 +37,7 @@ sidebar_label: 运行编译 ## 生成二进制包 -> 需要 `maven3+`, `java17`, `node` 和 `yarn` 环境. +> 需要 `maven3+`, `java17`, `node` 和 `yarn` 环境. ### 前端打包 @@ -52,7 +51,6 @@ sidebar_label: 运行编译 5. 打包: `yarn package` - ### 后端打包 1. 需要 `maven3+`, `java17` 环境 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/document.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/document.md index e696b3c35e4..7032d24688e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/document.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/document.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- 对于任何类型的软件来说,良好的文档都是至关重要的。任何能够改进 HertzBeat 文档的贡献都是受欢迎的。 @@ -40,8 +40,8 @@ git clone git@github.com:/hertzbeat.git 1. 下载并安装 nodejs (版本 18.8.0) 2. 将代码克隆到本地 `git clone git@github.com:apache/hertzbeat.git` 3. 在`home`目录下运行 `npm install` 来安装所需的依赖库。 -4. 在`home`目录下运行 `npm run start`,您可以访问 http://localhost:3000 查看站点的英文模式预览 -5. 在`home`目录下运行 `npm run start-zh-cn`,您可以访问 http://localhost:3000 查看站点的中文模式预览 +4. 在`home`目录下运行 `npm run start`,您可以访问 查看站点的英文模式预览 +5. 在`home`目录下运行 `npm run start-zh-cn`,您可以访问 查看站点的中文模式预览 6. 若要生成静态网站资源文件,请运行 `npm run build`。构建的静态资源位于 build 目录中。 ## 目录结构 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md index 541444473d2..419d0ad3466 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md @@ -12,7 +12,7 @@ sidebar_position: 4 - JDK 17 - Node18 Yarn -- Apache Maven 3.x +- Apache Maven 3.x - GnuPG 2.x - Git - SVN (Apache使用svn来托管项目发布) @@ -22,11 +22,12 @@ sidebar_position: 4 ## 2. 准备发布 > 首先整理帐户信息以更好地了解操作过程,稍后会多次使用。 -- apache id: `muchunjin (APACHE LDAP 用户名)` -- apache passphrase: `APACHE LDAP 密钥` -- apache email: `muchunjin@apache.org` -- gpg real name: `muchunjin (任何名称均可用, 在这里我将其设置为与apache id相同的名称)` -- gpg key passphrase: `创建gpg密钥时设置的密码,你需要记住此密码` +> +> - apache id: `muchunjin (APACHE LDAP 用户名)` +> - apache passphrase: `APACHE LDAP 密钥` +> - apache email: `muchunjin@apache.org` +> - gpg real name: `muchunjin (任何名称均可用, 在这里我将其设置为与apache id相同的名称)` +> - gpg key passphrase: `创建gpg密钥时设置的密码,你需要记住此密码` ### 2.1 生成密钥 @@ -128,13 +129,12 @@ gpg: Total number processed: 1 gpg: unchanged: 1 ``` -或者进入 https://keyserver.ubuntu.com/ 网址,输入密钥的名称,然后点击'Search key' 按钮,查看是否有对应名称的密钥。 - +或者进入 网址,输入密钥的名称,然后点击'Search key' 按钮,查看是否有对应名称的密钥。 #### 2.4 将 gpg 公钥添加到 Apache SVN 项目仓库的 KEYS 文件中 -- Apache HertzBeat Dev 分支 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat -- Apache HertzBeat Release 分支 https://dist.apache.org/repos/dist/release/incubator/hertzbeat +- Apache HertzBeat Dev 分支 +- Apache HertzBeat Release 分支 ##### 2.4.1 将公钥添加到dev分支的KEYS @@ -168,7 +168,9 @@ $ svn ci -m "add gpg key for muchunjin" ## 3. 准备物料 & 发布 -#### 3.1 基于 master 分支,创建一个名为 release-${release_version}-rcx 的分支,例如 release-1.6.0-rc1。并基于 release-1.6.0-rc1 分支创建一个名为 v1.6.0-rc1 的标签,并将此标签设置为预发布。 +### 准备发布物料 + +#### 3.1 基于 master 分支,创建一个名为 release-${release_version}-rcx 的分支,例如 release-1.6.0-rc1。并基于 release-1.6.0-rc1 分支创建一个名为 v1.6.0-rc1 的标签,并将此标签设置为预发布 ```shell git checkout master @@ -228,11 +230,13 @@ release-1.6.0-rc1 生成的代码归档文件在 `dist/apache-hertzbeat-1.6.0-incubating-src.tar.gz` +### 签名发布物料 + #### 3.5 对二进制和源码包进行签名 -将上步骤生成的三个文件包放到`dist`目录下(若无则新建目录),然后对文件包进行签名和SHA512校验和生成。 +将上步骤生成的三个文件包放到`dist`目录下(若无则新建目录),然后对文件包进行签名和SHA512校验和生成。 -> 其中 `gpg -u 33545C76` 的 `33545C76` 是你的 GPG 密钥 ID,可以通过 `gpg --keyid-format SHORT --list-keys` 查看。 +> 其中 `gpg -u 33545C76` 的 `33545C76` 是你的 GPG 密钥 ID,可以通过 `gpg --keyid-format SHORT --list-keys` 查看。 ```shell cd dist @@ -248,7 +252,7 @@ for i in *.tar.gz; do echo $i; sha512sum $i > $i.sha512 ; done > 最终文件列表如下 -``` +```properties apache-hertzbeat-1.6.0-incubating-src.tar.gz apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512 @@ -331,19 +335,19 @@ svn commit -m "release for HertzBeat 1.6.0-RC1" - 检查 Apache SVN 提交结果 -> 在浏览器中访问 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ , 检查是否有新的版本内容 +> 在浏览器中访问 , 检查是否有新的版本内容 ## 4. 进入社区投票阶段 -#### 4.1 发送社区投票邮件 +### 4.1 发送社区投票邮件 发送社区投票邮件需要至少三个`+1`,且无`-1`。 -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0 rc1
-> `Body`: +> `Body`: -``` +```text Hello HertzBeat Community: This is a call for vote to release Apache HertzBeat (incubating) version release-1.6.0-RC1. @@ -395,17 +399,16 @@ Thanks! 在72小时后,将统计投票结果,并发送投票结果邮件,如下所示。 -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Dear HertzBeat community, Thanks for your review and vote for "Release Apache HertzBeat (incubating) 1.6.0-rc1" I'm happy to announce the vote has passed: - - +--- 4 binding +1, from: - cc @@ -413,34 +416,30 @@ I'm happy to announce the vote has passed: 1 non-binding +1, from: - Roc Marshal - - +--- no 0 or -1 votes. Vote thread: https://lists.apache.org/thread/t01b2lbtqzyt7j4dsbdp5qjc3gngjsdq - - +--- Thank you to everyone who helped us to verify and vote for this release. We will move to the ASF Incubator voting shortly. - - +--- Best, ChunJin Mu ``` -邮件内容中的一项是`Vote thread`,在 https://lists.apache.org/list.html?dev@hertzbeat.apache.org 查看获取 - +邮件内容中的一项是`Vote thread`,在 查看获取 -#### 3.2 发送孵化社区投票邮件 +### 3.2 发送孵化社区投票邮件 发送孵化社区投票邮件需要至少三个`+1`,且无`-1`。 -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org、private@hertzbeat.apache.org
+> `Send to`:
+> `cc`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hello Incubator Community: This is a call for a vote to release Apache HertzBeat (incubating) version 1.6.0-RC1. @@ -476,27 +475,24 @@ More detailed checklist please refer: Steps to validate the release, Please refer to: • https://www.apache.org/info/verification.html • https://hertzbeat.apache.org/docs/community/how_to_verify_release - - +--- How to Build: https://hertzbeat.apache.org/docs/community/development/#build-hertzbeat-binary-package - - +--- Thanks, On behalf of Apache HertzBeat (incubating) community - - +--- Best, ChunJin Mu ``` 如果72小时后没有-1,回复邮件如下 -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Body`: -``` +```text Thanks everyone for review and vote, 72H passed. I'll announce the vote result soon. Best, @@ -505,11 +501,11 @@ Chunjin Mu 然后将统计投票结果,并发送投票结果邮件,如下所示。 -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hi Incubator Community, The vote to release Apache HertzBeat (incubating) 1.6.0-rc4 has passed with 3 +1 binding and no +0 or -1 votes. @@ -531,28 +527,28 @@ Best, ChunJin Mu ``` -邮件内容中的一项是`Vote thread`,在 https://lists.apache.org/list.html?general@incubator.apache.org 查看获取 +邮件内容中的一项是`Vote thread`,在 查看获取 等待一天,查看看导师是否有其他意见,如果没有,发送以下公告邮件 ## 4. 完成最终发布步骤 -#### 4.1 迁移源代码和二进制包 +### 4.1 迁移源代码和二进制包 ```shell svn mv https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/1.6.0-RC1 https://dist.apache.org/repos/dist/release/incubator/hertzbeat/1.6.0 -m "transfer packages for 1.6.0-RC1" ``` -#### 4.2 添加新版本下载地址到官网 +### 4.2 添加新版本下载地址到官网 -https://github.com/apache/hertzbeat/blob/master/home/docs/download.md -https://github.com/apache/hertzbeat/blob/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md + + -完成后打开官网地址 https://hertzbeat.apache.org/docs/download/ 查看是否有新版本的下载 +完成后打开官网地址 查看是否有新版本的下载 > 需要注意的是,下载链接可能需要一个小时后才会生效,请注意。 -#### 4.3 Github 生成 Release +### 4.3 Github 生成 Release 基于 release-1.6.0-rc1 分支修改创建一个名为 v1.6.0 的标签,并将此标签设置为 latest release。 @@ -562,12 +558,15 @@ https://github.com/apache/hertzbeat/blob/master/home/i18n/zh-cn/docusaurus-plugi 然后输入发版标题和描述 -- 发版标题: -``` +- 发版标题: + +```text v1.6.0 ``` + - 描述: -``` + +```text xxx release note: xxx ``` @@ -576,29 +575,34 @@ release note: xxx 然后将 release-1.6.0-rc1 分支重命名 为 release-1.6.0。 -#### 4.4 发送新版本公告邮件 +### 4.4 发送新版本公告邮件 -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org
-> `Title`: [ANNOUNCE] Release Apache HertzBeat (incubating) 1.6.0
+> `Send to`:
+> `cc`:
+> `Title`: [ANNOUNCE] Apache HertzBeat (incubating) 1.6.0 released
> `Body`: -``` -Hi Incubator Community, +```text +Hi Community, We are glad to announce the release of Apache HertzBeat (incubating) 1.6.0. -Once again I would like to express my thanks to your help. +Thanks again for your help. + +Apache HertzBeat (https://hertzbeat.apache.org/) - a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. -Apache HertzBeat(https://hertzbeat.apache.org/) - a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. +Download Link: +https://hertzbeat.apache.org/docs/download/ -Download Links: https://hertzbeat.apache.org/download/ -Release Notes: https://github.com/apache/hertzbeat/releases/tag/v1.6.0 +Release Note: +https://github.com/apache/hertzbeat/releases/tag/v1.6.0 + +Website: +https://hertzbeat.apache.org/ HertzBeat Resources: - Issue: https://github.com/apache/hertzbeat/issues - Mailing list: dev@hertzbeat.apache.org - - +--- Apache HertzBeat Team Best, @@ -607,6 +611,6 @@ ChunJin Mu 该版本的发布顺利结束。 ----- +--- -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-verify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-verify.md index ee4f9563c83..f6aa3c19039 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-verify.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-verify.md @@ -3,13 +3,14 @@ id: how_to_verify_release title: 版本物料的验证 sidebar_position: 4 --- -# 验证候选版本 + +## 验证候选版本 详细检查列表请参考官方的[check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist) -在浏览器中可访问版本内容 https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ +在浏览器中可访问版本内容 -## 1. 下载候选版本到本地 +### 1. 下载候选版本到本地 > 需要依赖gpg工具,如果没有,建议安装gpg2 @@ -21,13 +22,11 @@ wget https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_versio ``` - -## 2. 验证上传的版本是否合规 +### 2. 验证上传的版本是否合规 > 开始验证环节,验证包含但不局限于以下内容和形式 - -### 2.1 查看发布包是否完整 +#### 2.1 查看发布包是否完整 > 上传到dist的包必须包含源码包,二进制包可选 @@ -36,18 +35,18 @@ wget https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_versio 3. 是否包含源码包的sha512 4. 如果上传了二进制包,则同样检查(2)-(4)所列的内容 - -### 2.2 检查gpg签名 +#### 2.2 检查gpg签名 首先导入发布人公钥。从svn仓库导入KEYS到本地环境。(发布版本的人不需要再导入,帮助做验证的人需要导入,用户名填发版人的即可) -#### 2.2.1 导入公钥 +##### 2.2.1 导入公钥 ```shell -$ curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # 下载KEYS -$ gpg --import KEYS # 导入KEYS到本地 +curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # 下载KEYS +gpg --import KEYS # 导入KEYS到本地 ``` -#### 2.2.2 信任公钥 + +##### 2.2.2 信任公钥 > 信任此次版本所使用的KEY @@ -75,13 +74,15 @@ Do you really want to set this key to ultimate trust? (y/N) y #选择y gpg> ``` -#### 2.2.3 检查签名 + +##### 2.2.3 检查签名 ```shell for i in *.tar.gz; do echo $i; gpg --verify $i.asc $i ; done ``` 检查结果 + > 出现类似以下内容则说明签名正确,关键字:**`Good signature`** ```shell @@ -91,16 +92,15 @@ gpg: using RSA key XXXXX gpg: Good signature from "xxx @apache.org>" ``` -### 2.3 检查sha512哈希 +#### 2.3 检查sha512哈希 > 本地计算sha512哈希后,验证是否与dist上的一致,如果上传二进制包,则同样需要检查二进制包的sha512哈希 - ```shell for i in *.tar.gz; do echo $i; sha512sum --check $i.sha512; done ``` -### 2.4 检查二进制包 +#### 2.4 检查二进制包 解压缩 `apache-hertzbeat-${release.version}-incubating-bin.tar.gz` @@ -121,10 +121,9 @@ tar -xzvf apache-hertzbeat-${release.version}-incubating-bin.tar.gz - [ ] 如果依赖的是Apache许可证并且存在`NOTICE`文件,那么这些`NOTICE`文件也需要加入到版本的`NOTICE`文件中 - [ ] ..... -参考: https://apache.org/legal/resolved.html - +参考: -### 2.5. 源码编译验证 +#### 2.5. 源码编译验证 解压缩 `apache-hertzbeat-${release_version}-incubating-src.tar.gz` @@ -132,7 +131,7 @@ tar -xzvf apache-hertzbeat-${release.version}-incubating-bin.tar.gz cd apache-hertzbeat-${release_version}-incubating-src ``` -编译源码: https://hertzbeat.apache.org/docs/community/development/#build-hertzbeat-binary-package +编译源码: 进行如下检查: @@ -146,34 +145,33 @@ cd apache-hertzbeat-${release_version}-incubating-src - [ ] 能够正确编译 - [ ] ..... -参考: https://apache.org/legal/resolved.html +参考: - -## 3. 邮件回复 +### 3. 邮件回复 如果发起了发布投票,验证后,可以参照此回复示例进行邮件回复 :::caution 注意 回复的邮件一定要带上自己检查了那些项信息,仅仅回复`+1 approve`,是无效的。 -PPMC 在 dev@hertzbeat.apache.org HertzBeat 的社区投票时,请带上 binding 后缀,表示对 HertzBeat 社区中的投票具有约束性投票,方便统计投票结果。 +PPMC 在 HertzBeat 的社区投票时,请带上 binding 后缀,表示对 HertzBeat 社区中的投票具有约束性投票,方便统计投票结果。 -IPMC 在 general@incubator.apache.org incubator 社区投票,请带上 binding 后缀,表示对 incubator 社区中的投票具有约束性投票,方便统计投票结果。 +IPMC 在 incubator 社区投票,请带上 binding 后缀,表示对 incubator 社区中的投票具有约束性投票,方便统计投票结果。 ::: :::caution 注意 -如果在dev@hertzbeat.apache.org已经投过票,在incubator社区进行投票回复时,可以直接带过去,需要注意约束性 如: +如果在已经投过票,在incubator社区进行投票回复时,可以直接带过去,需要注意约束性 如: ```html //incubator社区 投票时,只有IPMC成员才具有约束性 binding,PPMC需要注意约束性的变化 Forward my +1 from dev@hertzbeat (non-binding) Copy my +1 from hertzbeat DEV ML (non-binding) ``` -::: - +::: 非PPMC/IPMC成员 + ```html +1 (non-binding) I checked: @@ -185,6 +183,7 @@ I checked: ``` PPMC/IPMC成员 + ```html //incubator社区 投票时,只有IPMC成员才具有约束性 binding +1 (binding) @@ -196,7 +195,6 @@ I checked: 5. .... ``` +--- ---- - -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/mailing_lists.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/mailing_lists.md index 57de5409834..64d938005fd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/mailing_lists.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/mailing_lists.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- [开发者邮件列表](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) 是社区推荐的沟通和获取最新信息的方式。 @@ -32,28 +32,26 @@ sidebar_position: 1 - 使用此列表提出您对 HertzBeat 的问题 - 由 HertzBeat 贡献者用来讨论 HertzBeat 的开发 - -| 列表名称 | 地址 | 订阅 | 退订 | 归档 | -|--------------|------------------------------|------------------------------------------------------|---------------------------------------------------------|------------------------------------------------------------------------| -| **开发者列表** | dev@hertzbeat.apache.org | [订阅](mailto:dev-subscribe@hertzbeat.apache.org) | [退订](mailto:dev-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | - +| 列表名称 | 地址 | 订阅 | 退订 | 归档 | +|-----------|--------------------------|-------------------------------------------------|---------------------------------------------------|-------------------------------------------------------------------| +| **开发者列表** | | [订阅](mailto:dev-subscribe@hertzbeat.apache.org) | [退订](mailto:dev-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | ### 通知列表 - 关于 HertzBeat 代码库的更改的通知,频繁通知 -| 列表名称 | 地址 | 订阅 | 退订 | 归档 | -|-----------|------------------------------|-------------------------------------------------------------|--------------------------------------------------------------|-----------------------------------------------------------------------------| -| **通知列表** | notifications@hertzbeat.apache.org | [订阅](mailto:notifications-subscribe@hertzbeat.apache.org) | [退订](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | +| 列表名称 | 地址 | 订阅 | 退订 | 归档 | +|----------|------------------------------------|-----------------------------------------------------------|-------------------------------------------------------------|-----------------------------------------------------------------------------| +| **通知列表** | | [订阅](mailto:notifications-subscribe@hertzbeat.apache.org) | [退订](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [归档](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | ## 订阅步骤 发送订阅邮件即可订阅。步骤如下: - 1、**订阅**:点击上表中的 **订阅** 按钮,它将重定向到您的邮件客户端。主题和内容是任意的。 - 之后,您会从 dev-help@hertzbeat.apache.org 收到确认邮件(如果没有收到,请确认电子邮件是否被自动分类为垃圾邮件、推广邮件、订阅邮件等)。 + 之后,您会从 收到确认邮件(如果没有收到,请确认电子邮件是否被自动分类为垃圾邮件、推广邮件、订阅邮件等)。 - 2、**确认**:直接回复确认邮件,或点击邮件中的链接快速回复。主题和内容是任意的。 -- 3、**欢迎**:在完成上述步骤后,您会收到一个主题为 WELCOME to dev@hertzbeat.apache.org 的欢迎邮件,您已成功订阅 Apache HertzBeat 邮件列表。 +- 3、**欢迎**:在完成上述步骤后,您会收到一个主题为 WELCOME to 的欢迎邮件,您已成功订阅 Apache HertzBeat 邮件列表。 ## 发送纯文本邮件 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_committer_process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_committer_process.md index 188b68b3688..8be0582e157 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_committer_process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_committer_process.md @@ -5,20 +5,20 @@ sidebar_position: 4 --- [官方指南](https://community.apache.org/newcommitter.html#new-committer-process) @@ -50,7 +50,6 @@ sidebar_position: 4 - 等待root告诉我们已经完成 - PMC主席开启svn和其他访问权限 - 在JIRA和CWiki中将Committer添加到适当的组中 - - 通知Committer完成 参见 **Committer完成模板** @@ -81,7 +80,7 @@ ${Work list}[1] ``` 注意,投票将在今天一周后结束,即 -[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache投票指南](https://community.apache.org/newcommitter.html) ### 关闭投票模板 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_pmc_member_process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_pmc_member_process.md index 4488f1fcfea..500627ec5f2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_pmc_member_process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/new_pmc_member_process.md @@ -5,20 +5,20 @@ sidebar_position: 5 --- 这个指南是基于 [apache newcommitter](https://community.apache.org/newcommitter.html#new-committer-process) 的。 @@ -79,10 +79,9 @@ ${Work list}[1] ``` 注意,投票将在今天一周后结束,即 -[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache 参考投票指南](https://community.apache.org/newcommitter.html) - ### Close Vote Template ```text diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/submit-code.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/submit-code.md index ee553bb6e1c..7ad649e09d1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/submit-code.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/submit-code.md @@ -5,72 +5,68 @@ sidebar_position: 2 --- - * 首先从远程仓库 将代码的一份副本 fork 到您自己的仓库 * 远程仓库开发合并分支:`master` * 将您fork仓库clone到您的本地设备 - ```shell - git clone git@github.com:<您的账户名>/hertzbeat.git - ``` + ```shell + git clone git@github.com:<您的账户名>/hertzbeat.git + ``` * 添加远程仓库地址,命名为 upstream - ```shell - git remote add upstream git@github.com:apache/hertzbeat.git - ``` + ```shell + git remote add upstream git@github.com:apache/hertzbeat.git + ``` * 查看仓库 - ```shell - git remote -v - ``` + ```shell + git remote -v + ``` > 此时会有两个仓库:origin(您自己的仓库)和 upstream(远程仓库) * 获取/更新远程仓库代码 - ```shell - git fetch upstream - ``` + ```shell + git fetch upstream + ``` * 将远程仓库代码同步到本地仓库 - ```shell - git checkout origin/master - git merge --no-ff upstream/master - ``` + ```shell + git checkout origin/master + git merge --no-ff upstream/master + ``` * **⚠️注意一定要新建分支开发特性 `git checkout -b feature-xxx`,不建议使用master分支直接开发** - * 在本地修改代码后,提交到自己的仓库: - **注意提交信息为英文,不包含特殊字符** - ```shell - git commit -m '[docs]necessary instructions' - git push - ``` + **注意提交信息为英文,不包含特殊字符** -* 将更改提交到远程仓库后,您可以在您的仓库页面上看到一个绿色的按钮“Compare & pull request”,点击它。 + ```shell + git commit -m '[docs]necessary instructions' + git push + ``` +* 将更改提交到远程仓库后,您可以在您的仓库页面上看到一个绿色的按钮“Compare & pull request”,点击它。 * 这会弹出新建 Pull Request 页面,您需要这里仔细填写信息(英文),描述和代码同样重要,然后点击“Create pull request”按钮。 - * 然后社区的 Committers 将进行 CodeReview,并与您讨论一些细节(包括设计、实现、性能等),之后您可以根据建议直接在这个分支更新代码(无需新建PR)。当社区 Committer approve之后,提交将被合并到 master 分支。 - * 最后,恭喜您,您已经成为 HertzBeat 的官方贡献者,您会被加在贡献者墙上,您可以联系社区获取贡献者证书! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/download.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/download.md index 7ce72412d0b..7de1466e664 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/download.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/download.md @@ -4,12 +4,14 @@ title: 下载 Apache HertzBeat (incubating) sidebar_label: Download --- -> **这里是 Apache HertzBeat (incubating) 官方下载页面。** +> **这里是 Apache HertzBeat (incubating) 官方下载页面。** > **请再下方表中选择版本下载,推荐使用最新版本。** :::tip + - 验证下载版本,请使用相应的哈希(sha512)、签名和[项目发布KEYS](https://downloads.apache.org/incubator/hertzbeat/KEYS)。 - 检查哈希和签名的方法参考 [如何验证](https://www.apache.org/dyn/closer.cgi#verify)。 + ::: ## 最新版本 @@ -18,11 +20,9 @@ sidebar_label: Download 以前版本的 HertzBeat 可能会受到安全问题的影响,请考虑使用最新版本。 ::: - -| 版本 | 日期 | 下载 | Release Notes | -|---------|---------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| -| v1.6.0 | 2024.06.10 | [apache-hertzbeat-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-1.6.0-incubating-src.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512) ) | [release note](https://github.com/apache/hertzbeat/releases/tag/v1.6.0) | - +| 版本 | 日期 | 下载 | Release Notes | +|--------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| +| v1.6.0 | 2024.06.10 | [apache-hertzbeat-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-1.6.0-incubating-src.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512) ) | [release note](https://github.com/apache/hertzbeat/releases/tag/v1.6.0) | ## 归档版本 @@ -30,7 +30,7 @@ sidebar_label: Download ## Docker 镜像版本 -> Apache HertzBeat 为每个版本制作了 Docker 镜像. 你可以从 [Docker Hub](https://hub.docker.com/r/apache/hertzbeat) 拉取使用. +> Apache HertzBeat 为每个版本制作了 Docker 镜像. 您可以从 [Docker Hub](https://hub.docker.com/r/apache/hertzbeat) 拉取使用. -- HertzBeat https://hub.docker.com/r/apache/hertzbeat -- HertzBeat Collector https://hub.docker.com/r/apache/hertzbeat-collector +- HertzBeat +- HertzBeat Collector diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/activemq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/activemq.md index b2d8f1489f5..a6c741ba2e7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/activemq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/activemq.md @@ -9,65 +9,68 @@ keywords: [开源监控系统, 开源中间件监控, ActiveMQ消息中间件监 **使用协议:JMX** -### 监控前操作 +### 监控前操作 > 您需要在 ActiveMQ 开启 `JMX` 服务,HertzBeat 使用 JMX 协议对 ActiveMQ 进行指标采集。 1. 修改安装目录下的 `conf/activemq.xml` 文件,开启JMX -> 在 `broker` 标签中添加 `userJmx="true"` 属性 - -```xml - - - -``` - -2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 - -将如下原配置信息 -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` -更新为如下配置,⚠️注意修改`本机对外IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` + > 在 `broker` 标签中添加 `userJmx="true"` 属性 + + ```xml + + + + ``` + +2. 修改安装目录下的 `bin/env` 文件,配置JMX 端口 IP等 + + 将如下原配置信息 + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` + + 更新为如下配置,⚠️注意修改`本机对外IP` + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` 3. 重启 ACTIVEMQ 服务,在 HertzBeat 添加对应 ActiveMQ 监控即可,参数使用 JMX 配置的 IP 端口。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -|-------------|------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | -| JMX URL | 可选,自定义 JMX URL 连接 | -| 用户名 | 认证时使用的用户名 | -| 密码 | 认证时使用的密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| JMX端口 | JMX 对外提供的HTTP端口,默认为 11099。 | +| JMX URL | 可选,自定义 JMX URL 连接 | +| 用户名 | 认证时使用的用户名 | +| 密码 | 认证时使用的密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 #### 指标集合:broker -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------------|------|-----------------------------------------------------------------------| | BrokerName | 无 | The name of the broker. | | BrokerVersion | 无 | The version of the broker. | @@ -88,57 +91,55 @@ ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" | MaxMessageSize | 无 | Max message size on this broker | | MinMessageSize | 无 | Min message size on this broker | -#### 指标集合:topic - -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | 无 | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | 无 | The percentage of the memory limit used | -| ProducerCount | 无 | Number of producers attached to this destination | -| ConsumerCount | 无 | Number of consumers subscribed to this destination. | -| EnqueueCount | 无 | Number of messages that have been sent to the destination. | -| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | 无 | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - +#### 指标集合:topic + +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|-------------------------------------------------------------------------------------------| +| Name | 无 | Name of this destination. | +| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | +| MemoryPercentUsage | 无 | The percentage of the memory limit used | +| ProducerCount | 无 | Number of producers attached to this destination | +| ConsumerCount | 无 | Number of consumers subscribed to this destination. | +| EnqueueCount | 无 | Number of messages that have been sent to the destination. | +| DequeueCount | 无 | Number of messages that has been acknowledged (and removed) from the destination. | +| ForwardCount | 无 | Number of messages that have been forwarded (to a networked broker) from the destination. | +| InFlightCount | 无 | Number of messages that have been dispatched to, but not acknowledged by, consumers. | +| DispatchCount | 无 | Number of messages that has been delivered to consumers, including those not acknowledged | +| ExpiredCount | 无 | Number of messages that have been expired. | +| StoreMessageSize | B | The memory size of all messages in this destination's store. | +| AverageEnqueueTime | ms | Average time a message was held on this destination. | +| MaxEnqueueTime | ms | The longest time a message was held on this destination | +| MinEnqueueTime | ms | The shortest time a message was held on this destination | +| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | +| AverageMessageSize | B | Average message size on this destination | +| MaxMessageSize | B | Max message size on this destination | +| MinMessageSize | B | Min message size on this destination | #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/airflow.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/airflow.md index 5323ede8110..a7f77f7f5b6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/airflow.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/airflow.md @@ -9,33 +9,30 @@ keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8080 | +| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | +| HTTPS | 是否启用HTTPS | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:airflow_health -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|------------------| +| metadatabase | 无 | metadatabase健康情况 | +| scheduler | 无 | scheduler健康情况 | +| triggerer | 无 | triggerer健康情况 | #### 指标集合:airflow_version -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------------| +| value | 无 | Airflow版本 | +| git_version | 无 | Airflow git版本 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_console.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_console.md index 68cf7339eae..5198b961b66 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_console.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_console.md @@ -6,13 +6,13 @@ sidebar_label: 告警模板登录台地址 > 阈值触发后发送告警信息,通过钉钉/企业微信/飞书机器人通知或者使用邮箱通知的时候,告警内容中有登录控制台的详情链接 - ### 自定义设置 在我们的启动配置文件application.yml中,找到下面的配置 + ```yml alerter: console-url: #这里就是我们的自定义控制台地址 ``` -默认值是赫兹跳动的官方控制台地址 \ No newline at end of file +默认值是赫兹跳动的官方控制台地址 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_dingtalk.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_dingtalk.md index aec6342f7d3..dbc7c583921 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_dingtalk.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_dingtalk.md @@ -5,37 +5,37 @@ sidebar_label: 告警钉钉机器人通知 keywords: [告警钉钉机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 +> 阈值触发后发送告警信息,通过钉钉机器人通知到接收人。 -### 操作步骤 +### 操作步骤 1. **【钉钉桌面客户端】-> 【群设置】-> 【智能群助手】-> 【添加新建机器人-选自定义】-> 【设置机器人名称头像】-> 【注意⚠️设置自定义关键字: HertzBeat】 ->【添加成功后复制其WebHook地址】** -> 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 + > 注意⚠️ 新增机器人时需在安全设置块需设置其自定义关键字: HertzBeat ,其它安全设置加签或IP段不填写 -![email](/img/docs/help/alert-notice-8.png) + ![email](/img/docs/help/alert-notice-8.png) 2. **【保存机器人的WebHook地址access_token值】** -> 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > 例如: webHook地址:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > 其机器人access_token值为 `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` 3. **【告警通知】->【新增接收人】 ->【选择钉钉机器人通知方式】->【设置钉钉机器人ACCESS_TOKEN】-> 【确定】** -![email](/img/docs/help/alert-notice-9.png) + ![email](/img/docs/help/alert-notice-9.png) -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 钉钉机器人通知常见问题 -### 钉钉机器人通知常见问题 +1. 钉钉群未收到机器人告警通知 -1. 钉钉群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查钉钉机器人是否配置了安全自定义关键字:HertzBeat -> 请排查是否配置正确机器人ACCESS_TOKEN,是否已配置告警策略关联 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查钉钉机器人是否配置了安全自定义关键字:HertzBeat + > 请排查是否配置正确机器人ACCESS_TOKEN,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_discord.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_discord.md index d6c4879a2ba..675c606928a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_discord.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_discord.md @@ -5,68 +5,66 @@ sidebar_label: 告警 Discord 机器人通知 keywords: [告警 Discord 机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 +> 阈值触发后发送告警信息,通过 Discord 机器人通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 -### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token +### 在 Discord 创建应用, 应用下创建机器人, 获取机器人 Token -1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 +1. 访问 [https://discord.com/developers/applications](https://discord.com/developers/applications) 创建应用 -![bot](/img/docs/help/discord-bot-1.png) + ![bot](/img/docs/help/discord-bot-1.png) -2. 在应用下创建机器人,获取机器人 Token +2. 在应用下创建机器人,获取机器人 Token -![bot](/img/docs/help/discord-bot-2.png) + ![bot](/img/docs/help/discord-bot-2.png) -![bot](/img/docs/help/discord-bot-3.png) + ![bot](/img/docs/help/discord-bot-3.png) -3. 授权机器人到聊天服务器 +3. 授权机器人到聊天服务器 -> 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` + > 在 OAuth2 菜单下给此机器人授权,`SCOPES` 范围选 `bot`, `BOT PERMISSIONS` 选发送消息 `Send Messages` -![bot](/img/docs/help/discord-bot-4.png) + ![bot](/img/docs/help/discord-bot-4.png) -> 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 + > 获取到最下方生成的 URL, 浏览器访问此 URL 给机器人正式授权,即设置将机器人加入哪个聊天服务器。 -4. 查看您的聊天服务器是否已经加入机器人成员 +4. 查看您的聊天服务器是否已经加入机器人成员 -![bot](/img/docs/help/discord-bot-5.png) + ![bot](/img/docs/help/discord-bot-5.png) -### 开启开发者模式,获取频道 Channel ID +### 开启开发者模式,获取频道 Channel ID -1. 个人设置 -> 高级设置 -> 开启开发者模式 +1. 个人设置 -> 高级设置 -> 开启开发者模式 -![bot](/img/docs/help/discord-bot-6.png) + ![bot](/img/docs/help/discord-bot-6.png) -2. 获取频道 Channel ID +2. 获取频道 Channel ID -> 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID + > 右键选中您想要发送机器人消息的聊天频道,点击 COPY ID 按钮获取 Channel ID -![bot](/img/docs/help/discord-bot-7.png) + ![bot](/img/docs/help/discord-bot-7.png) - -### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot +### 在 HertzBeat 新增告警通知人,通知方式为 Discord Bot 1. **【告警通知】->【新增接收人】 ->【选择 Discord 机器人通知方式】->【设置机器人Token和ChannelId】-> 【确定】** -![email](/img/docs/help/discord-bot-8.png) - -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** + ![email](/img/docs/help/discord-bot-8.png) -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -![email](/img/docs/help/alert-notice-policy.png) + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + ![email](/img/docs/help/alert-notice-policy.png) -### Discord 机器人通知常见问题 +### Discord 机器人通知常见问题 -1. Discord 未收到机器人告警通知 +1. Discord 未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 -> 请排查机器人是否被 Discord聊天服务器正确赋权 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确机器人Token, ChannelId,是否已配置告警策略关联 + > 请排查机器人是否被 Discord聊天服务器正确赋权 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_email.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_email.md index 7033f6036d6..7e4f59e7900 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_email.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_email.md @@ -5,34 +5,35 @@ sidebar_label: 告警邮件通知 keywords: [告警邮件通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过邮件通知到接收人。 +> 阈值触发后发送告警信息,通过邮件通知到接收人。 -### 操作步骤 +### 操作步骤 -1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** +1. **【告警通知】->【新增接收人】 ->【选择邮件通知方式】** -![email](/img/docs/help/alert-notice-1.png) + ![email](/img/docs/help/alert-notice-1.png) -2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** -![email](/img/docs/help/alert-notice-2.png) +2. **【获取验证码】-> 【输入邮箱验证码】-> 【确定】** + ![email](/img/docs/help/alert-notice-2.png) -![email](/img/docs/help/alert-notice-3.png) + ![email](/img/docs/help/alert-notice-3.png) -3. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 邮件通知常见问题 -### 邮件通知常见问题 +1. 自己内网部署的HertzBeat无法接收到邮件通知 -1. 自己内网部署的HertzBeat无法接收到邮件通知 -> HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 + > HertzBeat需要自己配置邮件服务器,TanCloud无需,请确认是否在application.yml配置了自己的邮件服务器 -2. 云环境TanCloud无法接收到邮件通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确邮箱,是否已配置告警策略关联 -> 请查询邮箱的垃圾箱里是否把告警邮件拦截 +2. 云环境TanCloud无法接收到邮件通知 -其它问题可以通过交流群ISSUE反馈哦! + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确邮箱,是否已配置告警策略关联 + > 请查询邮箱的垃圾箱里是否把告警邮件拦截 + +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_enterprise_wechat_app.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_enterprise_wechat_app.md index 3f1c5a2b9c1..1c6f18cfeb0 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_enterprise_wechat_app.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_enterprise_wechat_app.md @@ -5,30 +5,30 @@ sidebar_label: 企业微信应用告警通知 keywords: [开源告警系统, 开源监控告警系统, 企业微信应用告警通知] --- -> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. +> 阈值触发后发送告警信息,通过企业微信应用通知到接收人. -### Operation steps +### Operation steps 1. **【企业微信后台管理】-> 【App管理】-> 【创建一个新的应用】-> 【设置应用信息】->【添加成功后复制应用的AgentId和Secret】** -![email](/img/docs/help/alert-wechat-1.jpg) + ![email](/img/docs/help/alert-wechat-1.jpg) 2. **【告警通知】->【新增接收人】 ->【选择企业微信应用通知方式】->【设置企业ID,企业应用id和应用的secret 】-> 【确定】** -![email](/img/docs/help/alert-wechat-2.jpg) + ![email](/img/docs/help/alert-wechat-2.jpg) -3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +3. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人。** -![email](/img/docs/help/alert-wechat-3.jpg) + ![email](/img/docs/help/alert-wechat-3.jpg) +### 企业微信应用通知常见问题 -### 企业微信应用通知常见问题 +1. 企业微信应用未收到告警通知. -1. 企业微信应用未收到告警通知. -> 请检查用户是否具有应用程序权限. -> 请检查企业应用程序回调地址设置是否正常. -> 请检查服务器IP是否在企业应用程序白名单上. + > 请检查用户是否具有应用程序权限. + > 请检查企业应用程序回调地址设置是否正常. + > 请检查服务器IP是否在企业应用程序白名单上. 其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_feishu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_feishu.md index 448e70de223..dd5c9e0c519 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_feishu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_feishu.md @@ -5,30 +5,30 @@ sidebar_label: 告警飞书机器人通知 keywords: [告警飞书机器人通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 +> 阈值触发后发送告警信息,通过飞书机器人通知到接收人。 -### 操作步骤 +### 操作步骤 1. **【飞书客户端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** -2. **【保存机器人的WebHook地址的KEY值】** +2. **【保存机器人的WebHook地址的KEY值】** -> 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 例如: webHook地址:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` 3. **【告警通知】->【新增接收人】 ->【选择飞书机器人通知方式】->【设置飞书机器人KEY】-> 【确定】** -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 飞书机器人通知常见问题 -### 飞书机器人通知常见问题 +1. 飞书群未收到机器人告警通知 -1. 飞书群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确机器人KEY,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_slack.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_slack.md index f2cc7a76673..05dbcd4f9e3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_slack.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_slack.md @@ -5,34 +5,33 @@ sidebar_label: 告警 Slack Webhook 通知 keywords: [告警 Slack Webhook 通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 +> 阈值触发后发送告警信息,通过 Slack Webhook 通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 -### 在 Slack 开启 Webhook, 获取 Webhook URL +### 在 Slack 开启 Webhook, 获取 Webhook URL -参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) +参考官网文档 [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) -### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook +### 在 HertzBeat 新增告警通知人,通知方式为 Slack Webhook 1. **【告警通知】->【新增接收人】 ->【选择 Slack Webhook 通知方式】->【设置 Webhook URL】-> 【确定】** -![email](/img/docs/help/slack-bot-1.png) + ![email](/img/docs/help/slack-bot-1.png) -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-policy.png) + ![email](/img/docs/help/alert-notice-policy.png) +### Slack 机器人通知常见问题 -### Slack 机器人通知常见问题 +1. Slack 未收到机器人告警通知 -1. Slack 未收到机器人告警通知 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确 Slack Webhook URL,是否已配置告警策略关联 - -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_smn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_smn.md index 73f434a8e8a..5bd4aeec219 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_smn.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_smn.md @@ -11,33 +11,33 @@ keywords: [ 告警华为云SMN通知, 开源告警系统, 开源监控告警系 1. **按照[华为云SMN官方文档](https://support.huaweicloud.com/qs-smn/smn_json.html)开通SMN服务并配置SMN** -![alert-notice-10](/img/docs/help/alert-notice-10.png) + ![alert-notice-10](/img/docs/help/alert-notice-10.png) 2. **保存SMN的主题URN** -![alert-notice-11](/img/docs/help/alert-notice-11.png) + ![alert-notice-11](/img/docs/help/alert-notice-11.png) 3. **按照[华为云签名文档](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html)获取AK、SK和项目ID** -![alert-notice-12](/img/docs/help/alert-notice-12.png) + ![alert-notice-12](/img/docs/help/alert-notice-12.png) -![alert-notice-13](/img/docs/help/alert-notice-13.png) + ![alert-notice-13](/img/docs/help/alert-notice-13.png) 4. **【告警通知】->【新增接收人】 ->【选择华为云SMN通知方式】->【设置华为云SMN AK、SK等配置】-> 【确定】** -![alert-notice-14](/img/docs/help/alert-notice-14.png) + ![alert-notice-14](/img/docs/help/alert-notice-14.png) 5. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) ### 华为云SMN通知常见问题 1. 华为云SMN群未收到告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否正确配置华为云SMN AK、SK等配置,是否已配置告警策略关联 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否正确配置华为云SMN AK、SK等配置,是否已配置告警策略关联 其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_telegram.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_telegram.md index 6730aa19dcb..6b1c6427335 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_telegram.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_telegram.md @@ -5,64 +5,63 @@ sidebar_label: 告警 Telegram 机器人通知 keywords: [告警 Telegram 通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 +> 阈值触发后发送告警信息,通过 Telegram 机器人通知到接收人。 -## 操作步骤 +## 操作步骤 -> 部署网络本身需支持科学上网,不支持设置代理 +> 部署网络本身需支持科学上网,不支持设置代理 ### 在 Telegram 创建机器人, 获取 Bot Token 和 UserId -1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. 获取接收人的 `User ID` - -**使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, -访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` - -```json -{ - "ok":true, - "result":[ - { - "update_id":632299191, - "message":{ - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date":1673858065, - "text":"111" +1. 使用 [@BotFather](https://t.me/BotFather) 创建自己的机器人并获取访问令牌`Token` + + ![telegram-bot](/img/docs/help/telegram-bot-1.png) + +2. 获取接收人的 `User ID` + + **使用您要通知的接收人账户给刚创建 Bot 账户随便发送一个信息**, + 访问 ```https://api.telegram.org/bot/getUpdates``` , **`使用上一步的 Bot Token 替换其中的`**, 响应`Json`数据中第一个`result.message.from.id` 值即为接收人的 `User ID` + + ```json + { + "ok":true, + "result":[ + { + "update_id":632299191, + "message":{ + "from":{ + "id": "User ID" + }, + "chat":{ + }, + "date":1673858065, + "text":"111" + } } - } - ] -} -``` + ] + } + ``` -3. 记录保存我们获得的 `Token` 和 `User Id` +3. 记录保存我们获得的 `Token` 和 `User Id` -### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot +### 在 HertzBeat 新增告警通知人,通知方式为 Telegram Bot 1. **【告警通知】->【新增接收人】 ->【选择 Telegram 机器人通知方式】->【设置机器人Token和UserId】-> 【确定】** -![email](/img/docs/help/telegram-bot-2.png) + ![email](/img/docs/help/telegram-bot-2.png) -4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-policy.png) + ![email](/img/docs/help/alert-notice-policy.png) +### Telegram 机器人通知常见问题 -### Telegram 机器人通知常见问题 +1. Telegram 未收到机器人告警通知 -1. Telegram 未收到机器人告警通知 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 + > UserId 应为消息接收对象的UserId -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人Token, UserId,是否已配置告警策略关联 -> UserId 应为消息接收对象的UserId - -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold.md index 401a3d04d45..a41ae531e28 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold.md @@ -3,6 +3,7 @@ id: alert_threshold title: 阈值告警配置 sidebar_label: 阈值告警配置 --- + > 对监控指标配置告警阈值(警告告警,严重告警,紧急告警),系统根据阈值配置和采集指标数据计算触发告警。 ## 操作步骤 @@ -20,6 +21,7 @@ sidebar_label: 阈值告警配置 如上图所示,新增标签,这里我们设置标签为: linux:dev (开发环境使用Linux) #### 配置标签 + TODO 图片名称更新 ![threshold](/img/docs/help/alert-threshold-3.png) @@ -47,7 +49,6 @@ TODO 图片名称更新 - **恢复通知**:告警触发后是否发送恢复通知,默认不发送。 - **启用告警**:此告警阈值配置开启生效或关闭 - **阈值告警配置完毕,已经被成功触发的告警信息可以在【告警中心】看到。** **若需要将告警信息邮件,微信,钉钉飞书通知给相关人员,可以在【告警通知】配置。** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md index 5924d8965f8..37a9fb29d1b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md @@ -3,11 +3,11 @@ id: alert_threshold_expr title: 阈值触发表达式 sidebar_label: 阈值触发表达式 --- + > 在我们配置阈值告警时,需要配置阈值触发表达式,系统根据表达式和监控指标值计算触发是否告警,这里详细介绍下表达式使用。 #### 表达式支持的操作符 - | 运算符(可视化配置) | 运算符(表达式配置) | 支持类型 | 说明 | | | ------------------ | -------------------- | ----------------------- | ------------------------ | - | | 等于 | equals(str1,str2) | 字符型 | 判断字符串是否相等 | | @@ -27,22 +27,21 @@ sidebar_label: 阈值触发表达式 #### 表达式函数库列表 - -| 支持函数库 | 说明 | -| -------------------------------------------- | ------------------------------------------------------------------ | -| condition ? trueExpression : falseExpression | 三元运算符 | -| toDouble(str) | 将字符串转换为Double类型 | -| toBoolean(str) | 将字符串转换为Boolean类型 | -| toInteger(str) | 将字符串转换为Integer类型 | -| array[n] | 取数组第n个元素 | -| * | 算法乘 | -| / | 算法除 | -| % | 求余 | -| ( 和 ) | 括号用于控制运算的优先级,确保在逻辑或数学表达式中某些部分先被计算 | -| + | 加号用于表示数学中的加法运算、字符串拼接 | -| - | 减号用于表示数学中的减法运算 | -| && | 逻辑AND操作符 | -| \|\| | 逻辑OR操作符 | +| 支持函数库 | 说明 | +|----------------------------------------------|-----------------------------------| +| condition ? trueExpression : falseExpression | 三元运算符 | +| toDouble(str) | 将字符串转换为Double类型 | +| toBoolean(str) | 将字符串转换为Boolean类型 | +| toInteger(str) | 将字符串转换为Integer类型 | +| array[n] | 取数组第n个元素 | +| * | 算法乘 | +| / | 算法除 | +| % | 求余 | +| ( 和 ) | 括号用于控制运算的优先级,确保在逻辑或数学表达式中某些部分先被计算 | +| + | 加号用于表示数学中的加法运算、字符串拼接 | +| - | 减号用于表示数学中的减法运算 | +| && | 逻辑AND操作符 | +| \|\| | 逻辑OR操作符 | #### 支持的环境变量 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_webhook.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_webhook.md index 61ed1dc99b5..267fd1770ab 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_webhook.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_webhook.md @@ -5,23 +5,24 @@ sidebar_label: 告警 Webhook 回调通知 keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 +> 阈值触发后发送告警信息,通过post请求方式调用WebHook接口通知到接收人。 -## 操作步骤 +## 操作步骤 -1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** +1. **【告警通知】->【新增接收人】 ->【选择WebHook通知方式】-> 【设置WebHook回调地址】 -> 【确定】** -![email](/img/docs/help/alert-notice-5.png) + ![email](/img/docs/help/alert-notice-5.png) -2. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +2. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) -### WebHook回调POST请求体BODY内容 +### WebHook回调POST请求体BODY内容 + +内容格式:JSON -内容格式:JSON ```json { "alarmId": 76456, @@ -43,22 +44,23 @@ keywords: [告警 Webhook 回调通知, 开源告警系统, 开源监控告警 } ``` -| | | -|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| tags | example: {key1:value1} | +| | | +|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | +| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | +| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | +| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | +| content | string title: The actual content of the alarm notification 告警通知实际内容 | +| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | +| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | +| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | +| tags | example: {key1:value1} | + +### webhook通知常见问题 -### webhook通知常见问题 +1. WebHook回调未生效 -1. WebHook回调未生效 -> 请查看告警中心是否已经产生此条告警信息 -> 请排查配置的WebHook回调地址是否正确 + > 请查看告警中心是否已经产生此条告警信息 + > 请排查配置的WebHook回调地址是否正确 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_wework.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_wework.md index ce73c131d00..c8ad278707c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_wework.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_wework.md @@ -5,34 +5,34 @@ sidebar_label: 告警企业微信通知 keywords: [告警企业微信通知, 开源告警系统, 开源监控告警系统] --- -> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 +> 阈值触发后发送告警信息,通过企业微信机器人通知到接收人。 -### 操作步骤 +### 操作步骤 -1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** +1. **【企业微信端】-> 【群设置】-> 【群机器人】-> 【添加新建机器人】-> 【设置机器人名称头像】-> 【添加成功后复制其WebHook地址】** -![email](/img/docs/help/alert-notice-6.jpg) + ![email](/img/docs/help/alert-notice-6.jpg) -2. **【保存机器人的WebHook地址的KEY值】** +2. **【保存机器人的WebHook地址的KEY值】** -> 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 例如: webHook地址:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > 其机器人KEY值为 `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** +3. **【告警通知】->【新增接收人】 ->【选择企业微信机器人通知方式】->【设置企业微信机器人KEY】-> 【确定】** -![email](/img/docs/help/alert-notice-7.png) + ![email](/img/docs/help/alert-notice-7.png) -4. ** 配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** +4. **配置关联的告警通知策略⚠️ 【新增通知策略】-> 【将刚设置的接收人关联】-> 【确定】** -> ** 注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人 **。 + > **注意⚠️ 新增了接收人并不代表已经生效可以接收告警信息,还需配置关联的告警通知策略,即指定哪些消息发给哪些接收人**。 -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### 企业微信机器人通知常见问题 -### 企业微信机器人通知常见问题 +1. 企业微信群未收到机器人告警通知 -1. 企业微信群未收到机器人告警通知 -> 请排查在告警中心是否已有触发的告警信息 -> 请排查是否配置正确机器人KEY,是否已配置告警策略关联 + > 请排查在告警中心是否已有触发的告警信息 + > 请排查是否配置正确机器人KEY,是否已配置告警策略关联 -其它问题可以通过交流群ISSUE反馈哦! +其它问题可以通过交流群ISSUE反馈哦! diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/almalinux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/almalinux.md index 64f15c3777d..abf262d52bd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/almalinux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/almalinux.md @@ -4,114 +4,104 @@ title: 监控:AlmaLinux操作系统监控 sidebar_label: AlmaLinux操作系统 keywords: [开源监控系统, 开源操作系统监控, AlmaLinux操作系统监控] --- + > 对AlmaLinux操作系统的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 密钥 | 连接服务器所需密钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | --------------------------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------------ | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:网卡信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:文件系统 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | -------------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | #### 指标集合:Top10 CPU进程 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| cpu_usage | % | CPU占用率 | -| mem_usage | % | 内存占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| cpu_usage | % | CPU占用率 | +| mem_usage | % | 内存占用率 | +| command | 无 | 执行命令 | #### 指标集合:Top10 内存进程 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| mem_usage | % | 内存占用率 | -| cpu_usage | % | CPU占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| mem_usage | % | 内存占用率 | +| cpu_usage | % | CPU占用率 | +| command | 无 | 执行命令 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/api.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/api.md index 6a39ef5977b..c1df34f880a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/api.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/api.md @@ -5,34 +5,32 @@ sidebar_label: HTTP API keywords: [开源监控系统, 开源网站监控, HTTP API监控] --- -> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 +> 调用HTTP API接口,查看接口是否可用,对其响应时间等指标进行监测 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | -| 密码 | 接口Basic认证或Digest认证时使用的密码 | -| 请求Headers | HTTP 请求头 | -| 查询Params | HTTP查询参数,支持[时间表达式](time_expression) | -| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | -| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 请求方式 | 设置接口调用的请求方式:GET,POST,PUT,DELETE。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 用户名 | 接口Basic认证或Digest认证时使用的用户名 | +| 密码 | 接口Basic认证或Digest认证时使用的密码 | +| 请求Headers | HTTP 请求头 | +| 查询Params | HTTP查询参数,支持[时间表达式](time_expression) | +| Content-Type | 设置携带BODY请求体数据请求时的资源类型 | +| 请求BODY | 设置携带BODY请求体数据,PUT POST请求方式时有效 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/centos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/centos.md index 03c514bc7b8..02a93f751c5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/centos.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/centos.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, CentOS操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/clickhouse.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/clickhouse.md index 1c5adeeccc2..1f0e1f0e6c2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/clickhouse.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/clickhouse.md @@ -4,96 +4,92 @@ title: 监控:Clickhouse数据库监控 sidebar_label: Clickhouse数据库 keywords: [开源监控系统, 开源数据库监控, Clickhouse数据库监控] --- + > 对Clickhouse数据库的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为8123。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为8123。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:ping 可用性 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------ | -| responseTime | 无 | 响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | 无 | 响应时间 | #### 指标集合:system.metrics表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | -------------------------------------- | -| Query | 无 | 正在执行的查询的数量 | -| Merge | 无 | 正在执行的后台合并的数量 | -| Move | 无 | 正在执行的后台移动的数量 | -| PartMutation | 无 | 表变更的次数 | -| ReplicatedFetch | 无 | 从副本收集的数据块数量 | -| ReplicatedSend | 无 | 发送到副本的数量块数量 | -| ReplicatedChecks | 无 | 检查一致性的数据块数量 | -| QueryPreempted | 无 | 停止或等待的查询数量 | -| TCPConnection | 无 | TCP连接数量 | -| HTTPConnection | 无 | HTTP连接数量 | -| OpenFileForRead | 无 | 打开的可读文件的数量 | -| OpenFileForWrite | 无 | 打开的可写文件的数量 | -| QueryThread | 无 | 查询处理的线程数量 | -| ReadonlyReplica | 无 | 处于只读状态的 Replicated table 的数量 | -| EphemeralNode | 无 | ZooKeeper 中保存的临时节点数 | -| ZooKeeperWatch | 无 | ZooKeeper事件订阅数 | -| StorageBufferBytes | Bytes | Buffer tables 中的字节数 | -| VersionInteger | 无 | ClickHouse 版本号 | -| RWLockWaitingReaders | 无 | 等待读表的读写锁的线程数量 | -| RWLockWaitingWriters | 无 | 等待写表的读写锁的线程数量 | -| RWLockActiveReaders | 无 | 在一个表的读写锁中持有读锁的线程数 | -| RWLockActiveWriters | 无 | 在一个表的读写锁中持有写锁的线程数 | -| GlobalThread | 无 | 全局线程池中的线程数 | -| GlobalThreadActive | 无 | 全局线程池中活跃的线程数 | -| LocalThread | 无 | 本地线程池中的线程数 | -| LocalThreadActive | 无 | 本地线程池中活跃的线程数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|-------|------------------------------| +| Query | 无 | 正在执行的查询的数量 | +| Merge | 无 | 正在执行的后台合并的数量 | +| Move | 无 | 正在执行的后台移动的数量 | +| PartMutation | 无 | 表变更的次数 | +| ReplicatedFetch | 无 | 从副本收集的数据块数量 | +| ReplicatedSend | 无 | 发送到副本的数量块数量 | +| ReplicatedChecks | 无 | 检查一致性的数据块数量 | +| QueryPreempted | 无 | 停止或等待的查询数量 | +| TCPConnection | 无 | TCP连接数量 | +| HTTPConnection | 无 | HTTP连接数量 | +| OpenFileForRead | 无 | 打开的可读文件的数量 | +| OpenFileForWrite | 无 | 打开的可写文件的数量 | +| QueryThread | 无 | 查询处理的线程数量 | +| ReadonlyReplica | 无 | 处于只读状态的 Replicated table 的数量 | +| EphemeralNode | 无 | ZooKeeper 中保存的临时节点数 | +| ZooKeeperWatch | 无 | ZooKeeper事件订阅数 | +| StorageBufferBytes | Bytes | Buffer tables 中的字节数 | +| VersionInteger | 无 | ClickHouse 版本号 | +| RWLockWaitingReaders | 无 | 等待读表的读写锁的线程数量 | +| RWLockWaitingWriters | 无 | 等待写表的读写锁的线程数量 | +| RWLockActiveReaders | 无 | 在一个表的读写锁中持有读锁的线程数 | +| RWLockActiveWriters | 无 | 在一个表的读写锁中持有写锁的线程数 | +| GlobalThread | 无 | 全局线程池中的线程数 | +| GlobalThreadActive | 无 | 全局线程池中活跃的线程数 | +| LocalThread | 无 | 本地线程池中的线程数 | +| LocalThreadActive | 无 | 本地线程池中活跃的线程数 | #### 指标集合:system.events表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------------------------- |-------| ------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------------|-------|------------------------------------------------------------------------------------------------| | Query | 无 | 要解释和可能执行的查询数量。 不包括由于 AST 大小限制、配额限制或同时运行的查询数量限制而无法解析或被拒绝的查询。 可能包括 ClickHouse 本身发起的内部查询。 不计算子查询。 | -| SelectQuery | 无 | 可能执行的 Select 查询数 | -| InsertQuery | 无 | 可能执行的 Insert 查询数 | -| InsertedRows | 无 | 被插入到所有表中的行数 | -| InsertedBytes | Bytes | 被插入到所有表中的字节数 | -| FailedQuery | 无 | 执行失败的查询数量 | -| FailedSelectQuery | 无 | 执行失败的 Select 查询数量 | -| FileOpen | 无 | 文件打开数 | -| MergeTreeDataWriterRows | 无 | 写入 MergeTree 表的数据行数 | -| MergeTreeDataWriterCompressedBytes | Bytes | 压缩写入 MergeTree 表的数据字节数 | +| SelectQuery | 无 | 可能执行的 Select 查询数 | +| InsertQuery | 无 | 可能执行的 Insert 查询数 | +| InsertedRows | 无 | 被插入到所有表中的行数 | +| InsertedBytes | Bytes | 被插入到所有表中的字节数 | +| FailedQuery | 无 | 执行失败的查询数量 | +| FailedSelectQuery | 无 | 执行失败的 Select 查询数量 | +| FileOpen | 无 | 文件打开数 | +| MergeTreeDataWriterRows | 无 | 写入 MergeTree 表的数据行数 | +| MergeTreeDataWriterCompressedBytes | Bytes | 压缩写入 MergeTree 表的数据字节数 | #### 指标集合:system.asynchronous_metrics表的数据 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------------------------------- | ------ | ----------------------------------------- | -| AsynchronousMetricsCalculationTimeSpent | 无 | 异步指标计算花费的时间(秒) | -| jemalloc.arenas.all.muzzy_purged | 无 | 被清除的模糊(muzzy)页的数量 | -| jemalloc.arenas.all.dirty_purged | 无 | 被清除的脏 (dirty)页的数量 | -| BlockReadBytes_ram1 | 无 | ram1 块读取的字节数 | -| jemalloc.background_thread.run_intervals | 无 | jemalloc 后台线程的运行间隔数 | -| BlockQueueTime_nbd13 | 无 | nbd13 块队列等待时间 | -| jemalloc.background_thread.num_threads | 无 | jemalloc 后台线程的数量 | -| jemalloc.resident | 无 | jemalloc 分配器占用的物理内存大小(字节) | -| InterserverThreads | 无 | Interserver 线程数 | -| BlockWriteMerges_nbd7 | 无 | nbd7 块写合并数量 | -| MarkCacheBytes | 无 | StorageMergeTree 的 marks 的缓存大小 | -| MarkCacheFiles | 无 | StorageMergeTree 的 marks 的缓存文件数量 | -| MaxPartCountForPartition | 无 | partitions 中最大的活跃数据块的数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------------------|------|----------------------------------| +| AsynchronousMetricsCalculationTimeSpent | 无 | 异步指标计算花费的时间(秒) | +| jemalloc.arenas.all.muzzy_purged | 无 | 被清除的模糊(muzzy)页的数量 | +| jemalloc.arenas.all.dirty_purged | 无 | 被清除的脏 (dirty)页的数量 | +| BlockReadBytes_ram1 | 无 | ram1 块读取的字节数 | +| jemalloc.background_thread.run_intervals | 无 | jemalloc 后台线程的运行间隔数 | +| BlockQueueTime_nbd13 | 无 | nbd13 块队列等待时间 | +| jemalloc.background_thread.num_threads | 无 | jemalloc 后台线程的数量 | +| jemalloc.resident | 无 | jemalloc 分配器占用的物理内存大小(字节) | +| InterserverThreads | 无 | Interserver 线程数 | +| BlockWriteMerges_nbd7 | 无 | nbd7 块写合并数量 | +| MarkCacheBytes | 无 | StorageMergeTree 的 marks 的缓存大小 | +| MarkCacheFiles | 无 | StorageMergeTree 的 marks 的缓存文件数量 | +| MaxPartCountForPartition | 无 | partitions 中最大的活跃数据块的数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/debian.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/debian.md index dcda89ee2b6..983787f3b1e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/debian.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/debian.md @@ -4,71 +4,67 @@ title: 监控:debian 系统监控 sidebar_label: Debian keywords: [开源监控系统, 操作系统监控, Debian监控] --- + > 对Debian系统的通用性能指标进行采集监控 ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Debian系统的ssh端口,默认: 22 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | 服务器用户名 | -| 密码 | 服务器密码 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 密钥 | 连接服务器所需密钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Debian系统的ssh端口,默认: 22 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | 服务器用户名 | +| 密码 | 服务器密码 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Info | 无 | 型号 | -| Cores | 无 | 核数 | -| Interrupt | 无 | 中断数 | -| Load | 无 | 负载 | -| Context Switch | 无 | 上下文切换 | -| Usage | % | 使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Info | 无 | 型号 | +| Cores | 无 | 核数 | +| Interrupt | 无 | 中断数 | +| Load | 无 | 负载 | +| Context Switch | 无 | 上下文切换 | +| Usage | % | 使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------- | -------- | -------------- | -| Total Memory | Mb | 总内存容量 | -| User Program Memory | Mb | 用户程序内存量 | -| Free Memory | Mb | 空闲内存容量 | -| Buff Cache Memory | Mb | 缓存占用内存 | -| Available Memory | Mb | 剩余可用内存 | -| Memory Usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|---------| +| Total Memory | Mb | 总内存容量 | +| User Program Memory | Mb | 用户程序内存量 | +| Free Memory | Mb | 空闲内存容量 | +| Buff Cache Memory | Mb | 缓存占用内存 | +| Available Memory | Mb | 剩余可用内存 | +| Memory Usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------ | -| Disk Num | 无 | 磁盘总数 | -| Partition Num | 无 | 分区总数 | -| Block Write | 无 | 写磁盘块数 | -| Block Read | 无 | 读磁盘块数 | -| Write Rate | iops | 磁盘写速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|--------| +| Disk Num | 无 | 磁盘总数 | +| Partition Num | 无 | 分区总数 | +| Block Write | 无 | 写磁盘块数 | +| Block Read | 无 | 读磁盘块数 | +| Write Rate | iops | 磁盘写速率 | #### 指标集合:网卡信息 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dm.md index cdd9f6f6ee5..12cb13b8422 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dm.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dm.md @@ -9,41 +9,40 @@ keywords: [开源监控系统, 开源数据库监控, 达梦数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5236。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5236。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------------ | -| PORT_NUM | 无 | 数据库暴露服务端口 | -| CTL_PATH | 无 | 控制文件路径 | -| MAX_SESSIONS | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|-----------| +| PORT_NUM | 无 | 数据库暴露服务端口 | +| CTL_PATH | 无 | 控制文件路径 | +| MAX_SESSIONS | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| status$ | 无 | DM数据库的开闭状态 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|------------| +| status$ | 无 | DM数据库的开闭状态 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | ---------------------------------------------- | -| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | -| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | -| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------------------------------| +| dm_sql_thd | 无 | 用于编写 dmsql dmserver 的线程 | +| dm_io_thd | 无 | IO线程,由IO_THR_GROUPS参数控制,默认为2个线程 | +| dm_quit_thd | 无 | 用于执行正常关闭数据库的线程 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dns.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dns.md index 67ea72c177e..e012e347c20 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dns.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dns.md @@ -5,7 +5,7 @@ sidebar_label: DNS服务器 keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] --- -# 监控:DNS服务器 +## 监控:DNS服务器 > 收集和监控DNS的常规性能指标。 @@ -13,24 +13,24 @@ keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | -|-----------|------------------------------------------------| -| DNS服务器IP | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:https://,http://)。 | -| 监控名称 | 标识此监控的名称,名称需要是唯一的。 | -| 端口 | DNS服务对外提供的端口,默认为53。 | -| 域名解析的地址 | 域名解析的地址。 | -| 连接超时时间 | 设置连接DNS服务器的超时时间,单位ms毫秒,默认6000毫秒。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------------------| +| DNS服务器IP | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:https://,http://)。 | +| 监控名称 | 标识此监控的名称,名称需要是唯一的。 | +| 端口 | DNS服务对外提供的端口,默认为53。 | +| 域名解析的地址 | 域名解析的地址。 | +| 连接超时时间 | 设置连接DNS服务器的超时时间,单位ms毫秒,默认6000毫秒。 | | 查询类别 | DNS查询的类别. 可选的值包括 `IN`, `CHAOS`, `HESIOD`, `NONE`, 和 `ANY`。默认值:IN | -| 是否使用tcp协议 | 设置DNS查询是否使用tcp协议。 | -| 采集间隔 | 监控周期性数据采集的时间间隔,单位:秒,最小可设置为30秒。 | -| 绑定标签 | 用于对监控资源进行分类管理。 | -| 描述备注 | 用于更多关于标识和描述此监控的信息,用户可以在此处添加备注信息。 | +| 是否使用tcp协议 | 设置DNS查询是否使用tcp协议。 | +| 采集间隔 | 监控周期性数据采集的时间间隔,单位:秒,最小可设置为30秒。 | +| 绑定标签 | 用于对监控资源进行分类管理。 | +| 描述备注 | 用于更多关于标识和描述此监控的信息,用户可以在此处添加备注信息。 | ### 采集指标 #### 指标集:Header -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------|------|-----------------| | 响应时间 | 毫秒 | DNS服务器响应请求所需的时间 | | 操作码 | 无 | 当前消息的类型 | @@ -43,27 +43,30 @@ keywords: [ 开源监控系统, 开源DNS监控工具, 监控DNS指标 ] ### 指标集: Question -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|-----------------------------------| | Section | 无 | 请求记录信息,其中包含查询的域名,资源类型,资源记录类,附加信息。 | ### 指标集: Answer -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|----------------------------------------| | Section0 | 无 | 请求响应信息,其中包含查询的域名,TTL,资源记录类,资源类型,查询的结果。 | + > Answer 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 ### 指标集: Authority -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|------------------------------------------------------------------| | Section0 | 无 | 域名的SOA(Start of Authority,权威区域起始)记录,其中包含查询的域名,TTL,资源类型,资源记录类等信息。 | + > Authority 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 ### 指标集: Additional -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|-------------| | Section0 | 无 | DNS查询的附加信息。 | + > Additional 指标集最多会采集10条响应记录,指标名称从 Section0 到 Section9。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/docker.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/docker.md index 221776b2426..0b81365780b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/docker.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/docker.md @@ -7,7 +7,6 @@ keywords: [开源监控系统, 开源容器监控, Docker容器监控] > 对Docker容器的通用性能指标进行采集监控。 - ## 监控前操作 如果想要监控 `Docker` 中的容器信息,则需要按照一下步骤打开端口,让采集请求获取到对应的信息。 @@ -44,63 +43,59 @@ firewall-cmd --zone=public --add-port=2375/tcp --permanent firewall-cmd --reload ``` - - - - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为2375。 | -| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 器名称 | 一般是监控所有运行中的容器信息。 | -| 用户名 | 连接用户名,可选 | -| 密码 | 连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为2375。 | +| 查询超时时间 | 设置获取Docker服务器API接口时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 器名称 | 一般是监控所有运行中的容器信息。 | +| 用户名 | 连接用户名,可选 | +| 密码 | 连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:system -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | -------------------------------------- | -| Name | 无 | 服务器名称 | -| version | 无 | docker本版号 | -| os | 无 | 服务器版本 例如:linux x86_64 | -| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | -| containers | 无 | 容器总数(在运行+未运行) | -| containers_running | 无 | 运行中的容器数目 | -| containers_paused | 无 | 暂停中的容器数目 | -| images | 无 | 容器景象的总数目。 | -| ncpu | 无 | NCPU | -| mem_total | MB | 占用的内存总大小 | -| system_time | 无 | 系统时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------------------------------| +| Name | 无 | 服务器名称 | +| version | 无 | docker本版号 | +| os | 无 | 服务器版本 例如:linux x86_64 | +| root_dir | 无 | docker文件夹目录 例如:/var/lib/docker | +| containers | 无 | 容器总数(在运行+未运行) | +| containers_running | 无 | 运行中的容器数目 | +| containers_paused | 无 | 暂停中的容器数目 | +| images | 无 | 容器景象的总数目。 | +| ncpu | 无 | NCPU | +| mem_total | MB | 占用的内存总大小 | +| system_time | 无 | 系统时间 | #### 指标集合:containers -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| id | 无 | Docker中容器的ID | -| name | 无 | Docker容器中的容器名称 | -| image | 无 | Docker容器使用的镜像 | -| command | 无 | Docker中的默认启动命令 | -| state | 无 | Docker中容器的运行状态 | -| status | 无 | Docker容器中的更新时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| id | 无 | Docker中容器的ID | +| name | 无 | Docker容器中的容器名称 | +| image | 无 | Docker容器使用的镜像 | +| command | 无 | Docker中的默认启动命令 | +| state | 无 | Docker中容器的运行状态 | +| status | 无 | Docker容器中的更新时间 | #### 指标集合:stats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- | ---------------------------- | -| name | 无 | Docker容器中的名字 | -| available_memory | MB | Docker容器可以利用的内存大小 | -| used_memory | MB | Docker容器已经使用的内存大小 | -| memory_usage | 无 | Docker容器的内存使用率 | -| cpu_delta | 无 | Docker容器已经使用的CPU数量 | -| number_cpus | 无 | Docker容器可以使用的CPU数量 | -| cpu_usage | 无 | Docker容器CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------|------|--------------------| +| name | 无 | Docker容器中的名字 | +| available_memory | MB | Docker容器可以利用的内存大小 | +| used_memory | MB | Docker容器已经使用的内存大小 | +| memory_usage | 无 | Docker容器的内存使用率 | +| cpu_delta | 无 | Docker容器已经使用的CPU数量 | +| number_cpus | 无 | Docker容器可以使用的CPU数量 | +| cpu_usage | 无 | Docker容器CPU使用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/doris_fe.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/doris_fe.md index 0e4803826be..78afde77138 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/doris_fe.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/doris_fe.md @@ -15,118 +15,117 @@ keywords: [开源监控系统, 开源数据库监控, DORIS数据库FE监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |-----------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8030 , 取值自 `http_port` 配置项的值 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8030 , 取值自 `http_port` 配置项的值 | | 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认6000毫秒 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 绑定标签 | 您可以使用标签进行监控资源的分类管理, 例如给资源分别绑定生产环境、测试环境的标签。 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 绑定标签 | 您可以使用标签进行监控资源的分类管理, 例如给资源分别绑定生产环境、测试环境的标签。 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:doris_fe_connection_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前FE的MySQL端口连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| value | 无 | 当前FE的MySQL端口连接数 | #### 指标集合:doris_fe_edit_log_clean 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 清理历史元数据日志成功的次数 | -| failed | 无 | 清理历史元数据日志失败的次数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| success | 无 | 清理历史元数据日志成功的次数 | +| failed | 无 | 清理历史元数据日志失败的次数 | #### 指标集合:doris_fe_edit_log -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------- | -------- | ------------------------ | -| write | 无 | 元数据日志写入次数的计数 | -| read | 无 | 元数据日志读取次数的计数 | -| current | 无 | 元数据日志当前数量 | -| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | -| current_bytes | 字节 | 元数据日志当前值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|--------------| +| write | 无 | 元数据日志写入次数的计数 | +| read | 无 | 元数据日志读取次数的计数 | +| current | 无 | 元数据日志当前数量 | +| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | +| current_bytes | 字节 | 元数据日志当前值 | #### 指标集合:doris_fe_image_clean 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| success | 无 | 清理历史元数据镜像文件成功的次数 | -| failed | 无 | 清理历史元数据镜像文件失败的次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|------------------| +| success | 无 | 清理历史元数据镜像文件成功的次数 | +| failed | 无 | 清理历史元数据镜像文件失败的次数 | #### 指标集合:doris_fe_image_write 不应失败,如失败,需人工介入 -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 生成元数据镜像文件成功的次数 | -| failed | 无 | 生成元数据镜像文件失败的次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------------| +| success | 无 | 生成元数据镜像文件成功的次数 | +| failed | 无 | 生成元数据镜像文件失败的次数 | #### 指标集合:doris_fe_query_err -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------- | -| value | 无 | 错误查询的累积值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|----------| +| value | 无 | 错误查询的累积值 | #### 指标集合:doris_fe_max_journal_id -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------------------------------------------------------------------------------------------------| +| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | #### 指标集合:doris_fe_max_tablet_compaction_score -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------------------------------------------------| +| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | #### 指标集合:doris_fe_qps -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------ | -| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------| +| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | #### 指标集合:doris_fe_query_err_rate -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------- | -| value | 无 | 每秒错误查询数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------| +| value | 无 | 每秒错误查询数 | #### 指标集合:doris_fe_report_queue_size -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------------------------------| +| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | #### 指标集合:doris_fe_rps -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------------------------- | -| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------| +| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | #### 指标集合:doris_fe_scheduled_tablet_num -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------------------------------------------------------| +| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | #### 指标集合:doris_fe_txn_status 可以观测各个状态下导入事务的数量,来判断是否有堆积 -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------- | -| unknown | 无 | 未知 | -| prepare | 无 | 准备中 | -| committed | 无 | 已提交 | -| visible | 无 | 可见 | -| aborted | 无 | 已中止/已撤销 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|---------| +| unknown | 无 | 未知 | +| prepare | 无 | 准备中 | +| committed | 无 | 已提交 | +| visible | 无 | 可见 | +| aborted | 无 | 已中止/已撤销 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dynamic_tp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dynamic_tp.md index e3e143c17ed..b88627eaa35 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dynamic_tp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/dynamic_tp.md @@ -7,96 +7,95 @@ keywords: [开源监控系统, 开源中间件监控, DynamicTp线程池监控] > 对DynamicTp actuator 暴露的线程池性能指标进行采集监控。 -### 前提 - -1. 集成使用 `DynamicTp` - -`DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 - -集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) - -2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4 GB", - "totalMemory": "444 MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81 GB" - } -] -``` - -3. 在HertzBeat中间件监控下添加DynamicTp监控即可 - +### 前提 + +1. 集成使用 `DynamicTp` + + `DynamicTp` 是Jvm语言的基于配置中心的轻量级动态线程池,内置监控告警功能,可通过SPI自定义扩展实现。 + + 集成使用,请参考文档 [快速接入](https://dynamictp.cn/guide/use/quick-start.html) + +2. 开启SpringBoot Actuator Endpoint 暴露出`DynamicTp`指标接口 + + ```yaml + management: + endpoints: + web: + exposure: + include: '*' + ``` + + 测试访问指标接口 `ip:port/actuator/dynamic-tp` 是否有响应json数据如下: + + ```json + [ + { + "poolName": "commonExecutor", + "corePoolSize": 1, + "maximumPoolSize": 1, + "queueType": "LinkedBlockingQueue", + "queueCapacity": 2147483647, + "queueSize": 0, + "fair": false, + "queueRemainingCapacity": 2147483647, + "activeCount": 0, + "taskCount": 0, + "completedTaskCount": 0, + "largestPoolSize": 0, + "poolSize": 0, + "waitTaskCount": 0, + "rejectCount": 0, + "rejectHandlerName": null, + "dynamic": false, + "runTimeoutCount": 0, + "queueTimeoutCount": 0 + }, + { + "maxMemory": "4 GB", + "totalMemory": "444 MB", + "freeMemory": "250.34 MB", + "usableMemory": "3.81 GB" + } + ] + ``` + +3. 在HertzBeat中间件监控下添加DynamicTp监控即可 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 应用服务对外提供的端口,默认为8080。 | | 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | - | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| Base Path | 暴露接口路径前缀,默认 /actuator | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:thread_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------------------| -| pool_name | 无 | 线程池名称 | -| core_pool_size | 无 | 核心线程数 | -| maximum_pool_size | 无 | 最大线程数 | -| queue_type | 无 | 任务队列类型 | -| queue_capacity | MB | 任务队列容量 | -| queue_size | 无 | 任务队列当前占用大小 | -| fair | 无 | 队列模式,SynchronousQueue会用到 | -| queue_remaining_capacity | MB | 任务队列剩余大小 | -| active_count | 无 | 活跃线程数 | -| task_count | 无 | 任务总数 | -| completed_task_count | 无 | 已完成任务数 | -| largest_pool_size | 无 | 历史最大线程数 | -| pool_size | 无 | 当前线程数 | -| wait_task_count | 无 | 等待执行任务数 | -| reject_count | 无 | 拒绝任务数 | -| reject_handler_name | 无 | 拒绝策略类型 | -| dynamic | 无 | 是否动态线程池 | -| run_timeout_count | 无 | 运行超时任务数 | -| queue_timeout_count | 无 | 等待超时任务数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|--------------------------| +| pool_name | 无 | 线程池名称 | +| core_pool_size | 无 | 核心线程数 | +| maximum_pool_size | 无 | 最大线程数 | +| queue_type | 无 | 任务队列类型 | +| queue_capacity | MB | 任务队列容量 | +| queue_size | 无 | 任务队列当前占用大小 | +| fair | 无 | 队列模式,SynchronousQueue会用到 | +| queue_remaining_capacity | MB | 任务队列剩余大小 | +| active_count | 无 | 活跃线程数 | +| task_count | 无 | 任务总数 | +| completed_task_count | 无 | 已完成任务数 | +| largest_pool_size | 无 | 历史最大线程数 | +| pool_size | 无 | 当前线程数 | +| wait_task_count | 无 | 等待执行任务数 | +| reject_count | 无 | 拒绝任务数 | +| reject_handler_name | 无 | 拒绝策略类型 | +| dynamic | 无 | 是否动态线程池 | +| run_timeout_count | 无 | 运行超时任务数 | +| queue_timeout_count | 无 | 等待超时任务数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/elasticsearch.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/elasticsearch.md index e64d956bc77..0e872084c2e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/elasticsearch.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/elasticsearch.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:health -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------------|------|----------| | cluster_name | 无 | 集群名称 | | status | 无 | 集群状态 | @@ -41,7 +41,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|--------| | total | 无 | 节点数 | | successful | 无 | 在线节点数 | @@ -49,7 +49,7 @@ keywords: [ 开源监控系统, 监控ElasticSearch ] #### 指标集合:nodes_detail -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------|------|---------| | node_name | 无 | 节点名称 | | ip | 无 | IP地址 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/euleros.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/euleros.md index 258f7bb36dd..4c7324a3f5d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/euleros.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/euleros.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, EulerOS操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/flink.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/flink.md index ef260f4dc2c..79dfd76fd7e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/flink.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/flink.md @@ -9,7 +9,7 @@ keywords: [开源监控系统, 开源 Flink 监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -26,13 +26,10 @@ keywords: [开源监控系统, 开源 Flink 监控] #### 指标集合:overview -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|----------| | slots_total | 个 | 插槽总数 | | slots_used | 个 | 已用插槽数 | | task_total | 个 | 任务总数 | | jobs_running | 个 | 正在运行的任务数 | | jobs_failed | 个 | 已经失败的任务数 | - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/freebsd.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/freebsd.md index 53f7eceb7c3..e2890cc3b9f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/freebsd.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/freebsd.md @@ -7,10 +7,9 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 > 对FreeBSD操作系统的通用性能指标 (系统信息、CPU、内存、磁盘、网卡、文件系统、TOP资源进程等) 进行采集监控。 - ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -29,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -37,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 核数 | CPU内核数量 | @@ -48,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|---------| | physmem | Mb | 物理内存 | | usermem | Mb | 用户程序内存量 | @@ -57,7 +56,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -69,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -80,10 +79,9 @@ keywords: [ 开源监控系统, 开源操作系统监控, FreeBSD操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | | cpu_usage | % | CPU占用率 | | command | 无 | 执行命令 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ftp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ftp.md index c86dfb14a7b..ac1e1621c24 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ftp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ftp.md @@ -11,7 +11,7 @@ keywords: [ 开源监控系统, 开源FTP服务器监控工具, 监控FTP指标 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|--------------------------------------| | 目标Host | 被监控的IPv4、IPv6。注意⚠️不包含协议头(例如:ftp://)。 | | 监控名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源FTP服务器监控工具, 监控FTP指标 #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|------|------------------| | 活动状态 | 无 | 检查目录是否存在,且具有访问权限 | | 响应时间 | ms | 连接FTP响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/fullsite.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/fullsite.md index f7fc4c150b7..54553c1200c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/fullsite.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/fullsite.md @@ -5,31 +5,30 @@ sidebar_label: 全站监控 keywords: [开源监控系统, 开源网站监控, SiteMap监控] --- -> 对网站的全部页面监测是否可用 -> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 -> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 +> 对网站的全部页面监测是否可用 +> 往往一个网站有多个不同服务提供的页面,我们通过采集网站暴露出来的网站地图SiteMap来监控全站。 +> 注意⚠️,此监控需您网站支持SiteMap。我们支持XML和TXT格式的SiteMap。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 网站地图 | 网站SiteMap地图地址的相对路径,例如:/sitemap.xml。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| url | 无 | 网页的URL路径 | -| statusCode | 无 | 请求此网页的响应HTTP状态码 | -| responseTime | ms毫秒 | 网站响应时间 | -| errorMsg | 无 | 请求此网站反馈的错误信息 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|-----------------| +| url | 无 | 网页的URL路径 | +| statusCode | 无 | 请求此网页的响应HTTP状态码 | +| responseTime | ms毫秒 | 网站响应时间 | +| errorMsg | 无 | 请求此网站反馈的错误信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/guide.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/guide.md index 40ad5765ca8..0b5bfada4e7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/guide.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/guide.md @@ -1,30 +1,30 @@ --- id: guide title: 帮助中心 -sidebar_label: 帮助入门 +sidebar_label: 帮助入门 --- > 易用友好的实时监控工具,无需Agent,强大自定义监控能力。 -> 使用过程中的帮助文档,辅助信息。 +> 使用过程中的帮助文档,辅助信息。 ## 🔬 监控服务 -> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 +> 定时采集监控对端服务暴露的性能指标,提供可视化界面,处理数据供告警等服务调度。 > 规划的监控类型:应用服务,数据库,操作系统,云原生,开源中间件 -### 应用服务监控 +### 应用服务监控 -  👉 [网站监测](website)
-  👉 [HTTP API](api)
-  👉 [PING连通性](ping)
-  👉 [端口可用性](port)
-  👉 [全站监控](fullsite)
-  👉 [SSL证书有效期](ssl_cert)
-  👉 [JVM虚拟机](jvm)
-  👉 [SpringBoot2.0](springboot2)
-  👉 [DNS服务器](dns)
-  👉 [FTP服务器](ftp)
-  👉 [Websocket](websocket)
+ 👉 [网站监测](website)
+ 👉 [HTTP API](api)
+ 👉 [PING连通性](ping)
+ 👉 [端口可用性](port)
+ 👉 [全站监控](fullsite)
+ 👉 [SSL证书有效期](ssl_cert)
+ 👉 [JVM虚拟机](jvm)
+ 👉 [SpringBoot2.0](springboot2)
+ 👉 [DNS服务器](dns)
+ 👉 [FTP服务器](ftp)
+ 👉 [Websocket](websocket)
### 应用程序监控 @@ -34,92 +34,90 @@ sidebar_label: 帮助入门  👉 [SpringBoot3.0](springboot3)
 👉 [DynamicTp线程池](dynamic_tp)
+### 数据库监控 -### 数据库监控 - -  👉 [MYSQL数据库监控](mysql)
-  👉 [MariaDB数据库监控](mariadb)
-  👉 [PostgreSQL数据库监控](postgresql)
-  👉 [SqlServer数据库监控](sqlserver)
-  👉 [Oracle数据库监控](oracle)
-  👉 [达梦数据库监控](dm)
-  👉 [OpenGauss数据库监控](opengauss)
-  👉 [IoTDB数据库监控](iotdb)
-  👉 [TiDB数据库监控](tidb)
-  👉 [MongoDB数据库监控](mongodb)
-  👉 [NebulaGraph集群监控](nebulagraph_cluster)
+ 👉 [MYSQL数据库监控](mysql)
+ 👉 [MariaDB数据库监控](mariadb)
+ 👉 [PostgreSQL数据库监控](postgresql)
+ 👉 [SqlServer数据库监控](sqlserver)
+ 👉 [Oracle数据库监控](oracle)
+ 👉 [达梦数据库监控](dm)
+ 👉 [OpenGauss数据库监控](opengauss)
+ 👉 [IoTDB数据库监控](iotdb)
+ 👉 [TiDB数据库监控](tidb)
+ 👉 [MongoDB数据库监控](mongodb)
+ 👉 [NebulaGraph集群监控](nebulagraph_cluster)
### 缓存监控  👉 [Redis](redis)
 👉 [Memcached](memcached)
-### 操作系统监控 +### 操作系统监控 -  👉 [Linux操作系统监控](linux)
-  👉 [Windows操作系统监控](windows)
-  👉 [Ubuntu操作系统监控](ubuntu)
-  👉 [Centos操作系统监控](centos)
-  👉 [FreeBSD操作系统监控](freebsd)
-  👉 [RedHat操作系统监控](redhat)
-  👉 [RockyLinux操作系统监控](rockylinux)
-  👉 [EulerOS操作系统监控](euleros)
+ 👉 [Linux操作系统监控](linux)
+ 👉 [Windows操作系统监控](windows)
+ 👉 [Ubuntu操作系统监控](ubuntu)
+ 👉 [Centos操作系统监控](centos)
+ 👉 [FreeBSD操作系统监控](freebsd)
+ 👉 [RedHat操作系统监控](redhat)
+ 👉 [RockyLinux操作系统监控](rockylinux)
+ 👉 [EulerOS操作系统监控](euleros)
### 中间件监控 -  👉 [Zookeeper](zookeeper)
-  👉 [Kafka](kafka)
-  👉 [Tomcat](tomcat)
-  👉 [ShenYu](shenyu)
-  👉 [DynamicTp](dynamic_tp)
-  👉 [RabbitMQ](rabbitmq)
-  👉 [ActiveMQ](activemq)
-  👉 [Jetty](jetty)
-  👉 [Nacos](nacos)
+ 👉 [Zookeeper](zookeeper)
+ 👉 [Kafka](kafka)
+ 👉 [Tomcat](tomcat)
+ 👉 [ShenYu](shenyu)
+ 👉 [DynamicTp](dynamic_tp)
+ 👉 [RabbitMQ](rabbitmq)
+ 👉 [ActiveMQ](activemq)
+ 👉 [Jetty](jetty)
+ 👉 [Nacos](nacos)
### 云原生监控 -  👉 [Docker](docker)
-  👉 [Kubernetes](kubernetes)
+ 👉 [Docker](docker)
+ 👉 [Kubernetes](kubernetes)
### 大数据监控 -  👉 [Clickhouse](clickhouse)
-  👉 [ElasticSearch](elasticsearch)
-  👉 [Flink](flink)
+ 👉 [Clickhouse](clickhouse)
+ 👉 [ElasticSearch](elasticsearch)
+ 👉 [Flink](flink)
### Ai大模型监控  👉 [OpenAi](openai)
-### 网络监控 - -  👉 [华为通用交换机](huawei_switch)
+### 网络监控 + + 👉 [华为通用交换机](huawei_switch)
### 服务器监控 -## 💡 告警服务 +## 💡 告警服务 -> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 -> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 +> 更自由化的阈值告警配置,支持邮箱,短信,webhook,钉钉,企业微信,飞书机器人等告警通知。 +> 告警服务的定位是阈值准确及时触发,告警通知及时可达。 -### 告警中心 +### 告警中心 -> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 +> 已触发的告警信息中心,提供告警删除,告警处理,标记未处理,告警级别状态等查询过滤。 -### 告警配置 +### 告警配置 > 指标阈值配置,提供表达式形式的指标阈值配置,可设置告警级别,触发次数,告警通知模版和是否启用,关联监控等功能。 详见 👉 [阈值告警](alert_threshold)
-   👉 [阈值表达式](alert_threshold_expr) - -### 告警通知 +   👉 [阈值表达式](alert_threshold_expr) -> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 -> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 -> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。 +### 告警通知 +> 触发告警信息后,除了显示在告警中心列表外,还可以用指定方式(邮件钉钉微信飞书等)通知给指定接收人。 +> 告警通知提供设置不同类型的通知方式,如邮件接收人,企业微信机器人通知,钉钉机器人通知,飞书机器人通知。 +> 接收人设置后需要设置关联的告警通知策略,来配置哪些告警信息发给哪些接收人。  👉 [配置邮箱通知](alert_email)
 👉 [配置 Webhook 通知](alert_webhook)
diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hadoop.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hadoop.md index fec361e2366..186baede498 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hadoop.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hadoop.md @@ -37,57 +37,53 @@ export HADOOP_OPTS= "$HADOOP_OPTS ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache (限JDK8及以下) -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_master.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_master.md index f75d5cc8e98..6912712607f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_master.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_master.md @@ -4,6 +4,7 @@ title: 监控:Hbase Master监控 sidebar_label: Apache Hbase Master keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] --- + > 对Hbase Master的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,49 +15,45 @@ keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | -------------------------------------------------------------------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | hbase master的端口号,默认为16010。即:`hbase.master.info.port`参数值 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | hbase master的端口号,默认为16010。即:`hbase.master.info.port`参数值 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:server - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- |----| ---------------------------- | -| numRegionServers | 无 | 当前存活的 RegionServer 个数 | -| numDeadRegionServers | 无 | 当前Dead的 RegionServer 个数 | -| averageLoad | 无 | 集群平均负载 | -| clusterRequests | 无 | 集群请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|-------------------------| +| numRegionServers | 无 | 当前存活的 RegionServer 个数 | +| numDeadRegionServers | 无 | 当前Dead的 RegionServer 个数 | +| averageLoad | 无 | 集群平均负载 | +| clusterRequests | 无 | 集群请求数量 | #### 指标集合:Rit - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | ------ | ------------------- | -| ritCount | 无 | 当前的 RIT 数量 | -| ritCountOverThreshold | 无 | 超过阈值的 RIT 数量 | -| ritOldestAge | ms | 最老的RIT的持续时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|--------------| +| ritCount | 无 | 当前的 RIT 数量 | +| ritCountOverThreshold | 无 | 超过阈值的 RIT 数量 | +| ritOldestAge | ms | 最老的RIT的持续时间 | #### 指标集合:basic - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------------- | ----- | ------------------------ | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|--------------------| | liveRegionServers | 无 | 当前活跃RegionServer列表 | | deadRegionServers | 无 | 当前离线RegionServer列表 | -| zookeeperQuorum | 无 | Zookeeper列表 | -| masterHostName | 无 | Master节点 | -| BalancerCluster_num_ops | 无 | 集群负载均衡次数 | -| numActiveHandler | 无 | RPC句柄数 | -| receivedBytes | MB | 集群接收数据量 | -| sentBytes | MB | 集群发送数据量(MB) | -| clusterRequests | 无 | 集群总请求数量 | +| zookeeperQuorum | 无 | Zookeeper列表 | +| masterHostName | 无 | Master节点 | +| BalancerCluster_num_ops | 无 | 集群负载均衡次数 | +| numActiveHandler | 无 | RPC句柄数 | +| receivedBytes | MB | 集群接收数据量 | +| sentBytes | MB | 集群发送数据量(MB) | +| clusterRequests | 无 | 集群总请求数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_regionserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_regionserver.md index 44d5b533932..2452e34a469 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_regionserver.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hbase_regionserver.md @@ -4,6 +4,7 @@ title: 监控 Hbase RegionServer监控 sidebar_label: Apache Hbase RegionServer keywords: [开源监控系统, 开源数据库监控, RegionServer监控] --- + > 对Hbase RegionServer的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,16 +15,15 @@ keywords: [开源监控系统, 开源数据库监控, RegionServer监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ |----------------------------------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | hbase regionserver的端口号,默认为16030。即:`hbase.regionserver.info.port`参数值 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | hbase regionserver的端口号,默认为16030。即:`hbase.regionserver.info.port`参数值 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 @@ -31,67 +31,63 @@ keywords: [开源监控系统, 开源数据库监控, RegionServer监控] #### 指标集合:server - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- |-------|------------------------------------------| -| regionCount | 无 | Region数量 | -| readRequestCount | 无 | 重启集群后的读请求数量 | -| writeRequestCount | 无 | 重启集群后的写请求数量 | -| averageRegionSize | MB | 平均Region大小 | -| totalRequestCount | 无 | 全部请求数量 | -| ScanTime_num_ops | 无 | Scan 请求总量 | -| Append_num_ops | 无 | Append 请求量 | -| Increment_num_ops | 无 | Increment请求量 | -| Get_num_ops | 无 | Get 请求量 | -| Delete_num_ops | 无 | Delete 请求量 | -| Put_num_ops | 无 | Put 请求量 | -| ScanTime_mean | 无 | 平均 Scan 请求时间 | -| ScanTime_min | 无 | 最小 Scan 请求时间 | -| ScanTime_max | 无 | 最大 Scan 请求时间 | -| ScanSize_mean | bytes | 平均 Scan 请求大小 | -| ScanSize_min | 无 | 最小 Scan 请求大小 | -| ScanSize_max | 无 | 最大 Scan 请求大小 | -| slowPutCount | 无 | 慢操作次数/Put | -| slowGetCount | 无 | 慢操作次数/Get | -| slowAppendCount | 无 | 慢操作次数/Append | -| slowIncrementCount | 无 | 慢操作次数/Increment | -| slowDeleteCount | 无 | 慢操作次数/Delete | -| blockCacheSize | 无 | 缓存块内存占用大小 | -| blockCacheCount | 无 | 缓存块数量_Block Cache 中的 Block 数量 | -| blockCacheExpressHitPercent | 无 | 读缓存命中率 | -| memStoreSize | 无 | Memstore 大小 | -| FlushTime_num_ops | 无 | RS写磁盘次数/Memstore flush 写磁盘次数 | -| flushQueueLength | 无 | Region Flush 队列长度 | -| flushedCellsSize | 无 | flush到磁盘大小 | -| storeFileCount | 无 | Storefile 个数 | -| storeCount | 无 | Store 个数 | -| storeFileSize | 无 | Storefile 大小 | -| compactionQueueLength | 无 | Compaction 队列长度 | -| percentFilesLocal | 无 | Region 的 HFile 位于本地 HDFS Data Node的比例 | -| percentFilesLocalSecondaryRegions | 无 | Region 副本的 HFile 位于本地 HDFS Data Node的比例 | -| hlogFileCount | 无 | WAL 文件数量 | -| hlogFileSize | 无 | WAL 文件大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------------------|-------|-----------------------------------------| +| regionCount | 无 | Region数量 | +| readRequestCount | 无 | 重启集群后的读请求数量 | +| writeRequestCount | 无 | 重启集群后的写请求数量 | +| averageRegionSize | MB | 平均Region大小 | +| totalRequestCount | 无 | 全部请求数量 | +| ScanTime_num_ops | 无 | Scan 请求总量 | +| Append_num_ops | 无 | Append 请求量 | +| Increment_num_ops | 无 | Increment请求量 | +| Get_num_ops | 无 | Get 请求量 | +| Delete_num_ops | 无 | Delete 请求量 | +| Put_num_ops | 无 | Put 请求量 | +| ScanTime_mean | 无 | 平均 Scan 请求时间 | +| ScanTime_min | 无 | 最小 Scan 请求时间 | +| ScanTime_max | 无 | 最大 Scan 请求时间 | +| ScanSize_mean | bytes | 平均 Scan 请求大小 | +| ScanSize_min | 无 | 最小 Scan 请求大小 | +| ScanSize_max | 无 | 最大 Scan 请求大小 | +| slowPutCount | 无 | 慢操作次数/Put | +| slowGetCount | 无 | 慢操作次数/Get | +| slowAppendCount | 无 | 慢操作次数/Append | +| slowIncrementCount | 无 | 慢操作次数/Increment | +| slowDeleteCount | 无 | 慢操作次数/Delete | +| blockCacheSize | 无 | 缓存块内存占用大小 | +| blockCacheCount | 无 | 缓存块数量_Block Cache 中的 Block 数量 | +| blockCacheExpressHitPercent | 无 | 读缓存命中率 | +| memStoreSize | 无 | Memstore 大小 | +| FlushTime_num_ops | 无 | RS写磁盘次数/Memstore flush 写磁盘次数 | +| flushQueueLength | 无 | Region Flush 队列长度 | +| flushedCellsSize | 无 | flush到磁盘大小 | +| storeFileCount | 无 | Storefile 个数 | +| storeCount | 无 | Store 个数 | +| storeFileSize | 无 | Storefile 大小 | +| compactionQueueLength | 无 | Compaction 队列长度 | +| percentFilesLocal | 无 | Region 的 HFile 位于本地 HDFS Data Node的比例 | +| percentFilesLocalSecondaryRegions | 无 | Region 副本的 HFile 位于本地 HDFS Data Node的比例 | +| hlogFileCount | 无 | WAL 文件数量 | +| hlogFileSize | 无 | WAL 文件大小 | #### 指标集合:IPC - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | ------ | ------------------- | -| numActiveHandler | 无 | 当前的 RIT 数量 | -| NotServingRegionException | 无 | 超过阈值的 RIT 数量 | -| RegionMovedException | ms | 最老的RIT的持续时间 | -| RegionTooBusyException | ms | 最老的RIT的持续时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|--------------| +| numActiveHandler | 无 | 当前的 RIT 数量 | +| NotServingRegionException | 无 | 超过阈值的 RIT 数量 | +| RegionMovedException | ms | 最老的RIT的持续时间 | +| RegionTooBusyException | ms | 最老的RIT的持续时间 | #### 指标集合:JVM - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------------- | ----- | ------------------------ | -| MemNonHeapUsedM | 无 | 当前活跃RegionServer列表 | -| MemNonHeapCommittedM | 无 | 当前离线RegionServer列表 | -| MemHeapUsedM | 无 | Zookeeper列表 | -| MemHeapCommittedM | 无 | Master节点 | -| MemHeapMaxM | 无 | 集群负载均衡次数 | -| MemMaxM | 无 | RPC句柄数 | -| GcCount | MB | 集群接收数据量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|--------------------| +| MemNonHeapUsedM | 无 | 当前活跃RegionServer列表 | +| MemNonHeapCommittedM | 无 | 当前离线RegionServer列表 | +| MemHeapUsedM | 无 | Zookeeper列表 | +| MemHeapCommittedM | 无 | Master节点 | +| MemHeapMaxM | 无 | 集群负载均衡次数 | +| MemMaxM | 无 | RPC句柄数 | +| GcCount | MB | 集群接收数据量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_datanode.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_datanode.md index efb05494290..5fe981ddaff 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_datanode.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_datanode.md @@ -15,42 +15,42 @@ keywords: [大数据监控系统, 分布式文件系统监控, Apache HDFS DataN ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | Apache HDFS DataNode 的监控端口号,默认为50075。 | -| 查询超时时间 | 查询 Apache HDFS DataNode 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | -| 是否探测 | 新增监控前是否先探测检查监控可用性。 | -| 描述备注 | 此监控的更多描述和备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|----------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | Apache HDFS DataNode 的监控端口号,默认为50075。 | +| 查询超时时间 | 查询 Apache HDFS DataNode 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 是否探测 | 新增监控前是否先探测检查监控可用性。 | +| 描述备注 | 此监控的更多描述和备注信息。 | ### 采集指标 #### 指标集合:FSDatasetState -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------------- | -------- | ------------------------------------ | -| DfsUsed | GB | DataNode HDFS使用量 | -| Remaining | GB | DataNode HDFS剩余空间 | -| Capacity | GB | DataNode HDFS空间总量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|-------------------| +| DfsUsed | GB | DataNode HDFS使用量 | +| Remaining | GB | DataNode HDFS剩余空间 | +| Capacity | GB | DataNode HDFS空间总量 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ------------------------------------ | -| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | -| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | -| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | -| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | -| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | -| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | -| ThreadsRunnable | 个 | 处于 RUNNABLE 状态的线程数量 | -| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | -| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|-------------------------------| +| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | +| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | +| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | +| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | +| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | +| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | +| ThreadsRunnable | 个 | 处于 RUNNABLE 状态的线程数量 | +| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | +| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------| -------- | ----------------- | -| StartTime | | 启动时间 | \ No newline at end of file +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_namenode.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_namenode.md index 26fd5e985af..46d69e5e2b4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_namenode.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hdfs_namenode.md @@ -15,79 +15,78 @@ keywords: [大数据监控系统, 分布式文件系统监控, Apache HDFS NameN ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | HDFS NameNode 的监控端口号,默认为50070。 | -| 查询超时时间 | 查询 HDFS NameNode 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | -| 是否探测 | 新增监控前是否先探测检查监控可用性。 | -| 描述备注 | 此监控的更多描述和备注信息。 | +| 参数名称 | 参数帮助描述 | +|--------|---------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | HDFS NameNode 的监控端口号,默认为50070。 | +| 查询超时时间 | 查询 HDFS NameNode 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 是否探测 | 新增监控前是否先探测检查监控可用性。 | +| 描述备注 | 此监控的更多描述和备注信息。 | ### 采集指标 #### 指标集合:FSNamesystem -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------------- | -------- | ------------------------------------ | -| CapacityTotal | | 集群存储总容量 | -| CapacityTotalGB | GB | 集群存储总容量 | -| CapacityUsed | | 集群存储已使用容量 | -| CapacityUsedGB | GB | 集群存储已使用容量 | -| CapacityRemaining | | 集群存储剩余容量 | -| CapacityRemainingGB | GB | 集群存储剩余容量 | -| CapacityUsedNonDFS | | 集群非 HDFS 使用容量 | -| TotalLoad | | 整个集群的客户端连接数 | -| FilesTotal | | 集群文件总数量 | -| BlocksTotal | | 总 BLOCK 数量 | -| PendingReplicationBlocks | | 等待被备份的块数量 | -| UnderReplicatedBlocks | | 副本数不够的块数量 | -| CorruptBlocks | | 坏块数量 | -| ScheduledReplicationBlocks | | 安排要备份的块数量 | -| PendingDeletionBlocks | | 等待被删除的块数量 | -| ExcessBlocks | | 多余的块数量 | -| PostponedMisreplicatedBlocks | | 被推迟处理的异常块数量 | -| NumLiveDataNodes | | 活的数据节点数量 | -| NumDeadDataNodes | | 已经标记为 Dead 状态的数据节点数量 | -| NumDecomLiveDataNodes | | 下线且 Live 的节点数量 | -| NumDecomDeadDataNodes | | 下线且 Dead 的节点数量 | -| NumDecommissioningDataNodes | | 正在下线的节点数量 | -| TransactionsSinceLastCheckpoint | | 从上次Checkpoint之后的事务数量 | -| LastCheckpointTime | | 上一次Checkpoint时间 | -| PendingDataNodeMessageCount | | DATANODE 的请求被 QUEUE 在 standby namenode 中的个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|---------------------------------------------| +| CapacityTotal | | 集群存储总容量 | +| CapacityTotalGB | GB | 集群存储总容量 | +| CapacityUsed | | 集群存储已使用容量 | +| CapacityUsedGB | GB | 集群存储已使用容量 | +| CapacityRemaining | | 集群存储剩余容量 | +| CapacityRemainingGB | GB | 集群存储剩余容量 | +| CapacityUsedNonDFS | | 集群非 HDFS 使用容量 | +| TotalLoad | | 整个集群的客户端连接数 | +| FilesTotal | | 集群文件总数量 | +| BlocksTotal | | 总 BLOCK 数量 | +| PendingReplicationBlocks | | 等待被备份的块数量 | +| UnderReplicatedBlocks | | 副本数不够的块数量 | +| CorruptBlocks | | 坏块数量 | +| ScheduledReplicationBlocks | | 安排要备份的块数量 | +| PendingDeletionBlocks | | 等待被删除的块数量 | +| ExcessBlocks | | 多余的块数量 | +| PostponedMisreplicatedBlocks | | 被推迟处理的异常块数量 | +| NumLiveDataNodes | | 活的数据节点数量 | +| NumDeadDataNodes | | 已经标记为 Dead 状态的数据节点数量 | +| NumDecomLiveDataNodes | | 下线且 Live 的节点数量 | +| NumDecomDeadDataNodes | | 下线且 Dead 的节点数量 | +| NumDecommissioningDataNodes | | 正在下线的节点数量 | +| TransactionsSinceLastCheckpoint | | 从上次Checkpoint之后的事务数量 | +| LastCheckpointTime | | 上一次Checkpoint时间 | +| PendingDataNodeMessageCount | | DATANODE 的请求被 QUEUE 在 standby namenode 中的个数 | #### 指标集合:RPC -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------- | -------- | ---------------------- | -| ReceivedBytes | | 接收数据速率 | -| SentBytes | | 发送数据速率 | -| RpcQueueTimeNumOps | | RPC 调用速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|----------| +| ReceivedBytes | | 接收数据速率 | +| SentBytes | | 发送数据速率 | +| RpcQueueTimeNumOps | | RPC 调用速率 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------| -------- | ----------------- | -| StartTime | | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ---------------- | -| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | -| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | -| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | -| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | -| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | -| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | -| GcCountParNew | 次 | 新生代GC消耗时间 | -| GcTimeMillisParNew | 毫秒 | 新生代GC消耗时间 | -| GcCountConcurrentMarkSweep | 毫秒 | 老年代GC次数 | -| GcTimeMillisConcurrentMarkSweep | 个 | 老年代GC消耗时间 | -| GcCount | 个 | GC次数 | -| GcTimeMillis | 个 | GC消耗时间 | -| ThreadsRunnable | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | -| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | -| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|-------------------------------| +| MemNonHeapUsedM | MB | JVM 当前已经使用的 NonHeapMemory 的大小 | +| MemNonHeapCommittedM | MB | JVM 配置的 NonHeapCommittedM 的大小 | +| MemHeapUsedM | MB | JVM 当前已经使用的 HeapMemory 的大小 | +| MemHeapCommittedM | MB | JVM HeapMemory 提交大小 | +| MemHeapMaxM | MB | JVM 配置的 HeapMemory 的大小 | +| MemMaxM | MB | JVM 运行时可以使用的最大内存大小 | +| GcCountParNew | 次 | 新生代GC消耗时间 | +| GcTimeMillisParNew | 毫秒 | 新生代GC消耗时间 | +| GcCountConcurrentMarkSweep | 毫秒 | 老年代GC次数 | +| GcTimeMillisConcurrentMarkSweep | 个 | 老年代GC消耗时间 | +| GcCount | 个 | GC次数 | +| GcTimeMillis | 个 | GC消耗时间 | +| ThreadsRunnable | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsBlocked | 个 | 处于 BLOCKED 状态的线程数量 | +| ThreadsWaiting | 个 | 处于 WAITING 状态的线程数量 | +| ThreadsTimedWaiting | 个 | 处于 TIMED WAITING 状态的线程数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hive.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hive.md index 2c2136f91cf..6e1efde0991 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hive.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hive.md @@ -16,6 +16,7 @@ keywords: [开源监控工具, 开源 Apache Hive 监控工具, 监控 Apache Hi ```shell hive --service metastore & ``` + **2. 启用 Hive Server2:** ```shell @@ -24,54 +25,52 @@ hive --service hiveserver2 & ### 配置参数 -| 参数名称 | 参数描述 | -| ---------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 10002。 | -| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | +| 参数名称 | 参数描述 | +|----------|--------------------------------------------------------| +| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | +| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | +| 端口 | 数据库提供的默认端口为 10002。 | +| 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | ### 采集指标 #### 指标收集: 基本信息 -| 指标名称 | 指标单位 | 指标描述 | -|--------|-------|-----------------------------| -| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | -| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | -| 虚拟机版本 | 无 | 虚拟机的版本。 | -| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | +| 指标名称 | 指标单位 | 指标描述 | +|--------|------|-----------------------------| +| 虚拟机名称 | 无 | 运行 HiveServer2 的虚拟机(VM)的名称。 | +| 虚拟机供应商 | 无 | 虚拟机的供应商或提供者。 | +| 虚拟机版本 | 无 | 虚拟机的版本。 | +| 允许持续时间 | 无 | HiveServer2 运行的持续时间。 | #### 指标收集: 环境信息 -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------|--------------------------------| -| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | -| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | -| 操作系统版本 | 无 | 操作系统的版本。 | -| 操作系统架构 | 无 | 操作系统的架构。 | -| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | -| java运行环境版本 | 无 | Java 运行时环境的版本。 | +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|--------------------------------| +| HTTPS代理端口号 | 无 | 用于 HTTPS 代理通信的端口号。 | +| 操作系统 | 无 | 运行 HiveServer2 的操作系统的名称。 | +| 操作系统版本 | 无 | 操作系统的版本。 | +| 操作系统架构 | 无 | 操作系统的架构。 | +| java运行环境 | 无 | HiveServer2 使用的 Java 运行时环境的名称。 | +| java运行环境版本 | 无 | Java 运行时环境的版本。 | #### 指标收集: 线程信息 -| 指标名称 | 指标单位 | 指标描述 | +| 指标名称 | 指标单位 | 指标描述 | |--------|------|------------------------------| | 线程数量 | None | HiveServer2 当前正在使用的线程数。 | -| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | +| 总启动线程数 | None | HiveServer2 启动以来启动的线程总数。 | | 最高线程数 | None | HiveServer2 在任何给定时间使用的最高线程数。 | | 守护线程数 | None | HiveServer2 当前活动的守护线程数。 | #### 指标收集: 代码缓存 -| 指标名称 | 指标单位 | 指标描述 | -|------------|-------------|---------------| -| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | -| 内存池初始内存 | MB | 内存池请求的初始内存量。 | -| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | -| 内存池内存使用量 | MB | 内存池已使用内存量 | - - +| 指标名称 | 指标单位 | 指标描述 | +|------------|------|---------------| +| 内存池当前内存 | MB | 当前为内存池分配的内存量。 | +| 内存池初始内存 | MB | 内存池请求的初始内存量。 | +| 内存池可分配最大内存 | MB | 内存池可分配的最大内存量。 | +| 内存池内存使用量 | MB | 内存池已使用内存量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/huawei_switch.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/huawei_switch.md index 9a4d4400c6c..2d42a0170ee 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/huawei_switch.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/huawei_switch.md @@ -11,7 +11,7 @@ keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------------------|-------------------------------------------------------------------------------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -25,8 +25,8 @@ keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] | SNMP privPassphrase | 用于SNMP v3,SNMP 加密密码 | | privPassword 加密方式 | 用于SNMP v3,SNMP 加密算法 | | 查询超时时间 | 设置查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | ### 采集指标 @@ -37,7 +37,7 @@ keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] #### 指标集合:huawei_core -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|--------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ifIndex | 无 | 接口索引 该值大于零且全局唯一。 | | ifDescr | 无 | 描述接口的字符串,应该包含制造商、产品名和接口软硬件的版本。 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 网络监控, 华为通用交换机监控 ] | ifInDiscards | 无 | 入方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文送往上层协议。 一个可能的原因是释放buffer的空间。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | | ifInErrors | 无 | 出错而不会被送往上层协议的报文/传输单元个数。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | | ifOutOctets | octets | 该接口出方向通过的总字节数,包括分桢的数据。在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | -| ifOutDiscards | 无 | 出方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文发送。丢弃此类报文的一个可能原因是为了释放缓冲区空间。 在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | +| ifOutDiscards | 无 | 出方向的被丢弃的报文个数,即使没有错误发生。也将阻止这些报文发送。丢弃此类报文的一个可能原因是为了释放缓冲区空间。 在管理系统的重新初始化和ifCounterDiscontinuityTime项指定的时间内,该节点的值将出现不连续的情况。 | | ifOutErrors | 无 | 对于面向数据包的接口,该节点表示由于错误而无法发送的数据包数量。对于面向字符或固定长度接口,该节点表示由于错误而无法传输的传输单元的数量。这种计数器的值可能在管理系统的重新初始化时会不连续,其他时间如ifCounterDiscontinuityTime的值。 | | ifAdminStatus | 无 | 接口的理想状态。 testing(3)状态表示没有可操作的数据包通过。 当受管系统初始化时,全部接口开始于ifAdminStatus在down(2)状态。由于明确的管理动作或被管理的系统保留的每个配置信息,ifAdminStatus然后被更改为Up(1)或testing(3)状态(或保留在down(2)状态)。 | | ifOperStatus | 无 | 当前接口的操作状态。testing(3)状态表示没有可操作的数据包可以通过。如果ifAdminStatus是down(2),则ifOperStatus应该是down(2)。 如果ifAdminStatus是改为up(1),则ifOperStatus应该更改为up(1)。如果接口准备好传输,接收网络流量; 它应该改为dormant(5)。如果接口正在等待外部动作(如串行线路等待传入连接); 它应该保持在down(2)状态,并且只有当有故障阻止它变成up(1)状态。 它应该留在notPresent(6)状态如果接口缺少(通常为硬件)组件。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hugegraph.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hugegraph.md index 8770ababdcd..11c9a91749a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hugegraph.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/hugegraph.md @@ -4,6 +4,7 @@ title: 监控:HugeGraph监控 sidebar_label: Apache HugeGraph keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] --- + > 对HugeGraph的通用性能指标进行采集监控 **使用协议:HTTP** @@ -14,8 +15,7 @@ keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] ## 配置参数 - -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-----------|---------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 端口 | HugeGraph restserver的端口号,默认为8080。即:`restserver_port`参数值 | @@ -30,117 +30,111 @@ keywords: [开源监控系统, 开源数据库监控, HugeGraph监控] #### 指标集合:gauges -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------------------ | -------- | --------------------------------- | -| edge-hugegraph-capacity | 无 | 表示当前图中边的容量上限 | -| edge-hugegraph-expire | 无 | 表示边数据的过期时间 | -| edge-hugegraph-hits | 无 | 表示边数据缓存的命中次数 | -| edge-hugegraph-miss | 无 | 表示边数据缓存的未命中次数 | -| edge-hugegraph-size | 无 | 表示当前图中边的数量 | -| instances | 无 | 表示当前运行的HugeGraph实例数量| -| schema-id-hugegraph-capacity | 无 | 表示图中schema ID的容量上限 | -| schema-id-hugegraph-expire | 无 | 表示schema ID数据的过期时间 | -| schema-id-hugegraph-hits | 无 | 表示schema ID数据缓存的命中次数| -| schema-id-hugegraph-miss | 无 | 表示schema ID数据缓存的未命中次数| -| schema-id-hugegraph-size | 无 | 表示当前图中schema ID的数量 | -| schema-name-hugegraph-capacity | 无 | 表示图中schema名称的容量上限 | -| schema-name-hugegraph-expire | 无 | 表示schema名称数据的过期时间 | -| schema-name-hugegraph-hits | 无 | 表示schema名称数据缓存的命中次数| -| schema-name-hugegraph-miss | 无 | 表示schema名称数据缓存的未命中次数| -| schema-name-hugegraph-size | 无 | 表示当前图中schema名称的数量 | -| token-hugegraph-capacity | 无 | 表示图中token的容量上限 | -| token-hugegraph-expire | 无 | 表示token数据的过期时间 | -| token-hugegraph-hits | 无 | 表示token数据缓存的命中次数 | -| token-hugegraph-miss | 无 | 表示token数据缓存的未命中次数 | -| token-hugegraph-size | 无 | 表示当前图中token的数量 | -| users-hugegraph-capacity | 无 | 表示图中用户的容量上限 | -| users-hugegraph-expire | 无 | 表示用户数据的过期时间 | -| users-hugegraph-hits | 无 | 表示用户数据缓存的命中次数 | -| users-hugegraph-miss | 无 | 表示用户数据缓存的未命中次数 | -| users-hugegraph-size | 无 | 表示当前图中用户的数量 | -| users_pwd-hugegraph-capacity | 无 | 表示users_pwd的容量上限 | -| users_pwd-hugegraph-expire | 无 | 表示users_pwd数据的过期时间 | -| users_pwd-hugegraph-hits | 无 | 表示users_pwd数据缓存的命中次数 | -| users_pwd-hugegraph-miss | 无 | 表示users_pwd数据缓存的未命中次数| -| users_pwd-hugegraph-size | 无 | 表示当前图中users_pwd的数量 | -| vertex-hugegraph-capacity | 无 | 表示图中顶点的容量上限 | -| vertex-hugegraph-expire | 无 | 表示顶点数据的过期时间 | -| vertex-hugegraph-hits | 无 | 表示顶点数据缓存的命中次数 | -| vertex-hugegraph-miss | 无 | 表示顶点数据缓存的未命中次数 | -| vertex-hugegraph-size | 无 | 表示当前图中顶点的数量 | -| batch-write-threads | 无 | 表示批量写入操作时的线程数 | -| max-write-threads | 无 | 表示最大写入操作的线程数 | -| pending-tasks | 无 | 表示待处理的任务数 | -| workers | 无 | 表示当前工作线程的数量 | -| average-load-penalty | 无 | 表示平均加载延迟 | -| estimated-size | 无 | 表示估计的数据大小 | -| eviction-count | 无 | 表示被驱逐的数据条数 | -| eviction-weight | 无 | 表示被驱逐数据的权重 | -| hit-count | 无 | 表示缓存命中总数 | -| hit-rate | 无 | 表示缓存命中率 | -| load-count | 无 | 表示数据加载次数 | -| load-failure-count | 无 | 表示数据加载失败次数 | -| load-failure-rate | 无 | 表示数据加载失败率 | -| load-success-count | 无 | 表示数据加载成功次数 | -| long-run-compilation-count | 无 | 表示长时间运行的编译次数 | -| miss-count | 无 | 表示缓存未命中总数 | -| miss-rate | 无 | 表示缓存未命中率 | -| request-count | 无 | 表示总的请求次数 | -| total-load-time | 无 | 表示总的数据加载时间 | -| sessions | 无 | 表示当前的活动会话数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-----------------------| +| edge-hugegraph-capacity | 无 | 表示当前图中边的容量上限 | +| edge-hugegraph-expire | 无 | 表示边数据的过期时间 | +| edge-hugegraph-hits | 无 | 表示边数据缓存的命中次数 | +| edge-hugegraph-miss | 无 | 表示边数据缓存的未命中次数 | +| edge-hugegraph-size | 无 | 表示当前图中边的数量 | +| instances | 无 | 表示当前运行的HugeGraph实例数量 | +| schema-id-hugegraph-capacity | 无 | 表示图中schema ID的容量上限 | +| schema-id-hugegraph-expire | 无 | 表示schema ID数据的过期时间 | +| schema-id-hugegraph-hits | 无 | 表示schema ID数据缓存的命中次数 | +| schema-id-hugegraph-miss | 无 | 表示schema ID数据缓存的未命中次数 | +| schema-id-hugegraph-size | 无 | 表示当前图中schema ID的数量 | +| schema-name-hugegraph-capacity | 无 | 表示图中schema名称的容量上限 | +| schema-name-hugegraph-expire | 无 | 表示schema名称数据的过期时间 | +| schema-name-hugegraph-hits | 无 | 表示schema名称数据缓存的命中次数 | +| schema-name-hugegraph-miss | 无 | 表示schema名称数据缓存的未命中次数 | +| schema-name-hugegraph-size | 无 | 表示当前图中schema名称的数量 | +| token-hugegraph-capacity | 无 | 表示图中token的容量上限 | +| token-hugegraph-expire | 无 | 表示token数据的过期时间 | +| token-hugegraph-hits | 无 | 表示token数据缓存的命中次数 | +| token-hugegraph-miss | 无 | 表示token数据缓存的未命中次数 | +| token-hugegraph-size | 无 | 表示当前图中token的数量 | +| users-hugegraph-capacity | 无 | 表示图中用户的容量上限 | +| users-hugegraph-expire | 无 | 表示用户数据的过期时间 | +| users-hugegraph-hits | 无 | 表示用户数据缓存的命中次数 | +| users-hugegraph-miss | 无 | 表示用户数据缓存的未命中次数 | +| users-hugegraph-size | 无 | 表示当前图中用户的数量 | +| users_pwd-hugegraph-capacity | 无 | 表示users_pwd的容量上限 | +| users_pwd-hugegraph-expire | 无 | 表示users_pwd数据的过期时间 | +| users_pwd-hugegraph-hits | 无 | 表示users_pwd数据缓存的命中次数 | +| users_pwd-hugegraph-miss | 无 | 表示users_pwd数据缓存的未命中次数 | +| users_pwd-hugegraph-size | 无 | 表示当前图中users_pwd的数量 | +| vertex-hugegraph-capacity | 无 | 表示图中顶点的容量上限 | +| vertex-hugegraph-expire | 无 | 表示顶点数据的过期时间 | +| vertex-hugegraph-hits | 无 | 表示顶点数据缓存的命中次数 | +| vertex-hugegraph-miss | 无 | 表示顶点数据缓存的未命中次数 | +| vertex-hugegraph-size | 无 | 表示当前图中顶点的数量 | +| batch-write-threads | 无 | 表示批量写入操作时的线程数 | +| max-write-threads | 无 | 表示最大写入操作的线程数 | +| pending-tasks | 无 | 表示待处理的任务数 | +| workers | 无 | 表示当前工作线程的数量 | +| average-load-penalty | 无 | 表示平均加载延迟 | +| estimated-size | 无 | 表示估计的数据大小 | +| eviction-count | 无 | 表示被驱逐的数据条数 | +| eviction-weight | 无 | 表示被驱逐数据的权重 | +| hit-count | 无 | 表示缓存命中总数 | +| hit-rate | 无 | 表示缓存命中率 | +| load-count | 无 | 表示数据加载次数 | +| load-failure-count | 无 | 表示数据加载失败次数 | +| load-failure-rate | 无 | 表示数据加载失败率 | +| load-success-count | 无 | 表示数据加载成功次数 | +| long-run-compilation-count | 无 | 表示长时间运行的编译次数 | +| miss-count | 无 | 表示缓存未命中总数 | +| miss-rate | 无 | 表示缓存未命中率 | +| request-count | 无 | 表示总的请求次数 | +| total-load-time | 无 | 表示总的数据加载时间 | +| sessions | 无 | 表示当前的活动会话数量 | #### 指标集合:counters - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------------------------------- | -------- | ---------------------------------------- | -| GET-SUCCESS_COUNTER | 无 | 记录GET请求成功的次数 | -| GET-TOTAL_COUNTER | 无 | 记录GET请求的总次数 | -| favicon-ico-GET-FAILED_COUNTER | 无 | 记录获取favicon.ico失败的GET请求次数 | -| favicon-ico-GET-TOTAL_COUNTER | 无 | 记录获取favicon.ico的GET请求总次数 | -| graphs-HEAD-FAILED_COUNTER | 无 | 记录graphs资源的HEAD请求失败的次数 | -| graphs-HEAD-SUCCESS_COUNTER | 无 | 记录graphs资源的HEAD请求成功的次数 | -| graphs-HEAD-TOTAL_COUNTER | 无 | 记录graphs资源的HEAD请求的总次数 | -| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求成功的次数 | -| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求的总次数 | -| metircs-GET-FAILED_COUNTER | 无 | 记录获取metrics失败的GET请求次数 | -| metircs-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | -| metrics-GET-SUCCESS_COUNTER | 无 | 记录获取metrics成功的GET请求次数 | -| metrics-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | -| metrics-gauges-GET-SUCCESS_COUNTER | 无 | 记录获取metrics gauges成功的GET请求次数 | -| metrics-gauges-GET-TOTAL_COUNTER | 无 | 记录获取metrics gauges的GET请求总次数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------------------------------------|------|------------------------------| +| GET-SUCCESS_COUNTER | 无 | 记录GET请求成功的次数 | +| GET-TOTAL_COUNTER | 无 | 记录GET请求的总次数 | +| favicon-ico-GET-FAILED_COUNTER | 无 | 记录获取favicon.ico失败的GET请求次数 | +| favicon-ico-GET-TOTAL_COUNTER | 无 | 记录获取favicon.ico的GET请求总次数 | +| graphs-HEAD-FAILED_COUNTER | 无 | 记录graphs资源的HEAD请求失败的次数 | +| graphs-HEAD-SUCCESS_COUNTER | 无 | 记录graphs资源的HEAD请求成功的次数 | +| graphs-HEAD-TOTAL_COUNTER | 无 | 记录graphs资源的HEAD请求的总次数 | +| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求成功的次数 | +| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | 无 | 记录获取HugeGraph图中顶点的GET请求的总次数 | +| metircs-GET-FAILED_COUNTER | 无 | 记录获取metrics失败的GET请求次数 | +| metircs-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | +| metrics-GET-SUCCESS_COUNTER | 无 | 记录获取metrics成功的GET请求次数 | +| metrics-GET-TOTAL_COUNTER | 无 | 记录获取metrics的GET请求总次数 | +| metrics-gauges-GET-SUCCESS_COUNTER | 无 | 记录获取metrics gauges成功的GET请求次数 | +| metrics-gauges-GET-TOTAL_COUNTER | 无 | 记录获取metrics gauges的GET请求总次数 | #### 指标集合:system - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------------------------------- | -------- | -------------------------------------------------- | -| mem | 无 | 表示系统的总内存量 | -| mem_total | 无 | 表示系统的总内存量(与mem相同) | -| mem_used | 无 | 表示系统当前使用的内存量 | -| mem_free | 无 | 表示系统空闲的内存量 | -| mem_unit | 无 | 表示内存量的单位(如字节、千字节、兆字节等) | -| processors | 无 | 表示系统的处理器数量 | -| uptime | 无 | 表示系统运行时间,即从启动到现在的时间 | -| systemload_average | 无 | 表示系统的平均负载,反映了系统的繁忙程度 | -| heap_committed | 无 | 表示JVM堆内存的承诺大小,即保证可供JVM使用的堆内存大小 | -| heap_init | 无 | 表示JVM堆内存的初始大小 | -| heap_used | 无 | 表示JVM当前使用的堆内存大小 | -| heap_max | 无 | 表示JVM堆内存的最大可使用大小 | -| nonheap_committed | 无 | 表示JVM非堆内存的承诺大小 | -| nonheap_init | 无 | 表示JVM非堆内存的初始大小 | -| nonheap_used | 无 | 表示JVM当前使用的非堆内存大小 | -| nonheap_max | 无 | 表示JVM非堆内存的最大可使用大小 | -| thread_peak | 无 | 表示自JVM启动以来峰值线程数 | -| thread_daemon | 无 | 表示当前活跃的守护线程数 | -| thread_total_started | 无 | 表示自JVM启动以来总共启动过的线程数 | -| thread_count | 无 | 表示当前活跃的线程数 | -| garbage_collector_g1_young_generation_count | 无 | 表示G1垃圾收集器年轻代垃圾收集的次数 | -| garbage_collector_g1_young_generation_time | 无 | 表示G1垃圾收集器年轻代垃圾收集的总时间 | -| garbage_collector_g1_old_generation_count | 无 | 表示G1垃圾收集器老年代垃圾收集的次数 | -| garbage_collector_g1_old_generation_time | 无 | 表示G1垃圾收集器老年代垃圾收集的总时间 | -| garbage_collector_time_unit | 无 | 表示垃圾收集时间的单位(如毫秒、秒等) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------------------|------|--------------------------------| +| mem | 无 | 表示系统的总内存量 | +| mem_total | 无 | 表示系统的总内存量(与mem相同) | +| mem_used | 无 | 表示系统当前使用的内存量 | +| mem_free | 无 | 表示系统空闲的内存量 | +| mem_unit | 无 | 表示内存量的单位(如字节、千字节、兆字节等) | +| processors | 无 | 表示系统的处理器数量 | +| uptime | 无 | 表示系统运行时间,即从启动到现在的时间 | +| systemload_average | 无 | 表示系统的平均负载,反映了系统的繁忙程度 | +| heap_committed | 无 | 表示JVM堆内存的承诺大小,即保证可供JVM使用的堆内存大小 | +| heap_init | 无 | 表示JVM堆内存的初始大小 | +| heap_used | 无 | 表示JVM当前使用的堆内存大小 | +| heap_max | 无 | 表示JVM堆内存的最大可使用大小 | +| nonheap_committed | 无 | 表示JVM非堆内存的承诺大小 | +| nonheap_init | 无 | 表示JVM非堆内存的初始大小 | +| nonheap_used | 无 | 表示JVM当前使用的非堆内存大小 | +| nonheap_max | 无 | 表示JVM非堆内存的最大可使用大小 | +| thread_peak | 无 | 表示自JVM启动以来峰值线程数 | +| thread_daemon | 无 | 表示当前活跃的守护线程数 | +| thread_total_started | 无 | 表示自JVM启动以来总共启动过的线程数 | +| thread_count | 无 | 表示当前活跃的线程数 | +| garbage_collector_g1_young_generation_count | 无 | 表示G1垃圾收集器年轻代垃圾收集的次数 | +| garbage_collector_g1_young_generation_time | 无 | 表示G1垃圾收集器年轻代垃圾收集的总时间 | +| garbage_collector_g1_old_generation_count | 无 | 表示G1垃圾收集器老年代垃圾收集的次数 | +| garbage_collector_g1_old_generation_time | 无 | 表示G1垃圾收集器老年代垃圾收集的总时间 | +| garbage_collector_time_unit | 无 | 表示垃圾收集时间的单位(如毫秒、秒等) | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb.md index 1881d79f4ee..1b3bda87fe3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb.md @@ -5,64 +5,61 @@ sidebar_label: InfluxDB 数据库 keywords: [开源监控系统, 开源数据库监控, InfluxDB 数据库监控] --- - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为8086。 | -| URL | 数据库连接URL,一般是由host拼接,不需要添加 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为8086。 | +| URL | 数据库连接URL,一般是由host拼接,不需要添加 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:influxdb 基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | -|------------| ----------- |--------| -| build_date | 无 | 创建日期 | -| os | 无 | 操作系统 | -| cpus | 无 | cpus | -| version | 无 | 版本号 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|--------| +| build_date | 无 | 创建日期 | +| os | 无 | 操作系统 | +| cpus | 无 | cpus | +| version | 无 | 版本号 | #### 指标集合:http 响应时间 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|---------| | handler | 无 | handler | | path | 无 | 路径 | | response_code | 无 | 返回code | | method | 无 | 请求方法 | | user_agent | 无 | 用户代理 | -| status | 无 | 状态 | +| status | 无 | 状态 | #### 指标集合:正在排队的 TSM 数 -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------------------------------|------|------------| -| bucket | 无 | 存储桶 | -| engine | 无 | 引擎类型 | -| id | 无 | 标识符 | -| level | 无 | 级别 | -| path | 无 | 数据文件路径 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| bucket | 无 | 存储桶 | +| engine | 无 | 引擎类型 | +| id | 无 | 标识符 | +| level | 无 | 级别 | +| path | 无 | 数据文件路径 | #### 指标集合:HTTP写入请求的字节数量 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------| -| endpoint | 无 | 终点 | -| org_id | 无 | 组织标识符 | -| status | 无 | 状态 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| endpoint | 无 | 终点 | +| org_id | 无 | 组织标识符 | +| status | 无 | 状态 | #### 指标集合:质量控制请求总数 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------| -| result | 无 | 结果 | -| org | 无 | 组织标识符 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| result | 无 | 结果 | +| org | 无 | 组织标识符 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb_promql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb_promql.md index ac56245fee4..5cb8d241015 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb_promql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/influxdb_promql.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合:basic_influxdb_memstats_alloc -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_database_numMeasurements -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | job | 无 | 指标名称 | | instance | 无 | 指标所属实例 | @@ -46,7 +46,7 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_query_rate_seconds -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | @@ -54,10 +54,8 @@ keywords: [ 开源监控系统, InfluxDB监控,InfluxDB-PromQL监控 ] #### 指标集合: influxdb_queryExecutor_queriesFinished_10s -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|---------| | instance | 无 | 指标所属实例 | | timestamp | 无 | 采集指标时间戳 | | value | 无 | 指标值 | - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/iotdb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/iotdb.md index 0f0dc0e0ecb..8170aaad0aa 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/iotdb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/iotdb.md @@ -5,49 +5,49 @@ sidebar_label: IoTDB数据库 keywords: [开源监控系统, 开源数据库监控, IoTDB数据库监控] --- -> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 +> 对 Apache IoTDB 物联网时序数据库的运行状态(JVM相关),内存任务集群等相关指标进行监测。 -## 监控前操作 +## 监控前操作 -您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 +您需要在 IoTDB 开启`metrics`功能,他将提供 prometheus metrics 形式的接口数据。 -开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) +开启`metrics`功能, 参考 [官方文档](https://iotdb.apache.org/zh/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) -主要如下步骤: +主要如下步骤: 1. metric 采集默认是关闭的,需要先到 `conf/iotdb-metric.yml` 中修改参数打开后重启 server -``` -# 是否启动监控模块,默认为false -enableMetric: true - -# 是否启用操作延迟统计 -enablePerformanceStat: false - -# 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 -metricReporterList: - - JMX - - PROMETHEUS - -# 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. 重启 IoTDB, 打开浏览器或者用curl 访问 http://ip:9091/metrics, 就能看到metric数据了。 + ```yml + # 是否启动监控模块,默认为false + enableMetric: true + + # 是否启用操作延迟统计 + enablePerformanceStat: false + + # 数据提供方式,对外部通过jmx和prometheus协议提供metrics的数据, 可选参数:[JMX, PROMETHEUS, IOTDB],IOTDB是默认关闭的。 + metricReporterList: + - JMX + - PROMETHEUS + + # 底层使用的metric架构,可选参数:[MICROMETER, DROPWIZARD] + monitorType: MICROMETER + + # 初始化metric的级别,可选参数: [CORE, IMPORTANT, NORMAL, ALL] + metricLevel: IMPORTANT + + # 预定义的指标集, 可选参数: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] + predefinedMetrics: + - JVM + - FILE + ``` + +2. 重启 IoTDB, 打开浏览器或者用curl 访问 , 就能看到metric数据了。 3. 在 HertzBeat 添加对应 IoTDB 监控即可。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -57,37 +57,37 @@ predefinedMetrics: | 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | | 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:cluster_node_status +#### 指标集合:cluster_node_status -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- |------|-------------------------| +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|-------------------------| | name | 无 | 节点名称IP | | status | 无 | 节点状态,1=online 2=offline | #### 指标集合:jvm_memory_committed_bytes -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------|------|------------------| | area | 无 | heap内存或nonheap内存 | | id | 无 | 内存区块 | -| value | MB | 当前向JVM申请的内存大小 | +| value | MB | 当前向JVM申请的内存大小 | #### 指标集合:jvm_memory_used_bytes -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| | area | 无 | heap内存或nonheap内存 | | id | 无 | 内存区块 | -| value | MB | JVM已使用内存大小 | +| value | MB | JVM已使用内存大小 | #### 指标集合:jvm_threads_states_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------| -| state | 无 | 线程状态 | -| count | 无 | 线程状态对应线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------| +| state | 无 | 线程状态 | +| count | 无 | 线程状态对应线程数量 | #### 指标集合:quantity 业务数据 @@ -99,22 +99,22 @@ predefinedMetrics: #### 指标集合:cache_hit 缓存 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------------------------------------------| -| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------| +| name | 无 | 缓存名称 chunk/timeSeriesMeta/bloomFilter | +| value | % | chunk/timeSeriesMeta缓存命中率,bloomFilter拦截率 | #### 指标集合:queue 任务队列 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|---------------------------------------------------| -| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | -| status | 无 | 状态 running/waiting | -| value | 无 | 当前时间任务数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|----------------------------------------------| +| name | 无 | 队列名称 compaction_inner/compaction_cross/flush | +| status | 无 | 状态 running/waiting | +| value | 无 | 当前时间任务数 | #### 指标集合:thrift_connections -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-------------| -| name | 无 | 名称 | -| connection | 无 | thrift当前连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|-------------| +| name | 无 | 名称 | +| connection | 无 | thrift当前连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/issue.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/issue.md index b7414f878b1..27e9c63b3ba 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/issue.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/issue.md @@ -1,59 +1,65 @@ --- id: issue title: 常见问题 -sidebar_label: 常见问题 +sidebar_label: 常见问题 --- -### 监控常见问题 +### 监控常见问题 -1. ** 页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名 ** -> 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http +1. **页面反馈:monitor.host:监控Host必须是ipv4,ipv6或域名** -2. ** 网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK ** -> 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) + > 如信息所示,输入的监控Host须是ipv4,ipv6或域名,不能携带协议头,例如协议头http + +2. **网站API等监控反馈statusCode:403或401,但对端服务本身无需认证,浏览器直接访问是OK** + + > 请排查是否是被防火墙拦截,如宝塔等默认设置了对请求header中`User-Agent=Apache-HttpClient`的拦截,若被拦截请删除此拦截规则。(v1.0.beat5版本已将user-agent模拟成浏览器此问题不存在) 3. 安装包部署的hertzbeat下ping连通性监控异常 -安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 + + > 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 + > docker安装默认启用无此问题 + > 详见 4. 配置了k8s监控,但是实际监控时间并未按照正确间隔时间执行 -请参考下面几点排查问题: -> 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 -> 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 -> 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine + 请参考下面几点排查问题: + + > 一:首先查看hertzbeat的错误日志,如果出现了'desc: SQL statement too long, check maxSQLLength config',信息 + > 二:需要调整tdengine配置文件,可在服务器创建taos.cfg文件,调整# max length of an SQL : maxSQLLength 654800,然后重启tdengine,需要加入配置文件的挂载 + > 三:如果遇到了重启tdengine失败,需要调整挂载数据文件中的配置,见 .../taosdata/dnode/dnodeEps.json,中dnodeFqdn调整为启动失败的dockerId即可,然后docker restart tdengine 5. 配置http api监控,用于进行业务接口探测,确保业务可以用,另外接口有进行token鉴权校验,"Authorization:Bearer eyJhbGciOiJIUzI1....",配置后测试,提示“StatusCode 401”。服务端应用收到的token为"Authorization:Bearer%20eyJhbGciOiJIUzI1....",hertzbeat对空格进行转义为“%20”,服务器没有转义导致鉴权失败,建议转义功能作为可选项。 +### Docker部署常见问题 -### Docker部署常见问题 +1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** + 此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -1. **MYSQL,TDENGINE和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` + > 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP + > 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 +2. **按照流程部署,访问 无界面** + 请参考下面几点排查问题: + + > 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 + > 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 + +3. **日志报错TDengine连接或插入SQL失败** -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter ### 安装包部署常见问题 -1. **按照流程部署,访问 http://ip:1157/ 无界面** +1. **按照流程部署,访问 无界面** 请参考下面几点排查问题: -> 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 -2. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + > 一:依赖服务MYSQL数据库,TDENGINE数据库是否已按照启动成功,对应hertzbeat数据库是否已创建,SQL脚本是否执行 + > 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 +2. **日志报错TDengine连接或插入SQL失败** + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jetty.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jetty.md index 04a15823529..5e5603783cc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jetty.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jetty.md @@ -15,84 +15,80 @@ keywords: [开源监控系统, 开源中间件监控, Jetty应用服务器监控 #### Jetty应用服务器开启JMX协议步骤 -[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. 在 Jetty 启动 JMX JMX-REMOTE 模块 - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 - -2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 - -**`localhost` 需修改为对外暴露 IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` +[参考官方文档](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) + +1. 在 Jetty 启动 JMX JMX-REMOTE 模块 + + ```shell + java -jar $JETTY_HOME/start.jar --add-module=jmx + java -jar $JETTY_HOME/start.jar --add-module=jmx-remote + ``` + + 命令执行成功会创建出 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件 + +2. 编辑 `${JETTY_BASE}/start.d/jmx-remote.ini` 配置文件,修改 JMX 的 IP 端口等参数。 + + **`localhost` 需修改为对外暴露 IP** + + ```text + ## The host/address to bind the RMI server to. + # jetty.jmxremote.rmiserverhost=localhost + + ## The port the RMI server listens to (0 means a random port is chosen). + # jetty.jmxremote.rmiserverport=1099 + + ## The host/address to bind the RMI registry to. + # jetty.jmxremote.rmiregistryhost=localhost + + ## The port the RMI registry listens to. + # jetty.jmxremote.rmiregistryport=1099 + + ## The host name exported in the RMI stub. + -Djava.rmi.server.hostname=localhost + ``` 3. 重启 Jetty Server 即可。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jvm.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jvm.md index c97cc73b003..3d9e96e55e1 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jvm.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/jvm.md @@ -17,7 +17,7 @@ keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] 应用启动时添加JVM参数 ⚠️注意可自定义暴露端口,对外IP -参考文档: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote +参考文档: ```shell -Djava.rmi.server.hostname=对外ip地址 @@ -28,57 +28,53 @@ keywords: [开源监控系统, 开源JAVA监控, JVM虚拟机监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置JVM连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache (限JDK8及以下) -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------| ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka.md index 2b4ed0514b7..9268c920e5d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka.md @@ -7,7 +7,7 @@ keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] > 对Kafka的通用性能指标进行采集监控 -**使用协议:JMX** +**使用协议:JMX** ### 监控前操作 @@ -17,86 +17,79 @@ keywords: [开源监控系统, 开源消息中间件监控, Kafka监控] 2. 修改 Kafka 启动脚本 -修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` -在脚本正文(即非注释行)的第一行前添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 + 修改 Kafka 安装目录下的启动脚本 `/bin/kafka-server-start.sh` + 在脚本正文(即非注释行)的第一行前添加如下内容, ⚠️注意替换您自己的端口和对外 IP 地址 -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# 这是最后一行本来就存在的 -# exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` + ```shell + export JMX_PORT=9999; + export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; + + # 这是最后一行本来就存在的 + # exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" + ``` 3. 重启 Kafka 服务 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置Kafka连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:server_info -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Version | 无 | Kafka版本 | -| StartTimeMs | ms | 运行时间 | -| CommitId | 无 | 版本提交ID | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------| +| Version | 无 | Kafka版本 | +| StartTimeMs | ms | 运行时间 | +| CommitId | 无 | 版本提交ID | #### 指标集合:code_cache -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:active_controller_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 活跃监控器数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------| +| Value | 个 | 活跃监控器数量 | #### 指标集合:broker_partition_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 分区数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------| +| Value | 个 | 分区数量 | #### 指标集合:broker_leader_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| Value | 个 | 领导者数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------| +| Value | 个 | 领导者数量 | #### 指标集合:broker_handler_avg_percent 请求处理器空闲率 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| EventType | 无 | 类型 | -| RateUnit | 具体情况具体分析 | 单位 | -| Count | 个 | 数量 | -| OneMinuteRate | % | 一分钟处理率 | -| FiveMinuteRate | % | 五分钟处理率 | -| MeanRate | 无 | 平均处理率 | -| FifteenMinuteRate | 无 | 十五分钟处理率 | - - -> 其他指标见文知意,欢迎贡献一起优化文档。 - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|----------|---------| +| EventType | 无 | 类型 | +| RateUnit | 具体情况具体分析 | 单位 | +| Count | 个 | 数量 | +| OneMinuteRate | % | 一分钟处理率 | +| FiveMinuteRate | % | 五分钟处理率 | +| MeanRate | 无 | 平均处理率 | +| FifteenMinuteRate | 无 | 十五分钟处理率 | + +> 其他指标见文知意,欢迎贡献一起优化文档。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka_promql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka_promql.md index a0b0b625485..f75ee33ba77 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka_promql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kafka_promql.md @@ -15,7 +15,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -34,7 +34,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL #### 指标集合:kafka_brokers -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | \_\_name__ | 无 | 指标名称 | | instance | 无 | 指标所属实例 | @@ -43,7 +43,7 @@ keywords: [ 开源监控系统,开源中间件监控, Kafka监控,Kafka-PromQL #### 指标集合: kafka_topic_partitions -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | \_\_name__ | 无 | 指标名称 | | instance | 无 | 指标所属实例 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kubernetes.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kubernetes.md index f45da8d9b27..58ed7e3fcf3 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kubernetes.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/kubernetes.md @@ -7,28 +7,29 @@ keywords: [开源监控系统, 开源Kubernetes监控] > 对kubernetes的通用性能指标进行采集监控。 - ## 监控前操作 如果想要监控 `Kubernetes` 中的信息,则需要获取到可访问Api Server的授权TOKEN,让采集请求获取到对应的信息。 -参考获取token步骤 +参考获取token步骤 -#### 方式一: +### 方式一 1. 创建service account并绑定默认cluster-admin管理员集群角色 -```kubectl create serviceaccount dashboard-admin -n kube-system``` + ```kubectl create serviceaccount dashboard-admin -n kube-system``` 2. 用户授权 + ```shell + kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin + kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' + kubectl describe secret {secret} -n kube-system + ``` + +### 方式二 + ```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` -#### 方式二: -``` kubectl create serviceaccount cluster-admin kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin @@ -36,13 +37,14 @@ kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-adm kubectl create token --duration=1000h cluster-admin ``` + ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-------------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| APiServer端口 | K8s APiServer端口,默认6443 | +| APiServer端口 | K8s APiServer端口,默认6443 | | token | 授权Access Token | | URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | | 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | @@ -53,44 +55,44 @@ kubectl create token --duration=1000h cluster-admin #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------| -| node_name | 无 | 节点名称 | -| is_ready | 无 | 节点状态 | -| capacity_cpu | 无 | CPU容量 | -| allocatable_cpu | 无 | 已分配CPU | -| capacity_memory | 无 | 内存容量 | -| allocatable_memory | 无 | 已分配内存 | -| creation_time | 无 | 节点创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------| +| node_name | 无 | 节点名称 | +| is_ready | 无 | 节点状态 | +| capacity_cpu | 无 | CPU容量 | +| allocatable_cpu | 无 | 已分配CPU | +| capacity_memory | 无 | 内存容量 | +| allocatable_memory | 无 | 已分配内存 | +| creation_time | 无 | 节点创建时间 | #### 指标集合:namespaces -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- |-------------| -| namespace | 无 | namespace名称 | -| status | 无 | 状态 | -| creation_time | 无 | 创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-------------| +| namespace | 无 | namespace名称 | +| status | 无 | 状态 | +| creation_time | 无 | 创建时间 | #### 指标集合:pods -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- | -------- |----------------| -| pod | 无 | pod名称 | -| namespace | 无 | pod所属namespace | -| status | 无 | pod状态 | -| restart | 无 | 重启次数 | -| host_ip | 无 | 所在主机IP | -| pod_ip | 无 | pod ip | -| creation_time | 无 | pod创建时间 | -| start_time | 无 | pod启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|----------------| +| pod | 无 | pod名称 | +| namespace | 无 | pod所属namespace | +| status | 无 | pod状态 | +| restart | 无 | 重启次数 | +| host_ip | 无 | 所在主机IP | +| pod_ip | 无 | pod ip | +| creation_time | 无 | pod创建时间 | +| start_time | 无 | pod启动时间 | #### 指标集合:services -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------------------------------------------| -| service | 无 | service名称 | -| namespace | 无 | service所属namespace | -| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | 无 | cluster ip | -| selector | 无 | tag selector匹配 | -| creation_time | 无 | 创建时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|--------------------------------------------------------| +| service | 无 | service名称 | +| namespace | 无 | service所属namespace | +| type | 无 | service类型 ClusterIP NodePort LoadBalancer ExternalName | +| cluster_ip | 无 | cluster ip | +| selector | 无 | tag selector匹配 | +| creation_time | 无 | 创建时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/linux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/linux.md index 853be6610b4..abd87de1ef8 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/linux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/linux.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, Linux操作系统监控 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mariadb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mariadb.md index 5fd59466717..4690b5500ef 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mariadb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mariadb.md @@ -9,49 +9,45 @@ keywords: [开源监控系统, 开源数据库监控, MariaDB数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为3306。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|------------| +| version | 无 | 数据库版本 | +| port | 无 | 数据库暴露服务端口 | +| datadir | 无 | 数据库存储数据盘地址 | +| max_connections | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MariaDB已经创建的总连接数 | -| threads_connected | 无 | MariaDB已经连接的连接数 | -| threads_cached | 无 | MariaDB当前缓存的连接数 | -| threads_running | 无 | MariaDB当前活跃的连接数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|------------------| +| threads_created | 无 | MariaDB已经创建的总连接数 | +| threads_connected | 无 | MariaDB已经连接的连接数 | +| threads_cached | 无 | MariaDB当前缓存的连接数 | +| threads_running | 无 | MariaDB当前活跃的连接数 | #### 指标集合:innodb -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|-------------------------| +| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | +| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | +| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | +| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/memcached.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/memcached.md index 0debad01ce9..1066d3934dc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/memcached.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/memcached.md @@ -30,11 +30,11 @@ STAT version 1.4.15 ... ``` -**帮助文档: https://www.runoob.com/memcached/memcached-stats.html** +**帮助文档: ** ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------|---------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不带协议头(例如:https://,http://) | | 监控名称 | 标识此监控的名称。名称需要唯一 | @@ -47,7 +47,7 @@ STAT version 1.4.15 #### 指标集:server_info -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------| | pid | 无 | Memcache 服务器进程 ID | | uptime | s | 服务器已运行的秒数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mongodb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mongodb.md index 23c4a866809..46d602fac9f 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mongodb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mongodb.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:构建信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------------| | version | 无 | MongoDB版本信息 | | gitVersion | 无 | 源代码git版本 | @@ -39,7 +39,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:服务器文档 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|--------| | deleted | 无 | 已删除数 | | inserted | 无 | 已插入数 | @@ -48,21 +48,21 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:服务器操作 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|-------------------| | scanAndOrder | 无 | 执行查询时需要扫描并进行排序的次数 | | writeConflicts | 无 | 写冲突的次数 | #### 指标集合: 服务器_ttl -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------|------|-------------------------------| | deletedDocuments | 无 | 删除的过期文档数量 | | passes | 无 | TTL清理过程的总传递次数,每次传递会检查并删除过期的文档 | #### 指标集合:系统信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-----------------------| | currentTime | 无 | 当前时间 | | hostname | 无 | 主机名 | @@ -75,7 +75,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:操作系统信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|--------| | type | 无 | 操作系统类型 | | name | 无 | 操作系统名称 | @@ -83,7 +83,7 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] #### 指标集合:额外信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------|------|----------------------| | versionString | 无 | 版本 | | libcVersion | 无 | 标准库版本 | @@ -93,4 +93,3 @@ keywords: [ 开源监控系统, 开源数据库监控, MongoDB数据库监控 ] | pageSize | 无 | 内存页大小 | | numPages | 无 | 内存页数量 | | maxOpenFiles | 无 | 系统中允许打开的最大文件数 | - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mysql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mysql.md index dc23f3d6fa5..47087c88f34 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mysql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/mysql.md @@ -9,49 +9,45 @@ keywords: [开源监控系统, 开源数据库监控, Mysql数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为3306。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为3306。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | 数据库版本 | -| port | 无 | 数据库暴露服务端口 | -| datadir | 无 | 数据库存储数据盘地址 | -| max_connections | 无 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|------------| +| version | 无 | 数据库版本 | +| port | 无 | 数据库暴露服务端口 | +| datadir | 无 | 数据库存储数据盘地址 | +| max_connections | 无 | 数据库最大连接数 | #### 指标集合:status -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| threads_created | 无 | MySql已经创建的总连接数 | -| threads_connected | 无 | MySql已经连接的连接数 | -| threads_cached | 无 | MySql当前缓存的连接数 | -| threads_running | 无 | MySql当前活跃的连接数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|----------------| +| threads_created | 无 | MySql已经创建的总连接数 | +| threads_connected | 无 | MySql已经连接的连接数 | +| threads_cached | 无 | MySql当前缓存的连接数 | +| threads_running | 无 | MySql当前活跃的连接数 | #### 指标集合:innodb -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | -| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | -| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | -| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------|------|-------------------------| +| innodb_data_reads | 无 | innodb平均每秒从文件中读取的次数 | +| innodb_data_writes | 无 | innodb平均每秒从文件中写入的次数 | +| innodb_data_read | KB | innodb平均每秒钟读取的数据量,单位为KB | +| innodb_data_written | KB | innodb平均每秒钟写入的数据量,单位为KB | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nacos.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nacos.md index 8b5313c2dc1..f95da705d58 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nacos.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nacos.md @@ -7,87 +7,88 @@ keywords: [开源监控系统, 中间件监控, Nacos分布式监控] > 通过调用 Nacos Metrics 接口对 Nacos 注册配置中心服务的通用指标进行采集监控。 -### 监控前操作 +### 监控前操作 #### 搭建Nacos集群暴露metrics数据 1. 按照[部署文档](https://nacos.io/zh-cn/docs/deployment.html)搭建好Nacos集群。 2. 配置application.properties文件,暴露metrics数据。 -``` -management.endpoints.web.exposure.include=* -``` + + ```properties + management.endpoints.web.exposure.include=* + ``` + 3. 访问```{ip}:8848/nacos/actuator/prometheus```,查看是否能访问到metrics数据。 更多信息请参考[Nacos 监控手册](https://nacos.io/zh-cn/docs/monitor-guide.html)。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 服务器Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Nacos服务端口 | Nacos服务对外提供的端口,默认为8848。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 服务器Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Nacos服务端口 | Nacos服务对外提供的端口,默认为8848。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:jvm -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| system_cpu_usage | 无 | CPU使用率 | -| system_load_average_1m | 无 | load | -| jvm_memory_used_bytes | 字节 | 内存使用字节,包含各种内存区 | -| jvm_memory_max_bytes | 字节 | 内存最大字节,包含各种内存区 | -| jvm_gc_pause_seconds_count | 无 | gc次数,包含各种gc | -| jvm_gc_pause_seconds_sum | 秒 | gc耗时,包含各种gc | -| jvm_threads_daemon | 无 | 线程数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------|------|----------------| +| system_cpu_usage | 无 | CPU使用率 | +| system_load_average_1m | 无 | load | +| jvm_memory_used_bytes | 字节 | 内存使用字节,包含各种内存区 | +| jvm_memory_max_bytes | 字节 | 内存最大字节,包含各种内存区 | +| jvm_gc_pause_seconds_count | 无 | gc次数,包含各种gc | +| jvm_gc_pause_seconds_sum | 秒 | gc耗时,包含各种gc | +| jvm_threads_daemon | 无 | 线程数 | #### 指标集合:Nacos -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| http_server_requests_seconds_count | 秒 | http请求次数,包括多种(url,方法,code) | -| http_server_requests_seconds_sum | 秒 | http请求总耗时,包括多种(url,方法,code) | -| nacos_timer_seconds_sum | 秒 | Nacos config水平通知耗时 | -| nacos_timer_seconds_count | 无 | Nacos config水平通知次数 | -| nacos_monitor{name='longPolling'} | 无 | Nacos config长连接数 | -| nacos_monitor{name='configCount'} | 无 | Nacos config配置个数 | -| nacos_monitor{name='dumpTask'} | 无 | Nacos config配置落盘任务堆积数 | -| nacos_monitor{name='notifyTask'} | 无 | Nacos config配置水平通知任务堆积数 | -| nacos_monitor{name='getConfig'} | 无 | Nacos config读配置统计数 | -| nacos_monitor{name='publish'} | 无 | Nacos config写配置统计数 | -| nacos_monitor{name='ipCount'} | 无 | Nacos naming ip个数 | -| nacos_monitor{name='domCount'} | 无 | Nacos naming域名个数(1.x 版本) | -| nacos_monitor{name='serviceCount'} | 无 | Nacos naming域名个数(2.x 版本) | -| nacos_monitor{name='failedPush'} | 无 | Nacos naming推送失败数 | -| nacos_monitor{name='avgPushCost'} | 秒 | Nacos naming平均推送耗时 | -| nacos_monitor{name='leaderStatus'} | 无 | Nacos naming角色状态 | -| nacos_monitor{name='maxPushCost'} | 秒 | Nacos naming最大推送耗时 | -| nacos_monitor{name='mysqlhealthCheck'} | 无 | Nacos naming mysql健康检查次数 | -| nacos_monitor{name='httpHealthCheck'} | 无 | Nacos naming http健康检查次数 | -| nacos_monitor{name='tcpHealthCheck'} | 无 | Nacos naming tcp健康检查次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------|------|-----------------------------| +| http_server_requests_seconds_count | 秒 | http请求次数,包括多种(url,方法,code) | +| http_server_requests_seconds_sum | 秒 | http请求总耗时,包括多种(url,方法,code) | +| nacos_timer_seconds_sum | 秒 | Nacos config水平通知耗时 | +| nacos_timer_seconds_count | 无 | Nacos config水平通知次数 | +| nacos_monitor{name='longPolling'} | 无 | Nacos config长连接数 | +| nacos_monitor{name='configCount'} | 无 | Nacos config配置个数 | +| nacos_monitor{name='dumpTask'} | 无 | Nacos config配置落盘任务堆积数 | +| nacos_monitor{name='notifyTask'} | 无 | Nacos config配置水平通知任务堆积数 | +| nacos_monitor{name='getConfig'} | 无 | Nacos config读配置统计数 | +| nacos_monitor{name='publish'} | 无 | Nacos config写配置统计数 | +| nacos_monitor{name='ipCount'} | 无 | Nacos naming ip个数 | +| nacos_monitor{name='domCount'} | 无 | Nacos naming域名个数(1.x 版本) | +| nacos_monitor{name='serviceCount'} | 无 | Nacos naming域名个数(2.x 版本) | +| nacos_monitor{name='failedPush'} | 无 | Nacos naming推送失败数 | +| nacos_monitor{name='avgPushCost'} | 秒 | Nacos naming平均推送耗时 | +| nacos_monitor{name='leaderStatus'} | 无 | Nacos naming角色状态 | +| nacos_monitor{name='maxPushCost'} | 秒 | Nacos naming最大推送耗时 | +| nacos_monitor{name='mysqlhealthCheck'} | 无 | Nacos naming mysql健康检查次数 | +| nacos_monitor{name='httpHealthCheck'} | 无 | Nacos naming http健康检查次数 | +| nacos_monitor{name='tcpHealthCheck'} | 无 | Nacos naming tcp健康检查次数 | #### 指标集合:Nacos 异常 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| nacos_exception_total{name='db'} | 无 | 数据库异常 | -| nacos_exception_total{name='configNotify'} | 无 | Nacos config水平通知失败 | -| nacos_exception_total{name='unhealth'} | 无 | Nacos config server之间健康检查异常 | -| nacos_exception_total{name='disk'} | 无 | Nacos naming写磁盘异常 | -| nacos_exception_total{name='leaderSendBeatFailed'} | 无 | Nacos naming leader发送心跳异常 | -| nacos_exception_total{name='illegalArgument'} | 无 | 请求参数不合法 | -| nacos_exception_total{name='nacos'} | 无 | Nacos请求响应内部错误异常(读写失败,没权限,参数错误) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------------------|------|--------------------------------| +| nacos_exception_total{name='db'} | 无 | 数据库异常 | +| nacos_exception_total{name='configNotify'} | 无 | Nacos config水平通知失败 | +| nacos_exception_total{name='unhealth'} | 无 | Nacos config server之间健康检查异常 | +| nacos_exception_total{name='disk'} | 无 | Nacos naming写磁盘异常 | +| nacos_exception_total{name='leaderSendBeatFailed'} | 无 | Nacos naming leader发送心跳异常 | +| nacos_exception_total{name='illegalArgument'} | 无 | 请求参数不合法 | +| nacos_exception_total{name='nacos'} | 无 | Nacos请求响应内部错误异常(读写失败,没权限,参数错误) | #### 指标集合:client -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| nacos_monitor{name='subServiceCount'} | 无 | 订阅的服务数 | -| nacos_monitor{name='pubServiceCount'} | 无 | 发布的服务数 | -| nacos_monitor{name='configListenSize'} | 无 | 监听的配置数 | -| nacos_client_request_seconds_count | 无 | 请求的次数,包括多种(url,方法,code) | -| nacos_client_request_seconds_sum | 秒 | 请求的总耗时,包括多种(url,方法,code) | - \ No newline at end of file +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------------------------|------|--------------------------| +| nacos_monitor{name='subServiceCount'} | 无 | 订阅的服务数 | +| nacos_monitor{name='pubServiceCount'} | 无 | 发布的服务数 | +| nacos_monitor{name='configListenSize'} | 无 | 监听的配置数 | +| nacos_client_request_seconds_count | 无 | 请求的次数,包括多种(url,方法,code) | +| nacos_client_request_seconds_sum | 秒 | 请求的总耗时,包括多种(url,方法,code) | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph.md index d070101da8f..9faed580e1b 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph.md @@ -14,27 +14,27 @@ keywords: [ 开源监控工具, 开源 NebulaGraph 监控工具, 监控 NebulaGr nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB 的统计信息。 ``` -### +### **1、通过 stats 和 rocksdb stats 接口获取可用参数。** 1.1、如果只需要获取 nebulaGraph_stats,需要确保可以访问 stats,否则会出现错误。 -默认端口是 19669,访问地址为 http://ip:19669/stats +默认端口是 19669,访问地址为 1.2、如果需要获取 rocksdb stats 的附加参数,需要确保可以访问 rocksdb stats,否则会报错。 首次连接 NebulaGraph 时,必须先注册 Storage 服务,以便正确查询数据。 -**有帮助文档:https://docs.nebula-graph.com.cn/3.4.3/4.deployment-and-installation/connect-to-nebula-graph/** +**有帮助文档:** -**https://docs.nebula-graph.com.cn/3.4.3/2.quick-start/3.quick-start-on-premise/3.1add-storage-hosts/** +**** -默认端口是 19779,访问地址为:http://ip:19779/rocksdb_stats +默认端口是 19779,访问地址为: ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-------------|--------------------------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️没有协议头(例如:https://、http://) | | 监控名称 | 识别此监控的名称。名称需要唯一 | @@ -51,9 +51,9 @@ nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB #### 指标集:nebulaGraph_stats 指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/1.query-performance-metrics/** +**** -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------------------------------------------------|------|--------| | 达到内存水位线的语句的数量(rate) | | | | 达到内存水位线的语句的数量(sum) | | | @@ -114,9 +114,9 @@ nebulaGraph_stats 是 NebulaGraph 的统计信息,rocksdb_stats 是 RocksDB #### 指标集:rocksdb_stats 指标太多,相关链接如下 -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/2.rocksdb-statistics/** +**** -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------------|------|------------------------| | rocksdb.backup.read.bytes | | 备份 RocksDB 数据库期间读取的字节数 | | rocksdb.backup.write.bytes | | 指标名称 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph_cluster.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph_cluster.md index 851f6dd7946..7fe8792d29d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph_cluster.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nebulagraph_cluster.md @@ -11,7 +11,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -27,7 +27,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:基础信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|---------| | responseTime | 无 | 响应时间 | | charset | 无 | 字符集 | @@ -35,21 +35,21 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Session -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------------|------|------------| | session | 无 | session的数量 | | running_query_count | 无 | 正在执行的查询的数量 | #### 指标集合:后台任务 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|--------------| | queue_jobs | 无 | 等待中的后台任务 | | running_jobs | 无 | 正在执行的后台任务的数量 | #### 指标集合:节点信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------------|------|-----------------| | total_storage_node | 无 | storage节点的数量 | | offline_storage_node | 无 | 离线的storage节点的数量 | @@ -60,7 +60,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Storage节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | @@ -72,7 +72,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Meta节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | @@ -81,7 +81,7 @@ keywords: [ 开源监控系统, 开源数据库监控, 开源图数据库监控, #### 指标集合:Graph节点 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|------|---------------------| | host | 无 | 节点地址 | | port | 无 | 端口 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nginx.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nginx.md index a509ff7da2a..50837f79394 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nginx.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/nginx.md @@ -13,143 +13,141 @@ keywords: [开源监控工具, 开源Java监控工具, 监控Nginx指标] 如果你想使用这种监控方式监控 'Nginx' 的信息,你需要修改你的 Nginx 配置文件以启用监控模块。 -### 启用 ngx_http_stub_status_module +### 启用 ngx_http_stub_status_module 1. 检查是否已添加 `ngx_http_stub_status_module` -```shell -nginx -V -``` -查看是否包含 `--with-http_stub_status_module`,如果没有则需要重新编译安装 Nginx。 + ```shell + nginx -V + ``` -2. 编译安装 Nginx, 添加 `ngx_http_stub_status_module` 模块 + 查看是否包含 `--with-http_stub_status_module`,如果没有则需要重新编译安装 Nginx。 -下载 Nginx 并解压,在目录下执行 +2. 编译安装 Nginx, 添加 `ngx_http_stub_status_module` 模块 -```shell -./configure --prefix=/usr/local/nginx --with-http_stub_status_module + 下载 Nginx 并解压,在目录下执行 -make && make install -``` + ```shell + ./configure --prefix=/usr/local/nginx --with-http_stub_status_module + + make && make install + ``` 3. 修改 Nginx 配置文件 -修改 `nginx.conf` 文件,添加监控模块暴露端点,如下配置: - -```shell -# modify nginx.conf -server { - listen 80; # port - server_name localhost; - location /nginx-status { - stub_status on; - access_log on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } -} -``` + 修改 `nginx.conf` 文件,添加监控模块暴露端点,如下配置: + + ```shell + # modify nginx.conf + server { + listen 80; # port + server_name localhost; + location /nginx-status { + stub_status on; + access_log on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } + } + ``` 4. 重新加载 Nginx -```shell -nginx -s reload -``` + ```shell + nginx -s reload + ``` 5. 在浏览器访问 `http://localhost/nginx-status` 即可查看 Nginx 监控状态信息。 -### 启用 `ngx_http_reqstat_module` +### 启用 `ngx_http_reqstat_module` 1. 安装 `ngx_http_reqstat_module` 模块 -```shell -# install `ngx_http_reqstat_module` -wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip - -unzip ngx_req_status.zip - -patch -p1 < ../ngx_req_status-master/write_filter.patch - -./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master - -make -j2 - -make install -``` + ```shell + # install `ngx_http_reqstat_module` + wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip + + unzip ngx_req_status.zip + + patch -p1 < ../ngx_req_status-master/write_filter.patch + + ./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master + + make -j2 + + make install + ``` 2. 修改 Nginx 配置文件 -修改 `nginx.conf` 文件,添加状态模块暴露端点,如下配置: - -```shell -# modify nginx.conf -http { - req_status_zone server_name $server_name 256k; - req_status_zone server_addr $server_addr 256k; - - req_status server_name server_addr; - - server { - location /req-status { - req_status_show on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts + 修改 `nginx.conf` 文件,添加状态模块暴露端点,如下配置: + + ```shell + # modify nginx.conf + http { + req_status_zone server_name $server_name 256k; + req_status_zone server_addr $server_addr 256k; + + req_status server_name server_addr; + + server { + location /req-status { + req_status_show on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } } } -} -``` + ``` 3. 重新加载 Nginx -```shell -nginx -s reload -``` + ```shell + nginx -s reload + ``` 4. 在浏览器访问 `http://localhost/req-status` 即可查看 Nginx 监控状态信息。 - -**参考文档: https://blog.csdn.net/weixin_55985097/article/details/116722309** +**参考文档: ** **⚠️注意监控模块的端点路径为 `/nginx-status` `/req-status`** ### 配置参数 -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | Nginx 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | +| 参数名 | 参数描述 | +|--------|-----------------------------------------------------| +| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | +| 监控名称 | 标识此监控的名称。名称需要唯一 | +| 端口 | Nginx 提供的端口 | +| 超时时间 | 允许收集响应时间 | +| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | +| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | +| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | ### 收集指标 #### 指标收集:nginx_status -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------------|------------| -| 接收连接数 | | 已接受的连接 | -| 处理连接数 | | 成功处理的连接 | -| 活动连接数 | | 当前活动连接 | -| 丢弃连接数 | | 丢弃的连接 | -| 请求连接数 | | 客户端请求 | -| 读连接数 | | 正在执行读操作的连接 | -| 写连接数 | | 正在执行写操作的连接 | -| 等待连接数 | | 等待连接 | +| 指标名称 | 指标单位 | 指标描述 | +|-------|------|------------| +| 接收连接数 | | 已接受的连接 | +| 处理连接数 | | 成功处理的连接 | +| 活动连接数 | | 当前活动连接 | +| 丢弃连接数 | | 丢弃的连接 | +| 请求连接数 | | 客户端请求 | +| 读连接数 | | 正在执行读操作的连接 | +| 写连接数 | | 正在执行写操作的连接 | +| 等待连接数 | | 等待连接 | #### 指标集:req_status -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|---------| -| 分组类别 | | 分组类别 | -| 分组名称 | | 分组名称 | -| 最大并发连接数 | | 最大并发连接数 | -| 最大带宽 | kb | 最大带宽 | -| 总流量 | kb | 总流量 | -| 总请求数 | | 总请求数 | -| 当前并发连接数 | | 当前并发连接数 | -| 当前带宽 | kb | 当前带宽 | - - +| 指标名称 | 指标单位 | 指标描述 | +|---------|------|---------| +| 分组类别 | | 分组类别 | +| 分组名称 | | 分组名称 | +| 最大并发连接数 | | 最大并发连接数 | +| 最大带宽 | kb | 最大带宽 | +| 总流量 | kb | 总流量 | +| 总请求数 | | 总请求数 | +| 当前并发连接数 | | 当前并发连接数 | +| 当前带宽 | kb | 当前带宽 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ntp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ntp.md index 5760321922f..0806232cee5 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ntp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ntp.md @@ -7,7 +7,7 @@ keywords: [ open source monitoring tool, open source NTP monitoring tool, monito NTP监控的中文文档如下: -# NTP监控 +## NTP监控 > 收集和监控NTP的常规性能指标。 @@ -15,7 +15,7 @@ NTP监控的中文文档如下: ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------|--------------------------------------------------| | 监控主机 | 被监控的IPv4、IPv6或域名。注意⚠️不包含协议头(例如:https://,http://) | | 监控名称 | 标识此监控的名称。名称需要是唯一的 | @@ -27,7 +27,7 @@ NTP监控的中文文档如下: #### 指标集:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|------|--------------------------| | 响应时间 | 毫秒 | NTP服务器响应请求所需的时间。 | | 时间 | 毫秒 | NTP服务器报告的当前时间。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/openai.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/openai.md index d22b1238855..a67a0c1c820 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/openai.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/openai.md @@ -8,12 +8,13 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] ### 准备工作 #### 获取会话密钥 -> 1. 打开 Chrome 浏览器的网络请求界面 + +> 1. 打开 Chrome 浏览器的网络请求界面 > `Mac: cmd + option + i` > `Windows: ctrl + shift + i` -> 2. 访问 https://platform.openai.com/usage -> 3. 找到 https://api.openai.com/dashboard/billing/usage 请求 -> 4. 找到请求头中 Authorization 字段,并复制 `Bearer ` 之后的内容。例如: `sess-123456` +> 2. 访问 +> 3. 找到 请求 +> 4. 找到请求头中 Authorization 字段,并复制 `Bearer` 之后的内容。例如: `sess-123456` ### 注意事项 @@ -22,11 +23,11 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -|:-------|---------------------------------| +| 参数名称 | 参数帮助描述 | +|:-------|---------------------------------|---| | 监控Host | 此处填写 api.openai.com 。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | -| 会话密钥 | 即准备工作中获取的会话密钥。 | | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | +| 会话密钥 | 即准备工作中获取的会话密钥。 | | | 采集器 | 配置此监控使用哪台采集器调度采集。 | | 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒。 | | 绑定标签 | 对监控资源的分类管理标签。 | @@ -36,7 +37,7 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] #### 指标集合:信用额度授予 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------|--------|---------| | 总授予额度 | 美元 ($) | 总授予额度 | | 总使用额度 | 美元 ($) | 总使用额度 | @@ -45,14 +46,14 @@ keywords: [开源监控系统, 开源网络监控, OpenAI账户监控] #### 指标集合:模型花费 -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|--------|---------| -| 模型名称 | 无 | 模型名称 | -| 花费 | 美元 ($) | 花费 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------|--------|--------| +| 模型名称 | 无 | 模型名称 | +| 花费 | 美元 ($) | 花费 | #### 指标集合:订阅计费 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|--------|--------------| | 是否有支付方式 | 无 | 是否有支付方式 | | 订阅是否已取消 | 无 | 订阅是否已取消 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opengauss.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opengauss.md index 632a7f41b2d..964fc909c33 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opengauss.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opengauss.md @@ -9,50 +9,47 @@ keywords: [开源监控系统, 开源数据库监控, OpenGauss数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | #### 指标集合:state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------------------------------------------------------------| +| name | 无 | 数据库名称,或share-object为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | #### 指标集合:activity -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opensuse.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opensuse.md index 6c3b2e9ac7e..2f1e00a9e39 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opensuse.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/opensuse.md @@ -4,114 +4,104 @@ title: 监控:OpenSUSE操作系统监控 sidebar_label: OpenSUSE操作系统 keywords: [开源监控系统, 开源操作系统监控, OpenSUSE操作系统监控] --- + > 对OpenSUSE操作系统的通用性能指标进行采集监控。 ### 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- |------------------------------------------------------| +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | | 端口 | Linux SSH对外提供的端口,默认为22。 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次获取信息都会创建一个连接 | -| 用户名 | SSH连接用户名,可选 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次获取信息都会创建一个连接 | +| 用户名 | SSH连接用户名,可选 | | 密码 | SSH连接密码,可选 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | | 密钥 | 连接服务器所需密钥 | ### 采集指标 #### 指标集合:系统基本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | ------------ | -| Host Name | 无 | 主机名称 | -| System Version | 无 | 操作系统版本 | -| Uptime | 无 | 启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| Host Name | 无 | 主机名称 | +| System Version | 无 | 操作系统版本 | +| Uptime | 无 | 启动时间 | #### 指标集合:CPU 信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- | -------- | --------------------------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:内存信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:磁盘信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------- | -------- | ------------------ | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:网卡信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------- |------|-------------| -| interface_name | 无 | 网卡名称 | -| receive_bytes | Mb | 入站数据流量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | Mb | 入站数据流量 | | transmit_bytes | Mb | 出站数据流量 | #### 指标集合:文件系统 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | -------------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | #### 指标集合:Top10 CPU进程 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| cpu_usage | % | CPU占用率 | -| mem_usage | % | 内存占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| cpu_usage | % | CPU占用率 | +| mem_usage | % | 内存占用率 | +| command | 无 | 执行命令 | #### 指标集合:Top10 内存进程 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------ | -| pid | 无 | 进程ID | -| mem_usage | % | 内存占用率 | -| cpu_usage | % | CPU占用率 | -| command | 无 | 执行命令 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| pid | 无 | 进程ID | +| mem_usage | % | 内存占用率 | +| cpu_usage | % | CPU占用率 | +| command | 无 | 执行命令 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/oracle.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/oracle.md index 49136e51c48..d6bb80eb98d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/oracle.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/oracle.md @@ -9,55 +9,55 @@ keywords: [开源监控系统, 开源数据库监控, Oracle数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1521。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为1521。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_version | 无 | 数据库版本 | -| database_type | 无 | 数据库类型 | -| hostname | 无 | 主机名称 | -| instance_name | 无 | 数据库实例名称 | -| startup_time | 无 | 数据库启动时间 | -| status | 无 | 数据库状态 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------|------|---------| +| database_version | 无 | 数据库版本 | +| database_type | 无 | 数据库类型 | +| hostname | 无 | 主机名称 | +| instance_name | 无 | 数据库实例名称 | +| startup_time | 无 | 数据库启动时间 | +| status | 无 | 数据库状态 | #### 指标集合:tablespace -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| file_id | 无 | 文件ID | -| file_name | 无 | 文件名称 | -| tablespace_name | 无 | 所属表空间名称 | -| status | 无 | 状态 | -| bytes | MB | 大小 | -| blocks | 无 | 区块数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------| +| file_id | 无 | 文件ID | +| file_name | 无 | 文件名称 | +| tablespace_name | 无 | 所属表空间名称 | +| status | 无 | 状态 | +| bytes | MB | 大小 | +| blocks | 无 | 区块数量 | #### 指标集合:user_connect -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| username | 无 | 用户名 | -| counts | 个数 | 当前连接数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| username | 无 | 用户名 | +| counts | 个数 | 当前连接数量 | #### 指标集合:performance -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per Second 每秒IO请求数量 | -| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | -| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------|------|---------------------------------------| +| qps | QPS | I/O Requests per Second 每秒IO请求数量 | +| tps | TPS | User Transaction Per Sec 每秒用户事物处理数量 | +| mbps | MBPS | I/O Megabytes per Second 每秒 I/O 兆字节数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ping.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ping.md index 7b6613f25bd..59ac237ed34 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ping.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ping.md @@ -5,32 +5,32 @@ sidebar_label: PING连通性 keywords: [开源监控系统, 开源网络监控, 网络PING监控] --- -> 对对端HOST地址进行PING操作,判断其连通性 +> 对对端HOST地址进行PING操作,判断其连通性 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Ping超时时间 | 设置PING未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | - -### 常见问题 +### 常见问题 1. 安装包部署的hertzbeat下ping连通性监控异常 - 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 -> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 -> docker安装默认启用无此问题 -> 详见 https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + 安装包安装部署的hertzbeat,对ping连通性监控不可用,但本地直接ping是可用的。 + +> 安装包部署需要配置java虚拟机root权限启动hertzbeat从而使用ICMP,若未启用root权限则是判断telnet对端7号端口是否开通 +> docker安装默认启用无此问题 +> 详见 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/plugin.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/plugin.md index e89f669886f..fea6eae1085 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/plugin.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/plugin.md @@ -1,10 +1,11 @@ --- id: plugin title: 自定义插件 -sidebar_label: 自定义插件 +sidebar_label: 自定义插件 --- ## 自定义插件 + ### 简介 当前`Hertzbeat`在使用时,主要依赖`alert`模块对用户进行通知,然后用户采取一些措施如发送请求、执行`sql`、执行`shell`脚本等。 @@ -13,13 +14,14 @@ sidebar_label: 自定义插件 目前,`HertzBeat`只在告警后设置了触发`alert`方法,如需在采集、启动程序等时机设置触发方法,请在`https://github.com/apache/hertzbeat/issues/new/choose` 提`Task`。 ### 具体使用 + 1. 拉取主分支代码 `git clone https://github.com/apache/hertzbeat.git` ,定位到`plugin`模块的 `Plugin`接口。 - ![plugin-1.png](/img/docs/help/plugin-1.png) + ![plugin-1.png](/img/docs/help/plugin-1.png) 2. 在`org.apache.hertzbeat.plugin.impl`目录下, 新建一个接口实现类,如`org.apache.hertzbeat.plugin.impl.DemoPluginImpl`,在实现类中接收`Alert`类作为参数,实现`alert`方法,逻辑由用户自定义,这里我们简单打印一下对象。 - ![plugin-2.png](/img/docs/help/plugin-2.png) + ![plugin-2.png](/img/docs/help/plugin-2.png) 3. 打包`hertzbeat-plugin`模块。 - ![plugin-3.png](/img/docs/help/plugin-3.png) + ![plugin-3.png](/img/docs/help/plugin-3.png) 4. 将打包后的`jar`包,拷贝到安装目录下的`ext-lib`目录下(若为`docker`安装则先将`ext-lib`目录挂载出来,再拷贝到该目录下) - ![plugin-4.png](/img/docs/help/plugin-4.png) + ![plugin-4.png](/img/docs/help/plugin-4.png) 5. 然后重启`HertzBeat`,即可实现自定义告警后处理策略。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pop3.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pop3.md index 8d6c2eb5548..7a55a98df3e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pop3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pop3.md @@ -24,26 +24,23 @@ keywords: [开源监控工具,开源Java监控工具,监控POP3指标] 5. 通过POP3服务器域名,端口号,qq邮箱账号以及授权码连接POP3服务器,采集监控指标 ``` - ### 配置参数 -| 参数名 | 参数描述 | -|-------------------|-----------------------------------------------------| -| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | -| 监控名称 | 标识此监控的名称。名称需要唯一 | -| 端口 | POP3 提供的端口 | -| 超时时间 | 允许收集响应时间 | -| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | -| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | -| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | +| 参数名 | 参数描述 | +|--------|-----------------------------------------------------| +| 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️不需要协议头部(例如:https://,http://) | +| 监控名称 | 标识此监控的名称。名称需要唯一 | +| 端口 | POP3 提供的端口 | +| 超时时间 | 允许收集响应时间 | +| 收集间隔时间 | 监控周期性数据收集的间隔时间,单位为秒,最小可设置的间隔时间为30秒 | +| 是否检测 | 是否在添加监控之前检测和确认监控的可用性。只有在检测成功后,添加和修改操作才会继续进行 | +| 描述备注 | 用户可以在此处注明有关标识和描述此监控的更多信息 | ### 采集指标 #### 指标集:email_status -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|------------| -| 邮件数量 | | 邮件数量 | -| 邮箱总大小 | kb | 邮箱中邮件的总大小 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------| +| 邮件数量 | | 邮件数量 | +| 邮箱总大小 | kb | 邮箱中邮件的总大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/port.md index f27314e8e40..0b73299aa53 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/port.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/port.md @@ -9,22 +9,20 @@ keywords: [开源监控系统, 开源网络监控, TCP 端口可用性监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 连接超时时间 | 端口连接的等待超时时间,单位毫秒,默认3000毫秒。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:summary -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/postgresql.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/postgresql.md index 4716d0e2e64..12485e62ffa 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/postgresql.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/postgresql.md @@ -9,50 +9,47 @@ keywords: [开源监控系统, 开源数据库监控, PostgreSQL数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为5432。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为5432。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| server_version | 无 | 数据库服务器的版本号 | -| port | 无 | 数据库服务器端暴露服务端口 | -| server_encoding | 无 | 数据库服务器端的字符集编码 | -| data_directory | 无 | 数据库存储数据盘地址 | -| max_connections | 连接数 | 数据库最大连接数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------------| +| server_version | 无 | 数据库服务器的版本号 | +| port | 无 | 数据库服务器端暴露服务端口 | +| server_encoding | 无 | 数据库服务器端的字符集编码 | +| data_directory | 无 | 数据库存储数据盘地址 | +| max_connections | 连接数 | 数据库最大连接数 | #### 指标集合:state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 数据库名称,或share-object为共享对象。 | -| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | -| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | -| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | -| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | -| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | -| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | -| stats_reset | 无 | 这些统计信息上次被重置的时间 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------------------------------------------------------------| +| name | 无 | 数据库名称,或share-object为共享对象。 | +| conflicts | 次数 | 由于与恢复冲突而在这个数据库中被取消的查询的数目 | +| deadlocks | 个数 | 在这个数据库中被检测到的死锁数 | +| blks_read | 次数 | 在这个数据库中被读取的磁盘块的数量 | +| blks_hit | 次数 | 磁盘块被发现已经在缓冲区中的次数,这样不需要一次读取(这只包括 PostgreSQL 缓冲区中的命中,而不包括在操作系统文件系统缓冲区中的命中) | +| blk_read_time | ms | 在这个数据库中后端花费在读取数据文件块的时间 | +| blk_write_time | ms | 在这个数据库中后端花费在写数据文件块的时间 | +| stats_reset | 无 | 这些统计信息上次被重置的时间 | #### 指标集合:activity -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| running | 连接数 | 当前客户端连接数 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| running | 连接数 | 当前客户端连接数 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/process.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/process.md index 91d7718e419..cd21bece380 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/process.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/process.md @@ -4,48 +4,46 @@ title: 监控:Linux 进程监控 sidebar_label: Process keywords: [开源监控系统, 操作系统进程监控, 进程监控] --- + > 对Linux系统进程基础信息进行采集监控,包括进程的 CPU使用率、内存使用率、物理内存、IO 等监控 ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| -------- | ------------------------------------------------------------------------- | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux系统的ssh端口,默认: 22 | -| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | -| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | -| 用户名 | 服务器用户名 | -| 密码 | 服务器密码 | -| 进程名称 | 需要监控的进程名称或进程部分名称 | -| 采集器 | 配置此监控使用哪台采集器调度采集 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -| 私钥 | 连接服务器所需私钥 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux系统的ssh端口,默认: 22 | +| 超时时间 | 设置连接的超时时间,单位ms毫秒,默认6000毫秒。 | +| 复用连接 | 设置SSH连接是否复用,默认为:false。为false每次回去信息都会创建一个连接 | +| 用户名 | 服务器用户名 | +| 密码 | 服务器密码 | +| 进程名称 | 需要监控的进程名称或进程部分名称 | +| 采集器 | 配置此监控使用哪台采集器调度采集 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 私钥 | 连接服务器所需私钥 | ### 采集指标 #### 指标集合:进程基本信息 - | 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| User | 无 | 用户 | -| CPU | 无 | CPU使用率 | -| MEM | 无 | 内存使用率 | -| rss | 无 | 物理内存 | -| cmd | 无 | 运行命令 | +|------|------|--------| +| PID | 无 | 进程ID | +| User | 无 | 用户 | +| CPU | 无 | CPU使用率 | +| MEM | 无 | 内存使用率 | +| rss | 无 | 物理内存 | +| cmd | 无 | 运行命令 | #### 指标集合:内存使用信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| detail | 无 | 详细监控指标 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| PID | 无 | 进程ID | +| detail | 无 | 详细监控指标 | 包含的指标: @@ -63,22 +61,20 @@ keywords: [开源监控系统, 操作系统进程监控, 进程监控] #### 指标集合:其他监控信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------ | -| PID | 无 | 进程ID | -| path | 无 | 执行路径 | -| date | 无 | 启动时间 | -| fd_count | 无 | 打开文件描述符数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|-----------| +| PID | 无 | 进程ID | +| path | 无 | 执行路径 | +| date | 无 | 启动时间 | +| fd_count | 无 | 打开文件描述符数量 | #### 指标集合:IO - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------ | -| PID | 无 | 进程ID | -| metric | 无 | 监控指标名称 | -| value | 无 | 监控指标值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------| +| PID | 无 | 进程ID | +| metric | 无 | 监控指标名称 | +| value | 无 | 监控指标值 | 包含的指标: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/prometheus.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/prometheus.md index 50d148f72a9..a9feebfe623 100755 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/prometheus.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/prometheus.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, Prometheus协议监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------------|------------------------------------------------------| | 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(例如: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -39,6 +39,3 @@ keywords: [ 开源监控系统, Prometheus协议监控 ] - 端点路径:`/actuator/prometheus` 其余设置保持默认。 - - - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pulsar.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pulsar.md index a59178686b3..f37070d8604 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pulsar.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/pulsar.md @@ -4,52 +4,48 @@ title: 监控:Pulsar监控 sidebar_label: Apache Pulsar keywords: [开源监控系统, 开源数据库监控, HbaseMaster监控] --- + > 对Pulsar的通用性能指标进行采集监控 **使用协议:HTTP** ## 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------------------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 端口 | Pulsar的webServiceProt值,默认为8080。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 绑定标签 | 用于对监控资源进行分类管理 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 端口 | Pulsar的webServiceProt值,默认为8080。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 监控周期 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 绑定标签 | 用于对监控资源进行分类管理 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:版本信息 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | ------------ | -| Version Info | 无 | 版本信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| Version Info | 无 | 版本信息 | #### 指标集合:process_start_time_seconds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- | ------------ | -| Process Start Time | 无 | 进程启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|--------| +| Process Start Time | 无 | 进程启动时间 | #### 指标集合:process_open_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------------------- | -------- | ---------------- | -| Open File Descriptors | 无 | 打开的文件描述符 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| Open File Descriptors | 无 | 打开的文件描述符 | #### 指标集合:process_max_fds - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | -------------- | -| Max File Descriptors | 无 | 最大文件描述符 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|---------| +| Max File Descriptors | 无 | 最大文件描述符 | #### 指标集合: jvm_memory_pool_allocated_bytes @@ -74,4 +70,3 @@ Broker端消息发布延迟 #### 指标集合:pulsar_metadata_store_ops_latency_ms Broker端元数据存储操作延迟 - diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rabbitmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rabbitmq.md index 8cb91eeb3e6..7e4ff6383d7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rabbitmq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rabbitmq.md @@ -5,42 +5,42 @@ sidebar_label: RabbitMQ消息中间件 keywords: [开源监控系统, 开源消息中间件监控, RabbitMQ消息中间件监控] --- -> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 +> 对 RabbitMQ 消息中间件的运行状态,节点,队列等相关指标进行监测。 -### 监控前操作 +### 监控前操作 > HertzBeat 使用 RabbitMQ Management 的 Rest Api 对 RabbitMQ 进行指标数据采集。 -> 故需要您的 RabbitMQ 环境开启 Management 插件 +> 故需要您的 RabbitMQ 环境开启 Management 插件 -1. 开启 Management 插件,或使用自开启版本 +1. 开启 Management 插件,或使用自开启版本 -```shell -rabbitmq-plugins enable rabbitmq_management -``` + ```shell + rabbitmq-plugins enable rabbitmq_management + ``` -2. 浏览器访问 http://ip:15672/ ,默认账户密码 `guest/guest`. 成功登录即开启成功。 +2. 浏览器访问 ,默认账户密码 `guest/guest`. 成功登录即开启成功。 3. 在 HertzBeat 添加对应 RabbitMQ 监控即可,参数使用 Management 的 IP 端口,默认账户密码。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -|----------|---------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | -| 用户名 | 接口Basic认证时使用的用户名 | -| 密码 | 接口Basic认证时使用的密码 | -| 超时时间 | HTTP请求查询超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | RabbitMQ Management 对外提供的HTTP端口,默认为15672。 | +| 用户名 | 接口Basic认证时使用的用户名 | +| 密码 | 接口Basic认证时使用的密码 | +| 超时时间 | HTTP请求查询超时时间 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:overview +#### 指标集合:overview -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------------|------|--------------------------| | product_version | 无 | 产品版本 | | product_name | 无 | 产品名称 | @@ -52,7 +52,7 @@ rabbitmq-plugins enable rabbitmq_management #### 指标集合:object_totals -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-----------------| | channels | 无 | channels的总数量 | | connections | 无 | connections的总数量 | @@ -62,65 +62,64 @@ rabbitmq-plugins enable rabbitmq_management #### 指标集合:nodes -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------------------|------|--------------------------------| -| name | 无 | The node name | -| type | 无 | The node type | -| running | 无 | Running state | -| os_pid | 无 | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | 无 | File descriptors available | -| fd_used | 无 | File descriptors used | -| sockets_total | 无 | Sockets available | -| sockets_used | 无 | Sockets used | -| proc_total | 无 | Erlang process limit | -| proc_used | 无 | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | 无 | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | 无 | Context_switches num | -| io_read_count | 无 | 总共读操作的数量 | -| io_read_bytes | KB | 总共读入磁盘数据大小 | -| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | -| io_write_count | 无 | 磁盘写操作总量 | -| io_write_bytes | KB | 写入磁盘数据总量 | -| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | -| io_seek_count | 无 | seek操作总量 | -| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | -| io_sync_count | 无 | fsync操作的总量 | -| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | -| connection_created | 无 | connection created num | -| connection_closed | 无 | connection closed num | -| channel_created | 无 | channel created num | -| channel_closed | 无 | channel closed num | -| queue_declared | 无 | queue declared num | -| queue_created | 无 | queue created num | -| queue_deleted | 无 | queue deleted num | -| connection_closed | 无 | connection closed num | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------|------|-------------------------------| +| name | 无 | The node name | +| type | 无 | The node type | +| running | 无 | Running state | +| os_pid | 无 | Pid in OS | +| mem_limit | MB | Memory usage high watermark | +| mem_used | MB | Total amount of memory used | +| fd_total | 无 | File descriptors available | +| fd_used | 无 | File descriptors used | +| sockets_total | 无 | Sockets available | +| sockets_used | 无 | Sockets used | +| proc_total | 无 | Erlang process limit | +| proc_used | 无 | Erlang processes used | +| disk_free_limit | GB | Free disk space low watermark | +| disk_free | GB | Free disk space | +| gc_num | 无 | GC runs | +| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | +| context_switches | 无 | Context_switches num | +| io_read_count | 无 | 总共读操作的数量 | +| io_read_bytes | KB | 总共读入磁盘数据大小 | +| io_read_avg_time | ms | 读操作平均时间,毫秒为单位 | +| io_write_count | 无 | 磁盘写操作总量 | +| io_write_bytes | KB | 写入磁盘数据总量 | +| io_write_avg_time | ms | 每个磁盘写操作的平均时间,毫秒为单位 | +| io_seek_count | 无 | seek操作总量 | +| io_seek_avg_time | ms | seek操作的平均时间,毫秒单位 | +| io_sync_count | 无 | fsync操作的总量 | +| io_sync_avg_time | ms | fsync操作的平均时间,毫秒为单位 | +| connection_created | 无 | connection created num | +| connection_closed | 无 | connection closed num | +| channel_created | 无 | channel created num | +| channel_closed | 无 | channel closed num | +| queue_declared | 无 | queue declared num | +| queue_created | 无 | queue created num | +| queue_deleted | 无 | queue deleted num | +| connection_closed | 无 | connection closed num | #### 指标集合:queues -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------------------------|------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | +| name | 无 | The name of the queue with non-ASCII characters escaped as in C. | | node | 无 | The queue on the node name | -| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | +| state | 无 | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | | type | 无 | Queue type, one of: quorum, stream, classic. | -| vhost | 无 | vhost path | +| vhost | 无 | vhost path | | auto_delete | 无 | Whether the queue will be deleted automatically when no longer used | -| policy | 无 | Effective policy name for the queue. | +| policy | 无 | Effective policy name for the queue. | | consumers | 无 | Number of consumers. | | memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | | messages_ready | 无 | Number of messages ready to be delivered to clients | -| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | +| messages_unacknowledged | 无 | Number of messages delivered to clients but not yet acknowledged | | messages | 无 | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | +| messages_ready_ram | 无 | Number of messages from messages_ready which are resident in ram | | messages_persistent | 无 | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | +| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | | message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | +| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | | message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | | message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redhat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redhat.md index 5ceb911c8d3..1c4c6b5167a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redhat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redhat.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, RedHat操作系统监 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redis.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redis.md index dd9b304e1ce..0a0c9f77a65 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redis.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/redis.md @@ -2,244 +2,238 @@ id: redis title: 监控:REDIS数据库监控 sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] +keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] --- > 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | +| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:server -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|-----------------------------------------------| +| redis_version | 无 | Redis 服务器版本 | +| redis_git_sha1 | 无 | Git SHA1 | +| redis_git_dirty | 无 | Git dirty flag | +| redis_build_id | 无 | redis 构建的id | +| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | +| os | 无 | Redis 服务器的宿主操作系统 | +| arch_bits | 无 | 架构(32 或 64 位) | +| multiplexing_api | 无 | Redis使用的事件循环机制 | +| atomicvar_api | 无 | Redis使用的原子 API | +| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本 | +| process_id | 无 | 服务器进程的PID | +| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | +| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | +| tcp_port | 无 | TCP/IP侦听端口 | +| server_time_usec | 无 | 微秒级精度的基于时间的系统时间 | +| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | +| uptime_in_days | 无 | 自Redis服务器启动后的天数 | +| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | +| configured_hz | 无 | 服务器配置的频率设置 | +| lru_clock | 无 | 时钟每分钟递增,用于LRU管理 | +| executable | 无 | 服务器可执行文件的路径 | +| config_file | 无 | 配置文件的路径 | +| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志 | +| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。 | #### 指标集合:clients -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|--------------------------------------------------------------------------------| +| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | +| cluster_connections | 无 | 群集总线使用的套接字数量的近似值 | +| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。 | +| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | +| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | +| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | +| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING) | +| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | #### 指标集合:memory -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|----------|-----------------------------------------------------------------------------------------------| +| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | +| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | +| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字 | +| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak | byte | Redis消耗的峰值内存(字节) | +| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | +| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和 | +| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节) | +| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | +| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | +| allocator_allocated | byte | 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同 | +| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片 | +| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | +| total_system_memory | byte | Redis主机的内存总量 | +| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_lua | byte | Lua引擎使用的字节数 | +| used_memory_lua_human | KB | 上一个值的人类可读值 | +| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | +| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | +| number_of_cached_scripts | 无 | 缓存的lua脚本数量 | +| maxmemory | byte | maxmemory配置指令的值 | +| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | +| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | +| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | +| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | +| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | +| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | +| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | +| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | +| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | +| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | +| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。 | +| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | +| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | +| mem_clients_normal | 无 | 普通客户端使用的内存 | +| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | +| mem_allocator | 无 | 内存分配器,在编译时选择。 | +| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | +| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL) | +| lazyfreed_objects | 无 | 已延迟释放的对象数。 | #### 指标集合:persistence -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|--------|-----------------------------------------------------------------------------------------------------| +| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是 | +| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | +| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | +| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比 | +| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | +| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | +| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | +| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | +| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | +| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功 | +| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | +| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | +| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | +| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | +| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite | +| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | +| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | +| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | +| aof_last_write_status | 无 | 上次aof写入状态 | +| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | +| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | #### 指标集合:stats -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|----------------------------------------------------| +| total_connections_received | 无 | 服务器接受的连接总数 | +| total_commands_processed | 无 | 服务器处理的命令总数 | +| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | +| total_net_input_bytes | byte | 从网络读取的字节总数 | +| total_net_output_bytes | byte | 写入网络的总字节数 | +| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | +| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | +| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数 | +| sync_full | 无 | 具有副本的完整重新同步数 | +| sync_partial_ok | 无 | 接受的部分重新同步请求数 | +| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | +| expired_keys | 无 | 过期的key总数 | +| expired_stale_perc | 无 | 可能过期key的百分比 | +| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | +| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | +| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | +| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | +| keyspace_misses | 无 | 在主dict 中未查到key的次数 | +| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | +| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | +| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | +| total_forks | 无 | 自服务器启动以来的fork操作总数 | +| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | +| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | +| active_defrag_hits | 无 | 主动碎片整理命中次数 | +| active_defrag_misses | 无 | 主动碎片整理未命中次数 | +| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | +| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数 | +| tracking_total_keys | 无 | key 查询的总数 | +| tracking_total_items | 无 | item查询的总数 | +| tracking_total_prefixes | 无 | 前缀查询的总数 | +| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | +| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | +| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | +| total_reads_processed | 无 | 正在读取的请求数 | +| total_writes_processed | 无 | 正在写入的请求数 | +| io_threaded_reads_processed | 无 | 正在读取的线程数 | +| io_threaded_writes_processed | 无 | 正在写入的线程数 | #### 指标集合:replication -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-------------------------------------------------------------------------------------| +| role | 无 | 节点角色 master 主节点 slave 从节点 | +| connected_slaves | 无 | 连接的从节点数 | +| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | +| master_replid | 无 | 实例启动的随机字符串 | +| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID | +| master_repl_offset | 无 | 主从同步偏移量 | +| second_repl_offset | 无 | 接受从服务ID的最大偏移量 | +| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | +| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | +| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | +| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|------------------------| +| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和 | +| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和 | +| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU | +| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | #### 指标集合:errorstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|-----------| +| errorstat_ERR | 无 | 错误累计出现的次数 | +| errorstat_MISCONF | 无 | | #### 指标集合:cluster -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|--------------------| +| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是 | #### 指标集合:commandstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|---------------------------------------------------------------------------------------------------------------------------| +| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数 | +| cmdstat_get | 无 | get命令的统计信息 | +| cmdstat_setnx | 无 | setnx命令的统计信息 | +| cmdstat_hset | 无 | hset命令的统计信息 | +| cmdstat_hget | 无 | hget命令的统计信息 | +| cmdstat_lpush | 无 | lpush命令的统计信息 | +| cmdstat_rpush | 无 | rpush命令的统计信息 | +| cmdstat_lpop | 无 | lpop命令的统计信息 | +| cmdstat_rpop | 无 | rpop命令的统计信息 | +| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rocketmq.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rocketmq.md index f12a43628ac..65ca5d96613 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rocketmq.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rocketmq.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |-----------|------------------------------------------------| | 注册中心Host | RocketMQ注册中心的IPV4,IPV6(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -24,7 +24,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 #### 指标集合:集群 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------------------|------|------------| | BrokerId | 无 | Broker唯一ID | | Address | 无 | Broker地址 | @@ -38,7 +38,7 @@ keywords: [ 开源监控系统, 开源中间件监控, RocketMQ消息中间件 #### 指标集合:消费者 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------------|------|--------| | Consumer_group | 无 | 消费者组 | | Client_quantity | 无 | 客户端数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rockylinux.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rockylinux.md index 0cf541702bc..35dcfae06ef 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rockylinux.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/rockylinux.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -28,7 +28,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:系统基本信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | Host Name | 无 | 主机名称 | | System Version | 无 | 操作系统版本 | @@ -36,7 +36,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:CPU 信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------------------| | info | 无 | CPU型号 | | cores | 无 | CPU内核数量 | @@ -47,7 +47,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:内存信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|----------| | total | Mb | 总内存容量 | | used | Mb | 用户程序内存量 | @@ -58,7 +58,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:磁盘信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|-----------| | disk_num | 无 | 磁盘总数 | | partition_num | 无 | 分区总数 | @@ -68,7 +68,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:网卡信息 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |----------------|------|--------| | interface_name | 无 | 网卡名称 | | receive_bytes | Mb | 入站数据流量 | @@ -76,7 +76,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 #### 指标集合:文件系统 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------------|------|---------| | filesystem | 无 | 文件系统的名称 | | used | Mb | 已使用磁盘大小 | @@ -88,7 +88,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 统计进程使用CPU的Top10进程。统计信息包括:进程ID、CPU占用率、内存占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | cpu_usage | % | CPU占用率 | @@ -99,7 +99,7 @@ keywords: [ 开源监控系统, 开源操作系统监控, Rocky Linux操作系 统计进程使用内存的Top10进程。统计信息包括:进程ID、内存占用率、CPU占用率、执行命令。 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-----------|------|--------| | pid | 无 | 进程ID | | mem_usage | % | 内存占用率 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/shenyu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/shenyu.md index 08788efeaae..40710bb3986 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/shenyu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/shenyu.md @@ -5,45 +5,45 @@ sidebar_label: ShenYu网关监控 keywords: [开源监控系统, 开源消息中间件监控, ShenYu网关监控监控] --- -> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 +> 对 ShenYu 网关的运行状态(JVM相关),请求响应等相关指标进行监测。 -## 监控前操作 +## 监控前操作 -您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 +您需要在 ShenYu 网关开启`metrics`插件,暴露对应的 prometheus metrics 接口。 -开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) +开启插件, 参考 [官方文档](https://shenyu.apache.org/zh/docs/plugin-center/observability/metrics-plugin) -主要如下两步骤: +主要如下两步骤: 1. 在网关的 pom.xml 文件中添加 metrics 的依赖。 -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` + ```xml + + org.apache.shenyu + shenyu-spring-boot-starter-plugin-metrics + ${project.version} + + ``` 2. 在网关的配置yaml文件中编辑如下内容: -```yaml -shenyu: - metrics: - enabled: true #设置为 true 表示开启 - name : prometheus - host: 127.0.0.1 #暴露的ip - port: 8090 #暴露的端口 - jmxConfig: #jmx配置 - props: - jvm_enabled: true #开启jvm的监控指标 -``` + ```yaml + shenyu: + metrics: + enabled: true #设置为 true 表示开启 + name : prometheus + host: 127.0.0.1 #暴露的ip + port: 8090 #暴露的端口 + jmxConfig: #jmx配置 + props: + jvm_enabled: true #开启jvm的监控指标 + ``` -最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 +最后重启访问网关指标接口 `http://ip:8090` 响应 prometheus 格式数据即可。 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -53,79 +53,77 @@ shenyu: | 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | | 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:shenyu_request_total +#### 指标集合:shenyu_request_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------------| -| value | 无 | 收集ShenYu网关的所有请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | 收集ShenYu网关的所有请求数量 | #### 指标集合:shenyu_request_throw_created -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------------| -| value | 无 | 收集ShenYu网关的异常请求数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | 收集ShenYu网关的异常请求数量 | #### 指标集合:process_cpu_seconds_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| value | 无 | 用户和系统CPU总计所用的秒数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| value | 无 | 用户和系统CPU总计所用的秒数 | #### 指标集合:process_open_fds -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|--------------| -| value | 无 | 打开的文件描述符的数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------| +| value | 无 | 打开的文件描述符的数量 | #### 指标集合:process_max_fds -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------------| -| value | 无 | 打开的文件描述符的最大数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------| +| value | 无 | 打开的文件描述符的最大数量 | #### 指标集合:jvm_info -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-----------| -| runtime | 无 | JVM 版本信息 | -| vendor | 无 | JVM 版本信息 | -| version | 无 | JVM 版本信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------|------|----------| +| runtime | 无 | JVM 版本信息 | +| vendor | 无 | JVM 版本信息 | +| version | 无 | JVM 版本信息 | #### 指标集合:jvm_memory_bytes_used -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| area | 无 | JVM 内存区域 | -| value | MB | 给定 JVM 内存区域的已用大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| +| area | 无 | JVM 内存区域 | +| value | MB | 给定 JVM 内存区域的已用大小 | #### 指标集合:jvm_memory_pool_bytes_used -| 指标名称 | 指标单位 | 指标帮助描述 | -|--------|------|-----------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已用大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的已用大小 | #### 指标集合:jvm_memory_pool_bytes_committed -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|------------------| -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的已提交大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的已提交大小 | #### 指标集合:jvm_memory_pool_bytes_max -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------| ----------- | -| pool | 无 | JVM 内存池 | -| value | MB | 给定 JVM 内存池的最大大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| pool | 无 | JVM 内存池 | +| value | MB | 给定 JVM 内存池的最大大小 | #### 指标集合:jvm_threads_state -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|-------------| -| state | 无 | 线程状态 | -| value | 无 | 对应线程状态的线程数量 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------| +| state | 无 | 线程状态 | +| value | 无 | 对应线程状态的线程数量 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/smtp.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/smtp.md index 21dcd9a88f3..73e9af9ee13 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/smtp.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/smtp.md @@ -11,14 +11,13 @@ keywords: [ open source monitoring tool, open source SMTP monitoring tool, monit 通过 SMTP 的 hello 命令确定服务器是否可用 ``` -> 详见 https://datatracker.ietf.org/doc/html/rfc821#page-13 - +> 详见 **协议使用:SMTP** ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |---------|---------------------------------------------------| | 监控主机 | 被监控的 IPV4、IPV6 或域名。注意⚠️无需协议头(例如:https://、http://) | | 监控名称 | 标识此监控的名称。名称需要保持唯一 | @@ -33,7 +32,7 @@ keywords: [ open source monitoring tool, open source SMTP monitoring tool, monit #### 指标集:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |-------------|------|-------------------| | 响应时间 | 毫秒 | SMTP 服务器响应请求所需的时间 | | 响应状态 | | 响应状态 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/spring_gateway.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/spring_gateway.md index 086e0a63ac8..aaba0dd9841 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/spring_gateway.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/spring_gateway.md @@ -19,6 +19,7 @@ keywords: [开源监控工具, 开源 Spring Gateway 监控工具, 监控 Spring spring-boot-starter-actuator ``` + **2. 修改 YML 配置以暴露度量接口:** ```yaml @@ -35,56 +36,54 @@ management: ### 配置参数 -| 参数名称 | 参数描述 | -| ----------- |--------------------------------------------------------| -| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | -| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | -| 端口 | 数据库提供的默认端口为 8080。 | +| 参数名称 | 参数描述 | +|----------|--------------------------------------------------------|-----------------------------------------------| +| 监控主机 | 被监控的目标 IPV4、IPV6 或域名。注意⚠️不要包含协议头(例如:https://,http://)。 | +| 监控名称 | 用于标识此监控的名称,需要保证唯一性。 | +| 端口 | 数据库提供的默认端口为 8080。 | | 启用 HTTPS | 是否通过 HTTPS 访问网站,请注意⚠️当启用 HTTPS 时,需要将默认端口更改为 443 | -| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | -| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | will continue only if the probe is successful -| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | +| 采集间隔 | 监控周期性采集数据的时间间隔,单位为秒,最小间隔为 30 秒。 | +| 是否探测 | 在新增监控前是否先进行可用性探测,只有探测成功才会继续新增或修改操作。 | will continue only if the probe is successful | +| 描述备注 | 用于添加关于监控的额外标识和描述信息。 | ### 采集指标 #### 指标收集: 健康状态 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|--------------------------| -| 服务状态 | 无 | 服务健康状态: UP(正常),Down(异常) | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|-------------------------| +| 服务状态 | 无 | 服务健康状态: UP(正常),Down(异常) | #### 指标收集: 环境信息 -| 指标名称 | 指标单位 | 指标描述 | -|---------|-------|----------------------------------------------| -| profile | 无 | 应用程序运行的配置环境: prod(生产环境),dev(开发环境),test(测试环境) | -| 端口号 | 无 | 应用程序暴露的端口 | -| 操作系统 | 无 | 运行操作系统 | -| 操作系统架构 | 无 | 运行操作系统的架构 | -| JDK供应商 | 无 | JDK 供应商 | -| JVM版本 | 无 | JVM 版本 | +| 指标名称 | 指标单位 | 指标描述 | +|---------|------|----------------------------------------------| +| profile | 无 | 应用程序运行的配置环境: prod(生产环境),dev(开发环境),test(测试环境) | +| 端口号 | 无 | 应用程序暴露的端口 | +| 操作系统 | 无 | 运行操作系统 | +| 操作系统架构 | 无 | 运行操作系统的架构 | +| JDK供应商 | 无 | JDK 供应商 | +| JVM版本 | 无 | JVM 版本 | #### 指标收集: 线程信息 -| 指标名称 | 指标单位 | 指标描述 | -|-------------|------------|-------------| -| 状态 | 无 | 线程状态 | -| 数量 | 无 | 线程状态对应的线程数量 | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|-------------| +| 状态 | 无 | 线程状态 | +| 数量 | 无 | 线程状态对应的线程数量 | #### 指标收集: 内存使用情况 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|-------------| -| 内存空间 | 无 | 内存空间名称 | -| 内存占用 | MB | 此空间占用的内存大小 | +| 指标名称 | 指标单位 | 指标描述 | +|------|------|------------| +| 内存空间 | 无 | 内存空间名称 | +| 内存占用 | MB | 此空间占用的内存大小 | #### 指标收集: 路由信息 -| 指标名称 | 指标单位 | 指标描述 | -|-------|-------|----------| -| 路由id | 无 | 路由 ID | -| 匹配规则 | 无 | 路由匹配规则 | -| 资源标识符 | 无 | 服务资源标识符 | -| 优先级 | 无 | 此路由的优先级 | - - +| 指标名称 | 指标单位 | 指标描述 | +|-------|------|---------| +| 路由id | 无 | 路由 ID | +| 匹配规则 | 无 | 路由匹配规则 | +| 资源标识符 | 无 | 服务资源标识符 | +| 优先级 | 无 | 此路由的优先级 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot2.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot2.md index 280c6cb6b06..d39b67d3efd 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot2.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot2.md @@ -7,7 +7,6 @@ keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控 > 对SpringBoot2.0 actuator 暴露的通用性能指标进行采集监控。 - ## 监控前操作 如果想要通过此监控类型监控 `SpringBoot` 中的信息,则需要您的SpringBoot应用集成并开启SpringBoot Actuator。 @@ -20,6 +19,7 @@ keywords: [开源监控系统, 开源消息中间件监控, SpringBoot2.0 监控 spring-boot-starter-actuator ``` + **2、修改YML配置暴露指标接口:** ```yaml @@ -30,7 +30,9 @@ management: include: '*' enabled-by-default: on ``` + *注意:如果你的项目里还引入了认证相关的依赖,比如springboot-security,那么SpringBoot Actuator暴露出的接口可能会被拦截,此时需要你手动放开这些接口,以springboot-security为例,需要在SecurityConfig配置类中加入以下代码:* + ```java public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override @@ -46,48 +48,49 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ } } ``` + ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ |------------------------------------------------------| -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 应用服务对外提供的端口,默认为8080。 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 应用服务对外提供的端口,默认为8080。 | | 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | | Base Path | 暴露接口路径前缀,默认 /actuator | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:health -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------ | -------- |--------------------------------| -| status | 无 | 服务健康状态: UP,Down | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|-----------------| +| status | 无 | 服务健康状态: UP,Down | #### 指标集合:environment -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------| -------- |----------------------------| -| profile | 无 | 应用运行profile: prod,dev,test | -| port | 无 | 应用暴露端口 | -| os | 无 | 运行所在操作系统 | -| os_arch | 无 | 运行所在操作系统架构 | -| jdk_vendor | 无 | jdk vendor | -| jvm_version | 无 | jvm version | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|----------------------------| +| profile | 无 | 应用运行profile: prod,dev,test | +| port | 无 | 应用暴露端口 | +| os | 无 | 运行所在操作系统 | +| os_arch | 无 | 运行所在操作系统架构 | +| jdk_vendor | 无 | jdk vendor | +| jvm_version | 无 | jvm version | #### 指标集合:threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------------- |------|--------------------| -| state | 无 | 线程状态 | -| number | 无 | 此线程状态对应的线程数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------|------|--------------| +| state | 无 | 线程状态 | +| number | 无 | 此线程状态对应的线程数量 | #### 指标集合:memory_used -| 指标名称 | 指标单位 | 指标帮助描述 | -|---------|------|------------| -| space | 无 | 内存空间名称 | -| mem_used | MB | 此空间占用内存大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|-----------| +| space | 无 | 内存空间名称 | +| mem_used | MB | 此空间占用内存大小 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot3.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot3.md index 384f9249d16..58f1942cf0d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot3.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/springboot3.md @@ -51,7 +51,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |--------|------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -65,23 +65,27 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### 采集指标 #### 指标集合:可用性 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |--------------|------|--------| | responseTime | ms | 响应时间 | #### 指标集合:线程 -| 指标名称 | 指标单位 | 指标帮助描述 | -|-------|------|--------------------| -| state | 无 | 线程状态 | -| size | 无 | 此线程状态对应的线程数量 | + +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------| +| state | 无 | 线程状态 | +| size | 无 | 此线程状态对应的线程数量 | #### 指标集合:内存使用 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |----------|------|-----------| | space | 无 | 内存空间名称 | | mem_used | MB | 此空间占用内存大小 | #### 指标集合:健康状态 -| 指标名称 | 指标单位 | 指标帮助描述 | + +| 指标名称 | 指标单位 | 指标帮助描述 | |--------|------|-----------------| -| status | 无 | 服务健康状态: UP,Down | \ No newline at end of file +| status | 无 | 服务健康状态: UP,Down | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md index 5dc66e27cfc..847a7775adc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md @@ -9,68 +9,68 @@ keywords: [开源监控系统, 开源数据库监控, SqlServer数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 数据库对外提供的端口,默认为1433。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 数据库对外提供的端口,默认为1433。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| URL | 数据库连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | -| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | -| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | -| edition | 无 | 已安装的 实例的产品SQL Server版本 | -| start_time | 无 | 数据库启动时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------------------------------------------------| +| machine_name | 无 | 运行服务器实例的 Windows 计算机名称 | +| server_name | 无 | 与Windows实例关联的服务器和实例信息SQL Server | +| version | 无 | 实例的版本,SQL Server,格式为"major.minor.build.revision" | +| edition | 无 | 已安装的 实例的产品SQL Server版本 | +| start_time | 无 | 数据库启动时间 | #### 指标集合:performance_counters -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | -| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | -| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | -| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | -| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | -| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------|------|-------------------------------------------------------------------------------------| +| database_pages | 无 | Database pages, 已获得的页面数(缓冲池) | +| target_pages | 无 | Target pages, 缓冲池必须的理想页面数 | +| page_life_expectancy | s,秒 | Page life expectancy, 数据页在缓冲池中驻留的时间,这个时间一般会大于 300 | +| buffer_cache_hit_ratio | % | Buffer cache hit ratio, 数据库缓冲池高速缓冲命中率,被请求的数据在缓冲池中被找到的概率,一般会大于 80% 才算正常,否则可能是缓冲池容量太小 | +| checkpoint_pages_sec | 无 | Checkpoint pages/sec, 检查点每秒写入磁盘的脏页个数,如果数据过高,证明缺少内存容量 | +| page_reads_sec | 无 | Page reads/sec, 缓存池中每秒读的页数 | +| page_writes_sec | 无 | Page writes/sec, 缓存池中每秒写的页数 | #### 指标集合:connection -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| user_connection | 无 | 已连接的会话数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|---------| +| user_connection | 无 | 已连接的会话数 | +### 常见问题 -### 常见问题 +1. SSL连接问题修复 -1. SSL连接问题修复 +jdk版本:jdk11 +问题描述:SQL Server2019使用SA用户连接报错 +错误信息: -jdk版本:jdk11 -问题描述:SQL Server2019使用SA用户连接报错 -错误信息: ```text The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxx ``` + 问题截图: ![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) 解决方案: -添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 +添加`SqlServer`监控时使用高级设置,自定义JDBC URL,拼接的jdbc url后面加上参数配置,```;encrypt=true;trustServerCertificate=true;```这个参数true表示无条件信任server端返回的任何根证书。 -样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` +样例:```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` -参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) +参考文档:[microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building-failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ssl_cert.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ssl_cert.md index d5f23f56ff6..e15de6e3e97 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ssl_cert.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ssl_cert.md @@ -5,29 +5,29 @@ sidebar_label: SSL证书监控 keywords: [开源监控系统, 开源网站监控, SSL证书监控监控] --- -> 对网站的SSL证书过期时间,响应时间等指标进行监测 +> 对网站的SSL证书过期时间,响应时间等指标进行监测 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:certificate +#### 指标集合:certificate -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- |------|----------| -| subject | 无 | 证书名称 | -| expired | 无 | 是否过期 | -| start_time | 无 | 有效期开始时间 | -| start_timestamp | ms毫秒 | 有效期开始时间戳 | -| end_time | 无 | 过期时间 | -| end_timestamp | ms毫秒 | 过期时间戳 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|----------| +| subject | 无 | 证书名称 | +| expired | 无 | 是否过期 | +| start_time | 无 | 有效期开始时间 | +| start_timestamp | ms毫秒 | 有效期开始时间戳 | +| end_time | 无 | 过期时间 | +| end_timestamp | ms毫秒 | 过期时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tidb.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tidb.md index bc5db826027..b0ea82505ca 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tidb.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tidb.md @@ -9,21 +9,21 @@ keywords: [开源监控系统, 开源数据库监控, TiDB数据库监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| Service端口 | TiDB数据库对外提供用于状态报告的端口,默认为10080。 | -| PD端口 | TiDB数据库的PD端口,默认为2379。 | -| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | -| JDBC端口 | TiDB数据库对外提供用于客户端请求的端口,默认为4000。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| JDBC URL | 数据库使用[JDBC驱动的](https://docs.pingcap.com/zh/tidb/stable/dev-guide-connect-to-tidb#jdbc)连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|-----------|------------------------------------------------------------------------------------------------------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| Service端口 | TiDB数据库对外提供用于状态报告的端口,默认为10080。 | +| PD端口 | TiDB数据库的PD端口,默认为2379。 | +| 查询超时时间 | 设置SQL查询未响应数据时的超时时间,单位ms毫秒,默认6000毫秒。 | +| JDBC端口 | TiDB数据库对外提供用于客户端请求的端口,默认为4000。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| JDBC URL | 数据库使用[JDBC驱动的](https://docs.pingcap.com/zh/tidb/stable/dev-guide-connect-to-tidb#jdbc)连接URL,可选,若配置,则URL里面的数据库名称,用户名密码等参数会覆盖上面配置的参数 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 @@ -35,15 +35,12 @@ keywords: [开源监控系统, 开源数据库监控, TiDB数据库监控] #### 指标集合:系统变量 -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| version | 无 | MySQL 的版本和 TiDB 的版本,例如 '8.0.11-TiDB-v7.5.1' | -| version_comment | 无 | TiDB 版本号的其他信息,例如 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible' | -| version_compile_machine | 无 | 运行 TiDB 的 CPU 架构的名称 | -| version_compile_os | 无 | TiDB 所在操作系统的名称 | -| max_connections | 无 | 该变量表示 TiDB 中同时允许的最大客户端连接数,用于资源控制。默认情况下,该变量值为 0 表示不限制客户端连接数。当本变量的值大于 0 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。 | -| datadir | 无 | 数据存储的位置,位置可以是本地路径 /tmp/tidb。如果数据存储在 TiKV 上,则可以是指向 PD 服务器的路径。变量值的格式为 ${pd-ip}:${pd-port},表示 TiDB 在启动时连接到的 PD 服务器。 | -| port | 无 | 使用 MySQL 协议时 tidb-server 监听的端口。 | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|------------------------------------------------------------------------------------------------------------------| +| version | 无 | MySQL 的版本和 TiDB 的版本,例如 '8.0.11-TiDB-v7.5.1' | +| version_comment | 无 | TiDB 版本号的其他信息,例如 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible' | +| version_compile_machine | 无 | 运行 TiDB 的 CPU 架构的名称 | +| version_compile_os | 无 | TiDB 所在操作系统的名称 | +| max_connections | 无 | 该变量表示 TiDB 中同时允许的最大客户端连接数,用于资源控制。默认情况下,该变量值为 0 表示不限制客户端连接数。当本变量的值大于 0 且客户端连接数到达此值时,TiDB 服务端将会拒绝新的客户端连接。 | +| datadir | 无 | 数据存储的位置,位置可以是本地路径 /tmp/tidb。如果数据存储在 TiKV 上,则可以是指向 PD 服务器的路径。变量值的格式为 ${pd-ip}:${pd-port},表示 TiDB 在启动时连接到的 PD 服务器。 | +| port | 无 | 使用 MySQL 协议时 tidb-server 监听的端口。 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/time_expression.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/time_expression.md index f03ebfab25e..4c3bd7b3e76 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/time_expression.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/time_expression.md @@ -11,7 +11,7 @@ HertzBeat支持使用表达式计算监控采集时的相对时间,支持更 ### 语法 -``` +```shell ${FORMATTER [{ + | - } ]} ``` @@ -23,7 +23,7 @@ ${FORMATTER [{ + | - } ]} > 示例输出以当前时间为 `2022-04-24 02:40:00.123` -| 名称 | 描述 | 示例 | +| 名称 | 描述 | 示例 | |--------------|----------------------------|---------------------| | @now | 格式化为 `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | | @date | 格式化为 `yyyy-MM-dd` | 2022-04-24 | @@ -42,9 +42,9 @@ ${FORMATTER [{ + | - } ]} | 名称 | 描述 | |----|----| -| y | 年 | +| y | 年 | | M | 月 | -| d | 日 | +| d | 日 | | H | 小时 | | m | 分钟 | | s | 秒 | @@ -57,10 +57,8 @@ ${FORMATTER [{ + | - } ]} #### 使用示例 1. 简单表达式 - - `${now}` 获取当前时间,并格式化为 `yyyy-MM-dd HH:mm:ss` - - `${time+1h}` 计算当前时间一小时之后的时间,并格式化为 `HH:mm:ss` - - `${time+1h+15s+30s}` 计算当前时间一小时15分钟30秒之后的时间,并格式化为 `HH:mm:ss` + - `${now}` 获取当前时间,并格式化为 `yyyy-MM-dd HH:mm:ss` + - `${time+1h}` 计算当前时间一小时之后的时间,并格式化为 `HH:mm:ss` + - `${time+1h+15s+30s}` 计算当前时间一小时15分钟30秒之后的时间,并格式化为 `HH:mm:ss` 2. 复杂表达式模板(如果内置的格式化器无法满足需要,可以组合使用多个表达式) - - `${@year}年${@month}月${@day}日`,获取当前日期并按照 yyyy年MM月dd日格式返回 - - + - `${@year}年${@month}月${@day}日`,获取当前日期并按照 yyyy年MM月dd日格式返回 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tomcat.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tomcat.md index c306bebc550..e1f112777f7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tomcat.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/tomcat.md @@ -11,67 +11,65 @@ keywords: [开源监控系统, 开源网站监控, Tomcat监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | JMX连接用户名 | -| 密码 | JMX连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 查询超时时间 | 设置Tomcat连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | JMX连接用户名 | +| 密码 | JMX连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 - #### 指标集合:memory_pool -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 指标名称 | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| name | 无 | 指标名称 | +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:code_cache -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| committed | kb | 总量 | -| init | kb | 初始化大小 | -| max | kb | 最大 | -| used | kb | 已使用 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| committed | kb | 总量 | +| init | kb | 初始化大小 | +| max | kb | 最大 | +| used | kb | 已使用 | #### 指标集合:class_loading -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| LoadedClassCount | 个 | 已加载类数量 | -| TotalLoadedClassCount | 个 | 历史已加载类总量 | -| UnloadedClassCount | 个 | 未加载类数量 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|----------| +| LoadedClassCount | 个 | 已加载类数量 | +| TotalLoadedClassCount | 个 | 历史已加载类总量 | +| UnloadedClassCount | 个 | 未加载类数量 | #### 指标集合:thread -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | 个 | 已经开始的线程数量 | -| ThreadCount | 个 | 线程数 | -| PeakThreadCount | 个 | 未加载类数量 | -| DaemonThreadCount | 个 | 守护进程数 | -| CurrentThreadUserTime | ms | 使用时间 | -| CurrentThreadCpuTime | ms | 使用CPU时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------|------|-----------| +| TotalStartedThreadCount | 个 | 已经开始的线程数量 | +| ThreadCount | 个 | 线程数 | +| PeakThreadCount | 个 | 未加载类数量 | +| DaemonThreadCount | 个 | 守护进程数 | +| CurrentThreadUserTime | ms | 使用时间 | +| CurrentThreadCpuTime | ms | 使用CPU时间 | ### Tomcat开启JMX协议步骤 -1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 +1. 搭建好tomcat后,进入tomcat下的bin目录,修改catalina.sh文件 注意⚠️替换IP地址 -2. vim catalina.sh +2. vim catalina.sh ```aidl CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" ``` -参考: https://blog.csdn.net/weixin_41924764/article/details/108694239 +参考: diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ubuntu.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ubuntu.md index e5d1be3a140..4425f1c2c06 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ubuntu.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/ubuntu.md @@ -9,74 +9,73 @@ keywords: [开源监控系统, 开源操作系统监控, Ubuntu监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Linux SSH对外提供的端口,默认为22。 | -| 用户名 | SSH连接用户名,可选 | -| 密码 | SSH连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Linux SSH对外提供的端口,默认为22。 | +| 用户名 | SSH连接用户名,可选 | +| 密码 | SSH连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:basic -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| hostname | 无 | 主机名称 | -| version | 无 | 操作系统版本 | -| uptime | 无 | 系统运行时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------|------|--------| +| hostname | 无 | 主机名称 | +| version | 无 | 操作系统版本 | +| uptime | 无 | 系统运行时间 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| info | 无 | CPU型号 | -| cores | 核数 | CPU内核数量 | -| interrupt | 个数 | CPU中断数量 | -| load | 无 | CPU最近1/5/15分钟的平均负载 | -| context_switch | 个数 | 当前上下文切换数量 | -| usage | % | CPU使用率 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|--------------------| +| info | 无 | CPU型号 | +| cores | 核数 | CPU内核数量 | +| interrupt | 个数 | CPU中断数量 | +| load | 无 | CPU最近1/5/15分钟的平均负载 | +| context_switch | 个数 | 当前上下文切换数量 | +| usage | % | CPU使用率 | #### 指标集合:memory -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total | Mb | 总内存容量 | -| used | Mb | 用户程序内存量 | -| free | Mb | 空闲内存容量 | -| buff_cache | Mb | 缓存占用内存 | -| available | Mb | 剩余可用内存容量 | -| usage | % | 内存使用率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|----------| +| total | Mb | 总内存容量 | +| used | Mb | 用户程序内存量 | +| free | Mb | 空闲内存容量 | +| buff_cache | Mb | 缓存占用内存 | +| available | Mb | 剩余可用内存容量 | +| usage | % | 内存使用率 | #### 指标集合:disk -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| disk_num | 块数 | 磁盘总数 | -| partition_num | 分区数 | 分区总数 | -| block_write | 块数 | 写入磁盘的总块数 | -| block_read | 块数 | 从磁盘读出的块数 | -| write_rate | iops | 每秒写磁盘块的速率 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|-----------| +| disk_num | 块数 | 磁盘总数 | +| partition_num | 分区数 | 分区总数 | +| block_write | 块数 | 写入磁盘的总块数 | +| block_read | 块数 | 从磁盘读出的块数 | +| write_rate | iops | 每秒写磁盘块的速率 | #### 指标集合:interface -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| interface_name | 无 | 网卡名称 | -| receive_bytes | byte | 入站数据流量(bytes) | -| transmit_bytes | byte | 出站数据流量(bytes) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------|------|---------------| +| interface_name | 无 | 网卡名称 | +| receive_bytes | byte | 入站数据流量(bytes) | +| transmit_bytes | byte | 出站数据流量(bytes) | #### 指标集合:disk_free -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| filesystem | 无 | 文件系统的名称 | -| used | Mb | 已使用磁盘大小 | -| available | Mb | 可用磁盘大小 | -| usage | % | 使用率 | -| mounted | 无 | 挂载点目录 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|---------| +| filesystem | 无 | 文件系统的名称 | +| used | Mb | 已使用磁盘大小 | +| available | Mb | 可用磁盘大小 | +| usage | % | 使用率 | +| mounted | 无 | 挂载点目录 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/udp_port.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/udp_port.md index 06c11717b25..dde32b91e4d 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/udp_port.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/udp_port.md @@ -10,7 +10,7 @@ keywords: [开源监控系统, 开源网络监控, UDP 端口可用性监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |:-------|--------------------------------------------------------| | 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头 (例如: https://, http://) 。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -26,6 +26,6 @@ keywords: [开源监控系统, 开源网络监控, UDP 端口可用性监控] #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |------|---------|--------| | 响应时间 | 毫秒 (ms) | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/website.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/website.md index ee8921e316b..7403f255aec 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/website.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/website.md @@ -5,26 +5,25 @@ sidebar_label: 网站监测 keywords: [开源监控系统, 开源网站监控] --- -> 对网站是否可用,响应时间等指标进行监测 +> 对网站是否可用,响应时间等指标进行监测 -### 配置参数 +### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | -| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.cn/console` 网站的相对路径为 `/console`。 | -| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|---------|-------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | 网站对外提供的端口,http一般默认为80,https一般默认为443。 | +| 相对路径 | 网站地址除IP端口外的后缀路径,例如 `www.tancloud.io/console` 网站的相对路径为 `/console`。 | +| 启用HTTPS | 是否通过HTTPS访问网站,注意⚠️开启HTTPS一般默认对应端口需要改为443 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | -### 采集指标 +### 采集指标 -#### 指标集合:summary - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| responseTime | ms毫秒 | 网站响应时间 | +#### 指标集合:summary +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| responseTime | ms毫秒 | 网站响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/websocket.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/websocket.md index ad8baa7d71b..b4dfc13d701 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/websocket.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/websocket.md @@ -9,7 +9,7 @@ keywords: [ 开源监控系统, Websocket监控 ] ### 配置参数 -| 参数名称 | 参数帮助描述 | +| 参数名称 | 参数帮助描述 | |------------------|--------------------------------------------------------------| | WebSocket服务的Host | 被监控的Websocket的IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | | 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | @@ -23,7 +23,7 @@ keywords: [ 开源监控系统, Websocket监控 ] #### 指标集合:概要 -| 指标名称 | 指标单位 | 指标帮助描述 | +| 指标名称 | 指标单位 | 指标帮助描述 | |---------------|------|---------| | responseTime | ms | 响应时间 | | httpVersion | 无 | HTTP 版本 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/windows.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/windows.md index 6a1c79b9ede..0b1791435f4 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/windows.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/windows.md @@ -6,38 +6,38 @@ keywords: [开源监控系统, 开源操作系统监控, Windows操作系统监 --- > 通过SNMP协议对Windows操作系统的通用性能指标进行采集监控。 -> 注意⚠️ Windows服务器需开启SNMP服务 +> 注意⚠️ Windows服务器需开启SNMP服务 -参考资料: -[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) +参考资料: +[什么是SNMP协议1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) +[什么是SNMP协议2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) +[Win配置SNMP英文](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) +[Win配置SNMP中文](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | -| SNMP 版本 | SNMP协议版本 V1 V2c V3 | +| 参数名称 | 参数帮助描述 | +|----------|----------------------------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Windows SNMP服务对外提供的端口,默认为 161。 | +| SNMP 版本 | SNMP协议版本 V1 V2c V3 | | SNMP 团体字 | SNMP 协议团体名(Community Name),用于实现SNMP网络管理员访问SNMP管理代理时的身份验证。类似于密码,默认值为 public | -| 超时时间 | 协议连接超时时间 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 超时时间 | 协议连接超时时间 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:system -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| name | 无 | 主机名称 | -| descr | 无 | 操作系统描述 | -| uptime | 无 | 系统运行时间 | -| numUsers | 个数 | 当前用户数 | -| services | 个数 | 当前服务数量 | -| processes | 个数 | 当前进程数量 | -| responseTime | ms | 采集响应时间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|--------| +| name | 无 | 主机名称 | +| descr | 无 | 操作系统描述 | +| uptime | 无 | 系统运行时间 | +| numUsers | 个数 | 当前用户数 | +| services | 个数 | 当前服务数量 | +| processes | 个数 | 当前进程数量 | +| responseTime | ms | 采集响应时间 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/yarn.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/yarn.md index 2c88fe1e5a9..6694aff14fe 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/yarn.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/yarn.md @@ -15,69 +15,69 @@ keywords: [大数据监控系统, Apache Yarn监控, 资源管理器监控] ## 配置参数 -| 参数名称 | 参数帮助描述 | -| ---------------- |---------------------------------------| -| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | -| 端口 | Apache Yarn 的监控端口号,默认为8088。 | -| 查询超时时间 | 查询 Apache Yarn 的超时时间,单位毫秒,默认6000毫秒。 | -| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | +| 参数名称 | 参数帮助描述 | +|--------|-------------------------------------| +| 目标Host | 被监控的对端IPV4,IPV6或域名。不带协议头。 | +| 端口 | Apache Yarn 的监控端口号,默认为8088。 | +| 查询超时时间 | 查询 Apache Yarn 的超时时间,单位毫秒,默认6000毫秒。 | +| 指标采集间隔 | 监控数据采集的时间间隔,单位秒,最小间隔为30秒。 | ### 采集指标 #### 指标集合:ClusterMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ---------------------------------- | -| NumActiveNMs | | 当前存活的 NodeManager 个数 | -| NumDecommissionedNMs | | 当前 Decommissioned 的 NodeManager 个数 | -| NumDecommissioningNMs| | 集群正在下线的节点数 | -| NumLostNMs | | 集群丢失的节点数 | -| NumUnhealthyNMs | | 集群不健康的节点数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------------|------|------------------------------------| +| NumActiveNMs | | 当前存活的 NodeManager 个数 | +| NumDecommissionedNMs | | 当前 Decommissioned 的 NodeManager 个数 | +| NumDecommissioningNMs | | 集群正在下线的节点数 | +| NumLostNMs | | 集群丢失的节点数 | +| NumUnhealthyNMs | | 集群不健康的节点数 | #### 指标集合:JvmMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ------------------------------------ | -| MemNonHeapCommittedM | MB | JVM当前非堆内存大小已提交大小 | -| MemNonHeapMaxM | MB | JVM非堆最大可用内存 | -| MemNonHeapUsedM | MB | JVM当前已使用的非堆内存大小 | -| MemHeapCommittedM | MB | JVM当前已使用堆内存大小 | -| MemHeapMaxM | MB | JVM堆内存最大可用内存 | -| MemHeapUsedM | MB | JVM当前已使用堆内存大小 | -| GcTimeMillis | | JVM GC时间 | -| GcCount | | JVM GC次数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|----------------------|------|------------------| +| MemNonHeapCommittedM | MB | JVM当前非堆内存大小已提交大小 | +| MemNonHeapMaxM | MB | JVM非堆最大可用内存 | +| MemNonHeapUsedM | MB | JVM当前已使用的非堆内存大小 | +| MemHeapCommittedM | MB | JVM当前已使用堆内存大小 | +| MemHeapMaxM | MB | JVM堆内存最大可用内存 | +| MemHeapUsedM | MB | JVM当前已使用堆内存大小 | +| GcTimeMillis | | JVM GC时间 | +| GcCount | | JVM GC次数 | #### 指标集合:QueueMetrics -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------------------ | -------- | ------------------------------------ | -| queue | | 队列名称 | -| AllocatedVCores | | 分配的虚拟核数(已分配) | -| ReservedVCores | | 预留核数 | -| AvailableVCores | | 可用核数(尚未分配) | -| PendingVCores | | 阻塞调度核数 | -| AllocatedMB | MB | 已分配(已用)的内存大小 | -| AvailableMB | MB | 可用内存(尚未分配) | -| PendingMB | MB | 阻塞调度内存 | -| ReservedMB | MB | 预留内存 | -| AllocatedContainers | | 已分配(已用)的container数 | -| PendingContainers | | 阻塞调度container个数 | -| ReservedContainers | | 预留container数 | -| AggregateContainersAllocated | | 累积的container分配总数 | -| AggregateContainersReleased | | 累积的container释放总数 | -| AppsCompleted | | 完成的任务数 | -| AppsKilled | | 被杀掉的任务数 | -| AppsFailed | | 失败的任务数 | -| AppsPending | | 阻塞的任务数 | -| AppsRunning | | 提正在运行的任务数 | -| AppsSubmitted | | 提交过的任务数 | -| running_0 | | 运行时间小于60分钟的作业个数 | -| running_60 | | 运行时间介于60~300分钟的作业个数 | -| running_300 | | 运行时间介于300~1440分钟的作业个数 | -| running_1440 | | 运行时间大于1440分钟的作业个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|------|-----------------------| +| queue | | 队列名称 | +| AllocatedVCores | | 分配的虚拟核数(已分配) | +| ReservedVCores | | 预留核数 | +| AvailableVCores | | 可用核数(尚未分配) | +| PendingVCores | | 阻塞调度核数 | +| AllocatedMB | MB | 已分配(已用)的内存大小 | +| AvailableMB | MB | 可用内存(尚未分配) | +| PendingMB | MB | 阻塞调度内存 | +| ReservedMB | MB | 预留内存 | +| AllocatedContainers | | 已分配(已用)的container数 | +| PendingContainers | | 阻塞调度container个数 | +| ReservedContainers | | 预留container数 | +| AggregateContainersAllocated | | 累积的container分配总数 | +| AggregateContainersReleased | | 累积的container释放总数 | +| AppsCompleted | | 完成的任务数 | +| AppsKilled | | 被杀掉的任务数 | +| AppsFailed | | 失败的任务数 | +| AppsPending | | 阻塞的任务数 | +| AppsRunning | | 提正在运行的任务数 | +| AppsSubmitted | | 提交过的任务数 | +| running_0 | | 运行时间小于60分钟的作业个数 | +| running_60 | | 运行时间介于60~300分钟的作业个数 | +| running_300 | | 运行时间介于300~1440分钟的作业个数 | +| running_1440 | | 运行时间大于1440分钟的作业个数 | #### 指标集合:runtime -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------------------- | -------- | ---------------------------- | -| StartTime | | 启动时间戳 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------|------|--------| +| StartTime | | 启动时间戳 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/zookeeper.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/zookeeper.md index 0783ceaf3fb..7ff88b21f13 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/zookeeper.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/zookeeper.md @@ -12,89 +12,88 @@ keywords: [开源监控系统, Zookeeper监控监控] > 监控 zookeeper 目前的实现方案使用的是 zookeeper 提供的四字命令 + netcat 来收集指标数据 > 需要用户自己将zookeeper的四字命令加入白名单 -1. 加白名单步骤 +1. 加白名单步骤 -> 1.找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -> -> 2.配置文件中加入以下命令 + 1. 找到我们 zookeeper 的配置文件,一般是 `zoo.cfg` -```shell -# 将需要的命令添加到白名单中 -4lw.commands.whitelist=stat, ruok, conf, isro + 2. 配置文件中加入以下命令 -# 将所有命令添加到白名单中 -4lw.commands.whitelist=* -``` -> 3.重启服务 + ```shell + # 将需要的命令添加到白名单中 + 4lw.commands.whitelist=stat, ruok, conf, isro + + # 将所有命令添加到白名单中 + 4lw.commands.whitelist=* + ``` -```shell -zkServer.sh restart -``` + 3. 重启服务 -2. netcat 协议 + ```shell + zkServer.sh restart + ``` + +2. netcat 协议 目前实现方案需要我们部署zookeeper的linux服务器,安装netcat的命令环境 > netcat安装步骤 -```shell -yum install -y nc -``` +> +> ```shell +> yum install -y nc +> ``` 如果终端显示以下信息则说明安装成功 + ```shell Complete! ``` - ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | Zookeeper的Linux服务器SSH端口。 | -| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | -| 用户名 | Zookeeper所在Linux连接用户名 | -| 密码 | Zookeeper所在Linux连接密码 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | Zookeeper的Linux服务器SSH端口。 | +| 查询超时时间 | 设置Zookeeper连接的超时时间,单位ms毫秒,默认3000毫秒。 | +| 用户名 | Zookeeper所在Linux连接用户名 | +| 密码 | Zookeeper所在Linux连接密码 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:conf -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| clientPort | 无 | 端口 | -| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | -| dataDirSize | kb | 数据快照文件大小 | -| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | -| dataLogSize | kb | 事务日志文件大小 | -| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | -| minSessionTimeout | ms| 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | -| maxSessionTimeout | ms |最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | -| serverId | 无 | 服务器编号 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|----------------------------------------| +| clientPort | 无 | 端口 | +| dataDir | 无 | 数据快照文件目录,默认10万次操作生成一次快照 | +| dataDirSize | kb | 数据快照文件大小 | +| dataLogDir | 无 | 事务日志文件目录,生产环境放在独立磁盘上 | +| dataLogSize | kb | 事务日志文件大小 | +| tickTime | ms | 服务器之间或客户端与服务器之间维持心跳的时间间隔 | +| minSessionTimeout | ms | 最小session超时时间 心跳时间x2 指定时间小于该时间默认使用此时间 | +| maxSessionTimeout | ms | 最大session超时时间 心跳时间x20 指定时间大于该时间默认使用此时间 | +| serverId | 无 | 服务器编号 | #### 指标集合:stats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| zk_version | 无 | 服务器版本 | -| zk_server_state | 无 | 服务器角色 | -| zk_num_alive_connections | 个 | 连接数 | -| zk_avg_latency | ms | 平均延时 | -| zk_outstanding_requests | 个 | 堆积请求数 | -| zk_znode_count | 个 | znode结点数量 | -| zk_packets_sent | 个 | 发包数 | -| zk_packets_received | 个 | 收包数 | -| zk_watch_count | 个 | watch数量 | -| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | -| zk_approximate_data_size | kb | 数据大小 | -| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | -| zk_max_latency | ms | 最大延时 | -| zk_ephemerals_count | 个 | 临时节点数 | -| zk_min_latency | ms | 最小延时 | - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------------------|------|------------| +| zk_version | 无 | 服务器版本 | +| zk_server_state | 无 | 服务器角色 | +| zk_num_alive_connections | 个 | 连接数 | +| zk_avg_latency | ms | 平均延时 | +| zk_outstanding_requests | 个 | 堆积请求数 | +| zk_znode_count | 个 | znode结点数量 | +| zk_packets_sent | 个 | 发包数 | +| zk_packets_received | 个 | 收包数 | +| zk_watch_count | 个 | watch数量 | +| zk_max_file_descriptor_count | 个 | 最大文件描述符数量 | +| zk_approximate_data_size | kb | 数据大小 | +| zk_open_file_descriptor_count | 个 | 打开的文件描述符数量 | +| zk_max_latency | ms | 最大延时 | +| zk_ephemerals_count | 个 | 临时节点数 | +| zk_min_latency | ms | 最小延时 | diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md index cd0274a5f98..06600a0a972 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md @@ -16,7 +16,6 @@ slug: / [![QQ](https://img.shields.io/badge/QQ-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) [![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) - ## 🎡 介绍 [Apache HertzBeat](https://github.com/apache/hertzbeat) (incubating) 是一个易用友好的开源实时监控告警系统,无需 Agent,高性能集群,兼容 Prometheus,提供强大的自定义监控和状态页构建能力。 @@ -31,15 +30,15 @@ slug: / - 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` `Server酱` 等方式消息及时送达。 - 提供强大的状态页构建能力,轻松向用户传达您产品服务的实时状态。 -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 +> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 ----- +---- ### 强大的监控模版 > 开始我们就说 HertzBeat 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 HertzBeat 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 -HertzBeat 自身并没有去创造一种采集数据协议让监控对端来适配它。而是充分使用了现有的生态,`SNMP协议`采集网络交换机路由器信息,`JMX规范`采集JAVA应用信息,`JDBC规范`采集数据集信息,`SSH`直连执行脚本获取回显信息,`HTTP+(JsonPath | prometheus等)`解析API接口信息,`IPMI协议`采集服务器信息等等。 +HertzBeat 自身并没有去创造一种采集数据协议让监控对端来适配它。而是充分使用了现有的生态,`SNMP协议`采集网络交换机路由器信息,`JMX规范`采集JAVA应用信息,`JDBC规范`采集数据集信息,`SSH`直连执行脚本获取回显信息,`HTTP+(JsonPath | prometheus等)`解析API接口信息,`IPMI协议`采集服务器信息等等。 HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标数据。 ![hertzbeat](/img/blog/multi-protocol.png) @@ -48,7 +47,6 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ![hertzbeat](/img/home/9.png) - ### 内置监控类型 **官方内置了大量的监控模版类型,方便用户直接在页面添加使用,一款监控类型对应一个YML监控模版** @@ -94,30 +92,31 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ### 强大自定义功能 -> 由前面的**监控模版**介绍,大概清楚了 `HertzBeat` 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 +> 由前面的**监控模版**介绍,大概清楚了 `HertzBeat` 拥有的强大自定义功能。 +> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 > 模版里面包含各个协议的使用配置,环境变量,指标转换,指标计算,单位转换,指标采集等一系列功能,帮助用户能采集到自己想要的监控指标。 ![hertzbeat](/img/docs/custom-arch.png) ### 无需 Agent -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 `agent` 的安装部署调试升级了。 -> 每台主机得装个 `agent`,为了监控不同应用中间件可能还得装几个对应的 `agent`,监控数量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 +> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 `agent` 的安装部署调试升级了。 +> 每台主机得装个 `agent`,为了监控不同应用中间件可能还得装几个对应的 `agent`,监控数量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 > `agent` 的版本是否与主应用兼容, `agent` 与主应用的通讯调试, `agent` 的同步升级等等等等,这些全是头大的点。 -`HertzBeat` 的原理就是使用不同的协议去直连对端系统,采用 `PULL` 的形式去拉取采集数据,无需用户在对端主机上部署安装 `Agent` | `Exporter` 等。 -- 比如监控 `linux操作系统`, 在 `HertzBeat` 端输入IP端口账户密码或密钥即可。 -- 比如监控 `mysql数据库`, 在 `HertzBeat` 端输入IP端口账户密码即可。 +`HertzBeat` 的原理就是使用不同的协议去直连对端系统,采用 `PULL` 的形式去拉取采集数据,无需用户在对端主机上部署安装 `Agent` | `Exporter` 等。 + +- 比如监控 `linux操作系统`, 在 `HertzBeat` 端输入IP端口账户密码或密钥即可。 +- 比如监控 `mysql数据库`, 在 `HertzBeat` 端输入IP端口账户密码即可。 **密码等敏感信息全链路加密** ### 高性能集群 -> 当监控数量指数级上升,采集性能下降或者环境不稳定容易造成采集器单点故障时,这时我们的采集器集群就出场了。 +> 当监控数量指数级上升,采集性能下降或者环境不稳定容易造成采集器单点故障时,这时我们的采集器集群就出场了。 -- `HertzBeat` 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 -- 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 +- `HertzBeat` 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 +- 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 +- 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 ![hertzbeat](/img/docs/cluster-arch.png) @@ -134,10 +133,10 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ### 易用友好 -- 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -- 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -- 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -- 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 +- 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 +- 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 +- 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 +- 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 - 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 ### 完全开源 @@ -151,15 +150,14 @@ HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可 ![cncf](/img/home/cncf-landscape-left-logo.svg) ------ - +---- **`HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** ------ +---- ## 即刻体验一波 -Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` +Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` 浏览器访问 `http://localhost:1157` 默认账户密码 `admin/hertzbeat` ### 登陆页面 @@ -269,7 +267,6 @@ Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1 ![hertzbeat](/img/home/13.png) - ### 告警静默 - 当通过阈值规则判断触发告警后,会进入到告警静默,告警静默会根据规则对特定一次性时间段或周期性时候段的告警消息屏蔽静默,此时间段不发送告警消息。 @@ -301,11 +298,10 @@ Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1 ![hertzbeat](/img/home/9.png) - ------ +---- **还有更多强大的功能快去探索呀。Have Fun!** ------ +---- -**Github: https://github.com/apache/hertzbeat** +**Github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/design.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/design.md index 7799d12fe52..7f3854c3e12 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/design.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/design.md @@ -1,9 +1,9 @@ --- id: design title: 设计文档 -sidebar_label: 设计文档 +sidebar_label: 设计文档 --- -### HertzBeat 架构 +### HertzBeat 架构 -![architecture](/img/docs/hertzbeat-arch.svg) +![architecture](/img/docs/hertzbeat-arch.svg) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md index 46699d69a23..910499fe860 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md @@ -1,20 +1,19 @@ --- id: resource title: 相关资源 -sidebar_label: 相关资源 +sidebar_label: 相关资源 --- -## 图标资源 +## 图标资源 -### HertzBeat LOGO +### HertzBeat LOGO ![logo](/img/hertzbeat-logo.svg) Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) -### HertzBeat Brand LOGO +### HertzBeat Brand LOGO ![logo](/img/hertzbeat-brand.svg) -Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) - +Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/account-modify.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/account-modify.md index 710ae8cbee5..bcee1414029 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/account-modify.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/account-modify.md @@ -1,15 +1,15 @@ --- id: account-modify title: 配置修改账户密码和加密密钥 -sidebar_label: 更新账户和密钥 +sidebar_label: 更新账户和密钥 --- ## 更新账户 -Apache HertzBeat (incubating) 默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat -若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 -修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 -配置文件内容参考 项目仓库[/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) +Apache HertzBeat (incubating) 默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat +若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 +修改位于安装目录下的 `/hertzbeat/config/sureness.yml` 的配置文件,docker环境目录为`opt/hertzbeat/config/sureness.yml`,建议提前挂载映射 +配置文件内容参考 项目仓库[/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) ```yaml @@ -127,4 +127,4 @@ sureness: dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' ``` -**重启 HertzBeat 浏览器访问 http://ip:1157/ 即可探索使用 HertzBeat** +**重启 HertzBeat 浏览器访问 即可探索使用 HertzBeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/custom-config.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/custom-config.md index 27ebbf49520..4e70646d1dc 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/custom-config.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/custom-config.md @@ -1,72 +1,76 @@ --- id: custom-config title: 常见参数配置 -sidebar_label: 常见参数配置 +sidebar_label: 常见参数配置 --- 这里描述了如果配置短信服务器,内置可用性告警触发次数等。 -**`hertzbeat`的配置文件`application.yml`** +**`hertzbeat`的配置文件`application.yml`** -### 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 - 安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 +### 配置HertzBeat的配置文件 + +修改位于 `hertzbeat/config/application.yml` 的配置文件 +注意⚠️docker容器方式需要将application.yml文件挂载到主机本地 +安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 1. 配置短信发送服务器 -> 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 - -在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: 赫兹跳动 - template-id: 1343434 -``` -1.1 腾讯云短信创建签名(sign-name) -![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) - -1.2 腾讯云短信创建正文模板(template-id) -``` -监控:{1},告警级别:{2}。内容:{3} -``` -![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) - - -1.3 腾讯云短信创建应用(app-id) -![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) - -1.4 腾讯云访问管理(secret-id、secret-key) -![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) - - -2. 配置告警自定义参数 - -```yaml -alerter: - # 自定义控制台地址 - console-url: https://console.tancloud.cn -``` - -3. 使用外置redis代替内存存储实时指标数据 - -> 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 - -注意⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` + > 只有成功配置了您自己的短信服务器,监控系统内触发的告警短信才会正常发送。 + + 在`application.yml`新增如下腾讯平台短信服务器配置(参数需替换为您的短信服务器配置) + + ```yaml + common: + sms: + tencent: + secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY + secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA + app-id: 1435441637 + sign-name: 赫兹跳动 + template-id: 1343434 + ``` + + 1.1 腾讯云短信创建签名(sign-name) + ![image](https://github.com/apache/hertzbeat/assets/40455946/3a4c287d-b23d-4398-8562-4894296af485) + + 1.2 腾讯云短信创建正文模板(template-id) + + ```text + 监控:{1},告警级别:{2}。内容:{3} + ``` + + ![image](https://github.com/apache/hertzbeat/assets/40455946/face71a6-46d5-452c-bed3-59d2a975afeb) + + 1.3 腾讯云短信创建应用(app-id) + ![image](https://github.com/apache/hertzbeat/assets/40455946/2732d710-37fa-4455-af64-48bba273c2f8) + + 1.4 腾讯云访问管理(secret-id、secret-key) + ![image](https://github.com/apache/hertzbeat/assets/40455946/36f056f0-94e7-43db-8f07-82893c98024e) + +2. 配置告警自定义参数 + + ```yaml + alerter: + # 自定义控制台地址 + console-url: https://console.tancloud.io + ``` + +3. 使用外置redis代替内存存储实时指标数据 + + > 默认我们的指标实时数据存储在内存中,可以配置如下来使用redis代替内存存储。 + + 注意⚠️ `memory.enabled: false, redis.enabled: true` + + ```yaml + warehouse: + store: + memory: + enabled: false + init-size: 1024 + redis: + enabled: true + host: 127.0.0.1 + port: 6379 + password: 123456 + ``` diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/docker-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/docker-deploy.md index 89cb46ef951..7f911ed1d95 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/docker-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/docker-deploy.md @@ -1,34 +1,36 @@ --- id: docker-deploy title: 通过 Docker 方式安装 HertzBeat -sidebar_label: Docker方式部署 +sidebar_label: Docker方式部署 --- -> 推荐使用 Docker 部署 Apache HertzBeat (incubating) +> 推荐使用 Docker 部署 Apache HertzBeat (incubating) -1. 下载安装Docker环境 +1. 下载安装Docker环境 Docker 工具自身的下载请参考以下资料: - [Docker官网文档](https://docs.docker.com/get-docker/) + [Docker官网文档](https://docs.docker.com/get-docker/) [菜鸟教程-Docker教程](https://www.runoob.com/docker/docker-tutorial.html) 安装完毕后终端查看Docker版本是否正常输出。 - ``` + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. 拉取HertzBeat Docker镜像 - 镜像版本TAG可查看 [dockerhub 官方镜像仓库](https://hub.docker.com/r/apache/hertzbeat/tags) +2. 拉取HertzBeat Docker镜像 + 镜像版本TAG可查看 [dockerhub 官方镜像仓库](https://hub.docker.com/r/apache/hertzbeat/tags) 或者使用 [quay.io 镜像仓库](https://quay.io/repository/apache/hertzbeat) ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector + docker pull apache/hertzbeat + docker pull apache/hertzbeat-collector ``` + 若网络超时或者使用 + ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector + docker pull quay.io/tancloud/hertzbeat + docker pull quay.io/tancloud/hertzbeat-collector ``` 3. 部署HertzBeat您可能需要掌握的几条命令 @@ -47,36 +49,35 @@ sidebar_label: Docker方式部署 $ exit ``` -4. 挂载并配置HertzBeat的配置文件(可选) - 下载 `application.yml` 文件到主机目录下,例如: $(pwd)/application.yml - 下载源 [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) +4. 挂载并配置HertzBeat的配置文件(可选) + 下载 `application.yml` 文件到主机目录下,例如: $(pwd)/application.yml + 下载源 [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 若需使用邮件发送告警,需替换 `application.yml` 里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) - -5. 挂载并配置HertzBeat用户配置文件,自定义用户密码(可选) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 - 下载 `sureness.yml` 文件到主机目录下,例如: $(pwd)/sureness.yml - 下载源 [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) - 具体修改步骤参考 [配置修改账户密码](account-modify) - -6. 启动HertzBeat Docker容器 - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --restart=always \ - --name hertzbeat apache/hertzbeat -``` - - 这条命令启动一个运行HertzBeat的Docker容器,并且将容器的1157端口映射到宿主机的1157端口上。若宿主机已有进程占用该端口,则需要修改主机映射端口。 + - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) + - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) + - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) +5. 挂载并配置HertzBeat用户配置文件,自定义用户密码(可选) + HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat + 若需要新增删除修改账户或密码,可以通过配置 `sureness.yml` 实现,若无此需求可忽略此步骤 + 下载 `sureness.yml` 文件到主机目录下,例如: $(pwd)/sureness.yml + 下载源 [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + 具体修改步骤参考 [配置修改账户密码](account-modify) +6. 启动HertzBeat Docker容器 + + ```shell + $ docker run -d -p 1157:1157 -p 1158:1158 \ + -e LANG=zh_CN.UTF-8 \ + -e TZ=Asia/Shanghai \ + -v $(pwd)/data:/opt/hertzbeat/data \ + -v $(pwd)/logs:/opt/hertzbeat/logs \ + -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ + -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ + --restart=always \ + --name hertzbeat apache/hertzbeat + ``` + + 这条命令启动一个运行HertzBeat的Docker容器,并且将容器的1157端口映射到宿主机的1157端口上。若宿主机已有进程占用该端口,则需要修改主机映射端口。 + - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - `-e LANG=zh_CN.UTF-8` : 设置系统语言 - `-e TZ=Asia/Shanghai` : 设置系统时区 @@ -84,35 +85,34 @@ $ docker run -d -p 1157:1157 -p 1158:1158 \ - `-v $(pwd)/data:/opt/hertzbeat/data` : (可选,数据持久化)重要⚠️ 挂载H2数据库文件到本地主机,保证数据不会因为容器的创建删除而丢失 - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (可选,不需要可删除)挂载上上一步修改的本地配置文件到容器中,即使用本地配置文件覆盖容器配置文件。我们需要修改此配置文件的MYSQL,TDengine配置信息来连接外部服务。 - - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选,不需要可删除)挂载上一步修改的账户配置文件到容器中,若无修改账户需求可删除此命令参数。 - - - 注意⚠️ 挂载文件时,前面参数为你自定义本地文件地址,后面参数为docker容器内文件地址(固定) - - - `--name hertzbeat` : 命名容器名称 hertzbeat - + - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (可选,不需要可删除)挂载上一步修改的账户配置文件到容器中,若无修改账户需求可删除此命令参数。 + - 注意⚠️ 挂载文件时,前面参数为你自定义本地文件地址,后面参数为docker容器内文件地址(固定) + - `--name hertzbeat` : 命名容器名称 hertzbeat - `--restart=always`:(可选,不需要可删除)使容器在Docker启动后自动重启。若您未在容器创建时指定该参数,可通过以下命令实现该容器自启。 - ```shell - $ docker update --restart=always hertzbeat - ``` + ```shell + docker update --restart=always hertzbeat + ``` - - `apache/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat`代替。** + - `apache/hertzbeat` : 使用拉取最新的的HertzBeat官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat`代替。** 7. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 + + 浏览器访问 即可开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 8. 部署采集器集群(可选) -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` + ```shell + $ docker run -d \ + -e IDENTITY=custom-collector-name \ + -e MODE=public \ + -e MANAGER_HOST=127.0.0.1 \ + -e MANAGER_PORT=1158 \ + --name hertzbeat-collector apache/hertzbeat-collector + ``` + + 这条命令启动一个运行HertzBeat采集器的Docker容器,并直连上了HertzBeat主服务节点。 - 这条命令启动一个运行HertzBeat采集器的Docker容器,并直连上了HertzBeat主服务节点。 - `docker run -d` : 通过Docker运行一个容器,使其在后台运行 - `-e IDENTITY=custom-collector-name` : (可选) 设置采集器的唯一标识名称。⚠️注意多采集器时采集器名称需保证唯一性。 - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 @@ -120,44 +120,48 @@ $ docker run -d \ - `-e MANAGER_PORT=1158` : (可选) 设置连接的主HertzBeat服务地址端口,默认 1158. - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (可选,不需要可删除)挂载日志文件到本地主机,保证日志不会因为容器的创建删除而丢失,方便查看 - `--name hertzbeat-collector` : 命名容器名称 hertzbeat-collector - - `apache/hertzbeat-collector` : 使用拉取最新的的HertzBeat采集器官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat-collector`代替。** + - `apache/hertzbeat-collector` : 使用拉取最新的的HertzBeat采集器官方发布的应用镜像来启动容器,**若使用`quay.io`镜像需用参数`quay.io/tancloud/hertzbeat-collector`代替。** -8. 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 +9. 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 -**HAVE FUN** +**HAVE FUN** -### Docker部署常见问题 +### Docker部署常见问题 **最多的问题就是网络问题,请先提前排查** -1. **MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** -此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 -> 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP -> 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` +1. **MYSQL,TDENGINE或IotDB和HertzBeat都Docker部署在同一主机上,HertzBeat使用localhost或127.0.0.1连接数据库失败** + 此问题本质为Docker容器访问宿主机端口连接失败,由于docker默认网络模式为Bridge模式,其通过localhost访问不到宿主机。 + + > 解决办法一:配置application.yml将数据库的连接地址由localhost修改为宿主机的对外IP + > 解决办法二:使用Host网络模式启动Docker,即使Docker容器和宿主机共享网络 `docker run -d --network host .....` -2. **按照流程部署,访问 http://ip:1157/ 无界面** -请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 +2. **按照流程部署,访问 无界面** + 请参考下面几点排查问题: -3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + > 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 + > 二:HertzBeat的配置文件 `application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以 `docker logs hertzbeat` 查看容器日志是否有明显错误,提issue或交流群或社区反馈 -4. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB或Tdengine IP账户密码等配置是否正确 +3. **日志报错TDengine连接或插入SQL失败** + + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + +4. **监控历史图表长时间都一直无数据** + + > 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 + > 二:Tdengine的数据库`hertzbeat`是否创建 + > 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB或Tdengine IP账户密码等配置是否正确 5. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - -> 安装初始化此数据库参考 [TDengine安装初始化](tdengine-init) 或 [IoTDB安装初始化](iotdb-init) -6. 安装配置了时序数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db 或td-engine enable 是否设置为true -> 注意⚠️若hertzbeat和IotDB,TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - + > 安装初始化此数据库参考 [TDengine安装初始化](tdengine-init) 或 [IoTDB安装初始化](iotdb-init) +6. 安装配置了时序数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] + > 请检查配置参数是否正确 + > iot-db 或td-engine enable 是否设置为true + > 注意⚠️若hertzbeat和IotDB,TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/greptime-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/greptime-init.md index c83f0638605..ae036840725 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/greptime-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/greptime-init.md @@ -1,64 +1,66 @@ --- id: greptime-init title: 依赖时序数据库服务GreptimeDB安装初始化 -sidebar_label: 使用GreptimeDB存储指标数据(可选) +sidebar_label: 使用GreptimeDB存储指标数据(可选) --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. +GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** -### 通过Docker方式安装GreptimeDB -> 可参考官方网站[安装教程](https://docs.greptime.com/getting-started/overview) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +### 通过Docker方式安装GreptimeDB + +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装GreptimeDB -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 -``` +2. Docker安装GreptimeDB + + ```shell + $ docker run -p 4000-4004:4000-4004 \ + -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ + --name greptime \ + greptime/greptimedb standalone start \ + --http-addr 0.0.0.0:4000 \ + --rpc-addr 0.0.0.0:4001 + ``` - `-v /opt/greptimedb:/tmp/greptimedb` 为greptimedb数据目录本地持久化挂载,需将`/opt/greptimedb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 + `-v /opt/greptimedb:/tmp/greptimedb` 为greptimedb数据目录本地持久化挂载,需将`/opt/greptimedb`替换为实际本地存在的目录 + 使用```$ docker ps```查看数据库是否启动成功 -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - greptime: - enabled: true - endpoint: localhost:4001 -``` + 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.greptime`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + greptime: + enabled: true + endpoint: localhost:4001 + ``` 2. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库 GreptimeDB 或者 IoTDB 或者 TDengine 是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/influxdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/influxdb-init.md index 427f07af423..bd4390fc35e 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/influxdb-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/influxdb-init.md @@ -1,76 +1,75 @@ --- id: influxdb-init title: 依赖时序数据库服务InfluxDB安装初始化 -sidebar_label: 使用InfluxDB存储指标数据(可选) +sidebar_label: 使用InfluxDB存储指标数据(可选) --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 +InfluxDB是一个由InfluxData开发的开源时序型数据库,专注于海量时序数据的高性能读、高性能写、高效存储与实时分析等。 注意支持⚠️ 1.x版本。 -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** ### 1. 直接使用华为云服务 GaussDB For Influx -> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - +> 开通使用[华为云云数据库 GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) +> > 获取云数据库对外暴露连接地址,账户密码即可 ⚠️注意云数据库默认开启了SSL,云数据库地址应使用 `https:` -### 2. 通过Docker方式安装InfluxDB -> 可参考官方网站[安装教程](https://hub.docker.com/_/influxdb) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +### 2. 通过Docker方式安装InfluxDB + +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装InfluxDB 1.x -```shell -$ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 -``` +2. Docker安装InfluxDB 1.x - `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 - 使用```$ docker ps```查看数据库是否启动成功 + ```shell + $ docker run -p 8086:8086 \ + -v /opt/influxdb:/var/lib/influxdb \ + influxdb:1.8 + ``` + `-v /opt/influxdb:/var/lib/influxdb` 为influxdb数据目录本地持久化挂载,需将`/opt/influxdb`替换为实际本地存在的目录 + 使用```$ docker ps```查看数据库是否启动成功 -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` + 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.influxdb`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + influxdb: + enabled: true + server-url: http://localhost:8086 + username: root + password: root + expire-time: '30d' + replication: 1 + ``` 2. 重启 HertzBeat -### 常见问题 - -1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 - -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 +### 常见问题 +1. 时序数据库InfluxDb, IoTDB和TDengine是否都需要配置,能不能都用 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/iotdb-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/iotdb-init.md index b4888e2af03..7bf90831333 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/iotdb-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/iotdb-init.md @@ -3,6 +3,7 @@ id: iotdb-init title: 依赖时序数据库服务IoTDB安装初始化 sidebar_label: 使用IoTDB存储指标数据(可选) --- + Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 @@ -23,21 +24,22 @@ Apache IoTDB是一体化收集、存储、管理与分析物联网时序数据 Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 安装完毕后终端查看Docker版本是否正常输出。 - ``` + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Docker安装IoTDB -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:1.2.2-standalone -``` + ```shell + $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ + -v /opt/iotdb/data:/iotdb/data \ + --name iotdb \ + apache/iotdb:1.2.2-standalone + ``` -`-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 -使用```$ docker ps```查看数据库是否启动成功 + `-v /opt/iotdb/data:/iotdb/data` 为IoTDB数据目录本地持久化挂载,需将`/iotdb/data`替换为实际本地存在的目录 + 使用```$ docker ps```查看数据库是否启动成功 3. 在hertzbeat的`application.yml`配置文件配置IoTDB数据库连接 @@ -45,64 +47,63 @@ $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ 修改位于 `hertzbeat/config/application.yml` 的配置文件 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # use default queryTimeoutInMs = -1 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -**IoTDB集群版配置** -如果您使用IoTDB为集群请参考下面配置 - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用IotDB - iot-db: - enabled: true - node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667''] - username: root - password: root - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - expire-time: '7776000000' -``` - -参数说明: - - -| 参数名称 | 参数说明 | -| ------------------- |-------------------------------------------| -| enabled | 是否启用 | -| host | IoTDB数据库地址 | -| rpc-port | IoTDB数据库端口 | -| node-urls | IoTDB集群地址 | -| username | IoTDB数据库账户 | -| password | IoTDB数据库密码 | -| version | IoTDB数据库版本,已废弃,仅支持V1.* | -| query-timeout-in-ms | 查询超时时间 | -| expire-time | 数据存储时间,默认'7776000000'(90天,单位为毫秒,-1代表永不过期) | - -> 如果集群配置`node-urls`和单机配置同时设置,以集群`node-urls`配置稳准 + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.iot-db`数据源参数,HOST账户密码等,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用IotDB + iot-db: + enabled: true + host: 127.0.0.1 + rpc-port: 6667 + username: root + password: root + # use default queryTimeoutInMs = -1 + query-timeout-in-ms: -1 + # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) + expire-time: '7776000000' + ``` + + **IoTDB集群版配置** + 如果您使用IoTDB为集群请参考下面配置 + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用IotDB + iot-db: + enabled: true + node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667''] + username: root + password: root + # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 + query-timeout-in-ms: -1 + # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) + expire-time: '7776000000' + ``` + + 参数说明: + + | 参数名称 | 参数说明 | + |---------------------|-------------------------------------------| + | enabled | 是否启用 | + | host | IoTDB数据库地址 | + | rpc-port | IoTDB数据库端口 | + | node-urls | IoTDB集群地址 | + | username | IoTDB数据库账户 | + | password | IoTDB数据库密码 | + | version | IoTDB数据库版本,已废弃,仅支持V1.* | + | query-timeout-in-ms | 查询超时时间 | + | expire-time | 数据存储时间,默认'7776000000'(90天,单位为毫秒,-1代表永不过期) | + + > 如果集群配置`node-urls`和单机配置同时设置,以集群`node-urls`配置稳准 4. 重启 HertzBeat @@ -110,15 +111,15 @@ warehouse: 1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 3. 安装配置了IotDB数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> iot-db enable是否设置为true -> 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + > 请检查配置参数是否正确 + > iot-db enable是否设置为true + > 注意⚠️若hertzbeat和IotDB都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/mysql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/mysql-change.md index b25a8408387..7df3aa4b001 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/mysql-change.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/mysql-change.md @@ -1,24 +1,29 @@ --- id: mysql-change title: 关系型数据库使用 Mysql 替换依赖的 H2 存储系统元数据 -sidebar_label: 元数据使用Mysql存储(可选) +sidebar_label: 元数据使用Mysql存储(可选) --- -MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 + +MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用MYSQL存储监控信息,告警信息,配置信息等结构化关系数据。 注意⚠️ 使用外置Mysql数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 -> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 +> 如果您已有MYSQL环境,可直接跳到数据库创建那一步。 + +### 通过Docker方式安装MYSQL -### 通过Docker方式安装MYSQL -1. 下载安装Docker环境 +1. 下载安装Docker环境 Docker 的安装请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后请于终端检查Docker版本输出是否正常。 - ``` + 安装完毕后请于终端检查Docker版本输出是否正常。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装MYSQl - ``` + +2. Docker安装MYSQl + + ```shell $ docker run -d --name mysql \ -p 3306:3306 \ -v /opt/data:/var/lib/mysql \ @@ -26,26 +31,29 @@ MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) --restart=always \ mysql:5.7 ``` - `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 + + `-v /opt/data:/var/lib/mysql` 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 使用```$ docker ps```查看数据库是否启动成功 -### 数据库创建 -1. 进入MYSQL或使用客户端连接MYSQL服务 - `mysql -uroot -p123456` -2. 创建名称为hertzbeat的数据库 +### 数据库创建 + +1. 进入MYSQL或使用客户端连接MYSQL服务 + `mysql -uroot -p123456` +2. 创建名称为hertzbeat的数据库 `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` 3. 查看hertzbeat数据库是否创建成功 `show databases;` -### 修改hertzbeat的配置文件application.yml切换数据源 +### 修改hertzbeat的配置文件application.yml切换数据源 - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 - ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) + 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 + ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) + + 需修改部分原参数: - 需修改部分原参数: ```yaml spring: datasource: @@ -54,7 +62,9 @@ MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) password: 123456 url: jdbc:h2:./data/hertzbeat;MODE=MYSQL ``` - 具体替换参数如下,需根据mysql环境配置账户密码IP: + + 具体替换参数如下,需根据mysql环境配置账户密码IP: + ```yaml spring: datasource: @@ -67,15 +77,15 @@ MYSQL是一款值得信赖的关系型数据库,Apache HertzBeat (incubating) database: mysql ``` -- 通过docker启动时,建议修改host为宿主机的外网IP地址,包括mysql连接字符串和redis。 +- 通过docker启动时,建议修改host为宿主机的外网IP地址,包括mysql连接字符串和redis。 -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** +**启动 HertzBeat 浏览器访问 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** -### 常见问题 +### 常见问题 1. 缺少hibernate的mysql方言,导致启动异常 Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set -如果上述配置启动系统,出现` Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set`异常, +如果上述配置启动系统,出现`Caused by: org.hibernate.HibernateException: Access to DialectResolutionInfo cannot be null when 'hibernate.dialect' not set`异常, 需要在`application.yml`文件中增加以下配置: ```yaml diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/package-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/package-deploy.md index b5f9d7e0456..344c42801a0 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/package-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/package-deploy.md @@ -1,45 +1,48 @@ --- id: package-deploy title: 通过安装包安装 HertzBeat -sidebar_label: 安装包方式部署 +sidebar_label: 安装包方式部署 --- + > Apache HertzBeat (incubating) 支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - + 1. 下载HertzBeat安装包 下载您系统环境对应的安装包 `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` - [下载页面](/docs/download) +2. 配置HertzBeat的配置文件(可选) + 解压安装包到主机 eg: /opt/hertzbeat -2. 配置HertzBeat的配置文件(可选) - 解压安装包到主机 eg: /opt/hertzbeat - ``` + ```shell $ tar zxvf hertzbeat-xx.tar.gz or $ unzip -o hertzbeat-xx.zip ``` - 修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 + + 修改位于 `hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](mysql-change)) - **强烈推荐** 以后我们将主要支持VictoriaMetrics作为时序数据库,若需使用时序数据库VictoriaMetrics来存储指标数据,需替换`application.yml`里面的`warehouse.store.victoria-metrics`参数 具体步骤参见 [使用VictoriaMetrics存储指标数据](victoria-metrics-init) - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](tdengine-init) - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](iotdb-init) -3. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](account-modify) +3. 配置用户配置文件(可选,自定义配置用户密码) + HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat + 若需要新增删除修改账户或密码,可以通过修改位于 `hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 + 具体参考 [配置修改账户密码](account-modify) 4. 部署启动 - 执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh + 执行位于安装目录hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat + + ```shell + ./startup.sh ``` 5. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - + 浏览器访问 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 6. 部署采集器集群(可选) - - 下载解压您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [下载页面](/docs/download) + - 下载解压您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [下载页面](/docs/download) - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` + ```yaml collector: dispatch: @@ -51,41 +54,44 @@ sidebar_label: 安装包方式部署 manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` + + - 启动 `$ ./bin/startup.sh` 或 `bin/startup.bat` - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 **HAVE FUN** - ### 安装包部署常见问题 **最多的问题就是网络环境问题,请先提前排查** 1. **若您使用的是不含JDK的安装包,需您提前准备JAVA运行环境** -安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) -要求:JAVA17环境 -下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) -安装后命令行检查是否成功安装 - ``` + 安装JAVA运行环境-可参考[官方网站](http://www.oracle.com/technetwork/java/javase/downloads/index.html) + 要求:JAVA17环境 + 下载JAVA安装包: [镜像站](https://repo.huaweicloud.com/java/jdk/) + 安装后命令行检查是否成功安装 + + ```shell $ java -version java version "17.0.9" Java(TM) SE Runtime Environment 17.0.9 (build 17.0.9+8-LTS-237) Java HotSpot(TM) 64-Bit Server VM 17.0.9 (build 17.0.9+8-LTS-237, mixed mode) - ``` -2. **按照流程部署,访问 http://ip:1157/ 无界面** +2. **按照流程部署,访问 无界面** 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 + + > 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 + > 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 + > 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 3. **日志报错TDengine连接或插入SQL失败** -> 一:排查配置的数据库账户密码是否正确,数据库是否创建 -> 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter + + > 一:排查配置的数据库账户密码是否正确,数据库是否创建 + > 二:若是安装包安装的TDengine2.3+,除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter 4. **监控历史图表长时间都一直无数据** -> 一:时序数据库是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 时序数据库 IP账户密码等配置是否正确 + + > 一:时序数据库是否配置,未配置则无历史图表数据 + > 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 + > 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 时序数据库 IP账户密码等配置是否正确 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md index 3d554d84f0a..e3c2a933a23 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md @@ -3,51 +3,54 @@ id: postgresql-change title: 关系型数据库使用 PostgreSQL 替换依赖的 H2 存储系统元数据 sidebar_label: 元数据使用PostgreSQL存储(可选) --- -PostgreSQL是一个功能强大,开源的关系型数据库管理系统(RDBMS)。Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用PostgreSQL存储监控信息,告警信息,配置信息等结构化关系数据。 -注意⚠️ 使用外置PostgreSQL数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 +PostgreSQL是一个功能强大,开源的关系型数据库管理系统(RDBMS)。Apache HertzBeat (incubating) 除了支持使用默认内置的H2数据库外,还可以切换为使用PostgreSQL存储监控信息,告警信息,配置信息等结构化关系数据。 -> 如果您已有PostgreSQL环境,可直接跳到数据库创建那一步。 +注意⚠️ 使用外置PostgreSQL数据库替换内置H2数据库为可选项,但建议生产环境配置,以提供更好的性能 +> 如果您已有PostgreSQL环境,可直接跳到数据库创建那一步。 -### 通过Docker方式安装PostgreSQL +### 通过Docker方式安装PostgreSQL -1. Download and install the Docker environment +1. Download and install the Docker environment Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 After the installation you can check if the Docker version normally output at the terminal. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` - + 2. Docker安装 PostgreSQL + + ```shell + docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` + 使用```$ docker ps```查看数据库是否启动成功 3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). -### 数据库创建 +### 数据库创建 -1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 - ``` +1. 进入 PostgreSQL 或使用客户端连接 PostgreSQL 服务 + + ```shell su - postgres psql ``` - -2. 创建名称为hertzbeat的数据库 - `CREATE DATABASE hertzbeat;` +2. 创建名称为hertzbeat的数据库 + `CREATE DATABASE hertzbeat;` 3. 查看hertzbeat数据库是否创建成功 `\l` ### 修改hertzbeat的配置文件application.yml切换数据源 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 + 替换里面的`spring.database`数据源参数,IP端口账户密码驱动 ⚠️注意`application.yml`文件内容需完整,除下方修改内容外其他参数需保留,完整内容见[/script/application.yml](https://github.com/hertzbeat/hertzbeat/raw/master/script/application.yml) ```yaml @@ -58,7 +61,9 @@ spring: password: 123456 url: jdbc:h2:./data/hertzbeat;MODE=MYSQL ``` + 具体替换参数如下,需根据 PostgreSQL 环境配置账户密码IP: + ```yaml spring: config: @@ -81,4 +86,4 @@ spring: dialect: org.hibernate.dialect.PostgreSQLDialect ``` -**启动 HertzBeat 浏览器访问 http://ip:1157/ 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** +**启动 HertzBeat 浏览器访问 开始使用HertzBeat进行监控告警,默认账户密码 admin/hertzbeat** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/quickstart.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/quickstart.md index 8bee9dd1041..9f405dd061a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/quickstart.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/quickstart.md @@ -1,50 +1,52 @@ --- id: quickstart title: 快速开始 -sidebar_label: 快速开始 +sidebar_label: 快速开始 --- ### 🐕 开始使用 - 如果您是想将 Apache HertzBeat (incubating) 部署到本地搭建监控系统,请参考下面的部署文档进行操作。 +### 🍞 HertzBeat安装 -### 🍞 HertzBeat安装 > HertzBeat支持通过源码安装启动,Docker容器运行和安装包方式安装部署,CPU架构支持X86/ARM64。 -#### 方式一:Docker方式快速安装 +#### 方式一:Docker方式快速安装 1. `docker` 环境仅需一条命令即可开始 -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```或者使用 quay.io (若 dockerhub 网络链接超时)``` + ```或者使用 quay.io (若 dockerhub 网络链接超时)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 3. 部署采集器集群(可选) -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 -- `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 -- `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 -- `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : 配置此采集器的唯一性标识符名称,多个采集器名称不能相同,建议自定义英文名称。 + - `-e MODE=public` : 配置运行模式(public or private), 公共集群模式或私有云边模式。 + - `-e MANAGER_HOST=127.0.0.1` : 配置连接主HertzBeat服务的对外IP。 + - `-e MANAGER_PORT=1158` : 配置连接主HertzBeat服务的对外端口,默认1158。 -更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) +更多配置详细步骤参考 [通过Docker方式安装HertzBeat](docker-deploy) -#### 方式二:通过安装包安装 +#### 方式二:通过安装包安装 -1. 下载您系统环境对应的安装包`hertzbeat-xx.tar.gz` [GITHUB Release](https://github.com/apache/hertzbeat/releases) +1. 下载您系统环境对应的安装包`hertzbeat-xx.tar.gz` [Download](https://hertzbeat.apache.org/docs/download) 2. 配置 HertzBeat 的配置文件 `hertzbeat/config/application.yml`(可选) -3. 部署启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` +3. 部署启动 `$ ./bin/startup.sh` 或 `bin/startup.bat` 4. 浏览器访问 `http://localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` 5. 部署采集器集群(可选) - - 下载您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [GITHUB Release](https://github.com/apache/hertzbeat/releases) + - 下载您系统环境对应采集器安装包`hertzbeat-collector-xx.tar.gz`到规划的另一台部署主机上 [Download](https://hertzbeat.apache.org/docs/download) - 配置采集器的配置文件 `hertzbeat-collector/config/application.yml` 里面的连接主HertzBeat服务的对外IP,端口,当前采集器名称(需保证唯一性)等参数 `identity` `mode` (public or private) `manager-host` `manager-port` + ```yaml collector: dispatch: @@ -56,12 +58,13 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - 启动 `$ ./bin/startup.sh ` 或 `bin/startup.bat` + + - 启动 `$ ./bin/startup.sh` 或 `bin/startup.bat` - 浏览器访问主HertzBeat服务 `http://localhost:1157` 查看概览页面即可看到注册上来的新采集器 -更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) +更多配置详细步骤参考 [通过安装包安装HertzBeat](package-deploy) -#### 方式三:本地代码启动 +#### 方式三:本地代码启动 1. 此为前后端分离项目,本地代码调试需要分别启动后端工程`manager`和前端工程`web-app` 2. 后端:需要`maven3+`, `java17`和`lombok`环境,修改`YML`配置信息并启动`manager`服务 @@ -74,7 +77,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN 通过 [docker-compose部署脚本](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) 一次性把 mysql 数据库, iotdb/tdengine 时序数据库和 hertzbeat 安装部署。 -详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) +详细步骤参考 [docker-compose部署方案](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/README.md) ##### 方式五:Kubernetes Helm Charts 部署 hertzbeat+collector+mysql+iotdb @@ -84,7 +87,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN **HAVE FUN** -### 🐵 依赖服务部署(可选) +#### 🐵 依赖服务部署(可选) > HertzBeat依赖于 **关系型数据库** H2(默认已内置无需安装) 或 [Mysql](mysql-change) 和 **时序性数据库** [TDengine2+](tdengine-init) 或 [IOTDB](iotdb-init) (可选) @@ -92,10 +95,10 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN ##### 安装Mysql(可选) -1. docker安装Mysql - ` $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7` +1. docker安装Mysql + `$ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7` `-v /opt/data:/var/lib/mysql` - 为mysql数据目录本地持久化挂载,需将`/opt/data`替换为实际本地存在的目录 -2. 创建名称为hertzbeat的数据库 +2. 创建名称为hertzbeat的数据库 `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` 3. 在hertzbeat的配置文件`application.yml`配置Mysql数据库替换H2内置数据库连接参数 @@ -103,7 +106,7 @@ docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MAN ##### 安装TDengine(可选) -1. docker安装TDengine +1. docker安装TDengine `docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp --name tdengine tdengine/tdengine:3.0.4.0` 2. 创建名称为hertzbeat的数据库 3. 在hertzbeat的配置文件`application.yml`配置tdengine连接 @@ -121,4 +124,4 @@ $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ apache/iotdb:0.13.3-node ``` -详细步骤参考 [使用时序数据库IoTDB存储指标数据(可选)](iotdb-init) +详细步骤参考 [使用时序数据库IoTDB存储指标数据(可选)](iotdb-init) diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/rainbond-deploy.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/rainbond-deploy.md index 5da0679d327..8e01b8cf7a2 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/rainbond-deploy.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/rainbond-deploy.md @@ -1,7 +1,7 @@ --- id: rainbond-deploy title: 使用 Rainbond 部署 HertzBeat -sidebar_label: Rainbond方式部署 +sidebar_label: Rainbond方式部署 --- 如果你不熟悉 Kubernetes,想在 Kubernetes 中安装 Apache HertzBeat (incubating),可以使用 Rainbond 来部署。Rainbond 是一个基于 Kubernetes 构建的云原生应用管理平台,可以很简单的将你的应用部署到 Kubernetes中。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/sslcert-practice.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/sslcert-practice.md index 62cd3e157a3..c2e7bb9314c 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/sslcert-practice.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/sslcert-practice.md @@ -4,7 +4,6 @@ title: SSL证书过期监控使用案例 sidebar_label: 使用案例 --- - 现在大部分网站都默认支持 HTTPS,我们申请的证书一般是3个月或者1年,很容易随着时间的流逝SSL证书过期了我们却没有第一时间发现,或者在过期之前没有及时更新证书。 这篇文章介绍如果使用 hertzbeat 监控系统来检测我们网站的SSL证书有效期,当证书过期时或证书快过期前几天,给我们发告警消息。 @@ -13,14 +12,13 @@ sidebar_label: 使用案例 Apache HertzBeat (incubating) 一个拥有强大自定义监控能力,无需Agent的实时监控工具。网站监测,PING连通性,端口可用性,数据库,操作系统,中间件,API监控,阈值告警,告警通知(邮件微信钉钉飞书)。 - -github: https://github.com/apache/hertzbeat +github: #### 安装 HertzBeat 1. `docker` 环境仅需一条命令即可安装 -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` + `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` 2. 安装成功浏览器访问 `localhost:1157` 即可开始,默认账号密码 `admin/hertzbeat` @@ -28,72 +26,70 @@ github: https://github.com/apache/hertzbeat 1. 点击新增SSL证书监控 -> 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 - - -![](/img/docs/start/ssl_1.png) + > 系统页面 -> 监控菜单 -> SSL证书 -> 新增SSL证书 + ![](/img/docs/start/ssl_1.png) 2. 配置监控网站 -> 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 -> 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 + > 我们这里举例监控百度网站, 配置监控host域名,名称,采集间隔等。 + > 点击确定 注意⚠️新增前默认会先去测试网站连接性,连接成功才会新增,当然也可以把**是否测试**按钮置灰。 -![](/img/docs/start/ssl_2.png) + ![](/img/docs/start/ssl_2.png) 3. 查看检测指标数据 -> 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 + > 在监控列表可以查看任务状态,进监控详情可以查看指标数据图表等。 -![](/img/docs/start/ssl_3.png) + ![](/img/docs/start/ssl_3.png) -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 4. 设置阈值(证书过期时触发) -> 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 + > 系统页面 -> 告警 -> 告警阈值 -> 新增阈值 -![](/img/docs/start/ssl_4.png) + ![](/img/docs/start/ssl_4.png) -> 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 + > 配置阈值,选择SSL证书指标对象,配置告警表达式-当指标`expired`为`true`触发,即`equals(expired,"true")` , 设置告警级别通知模版信息等。 -![](/img/docs/start/ssl_5.png) + ![](/img/docs/start/ssl_5.png) -> 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 + > 关联阈值与监控, 在阈值列表设置此阈值应用于哪些监控。 -![](/img/docs/start/ssl_6.png) + ![](/img/docs/start/ssl_6.png) 5. 设置阈值(证书过期前一周触发) -> 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 + > 同理如上,新增配置阈值,配置告警表达式-当指标有效期时间戳 `end_timestamp`,`now()`函数为当前时间戳,若配置提前一周触发告警即:`end_timestamp <= (now() + 604800000)` , 其中 `604800000` 为7天总时间差毫秒值。 -![](/img/docs/start/ssl_7.png) + ![](/img/docs/start/ssl_7.png) -> 最终可以在告警中心看到已触发的告警。 + > 最终可以在告警中心看到已触发的告警。 -![](/img/docs/start/ssl_8.png) + ![](/img/docs/start/ssl_8.png) 6. 告警通知(通过钉钉微信飞书等及时通知) -> 监控系统 -> 告警通知 -> 新增接收人 + > 监控系统 -> 告警通知 -> 新增接收人 -![](/img/docs/start/ssl_9.png) + ![](/img/docs/start/ssl_9.png) -钉钉微信飞书等token配置可以参考帮助文档 + 钉钉微信飞书等token配置可以参考帮助文档 -https://hertzbeat.apache.org/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk + + -> 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 + > 告警通知 -> 新增告警通知策略 -> 将刚才配置的接收人启用通知 -![](/img/docs/start/ssl_10.png) + ![](/img/docs/start/ssl_10.png) 7. OK 当阈值触发后我们就可以收到对应告警消息啦,如果没有配通知,也可以在告警中心查看告警信息。 ---- -#### 完! +#### 完 监控SSL证书的实践就到这里,当然对hertzbeat来说这个功能只是冰山一角,如果您觉得hertzbeat这个开源项目不错的话欢迎给我们在GitHub Gitee star哦,灰常感谢。感谢老铁们的支持。笔芯! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md index 7fcd8fd460e..4ba4c97659a 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md @@ -1,70 +1,73 @@ --- id: tdengine-init title: 依赖时序数据库服务TDengine安装初始化 -sidebar_label: 使用TDengine存储指标数据(可选) +sidebar_label: 使用TDengine存储指标数据(可选) --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) > 我们推荐使用并长期支持 VictoriaMetrics 作为存储。 -TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 +TDengine是一款开源物联网时序型数据库,我们用其存储采集到的监控指标历史数据。 注意支持⚠️ 3.x版本。 -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** > 如果您已有TDengine环境,可直接跳到创建数据库实例那一步。 +### 通过Docker方式安装TDengine -### 通过Docker方式安装TDengine -> 可参考官方网站[安装教程](https://docs.taosdata.com/get-started/docker/) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装TDengine -```shell -$ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 -``` +2. Docker安装TDengine + + ```shell + $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ + -v /opt/taosdata:/var/lib/taos \ + --name tdengine -e TZ=Asia/Shanghai \ + tdengine/tdengine:3.0.4.0 + ``` `-v /opt/taosdata:/var/lib/taos` 为tdengine数据目录本地持久化挂载,需将`/opt/taosdata`替换为实际本地存在的目录 - `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 - 使用```$ docker ps```查看数据库是否启动成功 + `-e TZ="Asia/Shanghai"` 为tdengine设置时区,这里可选设置对应的时区 + 使用```$ docker ps```查看数据库是否启动成功 -### 创建数据库实例 +### 创建数据库实例 -> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) +> [TDengine CLI 小技巧](https://docs.taosdata.com/develop/model/) -1. 进入数据库Docker容器 - ``` - $ docker exec -it tdengine /bin/bash +1. 进入数据库Docker容器 + + ```shell + docker exec -it tdengine /bin/bash ``` 2. 修改账户密码 > 建议您修改密码。TDengine默认的账户密码是 root/taosdata - > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: + > 进入容器后,执行 `taos` 命令进入TDengine CLI , 如下: - ``` + ```shell root@tdengine-server:~/TDengine-server# taos Welcome to the TDengine shell from Linux, Client Version Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. taos> ``` + > 在 TDengine CLI 中使用 alter user 命令可以修改用户密码,缺省密码为 taosdata 3. 创建名称为hertzbeat的数据库 执行创建数据库命令 - ``` + ```shell taos> show databases; taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; ``` @@ -73,58 +76,62 @@ $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ 4. 查看hertzbeat数据库是否成功创建 - ``` + ```shell taos> show databases; taos> use hertzbeat; ``` 5. 退出TDengine CLI - ``` + ```text 输入 q 或 quit 或 exit 回车 ``` -**注意⚠️若是安装包安装的TDengine** +**注意⚠️若是安装包安装的TDengine** > 除了启动server外,还需执行 `systemctl start taosadapter` 启动 adapter -### 在hertzbeat的`application.yml`配置文件配置此数据库连接 +### 在hertzbeat的`application.yml`配置文件配置此数据库连接 1. 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` + 修改位于 `hertzbeat/config/application.yml` 的配置文件 [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置里面的`warehouse.store.td-engine`数据源参数,URL账户密码,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + td-engine: + enabled: true + driver-class-name: com.taosdata.jdbc.rs.RestfulDriver + url: jdbc:TAOS-RS://localhost:6041/hertzbeat + username: root + password: taosdata + ``` 2. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库IoTDB和TDengine是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 -2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,只影响历史图表数据。 -3. 监控详情历史图片不展示或无数据,已经配置了TDengine -> 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 +2. 监控页面历史图表不显示,弹出 [无法提供历史图表数据,请配置依赖时序数据库] + + > 如弹窗所示,历史图表展示的前提是需要安装配置hertzbeat的依赖服务 - IotDB数据库或TDengine数据库 + +3. 监控详情历史图片不展示或无数据,已经配置了TDengine + + > 请确认是否安装的TDengine版本为3.0以上,版本2.x不支持兼容 4. 安装配置了TDengine数据库,但页面依旧显示弹出 [无法提供历史图表数据,请配置依赖时序数据库] -> 请检查配置参数是否正确 -> td-engine enable是否设置为true -> 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP -> 可根据logs目录下启动日志排查 + + > 请检查配置参数是否正确 + > td-engine enable是否设置为true + > 注意⚠️若hertzbeat和TDengine都为docker容器在同一主机下启动,容器之间默认不能用127.0.0.1通讯,改为主机IP + > 可根据logs目录下启动日志排查 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/upgrade.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/upgrade.md index 0effd531384..e528f8b60c6 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/upgrade.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/upgrade.md @@ -1,21 +1,19 @@ --- id: upgrade title: HertzBeat 新版本更新指引 -sidebar_label: 版本更新指引 +sidebar_label: 版本更新指引 --- **Apache HertzBeat (incubating) 的发布版本列表** - [下载页面](/docs/download) -- [Github Release](https://github.com/apache/hertzbeat/releases) +- [Download](https://hertzbeat.apache.org/docs/download) - [DockerHub Release](https://hub.docker.com/r/apache/hertzbeat/tags) HertzBeat 的元数据信息保存在 H2 或 Mysql, PostgreSQL 关系型数据库内, 采集指标数据存储在 TDengine, IotDB 等时序数据库内。 **升级前您需要保存备份好数据库的数据文件和监控模版文件** - - ### Docker部署方式的升级 1. 若使用了自定义监控模版 @@ -23,32 +21,26 @@ HertzBeat 的元数据信息保存在 H2 或 Mysql, PostgreSQL 关系型数据 - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - 然后在后续升级启动 docker 容器的时候需要挂载上这个 define 目录,`-v $(pwd)/define:/opt/hertzbeat/define` - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. 若使用内置默认 H2 数据库 +2. 若使用内置默认 H2 数据库 - 需挂载或备份 `-v $(pwd)/data:/opt/hertzbeat/data` 容器内的数据库文件目录 `/opt/hertzbeat/data` - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,注意需要将数据库文件目录挂载 `-v $(pwd)/data:/opt/hertzbeat/data` - 3. 若使用外置关系型数据库 Mysql, PostgreSQL - 无需挂载备份容器内的数据库文件目录 - 停止并删除容器,删除本地 HertzBeat docker 镜像,拉取新版本镜像 - 参考 [Docker安装HertzBeat](docker-deploy) 使用新镜像创建新的容器,`application.yml`配置数据库连接即可 - ### 安装包部署方式的升级 1. 若使用内置默认 H2 数据库 - - 备份安装包下的数据库文件目录 `/opt/hertzbeat/data` + - 备份安装包下的数据库文件目录 `/opt/hertzbeat/data` - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动 - 2. 若使用外置关系型数据库 Mysql, PostgreSQL - 无需备份安装包下的数据库文件目录 - 若有自定义监控模版,需备份 `/opt/hertzbeat/define` 下的模版YML - `bin/shutdown.sh` 停止 HertzBeat 进程,下载新安装包 - 参考 [安装包安装HertzBeat](package-deploy) 使用新安装包启动,`application.yml`配置数据库连接即可 - - -**HAVE FUN** +**HAVE FUN** diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/victoria-metrics-init.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/victoria-metrics-init.md index 7668cefcaf3..4fda51312d7 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/victoria-metrics-init.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/victoria-metrics-init.md @@ -1,7 +1,7 @@ --- id: victoria-metrics-init title: 依赖时序数据库服务VictoriaMetrics安装初始化 -sidebar_label: 使用VictoriaMetrics存储指标数据(推荐) +sidebar_label: 使用VictoriaMetrics存储指标数据(推荐) --- Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任选其一安装初始化即可,也可不安装(注意⚠️但强烈建议生产环境配置) @@ -10,59 +10,60 @@ Apache HertzBeat (incubating) 的历史数据存储依赖时序数据库,任 VictoriaMetrics,是一个快速高效、经济并且可扩展的监控解决方案和时序数据库,兼容 Prometheus 生态。推荐版本(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) -**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** -**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** +**注意⚠️ 时序数据库安装配置为可选项,但强烈建议生产环境配置,以提供更完善的历史图表功能,高性能和稳定性** +**⚠️ 若不配置时序数据库,则只会留最近一小时历史数据** > 如果您已有VictoriaMetrics环境,可直接跳到YML配置那一步。 +### 通过Docker方式安装VictoriaMetrics -### 通过Docker方式安装VictoriaMetrics -> 可参考官方网站[安装教程](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. 下载安装Docker环境 - Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 - 安装完毕后终端查看Docker版本是否正常输出。 - ``` +1. 下载安装Docker环境 +Docker 工具自身的下载请参考 [Docker官网文档](https://docs.docker.com/get-docker/)。 +安装完毕后终端查看Docker版本是否正常输出。 + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Docker安装VictoriaMetrics - -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` - - `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` 为VictoriaMetrics数据目录本地持久化挂载 - 使用```$ docker ps```查看数据库是否启动成功 - -3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接 - - 配置HertzBeat的配置文件 - 修改位于 `hertzbeat/config/application.yml` 的配置文件 - 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 - -**修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`** - -```yaml -warehouse: - store: - # 关闭默认JPA - jpa: - enabled: false - # 启用 victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` + +2. Docker安装VictoriaMetrics + + ```shell + $ docker run -d -p 8428:8428 \ + -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ + --name victoria-metrics \ + victoriametrics/victoria-metrics:v1.95.1 + ``` + + `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` 为VictoriaMetrics数据目录本地持久化挂载 + 使用```$ docker ps```查看数据库是否启动成功 + +3. 在hertzbeat的`application.yml`配置文件配置VictoriaMetrics数据库连接 + + 配置HertzBeat的配置文件 + 修改位于 `hertzbeat/config/application.yml` 的配置文件 + 注意⚠️docker容器方式需要将application.yml文件挂载到主机本地,安装包方式解压修改位于 `hertzbeat/config/application.yml` 即可 + + **修改里面的`warehouse.store.jpa.enabled`参数为`false`, 配置`warehouse.store.victoria-metrics`数据源参数,HOST账户密码等,并启用`enabled`为`true`** + + ```yaml + warehouse: + store: + # 关闭默认JPA + jpa: + enabled: false + # 启用 victoria-metrics + victoria-metrics: + enabled: true + url: http://localhost:8428 + username: root + password: root + ``` 4. 重启 HertzBeat -### 常见问题 +### 常见问题 1. 时序数据库是否都需要配置,能不能都用 -> 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,但会影响历史图表数据和存储时长等。 + > 不需要都配置,任选其一即可,用enable参数控制其是否使用,也可都不安装配置,但会影响历史图表数据和存储时长等。 diff --git a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/template.md b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/template.md index 55d89c73cba..521e528a299 100644 --- a/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/template.md +++ b/home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/template.md @@ -4,27 +4,27 @@ title: 监控模版中心 sidebar_label: 监控模版 --- -> Apache HertzBeat (incubating) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 +> Apache HertzBeat (incubating) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 +> +> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 > 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? -这是它的架构原理: +这是它的架构原理: ![hertzBeat](/img/docs/hertzbeat-arch.png) -**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** +**我们将所有监控采集类型(mysql,website,jvm,k8s)都定义为yml模版,用户可以导入这些模版到hertzbeat系统中,使其支持对应类型的监控,非常方便!** ![](/img/docs/advanced/extend-point-1.png) **欢迎大家一起贡献你使用过程中自定义的通用监控类型YML模版,可用的模板如下:** -### 应用服务监控模版 +### 应用服务监控模版  👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
+ 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
+ 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
+ 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
@@ -32,7 +32,7 @@ sidebar_label: 监控模版  👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
-### 数据库监控模版 +### 数据库监控模版  👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
@@ -49,7 +49,7 @@ sidebar_label: 监控模版  👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
-### 操作系统监控模版 +### 操作系统监控模版  👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
@@ -64,7 +64,6 @@ sidebar_label: 监控模版  👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- ### 中间件监控模版  👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
@@ -78,13 +77,12 @@ sidebar_label: 监控模版  👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- ### 云原生监控模版  👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
-### 网络监控模版 +### 网络监控模版  👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
diff --git a/home/sidebars.json b/home/sidebars.json index 711a6ae5afd..0b76a6d6d52 100755 --- a/home/sidebars.json +++ b/home/sidebars.json @@ -1,29 +1,62 @@ { "docs": [ + { + "type": "doc", + "id": "introduce" + }, { "type": "category", "label": "quickstart", "items": [ - "introduce", - "start/quickstart", - "start/docker-deploy", - "start/package-deploy", - "start/rainbond-deploy", { - "type": "link", - "label": "Install via Helm", - "href": "https://artifacthub.io/packages/helm/hertzbeat/hertzbeat" + "type": "category", + "label": "install", + "items": [ + "start/docker-deploy", + "start/docker-compose-deploy", + "start/package-deploy", + { + "type": "link", + "label": "Install via Helm", + "href": "https://artifacthub.io/packages/helm/hertzbeat/hertzbeat" + } + ] + }, + { + "type": "category", + "label": "upgrade", + "items": [ + "start/1.6.0-update", + "start/upgrade" + ] + }, + { + "type": "category", + "label": "setting", + "items": [ + "start/account-modify", + "start/custom-config" + ] }, - "start/account-modify", - "start/upgrade", - "start/victoria-metrics-init", - "start/iotdb-init", - "start/tdengine-init", - "start/influxdb-init", - "start/postgresql-change", - "start/mysql-change", - "start/custom-config", - "start/ssl-cert-practice" + { + "type": "category", + "label": "change-db", + "items": [ + "start/victoria-metrics-init", + "start/iotdb-init", + "start/tdengine-init", + "start/influxdb-init", + "start/postgresql-change", + "start/mysql-change" + ] + }, + { + "type": "category", + "label": "use-case", + "items": [ + "start/ssl-cert-practice" + ] + } ] }, { @@ -173,6 +206,9 @@ "help/mysql", "help/mariadb", "help/postgresql", + "help/greenplum", + "help/vastbase", + "help/kingbase", "help/sqlserver", "help/oracle", "help/dm", @@ -181,7 +217,8 @@ "help/nebulagraph_cluster", "help/tidb", "help/mongodb", - "help/mongodb_atlas" + "help/mongodb_atlas", + "help/oceanbase" ] }, { @@ -189,7 +226,8 @@ "label": "cache", "items": [ "help/redis", - "help/memcached" + "help/memcached", + "help/valkey" ] }, { @@ -241,6 +279,7 @@ "help/hdfs_datanode", "help/iotdb", "help/hive", + "help/iceberg", "help/airflow", "help/clickhouse", "help/elasticsearch", @@ -319,9 +358,11 @@ "help/alert_smn" ] }, - "help/issue", + "help/bulletin", "help/plugin", - "help/time_expression" + "help/time_expression", + "help/grafana_dashboard", + "help/issue" ] }, { diff --git a/home/src/constants.js b/home/src/constants.js index 167f52c7acb..60ecd397b12 100644 --- a/home/src/constants.js +++ b/home/src/constants.js @@ -12,11 +12,6 @@ export const features = [ {'docker run -d -p 1157:1157 apache/hertzbeat'}, - console: ( - - Login Now - - ), br:
, }} > @@ -51,7 +46,7 @@ export const features = [ values={{ github: ( - Github Repo + Github ), br:
, @@ -63,11 +58,3 @@ export const features = [ ), }, ] - - -export const usersLink = [ - { - img: 'tancloud-logo.svg', - alt: 'tancloud', - } -] diff --git a/home/src/pages/team/index.jsx b/home/src/pages/team/index.jsx index 889e418d0f9..a53509082ad 100644 --- a/home/src/pages/team/index.jsx +++ b/home/src/pages/team/index.jsx @@ -1037,7 +1037,7 @@ export default function () { href="https://github.com/apache/hertzbeat/commits?author=yuluo-yx" title="Code">💻 xiaoming student
xiaoming student


linDong

💻 jiawei.guo
jiawei.guo

💻 + QBH-insist
QBH-insist

💻 + jiangsh
jiangsh

💻 + Keaifa
Keaifa

💻 + Loong
Loong

💻 + Chandrakant Vankayalapati
Chandrakant Vankayalapati

💻 + b_mountain
b_mountain

💻 diff --git a/home/src/pages/team/member.json b/home/src/pages/team/member.json index 45206e0f1a6..c9ebeae7e13 100644 --- a/home/src/pages/team/member.json +++ b/home/src/pages/team/member.json @@ -88,6 +88,31 @@ "githubId": "15684156", "gitUrl": "https://github.com/crossoverJie", "name": "crossoverJie" + }, + { + "githubId": "30208283", + "gitUrl": "https://github.com/LiuTianyou", + "name": "LiuTianyou" + }, + { + "githubId": "3371163", + "gitUrl": "https://github.com/kerwin612", + "name": "Kerwin Bryant" + }, + { + "githubId": "118667222", + "gitUrl": "https://github.com/Yanshuming1", + "name": "linDong" + }, + { + "githubId": "131688897", + "gitUrl": "https://github.com/Calvin979", + "name": "Calvin" + }, + { + "githubId": "77964041", + "gitUrl": "https://github.com/yuluo-yx", + "name": "Shown" } ] } diff --git a/home/static/img/blog/committer/yuluo-yx/1.jpg b/home/static/img/blog/committer/yuluo-yx/1.jpg new file mode 100644 index 00000000000..e89f546f750 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/1.jpg differ diff --git a/home/static/img/blog/committer/yuluo-yx/2.png b/home/static/img/blog/committer/yuluo-yx/2.png new file mode 100644 index 00000000000..59849af6c9f Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/2.png differ diff --git a/home/static/img/blog/committer/yuluo-yx/3.jpg b/home/static/img/blog/committer/yuluo-yx/3.jpg new file mode 100644 index 00000000000..d4875015dc6 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/3.jpg differ diff --git a/home/static/img/blog/committer/yuluo-yx/4.jpg b/home/static/img/blog/committer/yuluo-yx/4.jpg new file mode 100644 index 00000000000..a4d4a79d879 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/4.jpg differ diff --git a/home/static/img/blog/committer/yuluo-yx/5.jpg b/home/static/img/blog/committer/yuluo-yx/5.jpg new file mode 100644 index 00000000000..4180b761bb7 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/5.jpg differ diff --git a/home/static/img/blog/committer/yuluo-yx/6.jpg b/home/static/img/blog/committer/yuluo-yx/6.jpg new file mode 100644 index 00000000000..b7b455e5195 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/6.jpg differ diff --git a/home/static/img/blog/committer/yuluo-yx/7.jpg b/home/static/img/blog/committer/yuluo-yx/7.jpg new file mode 100644 index 00000000000..3129f6f7fb3 Binary files /dev/null and b/home/static/img/blog/committer/yuluo-yx/7.jpg differ diff --git a/home/static/img/blog/multi-protocol.png b/home/static/img/blog/multi-protocol.png index 894facdaf86..afced1d7dc2 100644 Binary files a/home/static/img/blog/multi-protocol.png and b/home/static/img/blog/multi-protocol.png differ diff --git a/home/static/img/docs/community/icla-content-1.png b/home/static/img/docs/community/icla-content-1.png index 2423fef5e12..b6213439490 100644 Binary files a/home/static/img/docs/community/icla-content-1.png and b/home/static/img/docs/community/icla-content-1.png differ diff --git a/home/static/img/docs/community/icla-content-3.png b/home/static/img/docs/community/icla-content-3.png index 2147566f90e..a46f5fda522 100644 Binary files a/home/static/img/docs/community/icla-content-3.png and b/home/static/img/docs/community/icla-content-3.png differ diff --git a/home/static/img/docs/help/bulletin-1.png b/home/static/img/docs/help/bulletin-1.png new file mode 100644 index 00000000000..ae658231222 Binary files /dev/null and b/home/static/img/docs/help/bulletin-1.png differ diff --git a/home/static/img/docs/help/bulletin-2.png b/home/static/img/docs/help/bulletin-2.png new file mode 100644 index 00000000000..d0af9502a4b Binary files /dev/null and b/home/static/img/docs/help/bulletin-2.png differ diff --git a/home/static/img/docs/help/grafana-1.png b/home/static/img/docs/help/grafana-1.png new file mode 100644 index 00000000000..e5d9f4d7a86 Binary files /dev/null and b/home/static/img/docs/help/grafana-1.png differ diff --git a/home/static/img/docs/help/grafana-2.png b/home/static/img/docs/help/grafana-2.png new file mode 100644 index 00000000000..fd711faf47e Binary files /dev/null and b/home/static/img/docs/help/grafana-2.png differ diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-http-default.md b/home/versioned_docs/version-v1.3.x/advanced/extend-http-default.md deleted file mode 100644 index 55482467be2..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-http-default.md +++ /dev/null @@ -1,148 +0,0 @@ ---- -id: extend-http-default -title: HTTP Protocol System Default Parsing Method -sidebar_label: Default Parsing Method ---- - -> After calling the HTTP api to obtain the response data, use the default parsing method of hertzbeat to parse the response data. - -**The interface response data structure must be consistent with the data structure rules specified by hertzbeat** - -### HertzBeat data format specification -Note⚠️ The response data is JSON format. - -Single layer format :key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -Multilayer format:Set key value in the array -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` -eg: -Query the CPU information of the custom system. The exposed interface is `/metrics/cpu`. We need `hostname,core,useage` Metric. -If there is only one virtual machine, its single-layer format is : -```json -{ - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 -} -``` -If there are multiple virtual machines, the multilayer format is: : -```json -[ - { - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 - }, - { - "hostname": "linux-2", - "core": 3, - "usage": 78.0, - "allTime": 566, - "runningTime": 34 - }, - { - "hostname": "linux-3", - "core": 4, - "usage": 38.0, - "allTime": 500, - "runningTime": 20 - } -] -``` - -**The corresponding monitoring template yml can be configured as follows** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' -# Metric group list -metrics: -# The first monitoring Metric group cpu -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - instance: true - - field: usage - type: 0 - unit: '%' - - field: core - type: 0 -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/cpu - # request mode: GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # parsing method for reponse data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # Hertzbeat default parsing is used here - parseType: default -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md b/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md deleted file mode 100644 index 69d56a18f22..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-hertzbeat.md +++ /dev/null @@ -1,239 +0,0 @@ ---- -id: extend-http-example-hertzbeat -title: Tutorial 1 Adapting a monitoring type based on HTTP protocol -sidebar_label: Tutorial 1 Adapting an HTTP protocol monitoring ---- - -Through this tutorial, we describe step by step how to add a monitoring type based on the http protocol under the hertzbeat monitoring tool. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [http Protocol Customization](extend-http). - - -### HTTP protocol parses the general response structure to obtain metric data - -> In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API -`http://localhost:1157/api/summary`, the response data is: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**This time we get the metric data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** - -### Add custom monitoring template `hertzbeat` - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - - field: app - type: 1 - instance: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - method: GET - # if enabled https, default value is false - ssl: ^_^ssl^_^ - # http auth - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**The addition is complete, now we save and apply. We can see that the system page has added a `hertzbeat` monitoring type. ** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### The system page adds the monitoring of `hertzbeat` monitoring type - -> We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add recipients, set alarm notifications, etc. Have Fun!!! - - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-token.md b/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-token.md deleted file mode 100644 index f5396e3dde6..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-http-example-token.md +++ /dev/null @@ -1,398 +0,0 @@ ---- -id: extend-http-example-token -title: Tutorial 2 Obtain TOKEN index value based on HTTP protocol for subsequent collection and authentication -sidebar_label: Tutorial 2 Get TOKEN for subsequent authentication ---- - -Through this tutorial, we will describe step by step how to modify on the basis of tutorial 1, add an metrics, first call the authentication interface to obtain the TOKEN, and use the TOKEN as a parameter for the subsequent metrics collection and authentication. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [http Protocol Customization](extend-http). - -### Request process - -【**Authentication information metrics (highest priority)**】【**HTTP interface carries account password call**】->【**Response data analysis**】->【**Analysis and issuance of TOKEN-accessToken as an metric **] -> [**Assign accessToken as a variable parameter to other collection index groups**] - -> Here we still use the hertzbeat monitoring example of Tutorial 1! The hertzbeat background interface not only supports the basic direct account password authentication used in Tutorial 1, but also supports token authentication. - -**We need `POST` to call the login interface `/api/account/auth/form` to get `accessToken`, the request body (json format) is as follows**: - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` -**The response structure data is as follows**: - -```json -{ - "data": { - "token": "xxxx", - "refreshToken": "xxxx" - }, - "msg": null, - "code": 0 -} -``` - -### Add custom monitoring type `hertzbeat_token` - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -1. The custom monitoring type needs to add a new configuration monitoring template yml. We directly reuse the `hertzbeat` monitoring type in Tutorial 1 and modify it based on it - -A monitoring configuration definition file named after the monitoring type - hertzbeat_token - -We directly reuse the definition content in `hertzbeat` and modify it to our current monitoring type `hertzbeat_auth` configuration parameters, such as `app, category, etc`. - -```yaml -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# Index group list configuration under todo -metrics: .... - -``` - -### Define metrics `auth` login request to get `token` - -1. Add an index group definition `auth` in `hertzbeat_token`, set the collection priority to the highest 0, and collect the index `token`. - -```yaml - -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# List of metricss -metrics: - # The first monitoring index group auth - # Note: Built-in monitoring metrics have (responseTime - response time) - - name: auth - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 0 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: token - type: 1 - - field: refreshToken - type: 1 - # Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/account/auth/form - # Request method GET POST PUT DELETE PATCH - method: POST - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # request header content - headers: - content-type: ^_^contentType^_^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data' - -``` - -**At this time, save and apply, add `hertzbeat_token` type monitoring on the system page, configure input parameters, `content-type` fill in `application/json`, `request Body` fill in the account password json as follows: ** - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` - -![](/img/docs/advanced/extend-http-example-5.png) - - -** After the addition is successful, we can see the `token`, `refreshToken` metric data we collected on the details page. ** - -![](/img/docs/advanced/extend-http-example-6.png) - -![](/img/docs/advanced/extend-http-example-7.png) - - - -### Use `token` as a variable parameter to collect and use the following metricss - -**Add an index group definition `summary` in `app-hertzbeat_token.yml`, which is the same as `summary` in Tutorial 1, and set the collection priority to 1** - -**Set the authentication method in the HTTP protocol configuration of this index group to `Bearer Token`, assign the index `token` collected by the previous index group `auth` as a parameter, and use `^o^` as the internal replacement symbol, that is ` ^o^token^o^`. as follows:** - -```yaml - - name: summary -# When the protocol is the http protocol, the specific collection configuration - http: - # authentication - authorization: - # Authentication methods: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ -``` - -**The final `hertzbeat_token` template yml is defined as follows:** - -```yaml - -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# List of metricss -metrics: -# The first monitoring index group cpu -# Note: Built-in monitoring metrics have (responseTime - response time) - - name: auth - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 0 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: token - type: 1 - - field: refreshToken - type: 1 - # Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/account/auth/form - # Request method GET POST PUT DELETE PATCH - method: POST - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # request header content - headers: - content-type: ^_^contentType^_^ - ^_^headers^_^: ^_^headers^_^ - # Request parameter content - params: - ^_^params^_^: ^_^params^_^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data' - - - - name: summary - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 1 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: category - type: 1 - - field: app - type: 1 - - field: size - type: 0 - - field: status - type: 0 -# Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/summary - # Request method GET POST PUT DELETE PATCH - method: GET - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - # authentication - authorization: - # Authentication methods: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**After the configuration is complete, save and apply, and check the monitoring details page** - -![](/img/docs/advanced/extend-http-example-8.png) - -![](/img/docs/advanced/extend-http-example-9.png) - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-http-jsonpath.md b/home/versioned_docs/version-v1.3.x/advanced/extend-http-jsonpath.md deleted file mode 100644 index ba3f447ff65..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-http-jsonpath.md +++ /dev/null @@ -1,165 +0,0 @@ ---- -id: extend-http-jsonpath -title: HTTP Protocol JsonPath Parsing Method -sidebar_label: JsonPath Parsing Method ---- -> After calling the HTTP api to obtain the response data, use JsonPath script parsing method to parse the response data. - -Note⚠️ The response data is JSON format. - -**Use the JsonPath script to parse the response data into data that conforms to the data structure rules specified by HertzBeat** - -#### JsonPath Operator -[JSONPath online verification](https://www.jsonpath.cn) - -| JSONPATH | Help description | -|------------------|----------------------------------------------------------------------------------------| -| $ | Root object or element | -| @ | Current object or element | -| . or [] | Child element operator | -| .. | Recursively match all child elements | -| * | Wildcard. Match all objects or elements | -| [] | Subscript operator, jsonpath index starts from 0 | -| [,] | Join operator, return multiple results as an array. Jsonpath allows the use of aliases | -| [start:end:step] | Array slice operator | -| ?() | Filter (script) expression | -| () | Script Expression | - -#### HertzBeat data format specification -Single layer format :key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -Multilayer format:Set key value in the array -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` - -#### Example - -Query the value information of the custom system, and its exposed interface is `/metrics/person`. We need `type,num` Metric. -The raw data returned by the interface is as follows: -```json -{ - "firstName": "John", - "lastName" : "doe", - "age" : 26, - "address" : { - "streetAddress": "naist street", - "city" : "Nara", - "postalCode" : "630-0192" - }, - "number": [ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } - ] -} -``` - -We use the jsonpath script to parse, and the corresponding script is: `$.number[*]`,The parsed data structure is as follows: -```json -[ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } -] -``` -This data structure conforms to the data format specification of HertzBeat, and the Metric `type,num` is successfully extracted. - -**The corresponding monitoring template yml can be configured as follows** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' -# Metric group list -metrics: -# The first monitoring Metric group person -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: type - type: 1 - instance: true - - field: num - type: 0 -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/person - # request mode GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # parsing method for response data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # jsonPath parsing is used here - parseType: jsonPath - parseScript: '$.number[*]' -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-http.md b/home/versioned_docs/version-v1.3.x/advanced/extend-http.md deleted file mode 100644 index 2de699a45cc..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-http.md +++ /dev/null @@ -1,206 +0,0 @@ ---- -id: extend-http -title: HTTP Protocol Custom Monitoring -sidebar_label: HTTP Protocol Custom Monitoring ---- - -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use HTTP protocol to customize Metric monitoring - -### HTTP protocol collection process - -【**Call HTTP API**】->【**Response Verification**】->【**Parse Response Data**】->【**Default method parsing|JsonPath script parsing | XmlPath parsing(todo) | Prometheus parsing**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of HTTP protocol. We need to configure HTTP request parameters, configure which Metrics to obtain, and configure the parsing method and parsing script for response data. -HTTP protocol supports us to customize HTTP request path, request header, request parameters, request method, request body, etc. - -**System default parsing method**:HTTP interface returns the JSON data structure specified by hertzbeat, that is, the default parsing method can be used to parse the data and extract the corresponding Metric data. For details, refer to [**System Default Parsing**](extend-http-default) -**JsonPath script parsing method**:Use JsonPath script to parse the response JSON data, return the data structure specified by the system, and then provide the corresponding Metric data. For details, refer to [**JsonPath Script Parsing**](extend-http-jsonpath) - - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- - -Configuration usages of the monitoring templates yml are detailed below. Please pay attention to usage annotation. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_http` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_http -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - # When type is text, use limit to indicate the string limit size - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: ssl - name: - zh-CN: 启动SSL - en-US: Enable SSL - # When type is boolean, front end uses switch to show the switch - type: boolean - required: false - - field: method - name: - zh-CN: 请求方式 - en-US: Method - type: radio - required: true - # When type is radio or checkbox, option indicates the list of selectable values {name1:value1,name2:value2} - options: - - label: GET request - value: GET - - label: POST request - value: POST - - label: PUT request - value: PUT - - label: DELETE request - value: DELETE -# Metric group list -metrics: -# The first monitoring Metric group cpu -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - instance: true - - field: usage - type: 0 - unit: '%' - - field: cores - type: 0 - - field: waitTime - type: 0 - unit: s -# (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - hostname - - core1 - - core2 - - usage - - allTime - - runningTime -# (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. -# eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - hostname=hostname - - cores=core1+core2 - - usage=usage - - waitTime=allTime-runningTime -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/cpu - # request mode: GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # request header content - headers: - apiVersion: v1 - # request parameter content - params: - param1: param1 - param2: param2 - # authorization - authorization: - # authorization method: Basic Auth, Digest Auth, Bearer Token - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - # parsing method for reponse data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # todo xmlPath-xmlPath script, prometheus-Prometheus data rules - parseType: jsonPath - parseScript: '$' - - - name: memory - priority: 1 - fields: - - field: hostname - type: 1 - instance: true - - field: total - type: 0 - unit: kb - - field: usage - type: 0 - unit: '%' - - field: speed - type: 0 - protocol: http - http: - host: ^_^host^_^ - port: ^_^port^_^ - url: /metrics/memory - method: GET - headers: - apiVersion: v1 - params: - param1: param1 - param2: param2 - authorization: - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - parseType: default -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-jdbc.md b/home/versioned_docs/version-v1.3.x/advanced/extend-jdbc.md deleted file mode 100644 index 5d92b3372c7..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-jdbc.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-jdbc -title: JDBC Protocol Custom Monitoring -sidebar_label: JDBC Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JDBC(support mysql,mariadb,postgresql,sqlserver at present) to customize Metric monitoring. -> JDBC protocol custom monitoring allows us to easily monitor Metrics we want by writing SQL query statement. - -### JDBC protocol collection process -【**System directly connected to MYSQL**】->【**Run SQL query statement**】->【**parse reponse data: oneRow, multiRow, columns**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of JDBC protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query SQL statements. - -### Data parsing method -We can obtain the corresponding Metric data through the data fields queried by SQL and the Metric mapping we need. At present, there are three mapping parsing methods:oneRow, multiRow, columns. - -#### **oneRow** -> Query a row of data, return the column name of the result set through query and map them to the queried field. - -eg: -queried Metric fields:one two three four -query SQL:select one, two, three, four from book limit 1; -Here the Metric field and the response data can be mapped into a row of collected data one by one. - -#### **multiRow** -> Query multiple rows of data, return the column names of the result set and map them to the queried fields. - -eg: -queried Metric fields:one two three four -query SQL:select one, two, three, four from book; -Here the Metric field and the response data can be mapped into multiple rows of collected data one by one. - -#### **columns** -> Collect a row of Metric data. By matching the two columns of queried data (key value), key and the queried field, value is the value of the query field. - -eg: -queried fields:one two three four -query SQL:select key, value from book; -SQL response data: - -| key | value | -|---------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | - -Here by mapping the Metric field with the key of the response data, we can obtain the corresponding value as collection and monitoring data. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_sql` which use the JDBC protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: db -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_sql -name: - zh-CN: 模拟MYSQL应用类型 - en-US: MYSQL EXAMPLE APP -# Monitoring parameter definition file is used to define required input parameter field structure definition Front-end page render input parameter box according to structure -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 80 - placeholder: 'Please enter the port' - - field: database - name: - zh-CN: 数据库名称 - en-US: Database - type: text - required: false - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: url - name: - zh-CN: Url - en-US: Url - type: text - required: false -# Metric group list -metrics: - - name: basic - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: version - type: 1 - instance: true - - field: port - type: 1 - - field: datadir - type: 1 - - field: max_connections - type: 0 - # (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - version - - version_compile_os - - version_compile_machine - - port - - datadir - - max_connections - # (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - port=port - - datadir=datadir - - max_connections=max_connections - - version=version+"_"+version_compile_os+"_"+version_compile_machine - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method:oneRow, multiRow, columns - queryType: columns - # sql - sql: show global variables where Variable_name like 'version%' or Variable_name = 'max_connections' or Variable_name = 'datadir' or Variable_name = 'port'; - url: ^_^url^_^ - - - name: status - priority: 1 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: threads_created - type: 0 - - field: threads_connected - type: 0 - - field: threads_cached - type: 0 - - field: threads_running - type: 0 - # (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - threads_created - - threads_connected - - threads_cached - - threads_running - # (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - threads_created=threads_created - - threads_connected=threads_connected - - threads_cached=threads_cached - - threads_running=threads_running - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'thread%' or Variable_name = 'com_commit' or Variable_name = 'com_rollback' or Variable_name = 'questions' or Variable_name = 'uptime'; - url: ^_^url^_^ - - - name: innodb - priority: 2 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: innodb_data_reads - type: 0 - unit: times - - field: innodb_data_writes - type: 0 - unit: times - - field: innodb_data_read - type: 0 - unit: kb - - field: innodb_data_written - type: 0 - unit: kb - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method:oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'innodb%'; - url: ^_^url^_^ -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-jmx.md b/home/versioned_docs/version-v1.3.x/advanced/extend-jmx.md deleted file mode 100644 index dfeec9b1573..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-jmx.md +++ /dev/null @@ -1,193 +0,0 @@ ---- -id: extend-jmx -title: JMX Protocol Custom Monitoring -sidebar_label: JMX Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JMX to customize Metric monitoring. -> JMX protocol custom monitoring allows us to easily monitor Metrics we want by config JMX Mbeans Object. - -### JMX protocol collection process -【**Peer Server Enable Jmx Service**】->【**HertzBeat Connect Peer Server Jmx**】->【**Query Jmx Mbean Object Data**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of JMX protocol. We need to configure JMX request parameters, configure which Metrics to obtain, and configure Mbeans Object. - -### Data parsing method - -By configuring the monitoring template YML metrics `field`, `aliasFields`, `objectName` of the `jmx` protocol to map and parse the `Mbean` object information exposed by the peer system. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -![](/img/docs/advanced/extend-point-1.png) - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_jvm` which use the JVM protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: service -# The monitoring type eg: linux windows tomcat mysql aws... -app: example_jvm -# The monitoring i18n name -name: - zh-CN: 自定义JVM虚拟机 - en-US: CUSTOM JVM -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 9999 - # field-param field key - - field: url - # name-param field display i18n name - name: - zh-CN: JMX URL - en-US: JMX URL - # type-param field type(most mapping the html input type) - type: text - # required-true or false - required: false - # hide param-true or false - hide: true - # param field input placeholder - placeholder: 'service:jmx:rmi:///jndi/rmi://host:port/jmxrmi' - # field-param field key - - field: username - # name-param field display i18n name - name: - zh-CN: 用户名 - en-US: Username - # type-param field type(most mapping the html input type) - type: text - # when type is text, use limit to limit string length - limit: 20 - # required-true or false - required: false - # hide param-true or false - hide: true - # field-param field key - - field: password - # name-param field display i18n name - name: - zh-CN: 密码 - en-US: Password - # type-param field type(most mapping the html input tag) - type: password - # required-true or false - required: false - # hide param-true or false - hide: true -# collect metrics config list -metrics: - # metrics - basic - - name: basic - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: VmName - type: 1 - - field: VmVendor - type: 1 - - field: VmVersion - type: 1 - - field: Uptime - type: 0 - unit: ms - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: jmx - # the config content when protocol is jmx - jmx: - # host: ipv4 ipv6 domain - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - # jmx mbean object name - objectName: java.lang:type=Runtime - url: ^_^url^_^ - - - name: memory_pool - priority: 1 - fields: - - field: name - type: 1 - instance: true - - field: committed - type: 0 - unit: MB - - field: init - type: 0 - unit: MB - - field: max - type: 0 - unit: MB - - field: used - type: 0 - unit: MB - units: - - committed=B->MB - - init=B->MB - - max=B->MB - - used=B->MB - # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field - aliasFields: - - Name - - Usage->committed - - Usage->init - - Usage->max - - Usage->used - # mapping and conversion expressions, use these and aliasField above to calculate metrics value - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - name=Name - - committed=Usage->committed - - init=Usage->init - - max=Usage->max - - used=Usage->used - protocol: jmx - jmx: - # host: ipv4 ipv6 domain - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - objectName: java.lang:type=MemoryPool,name=* - url: ^_^url^_^ -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-point.md b/home/versioned_docs/version-v1.3.x/advanced/extend-point.md deleted file mode 100644 index eba1811e4fc..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-point.md +++ /dev/null @@ -1,134 +0,0 @@ ---- -id: extend-point -title: Custom Monitoring -sidebar_label: Custom Monitoring ---- -> HertzBeat has custom monitoring ability. You only need to configure monitoring template yml to fit a custom monitoring type. -> Custom monitoring currently supports [HTTP protocol](extend-http),[JDBC protocol](extend-jdbc), [SSH protocol](extend-ssh), [JMX protocol](extend-jmx), [SNMP protocol](extend-snmp). And it will support more general protocols in the future. - -### Custom Monitoring Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - - -------- - -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example2` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: example2 -# The monitoring i18n name -name: - zh-CN: 模拟网站监测 - en-US: EXAMPLE WEBSITE -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 80 - # field-param field key - - field: uri - # name-param field display i18n name - name: - zh-CN: 相对路径 - en-US: URI - # type-param field type(most mapping the html input tag) - type: text - # when type is text, use limit to limit string length - limit: 200 - # required-true or false - required: false - # param field input placeholder - placeholder: 'Website uri path(no ip port) EG:/console' - # field-param field key - - field: ssl - # name-param field display i18n name - name: - zh-CN: 启用HTTPS - en-US: HTTPS - # type-param field type(most mapping the html input type) - type: boolean - # required-true or false - required: true - # field-param field key - - field: timeout - # name-param field display i18n name - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input tag) - type: number - # required-true or false - required: false - # hide param-true or false - hide: true - -metrics: - # metrics - summary, inner monitoring metrics (responseTime - response time, keyword - number of keywords) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: responseTime - type: 0 - unit: ms - - field: keyword - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url - url: ^_^uri^_^ - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH - method: GET - # if enabled https - ssl: ^_^ssl^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule - parseType: website - -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-snmp.md b/home/versioned_docs/version-v1.3.x/advanced/extend-snmp.md deleted file mode 100644 index c97aea1f766..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-snmp.md +++ /dev/null @@ -1,173 +0,0 @@ ---- -id: extend-snmp -title: SNMP Protocol Custom Monitoring -sidebar_label: SNMP Protocol Custom Monitoring ---- - -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SNMP to customize Metric monitoring. -> JMX protocol custom monitoring allows us to easily monitor Metrics we want by config SNMP MIB OIDs. - -### SNMP protocol collection process -【**Peer Server Enable SNMP Service**】->【**HertzBeat Connect Peer Server SNMP**】->【**Query Oids Data**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of Snmp protocol. We need to configure Snmp request parameters, configure which Metrics to obtain, and configure oids. - - -### Data parsing method - -By configuring the metrics `field`, `aliasFields`, and `oids` under the `snmp` protocol of the monitoring template YML to capture the data specified by the peer and parse the mapping. - - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -![](/img/docs/advanced/extend-point-1.png) - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_windows` which use the SNMP protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring -category: os -# The monitoring type eg: linux windows tomcat mysql aws... -app: windows -# The monitoring i18n name -name: - zh-CN: Windows操作系统 - en-US: OS Windows -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 161 - # field-param field key - - field: version - # name-param field display i18n name - name: - zh-CN: SNMP 版本 - en-US: SNMP Version - # type-param field type(radio mapping the html radio tag) - type: radio - # required-true or false - required: true - # when type is radio checkbox, use option to show optional values {name1:value1,name2:value2} - options: - - label: SNMPv1 - value: 0 - - label: SNMPv2c - value: 1 - # field-param field key - - field: community - # name-param field display i18n name - name: - zh-CN: SNMP 团体字 - en-US: SNMP Community - # type-param field type(most mapping the html input type) - type: text - # when type is text, use limit to limit string length - limit: 100 - # required-true or false - required: true - # param field input placeholder - placeholder: 'Snmp community for v1 v2c' - # field-param field key - - field: timeout - # name-param field display i18n name - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,100000]' - # required-true or false - required: false - # hide-is hide this field and put it in advanced layout - hide: true - # default value - defaultValue: 6000 -# collect metrics config list -metrics: - # metrics - system - - name: system - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: name - type: 1 - - field: descr - type: 1 - - field: uptime - type: 1 - - field: numUsers - type: 0 - - field: services - type: 0 - - field: processes - type: 0 - - field: responseTime - type: 0 - unit: ms - - field: location - type: 1 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: snmp - # the config content when protocol is snmp - snmp: - # server host: ipv4 ipv6 domain - host: ^_^host^_^ - # server port - port: ^_^port^_^ - # snmp connect timeout - timeout: ^_^timeout^_^ - # snmp community - community: ^_^community^_^ - # snmp version - version: ^_^version^_^ - # snmp operation: get, walk - operation: get - # metrics oids: metric_name - oid_value - oids: - name: 1.3.6.1.2.1.1.5.0 - descr: 1.3.6.1.2.1.1.1.0 - uptime: 1.3.6.1.2.1.25.1.1.0 - numUsers: 1.3.6.1.2.1.25.1.5.0 - services: 1.3.6.1.2.1.1.7.0 - processes: 1.3.6.1.2.1.25.1.6.0 - location: 1.3.6.1.2.1.1.6.0 -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-ssh.md b/home/versioned_docs/version-v1.3.x/advanced/extend-ssh.md deleted file mode 100644 index 8a6c1ae63cc..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-ssh.md +++ /dev/null @@ -1,205 +0,0 @@ ---- -id: extend-ssh -title: SSH Protocol Custom Monitoring -sidebar_label: SSH Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SSH protocol to customize Metric monitoring. -> SSH protocol custom monitoring allows us to easily monitor and collect the Linux Metrics we want by writing sh command script. - -### SSH protocol collection process -【**System directly connected to Linux**】->【**Run shell command script statement**】->【**parse response data: oneRow, multiRow**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of SSH protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query script statements. - -### Data parsing method -We can obtain the corresponding Metric data through the data fields queried by the SHELL script and the Metric mapping we need. At present, there are two mapping parsing methods:oneRow and multiRow which can meet the needs of most Metrics. - -#### **oneRow** -> Query out a column of data, return the field value (one value per row) of the result set through query and map them to the field. - -eg: -Metrics of Linux to be queried hostname-host name,uptime-start time -Host name original query command:`hostname` -Start time original query command:`uptime | awk -F "," '{print $1}'` -Then the query script of the two Metrics in hertzbeat is(Use `;` Connect them together): -`hostname; uptime | awk -F "," '{print $1}'` -The data responded by the terminal is: -``` -tombook -14:00:15 up 72 days -``` -At last collected Metric data is mapped one by one as: -hostname is `tombook` -uptime is `14:00:15 up 72 days` - -Here the Metric field and the response data can be mapped into a row of collected data one by one - -#### **multiRow** -> Query multiple rows of data, return the column names of the result set through the query, and map them to the Metric field of the query. - -eg: -Linux memory related Metric fields queried:total-Total memory, used-Used memory,free-Free memory, buff-cache-Cache size, available-Available memory -Memory metrics original query command:`free -m`, Console response: -```shell - total used free shared buff/cache available -Mem: 7962 4065 333 1 3562 3593 -Swap: 8191 33 8158 -``` -In hertzbeat multiRow format parsing requires a one-to-one mapping between the column name of the response data and the indicaotr value, so the corresponding query SHELL script is: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -Console response is: -```shell -total used free buff_cache available -7962 4066 331 3564 3592 -``` - -Here the Metric field and the response data can be mapped into collected data one by one. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_linux` which use the SSH protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: os -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_linux -name: - zh-CN: 模拟LINUX应用类型 - en-US: LINUX EXAMPLE APP -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 22 - placeholder: 'Please enter the port' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: true -# Metric group list -metrics: - # The first monitoring Metric group basic - # Note:: the built-in monitoring Metrics have (responseTime - response time) - - name: basic - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - instance: true - - field: version - type: 1 - - field: uptime - type: 1 - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: (uname -r ; hostname ; uptime | awk -F "," '{print $1}' | sed "s/ //g") | sed ":a;N;s/\n/^/g;ta" | awk -F '^' 'BEGIN{print "version hostname uptime"} {print $1, $2, $3}' - # parsing method for reponse data:oneRow, multiRow - parseType: multiRow - - - name: cpu - priority: 1 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: info - type: 1 - - field: cores - type: 0 - unit: the number of cores - - field: interrupt - type: 0 - unit: number - - field: load - type: 1 - - field: context_switch - type: 0 - unit: number - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # 主机host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: "LANG=C lscpu | awk -F: '/Model name/ {print $2}';awk '/processor/{core++} END{print core}' /proc/cpuinfo;uptime | sed 's/,/ /g' | awk '{for(i=NF-2;i<=NF;i++)print $i }' | xargs;vmstat 1 1 | awk 'NR==3{print $11}';vmstat 1 1 | awk 'NR==3{print $12}'" - parseType: oneRow - - - name: memory - priority: 2 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: total - type: 0 - unit: Mb - - field: used - type: 0 - unit: Mb - - field: free - type: 0 - unit: Mb - - field: buff_cache - type: 0 - unit: Mb - - field: available - type: 0 - unit: Mb - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}' - parseType: multiRow -``` diff --git a/home/versioned_docs/version-v1.3.x/advanced/extend-tutorial.md b/home/versioned_docs/version-v1.3.x/advanced/extend-tutorial.md deleted file mode 100644 index d752afd544e..00000000000 --- a/home/versioned_docs/version-v1.3.x/advanced/extend-tutorial.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-tutorial -title: Quick Tutorial Customize and adapt a monitoring based on HTTP protocol -sidebar_label: Tutorial Case ---- - -Through this tutorial, we describe step by step how to customize and adapt a monitoring type based on the http protocol under the hertzbeat monitoring tool. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [Http Protocol Customization](extend-http). - - -### HTTP protocol parses the general response structure to obtain metrics data - -> In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API -`http://localhost:1157/api/summary`, the response data is: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**This time we get the metrics data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** - - -### Add Monitoring Template Yml - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - - field: app - type: 1 - instance: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - method: GET - # if enabled https, default value is false - ssl: ^_^ssl^_^ - # http auth - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - parseType: jsonPath - parseScript: '$.data.apps.*' -``` - -**The addition is complete, now we restart the hertzbeat system. We can see that the system page has added a `hertzbeat` monitoring type. ** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### The system page adds the monitoring of `hertzbeat` monitoring type - -> We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! - - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. Thanks for the old iron support. Refill! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/help/activemq.md b/home/versioned_docs/version-v1.3.x/help/activemq.md deleted file mode 100644 index 52e3090fde2..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/activemq.md +++ /dev/null @@ -1,145 +0,0 @@ ---- -id: activemq -title: Monitoring Apache ActiveMQ -sidebar_label: Apache ActiveMQ -keywords: [open source monitoring tool, monitoring Apache ActiveMQ metrics] ---- - -> Monitoring the running status of Apache ActiveMQ message middleware, nodes, topics and other related metrics. - -**Use Protocol: JMX** - -### Pre-monitoring Operations - -> You need to enable the `JMX` service on ActiveMQ, HertzBeat uses the JMX protocol to collect metrics from ActiveMQ. - -1. Modify the `conf/activemq.xml` file in the installation directory to enable JMX - -> Add `userJmx="true"` attribute in `broker` tag - -```xml - - - -``` - -2. Modify the `bin/env` file in the installation directory, configure the JMX port IP, etc. - -The original configuration information will be as follows -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -Update to the following configuration, ⚠️ pay attention to modify `local external IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -3. Restart the ACTIVEMQ service, and add the corresponding ActiveMQ monitoring in HertzBeat. The parameters use the IP port configured by JMX. - -### Configuration parameters - -| Parameter name | Parameter help description | -|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| JMX port | The HTTP port provided by JMX, the default is 11099. | -| JMX URL | Optional, customize the JMX URL connection | -| Username | Username used for authentication | -| password | password used for authentication | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect Metrics - -#### metrics: broker - -| Metric Name | Unit | Description | -|-------------------------|------|-----------------------------------------------------------------------| -| BrokerName | None | The name of the broker. | -| BrokerVersion | None | The version of the broker. | -| Uptime | None | Uptime of the broker. | -| UptimeMillis | ms | Uptime of the broker in milliseconds. | -| Persistent | None | Messages are synchronized to disk. | -| MemoryPercentUsage | % | Percent of memory limit used. | -| StorePercentUsage | % | Percent of store limit used. | -| TempPercentUsage | % | Percent of temp limit used. | -| CurrentConnectionsCount | None | Attribute exposed for management | -| TotalConnectionsCount | None | Attribute exposed for management | -| TotalEnqueueCount | None | Number of messages that have been sent to the broker. | -| TotalDequeueCount | None | Number of messages that have been acknowledged on the broker. | -| TotalConsumerCount | None | Number of message consumers subscribed to destinations on the broker. | -| TotalProducerCount | None | Number of message producers active on destinations on the broker. | -| TotalMessageCount | None | Number of unacknowledged messages on the broker. | -| AverageMessageSize | None | Average message size on this broker | -| MaxMessageSize | None | Max message size on this broker | -| MinMessageSize | None | Min message size on this broker | - -#### metrics: topic - -| Metric Name | Unit | Description | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | None | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | None | The percentage of the memory limit used | -| ProducerCount | None | Number of producers attached to this destination | -| ConsumerCount | None | Number of consumers subscribed to this destination. | -| EnqueueCount | None | Number of messages that have been sent to the destination. | -| DequeueCount | None | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | None | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | None | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | None | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | None | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - - -#### metrics: memory_pool - -| Metric Name | Unit | Description | -|-------------| ----------- |----------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### metrics: class_loading - -| Metric Name | Unit | Description | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### metrics: thread - -| Metric Name | Unit | Description | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | diff --git a/home/versioned_docs/version-v1.3.x/help/airflow.md b/home/versioned_docs/version-v1.3.x/help/airflow.md deleted file mode 100644 index 25d9543c8fa..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/airflow.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: airflow -title: 监控:Apache Airflow监控 -sidebar_label: Apache Airflow -keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ---- - -> 对Apache Airflow通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 监控名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:airflow_health - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | - -#### 指标集合:airflow_version - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - diff --git a/home/versioned_docs/version-v1.3.x/help/alert_console.md b/home/versioned_docs/version-v1.3.x/help/alert_console.md deleted file mode 100644 index e727fec4771..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_console.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: alert_console -title: Custom console address in alarm template -sidebar_label: Console address in alarm template ---- - -> After the threshold is triggered, send the alarm information. When you notify through DingDing / enterprise Wechat / FeiShu robot or email, the alarm content has a detailed link to log in to the console. - - -### Custom settings - -In our startup configuration file application.yml, find the following configuration -```yml -alerter: - console-url: #Here is our custom console address -``` - -The default value is the official console address of HertzBeat. \ No newline at end of file diff --git a/home/versioned_docs/version-v1.3.x/help/alert_dingtalk.md b/home/versioned_docs/version-v1.3.x/help/alert_dingtalk.md deleted file mode 100644 index fb63d52aa48..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_dingtalk.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: alert_dingtalk -title: Alert DingDing robot notification -sidebar_label: Alert DingDing robot notification -keywords: [open source monitoring tool, open source alerter, open source DingDing robot notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by DingDing robot. - -### Operation steps - -1. **【DingDing desktop client】-> 【Group settings】-> 【Intelligent group assistant】-> 【Add new robot-select custom】-> 【Set robot name and avatar】-> 【Note⚠️Set custom keywords: HertzBeat】 ->【Copy its webhook address after adding successfully】** - -> Note⚠️ When adding a robot, its custom keywords need to be set in the security setting block: HertzBeat. Other security settings or the IP segment don't need to be filled in. - -![email](/img/docs/help/alert-notice-8.png) - -2. **【Save access_token value of the WebHook address of the robot】** - -> eg: webHook address:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> Its robot access_token value is `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` - -3. **【Alarm notification】->【Add new recipient】 ->【Select DingDing robot notification method】->【Set DingDing robot ACCESS_TOKEN】-> 【Confirm】** - -![email](/img/docs/help/alert-notice-9.png) - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### DingDing robot common issues - -1. DingDing group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether DingDing robot is configured with security custom keywords :HertzBeat. -> Please check whether the robot ACCESS_TOKEN is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_discord.md b/home/versioned_docs/version-v1.3.x/help/alert_discord.md deleted file mode 100644 index 8dfdca384fa..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_discord.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -id: alert_discord -title: Alert Discord Bot Notifications -sidebar_label: Alert Discord bot notification -keywords: [open source monitoring tool, open source alerter, open source Discord bot notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Discord robot. - -## Steps - -### Create an application in Discord, create a robot under the application, and get the robot Token - -1. Visit [https://discord.com/developers/applications](https://discord.com/developers/applications) to create an application - -![bot](/img/docs/help/discord-bot-1.png) - -2. Create a robot under the application and get the robot Token - -![bot](/img/docs/help/discord-bot-2.png) - -![bot](/img/docs/help/discord-bot-3.png) - -3. Authorize the bot to the chat server - -> Authorize the robot under the OAuth2 menu, select `bot` for `SCOPES`, `BOT PERMISSIONS` select `Send Messages` - -![bot](/img/docs/help/discord-bot-4.png) - -> Obtain the URL generated at the bottom, and the browser accesses this URL to officially authorize the robot, that is, to set which chat server the robot will join. - -4. Check if your chat server has joined robot members - -![bot](/img/docs/help/discord-bot-5.png) - -### Enable developer mode and get Channel ID - -1. Personal Settings -> Advanced Settings -> Enable Developer Mode - -![bot](/img/docs/help/discord-bot-6.png) - -2. Get channel Channel ID - -> Right-click the chat channel you want to send the robot message to, click the COPY ID button to get the Channel ID - -![bot](/img/docs/help/discord-bot-7.png) - - -### Add an alarm notification person in HertzBeat, the notification method is Discord Bot - -1. **[Alarm notification] -> [Add recipient] -> [Select Discord robot notification method] -> [Set robot Token and ChannelId] -> [OK]** - -![email](/img/docs/help/discord-bot-8.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Discord Bot Notification FAQ - -1. Discord doesn't receive bot alert notifications - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and ChannelId are configured correctly, and whether the alarm policy association has been configured -> Please check whether the bot is properly authorized by the Discord chat server - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_email.md b/home/versioned_docs/version-v1.3.x/help/alert_email.md deleted file mode 100644 index 353ae4673fe..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_email.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_email -title: Alert email notification -sidebar_label: Alert email notification -keywords: [open source monitoring tool, open source alerter, open source email notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by email. - -### Operation steps - -1. **【Alarm notification】->【Add new recipient】 ->【Select email notification method】** - -![email](/img/docs/help/alert-notice-1.png) - -2. **【Get verification code】-> 【Enter email verification code】-> 【Confirm】** -![email](/img/docs/help/alert-notice-2.png) - -![email](/img/docs/help/alert-notice-3.png) - -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### Email notification common issues - -1. Hertzbeat deployed on its own intranet cannot receive email notifications -> Hertzbeat needs to configure its own mail server, not tancloud. Please confirm whether you have configured its own mail server in application.yml - -2. Cloud environment tancloud cannot receive email notification -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the mailbox is configured correctly and whether the alarm strategy association is configured. -> Please check whether the warning email is blocked in the trash can of the mailbox. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_enterprise_wechat_app.md b/home/versioned_docs/version-v1.3.x/help/alert_enterprise_wechat_app.md deleted file mode 100644 index f9e072e436a..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_enterprise_wechat_app.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_enterprise_wechat_app -title: Alert Enterprise Wechat App notification -sidebar_label: Alert Enterprise Wechat App notification -keywords: [open source monitoring tool, open source alerter, open source Enterprise Wechat App notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by enterprise WeChat App. - -### Operation steps - -1. **【Enterprise Wechat backstage】-> 【App Management】-> 【Create an app】-> 【Set App message】->【Copy AgentId and Secret adding successfully】** - -![email](/img/docs/help/alert-wechat-1.jpg) - -2. **【Alarm notification】->【Add new recipient】 ->【Select Enterprise WeChat App notification method】->【Set Enterprise WeChat ID,Enterprise App ID and Enterprise App Secret 】-> 【Confirm】** - -![email](/img/docs/help/alert-wechat-2.jpg) - -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-wechat-3.jpg) - - -### Enterprise WeChat App common issues - -1. Enterprise WeChat App did not receive the alarm notification. -> Please check if the user has application permissions. -> Please check if the enterprise application callback address settings are normal. -> Please check if the server IP is on the enterprise application whitelist. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_feishu.md b/home/versioned_docs/version-v1.3.x/help/alert_feishu.md deleted file mode 100644 index 56606012021..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_feishu.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_feishu -title: Alert FeiShu robot notification -sidebar_label: Alert FeiShu robot notification -keywords: [open source monitoring tool, open source alerter, open source feishu bot notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by FeiShu robot. - -### Operation steps - -1. **【FeiShu client】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** - -2. **【Save the key value of the WebHook address of the robot】** - -> eg: webHook address:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【Alarm notification】->【Add new recipient】 ->【Select FeiShu robot notification method】->【Set FeiShu robot KEY】-> 【Confirm】** - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### FeiShu robot notification common issues - -1. FeiShu group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_slack.md b/home/versioned_docs/version-v1.3.x/help/alert_slack.md deleted file mode 100644 index 0de69afa328..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_slack.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_slack -title: Alert Slack Webhook Notifications -sidebar_label: Alert Slack Webhook Notification -keywords: [open source monitoring tool, open source alerter, open source slack webhook notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Slack Webhook. - -## Steps - -### Open Webhook in Slack, get Webhook URL - -Refer to the official website document [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) - -### Add an alarm notifier to HertzBeat, and the notification method is Slack Webhook - -1. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Webhook URL】-> 【OK】** - -![email](/img/docs/help/slack-bot-1.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Slack Notification FAQ - -1. Slack did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the slack webhook url are configured correctly, and whether the alarm policy association has been configured - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_smn.md b/home/versioned_docs/version-v1.3.x/help/alert_smn.md deleted file mode 100644 index b4013b9f902..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_smn.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: alert_smn -title: Alert Huawei Cloud SMN Notifications -sidebar_label: Alert Huawei Cloud SMN Notifications -keywords: [ open source monitoring tool, open source alerter, open source Huawei Cloud SMN notification ] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Huawei Cloud SMN. - -### 操作步骤 - -1. **According to [Huawei Cloud SMN Official Document](https://support.huaweicloud.com/qs-smn/smn_json.html) activate the SMN service and configure SMN** - -![alert-notice-10](/img/docs/help/alert-notice-10.png) - -2. **Save topic URN for SMN** - -![alert-notice-11](/img/docs/help/alert-notice-11.png) - -3. **According to [Huawei Cloud Signature Document](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html) obtain AK, SK, and project ID** - -![alert-notice-12](/img/docs/help/alert-notice-12.png) - -![alert-notice-13](/img/docs/help/alert-notice-13.png) - -4. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Huawei Cloud SMN AK, SK and other configurations】-> 【OK】** - -![alert-notice-14](/img/docs/help/alert-notice-14.png) - -5. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-4.png) - -### Huawei Cloud SMN Notification FAQ - -1. Huawei Cloud SMN did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the Huawei Cloud SMN AK, SK and other configurations are configured correctly, and whether the alarm policy association has been configured - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_telegram.md b/home/versioned_docs/version-v1.3.x/help/alert_telegram.md deleted file mode 100644 index 1fbe4f0ae7e..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_telegram.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: alert_telegram -title: Alert Telegram Bot Notification -sidebar_label: Alert Telegram bot notification -keywords: [open source monitoring tool, open source alerter, open source Telegram bot notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Telegram robot. - -## Steps - -### Create a bot in Telegram, get Bot Token and UserId - -1. Use [@BotFather](https://t.me/BotFather) to create your own bot and get an access token `Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. Get the `User ID` of the recipient - -**Use the recipient account you want to notify to send a message to the newly created Bot account**, -Visit ```https://api.telegram.org/bot/getUpdates```, **`use the Bot Token from the previous step to replace the `**, and respond to the first in the `Json` data A `result.message.from.id` value is the recipient's `User ID` - -```json -{ - "ok": true, - "result": [ - { - "update_id": 632299191, - "message": { - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date": 1673858065, - "text": "111" - } - } - ] -} -``` - -3. Record and save the `Token` and `User Id` we got - -### Add an alarm notification person to HertzBeat, the notification method is Telegram Bot - -1. **【Alarm Notification】->【Add Recipient】->【Select Telegram Robot Notification Method】->【Set Robot Token and UserId】-> 【OK】** - -![email](/img/docs/help/telegram-bot-2.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Telegram Bot Notification FAQ - -1. Telegram did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and UserId are configured correctly, and whether the alarm policy association has been configured -> UserId should be the UserId of the recipient of the message - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_threshold.md b/home/versioned_docs/version-v1.3.x/help/alert_threshold.md deleted file mode 100644 index 893f674164d..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_threshold.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_threshold -title: Threshold alarm configuration -sidebar_label: Threshold alarm configuration ---- - -> Configure the alarm threshold (warning alarm, critical alarm, emergency alarm) for the monitoring Metrics, and the system calculates and triggers the alarm according to the threshold configuration and the collected Metric data. - -### Operation steps - -1. **【Alarm configuration】->【Add new threshold】-> 【Confirm after configuration】** - -![threshold](/img/docs/help/alert-threshold-1.png) - -As shown above: - -**Metric object**:Select the monitoring Metric object for which we need to configure the threshold. Eg:website monitoring type -> summary Metric set -> responseTime-response time Metric -**Threshold trigger expression**:Calculate and judge whether to trigger the threshold according to this expression. See the page prompts for expression environment variables and operators. Eg:set the response time greater than 50 to trigger an alarm, and the expression is `responseTime > 50`. For detailed help on threshold expression, see [Threshold expression help](alert_threshold_expr) -**Alarm level**:The alarm level that triggers the threshold, from low to high: warning, critical, emergency. -**Trigger times**:How many times will the threshold be triggered before the alarm is really triggered. -**Notification template**:Notification information Template sent after alarm triggering, See page prompts for template environment variables, eg:`${app}.${metrics}.${metric} Metric's value is ${responseTime}, greater than 50 triggers an alarm` -**Global default**: Set whether this threshold is valid for such global Metrics, and the default is No. After adding a new threshold, you need to associate the threshold with the monitoring object, so that the threshold will take effect for this monitoring. -**Enable alarm**:This alarm threshold configuration is enabled or disabled. - -2. **Threshold association monitoring⚠️ 【Alarm configuration】-> 【Threshold just set】-> 【Configure associated monitoring】-> 【Confirm after configuration】** - -> **Note⚠️ After adding a new threshold, you need to associate the threshold with the monitoring object(That is, to set this threshold for which monitoring is effective), so that the threshold will take effect for this monitoring.**。 - -![threshold](/img/docs/help/alert-threshold-2.png) - -![threshold](/img/docs/help/alert-threshold-3.png) - -**After the threshold alarm is configured, the alarm information that has been successfully triggered can be seen in 【alarm center】.** -**If you need to notify the relevant personnel of the alarm information by email, Wechat, DingDing and Feishu, it can be configured in 【alarm notification】.** - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_threshold_expr.md b/home/versioned_docs/version-v1.3.x/help/alert_threshold_expr.md deleted file mode 100644 index e211514cad2..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_threshold_expr.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: alert_threshold_expr -title: Threshold trigger expression -sidebar_label: Threshold trigger expression ---- - -> When we configure the threshold alarm, we need to configure the threshold trigger expression. The system calculates whether to trigger the alarm according to the expression and the monitoring index value. Here is a detailed introduction to the use of the expression. - -#### Operators supported by expressions - -``` -equals(str1,str2) -== -< -<= -> ->= -!= -( ) -+ -- -&& -|| -``` - -Rich operators allow us to define expressions freely. -Note⚠️ For the equality of string, please use `equals(str1,str2)`, while for the equality judgment of number, please use == or != - -#### Supported environment variables -> Environment variables, i.e. supported variables such as Metric values, are used in the expression. When the threshold value is calculated and judged, the variables will be replaced with actual values for calculation. - -Non fixed environment variables:These variables will change dynamically according to the monitoring Metric object we choose. For example, if we choose **response time Metric of website monitoring**, the environment variables will have `responseTime - This is the response time variable` -If we want to set **when the response time of website monitoring is greater than 400** to trigger an alarm,the expression is `responseTime>400` - -Fixed environment variables(Rarely used):`instance : Row instance value` -This variable is mainly used to calculate multiple instances. For example, we collected `usage`(`usage is non fixed environment variables`) of disk C and disk D, but we only want to set the alarm when **the usage of C disk is greater than 80**. Then the expression is `equals(instance,"c")&&usage>80` - -#### Expression setting case - -1. Website monitoring -> Trigger alarm when the response time is greater than or equal to 400ms -`responseTime>=400` -2. API monitoring -> Trigger alarm when the response time is greater than 3000ms -`responseTime>3000` -3. Entire site monitoring -> Trigger alarm when URL(instance) path is `https://baidu.com/book/3` and the response time is greater than 200ms -`equals(instance,"https://baidu.com/book/3")&&responseTime>200` -4. MYSQL monitoring -> status Metric group -> Trigger alarm when hreads_running(number of running threads) Metric is greater than 7 -`threads_running>7` - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_webhook.md b/home/versioned_docs/version-v1.3.x/help/alert_webhook.md deleted file mode 100644 index 0a7af9ada21..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_webhook.md +++ /dev/null @@ -1,67 +0,0 @@ ---- -id: alert_webhook -title: Alert WebHook callback notification -sidebar_label: Alert webHook notification -keywords: [open source monitoring tool, open source alerter, open source webhook notification] ---- - -> After the threshold is triggered send alarm information and call the Webhook interface through post request to notify the recipient. - -### Operation steps - -1. **【Alarm notification】->【Add new recipient】 ->【Select WebHook notification method】-> 【Set WebHook callback address】 -> 【Confirm】** - -![email](/img/docs/help/alert-notice-5.png) - -2. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - -### WebHook callback POST body BODY content - -Content format:JSON -```json -{ - "id":76456, - "target":"available", - "alertDefineId":232, - "priority":0, - "content":"监控紧急可用性告警: UN_CONNECTABLE", - "tag": { - "monitorId": 3543534545, - "monitorName":"API_poetry.didi.top" - }, - "status":0, - "times":1, - "gmtCreate":"2022-02-25T13:32:13", - "gmtUpdate":"2022-02-25T13:32:13" -} -``` - -| | | -|-----|-----| -| id | integer($int64) title: Alarm record entity primary key index ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field | -| alertDefineId integer($int64) title: Alarm definition ID associated with the alarm | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow | -| content | string title: The actual content of the alarm notification | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed | -| times | integer($int32) title: Alarm threshold trigger times | -| firstTriggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) | -| lastTriggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) | -| nextEvalInterval | integer($int64) title: Alarm evaluation interval (milliseconds) | -| tags | example: {key1:value1} | -| gmtCreate | string($date-time) title: Record the latest creation time (timestamp in milliseconds) | -| gmtUpdate | string($date-time) | - - - -### Webhook notification common issues - -1. WebHook callback did not take effect -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the configured webhook callback address is correct. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/alert_wework.md b/home/versioned_docs/version-v1.3.x/help/alert_wework.md deleted file mode 100644 index e862fae7ddf..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/alert_wework.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_wework -title: Alert enterprise Wechat notification -sidebar_label: Alert enterprise Wechat notification -keywords: [open source monitoring tool, open source alerter, open source WeWork notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by enterprise Wechat robot. - -### Operation steps - -1. **【Enterprise Wechat】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** - -![email](/img/docs/help/alert-notice-6.jpg) - -2. **【Save the key value of the WebHook address of the robot】** - -> eg: webHook address:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【Alarm notification】->【Add new recipient】 ->【Select enterprise Wechat robot notification method】->【Set enterprise Wechat robot KEY】-> 【Confirm】** - -![email](/img/docs/help/alert-notice-7.png) - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### Enterprise Wechat robot common issues - -1. The enterprise wechat group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.3.x/help/api.md b/home/versioned_docs/version-v1.3.x/help/api.md deleted file mode 100644 index ed92a722091..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/api.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: api -title: Monitoring HTTP API -sidebar_label: HTTP API -keywords: [open source monitoring tool, monitoring http api] ---- - -> Call HTTP API interface, check whether the interface is available, and monitor its response time and other Metrics. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Request mode | Set the request mode of interface call:GET, POST, PUT, DELETE | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Username | User name used for interface Basic authentication or Digest authentication | -| Password | Password used for interface Basic authentication or Digest authentication | -| Content-Type | Set the resource type when carrying the BODY request body data request | -| Request BODY | Set the carry BODY request body data, which is valid when PUT or POST request method is used | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - diff --git a/home/versioned_docs/version-v1.3.x/help/centos.md b/home/versioned_docs/version-v1.3.x/help/centos.md deleted file mode 100644 index 2a6ad2b0a6d..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/centos.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: centos -title: CentOS operating system monitoring -sidebar_label: CentOS operating system -keywords: [open source monitoring tool, open source os monitoring tool, monitoring CentOS operating system metrics] ---- - -> Collect and monitor the general performance Metrics of CentOS operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.3.x/help/dm.md b/home/versioned_docs/version-v1.3.x/help/dm.md deleted file mode 100644 index 91b032fdf54..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/dm.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: dm -title: Monitoring DM database -sidebar_label: DM Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring DM database metrics] ---- - -> Collect and monitor the general performance metrics of the DM database. DM8+ is supported. - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------- | ---------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 5236. | -| Query Timeout | Set the timeout when the SQL query does not respond to data, in ms milliseconds, the default is 3000 milliseconds. | -| database name | database instance name, optional. | -| username | database connection username, optional | -| password | database connection password, optional | -| URL | Database connection URL, optional | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: basic - -| Metric Name | Metric Unit | Metric Help Description | -| ------------ | -------- | ------------------ | -| PORT_NUM | None | Database exposed service port | -| CTL_PATH | None | Control File Path | -| MAX_SESSIONS | None | Maximum database connections | - -#### Metric collection: status - -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------------ | -| status$ | None | Open/Close status of DM database | - - -#### Metric collection: thread - -| Metric Name | Metric Unit | Metric Help Description | -| ------------- | -------- | ------------------------- | -| dm_sql_thd | None | Thread for writing dmsql dmserver | -| dm_io_thd | None | IO threads, controlled by IO_THR_GROUPS parameter, default is 2 threads | -| dm_quit_thd | None | Thread used to perform a graceful shutdown of the database | diff --git a/home/versioned_docs/version-v1.3.x/help/docker.md b/home/versioned_docs/version-v1.3.x/help/docker.md deleted file mode 100644 index fdd3098ce55..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/docker.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: docker -title: Monitor:Docker Monitor -sidebar_label: Docker Monitor -keywords: [open source monitoring tool, open source docker monitoring tool, monitoring docker metrics] ---- - -> Collect and monitor general performance Metrics of Docker containers. - - -## Pre-monitoring operations - -If you want to monitor the container information in `Docker`, you need to open the port according to the following steps, so that the collection request can obtain the corresponding information. - -**1. Edit the docker.server file:** - -````shell -vi /usr/lib/systemd/system/docker.service -```` - -Find the **[Service]** node, modify the ExecStart property, and add `-H tcp://0.0.0.0:2375` - -````shell -ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -```` - -This is equivalent to the **2375** port that is open to the outside world. Of course, it can be modified to other ports according to your own situation. - -**2. Reload the Docker configuration to take effect:** - -```shell -systemctl daemon-reload -systemctl restart docker -```` - -**Note: Remember to open the `2375` port number in the server console. ** - -**3. If the above method does not work:** - -Open the `2375` port number inside the server. - -```shell -firewall-cmd --zone=public --add-port=2375/tcp --permanent -firewall-cmd --reload -```` - - - - - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------------ | ------------------------------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 2375. | -| Query Timeout | Set the timeout when getting the Docker server API interface, in ms, the default is 3000 ms. | -| Container Name | Generally monitors all running container information. | -| username | connection username, optional | -| password | connection password, optional | -| URL | Database connection URL, optional, if configured, the parameters such as database name, username and password in the URL will override the parameters configured above | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: system - -| Metric Name | Metric Unit | Metric Help Description | -| ------------------ | -------- | ----------------------- | -| Name | None | Server Name | -| version | none | docker version number | -| os | none | server version eg: linux x86_64 | -| root_dir | none | docker folder directory eg: /var/lib/docker | -| containers | None | Total number of containers (running + not running) | -| containers_running | None | Number of running containers | -| containers_paused | none | number of containers in pause | -| images | None | The total number of container images. | -| ncpu | none | ncpu | -| mem_total | MB | Total size of memory used | -| system_time | none | system time | - -#### Metric collection: containers - -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------ | -| id | None | The ID of the container in Docker | -| name | None | The container name in the Docker container | -| image | None | Image used by the Docker container | -| command | None | Default startup command in Docker | -| state | None | The running state of the container in Docker | -| status | None | Update time in Docker container | - -#### Metrics collection: stats - -| Metric Name | Metric Unit | Metric Help Description | -| ---------------- | -------- | ------------------ | -| name | None | The name in the Docker container | -| available_memory | MB | The amount of memory that the Docker container can utilize | -| used_memory | MB | The amount of memory already used by the Docker container | -| memory_usage | None | Memory usage of the Docker container | -| cpu_delta | None | The number of CPUs already used by the Docker container | -| number_cpus | None | The number of CPUs that the Docker container can use | -| cpu_usage | None | Docker container CPU usage | diff --git a/home/versioned_docs/version-v1.3.x/help/doris_be.md b/home/versioned_docs/version-v1.3.x/help/doris_be.md deleted file mode 100644 index 8b1d202002e..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/doris_be.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -id: doris_be -title: 监控:DORIS数据库BE监控 -sidebar_label: DORIS数据库BE -keywords: [开源监控系统, 开源数据库监控, DORIS数据库BE监控] ---- - -> 对DORIS数据库FE的通用性能指标进行采集监控。支持DORIS2.0.0。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 监控名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8040 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| 数据库名称 | 数据库实例名称,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:doris_be_load_channel_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | 当前打开的 load channel 个数 | - -#### 指标集合:doris_be_memtable_flush_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | memtable写入磁盘的个数累计值 | - -#### 指标集合:doris_be_plan_fragment_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------- | -| value | 无 | 当前已接收的 fragment instance 的数量 | - -#### 指标集合:doris_be_process_thread_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------- | -| value | 无 | BE 进程线程数。通过 `/proc/pid/task` 采集 | - -#### 指标集合:doris_be_query_scan_rows - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 读取行数的累计值。这里只统计读取 Olap 表的数据量。并且是 RawRowsRead(部分数据行可能被索引跳过,并没有真正读取,但仍会记录到这个值中) | - -#### 指标集合:doris_be_result_buffer_block_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 当前查询结果缓存中的 query 个数 | - -#### 指标集合:doris_be_send_batch_thread_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------------- | -| value | 无 | 导入时用于发送数据包的线程池的排队个数 | - -#### 指标集合:doris_be_tablet_base_max_compaction_score - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| value | 无 | 当前最大的 Base Compaction Score | - -#### 指标集合:doris_be_timeout_canceled_fragment_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------- | -| value | 无 | 因超时而被取消的 fragment instance 数量累计值 | - -#### 指标集合:doris_be_load_rows - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 通过 tablet sink 发送的行数累计 | - -#### 指标集合:doris_be_all_rowsets_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| value | 无 | 当前所有 rowset 的个数 | - -#### 指标集合:doris_be_all_segments_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前所有 segment 的个数 | - -#### 指标集合:doris_be_heavy_work_max_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc heavy线程池线程个数 | - -#### 指标集合:doris_be_light_work_max_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc light线程池线程个数 | - -#### 指标集合:doris_be_heavy_work_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc heavy线程池队列最大长度,超过则阻塞提交work | - -#### 指标集合:doris_be_light_work_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc light线程池队列最大长度,超过则阻塞提交work | - -#### 指标集合:doris_be_heavy_work_active_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc heavy线程池活跃线程数 | - -#### 指标集合:doris_be_light_work_active_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc light线程池活跃线程数 | - -#### 指标集合:doris_be_compaction_bytes_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------------------------- | -| base | 字节 | Base Compaction 的数据量累计 | -| cumulative | 字节 | Cumulative Compaction 的数据量累计 | - -#### 指标集合:doris_be_disks_avail_capacity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的剩余空间 | - -#### 指标集合:doris_be_disks_total_capacity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的全部空间 | - -#### 指标集合:doris_be_local_bytes_read_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileReader` 读取的字节数 | - -#### 指标集合:doris_be_local_bytes_written_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileWriter` 写入的字节数 | - -#### 指标集合:doris_be_memory_allocated_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------------- | -| value | 字节 | BE 进程物理内存大小,取自 `/proc/self/status/VmRSS` | \ No newline at end of file diff --git a/home/versioned_docs/version-v1.3.x/help/doris_fe.md b/home/versioned_docs/version-v1.3.x/help/doris_fe.md deleted file mode 100644 index 960c03a7120..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/doris_fe.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -id: doris_fe -title: 监控:DORIS数据库FE监控 -sidebar_label: DORIS数据库FE -keywords: [开源监控系统, 开源数据库监控, DORIS数据库FE监控] ---- - -> 对DORIS数据库FE的通用性能指标进行采集监控。支持DORIS2.0.0。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 监控名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8030 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| 数据库名称 | 数据库实例名称,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:doris_fe_connection_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前FE的MySQL端口连接数 | - -#### 指标集合:doris_fe_edit_log_clean - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 清理历史元数据日志成功的次数 | -| failed | 无 | 清理历史元数据日志失败的次数 | - - -#### 指标集合:doris_fe_edit_log - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------- | -------- | ------------------------ | -| write | 无 | 元数据日志写入次数的计数 | -| read | 无 | 元数据日志读取次数的计数 | -| current | 无 | 元数据日志当前数量 | -| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | -| current_bytes | 字节 | 元数据日志当前值 | - -#### 指标集合:doris_fe_image_clean - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| success | 无 | 清理历史元数据镜像文件成功的次数 | -| failed | 无 | 清理历史元数据镜像文件失败的次数 | - -#### 指标集合:doris_fe_image_write - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 生成元数据镜像文件成功的次数 | -| failed | 无 | 生成元数据镜像文件失败的次数 | - -#### 指标集合:doris_fe_query_err - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------- | -| value | 无 | 错误查询的累积值 | - -#### 指标集合:doris_fe_max_journal_id - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | - -#### 指标集合:doris_fe_max_tablet_compaction_score - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | - -#### 指标集合:doris_fe_qps - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------ | -| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | - -#### 指标集合:doris_fe_query_err_rate - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------- | -| value | 无 | 每秒错误查询数 | - -#### 指标集合:doris_fe_report_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | - -#### 指标集合:doris_fe_rps - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------------------------- | -| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | - -#### 指标集合:doris_fe_scheduled_tablet_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | - -#### 指标集合:doris_fe_txn_status - -可以观测各个状态下导入事务的数量,来判断是否有堆积 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------- | -| unknown | 无 | 未知 | -| prepare | 无 | 准备中 | -| committed | 无 | 已提交 | -| visible | 无 | 可见 | -| aborted | 无 | 已中止/已撤销 | \ No newline at end of file diff --git a/home/versioned_docs/version-v1.3.x/help/dynamic_tp.md b/home/versioned_docs/version-v1.3.x/help/dynamic_tp.md deleted file mode 100644 index 7418e17cc1b..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/dynamic_tp.md +++ /dev/null @@ -1,101 +0,0 @@ ---- -id: dynamic_tp -title: Monitoring DynamicTp ThreadPool -sidebar_label: DynamicTp Monitor -keywords: [open source monitoring tool, open source dynamicTp monitoring tool, monitoring DynamicTp metrics] ---- - -> Collect and monitor the thread pool performance Metrics exposed by DynamicTp actuator. - -### PreRequisites - -1. Integration Using `DynamicTp` - -`DynamicTp` is a lightweight dynamic thread pool based on the configuration center of the Jvm language. It has built-in monitoring and alarm functions, which can be realized through SPI custom extensions. - -For integrated use, please refer to the document [Quick Start](https://dynamictp.cn/guide/use/quick-start.html) - -2. Open SpringBoot Actuator Endpoint to expose `DynamicTp` Metric interface - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -Test whether the access Metric interface `ip:port/actuator/dynamic-tp` has response json data as follows: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4GB", - "totalMemory": "444MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81GB" - } -] -``` - -3. Add DynamicTp monitoring under HertzBeat middleware monitoring - - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------------ |------------------------------------ ------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the application service, the default is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, note ⚠️Enable HTTPS, the default corresponding port needs to be changed to 443 | -| Base Path | Exposed interface path prefix, default /actuator | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: thread_pool - -| Metric Name | Metric Unit | Metric Help Description | -|---------|------|------------------------| -| pool_name | None | Thread pool name | -| core_pool_size | None | Number of core threads | -| maximum_pool_size | None | Maximum number of threads | -| queue_type | None | Task queue type | -| queue_capacity | MB | task queue capacity | -| queue_size | None | The current occupied size of the task queue | -| fair | None | Queue mode, SynchronousQueue will be used | -| queue_remaining_capacity | MB | task queue remaining size | -| active_count | None | Number of active threads | -| task_count | None | Total number of tasks | -| completed_task_count | None | Number of completed tasks | -| largest_pool_size | None | The largest number of threads in history | -| pool_size | none | current number of threads | -| wait_task_count | None | Number of tasks waiting to be executed | -| reject_count | None | Number of rejected tasks | -| reject_handler_name | None | Reject policy type | -| dynamic | None | Dynamic thread pool or not | -| run_timeout_count | None | Number of running timeout tasks | -| queue_timeout_count | None | Number of tasks waiting for timeout | diff --git a/home/versioned_docs/version-v1.3.x/help/fullsite.md b/home/versioned_docs/version-v1.3.x/help/fullsite.md deleted file mode 100644 index 3246fa31d82..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/fullsite.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: fullsite -title: Monitoring Full site -sidebar_label: Full site Monitor -keywords: [open source monitoring tool, open source website monitoring tool, monitoring sitemap metrics] ---- - -> Available or not to monitor all pages of the website. -> A website often has multiple pages provided by different services. We monitor the full site by collecting the SiteMap exposed by the website. -> Note⚠️ This monitoring requires your website to support SiteMap. We support SiteMap in XML and TXT formats. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| SiteMap | Relative path of website SiteMap address, eg:/sitemap.xml | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| url | none | URL path of web page | -| statusCode | none | Response HTTP status code for requesting the website | -| responseTime | ms | Website response time | -| errorMsg | none | Error message feedback after requesting the website | diff --git a/home/versioned_docs/version-v1.3.x/help/guide.md b/home/versioned_docs/version-v1.3.x/help/guide.md deleted file mode 100644 index 306cfaadc78..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/guide.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: guide -title: Help center -sidebar_label: Help center ---- - -> Hertzbeat - An open source, real-time monitoring tool with custom-monitor and agentLess. -> Help documents and auxiliary information during use - -## 🔬 Monitoring services - -> Regularly collect and monitor the performance Metrics exposed by end-to-end services, provide visual interfaces, and process data for alarm and other service scheduling. -> Planned monitoring type:application service, database, operating system, cloud native, open source middleware. - -### Application service monitoring - - 👉 [Website monitoring](website)
- 👉 [HTTP API](api)
- 👉 [PING Connectivity](ping)
- 👉 [Port availability](port)
- 👉 [Full site monitoring](fullsite)
- 👉 [SSL Cert monitoring](ssl_cert)
- 👉 [JVM monitoring](jvm)
- 👉 [SpringBoot2.0](springboot2)
- -### Database monitoring - - 👉 [MYSQL database monitoring](mysql)
- 👉 [MariaDB database monitoring](mariadb)
- 👉 [PostgreSQL database monitoring](postgresql)
- 👉 [SqlServer database monitoring](sqlserver)
- 👉 [Oracle database monitoring](oracle)
- 👉 [DM database monitoring](dm)
- 👉 [OpenGauss database monitoring](opengauss)
- 👉 [IoTDB database monitoring](iotdb)
- -### Operating system monitoring - - 👉 [Linux operating system monitoring](linux)
- 👉 [Windows operating system monitoring](windows)
- 👉 [Ubuntu operating system monitoring](ubuntu)
- 👉 [Centos operating system monitoring](centos)
- -### Middleware monitoring - - 👉 [Zookeeper](zookeeper)
- 👉 [Kafka](kafka)
- 👉 [Tomcat](tomcat)
- 👉 [ShenYu](shenyu)
- 👉 [DynamicTp](dynamic_tp)
- 👉 [RabbitMQ](rabbitmq)
- 👉 [ActiveMQ](activemq)
- 👉 [Jetty](jetty)
- -### CloudNative monitoring - - 👉 [Docker](docker)
- 👉 [Kubernetes](kubernetes)
- -*** - -## 💡 Alarm service - -> More liberal threshold alarm configuration (calculation expression), supports email, SMS, WebHook, DingDing, WeChat and FeiShu for alarm notification. -> The positioning of alarm service is to trigger the threshold accurately and timely, and the alarm notification can be reached in time. - -### Alarm center - -> The triggered alarm information center provides query and filtering of alarm deletion, alarm processing, mark unprocessed, alarm level status, etc. - -### Alarm configuration - -> The Metric threshold configuration provides the Metric threshold configuration in the form of expression, which can set the alarm level, trigger times, alarm notification template and whether it is enabled, correlation monitoring and other functions. - -More details see 👉 [threshold alarm](alert_threshold)
-   👉 [Threshold expression](alert_threshold_expr) - -### Alarm notification - -> After triggering the alarm information, in addition to being displayed in the alarm center list, it can also be notified to the designated recipient in a specified way (e-mail, wechat and FeiShu etc.) -> Alarm notification provides different types of notification methods, such as email recipient, enterprise wechat robot notification, DingDing robot notification, and FeiShu robot notification. -> After setting the receiver, you need to set the associated alarm notification strategy to configure which alarm information is sent to which receiver. - - - 👉 [Configure Email Notification](alert_email)
- 👉 [Configure Discord Notification](alert_webhook)
- 👉 [Configure Slack Notification](alert_webhook)
- 👉 [Configure Telegram Notification](alert_webhook)
- 👉 [Configure WebHook Notification](alert_webhook)
- 👉 [Configure enterprise WeChat Robot Notification](alert_wework)
- 👉 [Configure DingDing Robot Notification](alert_dingtalk)
- 👉 [Configure FeiShu Robot Notification](alert_feishu)
diff --git a/home/versioned_docs/version-v1.3.x/help/hadoop.md b/home/versioned_docs/version-v1.3.x/help/hadoop.md deleted file mode 100644 index f0a458ecc9f..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/hadoop.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: hadoop -title: Monitoring Hadoop -sidebar_label: Hadoop -keywords: [Open Source Monitoring System, Open Source Java Monitoring, Hadoop JVM Monitoring] ---- - -> Collect and monitor general performance metrics for the JVM virtual machine in Hadoop. - -**Protocol used: JMX** - -### Pre-monitoring steps - ->You need to enable JMX service in the Hadoop application before monitoring. HertzBeat uses the JMX protocol to collect performance metrics from Hadoop's JVM. - -### Steps to enable JMX protocol in the Hadoop application -Add JVM parameters when the application starts. ⚠️Note that you can customize the exposed port and external IP. - -- 1.Enter the hadoop-env.sh configuration file and enter the following command in the terminal: - -```shell -vi $HADOOP_HOME/etc/hadoop/hadoop-env.sh -``` - -- 2.Add the following parameters, where `port` is the number of the custom-exposed port - -```shell -export HADOOP_OPTS= "$HADOOP_OPTS --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false " -``` -- 3.Save and exit, and then execute "start-all.sh" in the "$HADOOP_HOME/sbin" directory to restart the service. - - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.3.x/help/iotdb.md b/home/versioned_docs/version-v1.3.x/help/iotdb.md deleted file mode 100644 index 0e4dcad9912..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/iotdb.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: iotdb -title: Monitoring Apache IoTDB Database -sidebar_label: IoTDB Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring IotDB database metrics] ---- - -> Monitor the running status of the Apache IoTDB Internet of Things time series database (JVM-related), memory task clusters and other related Metrics. - -## Operation before monitoring - -You need to enable the `metrics` function in IoTDB, which will provide interface data in the form of prometheus metrics. - -To enable the `metrics` function, refer to [Official Documentation](https://iotdb.apache.org/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) - -The main steps are as follows: - -1. The metric collection is disabled by default, you need to modify the parameters in `conf/iotdb-metric.yml` first, then restart the server - -``` -# Whether to start the monitoring module, the default is false -enableMetric: true - -# Whether to enable operation delay statistics -enablePerformanceStat: false - -# Data provision method, externally provide metrics data through jmx and prometheus protocol, optional parameters: [JMX, PROMETHEUS, IOTDB], IOTDB is closed by default. -metricReporterList: - - JMX - - PROMETHEUS - -# The metric architecture used at the bottom layer, optional parameters: [MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# Initialize the level of the metric, optional parameters: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# Predefined metrics set, optional parameters: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. Restart IoTDB, open a browser or use curl to access http://servier_ip:9091/metrics, and you can see the metric data. - -3. Add the corresponding IoTDB monitoring in HertzBeat. - -### Configuration parameters - -| Parameter name | Parameter help description | -|--------|----------------------------------------- --------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the IoTDB Metric interface, which is 9091 by default. | -| Timeout | HTTP request query timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: cluster_node_status - -| Metric Name | Metric Unit | Metric Help Description | -| --------- |------|-------------------------| -| name | None | Node name IP | -| status | None | Node status, 1=online 2=offline | - -#### Metric collection: jvm_memory_committed_bytes - -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | The memory size currently requested by the JVM | - -#### Metric collection: jvm_memory_used_bytes - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | JVM used memory size | - -#### Metric collection: jvm_threads_states_threads - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------| -| state | none | thread state | -| count | None | The number of threads corresponding to the thread state | - -#### Index collection: quantity business data - -| Metric Name | Metric Unit | Metric Help Description | -|--|------|----------------| -| name | None | Business name timeSeries/storageGroup/device/deviceUsingTemplate | -| type | none | type total/normal/template/template | -| value | None | The current timeSeries/storageGroup/device/The number of devices that have activated the template | - -#### Metric collection: cache_hit cache - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------------------ ----------------------| -| name | None | Cache name chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta cache hit rate, bloomFilter interception rate | - -#### Metric collection: queue task queue - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------------------ ---------------------| -| name | None | Queue name compaction_inner/compaction_cross/flush | -| status | none | status running/waiting | -| value | None | Number of tasks at current time | - -#### Metric collection: thrift_connections - -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|-------------| -| name | None | name | -| connection | none | thrift current connection number | diff --git a/home/versioned_docs/version-v1.3.x/help/issue.md b/home/versioned_docs/version-v1.3.x/help/issue.md deleted file mode 100644 index 572f1383afc..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/issue.md +++ /dev/null @@ -1,51 +0,0 @@ ---- -id: issue -title: Common issues -sidebar_label: Common issues ---- - -### Monitoring common issues - -1. **Page feedback:monitor.host: Monitoring Host must be ipv4, ipv6 or domain name** -> As shown in the information, the entered monitoring Host must be ipv4, ipv6 or domain name, and cannot carry a protocol header, such as http - -2. **The website API and other monitoring feedback statusCode:403 or 401, but the opposite end service itself does not need authentication, and the direct access of the browser is OK** -> Please check whether it is blocked by the firewall. For example, BaoTa/aaPanel have set the blocking of `User-Agent=Apache-HttpClient` in the request header by default. If it is blocked, please delete this blocking rule. (user-agent has been simulated as a browser in the v1.0.beat5 version. This problem does not exist) - -3. Ping connectivity monitoring exception when installing hertzbeat for package deployment. -The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 -> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. -> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. - -4. If the history chart on the monitoring page is not displayed,popup [please configure dependency service on TDengine time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - TDengine database. -> Installation and initialization this database refers to [TDengine Installation and Initialization](../start/tdengine-init). - -### Docker Deployment common issues - -1. **MYSQL, TDENGINE and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Beacuse the docker default network mode is Bridge mode which can't access loacl machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` - -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issuess: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent service, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> > three:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -### Package Deployment common issues - -1. **According to the process deploy,visit http://ip:1157/ no interface** - Please refer to the following points to troubleshoot issuess: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> three: Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. - -2. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. diff --git a/home/versioned_docs/version-v1.3.x/help/jetty.md b/home/versioned_docs/version-v1.3.x/help/jetty.md deleted file mode 100644 index 3e5230aa9d0..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/jetty.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: jetty -title: Monitoring Jetty Web Server -sidebar_label: Jetty Web Server -keywords: [open source monitoring tool, open source jetty web server monitoring tool, monitoring jetty metrics] ---- - -> Collect and monitor general performance metrics of Jetty application server - -**Usage protocol: JMX** - -### Pre-monitoring Operations - -> You need to enable the `JMX` service in the JVM application. HertzBeat uses the JMX protocol to collect metrics for the JVM. - -#### Jetty application server opens JMX protocol steps - -[Refer to official documentation](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. Start the JMX JMX-REMOTE module in Jetty - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file - -2. Edit the `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file to modify the JMX IP port and other parameters. - -**`localhost` needs to be modified to expose the IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` - -3. Restart Jetty Server. - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - diff --git a/home/versioned_docs/version-v1.3.x/help/jvm.md b/home/versioned_docs/version-v1.3.x/help/jvm.md deleted file mode 100644 index 95b1545fffc..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/jvm.md +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: jvm -title: Monitoring JVM -sidebar_label: JVM Monitor -keywords: [open source monitoring tool, open source java jvm monitoring tool, monitoring jvm metrics] ---- - -> Collect and monitor the general performance Metrics of JVM. - -**Protocol Use:JMX** - -### JVM App Enable JMX Protocol - -1. Add JVM `VM options` When Start Server ⚠️ customIP - -Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote - -```shell --Djava.rmi.server.hostname=customIP --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.3.x/help/kafka.md b/home/versioned_docs/version-v1.3.x/help/kafka.md deleted file mode 100644 index 067cabef0e9..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/kafka.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: kafka -title: Monitor:Apache Kafka -sidebar_label: Apache Kafka -keywords: [open source monitoring tool, open source apache kafka monitoring tool, monitoring apache kafka metrics] ---- - -> Collect and monitor the general performance Metrics of Apache Kafka. - -**Protocol Use:JMX** - -### Kafka Enable JMX Protocol - -1. Install Kafka - -2. Modify `kafka-server-start.sh` - -Append content in kafka-server-start.sh, Attention Replace Port And IP. - -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# Already Has -exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:server_info - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Version | | Kafka Version | -| StartTimeMs | ms | Start Time | -| CommitId | | Version Commit ID | - - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:active_controller_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | server active controller count | - - -#### Metrics Set:broker_partition_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker partition count | - -#### Metrics Set:broker_leader_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker leader count | - - -#### Metrics Set:broker_handler_avg_percent - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| EventType | | event type | -| RateUnit | | rate unit | -| Count | | percent count | -| OneMinuteRate | % | One Minute Rate | -| FiveMinuteRate | % | Five Minute Rate | -| MeanRate | % | Mean Rate | -| FifteenMinuteRate | % | Fifteen Minute Rate | - - - - diff --git a/home/versioned_docs/version-v1.3.x/help/kubernetes.md b/home/versioned_docs/version-v1.3.x/help/kubernetes.md deleted file mode 100644 index 8e10896c6d1..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/kubernetes.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -id: kubernetes -Title: Monitoring Kubernetes -sidebar_label: Kubernetes Monitor -keywords: [open source monitoring tool, open source kubernetes monitoring tool, monitoring kubernetes metrics] ---- - -> Collect and monitor the general performance metrics of Kubernetes. - -## Pre-monitoring operations - -If you want to monitor the information in 'Kubernetes', you need to obtain an authorization token that can access the API Server, so that the collection request can obtain the corresponding information. - -Refer to the steps to obtain token - -#### method one: - -1. Create a service account and bind the default cluster-admin administrator cluster role - -```kubectl create serviceaccount dashboard-admin -n kube-system``` - -2. User Authorization - -```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` - -#### method two: -```shell -kubectl create serviceaccount cluster-admin -kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin -kubectl create token --duration=1000h cluster-admin -``` - -### Configure parameters - -| Parameter name | Parameter Help describes the | -|-------------|------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| APiServer port | K8s APiServer port, default 6443 | -| token | Authorize the Access Token | -| URL | The database connection URL is optional, if configured, the database name, user name and password parameters in the URL will override the parameter | configured above -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric collection: nodes - -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------| -| node_name | None | Node name | -| is_ready | None | Node Status | -| capacity_cpu | None | CPU capacity | -| allocatable_cpu | None | CPU | allotted -| capacity_memory | None | Memory capacity | -| allocatable_memory | None | Memory | allocated -| creation_time | None | Node creation time | - -#### metric Collection: namespaces - -| Metric Name | metric unit | Metrics help describe | -| -------- | -------- |-------------| -| namespace | None | namespace name | -| status | None | Status | -| creation_time | None | Created | - -#### metric collection: pods - -| Metric Name | metric unit | Metrics help describe | -| ---------------- | -------- |----------------| -| pod | None | Pod name | -| namespace | None | The namespace | to which the pod belongs -| status | None | Pod status | -| restart | None | Number of restarts | -| host_ip | None | The IP address of the host is | -| pod_ip | None | pod ip | -| creation_time | None | Pod creation time | -| start_time | None | Pod startup time | - -#### metric Collection: services - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------------------------------------------| -| service | None | Service Name | -| namespace | None | The namespace | to which the service belongs -| type | None | Service Type ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | None | cluster ip | -| selector | None | tag selector matches | -| creation_time | None | Created | diff --git a/home/versioned_docs/version-v1.3.x/help/linux.md b/home/versioned_docs/version-v1.3.x/help/linux.md deleted file mode 100644 index 05e3405ff6e..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/linux.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: linux -title: Monitoring:Linux operating system monitoring -sidebar_label: Linux operating system -keywords: [open source monitoring tool, open source linux monitoring tool, monitoring linux metrics] ---- - -> Collect and monitor the general performance Metrics of Linux operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.3.x/help/mariadb.md b/home/versioned_docs/version-v1.3.x/help/mariadb.md deleted file mode 100644 index e72668fe791..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/mariadb.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mariadb -title: Monitoring:MariaDB database monitoring -sidebar_label: MariaDB database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring mariadb database metrics] ---- - -> Collect and monitor the general performance Metrics of MariaDB database. Support MariaDB5+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 3306 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| version | none | Database version | -| port | none | Database exposure service port | -| datadir | none | Database storage data disk address | -| max_connections | none | Database maximum connections | - -#### Metric set:status - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| threads_created | none | MariaDB created total connections | -| threads_connected | none | MariaDB connected connections | -| threads_cached | none | MariaDB current cached connections | -| threads_running | none | MariaDB current active connections | - - -#### Metric set:innodb - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| innodb_data_reads | none | innodb average number of reads from files per second | -| innodb_data_writes | none | innodb average number of writes from file per second | -| innodb_data_read | KB | innodb average amount of data read per second | -| innodb_data_written | KB | innodb average amount of data written per second | - - - diff --git a/home/versioned_docs/version-v1.3.x/help/mysql.md b/home/versioned_docs/version-v1.3.x/help/mysql.md deleted file mode 100644 index 3f07be99380..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/mysql.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mysql -title: Monitoring:MySQL database monitoring -sidebar_label: MySQL database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring mysql database metrics] ---- - -> Collect and monitor the general performance Metrics of MySQL database. Support MYSQL5+. - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 3306 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| version | none | Database version | -| port | none | Database exposure service port | -| datadir | none | Database storage data disk address | -| max_connections | none | Database maximum connections | - -#### Metric set:status - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| threads_created | none | MySql created total connections | -| threads_connected | none | MySql connected connections | -| threads_cached | none | MySql current cached connections | -| threads_running | none | MySql current active connections | - - -#### Metric set:innodb - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| innodb_data_reads | none | innodb average number of reads from files per second | -| innodb_data_writes | none | innodb average number of writes from file per second | -| innodb_data_read | KB | innodb average amount of data read per second | -| innodb_data_written | KB | innodb average amount of data written per second | - - - diff --git a/home/versioned_docs/version-v1.3.x/help/opengauss.md b/home/versioned_docs/version-v1.3.x/help/opengauss.md deleted file mode 100644 index 650882861e8..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/opengauss.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: opengauss -title: OpenGauss Database Monitor -sidebar_label: OpenGauss Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring opengauss database metrics] ---- - -> Collect and monitor the general performance Metrics of OpenGauss database. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | - -#### Metric set:state - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - - -#### Metric set:activity - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - diff --git a/home/versioned_docs/version-v1.3.x/help/oracle.md b/home/versioned_docs/version-v1.3.x/help/oracle.md deleted file mode 100644 index 5410e53decb..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/oracle.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: oracle -title: Monitoring:ORACLE database monitoring -sidebar_label: ORACLE database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring oracle database metrics] ---- - -> Collect and monitor the general performance Metrics of ORACLE database. - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1521 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_version | none | Database version | -| database_type | none | Database type | -| hostname | none | Host name | -| instance_name | none | Database instance name | -| startup_time | none | Database start time | -| status | none | Database status | - -#### Metric set:tablespace - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| file_id | none | File ID | -| file_name | none | File name | -| tablespace_name | none | Table space name | -| status | none | Status | -| bytes | MB | Size | -| blocks | none | Number of blocks | - -#### Metric set:user_connect - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| username | none | Username | -| counts | number | Current connection counts | - -#### Metric set:performance - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per second | -| tps | TPS | User transaction per second | -| mbps | MBPS | I/O Megabytes per second | diff --git a/home/versioned_docs/version-v1.3.x/help/ping.md b/home/versioned_docs/version-v1.3.x/help/ping.md deleted file mode 100644 index fbf194a0abb..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/ping.md +++ /dev/null @@ -1,28 +0,0 @@ ---- -id: ping -title: Monitoring:PING connectivity -sidebar_label: PING connectivity -keywords: [open source monitoring tool, open source network monitoring tool, monitoring ping metrics] ---- - -> Ping the opposite end HOST address and judge its connectivity. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Ping timeout | Set the timeout when Ping does not respond to data, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - diff --git a/home/versioned_docs/version-v1.3.x/help/port.md b/home/versioned_docs/version-v1.3.x/help/port.md deleted file mode 100644 index ef5f659ad44..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/port.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: port -title: Monitoring:port availability -sidebar_label: Port availability -keywords: [open source monitoring tool, open source port monitoring tool, monitoring port metrics] ---- - -> Judge whether the exposed port of the opposite end service is available, then judge whether the opposite end service is available, and collect Metrics such as response time for monitoring. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Connection timeout | Waiting timeout for port connection, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - - - diff --git a/home/versioned_docs/version-v1.3.x/help/postgresql.md b/home/versioned_docs/version-v1.3.x/help/postgresql.md deleted file mode 100644 index de14f9d62eb..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/postgresql.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: postgresql -title: Monitoring:PostgreSQL database monitoring -sidebar_label: PostgreSQL database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring postgresql database metrics] ---- - -> Collect and monitor the general performance Metrics of PostgreSQL database. Support PostgreSQL 10+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | - -#### Metric set:state - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - - -#### Metric set:activity - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - diff --git a/home/versioned_docs/version-v1.3.x/help/rabbitmq.md b/home/versioned_docs/version-v1.3.x/help/rabbitmq.md deleted file mode 100644 index 1bcd3ea5851..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/rabbitmq.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -id: rabbitmq -title: Monitoring RabbitMQ -sidebar_label: RabbitMQ Monitor -keywords: [open source monitoring tool, open source rabbitmq monitoring tool, monitoring rabbitmq metrics] ---- - -> Monitoring the running status of RabbitMQ message middleware, nodes, topics and other related metrics. - -### Pre-monitoring Operations - -> HertzBeat uses RabbitMQ Management's Rest Api to collect RabbitMQ metric data. -> Therefore, you need to enable the Management plug-in in your RabbitMQ environment - -1. Open the Management plugin, or use the self-opening version - -```shell -rabbitmq-plugins enable rabbitmq_management -``` - -2. Access http://ip:15672/ with a browser, and the default account password is `guest/guest`. Successful login means that it is successfully opened. - -3. Just add the corresponding RabbitMQ monitoring in HertzBeat, the parameters use the IP port of Management, and the default account password. - -### Configuration parameters - -| Parameter name | Parameter help description | -|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The HTTP port provided by RabbitMQ Management, the default is 15672. | -| Username | Username used for interface Basic authentication | -| Password | The password used for interface Basic authentication | -| Timeout | HTTP request query timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect Metrics - -#### metrics: overview - -| Metric Name | Metric Unit | Metric Description | -|--------------------|-------------|------------------------------------| -| product_version | None | Product Version | -| product_name | None | Product name | -| rabbitmq_version | none | rabbitmq version | -| management_version | None | rabbitmq management plugin version | -| erlang_version | None | erlang version | -| cluster_name | None | Cluster name | -| rates_mode | None | rates mode | - -#### metrics: object_totals - -| Metric Name | Metric Unit | Metric Description | -|-------------|-------------|-----------------------------| -| channels | none | total number of channels | -| connections | none | total number of connections | -| consumers | none | total number of consumers | -| exchanges | none | total number of exchanges | -| queues | none | total number of queues | - -#### metrics: nodes - -| Metric Name | Metric Unit | Metric Description | -|--------------------|-------------|-----------------------------------------------------------| -| name | None | The node name | -| type | None | The node type | -| running | None | Running state | -| os_pid | None | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | None | File descriptors available | -| fd_used | None | File descriptors used | -| sockets_total | None | Sockets available | -| sockets_used | None | Sockets used | -| proc_total | None | Erlang process limit | -| proc_used | None | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | None | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | None | Context_switches num | -| io_read_count | None | Total number of read operations | -| io_read_bytes | KB | Total data size read into disk | -| io_read_avg_time | ms | Average read operation time in milliseconds | -| io_write_count | None | Total disk write operations | -| io_write_bytes | KB | Total amount of data written to disk | -| io_write_avg_time | ms | Average time of each disk write operation in milliseconds | -| io_seek_count | None | total seek operation | -| io_seek_avg_time | ms | average seek operation time, in milliseconds | -| io_sync_count | None | total amount of fsync operations | -| io_sync_avg_time | ms | Average time of fsync operation in milliseconds | -| connection_created | None | connection created num | -| connection_closed | None | connection closed num | -| channel_created | None | channel created num | -| channel_closed | None | channel closed num | -| queue_declared | None | queue declared num | -| queue_created | None | queue created num | -| queue_deleted | None | queue deleted num | -| connection_closed | None | connection closed num | - - -#### metrics: queues - -| Metric Name | Metric Unit | Metric Description | -|------------------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | None | The name of the queue with non-ASCII characters escaped as in C. | -| node | None | The queue on the node name | -| state | None | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | -| type | None | Queue type, one of: quorum, stream, classic. | -| vhost | None | vhost path | -| auto_delete | None | Whether the queue will be deleted automatically when no longer used | -| policy | None | Effective policy name for the queue. | -| consumers | None | Number of consumers. | -| memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | -| messages_ready | None | Number of messages ready to be delivered to clients | -| messages_unacknowledged | None | Number of messages delivered to clients but not yet acknowledged | -| messages | None | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | None | Number of messages from messages_ready which are resident in ram | -| messages_persistent | None | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | -| message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | -| message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | -| message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/versioned_docs/version-v1.3.x/help/redis.md b/home/versioned_docs/version-v1.3.x/help/redis.md deleted file mode 100644 index ca36748e255..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/redis.md +++ /dev/null @@ -1,245 +0,0 @@ ---- -id: redis -title: 监控:REDIS数据库监控 -sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] ---- - -> 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 监控名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:server - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - - -#### 指标集合:clients - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - - -#### 指标集合:memory - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - - -#### 指标集合:persistence - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - - -#### 指标集合:stats - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - - -#### 指标集合:replication - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | - -#### 指标集合:errorstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | - -#### 指标集合:cluster - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - - -#### 指标集合:commandstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/versioned_docs/version-v1.3.x/help/shenyu.md b/home/versioned_docs/version-v1.3.x/help/shenyu.md deleted file mode 100644 index 01523769c78..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/shenyu.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -id: shenyu -title: Monitoring:Apache ShenYu API Gateway -sidebar_label: Apache ShenYu -keywords: [open source monitoring tool, open source apache shenyu monitoring tool, monitoring apache shenyu metrics] ---- - -> monitor ShenYu running status(JVM-related), include request response and other related metrics. - -## Pre-monitoring operations - -Enable `metrics` plugin in ShenYu, expose it's prometheus metrics endpoint。 - -Refer [ShenYu Document](https://shenyu.apache.org/docs/plugin-center/observability/metrics-plugin) - -Two Steps Mainly: - -1. add metrics plugin dependency in gateway's pom.xml. - -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` - -2. modify this config in shenyu gateway yaml. - -```yaml -shenyu: - metrics: - enabled: false #false is close, true is open - name : prometheus - host: 127.0.0.1 - port: 8090 - jmxConfig: - props: - jvm_enabled: true #enable jvm monitoring -``` - -Finally, restart the access gateway metrics endpoint `http://ip:8090` to respond to prometheus format data. - -### Configuration parameters - -| Parameter name | Parameter help description | -|--------|----------------------------------------- --------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the gateway Metric interface, the default is 8090. | -| Timeout | HTTP request response timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Index collection: shenyu_request_total - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect all requests from ShenYu gateway | - -#### Metric collection: shenyu_request_throw_created - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect the number of abnormal requests from ShenYu Gateway | - -#### Metric collection: process_cpu_seconds_total - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| value | none | total user and system CPU elapsed seconds | - -#### Metric collection: process_open_fds - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| value | none | number of open file descriptors | - -#### Metric collection: process_max_fds - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------------| -| value | none | maximum number of open file descriptors | - -#### Metric collection: jvm_info - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-----------| -| runtime | none | JVM version information | -| vendor | none | JVM version information | -| version | None | JVM version information | - -#### Metric collection: jvm_memory_bytes_used - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | None | JVM memory area | -| value | MB | used size of the given JVM memory region | - -#### Metric collection: jvm_memory_pool_bytes_used - -| Metric Name | Metric Unit | Metric Help Description | -|--------|------|-----------------| -| pool | None | JVM memory pool | -| value | MB | used size of the given JVM memory pool | - -#### Metric collection: jvm_memory_pool_bytes_committed - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| pool | None | JVM memory pool | -| value | MB | The committed size of the given JVM memory pool | - -#### Metric collection: jvm_memory_pool_bytes_max - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------| ----------- | -| pool | None | JVM memory pool | -| value | MB | The maximum size of the memory pool for the given JVM | - -#### Metric collection: jvm_threads_state - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| state | none | thread state | -| value | None | The number of threads corresponding to the thread state | - - diff --git a/home/versioned_docs/version-v1.3.x/help/spark.md b/home/versioned_docs/version-v1.3.x/help/spark.md deleted file mode 100644 index 3d4b44828ea..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/spark.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: spark -title: Monitoring Spark -sidebar_label: Spark Monitor -keywords: [open source monitoring tool, open source java spark monitoring tool, monitoring spark metrics] ---- - -> Collect and monitor the general performance Metrics of Spark. - -**Protocol Use:JMX** - -### Spark App Enable JMX Protocol - -1. Add Spark `VM options` When Start Server ⚠️ customIP - -Refer: https://spark.apache.org/docs/latest/spark-standalone.html - - -**监控配置spark的监控主要分为Master、Worker、driver、executor监控。Master和Worker的监控在spark集群运行时即可监控,Driver和Excutor的监控需要针对某一个app来进行监控。** -**如果都要监控,需要根据以下步骤来配置** - - - -## 第一步 - -**修改$SPARK_HOME/conf/spark-env.sh,添加以下语句:** - -```shell -# JMX Port to use -SPARK_DAEMON_JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" - -# export SPARK_DAEMON_JAVA_OPTS="$SPARK_DAEMON_JAVA_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT " -export SPARK_DAEMON_JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8712 " -``` - -语句中有$JMX_PORT,这个的值可以自定义,也可以获取一个随机数作为端口号。 -如果端口自定义为一个具体的值,而 spark 的 Master 和其中之一的 Worker 在同一台机器上,会出现端口冲突的情况。 - - - -## 第二步 - -**vim $SPARK_HOME/conf/metrics.properties 添加如下内容** - -```shell -*.sink.jmx.class=org.apache.spark.metrics.sink.JmxSink -master.source.jvm.class=org.apache.spark.metrics.source.JvmSource -worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource -driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource -executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource -``` - - - - - -## 第三步 - -**vim $SPARK_HOME/conf/spark-defaults.conf,添加以下项为driver和executor设置监控端口,在有程序运行的情况下,此端口会被打开。** - -```shell -spark.metrics.conf /opt/bigdata/spark/conf/metrics.properties -spark.driver.extraJavaOptions -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.mana -gement.jmxremote.port=8712 - -spark.executor.extraJavaOptions -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.mana -gement.jmxremote.port=8711 -``` - -在spark的Master和Worker正常运行以及spark-submit提交了一个程序的情况下,可以从linux中查询出端口号码。 - - - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.3.x/help/springboot2.md b/home/versioned_docs/version-v1.3.x/help/springboot2.md deleted file mode 100644 index c55f4fcb14f..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/springboot2.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -id: springboot2 -Title: Monitoring SpringBoot 2.0 -sidebar_label: SpringBoot 2.0 -keywords: [open source monitoring tool, open source springboot2 monitoring tool, monitoring springboot2 metrics] ---- - -> Collect and monitor the general performance metrics exposed by the SpringBoot 2.0 actuator. - -## Pre-monitoring operations - -If you want to monitor information in 'SpringBoot' with this monitoring type, you need to integrate your SpringBoot application and enable the SpringBoot Actuator. - -**1、Add POM .XML dependencies:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2. Modify the YML configuration exposure metric interface:** - -```yaml -management: - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` - -### Configure parameters - -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric Collection: Health - -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | - -#### metric Collection: enviroment - -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | - -#### metric Collection: threads - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads - -#### metric Collection: memory_used - -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | diff --git a/home/versioned_docs/version-v1.3.x/help/sqlserver.md b/home/versioned_docs/version-v1.3.x/help/sqlserver.md deleted file mode 100644 index cc12abf0d7e..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/sqlserver.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -id: sqlserver -title: Monitoring:SqlServer database monitoring -sidebar_label: SqlServer database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring sqlserver database metrics] ---- - -> Collect and monitor the general performance Metrics of SqlServer database. Support SqlServer 2017+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1433 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| machine_name | none | Windows computer name running the server instance | -| server_name | none | Server and instance information SQL Server associated with Windows instance | -| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | -| edition | none | The product SQL server version of the installed instance | -| start_time | none | Database start time | - -#### Metric set:performance_counters - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_pages | none | Database pages, Number of pages obtained (buffer pool) | -| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | -| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | -| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | -| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | -| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | - - -#### Metric set:connection - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| user_connection | none | Number of connected sessions | - - -### Common Problem - -1. SSL connection problem fixed - -jdk version: jdk11 -Description of the problem: SQL Server 2019 uses the SA user connection to report an error -Error message: -```text -The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxxxxx -``` -Screenshot of the problem: -![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) - -solution: -Use advanced settings when adding `SqlServer` monitoring, customize JDBC URL, add parameter configuration after the spliced jdbc url, ```;encrypt=true;trustServerCertificate=true;```This parameter true means unconditionally trust the server returned any root certificate. - -Example: ```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` - -Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building- failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/versioned_docs/version-v1.3.x/help/ssl_cert.md b/home/versioned_docs/version-v1.3.x/help/ssl_cert.md deleted file mode 100644 index 4d808f47dca..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/ssl_cert.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: ssl_cert -title: Monitoring SSL Certificate -sidebar_label: SSL Monitor -keywords: [open source monitoring tool, open source ssl cert monitoring tool, monitoring website ssl metrics] ---- - -> Monitor the website's SSL certificate expiration time, response time and other Metrics - -### Configuration parameters - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the website, https generally defaults to 443. | -| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.cn/console` The relative path of the website is `/console`. | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: certificate - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------| -| subject | none | certificate name | -| expired | no | expired or not | -| start_time | None | Validity start time | -| start_timestamp | ms millisecond | Validity start timestamp | -| end_time | None | Expiration time | -| end_timestamp | ms milliseconds | expiration timestamp | diff --git a/home/versioned_docs/version-v1.3.x/help/tomcat.md b/home/versioned_docs/version-v1.3.x/help/tomcat.md deleted file mode 100644 index 8b35808ffc8..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/tomcat.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -id: tomcat -title: Monitor:Apache Tomcat -sidebar_label: Apache Tomcat -keywords: [open source monitoring tool, open source tomcat monitoring tool, monitoring tomcat metrics] ---- - -> Collect and monitor the general performance Metrics of Apache Tomcat. - -**Protocol Use:JMX** - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - -### Tomcat Enable JMX Protocol - -1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file - -2. vim catalina.sh Attention⚠️ Replace Hostname And Port - -```aidl -CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" -``` - diff --git a/home/versioned_docs/version-v1.3.x/help/ubuntu.md b/home/versioned_docs/version-v1.3.x/help/ubuntu.md deleted file mode 100644 index e7d368c9ea3..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/ubuntu.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: ubuntu -title: Monitoring:Ubuntu operating system monitoring -sidebar_label: Ubuntu operating system -keywords: [open source monitoring tool, open source linux ubuntu monitoring tool, monitoring ubuntu metrics] ---- - -> Collect and monitor the general performance Metrics of Ubuntu operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.3.x/help/website.md b/home/versioned_docs/version-v1.3.x/help/website.md deleted file mode 100644 index 88d7a1957ad..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/website.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: website -title: Monitoring Website -sidebar_label: Website Monitor -keywords: [open source monitoring tool, open source website monitoring tool, monitoring website metrics] ---- - -> Monitor whether the website is available, response time and other Metrics. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | diff --git a/home/versioned_docs/version-v1.3.x/help/windows.md b/home/versioned_docs/version-v1.3.x/help/windows.md deleted file mode 100644 index 82e36d23470..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/windows.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: windows -title: Monitoring:Windows operating system monitoring -sidebar_label: Windows operating system -keywords: [open source monitoring tool, open source windows monitoring tool, monitoring windows metrics] ---- - -> Collect and monitor the general performance Metrics of Windows operating system through SNMP protocol. -> Note⚠️ You need to start SNMP service for Windows server. - -References: -[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Windows SNMP service. The default is 161 | -| SNMP version | SNMP protocol version V1 V2c V3 | -| SNMP community Word | SNMP agreement community name(Community Name). It is used to realize the authentication of SNMP network administrator when accessing SNMP management agent. Similar to password, the default value is public | -| Timeout | Protocol connection timeout | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:system - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Host name | -| descr | none | Operating system description | -| uptime | none | System running time | -| numUsers | number | Current number of users | -| services | number | Current number of services | -| processes | number | Current number of processes | -| responseTime | ms | Collection response time | diff --git a/home/versioned_docs/version-v1.3.x/help/zookeeper.md b/home/versioned_docs/version-v1.3.x/help/zookeeper.md deleted file mode 100644 index b7a34f49eda..00000000000 --- a/home/versioned_docs/version-v1.3.x/help/zookeeper.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -id: zookeeper -title: Monitoring Zookeeper -sidebar_label: Zookeeper Monitor -keywords: [open source monitoring tool, open source zookeeper monitoring tool, monitoring zookeeper metrics] ---- - -> Collect and monitor the general performance Metrics of Zookeeper. - -### PreRequisites - -#### Zookeeper four word command ->The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. -Users need to add the four word command of zookeeper to the white list by themselves. - -Steps -> 1.Find our zookeeper configuration file, which is usually zoo.cfg. -> -> 2.Add the following commands to the configuration file - -```shell -# Add the required command to the white list -4lw.commands.whitelist=stat, ruok, conf, isro - -# Add all commands to the white list -4lw.commands.whitelist=* -``` - -> 3.Restart service - -```shell -zkServer.sh restart -``` - -#### netcat protocol -The current implementation scheme requires us to deploy the Linux server of zookeeper -Command environment for installing netcat - -> netcat installation steps -```shell -yum install -y nc -``` - -If the terminal displays the following information, the installation is successful -```shell -Complete! -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Zookeeper. The default is 2181 | -| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | -| Username | User name of the Linux connection where Zookeeper is located | -| Password | Password of the Linux connection where Zookeeper is located | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:conf - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| clientPort | none | Port | -| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | -| dataDirSize | kb | Data snapshot file size | -| dataLogDir | none | Transaction log file directory, production environment on a separate disk | -| dataLogSize | kb | Transaction log file size | -| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | -| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | -| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | -| serverId | none | Server id | - - -#### Metric set:stats - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| zk_version | none | Server version | -| zk_server_state | none | Server role | -| zk_num_alive_connections | number | Number of connections | -| zk_avg_latency | ms | Average latency | -| zk_outstanding_requests | number | Number of outstanding requests | -| zk_znode_count | number | Number of znode | -| zk_packets_sent | number | Number of packets sent | -| zk_packets_received | number | Number of packets received | -| zk_watch_count | number | Number of watch | -| zk_max_file_descriptor_count | number | Maximum number of file descriptors | -| zk_approximate_data_size | kb | data size | -| zk_open_file_descriptor_count | number | Number of open file descriptors | -| zk_max_latency | ms | Max latency | -| zk_ephemerals_count | number | Number of ephemeral nodes | -| zk_min_latency | ms | Min latency | - - diff --git a/home/versioned_docs/version-v1.3.x/introduce.md b/home/versioned_docs/version-v1.3.x/introduce.md deleted file mode 100644 index cdc80687cc3..00000000000 --- a/home/versioned_docs/version-v1.3.x/introduce.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -id: introduce -title: HertzBeat -sidebar_label: Introduce -slug: / ---- - -> An open source, real-time monitoring system with custom-monitoring and agentLess. - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - - -## 🎡 Introduction - -> [HertzBeat](https://github.com/apache/hertzbeat) is an open source, real-time monitoring system with custom-monitor and agentLess. -> **Monitoring+Alarm+Notify** all in one. Support monitoring web service, database, os, middleware, cloud-native, network and more. -> Easy to use, full web-based operation, monitoring and alerting at the click of a mouse, zero learning cost. -> More flexible threshold rule(calculation expression), timely notification delivery by `Discord` `Slack` `Telegram` `Email` `DingDing` `WeChat` `FeiShu` `Webhook` `SMS`. - -> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. -> Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online? - -> `HertzBeat`'s powerful custom-define, multi-type support, easy expansion, low coupling, hope to help developers and micro teams to quickly build their own monitoring system. -> We also provide **[Monitoring SaaS Cloud](https://console.tancloud.cn)**, users no longer need to deploy a cumbersome monitoring system in order to monitor resources. **[Get started for free](https://console.tancloud.cn)**. - ----- - - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - ----- - -## 🥐 Architecture - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** Provide monitoring management, system management basic services. -> Provides monitoring management, monitoring configuration management, system user management, etc. -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** Provide metrics data collection services. -> Use common protocols to remotely collect and obtain peer-to-peer metrics data. -- **[scheduler](https://github.com/apache/hertzbeat/tree/master/scheduler)** Provide monitoring task scheduling service. -> Collection task management, scheduling and distribution of one-time tasks and periodic tasks. -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** Provide monitoring data warehousing services. -> Metrics data management, data query, calculation and statistics. -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** Provide alert service. -> Alarm calculation trigger, monitoring status linkage, alarm configuration, and alarm notification. -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** Provide web ui. -> Angular Web UI. - -![hertzBeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat/home/static/img/docs/hertzbeat-arch.svg) - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -## ⛄ Supported - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- And More Your Custom Define. -- Notified Support `Discord` `Slack` `Telegram` `Email` `DingDing` `WeChat` `FeiShu` `Webhook` `SMS`. - diff --git a/home/versioned_docs/version-v1.3.x/others/contact.md b/home/versioned_docs/version-v1.3.x/others/contact.md deleted file mode 100644 index 02d956093b4..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/contact.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: contact -title: Join discussion -sidebar_label: Discussion ---- - -> If you need any help or want to exchange suggestions during the use process, you can discuss and exchange through ISSUE or Github Discussion. - -[GITHUB ISSUES](https://github.com/apache/hertzbeat/issues) - -[Chat On Discord](https://discord.gg/Fb6M73htGr) - -[Follow Us Twitter](https://twitter.com/hertzbeat1024) - - -##### Github Discussion - -Welcome to Discuss in [Github Discussion](https://github.com/apache/hertzbeat/discussions) diff --git a/home/versioned_docs/version-v1.3.x/others/contributing.md b/home/versioned_docs/version-v1.3.x/others/contributing.md deleted file mode 100644 index a2217e74ef1..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/contributing.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -id: contributing -title: Contributing Guide -sidebar_label: Contributing Guide ---- - -> We are committed to maintaining a happy community that helps each other, welcome every contributor to join us! - -### Kinds of Contributions - -> In the HertzBeat community, there are many ways to contribute: - -- 💻**Code**: Can help the community complete some tasks, write new features or fix some bugs; - -- ⚠️**Test**: Can come to participate in the writing of test code, including unit testing, integration testing, e2e testing; - -- 📖**Docs**: Can write or Documentation improved to help users better understand and use HertzBeat; - -- 📝**Blog**: You can write articles about HertzBeat to help the community better promote; - -- 🤔**Discussion**: You can participate in the discussion of new features of HertzBeat and integrate your ideas with HertzBeat; - -- 💡**Preach**: Can help publicize or promote the HertzBeat community, speak in meetup or summit; - -- 💬**Suggestion**: You can also make some suggestions to the project or community to promote the healthy development of the community; - -More see [Contribution Types](https://allcontributors.org/docs/en/emoji-key) - -Even small corrections to typos are very welcome :) - -### Getting HertzBeat up and running - -> To get HertzBeat code running on your development tools, and able to debug with breakpoints. -> This is a front-end and back-end separation project. To start the local code, the back-end [manager](https://github.com/apache/hertzbeat/tree/master/manager) and the front-end [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) must be started separately. - - -- Backend start - -1. Requires `maven3+`, `java11` and `lombok` environments -2. (Optional) Modify the configuration file-`manager/src/main/resources/application.yml` -3. Start `springboot manager` service `manager/src/main/java/org/apache/hertzbeat/manager/Manager.java` - -- Front-web start - -1. Need `nodejs npm angular-cli` environment -2. Install yarn: `npm install -g yarn` -3. Execute under the front-end project directory web-app: `yarn install` -4. Install angular-cli globally: `npm install -g @angular/cli@14 --registry=https://registry.npm.taobao.org` -5. After the local backend is started, start the local frontend in the web-app directory: `ng serve --open` -6. Browser access to localhost:4200 to start, default account/password is *admin/hertzbeat* - -### Find tasks - -Find the issue you are interested in! On our GitHub repo issue list, we often publish some issues with the label good first issue or status: volunteer wanted. -These issues welcome the help of contributors. Among them, good first issues tend to have low thresholds and are suitable for novices. - -Of course, if you have a good idea, you can also propose it directly on GitHub Discussion or contact with community. - -### Submit Pull Request - -1. First you need to fork your target [hertzbeat repository](https://github.com/apache/hertzbeat). -2. Then download the code locally with git command: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` -3. After the download is complete, please refer to the getting started guide or README file of the target repository to initialize the project. -4. Then, you can refer to the following command to submit the code: -```shell -git checkout -b a-feature-branch #Recommended -``` -5. Submit the coed as a commit, the commit message format specification required: [module name or type name] feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` -6. Push to the remote repository -```shell -git push origin a-feature-branch -``` -7. Then you can initiate a new PR (Pull Request) on GitHub. - -Please note that the title of the PR needs to conform to our spec, and write the necessary description in the PR to facilitate code review by Committers and other contributors. - -### Wait for the code to be merged - -After submitting the PR, the Committee or the community's friends will review the code you submitted (Code Review), and will propose some modification suggestions or conduct some discussions. Please pay attention to your PR in time. - -If subsequent changes are required, there is no need to initiate a new PR. After submitting a commit on the original branch and pushing it to the remote repository, the PR will be automatically updated. - -In addition, our project has a relatively standardized and strict CI inspection process. After submitting PR, CI will be triggered. Please pay attention to whether it passes the CI inspection. - -Finally, the Committers can merge the PR into the master branch. - -### After the code is merged - -After the code has been merged, you can delete the development branch on both the local and remote repositories: - -```shell -git branch -d a-dev-branch -git push origin --delete a-dev-branch -``` - -On the master/main branch, you can do the following to sync the upstream repository: - -```shell -git remote add upstream https://github.com/apache/hertzbeat.git #Bind the remote warehouse, if it has been executed, it does not need to be executed again -git checkout master -git pull upstream master -``` - -### How to become a Committer? - -With the above steps, you are a contributor to HertzBeat. Repeat the previous steps to stay active in the community, keep at, you can become a Committer! - -### Join Discussion - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) - -Add WeChat account `tan-cloud` to pull you into the WeChat group. - -QQ group number `630061200`, verify code: `tancloud` - -Public WeChat: `tancloudtech` - -## 🥐 Architecture - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** Provide monitoring management, system management basic services. -> Provides monitoring management, monitoring configuration management, system user management, etc. -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** Provide metrics data collection services. -> Use common protocols to remotely collect and obtain peer-to-peer metrics data. -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** Provide monitoring data warehousing services. -> Metrics data management, data query, calculation and statistics. -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** Provide alert service. -> Alarm calculation trigger, monitoring status linkage, alarm configuration, and alarm notification. -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** Provide web ui. -> Angular Web UI. - -![hertzBeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat/home/static/img/docs/hertzbeat-arch.svg) diff --git a/home/versioned_docs/version-v1.3.x/others/developer.md b/home/versioned_docs/version-v1.3.x/others/developer.md deleted file mode 100644 index 881dd132527..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/developer.md +++ /dev/null @@ -1,219 +0,0 @@ ---- -id: developer -title: Contributors -sidebar_label: Contributors ---- - -## ✨ HertzBeat Members - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
zcx
zcx

💻 🐛 🎨
进击的阿晨
进击的阿晨

💻 🎨 🐛
铁甲小宝
铁甲小宝

🐛 💻 📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
hudongdong129
hudongdong129

💻 ⚠️ 📖
- -cert - - -## ✨ HertzBeat Contributors - -Thanks to these wonderful people, welcome to join us: [Contributor Guide](contributing) - -cert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
MaxKey
MaxKey

💻 🎨 🤔
观沧海
观沧海

💻 🎨 🐛
yuye
yuye

💻 📖
jx10086
jx10086

💻 🐛
winnerTimer
winnerTimer

💻 🐛
goo-kits
goo-kits

💻 🐛
brave4Time
brave4Time

💻 🐛
WalkerLee
WalkerLee

💻 🐛
jianghang
jianghang

💻 🐛
ChineseTony
ChineseTony

💻 🐛
wyt199905
wyt199905

💻
卫傅庆
卫傅庆

💻 🐛
zklmcookle
zklmcookle

💻
DevilX5
DevilX5

📖 💻
tea
tea

💻
yangshihui
yangshihui

💻 🐛
DreamGirl524
DreamGirl524

💻 📖
gzwlly
gzwlly

📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
lambert
lambert

💻
mroldx
mroldx

📖
woshiniusange
woshiniusange

📖
VampireAchao
VampireAchao

💻
zcx
zcx

💻 🐛 🎨
CharlieXCL
CharlieXCL

📖
Privauto
Privauto

💻 📖
emrys
emrys

📖
SxLiuYu
SxLiuYu

🐛
All Contributors
All Contributors

📖
铁甲小宝
铁甲小宝

💻 📖
click33
click33

📖
蒋小小
蒋小小

📖
Kevin Huang
Kevin Huang

📖
铁甲小宝
铁甲小宝

🐛 💻 📖
Captain Jack
Captain Jack

📖
haibo.duan
haibo.duan

⚠️ 💻
assassin
assassin

🐛 💻
Reverse wind
Reverse wind

⚠️ 💻
luxx
luxx

💻
Ikko Ashimine
Ikko Ashimine

📖
leizenan
leizenan

💻
BKing
BKing

📖
xingshuaiLi
xingshuaiLi

📖
wangke6666
wangke6666

📖
刺猬
刺猬

🐛 💻
Haste
Haste

💻
zhongshi.yi
zhongshi.yi

📖
Qi Zhang
Qi Zhang

📖
MrAndyMing
MrAndyMing

📖
idongliming
idongliming

💻
Zichao Lin
Zichao Lin

💻 📖
liudonghua
liudonghua

💻 🤔
Jerry
Jerry

💻 ⚠️ 🤔
yanhom
yanhom

📖
fsl
fsl

💻
xttttv
xttttv

📖
NavinKumarBarnwal
NavinKumarBarnwal

💻
Zakkary
Zakkary

📖
sunxinbo
sunxinbo

💻 ⚠️
ldzbook
ldzbook

📖 🐛
余与雨
余与雨

💻 ⚠️
MysticalDream
MysticalDream

💻 ⚠️
zhouyoulin12
zhouyoulin12

💻 ⚠️
jerjjj
jerjjj

💻
wjl110
wjl110

💻
Sean
Sean

📖
chenyiqin
chenyiqin

💻 ⚠️
hudongdong129
hudongdong129

💻 ⚠️ 📖
TherChenYang
TherChenYang

💻 ⚠️
HattoriHenzo
HattoriHenzo

💻 ⚠️
ycilry
ycilry

📖
aoshiguchen
aoshiguchen

📖 💻
蔡本祥
蔡本祥

💻
浮游
浮游

💻
Grass-Life
Grass-Life

💻
xiaohe428
xiaohe428

💻 📖
TableRow
TableRow

📖 💻
ByteIDance
ByteIDance

💻
Jangfe
Jangfe

💻
zqr10159
zqr10159

📖 💻
vinci
vinci

💻
js110
js110

💻
CrazyLionLi
CrazyLionLi

📖
banmajio
banmajio

💻
topsuder
topsuder

💻
richar2022
richar2022

💻
fcb-xiaobo
fcb-xiaobo

💻
wenkyzhang
wenkyzhang

📖
ZangJuxy
ZangJuxy

📖
l646505418
l646505418

💻
Carpe-Wang
Carpe-Wang

💻
莫枢
莫枢

💻
huangcanda
huangcanda

💻
世纪末的架构师
世纪末的架构师

💻
ShuningWan
ShuningWan

📖
MrYZhou
MrYZhou

📖
suncqujsj
suncqujsj

📖
sunqinbo
sunqinbo

💻
haoww
haoww

📖
i-mayuan
i-mayuan

📖
fengruge
fengruge

📖
zhanghuan
zhanghuan

💻
shenymin
shenymin

💻
Dhruva Chandra
Dhruva Chandra

💻
miss_z
miss_z

📖
wyt990
wyt990

💻
licocon
licocon

💻
Mi Na
Mi Na

💻
Kylin-Guo
Kylin-Guo

📖
Mr灬Dong先生
Mr灬Dong先生

💻
Pratyay Banerjee
Pratyay Banerjee

📖 💻
yujianzhong520
yujianzhong520

💻
SPPan
SPPan

💻
ZhangJiashu
ZhangJiashu

💻
impress
impress

💻
凌晨一点半
凌晨一点半

📖
Eeshaan Sawant
Eeshaan Sawant

💻
nandofromthebando
nandofromthebando

💻
caiboking
caiboking

💻
baixing99
baixing99

💻
Yang Chuang
Yang Chuang

💻
wlin20
wlin20

💻
guojing1983
guojing1983

💻
moxi
moxi

📖
qq471754603
qq471754603

💻
渭雨
渭雨

💻
liuxuezhuo
liuxuezhuo

💻
lisongning
lisongning

💻
YutingNie
YutingNie

💻
Mike Zhou
Mike Zhou

💻
小笨蛋
小笨蛋

💻
littlezhongzer
littlezhongzer

💻
ChenXiangxxxxx
ChenXiangxxxxx

💻
Mr.zhou
Mr.zhou

💻
- - - - - diff --git a/home/versioned_docs/version-v1.3.x/others/hertzbeat.md b/home/versioned_docs/version-v1.3.x/others/hertzbeat.md deleted file mode 100644 index 5fe46f3bf66..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/hertzbeat.md +++ /dev/null @@ -1,136 +0,0 @@ ---- -id: hertzbeat -title: HertzBeat 开源监控 -sidebar_label: HertzBeat 开源监控 ---- - - -> 易用友好的开源实时监控告警系统,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警系统。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 - ----- - -## 完全开源 - -- 使用`Apache2`协议,由自由开放的开源社区主导维护的开源协作产品。 -- 无监控数量`License`,监控类型等人为限制。 -- 基于`Java+SpringBoot+TypeScript+Angular`主流技术栈构建,方便的二次开发。 - -## 强大的监控模版 - -> 开始我们就说 hertzbeat 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 hertzbeat 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 - -hertzbeat 自身并没有去创造一种采集数据协议,让对端来适配它。而是充分使用了现有的生态,SNMP采集网络交换机路由器信息,JMX采集JAVA应用信息,JDBC规范采集数据集信息,SSH直连执行脚本获取回显信息,HTTP+(JsonPath | prometheus等)解析接口信息,IPMI采集服务器信息等等。 -hertzbeat 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标信息。 - -![hertzbeat](/img/blog/multi-protocol.png) - -你相信用户只需在UI页面编写一个监控模版,点击保存后,就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -![hertzbeat](/img/home/9.png) - - -## 已支持 - -**一款监控类型对应一个YML监控模版** - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- 和更多自定义监控模版。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -## 强大自定义功能 - -> 由前面的**监控模版**介绍,大概清楚了 hertzbeat 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 -> 模版里面包含各个协议的使用,指标别名转换,指标计算,单位转换等一系列功能,帮助用户能采集到自己想要的监控指标。 - -![hertzbeat](/img/docs/hertzbeat-arch.png) - -## 无需 Agent - -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 agent 的安装部署调试了。 -> 每台主机得装个 agent,为了监控不同应用中间件可能还得装几个对应的 agent,量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 -> agent 的版本是否与主应用兼容, agent 与主应用的通讯调试, agent 的同步升级等等等等,这些全是头大的点。 - -hertzbeat 的原理就是使用不同的协议去直连对端系统,采集 PULL 的形式去拉取采集数据,无需用户在对端主机上部署安装 Agent | Exporter等。 -比如监控 linux, 在 hertzbeat 端输入IP端口账户密码或密钥即可。 -比如监控 mysql, 在 hertzbeat 端输入IP端口账户密码即可。 -**密码等敏感信息全链路加密** - -## 易用友好 - -> 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -> 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -> 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -> 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 -> 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 - - ------ - -**`HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** - -![hertzbeat](/img/home/0.png) - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/2.png) - -![hertzbeat](/img/home/3.png) - -![hertzbeat](/img/home/4.png) - -![hertzbeat](/img/home/6.png) - -![hertzbeat](/img/home/7.png) - -![hertzbeat](/img/home/8.png) - -![hertzbeat](/img/home/9.png) diff --git a/home/versioned_docs/version-v1.3.x/others/huaweicloud.md b/home/versioned_docs/version-v1.3.x/others/huaweicloud.md deleted file mode 100644 index b934a5c2ca3..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/huaweicloud.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: huaweicloud -title: HertzBeat & HuaweiCloud -sidebar_label: HertzBeat & HuaweiCloud ---- - -### HertzBeat 与 HuaweiCloud 的开源合作需求Issue - -> 欢迎大家对感兴趣的Issue领取贡献。 - -- [Task] support using Huawei Cloud OBS to store custom define yml file [#841](https://github.com/apache/hertzbeat/issues/841) -- [Task] support Huawei Cloud CCE metrics monitoring [#839](https://github.com/apache/hertzbeat/issues/839) -- [Task] support EulerOS metrics monitoring [#838](https://github.com/apache/hertzbeat/issues/838) -- [Task] support using Huawei Cloud SMN send alarm notification message [#837](https://github.com/apache/hertzbeat/issues/837) -- [Task] support using GaussDB For Influx store history metrics data [#836](https://github.com/apache/hertzbeat/issues/836) - - - - -### 关于 HuaweiCloud 开源活动 - -HuaweiCloud 华为云将面向开源软件工具链与环境、开源应用构建和开源生态组件构建这三大重点场景,提供技术支持、奖金支持、活动支持,邀请更多的开发者,携手构建开源for HuaweiCloud。 - -开发者将开源软件工具、开源应用和开源组件与华为云对象存储OBS、数仓DWS、云容器CCE等云服务对接,同时基于Terraform模板,上架到华为云云商店,支持其他开发者一键部署使用开源组件 ,称为“开源xxx for HuaweiCloud”。 - -感兴趣的开发者可以查看:华为云开源项目仓库 https://gitee.com/HuaweiCloudDeveloper/huaweicloud-cloud-native-plugins-kits 了解更多。 diff --git a/home/versioned_docs/version-v1.3.x/others/images-deploy.md b/home/versioned_docs/version-v1.3.x/others/images-deploy.md deleted file mode 100644 index 782dbe83c05..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/images-deploy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: images-deploy -title: HertzBeat 华为云镜像部署 -sidebar_label: HertzBeat 华为云镜像部署快速指引 ---- - - -> 易用友好的开源实时监控告警工具,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云](https://console.tancloud.cn)**,中小团队和个人无需再为了监控自己的网站资源,而去部署学习一套繁琐的监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - - ----- - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - -## ⛄ Supported - -- [网站监控](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [端口可用性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping连通性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap全站](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl证书](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP服务器](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml) -- [Mysql](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml), - [达梦](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml) -- [Linux](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml) -- [Tomcat](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml) -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -## 镜像部署 - -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 开通服务器时选用 HertzBeat 镜像 -2. 启动服务器 -3. 配置HertzBeat的配置文件(可选) - - 修改位于 `/opt/hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](../start/mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](../start/tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](../start/iotdb-init) - - -4. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `/opt/hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](../start/account-modify) - -5. 部署启动 - 执行位于安装目录/opt/hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -6. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### 部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确 diff --git a/home/versioned_docs/version-v1.3.x/others/resource.md b/home/versioned_docs/version-v1.3.x/others/resource.md deleted file mode 100644 index d1dd29f8c54..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/resource.md +++ /dev/null @@ -1,14 +0,0 @@ ---- -id: resource -title: Related resources -sidebar_label: Related resources ---- - -## Icon resources - -### HertzBeat LOGO - -![logo](/img/hertzbeat-logo.svg) - -Download: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.jpg) - diff --git a/home/versioned_docs/version-v1.3.x/others/sponsor.md b/home/versioned_docs/version-v1.3.x/others/sponsor.md deleted file mode 100644 index 76fed132af4..00000000000 --- a/home/versioned_docs/version-v1.3.x/others/sponsor.md +++ /dev/null @@ -1,20 +0,0 @@ ---- -id: sponsor -title: Sponsor -sidebar_label: Sponsor ---- - - -**Hertzbeat is completely free for individuals or enterprises. If you like this project and are willing to help, buy us a cup of coffee** - - -![wechat-alipay](/img/docs/pay.png) - - -Thanks [JiShi Information(build a new microwave + optical transaction network)](https://www.flarespeed.com) sponsored server node. -Thanks [TianShang cloud computing(new wisdom cloud)](https://www.tsyvps.com/aff/BZBEGYLX) sponsored server node. -Thanks [Postcat(An Open source development tool)](https://datayi.cn/w/xRxVBBko) sponsored. - - - - diff --git a/home/versioned_docs/version-v1.3.x/start/account-modify.md b/home/versioned_docs/version-v1.3.x/start/account-modify.md deleted file mode 100644 index 0f6abc5b234..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/account-modify.md +++ /dev/null @@ -1,129 +0,0 @@ ---- -id: account-modify -title: Modify Account Username Password -sidebar_label: Update Account ---- - -HertzBeat default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat -If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. -The configuration file content refer to project repository[/script/sureness.yml](https://gitee.com/hertzbeat/hertzbeat/blob/master/script/sureness.yml) -Modify the following **part parameters** in sureness.yml:**[Note⚠️Other default sureness configuration parameters should be retained]** - -```yaml - -resourceRole: - - /api/account/auth/refresh===post===[admin,user,guest] - - /api/apps/**===get===[admin,user,guest] - - /api/monitor/**===get===[admin,user,guest] - - /api/monitor/**===post===[admin,user] - - /api/monitor/**===put===[admin,user] - - /api/monitor/**===delete==[admin] - - /api/monitors/**===get===[admin,user,guest] - - /api/monitors/**===post===[admin,user] - - /api/monitors/**===put===[admin,user] - - /api/monitors/**===delete===[admin] - - /api/alert/**===get===[admin,user,guest] - - /api/alert/**===post===[admin,user] - - /api/alert/**===put===[admin,user] - - /api/alert/**===delete===[admin] - - /api/alerts/**===get===[admin,user,guest] - - /api/alerts/**===post===[admin,user] - - /api/alerts/**===put===[admin,user] - - /api/alerts/**===delete===[admin] - - /api/notice/**===get===[admin,user,guest] - - /api/notice/**===post===[admin,user] - - /api/notice/**===put===[admin,user] - - /api/notice/**===delete===[admin] - - /api/tag/**===get===[admin,user,guest] - - /api/tag/**===post===[admin,user] - - /api/tag/**===put===[admin,user] - - /api/tag/**===delete===[admin] - - /api/summary/**===get===[admin,user,guest] - - /api/summary/**===post===[admin,user] - - /api/summary/**===put===[admin,user] - - /api/summary/**===delete===[admin] - -# Resources that need to be filtered and protected can be accessed directly without authentication -# /api/v1/source3===get means /api/v1/source3===get it can be accessed by anyone. Don't need to authentication -excludedResource: - - /api/account/auth/**===* - - /api/i18n/**===get - - /api/apps/hierarchy===get - # web ui the front-end static resource - - /===get - - /dashboard/**===get - - /monitors/**===get - - /alert/**===get - - /account/**===get - - /setting/**===get - - /passport/**===get - - /**/*.html===get - - /**/*.js===get - - /**/*.css===get - - /**/*.ico===get - - /**/*.ttf===get - - /**/*.png===get - - /**/*.gif===get - - /**/*.jpg===get - - /**/*.svg===get - - /**/*.json===get - # swagger ui resource - - /swagger-resources/**===get - - /v2/api-docs===get - - /v3/api-docs===get - -# user account information -# Here is admin tom lili three accounts -# eg: admin includes[admin,user]roles, password is hertzbeat -# eg: tom includes[user], password is hertzbeat -# eg: lili includes[guest],text password is lili, salt password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -Modify the following **part parameters** in sureness.yml **[Note⚠️Other default sureness configuration parameters should be retained]**: - -```yaml - -# user account information -# Here is admin tom lili three accounts -# eg: admin includes[admin,user]roles, password is hertzbeat -# eg: tom includes[user], password is hertzbeat -# eg: lili includes[guest], text password is lili, salt password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -## Update Security Secret - -> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. - - -Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. - -```yaml -sureness: - jwt: - secret: 'CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R - LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 - 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 - dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' -``` - -**Restart HertzBeat, access http://ip:1157/ to explore** diff --git a/home/versioned_docs/version-v1.3.x/start/custom-config.md b/home/versioned_docs/version-v1.3.x/start/custom-config.md deleted file mode 100644 index 91282bf5055..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/custom-config.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: custom-config -title: Advanced Params Config -sidebar_label: Advanced Params Config ---- - -This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc. - -**Configuration file `application.yml` of `hertzbeat`** - -### Configure the configuration file of HertzBeat - -Modify the configuration file located at `hertzbeat/config/application.yml` -Note ⚠️The docker container method needs to mount the application.yml file to the local host -The installation package can be decompressed and modified in `hertzbeat/config/application.yml` - -1. Configure the SMS sending server - -> Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. - -Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: XX Technology - template-id: 1343434 -``` - -2. Configure alarm custom parameters - - -```yaml -alerter: - # Custom console address - console-url: https://console.tancloud.cn -``` - -3. Use external redis instead of memory to store real-time metric data - -> By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. - -Note ⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` diff --git a/home/versioned_docs/version-v1.3.x/start/docker-deploy.md b/home/versioned_docs/version-v1.3.x/start/docker-deploy.md deleted file mode 100644 index 0aea776afdd..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/docker-deploy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: docker-deploy -title: Install HertzBeat via Docker -sidebar_label: Install via Docker ---- - -> Recommend to use docker deploy HertzBeat - - -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. pull HertzBeat Docker mirror - you can look up the mirror version TAG in [dockerhub mirror repository](https://hub.docker.com/r/apache/hertzbeat/tags) - or in [quay.io mirror repository](https://quay.io/repository/apache/hertzbeat) - ```shell - $ docker pull apache/hertzbeat - ``` - or - ```shell - $ docker pull quay.io/tancloud/hertzbeat - ``` - -3. Mounted HertzBeat configuration file (optional) - Create `application.yml` in the host directory, eg:`/opt/application.yml` - For the complete content of the configuration file, see the project repository [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml). - You can modify the configuration file according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -4. Mounted the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. - Create `sureness.yml` in the host directory,eg:`/opt/sureness.yml` - The configuration file content refer to project repository [/script/sureness.yml](https://github.com/apache/hertzbeat/blob/master/script/sureness.yml) - For detail steps, please refer to [Configure Account Password](account-modify) - -5. Start the HertzBeat Docker container - -```shell -$ docker run -d -p 1157:1157 \ - -e LANG=zh_CN.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v /opt/data:/opt/hertzbeat/data \ - -v /opt/logs:/opt/hertzbeat/logs \ - -v /opt/application.yml:/opt/hertzbeat/config/application.yml \ - -v /opt/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --name hertzbeat apache/hertzbeat -``` - - This command starts a running HertzBeat Docker container with mapping port 1157. If existing processes on the host use the port, please modify host mapped port. - - `docker run -d` : Run a container in the background via Docker - - `-p 1157:1157` : Mapping container ports to the host - - `-e LANG=zh_CN.UTF-8` : (optional) set the LANG - - `-e TZ=Asia/Shanghai` : (optional) set the TimeZone - - `-v /opt/data:/opt/hertzbeat/data` : (optional, data persistence) Important⚠️ Mount the H2 database file to the local host, to ensure that the data is not lost due creating or deleting container. - - `-v /opt/logs:/opt/hertzbeat/logs` : (optional, if you don't have a need, just delete it) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. - - `-v /opt/application.yml:/opt/hertzbeat/config/application.yml` : (optional, if you don't have a need, just delete it) Mount the local configuration file into the container which has been modified in the previous step, namely using the local configuration file to cover container configuration file. - - `-v /opt/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (optional, if you don't have a need, just delete it) Mount account configuration file modified in the previous step into the container. Delete this command parameters if no needs. - - `--name hertzbeat` : Naming container name hertzbeat - - `apache/hertzbeat` : Use the pulled latest HertzBeat official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat` instead if you pull `quay.io` docker image.** - -6. Begin to explore HertzBeat - - Access http://ip:1157/ using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - -**HAVE FUN** - -### FAQ - -**The most common problem is network problems, please check in advance** - -1. **MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` - -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -4. **Historical monitoring charts have been missing data for a long time** -> 1:Check whether you configure Tdengine or IoTDB. No configuration means no historical chart data. -> 2:Check whether Tdengine database `hertzbeat` is created. -> 3: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. - -5. If the history chart on the monitoring page is not displayed,popup [please configure time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - IoTDB or TDengine database. -> Installation and initialization this database refer to [TDengine Installation](tdengine-init) or [IoTDB Installation](iotdb-init) - -6. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is near 2.4.0.12, version 3.0 and 2.2 are not compatible. - -7. The time series database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure dependent time series database] -> Please check if the configuration parameters are correct -> Is iot-db or td-engine enable set to true -> Note⚠️If both hertzbeat and IotDB, TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.3.x/start/greptime-init.md b/home/versioned_docs/version-v1.3.x/start/greptime-init.md deleted file mode 100644 index a3d1045622c..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/greptime-init.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: greptime-init -title: Use Time Series Database GreptimeDB to Store Metrics Data (Optional) -sidebar_label: Use GreptimeDB Store Metrics ---- - -HertzBeat's historical data storage depends on the time series database GreptimeDB, TDengine or IoTDB, choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) - -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. - -It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. - -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** - -### Install GreptimeDB via Docker -> Refer to the official website [installation tutorial](https://docs.greptime.com/getting-started/overview) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install GreptimeDB with Docker - -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 \ -``` - `-v /opt/greptimedb:/tmp/greptimedb` is local persistent mount of greptimedb data directory. `/opt/greptimedb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.greptime` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable greptime - greptime: - enabled: true - endpoint: localhost:4001 -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases Greptime, IoTDB or TDengine need to be configured? Can they both be used? - -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - diff --git a/home/versioned_docs/version-v1.3.x/start/influxdb-init.md b/home/versioned_docs/version-v1.3.x/start/influxdb-init.md deleted file mode 100644 index 9ea3bfabee4..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/influxdb-init.md +++ /dev/null @@ -1,71 +0,0 @@ ---- -id: influxdb-init -title: Use Time Series Database InfluxDB to Store Metrics Data (Optional) -sidebar_label: Use InfluxDB Store Metrics ---- - -HertzBeat's historical data storage depends on the time series database InfluxDB, TDengine or IoTDB, choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) - -TDengine is the Time Series Data Platform where developers build IoT, analytics, and cloud applications. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need InfluxDB 1.x Version. - -### 1. Use HuaweiCloud GaussDB For Influx - -> Use [HuaweiCloud GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> Get the `GaussDB For Influx` service url, username and password config. - -⚠️Note `GaussDB For Influx` enable SSL default, the service url should use `https:` - -### 2. Install TDengine via Docker -> Refer to the official website [installation tutorial](https://hub.docker.com/_/influxdb) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install InfluxDB with Docker - ``` - $ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 - ``` - `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.influxdb` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable influxdb - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases InfluxDB, IoTDB and TDengine need to be configured? Can they both be used? - -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/versioned_docs/version-v1.3.x/start/iotdb-init.md b/home/versioned_docs/version-v1.3.x/start/iotdb-init.md deleted file mode 100644 index 3ddf2bc2a10..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/iotdb-init.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -id: iotdb-init -title: Use Time Series Database IoTDB to Store Metrics Data (Optional) -sidebar_label: Use IoTDB Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database IoTDB or TDengine, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) - -Apache IoTDB is a software system that integrates the collection, storage, management and analysis of time series data of the Internet of Things. We use it to store and analyze the historical data of monitoring metrics collected. Support V0.13+ version and V1.0.+ version. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** - -> If you already have an IoTDB environment, you can skip directly to the YML configuration step. - - -### Install IoTDB via Docker -> Refer to the official website [installation tutorial](https://iotdb.apache.org/UserGuide/V0.13.x/QuickStart/WayToGetIoTDB.html) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install IoTDB via Docker - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - - `-v /opt/iotdb/data:/iotdb/data` is local persistent mount of TDengine data directory.`/iotdb/data` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - -3. Configure the database connection in hertzbeat `application.yml`configuration file - - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.iot-db` data source parameters, HOST account and password. - -``` -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable iot-db - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # config.org.apache.hertzbeat.warehouse.IotDbVersion: V_0_13 || V_1_0 - version: V_0_13 - query-timeout-in-ms: -1 - # default '7776000000'(90days,unit:ms,-1:no-expire) - expire-time: '7776000000' -``` - -4. Restart HertzBeat - -### FAQ - -1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - -2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database - -3. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.3.x/start/mysql-change.md b/home/versioned_docs/version-v1.3.x/start/mysql-change.md deleted file mode 100644 index 403939bc6ab..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/mysql-change.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mysql-change -title: Use MYSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Use MYSQL Instead of H2 ---- -MYSQL is a reliable relational database. In addition to default built-in H2 database, HertzBeat allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. - -> If you have the MYSQL environment, can be directly to database creation step. - -### Install MYSQL via Docker -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install MYSQl with Docker - ``` - $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7 - ``` - `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. - use ```$ docker ps``` to check if the database started successfully - -### Database creation -1. Enter MYSQL or use the client to connect MYSQL service - `mysql -uroot -p123456` -2. Create database named hertzbeat - `create database hertzbeat;` -3. Check if hertzbeat database has been successfully created - `show databases;` - -### Modify hertzbeat's configuration file application.yml and switch data source - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `spring.database` data source parameters, URL account and password. -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` - Specific replacement parameters are as follows and you need to configure account according to the mysql environment: -```yaml -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 123456 - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false -``` - -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/start/package-deploy.md b/home/versioned_docs/version-v1.3.x/start/package-deploy.md deleted file mode 100644 index d9864133661..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/package-deploy.md +++ /dev/null @@ -1,81 +0,0 @@ ---- -id: package-deploy -title: Install HertzBeat via Package -sidebar_label: Install via Package ---- -> You can install and run HertzBeat on Linux Windows Mac system, and CPU supports X86/ARM64. Due to the installation package itself does not include the JAVA runtime environment, you need to prepare JAVA runtime environment in advance. - -1. Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) - requirement:JDK11 ENV - download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) - After installation use command line to check whether you install it successfully. - ``` - $ java -version - java version "11.0.12" - Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) - Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode) - - ``` - -2. Download HertzBeat installation package - Download installation package corresponding to your system environment - - download from [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) repository - - download from [GITHUB Release](https://github.com/apache/hertzbeat/releases) repository - -3. Configure HertzBeat's configuration file(optional) - Unzip the installation package to the host eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-[version number].tar.gz - ``` - Modify the configuration file `hertzbeat/config/application.yml` params according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -4. Configure the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. - For detail steps, please refer to [Configure Account Password](account-modify) - -5. Start the service - Execute the startup script `startup.sh` in the installation directory `hertzbeat/bin/` - ``` - $ ./startup.sh - ``` - -⚠️Note, If there are multiple Java environments configured in the system environment variables and `java11` is not included, modify `$ ./startup.sh` or `startup.bat` to specify the Java path manually. -In `startup.sh`, add `JAVA_HOME=${JAVA_DIR}` at the first line. -In `startup.bat`, modify `javaw` to the path of `java11`, such as `C:\Users\user\.jdks\corretto-11.0.18\bin\javaw` - -6. Begin to explore HertzBeat - - Access http://ip:1157/ using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - -**HAVE FUN** - -### FAQ - -1. **According to the process deploy,visit http://ip:1157/ no interface** - Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. - -2. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -3. **Historical monitoring charts have been missing data for a long time** -> 1:Check whether you configure Tdengine or IoTDB. No configuration means no historical chart data. -> 2:Check whether Tdengine database `hertzbeat` is created. -> 3: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. - -4. **The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed** -> Please confirm whether the installed TDengine version is near 2.4.0.12, version 3.0 and 2.2 are not compatible. - -5. **The time series database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure dependent time series database]** -> Please check if the configuration parameters are correct -> Is iot-db or td-engine enable set to true -> Note⚠️If both hertzbeat and IotDB, TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.3.x/start/postgresql-change.md b/home/versioned_docs/version-v1.3.x/start/postgresql-change.md deleted file mode 100644 index 5be6b466223..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/postgresql-change.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: postgresql-change -title: Use PostgreSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Use PostgreSQL Instead of H2 ---- -PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition to default built-in H2 database, HertzBeat allow you to use PostgreSQL to store structured relational data such as monitoring information, alarm information and configuration information. - -> If you have the PostgreSQL environment, can be directly to database creation step. - -### Install PostgreSQL via Docker -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install PostgreSQL with Docker - ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` - use```$ docker ps```to check if the database started successfully -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). - -### Database creation -1. Enter postgreSQL or use the client to connect postgreSQL service - ``` - su - postgres - psql - ``` -2. Create database named hertzbeat - `CREATE DATABASE hertzbeat;` -3. Check if hertzbeat database has been successfully created - `\l` - -### Modify hertzbeat's configuration file application.yml and switch data source - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `spring.database` data source parameters, URL account and password. -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -Specific replacement parameters are as follows and you need to configure account, ip, port according to the postgresql environment: -```yaml -spring: - config: - activate: - on-profile: prod - datasource: - driver-class-name: org.postgresql.Driver - username: root - password: 123456 - url: jdbc:postgresql://127.0.0.1:5432/hertzbeat - hikari: - max-lifetime: 120000 - - jpa: - database: postgresql - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.PostgreSQLDialect -``` - -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/start/quickstart.md b/home/versioned_docs/version-v1.3.x/start/quickstart.md deleted file mode 100644 index 6d89d761454..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/quickstart.md +++ /dev/null @@ -1,54 +0,0 @@ ---- -id: quickstart -title: Quick Start -sidebar_label: Quick Start ---- - -### 🐕 Quick Start - -- If you want to deploy HertzBeat local, please refer to the following Deployment Documentation for operation. - -### 🍞 Install HertzBeat - -> HertzBeat supports installation through source code, docker or package, cpu support X86/ARM64. - -##### 1:Install quickly via docker - -1. Just one command to get started: - -```docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat``` - -```or use quay.io (if dockerhub network connect timeout)``` - -```docker run -d -p 1157:1157 --name hertzbeat quay.io/tancloud/hertzbeat``` - -2. Access `localhost:1157` to start, default account: `admin/hertzbeat` - -Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.com/docs/start/docker-deploy) - -##### 2:Install via package - -1. Download the installation package [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) -2. Need Jdk Environment, `jdk11` -3. [optional]Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` -4. Run shell `$ ./startup.sh ` -5. Access `localhost:1157` to start, default account: `admin/hertzbeat` - -Detailed config refer to [Install HertzBeat via Package](https://hertzbeat.com/docs/start/package-deploy) - -##### 3:Start via source code - -1. Local source code debugging needs to start the back-end project manager and the front-end project web-app. -2. Backend:need `maven3+`, `java11`, `lombok`, start the manager service. -3. Web:need `nodejs npm angular-cli` environment, Run `ng serve --open` in `web-app` directory after backend startup. -4. Access `localhost:4200` to start, default account: `admin/hertzbeat` - -Detailed steps refer to [CONTRIBUTING](../others/contributing) - -##### 4:Install All(hertzbeat+mysql+iotdb/tdengine) via Docker-compose - -Install and deploy the mysql database, iotdb/tdengine database and hertzbeat at one time through [docker-compose deployment script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose). - -Detailed steps refer to [Install via Docker-Compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) - -**HAVE FUN** diff --git a/home/versioned_docs/version-v1.3.x/start/rainbond-deploy.md b/home/versioned_docs/version-v1.3.x/start/rainbond-deploy.md deleted file mode 100644 index 1ff4de9428f..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/rainbond-deploy.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: rainbond-deploy -title: Use Rainbond Deploy HertzBeat -sidebar_label: Install via Rainbond ---- - -If you are unfamiliar with Kubernetes, and want to install HertzBeat in Kubernetes, you can use Rainbond to deploy. Rainbond is a cloud-native application management platform built on Kubernetes and simplifies the application deployment to Kubernetes. - -## Prerequisites - -To install Rainbond, please refer to [Rainbond Quick Install](https://www.rainbond.com/docs/quick-start/quick-install)。 - -## Deploy HertzBeat - -After logging in Rainbond, click Market in the left menu, switch to open source app store, and search HertzBeat in the search box, and click the Install button. - -![](/img/docs/start/install-to-rainbond-en.png) - -Fill in the following information, and click Confirm button to install. - -* Team: select a team or create a new team -* Cluster: select a cluster -* Application: select an application or create a new application -* Version: select a version - -After installation, HertzBeat can be accessed via the Access button. - -![](/img/docs/start/hertzbeat-topology-en.png) - -:::tip -HertzBeat installed via Rainbond, External Mysql database and Redis and IoTDB are used by default, The HertzBeat configuration file is also mounted, which can be modified in `Components -> Environment Configuration -> Configuration File Settings`. -::: diff --git a/home/versioned_docs/version-v1.3.x/start/sslcert-practice.md b/home/versioned_docs/version-v1.3.x/start/sslcert-practice.md deleted file mode 100644 index 6fe9427aed3..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/sslcert-practice.md +++ /dev/null @@ -1,118 +0,0 @@ ---- -id: ssl-cert-practice -title: SSL Certificate Monitor Practice -sidebar_label: Practice Example ---- - -Most websites now support HTTPS by default. The certificate we apply for is usually 3 months or 1 year. It is easy to expire the SSL certificate over time, but we did not find it the first time, or did not update the certificate in time before it expired. - -This article introduces how to use the hertzbeat monitoring tool to detect the validity period of our website's SSL certificate, and send us a warning message when the certificate expires or a few days before the certificate expires. - -#### What is HertzBeat - -HertzBeat is a real-time monitoring tool with powerful custom monitoring capabilities without Agent. Website monitoring, PING connectivity, port availability, database, operating system, middleware, API monitoring, threshold alarms, alarm notification (email, WeChat, Ding Ding Feishu). - -**Official website: https://hertzbeat.com | https://tancloud.cn** - -github: https://github.com/apache/hertzbeat -gitee: https://gitee.com/hertzbeat/hertzbeat - -#### Install HertzBeat - -1. If you don't want to install, you can use the cloud service directly [TanCloud exploration cloud console.tancloud.cn](https://console.tancloud.cn) - -2. The `docker` environment can be installed with just one command - -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` - -3. After the installation is successful, the browser can access `localhost:1157` to start, the default account password is `admin/hertzbeat` - -#### Monitoring SSL certificates - -1. Click Add SSL Certificate Monitor - -> System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/bd53f343a5b54feab62e71458d076441~tplv-k3u1fbpfcp-zoom-1.image) - -2. Configure the monitoring website - -> Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. -> Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ad1154670648413bb82c8bdeb5b13609~tplv-k3u1fbpfcp-zoom-1.image) - -3. View the detection index data - -> In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/f874b45e909c4bb0acdd28b3fb034a61~tplv-k3u1fbpfcp-zoom-1.image) - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/ef5d7443f8c04818ae5aa28d421203be~tplv-k3u1fbpfcp-zoom-1.image) - - - -4. Set the threshold (triggered when the certificate expires) - -> System Page -> Alarms -> Alarm Thresholds -> New Thresholds - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/8d6205172d43463aa34e534477f132f1~tplv-k3u1fbpfcp-zoom-1.image) - -> Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/83d17b381d994f26a6240e01915b2001~tplv-k3u1fbpfcp-zoom-1.image) - -> Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/9b9063d7bcf9454387be0491fc382bd1~tplv-k3u1fbpfcp-zoom-1.image) - - - - -5. Set the threshold (triggered one week before the certificate expires) - -> In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/0d6f837f57c247e09f668f60eff4a0ff~tplv-k3u1fbpfcp-zoom-1.image) - -> Finally, you can see the triggered alarm in the alarm center. - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/5a61b23127524976b2c209ce0ca6a339~tplv-k3u1fbpfcp-zoom-1.image) - - -6. Alarm notification (in time notification via Dingding WeChat Feishu, etc.) - -> Monitoring Tool -> Alarm Notification -> New Receiver - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/7f36956060ef410a82bbecafcbb2957f~tplv-k3u1fbpfcp-zoom-1.image) - -For token configuration such as Dingding WeChat Feishu, please refer to the help document - -https://hertzbeat.com/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk - -> Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured - - -![](https://p3-juejin.byteimg.com/tos-cn-i-k3u1fbpfcp/d976343e81f843138344a039f3aff8a3~tplv-k3u1fbpfcp-zoom-1.image) - -7. OK When the threshold is triggered, we can receive the corresponding alarm message. If there is no notification, you can also view the alarm information in the alarm center. - ----- - -#### Finish! - -The practice of monitoring SSL certificates is here. Of course, for hertzbeat, this function is just the tip of the iceberg. If you think hertzbeat is a good open source project, please give us a Gitee star on GitHub, thank you very much. Thank you for your support. Refill! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.3.x/start/tdengine-init.md b/home/versioned_docs/version-v1.3.x/start/tdengine-init.md deleted file mode 100644 index 8f26b6b6931..00000000000 --- a/home/versioned_docs/version-v1.3.x/start/tdengine-init.md +++ /dev/null @@ -1,114 +0,0 @@ ---- -id: tdengine-init -title: Use Time Series Database TDengine to Store Metrics Data (Optional) -sidebar_label: Use TDengine Store Metrics ---- - -HertzBeat's historical data storage depends on the time series database TDengine or IoTDB, choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) - -TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need TDengine 3.x Version. - -> If you have TDengine environment, can directly skip to create a database instance. - - -### Install TDengine via Docker -> Refer to the official website [installation tutorial](https://docs.taosdata.com/get-started/docker/) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install TDengine with Docker - ```shell - $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 - ``` - `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. - `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. - use```$ docker ps``` to check if the database started successfully - -### Create database instance - -1. Enter database Docker container - ``` - $ docker exec -it tdengine /bin/bash - ``` -2. Create database named hertzbeat - After entering the container,execute `taos` command as follows: - - ``` - root@tdengine-server:~/TDengine-server# taos - Welcome to the TDengine shell from Linux, Client Version - Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. - taos> - ``` - - execute commands to create database - - ``` - taos> show databases; - taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; - ``` - - The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). - A data file every 10 days, memory blocks buffer is 16MB. - -3. Check if hertzbeat database has been created success - - ``` - taos> show databases; - taos> use hertzbeat; - ``` - -**Note⚠️If you install TDengine using package** - -> In addition to start the server,you must execute `systemctl start taosadapter` to start adapter - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.td-engine` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable td-engine - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - -2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database - -3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. - -4. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.3.x/template.md b/home/versioned_docs/version-v1.3.x/template.md deleted file mode 100644 index a02c1d11925..00000000000 --- a/home/versioned_docs/version-v1.3.x/template.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -id: template -title: Monitoring Template Here -sidebar_label: Monitoring Template ---- - -> Hertzbeat is an open source, real-time monitoring tool with custom-monitor and agentLess. - -> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. -> Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online? - -Here is the architecture. - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates, and users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** - -![](/img/docs/advanced/extend-point-1.png) - -**Welcome everyone to contribute your customized general monitoring type YML template during use. The available templates are as follows:** - -### Application service monitoring - - 👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
- 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
- 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
- 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
- 👉 [SpringBoot2.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml)
- 👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
- 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
- -### Database monitoring - - 👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
- 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
- 👉 [PostgreSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml)
- 👉 [SqlServer database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml)
- 👉 [Oracle database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml)
- 👉 [DM database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml)
- 👉 [OpenGauss database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml)
- 👉 [IoTDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml)
- 👉 [ElasticSearch database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml)
- 👉 [MongoDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml)
- 👉 [ClickHouse database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml)
- 👉 [Redis database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml)
- 👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
- 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
- -### Operating system monitoring - - 👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
- 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
- 👉 [Ubuntu operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml)
- 👉 [Centos operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml)
- 👉 [EulerOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml)
- 👉 [Fedora CoreOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml)
- 👉 [OpenSUSE operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml)
- 👉 [Rocky Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml)
- 👉 [Red Hat operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml)
- 👉 [FreeBSD operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml)
- 👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
- 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- - -### Middleware monitoring - - 👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
- 👉 [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml)
- 👉 [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml)
- 👉 [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml)
- 👉 [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml)
- 👉 [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml)
- 👉 [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml)
- 👉 [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml)
- 👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
- 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- - -### CloudNative monitoring - - 👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
- 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
- -### Network monitoring - - 👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
- 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
- 👉 [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml)
- 👉 [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml)
- 👉 [H3CSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml)
- ---- - -**Have Fun!** diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-http-default.md b/home/versioned_docs/version-v1.4.x/advanced/extend-http-default.md deleted file mode 100644 index cb8cec5b7aa..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-http-default.md +++ /dev/null @@ -1,148 +0,0 @@ ---- -id: extend-http-default -title: HTTP Protocol System Default Parsing Method -sidebar_label: Default Parsing Method ---- - -> After calling the HTTP api to obtain the response data, use the default parsing method of hertzbeat to parse the response data. - -**The interface response data structure must be consistent with the data structure rules specified by hertzbeat** - -### HertzBeat data format specification -Note⚠️ The response data is JSON format. - -Single layer format :key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -Multilayer format:Set key value in the array -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` -eg: -Query the CPU information of the custom system. The exposed interface is `/metrics/cpu`. We need `hostname,core,useage` Metric. -If there is only one virtual machine, its single-layer format is : -```json -{ - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 -} -``` -If there are multiple virtual machines, the multilayer format is: : -```json -[ - { - "hostname": "linux-1", - "core": 1, - "usage": 78.0, - "allTime": 200, - "runningTime": 100 - }, - { - "hostname": "linux-2", - "core": 3, - "usage": 78.0, - "allTime": 566, - "runningTime": 34 - }, - { - "hostname": "linux-3", - "core": 4, - "usage": 38.0, - "allTime": 500, - "runningTime": 20 - } -] -``` - -**The corresponding monitoring template yml can be configured as follows** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' -# Metric group list -metrics: -# The first monitoring Metric group cpu -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - label: true - - field: usage - type: 0 - unit: '%' - - field: core - type: 0 -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/cpu - # request mode: GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # parsing method for reponse data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # Hertzbeat default parsing is used here - parseType: default -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md b/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md deleted file mode 100644 index d2107ffba96..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-hertzbeat.md +++ /dev/null @@ -1,239 +0,0 @@ ---- -id: extend-http-example-hertzbeat -title: Tutorial 1 Adapting a monitoring type based on HTTP protocol -sidebar_label: Tutorial 1 Adapting an HTTP protocol monitoring ---- - -Through this tutorial, we describe step by step how to add a monitoring type based on the http protocol under the hertzbeat monitoring tool. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [http Protocol Customization](extend-http). - - -### HTTP protocol parses the general response structure to obtain metric data - -> In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API -`http://localhost:1157/api/summary`, the response data is: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**This time we get the metric data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** - -### Add custom monitoring template `hertzbeat` - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - - field: app - type: 1 - label: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - method: GET - # if enabled https, default value is false - ssl: ^_^ssl^_^ - # http auth - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**The addition is complete, now we save and apply. We can see that the system page has added a `hertzbeat` monitoring type. ** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### The system page adds the monitoring of `hertzbeat` monitoring type - -> We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add recipients, set alarm notifications, etc. Have Fun!!! - - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-token.md b/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-token.md deleted file mode 100644 index f5396e3dde6..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-http-example-token.md +++ /dev/null @@ -1,398 +0,0 @@ ---- -id: extend-http-example-token -title: Tutorial 2 Obtain TOKEN index value based on HTTP protocol for subsequent collection and authentication -sidebar_label: Tutorial 2 Get TOKEN for subsequent authentication ---- - -Through this tutorial, we will describe step by step how to modify on the basis of tutorial 1, add an metrics, first call the authentication interface to obtain the TOKEN, and use the TOKEN as a parameter for the subsequent metrics collection and authentication. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [http Protocol Customization](extend-http). - -### Request process - -【**Authentication information metrics (highest priority)**】【**HTTP interface carries account password call**】->【**Response data analysis**】->【**Analysis and issuance of TOKEN-accessToken as an metric **] -> [**Assign accessToken as a variable parameter to other collection index groups**] - -> Here we still use the hertzbeat monitoring example of Tutorial 1! The hertzbeat background interface not only supports the basic direct account password authentication used in Tutorial 1, but also supports token authentication. - -**We need `POST` to call the login interface `/api/account/auth/form` to get `accessToken`, the request body (json format) is as follows**: - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` -**The response structure data is as follows**: - -```json -{ - "data": { - "token": "xxxx", - "refreshToken": "xxxx" - }, - "msg": null, - "code": 0 -} -``` - -### Add custom monitoring type `hertzbeat_token` - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -1. The custom monitoring type needs to add a new configuration monitoring template yml. We directly reuse the `hertzbeat` monitoring type in Tutorial 1 and modify it based on it - -A monitoring configuration definition file named after the monitoring type - hertzbeat_token - -We directly reuse the definition content in `hertzbeat` and modify it to our current monitoring type `hertzbeat_auth` configuration parameters, such as `app, category, etc`. - -```yaml -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# Index group list configuration under todo -metrics: .... - -``` - -### Define metrics `auth` login request to get `token` - -1. Add an index group definition `auth` in `hertzbeat_token`, set the collection priority to the highest 0, and collect the index `token`. - -```yaml - -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# List of metricss -metrics: - # The first monitoring index group auth - # Note: Built-in monitoring metrics have (responseTime - response time) - - name: auth - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 0 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: token - type: 1 - - field: refreshToken - type: 1 - # Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/account/auth/form - # Request method GET POST PUT DELETE PATCH - method: POST - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # request header content - headers: - content-type: ^_^contentType^_^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data' - -``` - -**At this time, save and apply, add `hertzbeat_token` type monitoring on the system page, configure input parameters, `content-type` fill in `application/json`, `request Body` fill in the account password json as follows: ** - -```json -{ - "credential": "hertzbeat", - "identifier": "admin" -} -``` - -![](/img/docs/advanced/extend-http-example-5.png) - - -** After the addition is successful, we can see the `token`, `refreshToken` metric data we collected on the details page. ** - -![](/img/docs/advanced/extend-http-example-6.png) - -![](/img/docs/advanced/extend-http-example-7.png) - - - -### Use `token` as a variable parameter to collect and use the following metricss - -**Add an index group definition `summary` in `app-hertzbeat_token.yml`, which is the same as `summary` in Tutorial 1, and set the collection priority to 1** - -**Set the authentication method in the HTTP protocol configuration of this index group to `Bearer Token`, assign the index `token` collected by the previous index group `auth` as a parameter, and use `^o^` as the internal replacement symbol, that is ` ^o^token^o^`. as follows:** - -```yaml - - name: summary -# When the protocol is the http protocol, the specific collection configuration - http: - # authentication - authorization: - # Authentication methods: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ -``` - -**The final `hertzbeat_token` template yml is defined as follows:** - -```yaml - -# This monitoring type belongs to the category: service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type (consistent with the file name) eg: linux windows tomcat mysql aws... -app: hertzbeat_token -name: - en-GB: HertzBeat Monitoring (Token) - en-US: Hertz Beat Monitor (Token) -params: - # field - field name identifier - - field: host - # name - parameter field display name - name: - en-CN: Host Host - en-US: Host - # type-field type, style (mostly map input tag type attribute) - type: host - # Whether it is a required item true-required false-optional - required: true - - field: port - name: - en-CN: port - en-US: Port - type: number - # When the type is number, use range to represent the range - range: '[0,65535]' - required: true - # port default - defaultValue: 1157 - # Parameter input box prompt information - placeholder: 'Please enter the port' - - field: ssl - name: - en-CN: Enable SSL - en-US: SSL - # When the type is boolean, the front end uses switch to display the switch - type: boolean - required: false - - field: contentType - name: - en-CN: Content-Type - en-US: Content-Type - type: text - placeholder: 'Request Body Type' - required: false - - field: payload - name: - en-CN: request BODY - en-US: BODY - type: textarea - placeholder: 'Available When POST PUT' - required: false -# List of metricss -metrics: -# The first monitoring index group cpu -# Note: Built-in monitoring metrics have (responseTime - response time) - - name: auth - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 0 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: token - type: 1 - - field: refreshToken - type: 1 - # Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/account/auth/form - # Request method GET POST PUT DELETE PATCH - method: POST - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - payload: ^_^payload^_^ - # request header content - headers: - content-type: ^_^contentType^_^ - ^_^headers^_^: ^_^headers^_^ - # Request parameter content - params: - ^_^params^_^: ^_^params^_^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data' - - - - name: summary - # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel - # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails - priority: 1 - # Specific monitoring metrics in the metrics - fields: - # metric information includes field name type field type: 0-number, 1-string , label-if is metrics label, unit: metric unit - - field: category - type: 1 - - field: app - type: 1 - - field: size - type: 0 - - field: status - type: 0 -# Monitoring and collection protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# When the protocol is the http protocol, the specific collection configuration - http: - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /api/summary - # Request method GET POST PUT DELETE PATCH - method: GET - # Whether to enable ssl/tls, that is, http or https, default false - ssl: ^_^ssl^_^ - # authentication - authorization: - # Authentication methods: Basic Auth, Digest Auth, Bearer Token - type: Bearer Token - bearerTokenToken: ^o^token^o^ - # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring - parseType: jsonPath - parseScript: '$.data.apps.*' - -``` - -**After the configuration is complete, save and apply, and check the monitoring details page** - -![](/img/docs/advanced/extend-http-example-8.png) - -![](/img/docs/advanced/extend-http-example-9.png) - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-http-jsonpath.md b/home/versioned_docs/version-v1.4.x/advanced/extend-http-jsonpath.md deleted file mode 100644 index 772c96d20d3..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-http-jsonpath.md +++ /dev/null @@ -1,165 +0,0 @@ ---- -id: extend-http-jsonpath -title: HTTP Protocol JsonPath Parsing Method -sidebar_label: JsonPath Parsing Method ---- -> After calling the HTTP api to obtain the response data, use JsonPath script parsing method to parse the response data. - -Note⚠️ The response data is JSON format. - -**Use the JsonPath script to parse the response data into data that conforms to the data structure rules specified by HertzBeat** - -#### JsonPath Operator -[JSONPath online verification](https://www.jsonpath.cn) - -| JSONPATH | Help description | -|------------------|----------------------------------------------------------------------------------------| -| $ | Root object or element | -| @ | Current object or element | -| . or [] | Child element operator | -| .. | Recursively match all child elements | -| * | Wildcard. Match all objects or elements | -| [] | Subscript operator, jsonpath index starts from 0 | -| [,] | Join operator, return multiple results as an array. Jsonpath allows the use of aliases | -| [start:end:step] | Array slice operator | -| ?() | Filter (script) expression | -| () | Script Expression | - -#### HertzBeat data format specification -Single layer format :key-value -```json -{ - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" -} -``` -Multilayer format:Set key value in the array -```json -[ - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - }, - { - "metricName1": "metricValue", - "metricName2": "metricValue", - "metricName3": "metricValue", - "metricName4": "metricValue" - } -] -``` - -#### Example - -Query the value information of the custom system, and its exposed interface is `/metrics/person`. We need `type,num` Metric. -The raw data returned by the interface is as follows: -```json -{ - "firstName": "John", - "lastName" : "doe", - "age" : 26, - "address" : { - "streetAddress": "naist street", - "city" : "Nara", - "postalCode" : "630-0192" - }, - "number": [ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } - ] -} -``` - -We use the jsonpath script to parse, and the corresponding script is: `$.number[*]`,The parsed data structure is as follows: -```json -[ - { - "type": "core", - "num": 3343 - }, - { - "type": "home", - "num": 4543 - } -] -``` -This data structure conforms to the data format specification of HertzBeat, and the Metric `type,num` is successfully extracted. - -**The corresponding monitoring template yml can be configured as follows** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' -# Metric group list -metrics: -# The first monitoring Metric group person -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: type - type: 1 - label: true - - field: num - type: 0 -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/person - # request mode GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # parsing method for response data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # jsonPath parsing is used here - parseType: jsonPath - parseScript: '$.number[*]' -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-http.md b/home/versioned_docs/version-v1.4.x/advanced/extend-http.md deleted file mode 100644 index a69b54e84d0..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-http.md +++ /dev/null @@ -1,206 +0,0 @@ ---- -id: extend-http -title: HTTP Protocol Custom Monitoring -sidebar_label: HTTP Protocol Custom Monitoring ---- - -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use HTTP protocol to customize Metric monitoring - -### HTTP protocol collection process - -【**Call HTTP API**】->【**Response Verification**】->【**Parse Response Data**】->【**Default method parsing|JsonPath script parsing | XmlPath parsing(todo) | Prometheus parsing**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of HTTP protocol. We need to configure HTTP request parameters, configure which Metrics to obtain, and configure the parsing method and parsing script for response data. -HTTP protocol supports us to customize HTTP request path, request header, request parameters, request method, request body, etc. - -**System default parsing method**:HTTP interface returns the JSON data structure specified by hertzbeat, that is, the default parsing method can be used to parse the data and extract the corresponding Metric data. For details, refer to [**System Default Parsing**](extend-http-default) -**JsonPath script parsing method**:Use JsonPath script to parse the response JSON data, return the data structure specified by the system, and then provide the corresponding Metric data. For details, refer to [**JsonPath Script Parsing**](extend-http-jsonpath) - - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- - -Configuration usages of the monitoring templates yml are detailed below. Please pay attention to usage annotation. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_http` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_http -name: - zh-CN: 模拟应用类型 - en-US: EXAMPLE APP -params: - # field-field name identifier - - field: host - # name-parameter field display name - name: - zh-CN: 主机Host - en-US: Host - # type-field type, style(most mappings are input label type attribute) - type: host - # required or not true-required false-optional - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - # When type is number, range is used to represent the range. - range: '[0,65535]' - required: true - # port default - defaultValue: 80 - # Prompt information of parameter input box - placeholder: 'Please enter the port' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - # When type is text, use limit to indicate the string limit size - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: ssl - name: - zh-CN: 启动SSL - en-US: Enable SSL - # When type is boolean, front end uses switch to show the switch - type: boolean - required: false - - field: method - name: - zh-CN: 请求方式 - en-US: Method - type: radio - required: true - # When type is radio or checkbox, option indicates the list of selectable values {name1:value1,name2:value2} - options: - - label: GET request - value: GET - - label: POST request - value: POST - - label: PUT request - value: PUT - - label: DELETE request - value: DELETE -# Metric group list -metrics: -# The first monitoring Metric group cpu -# Note:the built-in monitoring Metrics have (responseTime - response time) - - name: cpu - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - label: true - - field: usage - type: 0 - unit: '%' - - field: cores - type: 0 - - field: waitTime - type: 0 - unit: s -# (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - hostname - - core1 - - core2 - - usage - - allTime - - runningTime -# (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. -# eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - hostname=hostname - - cores=core1+core2 - - usage=usage - - waitTime=allTime-runningTime -# protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http -# Specific collection configuration when the protocol is HTTP protocol - http: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - # url request interface path - url: /metrics/cpu - # request mode: GET POST PUT DELETE PATCH - method: GET - # enable ssl/tls or not, that is to say, HTTP or HTTPS. The default is false - ssl: false - # request header content - headers: - apiVersion: v1 - # request parameter content - params: - param1: param1 - param2: param2 - # authorization - authorization: - # authorization method: Basic Auth, Digest Auth, Bearer Token - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - # parsing method for reponse data: default-system rules, jsonPath-jsonPath script, website-website availability Metric monitoring - # todo xmlPath-xmlPath script, prometheus-Prometheus data rules - parseType: jsonPath - parseScript: '$' - - - name: memory - priority: 1 - fields: - - field: hostname - type: 1 - label: true - - field: total - type: 0 - unit: kb - - field: usage - type: 0 - unit: '%' - - field: speed - type: 0 - protocol: http - http: - host: ^_^host^_^ - port: ^_^port^_^ - url: /metrics/memory - method: GET - headers: - apiVersion: v1 - params: - param1: param1 - param2: param2 - authorization: - type: Basic Auth - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - parseType: default -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-jdbc.md b/home/versioned_docs/version-v1.4.x/advanced/extend-jdbc.md deleted file mode 100644 index 1748e372961..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-jdbc.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-jdbc -title: JDBC Protocol Custom Monitoring -sidebar_label: JDBC Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JDBC(support mysql,mariadb,postgresql,sqlserver at present) to customize Metric monitoring. -> JDBC protocol custom monitoring allows us to easily monitor Metrics we want by writing SQL query statement. - -### JDBC protocol collection process -【**System directly connected to MYSQL**】->【**Run SQL query statement**】->【**parse reponse data: oneRow, multiRow, columns**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of JDBC protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query SQL statements. - -### Data parsing method -We can obtain the corresponding Metric data through the data fields queried by SQL and the Metric mapping we need. At present, there are three mapping parsing methods:oneRow, multiRow, columns. - -#### **oneRow** -> Query a row of data, return the column name of the result set through query and map them to the queried field. - -eg: -queried Metric fields:one two three four -query SQL:select one, two, three, four from book limit 1; -Here the Metric field and the response data can be mapped into a row of collected data one by one. - -#### **multiRow** -> Query multiple rows of data, return the column names of the result set and map them to the queried fields. - -eg: -queried Metric fields:one two three four -query SQL:select one, two, three, four from book; -Here the Metric field and the response data can be mapped into multiple rows of collected data one by one. - -#### **columns** -> Collect a row of Metric data. By matching the two columns of queried data (key value), key and the queried field, value is the value of the query field. - -eg: -queried fields:one two three four -query SQL:select key, value from book; -SQL response data: - -| key | value | -|---------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | - -Here by mapping the Metric field with the key of the response data, we can obtain the corresponding value as collection and monitoring data. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_sql` which use the JDBC protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: db -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_sql -name: - zh-CN: 模拟MYSQL应用类型 - en-US: MYSQL EXAMPLE APP -# Monitoring parameter definition file is used to define required input parameter field structure definition Front-end page render input parameter box according to structure -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 80 - placeholder: 'Please enter the port' - - field: database - name: - zh-CN: 数据库名称 - en-US: Database - type: text - required: false - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - - field: url - name: - zh-CN: Url - en-US: Url - type: text - required: false -# Metric group list -metrics: - - name: basic - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: version - type: 1 - label: true - - field: port - type: 1 - - field: datadir - type: 1 - - field: max_connections - type: 0 - # (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - version - - version_compile_os - - version_compile_machine - - port - - datadir - - max_connections - # (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - port=port - - datadir=datadir - - max_connections=max_connections - - version=version+"_"+version_compile_os+"_"+version_compile_machine - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method:oneRow, multiRow, columns - queryType: columns - # sql - sql: show global variables where Variable_name like 'version%' or Variable_name = 'max_connections' or Variable_name = 'datadir' or Variable_name = 'port'; - url: ^_^url^_^ - - - name: status - priority: 1 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: threads_created - type: 0 - - field: threads_connected - type: 0 - - field: threads_cached - type: 0 - - field: threads_running - type: 0 - # (optional)Monitoring Metric alias mapping to the Metric name above. The field used to collect interface data is not the final Metric name directly. This alias is required for mapping conversion. - aliasFields: - - threads_created - - threads_connected - - threads_cached - - threads_running - # (optional)The Metric calculation expression works with the above alias to calculate the final required Metric value. - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - threads_created=threads_created - - threads_connected=threads_connected - - threads_cached=threads_cached - - threads_running=threads_running - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method: oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'thread%' or Variable_name = 'com_commit' or Variable_name = 'com_rollback' or Variable_name = 'questions' or Variable_name = 'uptime'; - url: ^_^url^_^ - - - name: innodb - priority: 2 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: innodb_data_reads - type: 0 - unit: times - - field: innodb_data_writes - type: 0 - unit: times - - field: innodb_data_read - type: 0 - unit: kb - - field: innodb_data_written - type: 0 - unit: kb - protocol: jdbc - jdbc: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - platform: mysql - username: ^_^username^_^ - password: ^_^password^_^ - database: ^_^database^_^ - # SQL query method:oneRow, multiRow, columns - queryType: columns - # sql - sql: show global status where Variable_name like 'innodb%'; - url: ^_^url^_^ -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-jmx.md b/home/versioned_docs/version-v1.4.x/advanced/extend-jmx.md deleted file mode 100644 index 2c051dc9c2a..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-jmx.md +++ /dev/null @@ -1,193 +0,0 @@ ---- -id: extend-jmx -title: JMX Protocol Custom Monitoring -sidebar_label: JMX Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JMX to customize Metric monitoring. -> JMX protocol custom monitoring allows us to easily monitor Metrics we want by config JMX Mbeans Object. - -### JMX protocol collection process -【**Peer Server Enable Jmx Service**】->【**HertzBeat Connect Peer Server Jmx**】->【**Query Jmx Mbean Object Data**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of JMX protocol. We need to configure JMX request parameters, configure which Metrics to obtain, and configure Mbeans Object. - -### Data parsing method - -By configuring the monitoring template YML metrics `field`, `aliasFields`, `objectName` of the `jmx` protocol to map and parse the `Mbean` object information exposed by the peer system. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -![](/img/docs/advanced/extend-point-1.png) - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_jvm` which use the JVM protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: service -# The monitoring type eg: linux windows tomcat mysql aws... -app: example_jvm -# The monitoring i18n name -name: - zh-CN: 自定义JVM虚拟机 - en-US: CUSTOM JVM -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 9999 - # field-param field key - - field: url - # name-param field display i18n name - name: - zh-CN: JMX URL - en-US: JMX URL - # type-param field type(most mapping the html input type) - type: text - # required-true or false - required: false - # hide param-true or false - hide: true - # param field input placeholder - placeholder: 'service:jmx:rmi:///jndi/rmi://host:port/jmxrmi' - # field-param field key - - field: username - # name-param field display i18n name - name: - zh-CN: 用户名 - en-US: Username - # type-param field type(most mapping the html input type) - type: text - # when type is text, use limit to limit string length - limit: 20 - # required-true or false - required: false - # hide param-true or false - hide: true - # field-param field key - - field: password - # name-param field display i18n name - name: - zh-CN: 密码 - en-US: Password - # type-param field type(most mapping the html input tag) - type: password - # required-true or false - required: false - # hide param-true or false - hide: true -# collect metrics config list -metrics: - # metrics - basic - - name: basic - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: VmName - type: 1 - - field: VmVendor - type: 1 - - field: VmVersion - type: 1 - - field: Uptime - type: 0 - unit: ms - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: jmx - # the config content when protocol is jmx - jmx: - # host: ipv4 ipv6 domain - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - # jmx mbean object name - objectName: java.lang:type=Runtime - url: ^_^url^_^ - - - name: memory_pool - priority: 1 - fields: - - field: name - type: 1 - label: true - - field: committed - type: 0 - unit: MB - - field: init - type: 0 - unit: MB - - field: max - type: 0 - unit: MB - - field: used - type: 0 - unit: MB - units: - - committed=B->MB - - init=B->MB - - max=B->MB - - used=B->MB - # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field - aliasFields: - - Name - - Usage->committed - - Usage->init - - Usage->max - - Usage->used - # mapping and conversion expressions, use these and aliasField above to calculate metrics value - # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime - calculates: - - name=Name - - committed=Usage->committed - - init=Usage->init - - max=Usage->max - - used=Usage->used - protocol: jmx - jmx: - # host: ipv4 ipv6 domain - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - objectName: java.lang:type=MemoryPool,name=* - url: ^_^url^_^ -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-point.md b/home/versioned_docs/version-v1.4.x/advanced/extend-point.md deleted file mode 100644 index eba1811e4fc..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-point.md +++ /dev/null @@ -1,134 +0,0 @@ ---- -id: extend-point -title: Custom Monitoring -sidebar_label: Custom Monitoring ---- -> HertzBeat has custom monitoring ability. You only need to configure monitoring template yml to fit a custom monitoring type. -> Custom monitoring currently supports [HTTP protocol](extend-http),[JDBC protocol](extend-jdbc), [SSH protocol](extend-ssh), [JMX protocol](extend-jmx), [SNMP protocol](extend-snmp). And it will support more general protocols in the future. - -### Custom Monitoring Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - - -------- - -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example2` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: example2 -# The monitoring i18n name -name: - zh-CN: 模拟网站监测 - en-US: EXAMPLE WEBSITE -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 80 - # field-param field key - - field: uri - # name-param field display i18n name - name: - zh-CN: 相对路径 - en-US: URI - # type-param field type(most mapping the html input tag) - type: text - # when type is text, use limit to limit string length - limit: 200 - # required-true or false - required: false - # param field input placeholder - placeholder: 'Website uri path(no ip port) EG:/console' - # field-param field key - - field: ssl - # name-param field display i18n name - name: - zh-CN: 启用HTTPS - en-US: HTTPS - # type-param field type(most mapping the html input type) - type: boolean - # required-true or false - required: true - # field-param field key - - field: timeout - # name-param field display i18n name - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input tag) - type: number - # required-true or false - required: false - # hide param-true or false - hide: true - -metrics: - # metrics - summary, inner monitoring metrics (responseTime - response time, keyword - number of keywords) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: responseTime - type: 0 - unit: ms - - field: keyword - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url - url: ^_^uri^_^ - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH - method: GET - # if enabled https - ssl: ^_^ssl^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule - parseType: website - -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-push.md b/home/versioned_docs/version-v1.4.x/advanced/extend-push.md deleted file mode 100644 index 18e190d7f5d..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-push.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: extend-push -title: Push Style Custom Monitoring -sidebar_label: Push Style Custom Monitoring ---- - -> Push style curstom monitor is a type of monitor which allow user to configure metrics format and push metrics to hertzbeat with their own service. -> Here we will introduce how to use this feature. - -### Push style custom monitor collection process - -【Peer Server Start Pushing Metrics】 -> 【HertzBeat Push Module Stage Metrics】-> 【HertzBeat Collect Module collect Metrics Periodically】 - -### Data parsing method - -HertzBeat will parsing metrics with the format configured by user while adding new monitor. - -### Create Monitor Steps - -HertzBeat DashBoard -> Service Monitor -> Push Style Monitor -> New Push Style Monitor -> set Push Module Host (hertzbeat server ip, usually 127.0.0.1/localhost) -> set Push Module Port (hertzbeat server port, usually 1157) -> configure metrics field (unit: string, type: 0 number / 1 string) -> end - ---- - -### Monitor Configuration Example - -![](/img/docs/advanced/extend-push-example-1.png) diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-snmp.md b/home/versioned_docs/version-v1.4.x/advanced/extend-snmp.md deleted file mode 100644 index c97aea1f766..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-snmp.md +++ /dev/null @@ -1,173 +0,0 @@ ---- -id: extend-snmp -title: SNMP Protocol Custom Monitoring -sidebar_label: SNMP Protocol Custom Monitoring ---- - -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SNMP to customize Metric monitoring. -> JMX protocol custom monitoring allows us to easily monitor Metrics we want by config SNMP MIB OIDs. - -### SNMP protocol collection process -【**Peer Server Enable SNMP Service**】->【**HertzBeat Connect Peer Server SNMP**】->【**Query Oids Data**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of Snmp protocol. We need to configure Snmp request parameters, configure which Metrics to obtain, and configure oids. - - -### Data parsing method - -By configuring the metrics `field`, `aliasFields`, and `oids` under the `snmp` protocol of the monitoring template YML to capture the data specified by the peer and parse the mapping. - - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -![](/img/docs/advanced/extend-point-1.png) - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_windows` which use the SNMP protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring -category: os -# The monitoring type eg: linux windows tomcat mysql aws... -app: windows -# The monitoring i18n name -name: - zh-CN: Windows操作系统 - en-US: OS Windows -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 161 - # field-param field key - - field: version - # name-param field display i18n name - name: - zh-CN: SNMP 版本 - en-US: SNMP Version - # type-param field type(radio mapping the html radio tag) - type: radio - # required-true or false - required: true - # when type is radio checkbox, use option to show optional values {name1:value1,name2:value2} - options: - - label: SNMPv1 - value: 0 - - label: SNMPv2c - value: 1 - # field-param field key - - field: community - # name-param field display i18n name - name: - zh-CN: SNMP 团体字 - en-US: SNMP Community - # type-param field type(most mapping the html input type) - type: text - # when type is text, use limit to limit string length - limit: 100 - # required-true or false - required: true - # param field input placeholder - placeholder: 'Snmp community for v1 v2c' - # field-param field key - - field: timeout - # name-param field display i18n name - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,100000]' - # required-true or false - required: false - # hide-is hide this field and put it in advanced layout - hide: true - # default value - defaultValue: 6000 -# collect metrics config list -metrics: - # metrics - system - - name: system - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-if is metrics label - - field: name - type: 1 - - field: descr - type: 1 - - field: uptime - type: 1 - - field: numUsers - type: 0 - - field: services - type: 0 - - field: processes - type: 0 - - field: responseTime - type: 0 - unit: ms - - field: location - type: 1 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: snmp - # the config content when protocol is snmp - snmp: - # server host: ipv4 ipv6 domain - host: ^_^host^_^ - # server port - port: ^_^port^_^ - # snmp connect timeout - timeout: ^_^timeout^_^ - # snmp community - community: ^_^community^_^ - # snmp version - version: ^_^version^_^ - # snmp operation: get, walk - operation: get - # metrics oids: metric_name - oid_value - oids: - name: 1.3.6.1.2.1.1.5.0 - descr: 1.3.6.1.2.1.1.1.0 - uptime: 1.3.6.1.2.1.25.1.1.0 - numUsers: 1.3.6.1.2.1.25.1.5.0 - services: 1.3.6.1.2.1.1.7.0 - processes: 1.3.6.1.2.1.25.1.6.0 - location: 1.3.6.1.2.1.1.6.0 -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-ssh.md b/home/versioned_docs/version-v1.4.x/advanced/extend-ssh.md deleted file mode 100644 index 1567c9a762e..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-ssh.md +++ /dev/null @@ -1,205 +0,0 @@ ---- -id: extend-ssh -title: SSH Protocol Custom Monitoring -sidebar_label: SSH Protocol Custom Monitoring ---- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SSH protocol to customize Metric monitoring. -> SSH protocol custom monitoring allows us to easily monitor and collect the Linux Metrics we want by writing sh command script. - -### SSH protocol collection process -【**System directly connected to Linux**】->【**Run shell command script statement**】->【**parse response data: oneRow, multiRow**】->【**Metric data extraction**】 - -It can be seen from the process that we define a monitoring type of SSH protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query script statements. - -### Data parsing method -We can obtain the corresponding Metric data through the data fields queried by the SHELL script and the Metric mapping we need. At present, there are two mapping parsing methods:oneRow and multiRow which can meet the needs of most Metrics. - -#### **oneRow** -> Query out a column of data, return the field value (one value per row) of the result set through query and map them to the field. - -eg: -Metrics of Linux to be queried hostname-host name,uptime-start time -Host name original query command:`hostname` -Start time original query command:`uptime | awk -F "," '{print $1}'` -Then the query script of the two Metrics in hertzbeat is(Use `;` Connect them together): -`hostname; uptime | awk -F "," '{print $1}'` -The data responded by the terminal is: -``` -tombook -14:00:15 up 72 days -``` -At last collected Metric data is mapped one by one as: -hostname is `tombook` -uptime is `14:00:15 up 72 days` - -Here the Metric field and the response data can be mapped into a row of collected data one by one - -#### **multiRow** -> Query multiple rows of data, return the column names of the result set through the query, and map them to the Metric field of the query. - -eg: -Linux memory related Metric fields queried:total-Total memory, used-Used memory,free-Free memory, buff-cache-Cache size, available-Available memory -Memory metrics original query command:`free -m`, Console response: -```shell - total used free shared buff/cache available -Mem: 7962 4065 333 1 3562 3593 -Swap: 8191 33 8158 -``` -In hertzbeat multiRow format parsing requires a one-to-one mapping between the column name of the response data and the indicaotr value, so the corresponding query SHELL script is: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -Console response is: -```shell -total used free buff_cache available -7962 4066 331 3564 3592 -``` - -Here the Metric field and the response data can be mapped into collected data one by one. - -### Custom Steps - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -------- -Configuration usages of the monitoring templates yml are detailed below. - -### Monitoring Templates YML - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example_linux` which use the SSH protocol to collect data. - - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: os -# Monitoring application type(consistent with the file name) eg: linux windows tomcat mysql aws... -app: example_linux -name: - zh-CN: 模拟LINUX应用类型 - en-US: LINUX EXAMPLE APP -params: - - field: host - name: - zh-CN: 主机Host - en-US: Host - type: host - required: true - - field: port - name: - zh-CN: 端口 - en-US: Port - type: number - range: '[0,65535]' - required: true - defaultValue: 22 - placeholder: 'Please enter the port' - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: true -# Metric group list -metrics: - # The first monitoring Metric group basic - # Note:: the built-in monitoring Metrics have (responseTime - response time) - - name: basic - # The smaller Metric group scheduling priority(0-127), the higher the priority. After completion of the high priority Metric group collection,the low priority Metric group will then be scheduled. Metric groups with the same priority will be scheduled in parallel. - # Metric group with a priority of 0 is an availability group which will be scheduled first. If the collection succeeds, the scheduling will continue otherwise interrupt scheduling. - priority: 0 - # metrics fields list - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: hostname - type: 1 - label: true - - field: version - type: 1 - - field: uptime - type: 1 - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: (uname -r ; hostname ; uptime | awk -F "," '{print $1}' | sed "s/ //g") | sed ":a;N;s/\n/^/g;ta" | awk -F '^' 'BEGIN{print "version hostname uptime"} {print $1, $2, $3}' - # parsing method for reponse data:oneRow, multiRow - parseType: multiRow - - - name: cpu - priority: 1 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: info - type: 1 - - field: cores - type: 0 - unit: the number of cores - - field: interrupt - type: 0 - unit: number - - field: load - type: 1 - - field: context_switch - type: 0 - unit: number - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # 主机host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: "LANG=C lscpu | awk -F: '/Model name/ {print $2}';awk '/processor/{core++} END{print core}' /proc/cpuinfo;uptime | sed 's/,/ /g' | awk '{for(i=NF-2;i<=NF;i++)print $i }' | xargs;vmstat 1 1 | awk 'NR==3{print $11}';vmstat 1 1 | awk 'NR==3{print $12}'" - parseType: oneRow - - - name: memory - priority: 2 - fields: - # Metric information include field: name type: field type(0-number: number, 1-string: string) label-if is metrics label unit: Metric unit - - field: total - type: 0 - unit: Mb - - field: used - type: 0 - unit: Mb - - field: free - type: 0 - unit: Mb - - field: buff_cache - type: 0 - unit: Mb - - field: available - type: 0 - unit: Mb - # protocol for monitoring and collection eg: sql, ssh, http, telnet, wmi, snmp, sdk - protocol: ssh - # Specific collection configuration when the protocol is SSH protocol - ssh: - # host: ipv4 ipv6 domain name - host: ^_^host^_^ - # port - port: ^_^port^_^ - username: ^_^username^_^ - password: ^_^password^_^ - script: free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}' - parseType: multiRow -``` diff --git a/home/versioned_docs/version-v1.4.x/advanced/extend-tutorial.md b/home/versioned_docs/version-v1.4.x/advanced/extend-tutorial.md deleted file mode 100644 index f3b93341874..00000000000 --- a/home/versioned_docs/version-v1.4.x/advanced/extend-tutorial.md +++ /dev/null @@ -1,238 +0,0 @@ ---- -id: extend-tutorial -title: Quick Tutorial Customize and adapt a monitoring based on HTTP protocol -sidebar_label: Tutorial Case ---- - -Through this tutorial, we describe step by step how to customize and adapt a monitoring type based on the http protocol under the hertzbeat monitoring tool. - -Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [Http Protocol Customization](extend-http). - - -### HTTP protocol parses the general response structure to obtain metrics data - -> In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - - -``` -{ - "code": 200, - "msg": "success", - "data": {} -} - -``` -As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API -`http://localhost:1157/api/summary`, the response data is: - -``` -{ - "msg": null, - "code": 0, - "data": { - "apps": [ - { - "category": "service", - "app": "jvm", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - }, - { - "category": "service", - "app": "website", - "status": 0, - "size": 2, - "availableSize": 0, - "unManageSize": 2, - "unAvailableSize": 0, - "unReachableSize": 0 - } - ] - } -} -``` - -**This time we get the metrics data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** - - -### Add Monitoring Template Yml - -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** - -> We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - - -Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - -```yaml -# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring -category: custom -# The monitoring type eg: linux windows tomcat mysql aws... -app: hertzbeat -# The monitoring i18n name -name: - zh-CN: HertzBeat监控系统 - en-US: HertzBeat Monitor -# Input params define for monitoring(render web ui by the definition) -params: - # field-param field key - - field: host - # name-param field display i18n name - name: - zh-CN: 主机Host - en-US: Host - # type-param field type(most mapping the html input type) - type: host - # required-true or false - required: true - # field-param field key - - field: port - # name-param field display i18n name - name: - zh-CN: 端口 - en-US: Port - # type-param field type(most mapping the html input type) - type: number - # when type is number, range is required - range: '[0,65535]' - # required-true or false - required: true - # default value - defaultValue: 1157 - - field: ssl - name: - zh-CN: 启用HTTPS - en-US: HTTPS - type: boolean - required: true - - field: timeout - name: - zh-CN: 超时时间(ms) - en-US: Timeout(ms) - type: number - required: false - hide: true - - field: authType - name: - zh-CN: 认证方式 - en-US: Auth Type - type: radio - required: false - hide: true - options: - - label: Basic Auth - value: Basic Auth - - label: Digest Auth - value: Digest Auth - - field: username - name: - zh-CN: 用户名 - en-US: Username - type: text - limit: 20 - required: false - hide: true - - field: password - name: - zh-CN: 密码 - en-US: Password - type: password - required: false - hide: true -metrics: - # the first metrics summary - # attention: Built-in monitoring metrics contains (responseTime - Response time) - - name: summary - # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel - # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue - priority: 0 - # collect metrics content - fields: - # metrics content contains field-metric name, type-metric type:0-number,1-string, label-if is metrics label, unit-metric unit('%','ms','MB') - - field: app - type: 1 - label: true - - field: category - type: 1 - - field: status - type: 0 - - field: size - type: 0 - - field: availableSize - type: 0 - # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here - protocol: http - # the config content when protocol is http - http: - # http host: ipv4 ipv6 domain - host: ^_^host^_^ - # http port - port: ^_^port^_^ - # http url, we don't need to enter a parameter here, just set the fixed value to /api/summary - url: /api/summary - timeout: ^_^timeout^_^ - # http method: GET POST PUT DELETE PATCH, default fixed value is GET - method: GET - # if enabled https, default value is false - ssl: ^_^ssl^_^ - # http auth - authorization: - # http auth type: Basic Auth, Digest Auth, Bearer Token - type: ^_^authType^_^ - basicAuthUsername: ^_^username^_^ - basicAuthPassword: ^_^password^_^ - digestAuthUsername: ^_^username^_^ - digestAuthPassword: ^_^password^_^ - # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, we use jsonpath to parse response data here - parseType: jsonPath - parseScript: '$.data.apps.*' -``` - -**The addition is complete, now we restart the hertzbeat system. We can see that the system page has added a `hertzbeat` monitoring type. ** - - -![](/img/docs/advanced/extend-http-example-1.png) - - -### The system page adds the monitoring of `hertzbeat` monitoring type - -> We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - - -![](/img/docs/advanced/extend-http-example-2.png) - - -![](/img/docs/advanced/extend-http-example-3.png) - -> After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - - -![](/img/docs/advanced/extend-http-example-4.png) - - - -### Set threshold alarm notification - -> Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! - - ----- - -#### over! - -This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! - -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. Thanks for the old iron support. Refill! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/help/activemq.md b/home/versioned_docs/version-v1.4.x/help/activemq.md deleted file mode 100644 index 52e3090fde2..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/activemq.md +++ /dev/null @@ -1,145 +0,0 @@ ---- -id: activemq -title: Monitoring Apache ActiveMQ -sidebar_label: Apache ActiveMQ -keywords: [open source monitoring tool, monitoring Apache ActiveMQ metrics] ---- - -> Monitoring the running status of Apache ActiveMQ message middleware, nodes, topics and other related metrics. - -**Use Protocol: JMX** - -### Pre-monitoring Operations - -> You need to enable the `JMX` service on ActiveMQ, HertzBeat uses the JMX protocol to collect metrics from ActiveMQ. - -1. Modify the `conf/activemq.xml` file in the installation directory to enable JMX - -> Add `userJmx="true"` attribute in `broker` tag - -```xml - - - -``` - -2. Modify the `bin/env` file in the installation directory, configure the JMX port IP, etc. - -The original configuration information will be as follows -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -Update to the following configuration, ⚠️ pay attention to modify `local external IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -3. Restart the ACTIVEMQ service, and add the corresponding ActiveMQ monitoring in HertzBeat. The parameters use the IP port configured by JMX. - -### Configuration parameters - -| Parameter name | Parameter help description | -|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| JMX port | The HTTP port provided by JMX, the default is 11099. | -| JMX URL | Optional, customize the JMX URL connection | -| Username | Username used for authentication | -| password | password used for authentication | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect Metrics - -#### metrics: broker - -| Metric Name | Unit | Description | -|-------------------------|------|-----------------------------------------------------------------------| -| BrokerName | None | The name of the broker. | -| BrokerVersion | None | The version of the broker. | -| Uptime | None | Uptime of the broker. | -| UptimeMillis | ms | Uptime of the broker in milliseconds. | -| Persistent | None | Messages are synchronized to disk. | -| MemoryPercentUsage | % | Percent of memory limit used. | -| StorePercentUsage | % | Percent of store limit used. | -| TempPercentUsage | % | Percent of temp limit used. | -| CurrentConnectionsCount | None | Attribute exposed for management | -| TotalConnectionsCount | None | Attribute exposed for management | -| TotalEnqueueCount | None | Number of messages that have been sent to the broker. | -| TotalDequeueCount | None | Number of messages that have been acknowledged on the broker. | -| TotalConsumerCount | None | Number of message consumers subscribed to destinations on the broker. | -| TotalProducerCount | None | Number of message producers active on destinations on the broker. | -| TotalMessageCount | None | Number of unacknowledged messages on the broker. | -| AverageMessageSize | None | Average message size on this broker | -| MaxMessageSize | None | Max message size on this broker | -| MinMessageSize | None | Min message size on this broker | - -#### metrics: topic - -| Metric Name | Unit | Description | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | None | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | None | The percentage of the memory limit used | -| ProducerCount | None | Number of producers attached to this destination | -| ConsumerCount | None | Number of consumers subscribed to this destination. | -| EnqueueCount | None | Number of messages that have been sent to the destination. | -| DequeueCount | None | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | None | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | None | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | None | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | None | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - - -#### metrics: memory_pool - -| Metric Name | Unit | Description | -|-------------| ----------- |----------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### metrics: class_loading - -| Metric Name | Unit | Description | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### metrics: thread - -| Metric Name | Unit | Description | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | diff --git a/home/versioned_docs/version-v1.4.x/help/airflow.md b/home/versioned_docs/version-v1.4.x/help/airflow.md deleted file mode 100644 index 5323ede8110..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/airflow.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: airflow -title: 监控:Apache Airflow监控 -sidebar_label: Apache Airflow -keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ---- - -> 对Apache Airflow通用性能指标进行采集监控。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:airflow_health - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | - -#### 指标集合:airflow_version - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - diff --git a/home/versioned_docs/version-v1.4.x/help/alert_console.md b/home/versioned_docs/version-v1.4.x/help/alert_console.md deleted file mode 100644 index e727fec4771..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_console.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: alert_console -title: Custom console address in alarm template -sidebar_label: Console address in alarm template ---- - -> After the threshold is triggered, send the alarm information. When you notify through DingDing / enterprise Wechat / FeiShu robot or email, the alarm content has a detailed link to log in to the console. - - -### Custom settings - -In our startup configuration file application.yml, find the following configuration -```yml -alerter: - console-url: #Here is our custom console address -``` - -The default value is the official console address of HertzBeat. \ No newline at end of file diff --git a/home/versioned_docs/version-v1.4.x/help/alert_dingtalk.md b/home/versioned_docs/version-v1.4.x/help/alert_dingtalk.md deleted file mode 100644 index fb63d52aa48..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_dingtalk.md +++ /dev/null @@ -1,41 +0,0 @@ ---- -id: alert_dingtalk -title: Alert DingDing robot notification -sidebar_label: Alert DingDing robot notification -keywords: [open source monitoring tool, open source alerter, open source DingDing robot notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by DingDing robot. - -### Operation steps - -1. **【DingDing desktop client】-> 【Group settings】-> 【Intelligent group assistant】-> 【Add new robot-select custom】-> 【Set robot name and avatar】-> 【Note⚠️Set custom keywords: HertzBeat】 ->【Copy its webhook address after adding successfully】** - -> Note⚠️ When adding a robot, its custom keywords need to be set in the security setting block: HertzBeat. Other security settings or the IP segment don't need to be filled in. - -![email](/img/docs/help/alert-notice-8.png) - -2. **【Save access_token value of the WebHook address of the robot】** - -> eg: webHook address:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> Its robot access_token value is `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` - -3. **【Alarm notification】->【Add new recipient】 ->【Select DingDing robot notification method】->【Set DingDing robot ACCESS_TOKEN】-> 【Confirm】** - -![email](/img/docs/help/alert-notice-9.png) - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### DingDing robot common issues - -1. DingDing group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether DingDing robot is configured with security custom keywords :HertzBeat. -> Please check whether the robot ACCESS_TOKEN is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_discord.md b/home/versioned_docs/version-v1.4.x/help/alert_discord.md deleted file mode 100644 index 8dfdca384fa..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_discord.md +++ /dev/null @@ -1,70 +0,0 @@ ---- -id: alert_discord -title: Alert Discord Bot Notifications -sidebar_label: Alert Discord bot notification -keywords: [open source monitoring tool, open source alerter, open source Discord bot notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Discord robot. - -## Steps - -### Create an application in Discord, create a robot under the application, and get the robot Token - -1. Visit [https://discord.com/developers/applications](https://discord.com/developers/applications) to create an application - -![bot](/img/docs/help/discord-bot-1.png) - -2. Create a robot under the application and get the robot Token - -![bot](/img/docs/help/discord-bot-2.png) - -![bot](/img/docs/help/discord-bot-3.png) - -3. Authorize the bot to the chat server - -> Authorize the robot under the OAuth2 menu, select `bot` for `SCOPES`, `BOT PERMISSIONS` select `Send Messages` - -![bot](/img/docs/help/discord-bot-4.png) - -> Obtain the URL generated at the bottom, and the browser accesses this URL to officially authorize the robot, that is, to set which chat server the robot will join. - -4. Check if your chat server has joined robot members - -![bot](/img/docs/help/discord-bot-5.png) - -### Enable developer mode and get Channel ID - -1. Personal Settings -> Advanced Settings -> Enable Developer Mode - -![bot](/img/docs/help/discord-bot-6.png) - -2. Get channel Channel ID - -> Right-click the chat channel you want to send the robot message to, click the COPY ID button to get the Channel ID - -![bot](/img/docs/help/discord-bot-7.png) - - -### Add an alarm notification person in HertzBeat, the notification method is Discord Bot - -1. **[Alarm notification] -> [Add recipient] -> [Select Discord robot notification method] -> [Set robot Token and ChannelId] -> [OK]** - -![email](/img/docs/help/discord-bot-8.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Discord Bot Notification FAQ - -1. Discord doesn't receive bot alert notifications - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and ChannelId are configured correctly, and whether the alarm policy association has been configured -> Please check whether the bot is properly authorized by the Discord chat server - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_email.md b/home/versioned_docs/version-v1.4.x/help/alert_email.md deleted file mode 100644 index 353ae4673fe..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_email.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_email -title: Alert email notification -sidebar_label: Alert email notification -keywords: [open source monitoring tool, open source alerter, open source email notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by email. - -### Operation steps - -1. **【Alarm notification】->【Add new recipient】 ->【Select email notification method】** - -![email](/img/docs/help/alert-notice-1.png) - -2. **【Get verification code】-> 【Enter email verification code】-> 【Confirm】** -![email](/img/docs/help/alert-notice-2.png) - -![email](/img/docs/help/alert-notice-3.png) - -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### Email notification common issues - -1. Hertzbeat deployed on its own intranet cannot receive email notifications -> Hertzbeat needs to configure its own mail server, not tancloud. Please confirm whether you have configured its own mail server in application.yml - -2. Cloud environment tancloud cannot receive email notification -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the mailbox is configured correctly and whether the alarm strategy association is configured. -> Please check whether the warning email is blocked in the trash can of the mailbox. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_enterprise_wechat_app.md b/home/versioned_docs/version-v1.4.x/help/alert_enterprise_wechat_app.md deleted file mode 100644 index f9e072e436a..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_enterprise_wechat_app.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_enterprise_wechat_app -title: Alert Enterprise Wechat App notification -sidebar_label: Alert Enterprise Wechat App notification -keywords: [open source monitoring tool, open source alerter, open source Enterprise Wechat App notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by enterprise WeChat App. - -### Operation steps - -1. **【Enterprise Wechat backstage】-> 【App Management】-> 【Create an app】-> 【Set App message】->【Copy AgentId and Secret adding successfully】** - -![email](/img/docs/help/alert-wechat-1.jpg) - -2. **【Alarm notification】->【Add new recipient】 ->【Select Enterprise WeChat App notification method】->【Set Enterprise WeChat ID,Enterprise App ID and Enterprise App Secret 】-> 【Confirm】** - -![email](/img/docs/help/alert-wechat-2.jpg) - -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-wechat-3.jpg) - - -### Enterprise WeChat App common issues - -1. Enterprise WeChat App did not receive the alarm notification. -> Please check if the user has application permissions. -> Please check if the enterprise application callback address settings are normal. -> Please check if the server IP is on the enterprise application whitelist. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_feishu.md b/home/versioned_docs/version-v1.4.x/help/alert_feishu.md deleted file mode 100644 index 56606012021..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_feishu.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: alert_feishu -title: Alert FeiShu robot notification -sidebar_label: Alert FeiShu robot notification -keywords: [open source monitoring tool, open source alerter, open source feishu bot notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by FeiShu robot. - -### Operation steps - -1. **【FeiShu client】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** - -2. **【Save the key value of the WebHook address of the robot】** - -> eg: webHook address:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【Alarm notification】->【Add new recipient】 ->【Select FeiShu robot notification method】->【Set FeiShu robot KEY】-> 【Confirm】** - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### FeiShu robot notification common issues - -1. FeiShu group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_slack.md b/home/versioned_docs/version-v1.4.x/help/alert_slack.md deleted file mode 100644 index 0de69afa328..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_slack.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_slack -title: Alert Slack Webhook Notifications -sidebar_label: Alert Slack Webhook Notification -keywords: [open source monitoring tool, open source alerter, open source slack webhook notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Slack Webhook. - -## Steps - -### Open Webhook in Slack, get Webhook URL - -Refer to the official website document [Sending messages using Incoming Webhooks](https://api.slack.com/messaging/webhooks) - -### Add an alarm notifier to HertzBeat, and the notification method is Slack Webhook - -1. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Webhook URL】-> 【OK】** - -![email](/img/docs/help/slack-bot-1.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Slack Notification FAQ - -1. Slack did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the slack webhook url are configured correctly, and whether the alarm policy association has been configured - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_smn.md b/home/versioned_docs/version-v1.4.x/help/alert_smn.md deleted file mode 100644 index b4013b9f902..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_smn.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: alert_smn -title: Alert Huawei Cloud SMN Notifications -sidebar_label: Alert Huawei Cloud SMN Notifications -keywords: [ open source monitoring tool, open source alerter, open source Huawei Cloud SMN notification ] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Huawei Cloud SMN. - -### 操作步骤 - -1. **According to [Huawei Cloud SMN Official Document](https://support.huaweicloud.com/qs-smn/smn_json.html) activate the SMN service and configure SMN** - -![alert-notice-10](/img/docs/help/alert-notice-10.png) - -2. **Save topic URN for SMN** - -![alert-notice-11](/img/docs/help/alert-notice-11.png) - -3. **According to [Huawei Cloud Signature Document](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html) obtain AK, SK, and project ID** - -![alert-notice-12](/img/docs/help/alert-notice-12.png) - -![alert-notice-13](/img/docs/help/alert-notice-13.png) - -4. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Huawei Cloud SMN AK, SK and other configurations】-> 【OK】** - -![alert-notice-14](/img/docs/help/alert-notice-14.png) - -5. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-4.png) - -### Huawei Cloud SMN Notification FAQ - -1. Huawei Cloud SMN did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the Huawei Cloud SMN AK, SK and other configurations are configured correctly, and whether the alarm policy association has been configured - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_telegram.md b/home/versioned_docs/version-v1.4.x/help/alert_telegram.md deleted file mode 100644 index 1fbe4f0ae7e..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_telegram.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: alert_telegram -title: Alert Telegram Bot Notification -sidebar_label: Alert Telegram bot notification -keywords: [open source monitoring tool, open source alerter, open source Telegram bot notification] ---- - -> Send an alarm message after the threshold is triggered, and notify the recipient through the Telegram robot. - -## Steps - -### Create a bot in Telegram, get Bot Token and UserId - -1. Use [@BotFather](https://t.me/BotFather) to create your own bot and get an access token `Token` - -![telegram-bot](/img/docs/help/telegram-bot-1.png) - -2. Get the `User ID` of the recipient - -**Use the recipient account you want to notify to send a message to the newly created Bot account**, -Visit ```https://api.telegram.org/bot/getUpdates```, **`use the Bot Token from the previous step to replace the `**, and respond to the first in the `Json` data A `result.message.from.id` value is the recipient's `User ID` - -```json -{ - "ok": true, - "result": [ - { - "update_id": 632299191, - "message": { - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date": 1673858065, - "text": "111" - } - } - ] -} -``` - -3. Record and save the `Token` and `User Id` we got - -### Add an alarm notification person to HertzBeat, the notification method is Telegram Bot - -1. **【Alarm Notification】->【Add Recipient】->【Select Telegram Robot Notification Method】->【Set Robot Token and UserId】-> 【OK】** - -![email](/img/docs/help/telegram-bot-2.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** - -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) - - -### Telegram Bot Notification FAQ - -1. Telegram did not receive the robot warning notification - -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and UserId are configured correctly, and whether the alarm policy association has been configured -> UserId should be the UserId of the recipient of the message - -Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_threshold.md b/home/versioned_docs/version-v1.4.x/help/alert_threshold.md deleted file mode 100644 index 893f674164d..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_threshold.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: alert_threshold -title: Threshold alarm configuration -sidebar_label: Threshold alarm configuration ---- - -> Configure the alarm threshold (warning alarm, critical alarm, emergency alarm) for the monitoring Metrics, and the system calculates and triggers the alarm according to the threshold configuration and the collected Metric data. - -### Operation steps - -1. **【Alarm configuration】->【Add new threshold】-> 【Confirm after configuration】** - -![threshold](/img/docs/help/alert-threshold-1.png) - -As shown above: - -**Metric object**:Select the monitoring Metric object for which we need to configure the threshold. Eg:website monitoring type -> summary Metric set -> responseTime-response time Metric -**Threshold trigger expression**:Calculate and judge whether to trigger the threshold according to this expression. See the page prompts for expression environment variables and operators. Eg:set the response time greater than 50 to trigger an alarm, and the expression is `responseTime > 50`. For detailed help on threshold expression, see [Threshold expression help](alert_threshold_expr) -**Alarm level**:The alarm level that triggers the threshold, from low to high: warning, critical, emergency. -**Trigger times**:How many times will the threshold be triggered before the alarm is really triggered. -**Notification template**:Notification information Template sent after alarm triggering, See page prompts for template environment variables, eg:`${app}.${metrics}.${metric} Metric's value is ${responseTime}, greater than 50 triggers an alarm` -**Global default**: Set whether this threshold is valid for such global Metrics, and the default is No. After adding a new threshold, you need to associate the threshold with the monitoring object, so that the threshold will take effect for this monitoring. -**Enable alarm**:This alarm threshold configuration is enabled or disabled. - -2. **Threshold association monitoring⚠️ 【Alarm configuration】-> 【Threshold just set】-> 【Configure associated monitoring】-> 【Confirm after configuration】** - -> **Note⚠️ After adding a new threshold, you need to associate the threshold with the monitoring object(That is, to set this threshold for which monitoring is effective), so that the threshold will take effect for this monitoring.**。 - -![threshold](/img/docs/help/alert-threshold-2.png) - -![threshold](/img/docs/help/alert-threshold-3.png) - -**After the threshold alarm is configured, the alarm information that has been successfully triggered can be seen in 【alarm center】.** -**If you need to notify the relevant personnel of the alarm information by email, Wechat, DingDing and Feishu, it can be configured in 【alarm notification】.** - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_threshold_expr.md b/home/versioned_docs/version-v1.4.x/help/alert_threshold_expr.md deleted file mode 100644 index e211514cad2..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_threshold_expr.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: alert_threshold_expr -title: Threshold trigger expression -sidebar_label: Threshold trigger expression ---- - -> When we configure the threshold alarm, we need to configure the threshold trigger expression. The system calculates whether to trigger the alarm according to the expression and the monitoring index value. Here is a detailed introduction to the use of the expression. - -#### Operators supported by expressions - -``` -equals(str1,str2) -== -< -<= -> ->= -!= -( ) -+ -- -&& -|| -``` - -Rich operators allow us to define expressions freely. -Note⚠️ For the equality of string, please use `equals(str1,str2)`, while for the equality judgment of number, please use == or != - -#### Supported environment variables -> Environment variables, i.e. supported variables such as Metric values, are used in the expression. When the threshold value is calculated and judged, the variables will be replaced with actual values for calculation. - -Non fixed environment variables:These variables will change dynamically according to the monitoring Metric object we choose. For example, if we choose **response time Metric of website monitoring**, the environment variables will have `responseTime - This is the response time variable` -If we want to set **when the response time of website monitoring is greater than 400** to trigger an alarm,the expression is `responseTime>400` - -Fixed environment variables(Rarely used):`instance : Row instance value` -This variable is mainly used to calculate multiple instances. For example, we collected `usage`(`usage is non fixed environment variables`) of disk C and disk D, but we only want to set the alarm when **the usage of C disk is greater than 80**. Then the expression is `equals(instance,"c")&&usage>80` - -#### Expression setting case - -1. Website monitoring -> Trigger alarm when the response time is greater than or equal to 400ms -`responseTime>=400` -2. API monitoring -> Trigger alarm when the response time is greater than 3000ms -`responseTime>3000` -3. Entire site monitoring -> Trigger alarm when URL(instance) path is `https://baidu.com/book/3` and the response time is greater than 200ms -`equals(instance,"https://baidu.com/book/3")&&responseTime>200` -4. MYSQL monitoring -> status Metric group -> Trigger alarm when hreads_running(number of running threads) Metric is greater than 7 -`threads_running>7` - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_webhook.md b/home/versioned_docs/version-v1.4.x/help/alert_webhook.md deleted file mode 100644 index adc1b6f12f8..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_webhook.md +++ /dev/null @@ -1,66 +0,0 @@ ---- -id: alert_webhook -title: Alert WebHook callback notification -sidebar_label: Alert webHook notification -keywords: [open source monitoring tool, open source alerter, open source webhook notification] ---- - -> After the threshold is triggered send alarm information and call the Webhook interface through post request to notify the recipient. - -### Operation steps - -1. **【Alarm notification】->【Add new recipient】 ->【Select WebHook notification method】-> 【Set WebHook callback address】 -> 【Confirm】** - -![email](/img/docs/help/alert-notice-5.png) - -2. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - -### WebHook callback POST body BODY content - -Content format:JSON -```json -{ - "alarmId": 76456, - "target": "${target}", - "thresholdId": 33455, - "priority": 0, - "content": "udp_port monitoring availability alert, code is FAIL", - "status": 0, - "times": 1, - "triggerTime": "2022-02-25T13:32:13", - "tags": { - "app": "windows", - "monitorId": "180427708350720", - "metrics": "availability", - "code": "UN_CONNECTABLE", - "thresholdId": "112", - "monitorName": "WINDOWS_192.168.124.12" - } -} -``` - -| | | -|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| tags | example: {key1:value1} | - - - -### Webhook notification common issues - -1. WebHook callback did not take effect -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the configured webhook callback address is correct. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/alert_wework.md b/home/versioned_docs/version-v1.4.x/help/alert_wework.md deleted file mode 100644 index e862fae7ddf..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/alert_wework.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: alert_wework -title: Alert enterprise Wechat notification -sidebar_label: Alert enterprise Wechat notification -keywords: [open source monitoring tool, open source alerter, open source WeWork notification] ---- - -> After the threshold is triggered send alarm information and notify the recipient by enterprise Wechat robot. - -### Operation steps - -1. **【Enterprise Wechat】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** - -![email](/img/docs/help/alert-notice-6.jpg) - -2. **【Save the key value of the WebHook address of the robot】** - -> eg: webHook address:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` - -3. **【Alarm notification】->【Add new recipient】 ->【Select enterprise Wechat robot notification method】->【Set enterprise Wechat robot KEY】-> 【Confirm】** - -![email](/img/docs/help/alert-notice-7.png) - -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** - -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) - - -### Enterprise Wechat robot common issues - -1. The enterprise wechat group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. - -Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.4.x/help/api.md b/home/versioned_docs/version-v1.4.x/help/api.md deleted file mode 100644 index ed92a722091..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/api.md +++ /dev/null @@ -1,35 +0,0 @@ ---- -id: api -title: Monitoring HTTP API -sidebar_label: HTTP API -keywords: [open source monitoring tool, monitoring http api] ---- - -> Call HTTP API interface, check whether the interface is available, and monitor its response time and other Metrics. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Request mode | Set the request mode of interface call:GET, POST, PUT, DELETE | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Username | User name used for interface Basic authentication or Digest authentication | -| Password | Password used for interface Basic authentication or Digest authentication | -| Content-Type | Set the resource type when carrying the BODY request body data request | -| Request BODY | Set the carry BODY request body data, which is valid when PUT or POST request method is used | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - diff --git a/home/versioned_docs/version-v1.4.x/help/centos.md b/home/versioned_docs/version-v1.4.x/help/centos.md deleted file mode 100644 index 2a6ad2b0a6d..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/centos.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: centos -title: CentOS operating system monitoring -sidebar_label: CentOS operating system -keywords: [open source monitoring tool, open source os monitoring tool, monitoring CentOS operating system metrics] ---- - -> Collect and monitor the general performance Metrics of CentOS operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.4.x/help/dm.md b/home/versioned_docs/version-v1.4.x/help/dm.md deleted file mode 100644 index 91b032fdf54..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/dm.md +++ /dev/null @@ -1,49 +0,0 @@ ---- -id: dm -title: Monitoring DM database -sidebar_label: DM Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring DM database metrics] ---- - -> Collect and monitor the general performance metrics of the DM database. DM8+ is supported. - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------- | ---------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 5236. | -| Query Timeout | Set the timeout when the SQL query does not respond to data, in ms milliseconds, the default is 3000 milliseconds. | -| database name | database instance name, optional. | -| username | database connection username, optional | -| password | database connection password, optional | -| URL | Database connection URL, optional | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: basic - -| Metric Name | Metric Unit | Metric Help Description | -| ------------ | -------- | ------------------ | -| PORT_NUM | None | Database exposed service port | -| CTL_PATH | None | Control File Path | -| MAX_SESSIONS | None | Maximum database connections | - -#### Metric collection: status - -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------------ | -| status$ | None | Open/Close status of DM database | - - -#### Metric collection: thread - -| Metric Name | Metric Unit | Metric Help Description | -| ------------- | -------- | ------------------------- | -| dm_sql_thd | None | Thread for writing dmsql dmserver | -| dm_io_thd | None | IO threads, controlled by IO_THR_GROUPS parameter, default is 2 threads | -| dm_quit_thd | None | Thread used to perform a graceful shutdown of the database | diff --git a/home/versioned_docs/version-v1.4.x/help/docker.md b/home/versioned_docs/version-v1.4.x/help/docker.md deleted file mode 100644 index fdd3098ce55..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/docker.md +++ /dev/null @@ -1,106 +0,0 @@ ---- -id: docker -title: Monitor:Docker Monitor -sidebar_label: Docker Monitor -keywords: [open source monitoring tool, open source docker monitoring tool, monitoring docker metrics] ---- - -> Collect and monitor general performance Metrics of Docker containers. - - -## Pre-monitoring operations - -If you want to monitor the container information in `Docker`, you need to open the port according to the following steps, so that the collection request can obtain the corresponding information. - -**1. Edit the docker.server file:** - -````shell -vi /usr/lib/systemd/system/docker.service -```` - -Find the **[Service]** node, modify the ExecStart property, and add `-H tcp://0.0.0.0:2375` - -````shell -ExecStart=/usr/bin/dockerd -H fd:// --containerd=/run/containerd/containerd.sock -H tcp://0.0.0.0:2375 -```` - -This is equivalent to the **2375** port that is open to the outside world. Of course, it can be modified to other ports according to your own situation. - -**2. Reload the Docker configuration to take effect:** - -```shell -systemctl daemon-reload -systemctl restart docker -```` - -**Note: Remember to open the `2375` port number in the server console. ** - -**3. If the above method does not work:** - -Open the `2375` port number inside the server. - -```shell -firewall-cmd --zone=public --add-port=2375/tcp --permanent -firewall-cmd --reload -```` - - - - - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------------ | ------------------------------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 2375. | -| Query Timeout | Set the timeout when getting the Docker server API interface, in ms, the default is 3000 ms. | -| Container Name | Generally monitors all running container information. | -| username | connection username, optional | -| password | connection password, optional | -| URL | Database connection URL, optional, if configured, the parameters such as database name, username and password in the URL will override the parameters configured above | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: system - -| Metric Name | Metric Unit | Metric Help Description | -| ------------------ | -------- | ----------------------- | -| Name | None | Server Name | -| version | none | docker version number | -| os | none | server version eg: linux x86_64 | -| root_dir | none | docker folder directory eg: /var/lib/docker | -| containers | None | Total number of containers (running + not running) | -| containers_running | None | Number of running containers | -| containers_paused | none | number of containers in pause | -| images | None | The total number of container images. | -| ncpu | none | ncpu | -| mem_total | MB | Total size of memory used | -| system_time | none | system time | - -#### Metric collection: containers - -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------ | -| id | None | The ID of the container in Docker | -| name | None | The container name in the Docker container | -| image | None | Image used by the Docker container | -| command | None | Default startup command in Docker | -| state | None | The running state of the container in Docker | -| status | None | Update time in Docker container | - -#### Metrics collection: stats - -| Metric Name | Metric Unit | Metric Help Description | -| ---------------- | -------- | ------------------ | -| name | None | The name in the Docker container | -| available_memory | MB | The amount of memory that the Docker container can utilize | -| used_memory | MB | The amount of memory already used by the Docker container | -| memory_usage | None | Memory usage of the Docker container | -| cpu_delta | None | The number of CPUs already used by the Docker container | -| number_cpus | None | The number of CPUs that the Docker container can use | -| cpu_usage | None | Docker container CPU usage | diff --git a/home/versioned_docs/version-v1.4.x/help/doris_be.md b/home/versioned_docs/version-v1.4.x/help/doris_be.md deleted file mode 100644 index 2bc212ef3fb..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/doris_be.md +++ /dev/null @@ -1,170 +0,0 @@ ---- -id: doris_be -title: 监控:DORIS数据库BE监控 -sidebar_label: DORIS数据库BE -keywords: [开源监控系统, 开源数据库监控, DORIS数据库BE监控] ---- - -> 对DORIS数据库FE的通用性能指标进行采集监控。支持DORIS2.0.0。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8040 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| 数据库名称 | 数据库实例名称,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:doris_be_load_channel_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | 当前打开的 load channel 个数 | - -#### 指标集合:doris_be_memtable_flush_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | memtable写入磁盘的个数累计值 | - -#### 指标集合:doris_be_plan_fragment_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------- | -| value | 无 | 当前已接收的 fragment instance 的数量 | - -#### 指标集合:doris_be_process_thread_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------- | -| value | 无 | BE 进程线程数。通过 `/proc/pid/task` 采集 | - -#### 指标集合:doris_be_query_scan_rows - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 读取行数的累计值。这里只统计读取 Olap 表的数据量。并且是 RawRowsRead(部分数据行可能被索引跳过,并没有真正读取,但仍会记录到这个值中) | - -#### 指标集合:doris_be_result_buffer_block_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 当前查询结果缓存中的 query 个数 | - -#### 指标集合:doris_be_send_batch_thread_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------------- | -| value | 无 | 导入时用于发送数据包的线程池的排队个数 | - -#### 指标集合:doris_be_tablet_base_max_compaction_score - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| value | 无 | 当前最大的 Base Compaction Score | - -#### 指标集合:doris_be_timeout_canceled_fragment_count - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------- | -| value | 无 | 因超时而被取消的 fragment instance 数量累计值 | - -#### 指标集合:doris_be_load_rows - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 通过 tablet sink 发送的行数累计 | - -#### 指标集合:doris_be_all_rowsets_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| value | 无 | 当前所有 rowset 的个数 | - -#### 指标集合:doris_be_all_segments_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前所有 segment 的个数 | - -#### 指标集合:doris_be_heavy_work_max_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc heavy线程池线程个数 | - -#### 指标集合:doris_be_light_work_max_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc light线程池线程个数 | - -#### 指标集合:doris_be_heavy_work_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc heavy线程池队列最大长度,超过则阻塞提交work | - -#### 指标集合:doris_be_light_work_pool_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc light线程池队列最大长度,超过则阻塞提交work | - -#### 指标集合:doris_be_heavy_work_active_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc heavy线程池活跃线程数 | - -#### 指标集合:doris_be_light_work_active_threads - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc light线程池活跃线程数 | - -#### 指标集合:doris_be_compaction_bytes_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------------------------- | -| base | 字节 | Base Compaction 的数据量累计 | -| cumulative | 字节 | Cumulative Compaction 的数据量累计 | - -#### 指标集合:doris_be_disks_avail_capacity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的剩余空间 | - -#### 指标集合:doris_be_disks_total_capacity - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的全部空间 | - -#### 指标集合:doris_be_local_bytes_read_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileReader` 读取的字节数 | - -#### 指标集合:doris_be_local_bytes_written_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileWriter` 写入的字节数 | - -#### 指标集合:doris_be_memory_allocated_bytes - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------------- | -| value | 字节 | BE 进程物理内存大小,取自 `/proc/self/status/VmRSS` | diff --git a/home/versioned_docs/version-v1.4.x/help/doris_fe.md b/home/versioned_docs/version-v1.4.x/help/doris_fe.md deleted file mode 100644 index fc55fd25b65..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/doris_fe.md +++ /dev/null @@ -1,127 +0,0 @@ ---- -id: doris_fe -title: 监控:DORIS数据库FE监控 -sidebar_label: DORIS数据库FE -keywords: [开源监控系统, 开源数据库监控, DORIS数据库FE监控] ---- - -> 对DORIS数据库FE的通用性能指标进行采集监控。支持DORIS2.0.0。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8030 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| 数据库名称 | 数据库实例名称,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:doris_fe_connection_total - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前FE的MySQL端口连接数 | - -#### 指标集合:doris_fe_edit_log_clean - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 清理历史元数据日志成功的次数 | -| failed | 无 | 清理历史元数据日志失败的次数 | - - -#### 指标集合:doris_fe_edit_log - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------------- | -------- | ------------------------ | -| write | 无 | 元数据日志写入次数的计数 | -| read | 无 | 元数据日志读取次数的计数 | -| current | 无 | 元数据日志当前数量 | -| accumulated_bytes | 字节 | 元数据日志写入量的累计值 | -| current_bytes | 字节 | 元数据日志当前值 | - -#### 指标集合:doris_fe_image_clean - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| success | 无 | 清理历史元数据镜像文件成功的次数 | -| failed | 无 | 清理历史元数据镜像文件失败的次数 | - -#### 指标集合:doris_fe_image_write - -不应失败,如失败,需人工介入 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| success | 无 | 生成元数据镜像文件成功的次数 | -| failed | 无 | 生成元数据镜像文件失败的次数 | - -#### 指标集合:doris_fe_query_err - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------- | -| value | 无 | 错误查询的累积值 | - -#### 指标集合:doris_fe_max_journal_id - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 当前FE节点最大元数据日志ID。如果是Master FE,则是当前写入的最大ID,如果是非Master FE,则代表当前回放的元数据日志最大ID。用于观察多个FE之间的 id 是否差距过大。过大则表示元数据同步出现问题 | - -#### 指标集合:doris_fe_max_tablet_compaction_score - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 所有BE节点中最大的 compaction score 值。该值可以观测当前集群最大的 compaction score,以判断是否过高。如过高则可能出现查询或写入延迟 | - -#### 指标集合:doris_fe_qps - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------ | -| value | 无 | 当前FE每秒查询数量(仅统计查询请求) | - -#### 指标集合:doris_fe_query_err_rate - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------- | -| value | 无 | 每秒错误查询数 | - -#### 指标集合:doris_fe_report_queue_size - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | BE的各种定期汇报任务在FE端的队列长度,该值反映了汇报任务在 Master FE 节点上的阻塞程度,数值越大,表示FE处理能力不足 | - -#### 指标集合:doris_fe_rps - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------------------------- | -| value | 无 | 当前FE每秒请求数量(包含查询以及其他各类语句) | - -#### 指标集合:doris_fe_scheduled_tablet_num - -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | Master FE节点正在调度的 tablet 数量。包括正在修复的副本和正在均衡的副本,该数值可以反映当前集群,正在迁移的 tablet 数量。如果长时间有值,说明集群不稳定 | - -#### 指标集合:doris_fe_txn_status - -可以观测各个状态下导入事务的数量,来判断是否有堆积 - -| 指标名称 | 指标单位 | 指标帮助描述 | -| --------- | -------- | ------------- | -| unknown | 无 | 未知 | -| prepare | 无 | 准备中 | -| committed | 无 | 已提交 | -| visible | 无 | 可见 | -| aborted | 无 | 已中止/已撤销 | diff --git a/home/versioned_docs/version-v1.4.x/help/dynamic_tp.md b/home/versioned_docs/version-v1.4.x/help/dynamic_tp.md deleted file mode 100644 index 7418e17cc1b..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/dynamic_tp.md +++ /dev/null @@ -1,101 +0,0 @@ ---- -id: dynamic_tp -title: Monitoring DynamicTp ThreadPool -sidebar_label: DynamicTp Monitor -keywords: [open source monitoring tool, open source dynamicTp monitoring tool, monitoring DynamicTp metrics] ---- - -> Collect and monitor the thread pool performance Metrics exposed by DynamicTp actuator. - -### PreRequisites - -1. Integration Using `DynamicTp` - -`DynamicTp` is a lightweight dynamic thread pool based on the configuration center of the Jvm language. It has built-in monitoring and alarm functions, which can be realized through SPI custom extensions. - -For integrated use, please refer to the document [Quick Start](https://dynamictp.cn/guide/use/quick-start.html) - -2. Open SpringBoot Actuator Endpoint to expose `DynamicTp` Metric interface - -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -Test whether the access Metric interface `ip:port/actuator/dynamic-tp` has response json data as follows: - -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4GB", - "totalMemory": "444MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81GB" - } -] -``` - -3. Add DynamicTp monitoring under HertzBeat middleware monitoring - - -### Configuration parameters - -| Parameter name | Parameter help description | -| ------------ |------------------------------------ ------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the application service, the default is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, note ⚠️Enable HTTPS, the default corresponding port needs to be changed to 443 | -| Base Path | Exposed interface path prefix, default /actuator | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: thread_pool - -| Metric Name | Metric Unit | Metric Help Description | -|---------|------|------------------------| -| pool_name | None | Thread pool name | -| core_pool_size | None | Number of core threads | -| maximum_pool_size | None | Maximum number of threads | -| queue_type | None | Task queue type | -| queue_capacity | MB | task queue capacity | -| queue_size | None | The current occupied size of the task queue | -| fair | None | Queue mode, SynchronousQueue will be used | -| queue_remaining_capacity | MB | task queue remaining size | -| active_count | None | Number of active threads | -| task_count | None | Total number of tasks | -| completed_task_count | None | Number of completed tasks | -| largest_pool_size | None | The largest number of threads in history | -| pool_size | none | current number of threads | -| wait_task_count | None | Number of tasks waiting to be executed | -| reject_count | None | Number of rejected tasks | -| reject_handler_name | None | Reject policy type | -| dynamic | None | Dynamic thread pool or not | -| run_timeout_count | None | Number of running timeout tasks | -| queue_timeout_count | None | Number of tasks waiting for timeout | diff --git a/home/versioned_docs/version-v1.4.x/help/fullsite.md b/home/versioned_docs/version-v1.4.x/help/fullsite.md deleted file mode 100644 index 3246fa31d82..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/fullsite.md +++ /dev/null @@ -1,34 +0,0 @@ ---- -id: fullsite -title: Monitoring Full site -sidebar_label: Full site Monitor -keywords: [open source monitoring tool, open source website monitoring tool, monitoring sitemap metrics] ---- - -> Available or not to monitor all pages of the website. -> A website often has multiple pages provided by different services. We monitor the full site by collecting the SiteMap exposed by the website. -> Note⚠️ This monitoring requires your website to support SiteMap. We support SiteMap in XML and TXT formats. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| SiteMap | Relative path of website SiteMap address, eg:/sitemap.xml | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| url | none | URL path of web page | -| statusCode | none | Response HTTP status code for requesting the website | -| responseTime | ms | Website response time | -| errorMsg | none | Error message feedback after requesting the website | diff --git a/home/versioned_docs/version-v1.4.x/help/guide.md b/home/versioned_docs/version-v1.4.x/help/guide.md deleted file mode 100644 index cabcbe69506..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/guide.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: guide -title: Help Center -sidebar_label: Help Center ---- - -> Hertzbeat - An open source, real-time monitoring tool with custom-monitor and agentLess. -> Help documents and auxiliary information during use - -## 🔬 Monitoring services - -> Regularly collect and monitor the performance Metrics exposed by end-to-end services, provide visual interfaces, and process data for alarm and other service scheduling. -> Planned monitoring type:application service, database, operating system, cloud native, open source middleware. - -### Application service monitoring - - 👉 [Website monitoring](website)
- 👉 [HTTP API](api)
- 👉 [PING Connectivity](ping)
- 👉 [Port availability](port)
- 👉 [Full site monitoring](fullsite)
- 👉 [SSL Cert monitoring](ssl_cert)
- 👉 [JVM monitoring](jvm)
- 👉 [SpringBoot2.0](springboot2)
- -### Database monitoring - - 👉 [MYSQL database monitoring](mysql)
- 👉 [MariaDB database monitoring](mariadb)
- 👉 [PostgreSQL database monitoring](postgresql)
- 👉 [SqlServer database monitoring](sqlserver)
- 👉 [Oracle database monitoring](oracle)
- 👉 [DM database monitoring](dm)
- 👉 [OpenGauss database monitoring](opengauss)
- 👉 [IoTDB database monitoring](iotdb)
- -### Operating system monitoring - - 👉 [Linux operating system monitoring](linux)
- 👉 [Windows operating system monitoring](windows)
- 👉 [Ubuntu operating system monitoring](ubuntu)
- 👉 [Centos operating system monitoring](centos)
- -### Middleware monitoring - - 👉 [Zookeeper](zookeeper)
- 👉 [Kafka](kafka)
- 👉 [Tomcat](tomcat)
- 👉 [ShenYu](shenyu)
- 👉 [DynamicTp](dynamic_tp)
- 👉 [RabbitMQ](rabbitmq)
- 👉 [ActiveMQ](activemq)
- 👉 [Jetty](jetty)
- -### CloudNative monitoring - - 👉 [Docker](docker)
- 👉 [Kubernetes](kubernetes)
- -*** - -## 💡 Alarm service - -> More liberal threshold alarm configuration (calculation expression), supports email, SMS, WebHook, DingDing, WeChat and FeiShu for alarm notification. -> The positioning of alarm service is to trigger the threshold accurately and timely, and the alarm notification can be reached in time. - -### Alarm center - -> The triggered alarm information center provides query and filtering of alarm deletion, alarm processing, mark unprocessed, alarm level status, etc. - -### Alarm configuration - -> The Metric threshold configuration provides the Metric threshold configuration in the form of expression, which can set the alarm level, trigger times, alarm notification template and whether it is enabled, correlation monitoring and other functions. - -More details see 👉 [threshold alarm](alert_threshold)
-   👉 [Threshold expression](alert_threshold_expr) - -### Alarm notification - -> After triggering the alarm information, in addition to being displayed in the alarm center list, it can also be notified to the designated recipient in a specified way (e-mail, wechat and FeiShu etc.) -> Alarm notification provides different types of notification methods, such as email recipient, enterprise wechat robot notification, DingDing robot notification, and FeiShu robot notification. -> After setting the receiver, you need to set the associated alarm notification strategy to configure which alarm information is sent to which receiver. - - - 👉 [Configure Email Notification](alert_email)
- 👉 [Configure Discord Notification](alert_webhook)
- 👉 [Configure Slack Notification](alert_webhook)
- 👉 [Configure Telegram Notification](alert_webhook)
- 👉 [Configure WebHook Notification](alert_webhook)
- 👉 [Configure enterprise WeChat Robot Notification](alert_wework)
- 👉 [Configure DingDing Robot Notification](alert_dingtalk)
- 👉 [Configure FeiShu Robot Notification](alert_feishu)
diff --git a/home/versioned_docs/version-v1.4.x/help/hadoop.md b/home/versioned_docs/version-v1.4.x/help/hadoop.md deleted file mode 100644 index f0a458ecc9f..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/hadoop.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: hadoop -title: Monitoring Hadoop -sidebar_label: Hadoop -keywords: [Open Source Monitoring System, Open Source Java Monitoring, Hadoop JVM Monitoring] ---- - -> Collect and monitor general performance metrics for the JVM virtual machine in Hadoop. - -**Protocol used: JMX** - -### Pre-monitoring steps - ->You need to enable JMX service in the Hadoop application before monitoring. HertzBeat uses the JMX protocol to collect performance metrics from Hadoop's JVM. - -### Steps to enable JMX protocol in the Hadoop application -Add JVM parameters when the application starts. ⚠️Note that you can customize the exposed port and external IP. - -- 1.Enter the hadoop-env.sh configuration file and enter the following command in the terminal: - -```shell -vi $HADOOP_HOME/etc/hadoop/hadoop-env.sh -``` - -- 2.Add the following parameters, where `port` is the number of the custom-exposed port - -```shell -export HADOOP_OPTS= "$HADOOP_OPTS --Djava.rmi.server.hostname=对外ip地址 --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false " -``` -- 3.Save and exit, and then execute "start-all.sh" in the "$HADOOP_HOME/sbin" directory to restart the service. - - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.4.x/help/hive.md b/home/versioned_docs/version-v1.4.x/help/hive.md deleted file mode 100644 index ec0d7dee398..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/hive.md +++ /dev/null @@ -1,78 +0,0 @@ ---- -id: hive -Title: Monitoring Apache Hive -sidebar_label: Apache Hive -keywords: [open source monitoring tool, open source apache hive monitoring tool, monitoring apache hive metrics] ---- - -> Collect and monitor the general performance metrics exposed by the SpringBoot actuator. - -## Pre-monitoring operations - -If you want to monitor information in `Apache Hive` with this monitoring type, you need to open your `Hive Server2` in remoting mode. - -**1、Enable metastore:** - -```shell -hive --service metastore & -``` -**2. Enable hive server2:** - -```shell -hive --service hiveserver2 & -``` - -### Configure parameters - -| Parameter name | Parameter Help describes the | -| ------------ |-------------------------------------------------------------------------------------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 10002. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric Collection: basic - -| Metric Name | metric unit | Metrics help describe | -|-------------| -------- |--------------------------------| -| vm_name | None | The name of the virtual machine (VM) running HiveServer2. | -| vm_vendor | None | The vendor or provider of the virtual machine. | -| vm_version | None | The version of the virtual machine. | -| up_time | None | The duration for which HiveServer2 has been running. | - -#### metric Collection: enviroment - -| Metric Name | metric unit | Metrics help describe | -|-----------------| -------- |-------------------------------------| -| https_proxyPort | None | The port number used for HTTPS proxy communication. | -| os_name | None | The name of the operating system on which HiveServer2 is running. | -| os_version | None | The version of the operating system.| -| os_arch | None | The architecture of the operating system.| -| java_runtime_name | None | The name of the Java runtime environment used by HiveServer2. | -| java_runtime_version | None | The version of the Java runtime environment. | - -#### metric Collection: thread - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| thread_count | None | The current number of threads being used by HiveServer2. | -| total_started_thread | None | The total count of threads started by HiveServer2 since its launch. | -| peak_thread_count | None | The highest number of threads used by HiveServer2 at any given time. | -| daemon_thread_count | None | The number of daemon threads currently active in HiveServer2. | - -#### metric Collection: code_cache - -| Metric Name | metric unit | Metrics help describe | -|-------------|-------------|--------------------------------------------| -| committed | MB | The amount of memory currently allocated for the memory pool. | -| init | MB | The initial amount of memory requested for the memory pool. | -| max | MB | The maximum amount of memory that can be allocated for the memory pool. | -| used | MB | The amount of memory currently being used by the memory pool. | - - - diff --git a/home/versioned_docs/version-v1.4.x/help/iotdb.md b/home/versioned_docs/version-v1.4.x/help/iotdb.md deleted file mode 100644 index 0e4dcad9912..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/iotdb.md +++ /dev/null @@ -1,120 +0,0 @@ ---- -id: iotdb -title: Monitoring Apache IoTDB Database -sidebar_label: IoTDB Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring IotDB database metrics] ---- - -> Monitor the running status of the Apache IoTDB Internet of Things time series database (JVM-related), memory task clusters and other related Metrics. - -## Operation before monitoring - -You need to enable the `metrics` function in IoTDB, which will provide interface data in the form of prometheus metrics. - -To enable the `metrics` function, refer to [Official Documentation](https://iotdb.apache.org/UserGuide/V0.13.x/Maintenance-Tools/Metric-Tool.html) - -The main steps are as follows: - -1. The metric collection is disabled by default, you need to modify the parameters in `conf/iotdb-metric.yml` first, then restart the server - -``` -# Whether to start the monitoring module, the default is false -enableMetric: true - -# Whether to enable operation delay statistics -enablePerformanceStat: false - -# Data provision method, externally provide metrics data through jmx and prometheus protocol, optional parameters: [JMX, PROMETHEUS, IOTDB], IOTDB is closed by default. -metricReporterList: - - JMX - - PROMETHEUS - -# The metric architecture used at the bottom layer, optional parameters: [MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# Initialize the level of the metric, optional parameters: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# Predefined metrics set, optional parameters: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` - -2. Restart IoTDB, open a browser or use curl to access http://servier_ip:9091/metrics, and you can see the metric data. - -3. Add the corresponding IoTDB monitoring in HertzBeat. - -### Configuration parameters - -| Parameter name | Parameter help description | -|--------|----------------------------------------- --------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the IoTDB Metric interface, which is 9091 by default. | -| Timeout | HTTP request query timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: cluster_node_status - -| Metric Name | Metric Unit | Metric Help Description | -| --------- |------|-------------------------| -| name | None | Node name IP | -| status | None | Node status, 1=online 2=offline | - -#### Metric collection: jvm_memory_committed_bytes - -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | The memory size currently requested by the JVM | - -#### Metric collection: jvm_memory_used_bytes - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | JVM used memory size | - -#### Metric collection: jvm_threads_states_threads - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------| -| state | none | thread state | -| count | None | The number of threads corresponding to the thread state | - -#### Index collection: quantity business data - -| Metric Name | Metric Unit | Metric Help Description | -|--|------|----------------| -| name | None | Business name timeSeries/storageGroup/device/deviceUsingTemplate | -| type | none | type total/normal/template/template | -| value | None | The current timeSeries/storageGroup/device/The number of devices that have activated the template | - -#### Metric collection: cache_hit cache - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------------------ ----------------------| -| name | None | Cache name chunk/timeSeriesMeta/bloomFilter | -| value | % | chunk/timeSeriesMeta cache hit rate, bloomFilter interception rate | - -#### Metric collection: queue task queue - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------------------ ---------------------| -| name | None | Queue name compaction_inner/compaction_cross/flush | -| status | none | status running/waiting | -| value | None | Number of tasks at current time | - -#### Metric collection: thrift_connections - -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|-------------| -| name | None | name | -| connection | none | thrift current connection number | diff --git a/home/versioned_docs/version-v1.4.x/help/issue.md b/home/versioned_docs/version-v1.4.x/help/issue.md deleted file mode 100644 index 40fd7848f64..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/issue.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -id: issue -title: Common issues -sidebar_label: Common issues ---- - -### Monitoring common issues - -1. **Page feedback:monitor.host: Monitoring Host must be ipv4, ipv6 or domain name** -> As shown in the information, the entered monitoring Host must be ipv4, ipv6 or domain name, and cannot carry a protocol header, such as http - -2. **The website API and other monitoring feedback statusCode:403 or 401, but the opposite end service itself does not need authentication, and the direct access of the browser is OK** -> Please check whether it is blocked by the firewall. For example, BaoTa/aaPanel have set the blocking of `User-Agent=Apache-HttpClient` in the request header by default. If it is blocked, please delete this blocking rule. (user-agent has been simulated as a browser in the v1.0.beat5 version. This problem does not exist) - -3. Ping connectivity monitoring exception when installing hertzbeat for package deployment. -The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 -> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. -> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. -> See https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address - -4. If the history chart on the monitoring page is not displayed,popup [please configure dependency service on TDengine time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - TDengine database. -> Installation and initialization this database refers to [TDengine Installation and Initialization](../start/tdengine-init). - -### Docker Deployment common issues - -1. **MYSQL, TDENGINE and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Beacuse the docker default network mode is Bridge mode which can't access loacl machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` - -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issuess: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent service, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> > three:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -### Package Deployment common issues - -1. **According to the process deploy,visit http://ip:1157/ no interface** - Please refer to the following points to troubleshoot issuess: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> three: Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. - -2. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. diff --git a/home/versioned_docs/version-v1.4.x/help/jetty.md b/home/versioned_docs/version-v1.4.x/help/jetty.md deleted file mode 100644 index 3e5230aa9d0..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/jetty.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: jetty -title: Monitoring Jetty Web Server -sidebar_label: Jetty Web Server -keywords: [open source monitoring tool, open source jetty web server monitoring tool, monitoring jetty metrics] ---- - -> Collect and monitor general performance metrics of Jetty application server - -**Usage protocol: JMX** - -### Pre-monitoring Operations - -> You need to enable the `JMX` service in the JVM application. HertzBeat uses the JMX protocol to collect metrics for the JVM. - -#### Jetty application server opens JMX protocol steps - -[Refer to official documentation](https://www.eclipse.org/jetty/documentation/jetty-10/operations-guide/index.html#og-jmx-remote) - -1. Start the JMX JMX-REMOTE module in Jetty - -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file - -2. Edit the `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file to modify the JMX IP port and other parameters. - -**`localhost` needs to be modified to expose the IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost - -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 - -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` - -3. Restart Jetty Server. - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - diff --git a/home/versioned_docs/version-v1.4.x/help/jvm.md b/home/versioned_docs/version-v1.4.x/help/jvm.md deleted file mode 100644 index 95b1545fffc..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/jvm.md +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: jvm -title: Monitoring JVM -sidebar_label: JVM Monitor -keywords: [open source monitoring tool, open source java jvm monitoring tool, monitoring jvm metrics] ---- - -> Collect and monitor the general performance Metrics of JVM. - -**Protocol Use:JMX** - -### JVM App Enable JMX Protocol - -1. Add JVM `VM options` When Start Server ⚠️ customIP - -Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote - -```shell --Djava.rmi.server.hostname=customIP --Dcom.sun.management.jmxremote.port=9999 --Dcom.sun.management.jmxremote.ssl=false --Dcom.sun.management.jmxremote.authenticate=false -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.4.x/help/kafka.md b/home/versioned_docs/version-v1.4.x/help/kafka.md deleted file mode 100644 index 067cabef0e9..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/kafka.md +++ /dev/null @@ -1,96 +0,0 @@ ---- -id: kafka -title: Monitor:Apache Kafka -sidebar_label: Apache Kafka -keywords: [open source monitoring tool, open source apache kafka monitoring tool, monitoring apache kafka metrics] ---- - -> Collect and monitor the general performance Metrics of Apache Kafka. - -**Protocol Use:JMX** - -### Kafka Enable JMX Protocol - -1. Install Kafka - -2. Modify `kafka-server-start.sh` - -Append content in kafka-server-start.sh, Attention Replace Port And IP. - -```shell -export JMX_PORT=9999; -export KAFKA_JMX_OPTS="-Djava.rmi.server.hostname=ip地址 -Dcom.sun.management.jmxremote.rmi.port=9999 -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false"; - -# Already Has -exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:server_info - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Version | | Kafka Version | -| StartTimeMs | ms | Start Time | -| CommitId | | Version Commit ID | - - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:active_controller_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | server active controller count | - - -#### Metrics Set:broker_partition_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker partition count | - -#### Metrics Set:broker_leader_count - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker leader count | - - -#### Metrics Set:broker_handler_avg_percent - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| EventType | | event type | -| RateUnit | | rate unit | -| Count | | percent count | -| OneMinuteRate | % | One Minute Rate | -| FiveMinuteRate | % | Five Minute Rate | -| MeanRate | % | Mean Rate | -| FifteenMinuteRate | % | Fifteen Minute Rate | - - - - diff --git a/home/versioned_docs/version-v1.4.x/help/kubernetes.md b/home/versioned_docs/version-v1.4.x/help/kubernetes.md deleted file mode 100644 index 8e10896c6d1..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/kubernetes.md +++ /dev/null @@ -1,94 +0,0 @@ ---- -id: kubernetes -Title: Monitoring Kubernetes -sidebar_label: Kubernetes Monitor -keywords: [open source monitoring tool, open source kubernetes monitoring tool, monitoring kubernetes metrics] ---- - -> Collect and monitor the general performance metrics of Kubernetes. - -## Pre-monitoring operations - -If you want to monitor the information in 'Kubernetes', you need to obtain an authorization token that can access the API Server, so that the collection request can obtain the corresponding information. - -Refer to the steps to obtain token - -#### method one: - -1. Create a service account and bind the default cluster-admin administrator cluster role - -```kubectl create serviceaccount dashboard-admin -n kube-system``` - -2. User Authorization - -```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` - -#### method two: -```shell -kubectl create serviceaccount cluster-admin -kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin -kubectl create token --duration=1000h cluster-admin -``` - -### Configure parameters - -| Parameter name | Parameter Help describes the | -|-------------|------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| APiServer port | K8s APiServer port, default 6443 | -| token | Authorize the Access Token | -| URL | The database connection URL is optional, if configured, the database name, user name and password parameters in the URL will override the parameter | configured above -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric collection: nodes - -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------| -| node_name | None | Node name | -| is_ready | None | Node Status | -| capacity_cpu | None | CPU capacity | -| allocatable_cpu | None | CPU | allotted -| capacity_memory | None | Memory capacity | -| allocatable_memory | None | Memory | allocated -| creation_time | None | Node creation time | - -#### metric Collection: namespaces - -| Metric Name | metric unit | Metrics help describe | -| -------- | -------- |-------------| -| namespace | None | namespace name | -| status | None | Status | -| creation_time | None | Created | - -#### metric collection: pods - -| Metric Name | metric unit | Metrics help describe | -| ---------------- | -------- |----------------| -| pod | None | Pod name | -| namespace | None | The namespace | to which the pod belongs -| status | None | Pod status | -| restart | None | Number of restarts | -| host_ip | None | The IP address of the host is | -| pod_ip | None | pod ip | -| creation_time | None | Pod creation time | -| start_time | None | Pod startup time | - -#### metric Collection: services - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------------------------------------------| -| service | None | Service Name | -| namespace | None | The namespace | to which the service belongs -| type | None | Service Type ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | None | cluster ip | -| selector | None | tag selector matches | -| creation_time | None | Created | diff --git a/home/versioned_docs/version-v1.4.x/help/linux.md b/home/versioned_docs/version-v1.4.x/help/linux.md deleted file mode 100644 index 05e3405ff6e..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/linux.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: linux -title: Monitoring:Linux operating system monitoring -sidebar_label: Linux operating system -keywords: [open source monitoring tool, open source linux monitoring tool, monitoring linux metrics] ---- - -> Collect and monitor the general performance Metrics of Linux operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.4.x/help/mariadb.md b/home/versioned_docs/version-v1.4.x/help/mariadb.md deleted file mode 100644 index e72668fe791..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/mariadb.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mariadb -title: Monitoring:MariaDB database monitoring -sidebar_label: MariaDB database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring mariadb database metrics] ---- - -> Collect and monitor the general performance Metrics of MariaDB database. Support MariaDB5+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 3306 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| version | none | Database version | -| port | none | Database exposure service port | -| datadir | none | Database storage data disk address | -| max_connections | none | Database maximum connections | - -#### Metric set:status - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| threads_created | none | MariaDB created total connections | -| threads_connected | none | MariaDB connected connections | -| threads_cached | none | MariaDB current cached connections | -| threads_running | none | MariaDB current active connections | - - -#### Metric set:innodb - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| innodb_data_reads | none | innodb average number of reads from files per second | -| innodb_data_writes | none | innodb average number of writes from file per second | -| innodb_data_read | KB | innodb average amount of data read per second | -| innodb_data_written | KB | innodb average amount of data written per second | - - - diff --git a/home/versioned_docs/version-v1.4.x/help/memcached.md b/home/versioned_docs/version-v1.4.x/help/memcached.md deleted file mode 100644 index 5d89ce0977b..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/memcached.md +++ /dev/null @@ -1,69 +0,0 @@ ---- -id: memcached -title: Monitoring Memcached -sidebar_label: Memcached Monitor -keywords: [ open source monitoring tool, open source Memcached monitoring tool, monitoring memcached metrics ] ---- - -> Collect and monitor the general performance Metrics of Memcached. - -**Protocol Use:Memcached** - -```text -The default YML configuration for the memcache version is in compliance with 1.4.15. -You need to use the stats command to view the parameters that your memcache can monitor -``` - -### - -**1、Obtain usable parameter indicators through commands such as stats、stats setting、stats settings. - -```shell -# telnet ip port -[root@server ~]# telnet localhost 11211 -Trying ::1... -Connected to localhost. -Escape character is '^]'. -stats -STAT pid 15168 -STAT uptime 11691 -STAT time 1702569246 -STAT version 1.4.15 -... -``` - -**There is help_doc: https://www.runoob.com/memcached/memcached-stats.html** - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Memcached | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:server_info - -| Metric name | Metric unit | Metric help description | -|------------------|-------------|---------------------------------------------------| -| pid | | Memcache server process ID | -| uptime | s | The number of seconds the server has been running | -| version | | Memcache version | -| curr_connections | | Current number of connections | -| auth_errors | | Number of authentication failures | -| threads | | Current number of threads | -| item_size | byte | The size of the item | -| item_count | | Number of items | -| curr_items | | The total number of data currently stored | -| total_items | | The total number of data stored since startup | -| bytes | byte | The current number of bytes occupied by storage | -| cmd_get | | Get command request count | -| cmd_set | | Set command request count | -| cmd_flush | | Flush command request count | -| get_misses | | Get command misses | -| delete_misses | | Delete command misses | \ No newline at end of file diff --git a/home/versioned_docs/version-v1.4.x/help/nebulagraph.md b/home/versioned_docs/version-v1.4.x/help/nebulagraph.md deleted file mode 100644 index ae2cfb4683f..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/nebulagraph.md +++ /dev/null @@ -1,74 +0,0 @@ ---- -id: nebulaGraph -title: Monitoring NebulaGraph -sidebar_label: NebulaGraph Database -keywords: [ open source monitoring tool, open source NebulaGraph monitoring tool, monitoring NebulaGraph metrics ] ---- - -> Collect and monitor the general performance Metrics of nebulaGraph. - -**Protocol Use:nebulaGraph** - -```text -The monitoring has two parts,nebulaGraph_stats and rocksdb_stats. -nebulaGraph_stats is nebulaGraph's statistics, and rocksdb_stats is rocksdb's statistics. -``` - -### - -**1、Obtain available parameters through the stats and rocksdb stats interfaces.** - -1.1、 If you only need to get nebulaGraph_stats, you need to ensure that you have access to stats, or you'll get errors. - -The default port is 19669 and the access address is http://ip:19669/stats - -1.2、If you need to obtain additional parameters for rocksdb stats, you need to ensure that you have access to rocksdb -stats, otherwise an error will be reported. - -Once you connect to NebulaGraph for the first time, you must first register your Storage service in order to properly -query your data. - -**There is help_doc: https://docs.nebula-graph.com.cn/3.4.3/4.deployment-and-installation/connect-to-nebula-graph/** - -**https://docs.nebula-graph.com.cn/3.4.3/2.quick-start/3.quick-start-on-premise/3.1add-storage-hosts/** - -The default port is 19779 and the access address is:http://ip:19779/rocksdb_stats - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| graphPort | Port of the Graph service provided by Nebula Graph | -| timePeriod | The value can be 5 seconds, 60 seconds, 600 seconds, or 3600 seconds, indicating the last 5 seconds, last 1 minute, last 10 minutes, and last 1 hour, respectively. | -| storagePort | Port of the storage service provided by Nebula Graph | -| Timeout | Allow collection response time | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:nebulaGraph_stats - -Too many indicators, related links are as follows -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/1.query-performance-metrics/** - -| Metric name | Metric unit | Metric help description | -|---------------------------------------|-------------|--------------------------------------------------------------| -| num_queries_hit_memory_watermark_rate | | The rate of statements that reached the memory watermark. | -| num_queries_hit_memory_watermark_sum | | The sum of statements that reached the memory watermark. | -| num_reclaimed_expired_sessions_sum | | Number of expired sessions actively reclaimed by the server. | -| ... | | ... | - -#### Metrics Set:rocksdb_stats - -Too many indicators, related links are as follows -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/2.rocksdb-statistics/** - -| Metric name | Metric unit | Metric help description | -|----------------------------|-------------|-------------------------------------------------------------| -| rocksdb.backup.read.bytes | | Number of bytes read during the RocksDB database backup. | -| rocksdb.backup.write.bytes | | Number of bytes written during the RocksDB database backup. | -| ... | | ... | diff --git a/home/versioned_docs/version-v1.4.x/help/nginx.md b/home/versioned_docs/version-v1.4.x/help/nginx.md deleted file mode 100644 index 99bb389000c..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/nginx.md +++ /dev/null @@ -1,155 +0,0 @@ ---- -id: nginx -title: Monitoring Nginx -sidebar_label: Nginx Monitor -keywords: [open source monitoring tool, open source java monitoring tool, monitoring nginx metrics] ---- - -> Collect and monitor the general performance Metrics of Nginx. - -**Protocol Use:Nginx** - -### Need Enable `ngx_http_stub_status_module` And `ngx_http_reqstat_module` Module - -If you want to monitor information in 'Nginx' with this monitoring type, you need to modify your nginx configure file for enable the module monitor. - -### Enable `ngx_http_stub_status_module` - -1. Check if `ngx_http_stub_status_module` has been added - -```shell -nginx -V -``` -View whether it contains `--with-http_stub_status_module`, if not, you need to recompile and install Nginx. - -2. Compile and install Nginx, add `ngx_http_stub_status_module` module - -Download Nginx and unzip it, execute the following command in the directory - -```shell - -./configure --prefix=/usr/local/nginx --with-http_stub_status_module - -make && make install -``` - -3. Modify Nginx configure file - -Modify the `nginx.conf` file and add the monitoring module exposed endpoint, as follows: - -```shell -# modify nginx.conf -server { - listen 80; # port - server_name localhost; - location /nginx-status { - stub_status on; - access_log on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } -} -``` -4. Reload Nginx - -```shell - -nginx -s reload -``` - -5. Access `http://localhost/nginx-status` in the browser to view the Nginx monitoring status information. - -### Enable `ngx_http_reqstat_module` - -```shell -# install `ngx_http_reqstat_module` -wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip - -unzip ngx_req_status.zip - -patch -p1 < ../ngx_req_status-master/write_filter.patch - -./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master - -make -j2 - -make install -``` - -2. Modify Nginx configure file - -update `nginx.conf` file, add status module exposed endpoint, as follows: - -```shell -# modify nginx.conf -http { - req_status_zone server_name $server_name 256k; - req_status_zone server_addr $server_addr 256k; - - req_status server_name server_addr; - - server { - location /req-status { - req_status_show on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } - } -} -``` - -3. Reload Nginx - -```shell - -nginx -s reload -``` - -4. Access `http://localhost/req-status` in the browser to view the Nginx monitoring status information. - - -**Refer Doc: https://github.com/zls0424/ngx_req_status** - -**⚠️Attention: The endpoint path of the monitoring module is `/nginx-status` `/req-status`** - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Nginx | -| Timeout | Allow collection response time | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:nginx_status - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|------------------------------------------| -| accepts | | Accepted connections | -| handled | | Successfully processed connections | -| active | | Currently active connections | -| dropped | | Discarded connections | -| requests | | Client requests | -| reading | | Connections performing read operations | -| writing | | Connections performing write operations | -| waiting | | Waiting connections | - -#### Metrics Set:req_status - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|---------------------------------| -| zone_name | | Group category | -| key | | Group name | -| max_active | | Maximum concurrent connections | -| max_bw | kb | Maximum bandwidth | -| traffic | kb | Total traffic | -| requests | | Total requests | -| active | | Current concurrent connections | -| bandwidth | kb | Current bandwidth | - - diff --git a/home/versioned_docs/version-v1.4.x/help/ntp.md b/home/versioned_docs/version-v1.4.x/help/ntp.md deleted file mode 100644 index 5eca6c58e80..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/ntp.md +++ /dev/null @@ -1,38 +0,0 @@ ---- -id: ntp -title: Monitoring NTP -sidebar_label: NTP Monitor -keywords: [ open source monitoring tool, open source NTP monitoring tool, monitoring NTP metrics ] ---- - -> Collect and monitor the general performance Metrics of NTP. - -**Protocol Use:NTP** - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:summary - -| Metric name | Metric unit | Metric help description | -|--------------|-------------|------------------------------------------------------------------------------------------| -| responseTime | ms | The time it takes for the NTP server to respond to a request). | -| time | ms | The current time reported by the NTP server). | -| date | | The date corresponding to the current time reported by the NTP server). | -| offset | ms | The time difference between the NTP server's clock and the client's clock). | -| delay | ms | The time it takes for a request to reach the NTP server and for the response to return). | -| version | | The version number of the NTP protocol used by the server). | -| mode | | The operating mode of the NTP server, such as client, server, or broadcast). | -| stratum | | The stratumevel of the NTP server, indicating its distance from a reference clock). | -| referenceId | | An identifier that indicates the reference clock or time source used by the NTP server). | -| precision | | The precision of the NTP server's clock, indicating its accuracy). | - diff --git a/home/versioned_docs/version-v1.4.x/help/opengauss.md b/home/versioned_docs/version-v1.4.x/help/opengauss.md deleted file mode 100644 index 650882861e8..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/opengauss.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: opengauss -title: OpenGauss Database Monitor -sidebar_label: OpenGauss Database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring opengauss database metrics] ---- - -> Collect and monitor the general performance Metrics of OpenGauss database. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | - -#### Metric set:state - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - - -#### Metric set:activity - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - diff --git a/home/versioned_docs/version-v1.4.x/help/oracle.md b/home/versioned_docs/version-v1.4.x/help/oracle.md deleted file mode 100644 index 5410e53decb..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/oracle.md +++ /dev/null @@ -1,63 +0,0 @@ ---- -id: oracle -title: Monitoring:ORACLE database monitoring -sidebar_label: ORACLE database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring oracle database metrics] ---- - -> Collect and monitor the general performance Metrics of ORACLE database. - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1521 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_version | none | Database version | -| database_type | none | Database type | -| hostname | none | Host name | -| instance_name | none | Database instance name | -| startup_time | none | Database start time | -| status | none | Database status | - -#### Metric set:tablespace - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| file_id | none | File ID | -| file_name | none | File name | -| tablespace_name | none | Table space name | -| status | none | Status | -| bytes | MB | Size | -| blocks | none | Number of blocks | - -#### Metric set:user_connect - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| username | none | Username | -| counts | number | Current connection counts | - -#### Metric set:performance - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per second | -| tps | TPS | User transaction per second | -| mbps | MBPS | I/O Megabytes per second | diff --git a/home/versioned_docs/version-v1.4.x/help/ping.md b/home/versioned_docs/version-v1.4.x/help/ping.md deleted file mode 100644 index c5603fdfbce..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/ping.md +++ /dev/null @@ -1,36 +0,0 @@ ---- -id: ping -title: Monitoring:PING connectivity -sidebar_label: PING connectivity -keywords: [open source monitoring tool, open source network monitoring tool, monitoring ping metrics] ---- - -> Ping the opposite end HOST address and judge its connectivity. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Ping timeout | Set the timeout when Ping does not respond to data, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - - -### Common Problem - -1. Ping connectivity monitoring exception when installing hertzbeat for package deployment. - The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 -> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. -> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. -> See https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address diff --git a/home/versioned_docs/version-v1.4.x/help/pop3.md b/home/versioned_docs/version-v1.4.x/help/pop3.md deleted file mode 100644 index 822192ad66d..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/pop3.md +++ /dev/null @@ -1,50 +0,0 @@ ---- -id: pop3 -title: Monitoring POP3 -sidebar_label: POP3 Monitor -keywords: [open source monitoring tool, open source java monitoring tool, monitoring POP3 metrics] ---- - -> Collect and monitor the general performance Metrics of POP3. - -**Protocol Use:POP3** - -### Enable POP3 Service - -If you want to monitor information in 'POP3' with this monitoring type, you just need to open `POP3` service in your mail server. - -**1、Open `POP3` Service:** - -```text -以qq邮箱为例【其它邮箱类似】: - 1. 点击`设置`选项 - 2. 选择`账号` - 3. 找到开启SMTP/POP3/IMAP选项,并开启 - 4. 得到POP3服务器域名,端口号,以及授权码【开启SMTP/POP3/IMAP服务后,qq邮箱提供】 - 5. 通过POP3服务器域名,端口号,qq邮箱账号以及授权码连接POP3服务器,采集监控指标 -``` - - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by POP3 | -| SSL | POP3 If enabled SSL | -| Timeout | Allow collection response time | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:email_status - -| Metric name | Metric unit | Metric help description | -|--------------|-------------|------------------------------------------| -| email_count | | Number of emails | -| mailbox_size | kb | The total size of emails in the mailbox | - - diff --git a/home/versioned_docs/version-v1.4.x/help/port.md b/home/versioned_docs/version-v1.4.x/help/port.md deleted file mode 100644 index ef5f659ad44..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/port.md +++ /dev/null @@ -1,31 +0,0 @@ ---- -id: port -title: Monitoring:port availability -sidebar_label: Port availability -keywords: [open source monitoring tool, open source port monitoring tool, monitoring port metrics] ---- - -> Judge whether the exposed port of the opposite end service is available, then judge whether the opposite end service is available, and collect Metrics such as response time for monitoring. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Connection timeout | Waiting timeout for port connection, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - - - diff --git a/home/versioned_docs/version-v1.4.x/help/postgresql.md b/home/versioned_docs/version-v1.4.x/help/postgresql.md deleted file mode 100644 index de14f9d62eb..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/postgresql.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: postgresql -title: Monitoring:PostgreSQL database monitoring -sidebar_label: PostgreSQL database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring postgresql database metrics] ---- - -> Collect and monitor the general performance Metrics of PostgreSQL database. Support PostgreSQL 10+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | - -#### Metric set:state - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - - -#### Metric set:activity - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - diff --git a/home/versioned_docs/version-v1.4.x/help/rabbitmq.md b/home/versioned_docs/version-v1.4.x/help/rabbitmq.md deleted file mode 100644 index 1bcd3ea5851..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/rabbitmq.md +++ /dev/null @@ -1,126 +0,0 @@ ---- -id: rabbitmq -title: Monitoring RabbitMQ -sidebar_label: RabbitMQ Monitor -keywords: [open source monitoring tool, open source rabbitmq monitoring tool, monitoring rabbitmq metrics] ---- - -> Monitoring the running status of RabbitMQ message middleware, nodes, topics and other related metrics. - -### Pre-monitoring Operations - -> HertzBeat uses RabbitMQ Management's Rest Api to collect RabbitMQ metric data. -> Therefore, you need to enable the Management plug-in in your RabbitMQ environment - -1. Open the Management plugin, or use the self-opening version - -```shell -rabbitmq-plugins enable rabbitmq_management -``` - -2. Access http://ip:15672/ with a browser, and the default account password is `guest/guest`. Successful login means that it is successfully opened. - -3. Just add the corresponding RabbitMQ monitoring in HertzBeat, the parameters use the IP port of Management, and the default account password. - -### Configuration parameters - -| Parameter name | Parameter help description | -|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The HTTP port provided by RabbitMQ Management, the default is 15672. | -| Username | Username used for interface Basic authentication | -| Password | The password used for interface Basic authentication | -| Timeout | HTTP request query timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect Metrics - -#### metrics: overview - -| Metric Name | Metric Unit | Metric Description | -|--------------------|-------------|------------------------------------| -| product_version | None | Product Version | -| product_name | None | Product name | -| rabbitmq_version | none | rabbitmq version | -| management_version | None | rabbitmq management plugin version | -| erlang_version | None | erlang version | -| cluster_name | None | Cluster name | -| rates_mode | None | rates mode | - -#### metrics: object_totals - -| Metric Name | Metric Unit | Metric Description | -|-------------|-------------|-----------------------------| -| channels | none | total number of channels | -| connections | none | total number of connections | -| consumers | none | total number of consumers | -| exchanges | none | total number of exchanges | -| queues | none | total number of queues | - -#### metrics: nodes - -| Metric Name | Metric Unit | Metric Description | -|--------------------|-------------|-----------------------------------------------------------| -| name | None | The node name | -| type | None | The node type | -| running | None | Running state | -| os_pid | None | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | -| fd_total | None | File descriptors available | -| fd_used | None | File descriptors used | -| sockets_total | None | Sockets available | -| sockets_used | None | Sockets used | -| proc_total | None | Erlang process limit | -| proc_used | None | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | -| disk_free | GB | Free disk space | -| gc_num | None | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | -| context_switches | None | Context_switches num | -| io_read_count | None | Total number of read operations | -| io_read_bytes | KB | Total data size read into disk | -| io_read_avg_time | ms | Average read operation time in milliseconds | -| io_write_count | None | Total disk write operations | -| io_write_bytes | KB | Total amount of data written to disk | -| io_write_avg_time | ms | Average time of each disk write operation in milliseconds | -| io_seek_count | None | total seek operation | -| io_seek_avg_time | ms | average seek operation time, in milliseconds | -| io_sync_count | None | total amount of fsync operations | -| io_sync_avg_time | ms | Average time of fsync operation in milliseconds | -| connection_created | None | connection created num | -| connection_closed | None | connection closed num | -| channel_created | None | channel created num | -| channel_closed | None | channel closed num | -| queue_declared | None | queue declared num | -| queue_created | None | queue created num | -| queue_deleted | None | queue deleted num | -| connection_closed | None | connection closed num | - - -#### metrics: queues - -| Metric Name | Metric Unit | Metric Description | -|------------------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | None | The name of the queue with non-ASCII characters escaped as in C. | -| node | None | The queue on the node name | -| state | None | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | -| type | None | Queue type, one of: quorum, stream, classic. | -| vhost | None | vhost path | -| auto_delete | None | Whether the queue will be deleted automatically when no longer used | -| policy | None | Effective policy name for the queue. | -| consumers | None | Number of consumers. | -| memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | -| messages_ready | None | Number of messages ready to be delivered to clients | -| messages_unacknowledged | None | Number of messages delivered to clients but not yet acknowledged | -| messages | None | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | None | Number of messages from messages_ready which are resident in ram | -| messages_persistent | None | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | -| message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | -| message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | -| message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/versioned_docs/version-v1.4.x/help/redis.md b/home/versioned_docs/version-v1.4.x/help/redis.md deleted file mode 100644 index dd9b304e1ce..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/redis.md +++ /dev/null @@ -1,245 +0,0 @@ ---- -id: redis -title: 监控:REDIS数据库监控 -sidebar_label: REDIS数据库 -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] ---- - -> 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 - -### 配置参数 - -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | - -### 采集指标 - -#### 指标集合:server - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - - -#### 指标集合:clients - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - - -#### 指标集合:memory - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - - -#### 指标集合:persistence - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - - -#### 指标集合:stats - -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - - -#### 指标集合:replication - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | - -#### 指标集合:cpu - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | - -#### 指标集合:errorstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | - -#### 指标集合:cluster - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - - -#### 指标集合:commandstats - -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/versioned_docs/version-v1.4.x/help/shenyu.md b/home/versioned_docs/version-v1.4.x/help/shenyu.md deleted file mode 100644 index 01523769c78..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/shenyu.md +++ /dev/null @@ -1,131 +0,0 @@ ---- -id: shenyu -title: Monitoring:Apache ShenYu API Gateway -sidebar_label: Apache ShenYu -keywords: [open source monitoring tool, open source apache shenyu monitoring tool, monitoring apache shenyu metrics] ---- - -> monitor ShenYu running status(JVM-related), include request response and other related metrics. - -## Pre-monitoring operations - -Enable `metrics` plugin in ShenYu, expose it's prometheus metrics endpoint。 - -Refer [ShenYu Document](https://shenyu.apache.org/docs/plugin-center/observability/metrics-plugin) - -Two Steps Mainly: - -1. add metrics plugin dependency in gateway's pom.xml. - -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` - -2. modify this config in shenyu gateway yaml. - -```yaml -shenyu: - metrics: - enabled: false #false is close, true is open - name : prometheus - host: 127.0.0.1 - port: 8090 - jmxConfig: - props: - jvm_enabled: true #enable jvm monitoring -``` - -Finally, restart the access gateway metrics endpoint `http://ip:8090` to respond to prometheus format data. - -### Configuration parameters - -| Parameter name | Parameter help description | -|--------|----------------------------------------- --------------| -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the gateway Metric interface, the default is 8090. | -| Timeout | HTTP request response timeout | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Index collection: shenyu_request_total - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect all requests from ShenYu gateway | - -#### Metric collection: shenyu_request_throw_created - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect the number of abnormal requests from ShenYu Gateway | - -#### Metric collection: process_cpu_seconds_total - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| value | none | total user and system CPU elapsed seconds | - -#### Metric collection: process_open_fds - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| value | none | number of open file descriptors | - -#### Metric collection: process_max_fds - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------------| -| value | none | maximum number of open file descriptors | - -#### Metric collection: jvm_info - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-----------| -| runtime | none | JVM version information | -| vendor | none | JVM version information | -| version | None | JVM version information | - -#### Metric collection: jvm_memory_bytes_used - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | None | JVM memory area | -| value | MB | used size of the given JVM memory region | - -#### Metric collection: jvm_memory_pool_bytes_used - -| Metric Name | Metric Unit | Metric Help Description | -|--------|------|-----------------| -| pool | None | JVM memory pool | -| value | MB | used size of the given JVM memory pool | - -#### Metric collection: jvm_memory_pool_bytes_committed - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| pool | None | JVM memory pool | -| value | MB | The committed size of the given JVM memory pool | - -#### Metric collection: jvm_memory_pool_bytes_max - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------| ----------- | -| pool | None | JVM memory pool | -| value | MB | The maximum size of the memory pool for the given JVM | - -#### Metric collection: jvm_threads_state - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| state | none | thread state | -| value | None | The number of threads corresponding to the thread state | - - diff --git a/home/versioned_docs/version-v1.4.x/help/smtp.md b/home/versioned_docs/version-v1.4.x/help/smtp.md deleted file mode 100644 index 971de82c3e0..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/smtp.md +++ /dev/null @@ -1,42 +0,0 @@ ---- -id: smtp -title: Monitoring SMTP -sidebar_label: SMTP Monitor -keywords: [ open source monitoring tool, open source SMTP monitoring tool, monitoring SMTP metrics ] ---- - -> Collect and monitor the general performance Metrics of SMTP. - -```text -Determine whether the server is available through the hello command in SMTP -``` - -> see https://datatracker.ietf.org/doc/html/rfc821#page-13 - - -**Protocol Use:SMTP** - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by SMTP | -| Email | Your email name, parameters for the hello command | -| Timeout | Allow collection response time | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:summary - -| Metric name | Metric unit | Metric help description | -|--------------|-------------|----------------------------------------------------------------| -| responseTime | ms | The time it takes for the SMTP server to respond to a request. | -| response | | Response Status. | -| smtpBanner | | Banner of SMTP server. | -| heloInfo | | Response information returned by helo. | - diff --git a/home/versioned_docs/version-v1.4.x/help/spark.md b/home/versioned_docs/version-v1.4.x/help/spark.md deleted file mode 100644 index 3d4b44828ea..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/spark.md +++ /dev/null @@ -1,128 +0,0 @@ ---- -id: spark -title: Monitoring Spark -sidebar_label: Spark Monitor -keywords: [open source monitoring tool, open source java spark monitoring tool, monitoring spark metrics] ---- - -> Collect and monitor the general performance Metrics of Spark. - -**Protocol Use:JMX** - -### Spark App Enable JMX Protocol - -1. Add Spark `VM options` When Start Server ⚠️ customIP - -Refer: https://spark.apache.org/docs/latest/spark-standalone.html - - -**监控配置spark的监控主要分为Master、Worker、driver、executor监控。Master和Worker的监控在spark集群运行时即可监控,Driver和Excutor的监控需要针对某一个app来进行监控。** -**如果都要监控,需要根据以下步骤来配置** - - - -## 第一步 - -**修改$SPARK_HOME/conf/spark-env.sh,添加以下语句:** - -```shell -# JMX Port to use -SPARK_DAEMON_JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false" - -# export SPARK_DAEMON_JAVA_OPTS="$SPARK_DAEMON_JAVA_OPTS -Dcom.sun.management.jmxremote.port=$JMX_PORT " -export SPARK_DAEMON_JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.port=8712 " -``` - -语句中有$JMX_PORT,这个的值可以自定义,也可以获取一个随机数作为端口号。 -如果端口自定义为一个具体的值,而 spark 的 Master 和其中之一的 Worker 在同一台机器上,会出现端口冲突的情况。 - - - -## 第二步 - -**vim $SPARK_HOME/conf/metrics.properties 添加如下内容** - -```shell -*.sink.jmx.class=org.apache.spark.metrics.sink.JmxSink -master.source.jvm.class=org.apache.spark.metrics.source.JvmSource -worker.source.jvm.class=org.apache.spark.metrics.source.JvmSource -driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource -executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource -``` - - - - - -## 第三步 - -**vim $SPARK_HOME/conf/spark-defaults.conf,添加以下项为driver和executor设置监控端口,在有程序运行的情况下,此端口会被打开。** - -```shell -spark.metrics.conf /opt/bigdata/spark/conf/metrics.properties -spark.driver.extraJavaOptions -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.mana -gement.jmxremote.port=8712 - -spark.executor.extraJavaOptions -XX:+PrintGCDetails -Dcom.sun.management.jmxremote -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false -Dcom.sun.mana -gement.jmxremote.port=8711 -``` - -在spark的Master和Worker正常运行以及spark-submit提交了一个程序的情况下,可以从linux中查询出端口号码。 - - - -### Configuration parameter - -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache (Only Support JDK8) - -| Metric name | Metric unit | Metric help description | -|-------------|-------------|-------------------------| -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -|-----------------------|-------------|--------------------------| -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -|-------------------------|-------------|----------------------------| -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.4.x/help/spring_gateway.md b/home/versioned_docs/version-v1.4.x/help/spring_gateway.md deleted file mode 100644 index ae24228c222..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/spring_gateway.md +++ /dev/null @@ -1,90 +0,0 @@ ---- -id: spring_gateway -Title: Monitoring Spring Gateway -sidebar_label: Spring Gateway -keywords: [open source monitoring tool, open source spring gateway monitoring tool, monitoring spring gateway metrics] ---- - -> Collect and monitor the general performance metrics exposed by the SpringBoot actuator. - -## Pre-monitoring operations - -If you want to monitor information in 'Spring Gateway' with this monitoring type, you need to integrate your SpringBoot application and enable the SpringBoot Actuator. - -**1、Add POM .XML dependencies:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2. Modify the YML configuration exposure metric interface:** - -```yaml -management: - endpoint: - gateway: - enabled: true # default value - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` - -### Configure parameters - -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric Collection: Health - -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | - -#### metric Collection: enviroment - -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | - -#### metric Collection: threads - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads - -#### metric Collection: memory_used - -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | - -#### metric Collection: route_info - -| Metric Name | metric unit | Metrics help describe | -|-------------|-------------|--------------------------------------| -| route_id | None | Route id | -| predicate | None | This is a routing matching rule | -| uri | None | This is a service resource identifier| -| order | None | The priority of this route | - - diff --git a/home/versioned_docs/version-v1.4.x/help/springboot2.md b/home/versioned_docs/version-v1.4.x/help/springboot2.md deleted file mode 100644 index ca46530f77b..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/springboot2.md +++ /dev/null @@ -1,91 +0,0 @@ ---- -id: springboot2 -Title: Monitoring SpringBoot 2.0 -sidebar_label: SpringBoot 2.0 -keywords: [open source monitoring tool, open source springboot2 monitoring tool, monitoring springboot2 metrics] ---- - -> Collect and monitor the general performance metrics exposed by the SpringBoot 2.0 actuator. - -## Pre-monitoring operations - -If you want to monitor information in 'SpringBoot' with this monitoring type, you need to integrate your SpringBoot application and enable the SpringBoot Actuator. - -**1、Add POM .XML dependencies:** - -```xml - - org.springframework.boot - spring-boot-starter-actuator - -``` -**2. Modify the YML configuration exposure metric interface:** - -```yaml -management: - endpoints: - web: - exposure: - include: '*' - enabled-by-default: on -``` -*Note: If your project also introduces authentication related dependencies, such as springboot security, the interfaces exposed by SpringBoot Actor may be intercepted. In this case, you need to manually release these interfaces. Taking springboot security as an example, you should add the following code to the Security Configuration class:* -```java -public class SecurityConfig extends WebSecurityConfigurerAdapter{ - @Override - protected void configure(HttpSecurity httpSecurity) throws Exception{ - httpSecurity - // Configure the interfaces to be released ----------------------------------- - .antMatchers("/actuator/**").permitAll() - .antMatchers("/metrics/**").permitAll() - .antMatchers("/trace").permitAll() - .antMatchers("/heapdump").permitAll() - // 。。。 - // For other interfaces, please refer to: https://blog.csdn.net/JHIII/article/details/126601858 ----------------------------------- - } -} -``` -### Configure parameters - -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | - -### Collect metrics - -#### metric Collection: Health - -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | - -#### metric Collection: enviroment - -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | - -#### metric Collection: threads - -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads - -#### metric Collection: memory_used - -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | diff --git a/home/versioned_docs/version-v1.4.x/help/sqlserver.md b/home/versioned_docs/version-v1.4.x/help/sqlserver.md deleted file mode 100644 index cc12abf0d7e..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/sqlserver.md +++ /dev/null @@ -1,76 +0,0 @@ ---- -id: sqlserver -title: Monitoring:SqlServer database monitoring -sidebar_label: SqlServer database -keywords: [open source monitoring tool, open source database monitoring tool, monitoring sqlserver database metrics] ---- - -> Collect and monitor the general performance Metrics of SqlServer database. Support SqlServer 2017+. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1433 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| machine_name | none | Windows computer name running the server instance | -| server_name | none | Server and instance information SQL Server associated with Windows instance | -| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | -| edition | none | The product SQL server version of the installed instance | -| start_time | none | Database start time | - -#### Metric set:performance_counters - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_pages | none | Database pages, Number of pages obtained (buffer pool) | -| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | -| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | -| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | -| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | -| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | - - -#### Metric set:connection - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| user_connection | none | Number of connected sessions | - - -### Common Problem - -1. SSL connection problem fixed - -jdk version: jdk11 -Description of the problem: SQL Server 2019 uses the SA user connection to report an error -Error message: -```text -The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxxxxx -``` -Screenshot of the problem: -![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) - -solution: -Use advanced settings when adding `SqlServer` monitoring, customize JDBC URL, add parameter configuration after the spliced jdbc url, ```;encrypt=true;trustServerCertificate=true;```This parameter true means unconditionally trust the server returned any root certificate. - -Example: ```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` - -Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building- failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/versioned_docs/version-v1.4.x/help/ssl_cert.md b/home/versioned_docs/version-v1.4.x/help/ssl_cert.md deleted file mode 100644 index 4d808f47dca..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/ssl_cert.md +++ /dev/null @@ -1,33 +0,0 @@ ---- -id: ssl_cert -title: Monitoring SSL Certificate -sidebar_label: SSL Monitor -keywords: [open source monitoring tool, open source ssl cert monitoring tool, monitoring website ssl metrics] ---- - -> Monitor the website's SSL certificate expiration time, response time and other Metrics - -### Configuration parameters - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the website, https generally defaults to 443. | -| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.cn/console` The relative path of the website is `/console`. | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | - -### Collect metrics - -#### Metric collection: certificate - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------| -| subject | none | certificate name | -| expired | no | expired or not | -| start_time | None | Validity start time | -| start_timestamp | ms millisecond | Validity start timestamp | -| end_time | None | Expiration time | -| end_timestamp | ms milliseconds | expiration timestamp | diff --git a/home/versioned_docs/version-v1.4.x/help/tomcat.md b/home/versioned_docs/version-v1.4.x/help/tomcat.md deleted file mode 100644 index 8b35808ffc8..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/tomcat.md +++ /dev/null @@ -1,75 +0,0 @@ ---- -id: tomcat -title: Monitor:Apache Tomcat -sidebar_label: Apache Tomcat -keywords: [open source monitoring tool, open source tomcat monitoring tool, monitoring tomcat metrics] ---- - -> Collect and monitor the general performance Metrics of Apache Tomcat. - -**Protocol Use:JMX** - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metrics - -#### Metrics Set:memory_pool - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:code_cache - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | - -#### Metrics Set:class_loading - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - - -#### Metrics Set:thread - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | - -### Tomcat Enable JMX Protocol - -1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file - -2. vim catalina.sh Attention⚠️ Replace Hostname And Port - -```aidl -CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" -``` - diff --git a/home/versioned_docs/version-v1.4.x/help/ubuntu.md b/home/versioned_docs/version-v1.4.x/help/ubuntu.md deleted file mode 100644 index e7d368c9ea3..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/ubuntu.md +++ /dev/null @@ -1,82 +0,0 @@ ---- -id: ubuntu -title: Monitoring:Ubuntu operating system monitoring -sidebar_label: Ubuntu operating system -keywords: [open source monitoring tool, open source linux ubuntu monitoring tool, monitoring ubuntu metrics] ---- - -> Collect and monitor the general performance Metrics of Ubuntu operating system. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:basic - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | - -#### Metric set:cpu - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - - -#### Metric set:memory - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | - -#### Metric set:disk - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | - -#### Metric set:interface - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | - -#### Metric set:disk_free - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.4.x/help/website.md b/home/versioned_docs/version-v1.4.x/help/website.md deleted file mode 100644 index 88d7a1957ad..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/website.md +++ /dev/null @@ -1,29 +0,0 @@ ---- -id: website -title: Monitoring Website -sidebar_label: Website Monitor -keywords: [open source monitoring tool, open source website monitoring tool, monitoring website metrics] ---- - -> Monitor whether the website is available, response time and other Metrics. - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | diff --git a/home/versioned_docs/version-v1.4.x/help/windows.md b/home/versioned_docs/version-v1.4.x/help/windows.md deleted file mode 100644 index 82e36d23470..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/windows.md +++ /dev/null @@ -1,43 +0,0 @@ ---- -id: windows -title: Monitoring:Windows operating system monitoring -sidebar_label: Windows operating system -keywords: [open source monitoring tool, open source windows monitoring tool, monitoring windows metrics] ---- - -> Collect and monitor the general performance Metrics of Windows operating system through SNMP protocol. -> Note⚠️ You need to start SNMP service for Windows server. - -References: -[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Windows SNMP service. The default is 161 | -| SNMP version | SNMP protocol version V1 V2c V3 | -| SNMP community Word | SNMP agreement community name(Community Name). It is used to realize the authentication of SNMP network administrator when accessing SNMP management agent. Similar to password, the default value is public | -| Timeout | Protocol connection timeout | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:system - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Host name | -| descr | none | Operating system description | -| uptime | none | System running time | -| numUsers | number | Current number of users | -| services | number | Current number of services | -| processes | number | Current number of processes | -| responseTime | ms | Collection response time | diff --git a/home/versioned_docs/version-v1.4.x/help/zookeeper.md b/home/versioned_docs/version-v1.4.x/help/zookeeper.md deleted file mode 100644 index b7a34f49eda..00000000000 --- a/home/versioned_docs/version-v1.4.x/help/zookeeper.md +++ /dev/null @@ -1,100 +0,0 @@ ---- -id: zookeeper -title: Monitoring Zookeeper -sidebar_label: Zookeeper Monitor -keywords: [open source monitoring tool, open source zookeeper monitoring tool, monitoring zookeeper metrics] ---- - -> Collect and monitor the general performance Metrics of Zookeeper. - -### PreRequisites - -#### Zookeeper four word command ->The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. -Users need to add the four word command of zookeeper to the white list by themselves. - -Steps -> 1.Find our zookeeper configuration file, which is usually zoo.cfg. -> -> 2.Add the following commands to the configuration file - -```shell -# Add the required command to the white list -4lw.commands.whitelist=stat, ruok, conf, isro - -# Add all commands to the white list -4lw.commands.whitelist=* -``` - -> 3.Restart service - -```shell -zkServer.sh restart -``` - -#### netcat protocol -The current implementation scheme requires us to deploy the Linux server of zookeeper -Command environment for installing netcat - -> netcat installation steps -```shell -yum install -y nc -``` - -If the terminal displays the following information, the installation is successful -```shell -Complete! -``` - -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Zookeeper. The default is 2181 | -| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | -| Username | User name of the Linux connection where Zookeeper is located | -| Password | Password of the Linux connection where Zookeeper is located | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - -### Collection Metric - -#### Metric set:conf - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| clientPort | none | Port | -| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | -| dataDirSize | kb | Data snapshot file size | -| dataLogDir | none | Transaction log file directory, production environment on a separate disk | -| dataLogSize | kb | Transaction log file size | -| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | -| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | -| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | -| serverId | none | Server id | - - -#### Metric set:stats - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| zk_version | none | Server version | -| zk_server_state | none | Server role | -| zk_num_alive_connections | number | Number of connections | -| zk_avg_latency | ms | Average latency | -| zk_outstanding_requests | number | Number of outstanding requests | -| zk_znode_count | number | Number of znode | -| zk_packets_sent | number | Number of packets sent | -| zk_packets_received | number | Number of packets received | -| zk_watch_count | number | Number of watch | -| zk_max_file_descriptor_count | number | Maximum number of file descriptors | -| zk_approximate_data_size | kb | data size | -| zk_open_file_descriptor_count | number | Number of open file descriptors | -| zk_max_latency | ms | Max latency | -| zk_ephemerals_count | number | Number of ephemeral nodes | -| zk_min_latency | ms | Min latency | - - diff --git a/home/versioned_docs/version-v1.4.x/introduce.md b/home/versioned_docs/version-v1.4.x/introduce.md deleted file mode 100644 index 63a35e80ab9..00000000000 --- a/home/versioned_docs/version-v1.4.x/introduce.md +++ /dev/null @@ -1,317 +0,0 @@ ---- -id: introduce -title: HertzBeat -sidebar_label: Introduce -slug: / ---- - -> A real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. - -[![Discord](https://img.shields.io/badge/Chat-Discord-7289DA?logo=discord)](https://discord.gg/Fb6M73htGr) -[![Reddit](https://img.shields.io/badge/Reddit-Community-7289DA?logo=reddit)](https://www.reddit.com/r/hertzbeat/) -[![Twitter](https://img.shields.io/twitter/follow/hertzbeat1024?logo=twitter)](https://twitter.com/hertzbeat1024) -[![OpenSSF Best Practices](https://www.bestpractices.dev/projects/8139/badge)](https://www.bestpractices.dev/projects/8139) -[![Docker Pulls](https://img.shields.io/docker/pulls/apache/hertzbeat?style=%20for-the-badge&logo=docker&label=DockerHub%20Download)](https://hub.docker.com/r/apache/hertzbeat) -[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/hertzbeat)](https://artifacthub.io/packages/search?repo=hertzbeat) -[![QQ](https://img.shields.io/badge/QQ-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -[![YouTube Channel Subscribers](https://img.shields.io/youtube/channel/subscribers/UCri75zfWX0GHqJFPENEbLow?logo=youtube&label=YouTube%20Channel)](https://www.youtube.com/channel/UCri75zfWX0GHqJFPENEbLow) - -**Home: [hertzbeat.apache.org](https://hertzbeat.apache.org) Global | [hertzbeat.com](https://hertzbeat.com) China** - -**Cloud: [console.tancloud.cn](https://console.tancloud.cn)** - -## 🎡 Introduction - -[HertzBeat](https://github.com/apache/hertzbeat) is an easy-to-use, open source, real-time monitoring system with agentless, high performance cluster, prometheus-compatible, offers powerful custom monitoring and status page building capabilities. - -### Features - -* Combines **monitoring, alarm, and notification** features into one platform, and supports monitoring for web service, program, database, cache, os, webserver, middleware, bigdata, cloud-native, network, custom and more. -* Easy to use and agentless, web-based and with one-click monitoring and alerting, zero learning curve. -* Makes protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, allowing you to collect any metrics by simply configuring the template `YML` file online. Imagine being able to quickly adapt to a new monitoring type like K8s or Docker simply by configuring online with HertzBeat. -* Compatible with the `Prometheus` ecosystem and more, can monitoring what `Prometheus` can monitoring with few clicks on webui. -* High performance, supports horizontal expansion of multi-collector clusters, multi-isolated network monitoring and cloud-edge collaboration. -* Provides flexible alarm threshold rules and timely notifications delivered via `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. -* Provides powerful status page building capabilities, easily communicate the real-time status of your service to users. - - -> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system. - ----- - -### Powerful Monitoring Templates - -> Before we discuss the customizable monitoring capabilities of HertzBeat, which we mentioned at the beginning, let's introduce the different monitoring templates of HertzBeat. And it is because of this monitoring template design that the advanced features come later. - -HertzBeat itself did not create a data collection protocol for the monitoring client to adapt to. Instead, HertzBeat makes full use of the existing ecosystem, `SNMP protocol` to collect information from network switches and routers, `JMX specification` to collect information from Java applications, `JDBC specification` to collect information from datasets, `SSH` to directly connect to scripts to get the display information, `HTTP+ (JsonPath | prometheus, etc.) ` to parse the information from API interfaces, `IPMI protocol to collect server information, and so on. -HertzBeat uses these existing standard protocols or specifications, makes them abstractly configurable, and finally makes them all available in the form of YML format monitoring templates that can be written to create templates that use these protocols to collect any desired metrics data. -![hertzbeat](/img/blog/multi-protocol.png) - -Do you believe that users can just write a monitoring template on the UI page, click save and immediately adapt a new monitoring type like `K8s` or `Docker`? - -![hertzbeat](/img/home/9.png) - - -### Built-in Monitoring Types - -**There are a lot of built-in monitoring templates for users to add directly on the page, one monitoring type corresponds to one YML monitoring template**. - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml), - [Udp Port](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-udp.yml), [Dns](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dns.yml), - [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), - [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), - [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) - [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), - [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml), - [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), - [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), - [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- And More Your Custom Template. -- Notified Support `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. - -### Powerful Customization - -> From the previous introduction of **Monitoring Templates**, it is clear that `HertzBeat` has powerful customization features. -> Each monitor type is considered as a monitor template, no matter it is built-in or user-defined. You can easily add, modify and delete indicators by modifying the monitoring template. -> The templates contain a series of functions such as protocol configuration, environment variables, metrics conversion, metrics calculation, units conversion, metrics collection, etc., which help users to collect the metrics they want. - -![hertzbeat](/img/docs/custom-arch.png) - -### No Agent Required - -> For users who have used various systems, the most troublesome thing is the installation, deployment, debugging and upgrading of various `agents`. -> You need to install one `agent` per host, and several corresponding `agents` to monitor different application middleware, and the number of monitoring can easily reach thousands, so writing a batch script may ease the burden. -> The problem of whether the version of `agent` is compatible with the main application, debugging the communication between `agent` and the main application, upgrading the `agent` synchronization and so on and so forth, are all big headaches. - -The principle of `HertzBeat` is to use different protocols to connect directly to the end system, and use the `PULL` form to pull the collected data, without the need for the user to deploy and install `Agent` | `Exporter` on the host of the end, etc. For example, monitoring the `linux operating system`. - -- For example, if you want to monitor `linux OS`, you can just input the IP port account password or key on `HertzBeat` side. -- For example, to monitor `linux OS`, just enter your ip/port account password or key in `HertzBeat`. - -**Password and other sensitive information is encrypted on all links**. - -### High Performance Clustering - -> When the number of monitors rises exponentially, the collection performance drops or the environment is unstable and prone to single point of failure of the collectors, then our collector clusters come into play. - -- HertzBeat supports the deployment of collector clusters and the horizontal expansion of multiple collector clusters to exponentially increase the number of monitorable tasks and collection performance. -- Monitoring tasks are self-scheduled in the collector cluster, single collector hangs without sensing the failure to migrate the collection tasks, and the newly added collector nodes are automatically scheduled to share the collection pressure. -- It is very easy to switch between stand-alone mode and cluster mode without additional component deployment. - -![hertzbeat](/img/docs/cluster-arch.png) - -### Cloud Edge Collaboration - -> Two locations, three centers, multi-cloud environments, multi-isolated networks, you may have heard of these scenarios. When there is a need for a unified monitoring system to monitor the IT resources of different isolated networks, this is where our Cloud Edge Collaboration comes in. - -In an isolated network where multiple networks are not connected, we need to deploy a monitoring system in each network in the previous solution, which leads to data non-interoperability and inconvenient management, deployment and maintenance. -`HertzBeat` provides the ability of cloud edge collaboration, can be deployed in multiple isolated networks edge collector, collector in the isolated network within the monitoring task collection, collection of data reported by the main service unified scheduling management display. - -![hertzbeat](/img/docs/cluster-arch.png) - -### Easy to Use - -- Set **Monitoring+Alarm+Notification** All in one, no need to deploy multiple component services separately. -- Full UI interface operation, no matter adding new monitor, modifying monitor template, or alarm threshold notification, all can be done in WEB interface, no need to modify files or scripts or reboot. -- No Agent is needed, we only need to fill in the required IP, port, account, password and other parameters in the WEB interface. -- Customization friendly, only need a monitoring template YML, automatically generate monitoring management page, data chart page, threshold configuration for corresponding monitoring types. -- Threshold alarm notification friendly, based on the expression threshold configuration, a variety of alarm notification channels, support alarm silence, time label alarm level filtering and so on. - -### Completely Open Source - -- An open source collaboration product using the `Apache2` protocol, maintained by a free and open source community. -- No monitoring number `License`, monitoring type and other pseudo-open source restrictions . -- Built on `Java+SpringBoot+TypeScript+Angular` mainstream technology stack , convenient secondary development . -- Open source is not the same as free, dev based on HertzBeat must retain the logo, name, page footnotes, copyright, etc. - - -**HertzBeat has been included in the [CNCF Observability And Analysis - Monitoring Landscape](https://landscape.cncf.io/card-mode?category=monitoring&grouping=category)** - -![cncf](/img/home/cncf-landscape-left-logo.svg) - ------ - -**HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system.** - ------ - -## Quickly Start - -Just run a single command in a Docker environment: `docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` -Browser access `http://localhost:1157` default account password `admin/hertzbeat` - -### Landing Page - -- HertzBeat's user management is unified by the configuration file `sureness.yml`, which allows users to add, delete, and modify user information, user role permissions, and so on. Default password admin/hertzbeat - -![hertzbeat](/img/home/0.png) - -### Overview Page - -- The global overview page shows the distribution of current monitoring categories, users can visualize the current monitoring types and quantities and click to jump to the corresponding monitoring types for maintenance and management. -- Show the status of currently registered collector clusters, including collector on-line status, monitoring tasks, startup time, IP address, name and so on. -- Show the list of recent alarm messages, alarm level distribution and alarm processing rate. - -![hertzbeat](/img/home/1.png) - -### Monitoring Center - -- The monitoring portal supports the management of monitoring of application services, database, operating system, middleware, network, customization, etc. It displays the currently added monitors in the form of a list. -- It displays the currently added monitors in the form of a list and supports adding, modifying, deleting, canceling, importing, exporting and batch management of monitors. -- Support tag grouping, query filtering, view monitoring details portal. - -Built-in support for monitoring types include: - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml), - [Udp Port](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-udp.yml), [Dns](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dns.yml), - [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), - [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), - [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) - [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), - [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml), - [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), - [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), - [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) - -![hertzbeat](/img/home/2.png) - -### Add and Modify Surveillance - -- You can add or modify monitoring instances of a specific monitoring type, configure the IP, port and other parameters of the monitoring on the other end, set the collection period, collection task scheduling method, support detecting availability in advance, etc. The monitoring instances on the page are defined by the corresponding monitoring templates. -- The monitoring parameters configured on the page are defined by the monitoring template of the corresponding monitoring type, and users can modify the configuration parameters on the page by modifying the monitoring template. -- Support associated tags to manage monitoring grouping, alarm matching, and so on. - -![hertzbeat](/img/home/10.png) - -### Monitor Details - -- The monitoring data detail page shows the basic parameter information of the current monitoring, and the monitoring indicator data information. -- Monitor Real-time Data Report displays the real-time values of all the currently monitored indicators in the form of a list of small cards, and users can configure alarm threshold rules based on the real-time values for reference. -- Monitor Historical Data Report displays the historical values of the currently monitored metrics in the form of trend charts, supports querying hourly, daily and monthly historical data, and supports configuring the page refresh time. -- ⚠️ Note that the monitoring history charts need to be configured with an external timing database in order to get the full functionality, timing database support: IOTDB, TDengine, InfluxDB, GreptimeDB - -![hertzbeat](/img/home/3.png) - -![hertzbeat](/img/home/4.png) - -### Alarm Center - -- The management display page of triggered alarm messages enables users to visualize the current alarm situation. -- Support alarm processing, alarm marking unprocessed, alarm deletion, clearing and other batch operations. - -![hertzbeat](/img/home/7.png) - -### Threshold Rules - -- Threshold rules can be configured for monitoring the availability status, and alerts can be issued when the value of a particular metric exceeds the expected range. -- There are three levels of alerts: notification alerts, critical alerts, and emergency alerts. -- Threshold rules support visual page configuration or expression rule configuration for more flexibility. -- It supports configuring the number of triggers, alarm levels, notification templates, associated with a specific monitor and so on. - -![hertzbeat](/img/home/6.png) - -![hertzbeat](/img/home/11.png) - -### Alarm Convergence - -- When the alarm is triggered by the threshold rule, it will enter into the alarm convergence, the alarm convergence will be based on the rules of the specific time period of the duplicate alarm message de-emphasis convergence, to avoid a large number of repetitive alarms lead to the receiver alarm numbness. -- Alarm convergence rules support duplicate alarm effective time period, label matching and alarm level matching filter. - -![hertzbeat](/img/home/12.png) - -![hertzbeat](/img/home/13.png) - - -### Alarm Silence - -- When the alarm is triggered by the threshold rule, it will enter into the alarm silence, the alarm silence will be based on the rules of a specific one-time time period or periodic time period of the alarm message blocking silence, this time period does not send alarm messages. -- This application scenario, such as users in the system maintenance, do not need to send known alarms. Users will only receive alarm messages on weekdays, and users need to avoid disturbances at night. -- Alarm silence rules support one-time time period or periodic time period, support label matching and alarm level matching. - -![hertzbeat](/img/home/14.png) - -![hertzbeat](/img/home/15.png) - -### Message Notification - -- Message notification is a function to notify alarm messages to specified recipients through different media channels, so that the alarm messages can reach them in time. -- It includes recipient information management and notification policy management. Recipient management maintains the information of recipients and their notification methods, while notification policy management maintains the policy rules of which recipients will be notified of the alert messages. -- Notification methods support `Email` `Discord` `Slack` `Telegram` `Pinning` `WeChat` `Flybook` `SMS` `Webhook` and so on. -- The notification policy supports tag matching and alert level matching, which makes it convenient to assign alerts with different tags and alert levels to different receivers and handlers. -- Support notification templates, users can customize the content format of the templates to meet their own personalized notification display needs. - -![hertzbeat](/img/home/16.png) - -![hertzbeat](/img/home/17.png) - -![hertzbeat](/img/home/8.png) - -### Monitoring Templates - -- HertzBeat makes `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` and other protocols configurable so that you can customize the metrics you want to collect using these protocols by simply configuring the monitoring template `YML` in your browser. Would you believe that you can instantly adapt a new monitoring type such as `K8s` or `Docker` just by configuring it? -- All our built-in monitoring types (mysql, website, jvm, k8s) are also mapped to corresponding monitoring templates, so you can add and modify monitoring templates to customize your monitoring functions. - -![hertzbeat](/img/home/9.png) - - ------ - -**There's so much more to discover. Have Fun!** - ------ - -**Home: https://hertzbeat.com/** -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/others/contact.md b/home/versioned_docs/version-v1.4.x/others/contact.md deleted file mode 100644 index 02d956093b4..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/contact.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: contact -title: Join discussion -sidebar_label: Discussion ---- - -> If you need any help or want to exchange suggestions during the use process, you can discuss and exchange through ISSUE or Github Discussion. - -[GITHUB ISSUES](https://github.com/apache/hertzbeat/issues) - -[Chat On Discord](https://discord.gg/Fb6M73htGr) - -[Follow Us Twitter](https://twitter.com/hertzbeat1024) - - -##### Github Discussion - -Welcome to Discuss in [Github Discussion](https://github.com/apache/hertzbeat/discussions) diff --git a/home/versioned_docs/version-v1.4.x/others/contributing.md b/home/versioned_docs/version-v1.4.x/others/contributing.md deleted file mode 100644 index a2217e74ef1..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/contributing.md +++ /dev/null @@ -1,138 +0,0 @@ ---- -id: contributing -title: Contributing Guide -sidebar_label: Contributing Guide ---- - -> We are committed to maintaining a happy community that helps each other, welcome every contributor to join us! - -### Kinds of Contributions - -> In the HertzBeat community, there are many ways to contribute: - -- 💻**Code**: Can help the community complete some tasks, write new features or fix some bugs; - -- ⚠️**Test**: Can come to participate in the writing of test code, including unit testing, integration testing, e2e testing; - -- 📖**Docs**: Can write or Documentation improved to help users better understand and use HertzBeat; - -- 📝**Blog**: You can write articles about HertzBeat to help the community better promote; - -- 🤔**Discussion**: You can participate in the discussion of new features of HertzBeat and integrate your ideas with HertzBeat; - -- 💡**Preach**: Can help publicize or promote the HertzBeat community, speak in meetup or summit; - -- 💬**Suggestion**: You can also make some suggestions to the project or community to promote the healthy development of the community; - -More see [Contribution Types](https://allcontributors.org/docs/en/emoji-key) - -Even small corrections to typos are very welcome :) - -### Getting HertzBeat up and running - -> To get HertzBeat code running on your development tools, and able to debug with breakpoints. -> This is a front-end and back-end separation project. To start the local code, the back-end [manager](https://github.com/apache/hertzbeat/tree/master/manager) and the front-end [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) must be started separately. - - -- Backend start - -1. Requires `maven3+`, `java11` and `lombok` environments -2. (Optional) Modify the configuration file-`manager/src/main/resources/application.yml` -3. Start `springboot manager` service `manager/src/main/java/org/apache/hertzbeat/manager/Manager.java` - -- Front-web start - -1. Need `nodejs npm angular-cli` environment -2. Install yarn: `npm install -g yarn` -3. Execute under the front-end project directory web-app: `yarn install` -4. Install angular-cli globally: `npm install -g @angular/cli@14 --registry=https://registry.npm.taobao.org` -5. After the local backend is started, start the local frontend in the web-app directory: `ng serve --open` -6. Browser access to localhost:4200 to start, default account/password is *admin/hertzbeat* - -### Find tasks - -Find the issue you are interested in! On our GitHub repo issue list, we often publish some issues with the label good first issue or status: volunteer wanted. -These issues welcome the help of contributors. Among them, good first issues tend to have low thresholds and are suitable for novices. - -Of course, if you have a good idea, you can also propose it directly on GitHub Discussion or contact with community. - -### Submit Pull Request - -1. First you need to fork your target [hertzbeat repository](https://github.com/apache/hertzbeat). -2. Then download the code locally with git command: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` -3. After the download is complete, please refer to the getting started guide or README file of the target repository to initialize the project. -4. Then, you can refer to the following command to submit the code: -```shell -git checkout -b a-feature-branch #Recommended -``` -5. Submit the coed as a commit, the commit message format specification required: [module name or type name] feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` -6. Push to the remote repository -```shell -git push origin a-feature-branch -``` -7. Then you can initiate a new PR (Pull Request) on GitHub. - -Please note that the title of the PR needs to conform to our spec, and write the necessary description in the PR to facilitate code review by Committers and other contributors. - -### Wait for the code to be merged - -After submitting the PR, the Committee or the community's friends will review the code you submitted (Code Review), and will propose some modification suggestions or conduct some discussions. Please pay attention to your PR in time. - -If subsequent changes are required, there is no need to initiate a new PR. After submitting a commit on the original branch and pushing it to the remote repository, the PR will be automatically updated. - -In addition, our project has a relatively standardized and strict CI inspection process. After submitting PR, CI will be triggered. Please pay attention to whether it passes the CI inspection. - -Finally, the Committers can merge the PR into the master branch. - -### After the code is merged - -After the code has been merged, you can delete the development branch on both the local and remote repositories: - -```shell -git branch -d a-dev-branch -git push origin --delete a-dev-branch -``` - -On the master/main branch, you can do the following to sync the upstream repository: - -```shell -git remote add upstream https://github.com/apache/hertzbeat.git #Bind the remote warehouse, if it has been executed, it does not need to be executed again -git checkout master -git pull upstream master -``` - -### How to become a Committer? - -With the above steps, you are a contributor to HertzBeat. Repeat the previous steps to stay active in the community, keep at, you can become a Committer! - -### Join Discussion - -[Github Discussion](https://github.com/apache/hertzbeat/discussions) - -Add WeChat account `tan-cloud` to pull you into the WeChat group. - -QQ group number `630061200`, verify code: `tancloud` - -Public WeChat: `tancloudtech` - -## 🥐 Architecture - -- **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** Provide monitoring management, system management basic services. -> Provides monitoring management, monitoring configuration management, system user management, etc. -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** Provide metrics data collection services. -> Use common protocols to remotely collect and obtain peer-to-peer metrics data. -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** Provide monitoring data warehousing services. -> Metrics data management, data query, calculation and statistics. -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** Provide alert service. -> Alarm calculation trigger, monitoring status linkage, alarm configuration, and alarm notification. -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** Provide web ui. -> Angular Web UI. - -![hertzBeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat/home/static/img/docs/hertzbeat-arch.svg) diff --git a/home/versioned_docs/version-v1.4.x/others/design.md b/home/versioned_docs/version-v1.4.x/others/design.md deleted file mode 100644 index 83d15a5c4a3..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/design.md +++ /dev/null @@ -1,13 +0,0 @@ ---- -id: design -title: Design Document -sidebar_label: Design Document ---- - -### HertzBeat Architecture - -![architecture](https://cdn.jsdelivr.net/gh/apache/hertzbeat/home/static/img/docs/hertzbeat-arch.svg) - -### TanCloud Architecture - -TanCloud is a SAAS cluster version based on HertzBeat, which adopts a multi-cluster and multi-tenant architecture model. diff --git a/home/versioned_docs/version-v1.4.x/others/developer.md b/home/versioned_docs/version-v1.4.x/others/developer.md deleted file mode 100644 index 7e5793415a9..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/developer.md +++ /dev/null @@ -1,263 +0,0 @@ ---- -id: developer -title: Contributors -sidebar_label: Contributors ---- - -## ✨ HertzBeat Members - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
zcx
zcx

💻 🐛 🎨
进击的阿晨
进击的阿晨

💻 🎨 🐛
铁甲小宝
铁甲小宝

🐛 💻 📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
hudongdong129
hudongdong129

💻 ⚠️ 📖
zqr10159
Logic

📖 💻🎨
vinci
vinci

💻 📖 🎨
淞筱
淞筱

💻 📖 🎨
东风
东风

💻 🎨 📖
- -cert - - -## ✨ HertzBeat Contributors - -Thanks to these wonderful people, welcome to join us: [Contributor Guide](contributing) - -cert - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
tomsun28
tomsun28

💻 📖 🎨
会编程的王学长
会编程的王学长

💻 📖 🎨
MaxKey
MaxKey

💻 🎨 🤔
观沧海
观沧海

💻 🎨 🐛
yuye
yuye

💻 📖
jx10086
jx10086

💻 🐛
winnerTimer
winnerTimer

💻 🐛
goo-kits
goo-kits

💻 🐛
brave4Time
brave4Time

💻 🐛
WalkerLee
WalkerLee

💻 🐛
jianghang
jianghang

💻 🐛
ChineseTony
ChineseTony

💻 🐛
wyt199905
wyt199905

💻
卫傅庆
卫傅庆

💻 🐛
zklmcookle
zklmcookle

💻
DevilX5
DevilX5

📖 💻
tea
tea

💻
yangshihui
yangshihui

💻 🐛
DreamGirl524
DreamGirl524

💻 📖
gzwlly
gzwlly

📖
cuipiheqiuqiu
cuipiheqiuqiu

💻 ⚠️ 🎨
lambert
lambert

💻
mroldx
mroldx

📖
woshiniusange
woshiniusange

📖
VampireAchao
VampireAchao

💻
zcx
zcx

💻 🐛 🎨
CharlieXCL
CharlieXCL

📖
Privauto
Privauto

💻 📖
emrys
emrys

📖
SxLiuYu
SxLiuYu

🐛
All Contributors
All Contributors

📖
铁甲小宝
铁甲小宝

💻 📖
click33
click33

📖
蒋小小
蒋小小

📖
Kevin Huang
Kevin Huang

📖
铁甲小宝
铁甲小宝

🐛 💻 📖
Captain Jack
Captain Jack

📖
haibo.duan
haibo.duan

⚠️ 💻
assassin
assassin

🐛 💻
Reverse wind
Reverse wind

⚠️ 💻
luxx
luxx

💻
Ikko Ashimine
Ikko Ashimine

📖
leizenan
leizenan

💻
BKing
BKing

📖
xingshuaiLi
xingshuaiLi

📖
wangke6666
wangke6666

📖
刺猬
刺猬

🐛 💻
Haste
Haste

💻
zhongshi.yi
zhongshi.yi

📖
Qi Zhang
Qi Zhang

📖
MrAndyMing
MrAndyMing

📖
idongliming
idongliming

💻
Zichao Lin
Zichao Lin

💻 📖
liudonghua
liudonghua

💻 🤔
Jerry
Jerry

💻 ⚠️ 🤔
yanhom
yanhom

📖
fsl
fsl

💻
xttttv
xttttv

📖
NavinKumarBarnwal
NavinKumarBarnwal

💻
Zakkary
Zakkary

📖
sunxinbo
sunxinbo

💻 ⚠️
ldzbook
ldzbook

📖 🐛
余与雨
余与雨

💻 ⚠️
MysticalDream
MysticalDream

💻 ⚠️
zhouyoulin12
zhouyoulin12

💻 ⚠️
jerjjj
jerjjj

💻
wjl110
wjl110

💻
Sean
Sean

📖
chenyiqin
chenyiqin

💻 ⚠️
hudongdong129
hudongdong129

💻 ⚠️ 📖
TherChenYang
TherChenYang

💻 ⚠️
HattoriHenzo
HattoriHenzo

💻 ⚠️
ycilry
ycilry

📖
aoshiguchen
aoshiguchen

📖 💻
蔡本祥
蔡本祥

💻
浮游
浮游

💻
Grass-Life
Grass-Life

💻
xiaohe428
xiaohe428

💻 📖
TableRow
TableRow

📖 💻
ByteIDance
ByteIDance

💻
Jangfe
Jangfe

💻
zqr10159
zqr10159

📖 💻
vinci
vinci

💻 📖 🎨
js110
js110

💻
CrazyLionLi
CrazyLionLi

📖
banmajio
banmajio

💻
topsuder
topsuder

💻
richar2022
richar2022

💻
fcb-xiaobo
fcb-xiaobo

💻
wenkyzhang
wenkyzhang

📖
ZangJuxy
ZangJuxy

📖
l646505418
l646505418

💻
Carpe-Wang
Carpe-Wang

💻
莫枢
莫枢

💻
huangcanda
huangcanda

💻
世纪末的架构师
世纪末的架构师

💻
ShuningWan
ShuningWan

📖
MrYZhou
MrYZhou

📖
suncqujsj
suncqujsj

📖
sunqinbo
sunqinbo

💻
haoww
haoww

📖
i-mayuan
i-mayuan

📖
fengruge
fengruge

📖
zhanghuan
zhanghuan

💻
shenymin
shenymin

💻
Dhruva Chandra
Dhruva Chandra

💻
miss_z
miss_z

📖
wyt990
wyt990

💻
licocon
licocon

💻
Mi Na
Mi Na

💻
Kylin-Guo
Kylin-Guo

📖
Mr灬Dong先生
Mr灬Dong先生

💻
Pratyay Banerjee
Pratyay Banerjee

📖 💻
yujianzhong520
yujianzhong520

💻
SPPan
SPPan

💻
ZhangJiashu
ZhangJiashu

💻
impress
impress

💻
凌晨一点半
凌晨一点半

📖
Eeshaan Sawant
Eeshaan Sawant

💻
nandofromthebando
nandofromthebando

💻
caiboking
caiboking

💻
baixing99
baixing99

💻
Yang Chuang
Yang Chuang

💻
wlin20
wlin20

💻
guojing1983
guojing1983

💻
moxi
moxi

📖
qq471754603
qq471754603

💻
渭雨
渭雨

💻
liuxuezhuo
liuxuezhuo

💻
lisongning
lisongning

💻
YutingNie
YutingNie

💻 📖 🎨
Mike Zhou
Mike Zhou

💻 📖 🎨
小笨蛋
小笨蛋

💻
littlezhongzer
littlezhongzer

💻
ChenXiangxxxxx
ChenXiangxxxxx

💻
Mr.zhou
Mr.zhou

💻
姚贤丰
姚贤丰

💻
lingluojun
lingluojun

💻
1ue
1ue

💻
qyaaaa
qyaaaa

💻
novohit
novohit

💻
zhuoshangyi
zhuoshangyi

💻
ruanliang
ruanliang

📖 💻
Eden4701
Eden4701

💻 📖 🎨
XiaTian688
XiaTian688

📖
liyinjiang
liyinjiang

💻
ZhangJiashu
ZhangJiashu

📖
moghn
moghn

📖
xiaoguolong
xiaoguolong

💻
Smliexx
Smliexx

💻
Naruse
Naruse

📖 💻
Bala Sukesh
Bala Sukesh

💻
Jinyao Ma
Jinyao Ma

💻
Rick
Rick

💻 ⚠️
东风
东风

💻 🎨 📖
sonam singh
sonam singh

💻
ZhangZixuan1994
ZhangZixuan1994

💻
SHIG
SHIG

💻
泰上老菌
泰上老菌

💻
ldysdu
ldysdu

💻
梁同学
梁同学

💻
avv
avv

💻
yqxxgh
yqxxgh

📖
CharlieShi46
CharlieShi46

💻
Nctllnty
Nctllnty

💻
Wang-Yonghao
Wang-Yonghao

📖
- - - - - diff --git a/home/versioned_docs/version-v1.4.x/others/hertzbeat.md b/home/versioned_docs/version-v1.4.x/others/hertzbeat.md deleted file mode 100644 index cf6e7484db3..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/hertzbeat.md +++ /dev/null @@ -1,285 +0,0 @@ ---- -id: hertzbeat -title: HertzBeat 开源实时监控系统 -sidebar_label: HertzBeat 实时监控 ---- - - -> 易用友好的开源实时监控告警系统,无需Agent,高性能集群,强大自定义监控能力。 - -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -[HertzBeat 赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,高性能集群,无需 Agent 的开源实时监控告警系统。 - -### 特点 - -- 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控阈值告警通知一步到位。 -- 易用友好,无需 `Agent`,全 `WEB` 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -- 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 -- 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式消息及时送达。 - - -> `HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 - ----- - -### 完全开源 - -- 使用`Apache2`协议,由自由开放的开源社区主导维护的开源协作产品。 -- 无监控数量`License`,监控类型等伪开源限制。 -- 基于`Java+SpringBoot+TypeScript+Angular`主流技术栈构建,方便的二次开发。 -- 但开源不等同于免费,基于HertzBeat二次开发需保留logo,名称,页面脚注,版权等。 - -### 强大的监控模版 - -> 开始我们就说 HertzBeat 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 HertzBeat 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 - -HertzBeat 自身并没有去创造一种采集数据协议,让对端来适配它。而是充分使用了现有的生态,SNMP采集网络交换机路由器信息,JMX采集JAVA应用信息,JDBC规范采集数据集信息,SSH直连执行脚本获取回显信息,HTTP+(JsonPath | prometheus等)解析接口信息,IPMI采集服务器信息等等。 -HertzBeat 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标信息。 - -![hertzbeat](/img/blog/multi-protocol.png) - -你相信用户只需在UI页面编写一个监控模版,点击保存后,就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -![hertzbeat](/img/home/9.png) - - -### 内置监控类型 - -**一款监控类型对应一个YML监控模版** - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- 和更多自定义监控模版。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -### 强大自定义功能 - -> 由前面的**监控模版**介绍,大概清楚了 HertzBeat 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 -> 模版里面包含各个协议的使用,指标别名转换,指标计算,单位转换等一系列功能,帮助用户能采集到自己想要的监控指标。 - -![hertzbeat](/img/docs/custom-arch.png) - -### 无需 Agent - -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 agent 的安装部署调试了。 -> 每台主机得装个 agent,为了监控不同应用中间件可能还得装几个对应的 agent,量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 -> agent 的版本是否与主应用兼容, agent 与主应用的通讯调试, agent 的同步升级等等等等,这些全是头大的点。 - -HertzBeat 的原理就是使用不同的协议去直连对端系统,采集 PULL 的形式去拉取采集数据,无需用户在对端主机上部署安装 Agent | Exporter等。 -比如监控 linux, 在 HertzBeat 端输入IP端口账户密码或密钥即可。 -比如监控 mysql, 在 HertzBeat 端输入IP端口账户密码即可。 -**密码等敏感信息全链路加密** - -### 高性能集群 - -> 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -> 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 -> 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 云边协同 - -> 支持部署边缘采集器集群,与主 HertzBeat 服务云边协同提升采集能力。 - -在多个网络不相通的隔离网络中,在以往的方案中我们需要在每个网络都部署一套监控系统,这导致数据不互通,管理部署维护都不方便。 -HertzBeat 提供云边协同能力,可以在多个隔离网络部署边缘采集器,采集器在隔离网络内部进行监控任务采集,采集数据上报,由主 HertzBeat 服务统一调度管理展示。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 易用友好 - -> 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -> 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -> 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -> 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 -> 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 - - - ------ - -**`HertzBeat`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** - ------ - -## 即刻体验一波 - -Docker 环境下运行一条命令即可:`docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` -浏览器访问 `http://localhost:1157` 默认账户密码 `admin/hertzbeat` - -### 登陆页面 - -- HertzBeat 的用户管理统一由配置文件 `sureness.yml` 维护,用户可以通过修改此文件来新增删除修改用户信息,用户角色权限等。默认账户密码 admin/hertzbeat - -![hertzbeat](/img/home/0.png) - -### 概览页面 - -- 全局概览页面,分类展示了当前监控大类别数量分布,用户可直观查看当前的监控类型与数量并点击跳转至对应监控类型进行维护管理。 -- 展示当前注册的采集器集群状态,包括采集器的上线状态,监控任务,启动时间,IP地址,名称等。 -- 下发展示了最近告警信息列表,告警级别分布情况,告警处理率情况。 - -![hertzbeat](/img/home/1.png) - -### 监控中心 - -- 监控入口,支持对应用服务,数据库,操作系统,中间件,网络,自定义等监控的管理。 -- 以列表的形式展示当前已添加的监控,支持对监控的新增,修改,删除,取消监控,导入导出,批量管理等。 -- 支持标签分组,查询过滤,查看监控详情入口等。 - -内置支持的监控类型包括: - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) - -![hertzbeat](/img/home/2.png) - -### 新增修改监控 - -- 新增或修改指定监控类型的监控实例,配置对端监控的IP,端口等参数,设置采集周期,采集任务调度方式,支持提前探测可用性等。 -- 页面上配置的监控参数由对应监控类型的监控模版所定义,用户可以通过修改监控模版来修改页面配置参数。 -- 支持关联标签,用标签来管理监控分组,告警匹配等。 - -![hertzbeat](/img/home/10.png) - -### 监控详情 - -- 监控的数据详情页面,展示了当前监控的基本参数信息,监控指标数据信息。 -- 监控实时数据报告,以小卡片列表的形式展示了当前监控的所有指标实时值,用户可根据实时值参考配置告警阈值规则。 -- 监控历史数据报告,以趋势图表的形式展示了当前监控数值类型的指标的历史值,支持查询小时,天,月的历史数据,支持配置页面刷新时间。 -- ⚠️注意监控历史图表需配置外置时序数据库才能获取完整功能,时序数据库支持: IOTDB, TDengine, InfluxDB, GreptimeDB - -![hertzbeat](/img/home/3.png) - -![hertzbeat](/img/home/4.png) - -### 告警中心 - -- 已触发告警消息的管理展示页面,使用户有直观的展示当前告警情况。 -- 支持告警处理,告警标记未处理,告警删除清空等批量操作。 - -![hertzbeat](/img/home/7.png) - -### 阈值规则 - -- 对于监控的可用性状态设置阈值规则,特定指标的值超过我们预期范围时发出告警,这些都可以在阈值规则这里配置。 -- 告警级别分为三级:通知告警,严重告警,紧急告警。 -- 阈值规则支持可视化页面配置或表达式规则配置,灵活性更高。 -- 支持配置触发次数,告警级别,通知模版,关联指定监控等。 - -![hertzbeat](/img/home/6.png) - -![hertzbeat](/img/home/11.png) - -### 告警收敛 - -- 当通过阈值规则判断触发告警后,会进入到告警收敛,告警收敛会根据规则对特定时间段的重复告警消息去重收敛,已避免大量重复性告警导致接收人告警麻木。 -- 告警收敛规则支持重复告警生效时间段,标签匹配和告警级别匹配过滤。 - -![hertzbeat](/img/home/12.png) - -![hertzbeat](/img/home/13.png) - - -### 告警静默 - -- 当通过阈值规则判断触发告警后,会进入到告警静默,告警静默会根据规则对特定一次性时间段或周期性时候段的告警消息屏蔽静默,此时间段不发送告警消息。 -- 此应用场景如用户在系统维护中,无需发已知告警。用户在工作日时间才会接收告警消息,用户在晚上需避免打扰等。 -- 告警静默规则支持一次性时间段或周期性时间段,支持标签匹配和告警级别匹配。 - -![hertzbeat](/img/home/14.png) - -![hertzbeat](/img/home/15.png) - -### 消息通知 - -- 消息通知功能是把告警消息通过不同媒体渠道通知给指定的接收人,告警消息及时触达。 -- 功能包含接收人信息管理和通知策略管理,接收人管理维护接收人信息以其通知方式信息,通知策略管理维护把哪些告警信息通知给哪些接收人的策略规则。 -- 通知方式支持 `邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式。 -- 通知策略支持标签匹配和告警级别匹配,方便的使不同标签的告警和告警级别分派给不同的接收处理人。 - -![hertzbeat](/img/home/16.png) - -![hertzbeat](/img/home/17.png) - -![hertzbeat](/img/home/8.png) - -### 监控模版 - -- HertzBeat 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 同理我们内置的所有监控类型(mysql,website,jvm,k8s)也一一映射为对应的监控模版,用户可以新增修改监控模版来自定义监控功能。 - -![hertzbeat](/img/home/9.png) - - ------ - -**`HertzBeat`更多强大的功能欢迎使用探索。Have Fun!** - ------ - -**官网: https://hertzbeat.com/** -**Github: https://github.com/apache/hertzbeat** -**Gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/others/huaweicloud.md b/home/versioned_docs/version-v1.4.x/others/huaweicloud.md deleted file mode 100644 index b934a5c2ca3..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/huaweicloud.md +++ /dev/null @@ -1,26 +0,0 @@ ---- -id: huaweicloud -title: HertzBeat & HuaweiCloud -sidebar_label: HertzBeat & HuaweiCloud ---- - -### HertzBeat 与 HuaweiCloud 的开源合作需求Issue - -> 欢迎大家对感兴趣的Issue领取贡献。 - -- [Task] support using Huawei Cloud OBS to store custom define yml file [#841](https://github.com/apache/hertzbeat/issues/841) -- [Task] support Huawei Cloud CCE metrics monitoring [#839](https://github.com/apache/hertzbeat/issues/839) -- [Task] support EulerOS metrics monitoring [#838](https://github.com/apache/hertzbeat/issues/838) -- [Task] support using Huawei Cloud SMN send alarm notification message [#837](https://github.com/apache/hertzbeat/issues/837) -- [Task] support using GaussDB For Influx store history metrics data [#836](https://github.com/apache/hertzbeat/issues/836) - - - - -### 关于 HuaweiCloud 开源活动 - -HuaweiCloud 华为云将面向开源软件工具链与环境、开源应用构建和开源生态组件构建这三大重点场景,提供技术支持、奖金支持、活动支持,邀请更多的开发者,携手构建开源for HuaweiCloud。 - -开发者将开源软件工具、开源应用和开源组件与华为云对象存储OBS、数仓DWS、云容器CCE等云服务对接,同时基于Terraform模板,上架到华为云云商店,支持其他开发者一键部署使用开源组件 ,称为“开源xxx for HuaweiCloud”。 - -感兴趣的开发者可以查看:华为云开源项目仓库 https://gitee.com/HuaweiCloudDeveloper/huaweicloud-cloud-native-plugins-kits 了解更多。 diff --git a/home/versioned_docs/version-v1.4.x/others/images-deploy.md b/home/versioned_docs/version-v1.4.x/others/images-deploy.md deleted file mode 100644 index 782dbe83c05..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/images-deploy.md +++ /dev/null @@ -1,111 +0,0 @@ ---- -id: images-deploy -title: HertzBeat 华为云镜像部署 -sidebar_label: HertzBeat 华为云镜像部署快速指引 ---- - - -> 易用友好的开源实时监控告警工具,无需Agent,强大自定义监控能力。 - -[![discord](https://img.shields.io/badge/chat-on%20discord-brightgreen)](https://discord.gg/Fb6M73htGr) -[![QQ](https://img.shields.io/badge/qq-630061200-orange)](https://qm.qq.com/q/FltGGGIX2m) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/custom-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -> [HertzBeat赫兹跳动](https://github.com/apache/hertzbeat) 是一个拥有强大自定义监控能力,无需 Agent 的开源实时监控告警工具。 -> 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控,阈值告警通知一步到位。 -> 更自由化的阈值规则(计算表达式),`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式及时送达。 - -> 我们将`Http, Jmx, Ssh, Snmp, Jdbc, Prometheus`等协议规范可配置化,您只需在浏览器配置`YML`就能使用这些协议去自定义采集任何您想要的指标。 -> 您相信只需配置下就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -> `HertzBeat`的强大自定义,多类型支持,易扩展,低耦合,希望能帮助开发者和中小团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云](https://console.tancloud.cn)**,中小团队和个人无需再为了监控自己的网站资源,而去部署学习一套繁琐的监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - - ----- - -![hertzbeat](/img/home/1.png) - -![hertzbeat](/img/home/9.png) - -## ⛄ Supported - -- [网站监控](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-website.yml), [端口可用性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-api.yml), [Ping连通性](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap全站](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl证书](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP服务器](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ftp.yml) -- [Mysql](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-mongodb.yml), - [达梦](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-iotdb.yml) -- [Linux](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-windows.yml) -- [Tomcat](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://github.com/apache/hertzbeat/tree/master/manager/src/main/resources/define/app-docker.yml) -- 和更多的自定义监控。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -## 镜像部署 - -> HertzBeat支持在Linux Windows Mac系统安装运行,CPU支持X86/ARM64。 - -1. 开通服务器时选用 HertzBeat 镜像 -2. 启动服务器 -3. 配置HertzBeat的配置文件(可选) - - 修改位于 `/opt/hertzbeat/config/application.yml` 的配置文件(可选),您可以根据需求修改配置文件 - - 若需使用邮件发送告警,需替换`application.yml`里面的邮件服务器参数 - - **推荐**若需使用外置Mysql数据库替换内置H2数据库,需替换`application.yml`里面的`spring.datasource`参数 具体步骤参见 [H2数据库切换为MYSQL](../start/mysql-change)) - - **推荐**若需使用时序数据库TDengine来存储指标数据,需替换`application.yml`里面的`warehouse.store.td-engine`参数 具体步骤参见 [使用TDengine存储指标数据](../start/tdengine-init) - - **推荐**若需使用时序数据库IotDB来存储指标数据库,需替换`application.yml`里面的`warehouse.storeiot-db`参数 具体步骤参见 [使用IotDB存储指标数据](../start/iotdb-init) - - -4. 配置用户配置文件(可选,自定义配置用户密码) - HertzBeat默认内置三个用户账户,分别为 admin/hertzbeat tom/hertzbeat guest/hertzbeat - 若需要新增删除修改账户或密码,可以通过修改位于 `/opt/hertzbeat/config/sureness.yml` 的配置文件实现,若无此需求可忽略此步骤 - 具体参考 [配置修改账户密码](../start/account-modify) - -5. 部署启动 - 执行位于安装目录/opt/hertzbeat/bin/下的启动脚本 startup.sh, windows环境下为 startup.bat - ``` - $ ./startup.sh - ``` - -6. 开始探索HertzBeat - 浏览器访问 http://ip:1157/ 即刻开始探索使用HertzBeat,默认账户密码 admin/hertzbeat。 - -**HAVE FUN** - -### 部署常见问题 - -**最多的问题就是网络问题,请先提前排查** - -1. **按照流程部署,访问 http://ip:1157/ 无界面** - 请参考下面几点排查问题: -> 一:若切换了依赖服务MYSQL数据库,排查数据库是否成功创建,是否启动成功 -> 二:HertzBeat的配置文件 `hertzbeat/config/application.yml` 里面的依赖服务IP账户密码等配置是否正确 -> 三:若都无问题可以查看 `hertzbeat/logs/` 目录下面的运行日志是否有明显错误,提issue或交流群或社区反馈 - -2. **监控历史图表长时间都一直无数据** -> 一:Tdengine或IoTDB是否配置,未配置则无历史图表数据 -> 二:若使用了Tdengine,排查Tdengine的数据库`hertzbeat`是否创建 -> 三: HertzBeat的配置文件 `application.yml` 里面的依赖服务 IotDB 或 Tdengine IP账户密码等配置是否正确 diff --git a/home/versioned_docs/version-v1.4.x/others/media.md b/home/versioned_docs/version-v1.4.x/others/media.md deleted file mode 100644 index 1a89d749087..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/media.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: media -title: Media Friend -sidebar_label: Media Friend ---- - -## 我们推荐的公众号 - - - - - - -
- -
- Dromara -
- Dromara开源社区,好玩有趣的百宝箱开源社区! -
- -
- TanCloud -
- 探云-开源的高性能全托管监控云服务! -
- -
-
-
-
-
-
-
-
-
-
-
-
- -> 感谢以上媒体公众号对 HertzBeat 项目的推荐,如果您也是媒体运营者,欢迎互相推荐。 - -### 相互推荐哇,支持开源项目 - -#### HertzBeat作为一个新兴项目,迫切需要一定的途径进行项目推广。如果您也是媒体公众号运营者,欢迎您将HertzBeat推荐给您的粉丝: - -1. 推荐文案参考: [公众号文章](https://mp.weixin.qq.com/s/9TlqN5qrF_pRmpjDkQr5Eg) [MarkDown源内容](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md) [网页文章](https://hertzbeat.com/zh-cn/docs/) [图片资源](https://gitee.com/hertzbeat/hertzbeat/tree/master/home/static/img/home) -2. 在文章底部或内容中留下项目GitHub仓库链接 https://github.com/apache/hertzbeat -3. 文章需要是 `1000+` 的阅读量 - -#### 作为回报,HertzBeat将: - -1. 在官网文档 [推荐媒体] 处永久留下您的媒体公众号二维码和介绍 -2. 在官方交流群里@全体成员推荐您的公众号一次 -3. 您媒体公众号的新推文章都可以将分享到HertzBeat交流群中增加阅读量(为避免频繁推送连接,请不要超过一周三次) - -欢迎您有意愿加微信`tan-cloud`和我们联系,非常期待您的推荐,感谢对开源的支持。 diff --git a/home/versioned_docs/version-v1.4.x/others/resource.md b/home/versioned_docs/version-v1.4.x/others/resource.md deleted file mode 100644 index a52a3173b10..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/resource.md +++ /dev/null @@ -1,18 +0,0 @@ ---- -id: resource -title: Related resources -sidebar_label: Related resources ---- - -## HertzBeat Introduce PDF - -Download: [PDF](http://cdn.hertzbeat.com/hertzbeat.pdf) - -## Icon Resources - -### HertzBeat Logo - -![logo](/img/hertzbeat-logo.svg) - -Download: [SVG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.svg) [PNG](https://gitee.com/hertzbeat/hertzbeat/raw/master/home/static/img/hertzbeat-logo.jpg) - diff --git a/home/versioned_docs/version-v1.4.x/others/sponsor.md b/home/versioned_docs/version-v1.4.x/others/sponsor.md deleted file mode 100644 index 6d6b57e15cd..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/sponsor.md +++ /dev/null @@ -1,19 +0,0 @@ ---- -id: sponsor -title: Sponsor -sidebar_label: Sponsor ---- - - -**Hertzbeat is completely free for individuals or enterprises. If you like this project and are willing to help, buy us a cup of coffee** - - -![wechat-alipay](/img/docs/pay.png) - - -Thanks [JiShi Information(build a new microwave + optical transaction network)](https://www.flarespeed.com) sponsored server node. -Thanks [TianShang cloud computing(new wisdom cloud)](https://www.tsyvps.com/aff/BZBEGYLX) sponsored server node. - - - - diff --git a/home/versioned_docs/version-v1.4.x/others/tancloud.md b/home/versioned_docs/version-v1.4.x/others/tancloud.md deleted file mode 100644 index 451e2e9db87..00000000000 --- a/home/versioned_docs/version-v1.4.x/others/tancloud.md +++ /dev/null @@ -1,272 +0,0 @@ ---- -id: tancloud -title: TanCloud 高性能实时监控系统 -sidebar_label: TanCloud 实时监控 ---- - - -> 易用友好的高性能实时云监控服务,无需Agent,高性能集群,强大自定义监控能力。 - -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/web-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/ping-connect.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/port-available.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/database-monitor.svg) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/os-monitor.svg) -![hertzbeat](https://img.shields.io/badge/monitor-cloud%20native-brightgreen) -![hertzbeat](https://img.shields.io/badge/monitor-middleware-blueviolet) -![hertzbeat](https://img.shields.io/badge/monitor-network-red) -![hertzbeat](https://cdn.jsdelivr.net/gh/apache/hertzbeat@gh-pages/img/badge/alert.svg) - - -## 🎡 介绍 - -[TanCloud 探云](https://tancloud.cn) 是一个拥有强大自定义监控能力,高性能集群,无需 Agent 的高性能实时云监控服务。 - -### 特点 - -- 集 **监控+告警+通知** 为一体,支持对应用服务,应用程序,数据库,缓存,操作系统,大数据,中间件,Web服务器,云原生,网络,自定义等监控阈值告警通知一步到位。 -- 易用友好,无需 `Agent`,全 `WEB` 页面操作,鼠标点一点就能监控告警,零上手学习成本。 -- 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 高性能,支持多采集器集群横向扩展,支持多隔离网络监控,云边协同。 -- 自由的告警阈值规则,`邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式消息及时送达。 - - -> `TanCloud`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。 -> 当然我们也提供了对应的 **[SAAS版本监控云服务](https://console.tancloud.cn)**,中小团队和个人无需再为监控自有资源而去部署一套监控系统,**[登录即可免费开始](https://console.tancloud.cn)**。 - ----- - -### 强大的监控模版 - -> 开始我们就说 TanCloud 的特点是自定义监控能力,无需 Agent。在讨论这两点之前,我们先介绍下 TanCloud 的不一样的监控模版。而正是因为这样的监控模版设计,才会有了后面的高级特性。 - -TanCloud 自身并没有去创造一种采集数据协议,让对端来适配它。而是充分使用了现有的生态,SNMP采集网络交换机路由器信息,JMX采集JAVA应用信息,JDBC规范采集数据集信息,SSH直连执行脚本获取回显信息,HTTP+(JsonPath | prometheus等)解析接口信息,IPMI采集服务器信息等等。 -TanCloud 使用这些已有的标准协议或规范,将他们抽象规范可配置化,最后使其都可以通过编写YML格式监控模版的形式,来制定模版使用这些协议来采集任何想要的指标信息。 - -![hertzbeat](/img/blog/multi-protocol.png) - -你相信用户只需在UI页面编写一个监控模版,点击保存后,就能立刻适配一款`K8s`或`Docker`等新的监控类型吗? - -![hertzbeat](/img/home/9.png) - - -### 内置监控类型 - -**一款监控类型对应一个YML监控模版** - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- 和更多自定义监控模版。 -- 通知支持 `Discord` `Slack` `Telegram` `邮件` `钉钉` `微信` `飞书` `短信` `Webhook`。 - -### 强大自定义功能 - -> 由前面的**监控模版**介绍,大概清楚了 TanCloud 拥有的强大自定义功能。 -> 我们将每个监控类型都视为一个监控模版,不管是官方内置的还是后期用户自定义新增的。用户都可以方便的通过修改监控模版来新增修改删除监控指标。 -> 模版里面包含各个协议的使用,指标别名转换,指标计算,单位转换等一系列功能,帮助用户能采集到自己想要的监控指标。 - -![TanCloud](/img/docs/custom-arch.png) - -### 无需 Agent - -> 对于使用过各种系统的用户来说,可能最麻烦头大的不过就是各种 agent 的安装部署调试了。 -> 每台主机得装个 agent,为了监控不同应用中间件可能还得装几个对应的 agent,量上来了轻轻松松上千个,写个批量脚本可能会减轻点负担。 -> agent 的版本是否与主应用兼容, agent 与主应用的通讯调试, agent 的同步升级等等等等,这些全是头大的点。 - -TanCloud 的原理就是使用不同的协议去直连对端系统,采集 PULL 的形式去拉取采集数据,无需用户在对端主机上部署安装 Agent | Exporter等。 -比如监控 linux, 在 TanCloud 端输入IP端口账户密码或密钥即可。 -比如监控 mysql, 在 TanCloud 端输入IP端口账户密码即可。 -**密码等敏感信息全链路加密** - -### 高性能集群 - -> 支持部署采集器集群,多采集器集群横向扩展,指数级提高可监控数量与采集性能。 -> 监控任务在采集器集群中自调度,单采集器挂掉无感知故障迁移采集任务,新加入采集器节点自动调度分担采集压力。 -> 单机模式与集群模式相互切换部署非常方便,无需额外组件部署。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 云边协同 - -> 支持部署边缘采集器集群,与主 TanCloud 服务云边协同提升采集能力。 - -在多个网络不相通的隔离网络中,在以往的方案中我们需要在每个网络都部署一套监控系统,这导致数据不互通,管理部署维护都不方便。 -TanCloud 提供云边协同能力,可以在多个隔离网络部署边缘采集器,采集器在隔离网络内部进行监控任务采集,采集数据上报,由主 TanCloud 服务统一调度管理展示。 - -![hertzbeat](/img/docs/cluster-arch.png) - -### 易用友好 - -> 集 **监控+告警+通知** All in one, 无需单独部署多个组件服务。 -> 全UI界面操作,不管是新增监控,修改监控模版,还是告警阈值通知,都可在WEB界面操作完成,无需要修改文件或脚本或重启。 -> 无需 Agent, 监控对端我们只需在WEB界面填写所需IP端口账户密码等参数即可。 -> 自定义友好,只需一个监控模版YML,自动生成对应监控类型的监控管理页面,数据图表页面,阈值配置等。 -> 阈值告警通知友好,基于表达式阈值配置,多种告警通知渠道,支持告警静默,时段标签告警级别过滤等。 - - - ------ - -**`TanCloud`的强大自定义,多类型支持,高性能,易扩展,低耦合,希望能帮助开发者和团队快速搭建自有监控系统。** - ------ - -## 功能描述 - -### 登陆页面 - -- TanCloud 的用户管理统一由配置文件 `sureness.yml` 维护,用户可以通过修改此文件来新增删除修改用户信息,用户角色权限等。默认账户密码 admin/tancloud - -![hertzbeat](/img/home/0.png) - -### 概览页面 - -- 全局概览页面,分类展示了当前监控大类别数量分布,用户可直观查看当前的监控类型与数量并点击跳转至对应监控类型进行维护管理。 -- 展示当前注册的采集器集群状态,包括采集器的上线状态,监控任务,启动时间,IP地址,名称等。 -- 下发展示了最近告警信息列表,告警级别分布情况,告警处理率情况。 - -![hertzbeat](/img/home/1.png) - -### 监控中心 - -- 监控入口,支持对应用服务,数据库,操作系统,中间件,网络,自定义等监控的管理。 -- 以列表的形式展示当前已添加的监控,支持对监控的新增,修改,删除,取消监控,导入导出,批量管理等。 -- 支持标签分组,查询过滤,查看监控详情入口等。 - -内置支持的监控类型包括: - -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), - [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), - [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), - [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), - [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml), [SpringBoot3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), - [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), - [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), - [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), - [DM](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml), [OpenGauss](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml), - [ClickHouse](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml), [IoTDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml), - [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), - [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), - [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), - [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), - [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), - [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), - [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), - [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), - [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), - [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml), [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), - [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), - [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) - -![hertzbeat](/img/home/2.png) - -### 新增修改监控 - -- 新增或修改指定监控类型的监控实例,配置对端监控的IP,端口等参数,设置采集周期,采集任务调度方式,支持提前探测可用性等。 -- 页面上配置的监控参数由对应监控类型的监控模版所定义,用户可以通过修改监控模版来修改页面配置参数。 -- 支持关联标签,用标签来管理监控分组,告警匹配等。 - -![hertzbeat](/img/home/10.png) - -### 监控详情 - -- 监控的数据详情页面,展示了当前监控的基本参数信息,监控指标数据信息。 -- 监控实时数据报告,以小卡片列表的形式展示了当前监控的所有指标实时值,用户可根据实时值参考配置告警阈值规则。 -- 监控历史数据报告,以趋势图表的形式展示了当前监控数值类型的指标的历史值,支持查询小时,天,月的历史数据,支持配置页面刷新时间。 -- ⚠️注意监控历史图表需配置外置时序数据库才能获取完整功能,时序数据库支持: IOTDB, TDengine, InfluxDB, GreptimeDB - -![hertzbeat](/img/home/3.png) - -![hertzbeat](/img/home/4.png) - -### 告警中心 - -- 已触发告警消息的管理展示页面,使用户有直观的展示当前告警情况。 -- 支持告警处理,告警标记未处理,告警删除清空等批量操作。 - -![hertzbeat](/img/home/7.png) - -### 阈值规则 - -- 对于监控的可用性状态设置阈值规则,特定指标的值超过我们预期范围时发出告警,这些都可以在阈值规则这里配置。 -- 告警级别分为三级:通知告警,严重告警,紧急告警。 -- 阈值规则支持可视化页面配置或表达式规则配置,灵活性更高。 -- 支持配置触发次数,告警级别,通知模版,关联指定监控等。 - -![hertzbeat](/img/home/6.png) - -![hertzbeat](/img/home/11.png) - -### 告警收敛 - -- 当通过阈值规则判断触发告警后,会进入到告警收敛,告警收敛会根据规则对特定时间段的重复告警消息去重收敛,已避免大量重复性告警导致接收人告警麻木。 -- 告警收敛规则支持重复告警生效时间段,标签匹配和告警级别匹配过滤。 - -![hertzbeat](/img/home/12.png) - -![hertzbeat](/img/home/13.png) - - -### 告警静默 - -- 当通过阈值规则判断触发告警后,会进入到告警静默,告警静默会根据规则对特定一次性时间段或周期性时候段的告警消息屏蔽静默,此时间段不发送告警消息。 -- 此应用场景如用户在系统维护中,无需发已知告警。用户在工作日时间才会接收告警消息,用户在晚上需避免打扰等。 -- 告警静默规则支持一次性时间段或周期性时间段,支持标签匹配和告警级别匹配。 - -![hertzbeat](/img/home/14.png) - -![hertzbeat](/img/home/15.png) - -### 消息通知 - -- 消息通知功能是把告警消息通过不同媒体渠道通知给指定的接收人,告警消息及时触达。 -- 功能包含接收人信息管理和通知策略管理,接收人管理维护接收人信息以其通知方式信息,通知策略管理维护把哪些告警信息通知给哪些接收人的策略规则。 -- 通知方式支持 `邮件` `Discord` `Slack` `Telegram` `钉钉` `微信` `飞书` `短信` `Webhook` 等方式。 -- 通知策略支持标签匹配和告警级别匹配,方便的使不同标签的告警和告警级别分派给不同的接收处理人。 - -![hertzbeat](/img/home/16.png) - -![hertzbeat](/img/home/17.png) - -![hertzbeat](/img/home/8.png) - -### 监控模版 - -- TanCloud 将 `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` 等协议规范可配置化,只需在浏览器配置监控模版 `YML` 就能使用这些协议去自定义采集想要的指标。您相信只需配置下就能立刻适配一款 `K8s` 或 `Docker` 等新的监控类型吗? -- 同理我们内置的所有监控类型(mysql,website,jvm,k8s)也一一映射为对应的监控模版,用户可以新增修改监控模版来自定义监控功能。 - -![hertzbeat](/img/home/9.png) - - ------ - -**`TanCloud`更多强大的功能欢迎使用探索。Have Fun!** - ------ diff --git a/home/versioned_docs/version-v1.4.x/start/account-modify.md b/home/versioned_docs/version-v1.4.x/start/account-modify.md deleted file mode 100644 index 0f6abc5b234..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/account-modify.md +++ /dev/null @@ -1,129 +0,0 @@ ---- -id: account-modify -title: Modify Account Username Password -sidebar_label: Update Account ---- - -HertzBeat default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat -If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. -The configuration file content refer to project repository[/script/sureness.yml](https://gitee.com/hertzbeat/hertzbeat/blob/master/script/sureness.yml) -Modify the following **part parameters** in sureness.yml:**[Note⚠️Other default sureness configuration parameters should be retained]** - -```yaml - -resourceRole: - - /api/account/auth/refresh===post===[admin,user,guest] - - /api/apps/**===get===[admin,user,guest] - - /api/monitor/**===get===[admin,user,guest] - - /api/monitor/**===post===[admin,user] - - /api/monitor/**===put===[admin,user] - - /api/monitor/**===delete==[admin] - - /api/monitors/**===get===[admin,user,guest] - - /api/monitors/**===post===[admin,user] - - /api/monitors/**===put===[admin,user] - - /api/monitors/**===delete===[admin] - - /api/alert/**===get===[admin,user,guest] - - /api/alert/**===post===[admin,user] - - /api/alert/**===put===[admin,user] - - /api/alert/**===delete===[admin] - - /api/alerts/**===get===[admin,user,guest] - - /api/alerts/**===post===[admin,user] - - /api/alerts/**===put===[admin,user] - - /api/alerts/**===delete===[admin] - - /api/notice/**===get===[admin,user,guest] - - /api/notice/**===post===[admin,user] - - /api/notice/**===put===[admin,user] - - /api/notice/**===delete===[admin] - - /api/tag/**===get===[admin,user,guest] - - /api/tag/**===post===[admin,user] - - /api/tag/**===put===[admin,user] - - /api/tag/**===delete===[admin] - - /api/summary/**===get===[admin,user,guest] - - /api/summary/**===post===[admin,user] - - /api/summary/**===put===[admin,user] - - /api/summary/**===delete===[admin] - -# Resources that need to be filtered and protected can be accessed directly without authentication -# /api/v1/source3===get means /api/v1/source3===get it can be accessed by anyone. Don't need to authentication -excludedResource: - - /api/account/auth/**===* - - /api/i18n/**===get - - /api/apps/hierarchy===get - # web ui the front-end static resource - - /===get - - /dashboard/**===get - - /monitors/**===get - - /alert/**===get - - /account/**===get - - /setting/**===get - - /passport/**===get - - /**/*.html===get - - /**/*.js===get - - /**/*.css===get - - /**/*.ico===get - - /**/*.ttf===get - - /**/*.png===get - - /**/*.gif===get - - /**/*.jpg===get - - /**/*.svg===get - - /**/*.json===get - # swagger ui resource - - /swagger-resources/**===get - - /v2/api-docs===get - - /v3/api-docs===get - -# user account information -# Here is admin tom lili three accounts -# eg: admin includes[admin,user]roles, password is hertzbeat -# eg: tom includes[user], password is hertzbeat -# eg: lili includes[guest],text password is lili, salt password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -Modify the following **part parameters** in sureness.yml **[Note⚠️Other default sureness configuration parameters should be retained]**: - -```yaml - -# user account information -# Here is admin tom lili three accounts -# eg: admin includes[admin,user]roles, password is hertzbeat -# eg: tom includes[user], password is hertzbeat -# eg: lili includes[guest], text password is lili, salt password is 1A676730B0C7F54654B0E09184448289 -account: - - appId: admin - credential: hertzbeat - role: [admin,user] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] -``` - -## Update Security Secret - -> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. - - -Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. - -```yaml -sureness: - jwt: - secret: 'CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R - LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 - 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 - dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' -``` - -**Restart HertzBeat, access http://ip:1157/ to explore** diff --git a/home/versioned_docs/version-v1.4.x/start/custom-config.md b/home/versioned_docs/version-v1.4.x/start/custom-config.md deleted file mode 100644 index 91282bf5055..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/custom-config.md +++ /dev/null @@ -1,58 +0,0 @@ ---- -id: custom-config -title: Advanced Params Config -sidebar_label: Advanced Params Config ---- - -This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc. - -**Configuration file `application.yml` of `hertzbeat`** - -### Configure the configuration file of HertzBeat - -Modify the configuration file located at `hertzbeat/config/application.yml` -Note ⚠️The docker container method needs to mount the application.yml file to the local host -The installation package can be decompressed and modified in `hertzbeat/config/application.yml` - -1. Configure the SMS sending server - -> Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. - -Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: XX Technology - template-id: 1343434 -``` - -2. Configure alarm custom parameters - - -```yaml -alerter: - # Custom console address - console-url: https://console.tancloud.cn -``` - -3. Use external redis instead of memory to store real-time metric data - -> By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. - -Note ⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` diff --git a/home/versioned_docs/version-v1.4.x/start/docker-deploy.md b/home/versioned_docs/version-v1.4.x/start/docker-deploy.md deleted file mode 100644 index 644079fde82..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/docker-deploy.md +++ /dev/null @@ -1,136 +0,0 @@ ---- -id: docker-deploy -title: Install HertzBeat via Docker -sidebar_label: Install via Docker ---- - -> Recommend to use docker deploy HertzBeat - - -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. pull HertzBeat Docker mirror - you can look up the mirror version TAG in [dockerhub mirror repository](https://hub.docker.com/r/apache/hertzbeat/tags) - or in [quay.io mirror repository](https://quay.io/repository/apache/hertzbeat) - ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector - ``` - or - ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector - ``` - -3. Mounted HertzBeat configuration file (optional) - Download and config `application.yml` in the host directory, eg:`$(pwd)/application.yml` - Download from [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) or [gitee/script/application.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/application.yml). - You can modify the configuration yml file according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -4. Mounted the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need update account or password, configure `sureness.yml`. Ignore this step without this demand. - Download and config `sureness.yml` in the host directory,eg:`$(pwd)/sureness.yml` - Download from [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) or [gitee/script/sureness.yml](https://gitee.com/hertzbeat/hertzbeat/raw/master/script/sureness.yml) - For detail steps, please refer to [Configure Account Password](account-modify) - -5. Start the HertzBeat Docker container - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=en_US.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --name hertzbeat apache/hertzbeat -``` - - This command starts a running HertzBeat Docker container with mapping port 1157-1158. If existing processes on the host use the port, please modify host mapped port. - - `docker run -d` : Run a container in the background via Docker - - `-p 1157:1157 -p 1158:1158` : Mapping container ports to the host, 1157 is web-ui port, 1158 is cluster port. - - `-e LANG=en_US.UTF-8` : Set the system language - - `-e TZ=Asia/Shanghai` : Set the system timezone - - `-v $(pwd)/data:/opt/hertzbeat/data` : (optional, data persistence) Important⚠️ Mount the H2 database file to the local host, to ensure that the data is not lost due creating or deleting container. - - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (optional, if you don't have a need, just delete it) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. - - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (optional, if you don't have a need, just delete it) Mount the local configuration file into the container which has been modified in the previous step, namely using the local configuration file to cover container configuration file. - - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (optional, if you don't have a need, just delete it) Mount account configuration file modified in the previous step into the container. Delete this command parameters if no needs. - - `--name hertzbeat` : Naming container name hertzbeat - - `apache/hertzbeat` : Use the pulled latest HertzBeat official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat` instead if you pull `quay.io` docker image.** - -6. Begin to explore HertzBeat - - Access `http://ip:1157/` using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - -7. Deploy collector cluster (Optional) - -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` - - This command starts a running HertzBeat-Collector container. - - `docker run -d` : Run a container in the background via Docker - - `-e IDENTITY=custom-collector-name` : (optional) Set the collector unique identity name. Attention the clusters collector name must unique. - - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. - - `-e MANAGER_HOST=127.0.0.1` : Important⚠️ Set the main hertzbeat server ip. - - `-e MANAGER_PORT=1158` : (optional) Set the main hertzbeat server port, default 1158. - - `-v $(pwd)/logs:/opt/hertzbeat-collector/logs` : (optional) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. - - `--name hertzbeat-collector` : Naming container name hertzbeat-collector - - `apache/hertzbeat-collector` : Use the pulled latest HertzBeat-Collector official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat-collector` instead if you pull `quay.io` docker image.** - -8. Access `http://localhost:1157` and you will see the registered new collector in dashboard. - -**HAVE FUN** - -### FAQ - -**The most common problem is network problems, please check in advance** - -1. **MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` - -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -4. **Historical monitoring charts have been missing data for a long time** -> 1:Check whether you configure Tdengine or IoTDB. No configuration means no historical chart data. -> 2:Check whether Tdengine database `hertzbeat` is created. -> 3: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. - -5. If the history chart on the monitoring page is not displayed,popup [please configure time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - IoTDB or TDengine database. -> Installation and initialization this database refer to [TDengine Installation](tdengine-init) or [IoTDB Installation](iotdb-init) - -6. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is near 2.4.0.12, version 3.0 and 2.2 are not compatible. - -7. The time series database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure dependent time series database] -> Please check if the configuration parameters are correct -> Is iot-db or td-engine enable set to true -> Note⚠️If both hertzbeat and IotDB, TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.4.x/start/greptime-init.md b/home/versioned_docs/version-v1.4.x/start/greptime-init.md deleted file mode 100644 index e4fcbe982ef..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/greptime-init.md +++ /dev/null @@ -1,64 +0,0 @@ ---- -id: greptime-init -title: Use Time Series Database GreptimeDB to Store Metrics Data (Optional) -sidebar_label: Use GreptimeDB Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) -We recommend VictoriaMetrics for long term support. - -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. - -It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. - -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** - -### Install GreptimeDB via Docker -> Refer to the official website [installation tutorial](https://docs.greptime.com/getting-started/overview) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install GreptimeDB with Docker - -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 \ -``` - `-v /opt/greptimedb:/tmp/greptimedb` is local persistent mount of greptimedb data directory. `/opt/greptimedb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.greptime` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable greptime - greptime: - enabled: true - endpoint: localhost:4001 -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases Greptime, IoTDB or TDengine need to be configured? Can they both be used? - -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - diff --git a/home/versioned_docs/version-v1.4.x/start/influxdb-init.md b/home/versioned_docs/version-v1.4.x/start/influxdb-init.md deleted file mode 100644 index 72cf7ca6129..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/influxdb-init.md +++ /dev/null @@ -1,72 +0,0 @@ ---- -id: influxdb-init -title: Use Time Series Database InfluxDB to Store Metrics Data (Optional) -sidebar_label: Use InfluxDB Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) -We recommend VictoriaMetrics for long term support. - -TDengine is the Time Series Data Platform where developers build IoT, analytics, and cloud applications. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need InfluxDB 1.x Version. - -### 1. Use HuaweiCloud GaussDB For Influx - -> Use [HuaweiCloud GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> Get the `GaussDB For Influx` service url, username and password config. - -⚠️Note `GaussDB For Influx` enable SSL default, the service url should use `https:` - -### 2. Install TDengine via Docker -> Refer to the official website [installation tutorial](https://hub.docker.com/_/influxdb) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install InfluxDB with Docker - ``` - $ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 - ``` - `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.influxdb` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable influxdb - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases InfluxDB, IoTDB and TDengine need to be configured? Can they both be used? - -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/versioned_docs/version-v1.4.x/start/iotdb-init.md b/home/versioned_docs/version-v1.4.x/start/iotdb-init.md deleted file mode 100644 index 57329621958..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/iotdb-init.md +++ /dev/null @@ -1,79 +0,0 @@ ---- -id: iotdb-init -title: Use Time Series Database IoTDB to Store Metrics Data (Optional) -sidebar_label: Use IoTDB Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) -We recommend VictoriaMetrics for long term support. - -Apache IoTDB is a software system that integrates the collection, storage, management and analysis of time series data of the Internet of Things. We use it to store and analyze the historical data of monitoring metrics collected. Support V0.13+ version and V1.0.+ version. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** - -> If you already have an IoTDB environment, you can skip directly to the YML configuration step. - - -### Install IoTDB via Docker -> Refer to the official website [installation tutorial](https://iotdb.apache.org/UserGuide/V0.13.x/QuickStart/WayToGetIoTDB.html) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install IoTDB via Docker - -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:0.13.3-node -``` - - `-v /opt/iotdb/data:/iotdb/data` is local persistent mount of IotDB data directory.`/iotdb/data` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - -3. Configure the database connection in hertzbeat `application.yml`configuration file - - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.iot-db` data source parameters, HOST account and password. - -``` -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable iot-db - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - # config.org.apache.hertzbeat.warehouse.IotDbVersion: V_0_13 || V_1_0 - version: V_0_13 - query-timeout-in-ms: -1 - # default '7776000000'(90days,unit:ms,-1:no-expire) - expire-time: '7776000000' -``` - -4. Restart HertzBeat - -### FAQ - -1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - -2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database - -3. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.4.x/start/mysql-change.md b/home/versioned_docs/version-v1.4.x/start/mysql-change.md deleted file mode 100644 index 16bbab1b067..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/mysql-change.md +++ /dev/null @@ -1,57 +0,0 @@ ---- -id: mysql-change -title: Use MYSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Use MYSQL Instead of H2 ---- -MYSQL is a reliable relational database. In addition to default built-in H2 database, HertzBeat allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. - -> If you have the MYSQL environment, can be directly to database creation step. - -### Install MYSQL via Docker -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install MYSQl with Docker - ``` - $ docker run -d --name mysql -p 3306:3306 -v /opt/data:/var/lib/mysql -e MYSQL_ROOT_PASSWORD=123456 mysql:5.7 - ``` - `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. - use ```$ docker ps``` to check if the database started successfully - -### Database creation -1. Enter MYSQL or use the client to connect MYSQL service - `mysql -uroot -p123456` -2. Create database named hertzbeat - `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` -3. Check if hertzbeat database has been successfully created - `show databases;` - -### Modify hertzbeat's configuration file application.yml and switch data source - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `spring.database` data source parameters, URL account and password. -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` - Specific replacement parameters are as follows and you need to configure account according to the mysql environment: -```yaml -spring: - datasource: - driver-class-name: com.mysql.cj.jdbc.Driver - username: root - password: 123456 - url: jdbc:mysql://localhost:3306/hertzbeat?useUnicode=true&characterEncoding=utf-8&useSSL=false -``` - -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/start/package-deploy.md b/home/versioned_docs/version-v1.4.x/start/package-deploy.md deleted file mode 100644 index 0fce262f9df..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/package-deploy.md +++ /dev/null @@ -1,92 +0,0 @@ ---- -id: package-deploy -title: Install HertzBeat via Package -sidebar_label: Install via Package ---- -> You can install and run HertzBeat on Linux Windows Mac system, and CPU supports X86/ARM64. - -1. Download HertzBeat installation package - Download installation package `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` corresponding to your system environment - - download from [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) repository - - download from [GITHUB Release](https://github.com/apache/hertzbeat/releases) repository - -2. Configure HertzBeat's configuration file(optional) - Unzip the installation package to the host eg: /opt/hertzbeat - ``` - $ tar zxvf hertzbeat-xx.tar.gz - or - $ unzip -o hertzbeat-xx.zip - ``` - Modify the configuration file `hertzbeat/config/application.yml` params according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Highly recommended** From now on we will mainly support VictoriaMetrics as a time-series database, if you need to use the time series database VictoriaMetrics to store metric data, you need to replace the `warehouse.store.victoria-metrics` parameter in `application.yml` for specific steps, see [Using VictoriaMetrics to store metrics data](victoria-metrics-init) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -3. Configure the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need add, delete or modify account or password, configure `hertzbeat/config/sureness.yml`. Ignore this step without this demand. - For detail steps, please refer to [Configure Account Password](account-modify) - -4. Start the service - Execute the startup script `startup.sh` in the installation directory `hertzbeat/bin/`, or `startup.bat` in windows. - ``` - $ ./startup.sh - ``` - -5. Begin to explore HertzBeat - - Access http://localhost:1157/ using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! - -6. Deploy collector clusters (Optional) - - - Download and unzip the collector release package `hertzbeat-collector-xx.tar.gz` to new machine [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) - - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` - - Access `http://localhost:1157` and you will see the registered new collector in dashboard - -**HAVE FUN** - -### FAQ - -1. **If using the package not contains JDK, you need to prepare the JAVA environment in advance** - - Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) - requirement:JDK11 ENV - download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) - After installation use command line to check whether you install it successfully. - ``` - $ java -version - java version "11.0.12" - Java(TM) SE Runtime Environment 18.9 (build 11.0.12+8-LTS-237) - Java HotSpot(TM) 64-Bit Server VM 18.9 (build 11.0.12+8-LTS-237, mixed mode) - - ``` - -2. **According to the process deploy,visit http://ip:1157/ no interface** - Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. - -3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. - -4. **Monitoring historical charts with no data for a long time ** -> 1: Whether the time series database is configured or not, if it is not configured, there is no historical chart data. -> 2: If you are using Tdengine, check whether the database `hertzbeat` of Tdengine is created. -> 3: HertzBeat's configuration file `application.yml`, the dependent services in it, the time series, the IP account password, etc. are configured correctly. - diff --git a/home/versioned_docs/version-v1.4.x/start/postgresql-change.md b/home/versioned_docs/version-v1.4.x/start/postgresql-change.md deleted file mode 100644 index 5be6b466223..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/postgresql-change.md +++ /dev/null @@ -1,73 +0,0 @@ ---- -id: postgresql-change -title: Use PostgreSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Use PostgreSQL Instead of H2 ---- -PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition to default built-in H2 database, HertzBeat allow you to use PostgreSQL to store structured relational data such as monitoring information, alarm information and configuration information. - -> If you have the PostgreSQL environment, can be directly to database creation step. - -### Install PostgreSQL via Docker -1. Download and install the Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install PostgreSQL with Docker - ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` - use```$ docker ps```to check if the database started successfully -3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). - -### Database creation -1. Enter postgreSQL or use the client to connect postgreSQL service - ``` - su - postgres - psql - ``` -2. Create database named hertzbeat - `CREATE DATABASE hertzbeat;` -3. Check if hertzbeat database has been successfully created - `\l` - -### Modify hertzbeat's configuration file application.yml and switch data source - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `spring.database` data source parameters, URL account and password. -```yaml -spring: - datasource: - driver-class-name: org.h2.Driver - username: sa - password: 123456 - url: jdbc:h2:./data/hertzbeat;MODE=MYSQL -``` -Specific replacement parameters are as follows and you need to configure account, ip, port according to the postgresql environment: -```yaml -spring: - config: - activate: - on-profile: prod - datasource: - driver-class-name: org.postgresql.Driver - username: root - password: 123456 - url: jdbc:postgresql://127.0.0.1:5432/hertzbeat - hikari: - max-lifetime: 120000 - - jpa: - database: postgresql - hibernate: - ddl-auto: update - properties: - hibernate: - dialect: org.hibernate.dialect.PostgreSQLDialect -``` - -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/start/quickstart.md b/home/versioned_docs/version-v1.4.x/start/quickstart.md deleted file mode 100644 index d6ddb6103ad..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/quickstart.md +++ /dev/null @@ -1,85 +0,0 @@ ---- -id: quickstart -title: Quick Start -sidebar_label: Quick Start ---- - -### 🐕 Quick Start - -- If you wish to deploy HertzBeat locally, please refer to the following Deployment Documentation for instructions. - -### 🍞 Install HertzBeat - -> HertzBeat supports installation through source code, docker or package, cpu support X86/ARM64. - -##### 1:Install quickly via docker - -1. Just one command to get started: - -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` - -```or use quay.io (if dockerhub network connect timeout)``` - -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` - -2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` - -3. Deploy collector clusters - -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : set the collector unique identity name. -- `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. -- `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. -- `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. - -Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.com/docs/start/docker-deploy) - -##### 2:Install via package - -1. Download the release package `hertzbeat-xx.tar.gz` [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) -2. Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` (optional) -3. Run command `$ ./bin/startup.sh ` or `bin/startup.bat` -4. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` -5. Deploy collector clusters - - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [GITEE Release](https://gitee.com/hertzbeat/hertzbeat/releases) [GITHUB Release](https://github.com/apache/hertzbeat/releases) - - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` - ```yaml - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` - - Access `http://localhost:1157` and you will see the registered new collector in dashboard - -Detailed config refer to [Install HertzBeat via Package](https://hertzbeat.com/docs/start/package-deploy) - -##### 3:Start via source code - -1. Local source code debugging needs to start the back-end project `manager` and the front-end project `web-app`. -2. Backend:need `maven3+`, `java11`, `lombok`, start the `manager` service. -3. Web:need `nodejs npm angular-cli` environment, Run `ng serve --open` in `web-app` directory after backend startup. -4. Access `http://localhost:4200` to start, default account: `admin/hertzbeat` - -Detailed steps refer to [CONTRIBUTING](../others/contributing) - -##### 4:Install All(hertzbeat+mysql+iotdb/tdengine) via Docker-compose - -Install and deploy the mysql database, iotdb/tdengine database and hertzbeat at one time through [docker-compose deployment script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose). - -Detailed steps refer to [Install via Docker-Compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose) - -##### 5. Install All(hertzbeat+collector+mysql+iotdb) via kubernetes helm charts - -Install HertzBeat cluster in a Kubernetes cluster by Helm chart. - -Detailed steps refer to [Artifact Hub](https://artifacthub.io/packages/helm/hertzbeat/hertzbeat) - -**HAVE FUN** diff --git a/home/versioned_docs/version-v1.4.x/start/rainbond-deploy.md b/home/versioned_docs/version-v1.4.x/start/rainbond-deploy.md deleted file mode 100644 index 1ff4de9428f..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/rainbond-deploy.md +++ /dev/null @@ -1,32 +0,0 @@ ---- -id: rainbond-deploy -title: Use Rainbond Deploy HertzBeat -sidebar_label: Install via Rainbond ---- - -If you are unfamiliar with Kubernetes, and want to install HertzBeat in Kubernetes, you can use Rainbond to deploy. Rainbond is a cloud-native application management platform built on Kubernetes and simplifies the application deployment to Kubernetes. - -## Prerequisites - -To install Rainbond, please refer to [Rainbond Quick Install](https://www.rainbond.com/docs/quick-start/quick-install)。 - -## Deploy HertzBeat - -After logging in Rainbond, click Market in the left menu, switch to open source app store, and search HertzBeat in the search box, and click the Install button. - -![](/img/docs/start/install-to-rainbond-en.png) - -Fill in the following information, and click Confirm button to install. - -* Team: select a team or create a new team -* Cluster: select a cluster -* Application: select an application or create a new application -* Version: select a version - -After installation, HertzBeat can be accessed via the Access button. - -![](/img/docs/start/hertzbeat-topology-en.png) - -:::tip -HertzBeat installed via Rainbond, External Mysql database and Redis and IoTDB are used by default, The HertzBeat configuration file is also mounted, which can be modified in `Components -> Environment Configuration -> Configuration File Settings`. -::: diff --git a/home/versioned_docs/version-v1.4.x/start/sslcert-practice.md b/home/versioned_docs/version-v1.4.x/start/sslcert-practice.md deleted file mode 100644 index 41c9c2ed686..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/sslcert-practice.md +++ /dev/null @@ -1,114 +0,0 @@ ---- -id: ssl-cert-practice -title: SSL Certificate Monitor Practice -sidebar_label: Practice Example ---- - -Most websites now support HTTPS by default. The certificate we apply for is usually 3 months or 1 year. It is easy to expire the SSL certificate over time, but we did not find it the first time, or did not update the certificate in time before it expired. - -This article introduces how to use the hertzbeat monitoring tool to detect the validity period of our website's SSL certificate, and send us a warning message when the certificate expires or a few days before the certificate expires. - -#### What is HertzBeat - -HertzBeat is a real-time monitoring tool with powerful custom monitoring capabilities without Agent. Website monitoring, PING connectivity, port availability, database, operating system, middleware, API monitoring, threshold alarms, alarm notification (email, WeChat, Ding Ding Feishu). - -**Official website: https://hertzbeat.com | https://tancloud.cn** - -github: https://github.com/apache/hertzbeat -gitee: https://gitee.com/hertzbeat/hertzbeat - -#### Install HertzBeat - -1. If you don't want to install, you can use the cloud service directly [TanCloud exploration cloud console.tancloud.cn](https://console.tancloud.cn) - -2. The `docker` environment can be installed with just one command - -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` - -3. After the installation is successful, the browser can access `localhost:1157` to start, the default account password is `admin/hertzbeat` - -#### Monitoring SSL certificates - -1. Click Add SSL Certificate Monitor - -> System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate - - -![](/img/docs/start/ssl_1.png) - -2. Configure the monitoring website - -> Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. -> Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. - -![](/img/docs/start/ssl_2.png) - -3. View the detection index data - -> In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. - - -![](/img/docs/start/ssl_3.png) - - -![](/img/docs/start/ssl_11.png) - -4. Set the threshold (triggered when the certificate expires) - -> System Page -> Alarms -> Alarm Thresholds -> New Thresholds - - -![](/img/docs/start/ssl_4.png) - -> Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. - - -![](/img/docs/start/ssl_5.png) - -> Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. - - -![](/img/docs/start/ssl_6.png) - - -5. Set the threshold (triggered one week before the certificate expires) - -> In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. - - -![](/img/docs/start/ssl_7.png) - -> Finally, you can see the triggered alarm in the alarm center. - - -![](/img/docs/start/ssl_8.png) - - -6. Alarm notification (in time notification via Dingding WeChat Feishu, etc.) - -> Monitoring Tool -> Alarm Notification -> New Receiver - - -![](/img/docs/start/ssl_10.png) - -For token configuration such as Dingding WeChat Feishu, please refer to the help document - -https://hertzbeat.com/docs/help/alert_dingtalk -https://tancloud.cn/docs/help/alert_dingtalk - -> Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured - - -![](/img/docs/start/ssl_11.png) - -7. OK When the threshold is triggered, we can receive the corresponding alarm message. If there is no notification, you can also view the alarm information in the alarm center. - ----- - -#### Finish! - -The practice of monitoring SSL certificates is here. Of course, for hertzbeat, this function is just the tip of the iceberg. If you think hertzbeat is a good open source project, please give us a Gitee star on GitHub, thank you very much. Thank you for your support. Refill! - -**github: https://github.com/apache/hertzbeat** - -**gitee: https://gitee.com/hertzbeat/hertzbeat** diff --git a/home/versioned_docs/version-v1.4.x/start/tdengine-init.md b/home/versioned_docs/version-v1.4.x/start/tdengine-init.md deleted file mode 100644 index 928e9b25865..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/tdengine-init.md +++ /dev/null @@ -1,115 +0,0 @@ ---- -id: tdengine-init -title: Use Time Series Database TDengine to Store Metrics Data (Optional) -sidebar_label: Use TDengine Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) -We recommend VictoriaMetrics for long term support. - -TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need TDengine 3.x Version. - -> If you have TDengine environment, can directly skip to create a database instance. - - -### Install TDengine via Docker -> Refer to the official website [installation tutorial](https://docs.taosdata.com/get-started/docker/) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` -2. Install TDengine with Docker - ```shell - $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 - ``` - `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. - `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. - use```$ docker ps``` to check if the database started successfully - -### Create database instance - -1. Enter database Docker container - ``` - $ docker exec -it tdengine /bin/bash - ``` -2. Create database named hertzbeat - After entering the container,execute `taos` command as follows: - - ``` - root@tdengine-server:~/TDengine-server# taos - Welcome to the TDengine shell from Linux, Client Version - Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. - taos> - ``` - - execute commands to create database - - ``` - taos> show databases; - taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; - ``` - - The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). - A data file every 10 days, memory blocks buffer is 16MB. - -3. Check if hertzbeat database has been created success - - ``` - taos> show databases; - taos> use hertzbeat; - ``` - -**Note⚠️If you install TDengine using package** - -> In addition to start the server,you must execute `systemctl start taosadapter` to start adapter - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.td-engine` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable td-engine - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` - -2. Restart HertzBeat - -### FAQ - -1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - -2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database - -3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. - -4. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.4.x/start/upgrade.md b/home/versioned_docs/version-v1.4.x/start/upgrade.md deleted file mode 100644 index 6836d8a62d8..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/upgrade.md +++ /dev/null @@ -1,52 +0,0 @@ ---- -id: upgrade -title: HertzBeat New Version Upgrade -sidebar_label: Version Upgrade Guide ---- - -**HertzBeat Release Version List** - -- [Github Release](https://github.com/apache/hertzbeat/releases) -- [Gitee Release](https://gitee.com/hertzbeat/hertzbeat/releases) -- [DockerHub Release](https://hub.docker.com/r/apache/hertzbeat/tags) -- [Docker quay.io Release](https://quay.io/repository/apache/hertzbeat?tab=tags) - -HertzBeat's metadata information is stored in H2 or Mysql, PostgreSQL relational databases, and the collected metric data is stored in time series databases such as TDengine and IotDB. - -**You need to save and back up the data files of the database and monitoring templates yml files before upgrading** - - -### Upgrade For Docker Deploy - -1. If using custom monitoring templates - - Need to back up docker templates directory `docker cp hertzbeat:/opt/hertzbeat/define ./define` in the container `/opt/hertzbeat/define` - - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - - And mount the template define directory when docker start `-v $(pwd)/define:/opt/hertzbeat/define` - - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. If using the built-in default H2 database - - Need to mount or back up `-v $(pwd)/data:/opt/hertzbeat/data` database file directory in the container `/opt/hertzbeat/data` - - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - - Refer to [Docker installation of HertzBeat](docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data` - -3. If using external relational database Mysql, PostgreSQL - - No need to mount the database file directory in the backup container - - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - - Refer to [Docker installation HertzBeat](docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml` - - -### Upgrade For Package Deploy - -1. If using the built-in default H2 database - - Back up the database file directory under the installation package `/opt/hertzbeat/data` - - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - - Refer to [Installation package to install HertzBeat](package-deploy) to start using the new installation package - -2. If using external relational database Mysql, PostgreSQL - - No need to back up the database file directory under the installation package - - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - - Refer to [Installation package to install HertzBeat](package-deploy) to start with the new installation package and configure the database connection in `application.yml` - -**HAVE FUN** diff --git a/home/versioned_docs/version-v1.4.x/start/victoria-metrics-init.md b/home/versioned_docs/version-v1.4.x/start/victoria-metrics-init.md deleted file mode 100644 index c917d5cb7a4..00000000000 --- a/home/versioned_docs/version-v1.4.x/start/victoria-metrics-init.md +++ /dev/null @@ -1,65 +0,0 @@ ---- -id: victoria-metrics-init -title: Use Time Series Database VictoriaMetrics to Store Metrics Data (Recommended) -sidebar_label: Use VictoriaMetrics Store Metrics ---- - -HertzBeat's historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) -We recommend VictoriaMetrics for long term support. - - -VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.Recommend Version(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) - -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** - -> If you already have an VictoriaMetrics environment, you can skip directly to the YML configuration step. - -### Install VictoriaMetrics via Docker -> Refer to the official website [installation tutorial](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` - $ docker -v - Docker version 20.10.12, build e91ed57 - ``` - -2. Install VictoriaMetrics via Docker - -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` - - `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` is local persistent mount of VictoriaMetrics data directory - use```$ docker ps``` to check if the database started successfully - -3. Configure the database connection in hertzbeat `application.yml`configuration file - - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.victoria-metrics` data source parameters, HOST account and password. - -```yaml -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` - -4. Restart HertzBeat - -### FAQ - -1. Do both the time series databases need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which can affects the historical chart data. diff --git a/home/versioned_docs/version-v1.4.x/template.md b/home/versioned_docs/version-v1.4.x/template.md deleted file mode 100644 index a02c1d11925..00000000000 --- a/home/versioned_docs/version-v1.4.x/template.md +++ /dev/null @@ -1,97 +0,0 @@ ---- -id: template -title: Monitoring Template Here -sidebar_label: Monitoring Template ---- - -> Hertzbeat is an open source, real-time monitoring tool with custom-monitor and agentLess. - -> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. -> Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online? - -Here is the architecture. - -![hertzBeat](/img/docs/hertzbeat-arch.png) - -**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates, and users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** - -![](/img/docs/advanced/extend-point-1.png) - -**Welcome everyone to contribute your customized general monitoring type YML template during use. The available templates are as follows:** - -### Application service monitoring - - 👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
- 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
- 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
- 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
- 👉 [SpringBoot2.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml)
- 👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
- 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
- -### Database monitoring - - 👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
- 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
- 👉 [PostgreSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml)
- 👉 [SqlServer database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml)
- 👉 [Oracle database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml)
- 👉 [DM database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dm.yml)
- 👉 [OpenGauss database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opengauss.yml)
- 👉 [IoTDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-iotdb.yml)
- 👉 [ElasticSearch database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml)
- 👉 [MongoDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml)
- 👉 [ClickHouse database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-clickhouse.yml)
- 👉 [Redis database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml)
- 👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
- 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
- -### Operating system monitoring - - 👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
- 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
- 👉 [Ubuntu operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml)
- 👉 [Centos operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml)
- 👉 [EulerOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml)
- 👉 [Fedora CoreOS operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml)
- 👉 [OpenSUSE operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml)
- 👉 [Rocky Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml)
- 👉 [Red Hat operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml)
- 👉 [FreeBSD operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml)
- 👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
- 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- - -### Middleware monitoring - - 👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
- 👉 [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml)
- 👉 [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml)
- 👉 [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml)
- 👉 [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml)
- 👉 [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml)
- 👉 [ActiveMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-activemq.yml)
- 👉 [Jetty](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jetty.yml)
- 👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
- 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- - -### CloudNative monitoring - - 👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
- 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
- -### Network monitoring - - 👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
- 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
- 👉 [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml)
- 👉 [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml)
- 👉 [H3CSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml)
- ---- - -**Have Fun!** diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-http-default.md b/home/versioned_docs/version-v1.5.x/advanced/extend-http-default.md index cb8cec5b7aa..1030e382685 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-http-default.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-http-default.md @@ -4,14 +4,16 @@ title: HTTP Protocol System Default Parsing Method sidebar_label: Default Parsing Method --- -> After calling the HTTP api to obtain the response data, use the default parsing method of hertzbeat to parse the response data. +> After calling the HTTP api to obtain the response data, use the default parsing method of hertzbeat to parse the response data. -**The interface response data structure must be consistent with the data structure rules specified by hertzbeat** +**The interface response data structure must be consistent with the data structure rules specified by hertzbeat** -### HertzBeat data format specification -Note⚠️ The response data is JSON format. +### HertzBeat data format specification + +Note⚠️ The response data is JSON format. Single layer format :key-value + ```json { "metricName1": "metricValue", @@ -20,7 +22,9 @@ Single layer format :key-value "metricName4": "metricValue" } ``` + Multilayer format:Set key value in the array + ```json [ { @@ -37,9 +41,11 @@ Multilayer format:Set key value in the array } ] ``` + eg: -Query the CPU information of the custom system. The exposed interface is `/metrics/cpu`. We need `hostname,core,useage` Metric. -If there is only one virtual machine, its single-layer format is : +Query the CPU information of the custom system. The exposed interface is `/metrics/cpu`. We need `hostname,core,useage` Metric. +If there is only one virtual machine, its single-layer format is : + ```json { "hostname": "linux-1", @@ -49,7 +55,9 @@ If there is only one virtual machine, its single-layer format is : "runningTime": 100 } ``` -If there are multiple virtual machines, the multilayer format is: : + +If there are multiple virtual machines, the multilayer format is: : + ```json [ { @@ -76,7 +84,7 @@ If there are multiple virtual machines, the multilayer format is: : ] ``` -**The corresponding monitoring template yml can be configured as follows** +**The corresponding monitoring template yml can be configured as follows** ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md b/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md index 4c65e29b8da..c941befb396 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-hertzbeat.md @@ -8,13 +8,11 @@ Through this tutorial, we describe step by step how to add a monitoring type bas Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [http Protocol Customization](extend-http). - ### HTTP protocol parses the general response structure to obtain metric data > In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ Before reading this tutorial, we hope that you are familiar with how to customiz } ``` + As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API `http://localhost:1157/api/summary`, the response data is: -``` +```json { "msg": null, "code": 0, @@ -56,23 +55,20 @@ As above, usually our background API interface will design such a general return } ``` -**This time we get the metric data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** +**This time we get the metric data such as `category`, `app`, `status`, `size`, `availableSize` under the app.** ### Add custom monitoring template `hertzbeat` **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. **Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring category: custom @@ -198,40 +194,32 @@ metrics: ``` -**The addition is complete, now we save and apply. We can see that the system page has added a `hertzbeat` monitoring type. ** - +**The addition is complete, now we save and apply. We can see that the system page has added a `hertzbeat` monitoring type.** ![](/img/docs/advanced/extend-http-example-1.png) - ### The system page adds the monitoring of `hertzbeat` monitoring type > We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### Set threshold alarm notification > Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add recipients, set alarm notifications, etc. Have Fun!!! - ---- -#### over! +#### over This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. +If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-token.md b/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-token.md index b9bbb61e72d..5bf51fd17a0 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-token.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-http-example-token.md @@ -10,7 +10,7 @@ Before reading this tutorial, we hope that you are familiar with how to customiz ### Request process -【**Authentication information metrics (highest priority)**】【**HTTP interface carries account password call**】->【**Response data analysis**】->【**Analysis and issuance of TOKEN-accessToken as an metric **] -> [**Assign accessToken as a variable parameter to other collection index groups**] +【**Authentication information metrics (highest priority)**】【**HTTP interface carries account password call**】->【**Response data analysis**】->【**Analysis and issuance of TOKEN-accessToken as an metric**] -> [**Assign accessToken as a variable parameter to other collection index groups**] > Here we still use the hertzbeat monitoring example of Tutorial 1! The hertzbeat background interface not only supports the basic direct account password authentication used in Tutorial 1, but also supports token authentication. @@ -22,6 +22,7 @@ Before reading this tutorial, we hope that you are familiar with how to customiz "identifier": "admin" } ``` + **The response structure data is as follows**: ```json @@ -40,11 +41,9 @@ Before reading this tutorial, we hope that you are familiar with how to customiz **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - 1. The custom monitoring type needs to add a new configuration monitoring template yml. We directly reuse the `hertzbeat` monitoring type in Tutorial 1 and modify it based on it A monitoring configuration definition file named after the monitoring type - hertzbeat_token @@ -203,7 +202,7 @@ metrics: ``` -**At this time, save and apply, add `hertzbeat_token` type monitoring on the system page, configure input parameters, `content-type` fill in `application/json`, `request Body` fill in the account password json as follows: ** +**At this time, save and apply, add `hertzbeat_token` type monitoring on the system page, configure input parameters, `content-type` fill in `application/json`, `request Body` fill in the account password json as follows:** ```json { @@ -214,20 +213,17 @@ metrics: ![](/img/docs/advanced/extend-http-example-5.png) - -** After the addition is successful, we can see the `token`, `refreshToken` metric data we collected on the details page. ** +**After the addition is successful, we can see the `token`, `refreshToken` metric data we collected on the details page.** ![](/img/docs/advanced/extend-http-example-6.png) ![](/img/docs/advanced/extend-http-example-7.png) - - ### Use `token` as a variable parameter to collect and use the following metricss **Add an index group definition `summary` in `app-hertzbeat_token.yml`, which is the same as `summary` in Tutorial 1, and set the collection priority to 1** -**Set the authentication method in the HTTP protocol configuration of this index group to `Bearer Token`, assign the index `token` collected by the previous index group `auth` as a parameter, and use `^o^` as the internal replacement symbol, that is ` ^o^token^o^`. as follows:** +**Set the authentication method in the HTTP protocol configuration of this index group to `Bearer Token`, assign the index `token` collected by the previous index group `auth` as a parameter, and use `^o^` as the internal replacement symbol, that is `^o^token^o^`. as follows:** ```yaml - name: summary @@ -334,8 +330,7 @@ metrics: # Response data analysis method: default-system rules, jsonPath-jsonPath script, website-website usability metric monitoring parseType: jsonPath parseScript: '$.data' - - +--- - name: summary # The smaller the index group scheduling priority (0-127), the higher the priority, and the index group with low priority will not be scheduled until the collection of index groups with high priority is completed, and the index groups with the same priority will be scheduled and collected in parallel # The metrics with priority 0 is the availability metrics, that is, it will be scheduled first, and other metricss will continue to be scheduled if the collection is successful, and the scheduling will be interrupted if the collection fails @@ -385,12 +380,12 @@ metrics: > Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! ----- +--- -#### over! +#### over This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! -If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. +If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-http-jsonpath.md b/home/versioned_docs/version-v1.5.x/advanced/extend-http-jsonpath.md index 772c96d20d3..4e12fe86b57 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-http-jsonpath.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-http-jsonpath.md @@ -3,16 +3,18 @@ id: extend-http-jsonpath title: HTTP Protocol JsonPath Parsing Method sidebar_label: JsonPath Parsing Method --- + > After calling the HTTP api to obtain the response data, use JsonPath script parsing method to parse the response data. -Note⚠️ The response data is JSON format. +Note⚠️ The response data is JSON format. + +**Use the JsonPath script to parse the response data into data that conforms to the data structure rules specified by HertzBeat** -**Use the JsonPath script to parse the response data into data that conforms to the data structure rules specified by HertzBeat** +#### JsonPath Operator -#### JsonPath Operator -[JSONPath online verification](https://www.jsonpath.cn) +[JSONPath online verification](https://www.jsonpath.cn) -| JSONPATH | Help description | +| JSONPATH | Help description | |------------------|----------------------------------------------------------------------------------------| | $ | Root object or element | | @ | Current object or element | @@ -25,8 +27,10 @@ Note⚠️ The response data is JSON format. | ?() | Filter (script) expression | | () | Script Expression | -#### HertzBeat data format specification +#### HertzBeat data format specification + Single layer format :key-value + ```json { "metricName1": "metricValue", @@ -35,7 +39,9 @@ Single layer format :key-value "metricName4": "metricValue" } ``` + Multilayer format:Set key value in the array + ```json [ { @@ -55,8 +61,9 @@ Multilayer format:Set key value in the array #### Example -Query the value information of the custom system, and its exposed interface is `/metrics/person`. We need `type,num` Metric. -The raw data returned by the interface is as follows: +Query the value information of the custom system, and its exposed interface is `/metrics/person`. We need `type,num` Metric. +The raw data returned by the interface is as follows: + ```json { "firstName": "John", @@ -80,7 +87,8 @@ The raw data returned by the interface is as follows: } ``` -We use the jsonpath script to parse, and the corresponding script is: `$.number[*]`,The parsed data structure is as follows: +We use the jsonpath script to parse, and the corresponding script is: `$.number[*]`,The parsed data structure is as follows: + ```json [ { @@ -93,9 +101,10 @@ We use the jsonpath script to parse, and the corresponding script is: `$.number[ } ] ``` + This data structure conforms to the data format specification of HertzBeat, and the Metric `type,num` is successfully extracted. -**The corresponding monitoring template yml can be configured as follows** +**The corresponding monitoring template yml can be configured as follows** ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-http.md b/home/versioned_docs/version-v1.5.x/advanced/extend-http.md index 242b63e8cf0..acc006437d3 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-http.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-http.md @@ -1,35 +1,33 @@ --- id: extend-http title: HTTP Protocol Custom Monitoring -sidebar_label: HTTP Protocol Custom Monitoring +sidebar_label: HTTP Protocol Custom Monitoring --- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use HTTP protocol to customize Metric monitoring +> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use HTTP protocol to customize Metric monitoring -### HTTP protocol collection process +### HTTP protocol collection process 【**Call HTTP API**】->【**Response Verification**】->【**Parse Response Data**】->【**Default method parsing|JsonPath script parsing | XmlPath parsing(todo) | Prometheus parsing**】->【**Metric data extraction**】 It can be seen from the process that we define a monitoring type of HTTP protocol. We need to configure HTTP request parameters, configure which Metrics to obtain, and configure the parsing method and parsing script for response data. -HTTP protocol supports us to customize HTTP request path, request header, request parameters, request method, request body, etc. +HTTP protocol supports us to customize HTTP request path, request header, request parameters, request method, request body, etc. -**System default parsing method**:HTTP interface returns the JSON data structure specified by hertzbeat, that is, the default parsing method can be used to parse the data and extract the corresponding Metric data. For details, refer to [**System Default Parsing**](extend-http-default) -**JsonPath script parsing method**:Use JsonPath script to parse the response JSON data, return the data structure specified by the system, and then provide the corresponding Metric data. For details, refer to [**JsonPath Script Parsing**](extend-http-jsonpath) - +**System default parsing method**:HTTP interface returns the JSON data structure specified by hertzbeat, that is, the default parsing method can be used to parse the data and extract the corresponding Metric data. For details, refer to [**System Default Parsing**](extend-http-default) +**JsonPath script parsing method**:Use JsonPath script to parse the response JSON data, return the data structure specified by the system, and then provide the corresponding Metric data. For details, refer to [**JsonPath Script Parsing**](extend-http-jsonpath) -### Custom Steps +### Custom Steps **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** -------- +------- -Configuration usages of the monitoring templates yml are detailed below. Please pay attention to usage annotation. +Configuration usages of the monitoring templates yml are detailed below. Please pay attention to usage annotation. ### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. eg:Define a custom monitoring type `app` named `example_http` which use the HTTP protocol to collect data. diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-jdbc.md b/home/versioned_docs/version-v1.5.x/advanced/extend-jdbc.md index 3527ba60d5d..4a92d94c74f 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-jdbc.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-jdbc.md @@ -1,68 +1,73 @@ --- id: extend-jdbc title: JDBC Protocol Custom Monitoring -sidebar_label: JDBC Protocol Custom Monitoring +sidebar_label: JDBC Protocol Custom Monitoring --- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JDBC(support mysql,mariadb,postgresql,sqlserver at present) to customize Metric monitoring. -> JDBC protocol custom monitoring allows us to easily monitor Metrics we want by writing SQL query statement. -### JDBC protocol collection process -【**System directly connected to MYSQL**】->【**Run SQL query statement**】->【**parse reponse data: oneRow, multiRow, columns**】->【**Metric data extraction**】 +> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JDBC(support mysql,mariadb,postgresql,sqlserver at present) to customize Metric monitoring. +> JDBC protocol custom monitoring allows us to easily monitor Metrics we want by writing SQL query statement. + +### JDBC protocol collection process + +【**System directly connected to MYSQL**】->【**Run SQL query statement**】->【**parse reponse data: oneRow, multiRow, columns**】->【**Metric data extraction**】 It can be seen from the process that we define a monitoring type of JDBC protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query SQL statements. -### Data parsing method +### Data parsing method + We can obtain the corresponding Metric data through the data fields queried by SQL and the Metric mapping we need. At present, there are three mapping parsing methods:oneRow, multiRow, columns. -#### **oneRow** -> Query a row of data, return the column name of the result set through query and map them to the queried field. +#### **oneRow** -eg: +> Query a row of data, return the column name of the result set through query and map them to the queried field. + +eg: queried Metric fields:one two three four query SQL:select one, two, three, four from book limit 1; -Here the Metric field and the response data can be mapped into a row of collected data one by one. +Here the Metric field and the response data can be mapped into a row of collected data one by one. #### **multiRow** -> Query multiple rows of data, return the column names of the result set and map them to the queried fields. -eg: +> Query multiple rows of data, return the column names of the result set and map them to the queried fields. + +eg: queried Metric fields:one two three four query SQL:select one, two, three, four from book; -Here the Metric field and the response data can be mapped into multiple rows of collected data one by one. +Here the Metric field and the response data can be mapped into multiple rows of collected data one by one. #### **columns** -> Collect a row of Metric data. By matching the two columns of queried data (key value), key and the queried field, value is the value of the query field. -eg: -queried fields:one two three four -query SQL:select key, value from book; -SQL response data: +> Collect a row of Metric data. By matching the two columns of queried data (key value), key and the queried field, value is the value of the query field. -| key | value | -|---------|-------| -| one | 243 | -| two | 435 | -| three | 332 | -| four | 643 | +eg: +queried fields:one two three four +query SQL:select key, value from book; +SQL response data: + +| key | value | +|-------|-------| +| one | 243 | +| two | 435 | +| three | 332 | +| four | 643 | Here by mapping the Metric field with the key of the response data, we can obtain the corresponding value as collection and monitoring data. -### Custom Steps +### Custom Steps **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** -------- +------- + Configuration usages of the monitoring templates yml are detailed below. ### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. -eg:Define a custom monitoring type `app` named `example_sql` which use the JDBC protocol to collect data. - +eg:Define a custom monitoring type `app` named `example_sql` which use the JDBC protocol to collect data. ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-jmx.md b/home/versioned_docs/version-v1.5.x/advanced/extend-jmx.md index 5284118f8a7..2110e98dca8 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-jmx.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-jmx.md @@ -1,12 +1,14 @@ --- id: extend-jmx title: JMX Protocol Custom Monitoring -sidebar_label: JMX Protocol Custom Monitoring +sidebar_label: JMX Protocol Custom Monitoring --- + > From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use JMX to customize Metric monitoring. > JMX protocol custom monitoring allows us to easily monitor Metrics we want by config JMX Mbeans Object. ### JMX protocol collection process + 【**Peer Server Enable Jmx Service**】->【**HertzBeat Connect Peer Server Jmx**】->【**Query Jmx Mbean Object Data**】->【**Metric data extraction**】 It can be seen from the process that we define a monitoring type of JMX protocol. We need to configure JMX request parameters, configure which Metrics to obtain, and configure Mbeans Object. @@ -15,25 +17,24 @@ It can be seen from the process that we define a monitoring type of JMX protocol By configuring the monitoring template YML metrics `field`, `aliasFields`, `objectName` of the `jmx` protocol to map and parse the `Mbean` object information exposed by the peer system. -### Custom Steps +### Custom Steps **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** ![](/img/docs/advanced/extend-point-1.png) -------- +------- + Configuration usages of the monitoring templates yml are detailed below. ### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. eg:Define a custom monitoring type `app` named `example_jvm` which use the JVM protocol to collect data. - ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring category: service diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-ngql.md b/home/versioned_docs/version-v1.5.x/advanced/extend-ngql.md index c07c5ae8ca0..65c5fb0c69b 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-ngql.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-ngql.md @@ -21,22 +21,25 @@ Mapping the fields returned by NGQL queries to the metrics we need allows us to > `filterValue`: filter attribute value (optional) For example: + - online_meta_count#SHOW HOSTS META#Status#ONLINE - Counts the number of rows returned by `SHOW HOSTS META` where Status equals ONLINE. +Counts the number of rows returned by `SHOW HOSTS META` where Status equals ONLINE. - online_meta_count#SHOW HOSTS META## - Counts the number of rows returned by `SHOW HOSTS META`. +Counts the number of rows returned by `SHOW HOSTS META`. #### **oneRow** > Queries a single row of data by mapping the column names of the query result set to the queried fields. For example: + - Metrics fields: a, b - NGQL query: match (v:metrics) return v.metrics.a as a, v.metrics.b as b; Here, the metric fields can be mapped to the response data row by row. Notes: + - When using the `oneRow` method, if a single query statement returns multiple rows of results, only the first row of results will be mapped to the metric fields. - When the `commands` field contains two or more query statements and the returned fields of multiple query statements are the same, the fields returned by the subsequent statement will overwrite those returned by the previous statement. - It is recommended to use the limit statement to limit the number of rows returned in the result set when defining `commands`. @@ -46,11 +49,13 @@ Notes: > Queries multiple rows of data by mapping the column names of the query result set to the queried fields. For example: + - Metrics fields: a, b - NGQL query: match (v:metrics) return v.metrics.a as a, v.metrics.b as b; Here, the metric fields can be mapped to the response data row by row. Notes: + - When using the `multiRow` method, the `commands` field can only contain one query statement. #### **columns** @@ -58,6 +63,7 @@ Notes: > Collects a single row of metric data by mapping two columns of data (key-value), where the key matches the queried fields and the value is the value of the queried field. Notes: + - When using the `columns` method, the first two columns of the result set are mapped to collect data by default, where the first column corresponds to the metric name and the second column corresponds to the metric value. - When the `commands` field contains two or more query statements and the first column of data returned by multiple query statements is duplicated, the result of the last statement will be retained. @@ -67,13 +73,14 @@ Notes: ![HertzBeat Page](/img/docs/advanced/extend-point-1.png) -------- +------- + Configuration usages of the monitoring templates yml are detailed below. ### Monitoring Template YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. -> Monitoring template is used to define the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information, etc. +> Monitoring template is used to define the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information, etc. eg: Customize a monitoring type named example_ngql, which collects metric data using NGQL. diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-point.md b/home/versioned_docs/version-v1.5.x/advanced/extend-point.md index eba1811e4fc..3f02f6040f4 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-point.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-point.md @@ -1,31 +1,29 @@ --- id: extend-point title: Custom Monitoring -sidebar_label: Custom Monitoring +sidebar_label: Custom Monitoring --- -> HertzBeat has custom monitoring ability. You only need to configure monitoring template yml to fit a custom monitoring type. -> Custom monitoring currently supports [HTTP protocol](extend-http),[JDBC protocol](extend-jdbc), [SSH protocol](extend-ssh), [JMX protocol](extend-jmx), [SNMP protocol](extend-snmp). And it will support more general protocols in the future. -### Custom Monitoring Steps +> HertzBeat has custom monitoring ability. You only need to configure monitoring template yml to fit a custom monitoring type. +> Custom monitoring currently supports [HTTP protocol](extend-http),[JDBC protocol](extend-jdbc), [SSH protocol](extend-ssh), [JMX protocol](extend-jmx), [SNMP protocol](extend-snmp). And it will support more general protocols in the future. -**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** +### Custom Monitoring Steps +**HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** -------- +------- Configuration usages of the monitoring templates yml are detailed below. -### Monitoring Templates YML +### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. +> +> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. +eg:Define a custom monitoring type `app` named `example2` which use the HTTP protocol to collect data. -> Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - -eg:Define a custom monitoring type `app` named `example2` which use the HTTP protocol to collect data. - -**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** - +**Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-snmp.md b/home/versioned_docs/version-v1.5.x/advanced/extend-snmp.md index c97aea1f766..3dae2b8b6dd 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-snmp.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-snmp.md @@ -1,42 +1,40 @@ --- id: extend-snmp title: SNMP Protocol Custom Monitoring -sidebar_label: SNMP Protocol Custom Monitoring +sidebar_label: SNMP Protocol Custom Monitoring --- > From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SNMP to customize Metric monitoring. > JMX protocol custom monitoring allows us to easily monitor Metrics we want by config SNMP MIB OIDs. ### SNMP protocol collection process + 【**Peer Server Enable SNMP Service**】->【**HertzBeat Connect Peer Server SNMP**】->【**Query Oids Data**】->【**Metric data extraction**】 It can be seen from the process that we define a monitoring type of Snmp protocol. We need to configure Snmp request parameters, configure which Metrics to obtain, and configure oids. - ### Data parsing method By configuring the metrics `field`, `aliasFields`, and `oids` under the `snmp` protocol of the monitoring template YML to capture the data specified by the peer and parse the mapping. - ### Custom Steps **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** ![](/img/docs/advanced/extend-point-1.png) -------- +------- + Configuration usages of the monitoring templates yml are detailed below. ### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. eg:Define a custom monitoring type `app` named `example_windows` which use the SNMP protocol to collect data. - ```yaml # The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring category: os diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-ssh.md b/home/versioned_docs/version-v1.5.x/advanced/extend-ssh.md index 772ee315207..a4dc46d1dc1 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-ssh.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-ssh.md @@ -1,53 +1,63 @@ --- id: extend-ssh title: SSH Protocol Custom Monitoring -sidebar_label: SSH Protocol Custom Monitoring +sidebar_label: SSH Protocol Custom Monitoring --- -> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SSH protocol to customize Metric monitoring. -> SSH protocol custom monitoring allows us to easily monitor and collect the Linux Metrics we want by writing sh command script. -### SSH protocol collection process -【**System directly connected to Linux**】->【**Run shell command script statement**】->【**parse response data: oneRow, multiRow**】->【**Metric data extraction**】 +> From [Custom Monitoring](extend-point), you are familiar with how to customize types, Metrics, protocols, etc. Here we will introduce in detail how to use SSH protocol to customize Metric monitoring. +> SSH protocol custom monitoring allows us to easily monitor and collect the Linux Metrics we want by writing sh command script. + +### SSH protocol collection process + +【**System directly connected to Linux**】->【**Run shell command script statement**】->【**parse response data: oneRow, multiRow**】->【**Metric data extraction**】 It can be seen from the process that we define a monitoring type of SSH protocol. We need to configure SSH request parameters, configure which Metrics to obtain, and configure query script statements. -### Data parsing method +### Data parsing method + We can obtain the corresponding Metric data through the data fields queried by the SHELL script and the Metric mapping we need. At present, there are two mapping parsing methods:oneRow and multiRow which can meet the needs of most Metrics. -#### **oneRow** -> Query out a column of data, return the field value (one value per row) of the result set through query and map them to the field. +#### **oneRow** -eg: -Metrics of Linux to be queried hostname-host name,uptime-start time -Host name original query command:`hostname` -Start time original query command:`uptime | awk -F "," '{print $1}'` -Then the query script of the two Metrics in hertzbeat is(Use `;` Connect them together): -`hostname; uptime | awk -F "," '{print $1}'` -The data responded by the terminal is: -``` +> Query out a column of data, return the field value (one value per row) of the result set through query and map them to the field. + +eg: +Metrics of Linux to be queried hostname-host name,uptime-start time +Host name original query command:`hostname` +Start time original query command:`uptime | awk -F "," '{print $1}'` +Then the query script of the two Metrics in hertzbeat is(Use `;` Connect them together): +`hostname; uptime | awk -F "," '{print $1}'` +The data responded by the terminal is: + +```text tombook 14:00:15 up 72 days -``` -At last collected Metric data is mapped one by one as: -hostname is `tombook` -uptime is `14:00:15 up 72 days` +``` + +At last collected Metric data is mapped one by one as: +hostname is `tombook` +uptime is `14:00:15 up 72 days` -Here the Metric field and the response data can be mapped into a row of collected data one by one +Here the Metric field and the response data can be mapped into a row of collected data one by one #### **multiRow** -> Query multiple rows of data, return the column names of the result set through the query, and map them to the Metric field of the query. -eg: -Linux memory related Metric fields queried:total-Total memory, used-Used memory,free-Free memory, buff-cache-Cache size, available-Available memory -Memory metrics original query command:`free -m`, Console response: +> Query multiple rows of data, return the column names of the result set through the query, and map them to the Metric field of the query. + +eg: +Linux memory related Metric fields queried:total-Total memory, used-Used memory,free-Free memory, buff-cache-Cache size, available-Available memory +Memory metrics original query command:`free -m`, Console response: + ```shell total used free shared buff/cache available Mem: 7962 4065 333 1 3562 3593 Swap: 8191 33 8158 ``` + In hertzbeat multiRow format parsing requires a one-to-one mapping between the column name of the response data and the indicaotr value, so the corresponding query SHELL script is: -`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` -Console response is: +`free -m | grep Mem | awk 'BEGIN{print "total used free buff_cache available"} {print $2,$3,$4,$6,$7}'` +Console response is: + ```shell total used free buff_cache available 7962 4066 331 3564 3592 @@ -59,19 +69,18 @@ Here the Metric field and the response data can be mapped into collected data on **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** -------- +------- + Configuration usages of the monitoring templates yml are detailed below. ### Monitoring Templates YML > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. eg:Define a custom monitoring type `app` named `example_linux` which use the SSH protocol to collect data. - ```yaml # The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring category: os diff --git a/home/versioned_docs/version-v1.5.x/advanced/extend-tutorial.md b/home/versioned_docs/version-v1.5.x/advanced/extend-tutorial.md index 9f21219a29f..fbf4f6ea743 100644 --- a/home/versioned_docs/version-v1.5.x/advanced/extend-tutorial.md +++ b/home/versioned_docs/version-v1.5.x/advanced/extend-tutorial.md @@ -8,13 +8,11 @@ Through this tutorial, we describe step by step how to customize and adapt a mon Before reading this tutorial, we hope that you are familiar with how to customize types, metrics, protocols, etc. from [Custom Monitoring](extend-point) and [Http Protocol Customization](extend-http). - ### HTTP protocol parses the general response structure to obtain metrics data > In many scenarios, we need to monitor the provided HTTP API interface and obtain the index value returned by the interface. In this article, we use the http custom protocol to parse our common http interface response structure, and obtain the fields in the returned body as metric data. - -``` +```json { "code": 200, "msg": "success", @@ -22,10 +20,11 @@ Before reading this tutorial, we hope that you are familiar with how to customiz } ``` + As above, usually our background API interface will design such a general return. The same is true for the background of the hertzbeat system. Today, we will use the hertzbeat API as an example, add a new monitoring type **hertzbeat**, and monitor and collect its system summary statistics API `http://localhost:1157/api/summary`, the response data is: -``` +```json { "msg": null, "code": 0, @@ -56,19 +55,16 @@ As above, usually our background API interface will design such a general return } ``` -**This time we get the metrics data such as `category`, `app`, `status`, `size`, `availableSize` under the app. ** - +**This time we get the metrics data such as `category`, `app`, `status`, `size`, `availableSize` under the app.** ### Add Monitoring Template Yml **HertzBeat Dashboard** -> **Monitoring Templates** -> **New Template** -> **Config Monitoring Template Yml** -> **Save and Apply** -> **Add A Monitoring with The New Monitoring Type** > We define all monitoring collection types (mysql,jvm,k8s) as yml monitoring templates, and users can import these templates to support corresponding types of monitoring. - - +> > Monitoring template is used to define *the name of monitoring type(international), request parameter mapping, index information, collection protocol configuration information*, etc. - Here we define a custom monitoring type `app` named `hertzbeat` which use the HTTP protocol to collect data. **Monitoring Templates** -> **Config New Monitoring Template Yml** -> **Save and Apply** @@ -197,40 +193,32 @@ metrics: parseScript: '$.data.apps.*' ``` -**The addition is complete, now we restart the hertzbeat system. We can see that the system page has added a `hertzbeat` monitoring type. ** - +**The addition is complete, now we restart the hertzbeat system. We can see that the system page has added a `hertzbeat` monitoring type.** ![](/img/docs/advanced/extend-http-example-1.png) - ### The system page adds the monitoring of `hertzbeat` monitoring type > We click Add `HertzBeat Monitoring Tool`, configure monitoring IP, port, collection cycle, account password in advanced settings, etc., click OK to add monitoring. - ![](/img/docs/advanced/extend-http-example-2.png) - ![](/img/docs/advanced/extend-http-example-3.png) > After a certain period of time (depending on the collection cycle), we can see the specific metric data and historical charts in the monitoring details! - ![](/img/docs/advanced/extend-http-example-4.png) - - ### Set threshold alarm notification > Next, we can set the threshold normally. After the alarm is triggered, we can view it in the alarm center, add a new recipient, set alarm notification, etc. Have Fun!!! - ---- -#### over! +#### over This is the end of the practice of custom monitoring of the HTTP protocol. The HTTP protocol also has other parameters such as headers and params. We can define it like postman, and the playability is also very high! If you think hertzbeat is a good open source project, please star us on GitHub Gitee, thank you very much. Thanks for the old iron support. Refill! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/versioned_docs/version-v1.5.x/community/become_committer.md b/home/versioned_docs/version-v1.5.x/community/become_committer.md index f2824bdc4ed..11d0c660b13 100644 --- a/home/versioned_docs/version-v1.5.x/community/become_committer.md +++ b/home/versioned_docs/version-v1.5.x/community/become_committer.md @@ -5,20 +5,20 @@ sidebar_position: 2 --- ## Become A Committer of Apache HertzBeat @@ -44,7 +44,7 @@ you must commit code with your commit privilege to the codebase; it means you are committed to the HertzBeat project and are productively contributing to our community's success. -## Committer requirements: +## Committer requirements There are no strict rules for becoming a committer or PPMC member. Candidates for new committers are typically people that are active @@ -66,6 +66,7 @@ of the main website or HertzBeat's GitHub repositories. - +1 month with solid activity and engagement. ### Quality of contributions + - A solid general understanding of the project - Well tested, well-designed, following Apache HertzBeat coding standards, and simple patches. diff --git a/home/versioned_docs/version-v1.5.x/community/become_pmc_member.md b/home/versioned_docs/version-v1.5.x/community/become_pmc_member.md index cf48cbe7c82..70aa00575dd 100644 --- a/home/versioned_docs/version-v1.5.x/community/become_pmc_member.md +++ b/home/versioned_docs/version-v1.5.x/community/become_pmc_member.md @@ -5,20 +5,20 @@ sidebar_position: 3 --- ## Become A PMC member of Apache HertzBeat @@ -44,7 +44,7 @@ you must commit code with your commit privilege to the codebase; it means you are committed to the HertzBeat project and are productively contributing to our community's success. -## PMC member requirements: +## PMC member requirements There are no strict rules for becoming a committer or PPMC member. Candidates for new PMC member are typically people that are active @@ -66,6 +66,7 @@ of the main website or HertzBeat's GitHub repositories. - +3 month with solid activity and engagement. ### Quality of contributions + - A solid general understanding of the project - Well tested, well-designed, following Apache HertzBeat coding standards, and simple patches. diff --git a/home/versioned_docs/version-v1.5.x/community/code-style-and-quality-guide.md b/home/versioned_docs/version-v1.5.x/community/code-style-and-quality-guide.md index 755a98f3fd7..ef27d0d5f21 100644 --- a/home/versioned_docs/version-v1.5.x/community/code-style-and-quality-guide.md +++ b/home/versioned_docs/version-v1.5.x/community/code-style-and-quality-guide.md @@ -5,39 +5,36 @@ sidebar_position: 3 --- - ## 1 Pull Requests & Changes Rule 1. `ISSUE`/`PR`(pull request) driving and naming - - After creating a new `PR`, you need to associate the existing corresponding `ISSUE` at the Github Development button on the `PR` page (if there is no corresponding ISSUE, it is recommended to create a new corresponding ISSUE). + - After creating a new `PR`, you need to associate the existing corresponding `ISSUE` at the Github Development button on the `PR` page (if there is no corresponding ISSUE, it is recommended to create a new corresponding ISSUE). - - Title naming format - `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` + - Title naming format + `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` 2. Description - - Please fill in the `PR` template to describe the contribution. So that the reviewer can understand the problem and solution from the description, rather than just from the code. - - Check the CheckList - + - Please fill in the `PR` template to describe the contribution. So that the reviewer can understand the problem and solution from the description, rather than just from the code. + - Check the CheckList 3. It's recommended that `PR` should be arranged changes such as `cleanup`, `Refactor`, `improve`, and `feature` into separated `PRs`/`Commits`. - 4. Commit message(English, lowercase, no special characters) The commit of messages should follow a pattern similar to the `[feature/bugfix/doc/improve/refactor/bug/cleanup] title` @@ -50,11 +47,11 @@ sidebar_position: 3 3. Set **Checkstyle version** to **10.14.2**. 4. Set **Scan scope** to **Only Java sources (including tests)**. 5. Click **+** button in the **Configuration** section to open a dialog to choose the checkstyle config file. - 1. Enter a **Description**. For example, hertzbeat. - 2. Select **Use a local checkstyle file**. - 3. Set **File** to **script/checkstyle/checkstyle.xml**. - 4. Select **Store relative to project location**. - 5. Click **Next** → **Next** → **Finish**. + 1. Enter a **Description**. For example, hertzbeat. + 2. Select **Use a local checkstyle file**. + 3. Set **File** to **script/checkstyle/checkstyle.xml**. + 4. Select **Store relative to project location**. + 5. Click **Next** → **Next** → **Finish**. 6. Activate the configuration you just added by toggling the corresponding box. 7. Click **OK**. @@ -69,96 +66,98 @@ sidebar_position: 3 ### 3.1 Naming Style 1. Prioritize selecting nouns for variable naming, it's easier to distinguish between `variables` or `methods`. + ```java - Cache publicKeyCache; + Cache publicKeyCache; ``` 2. Pinyin abbreviations are prohibited for variables (excluding nouns such as place names), such as chengdu. - 3. It is recommended to end variable names with a `type`. For variables of type `Collection/List`, take `xxxx` (plural representing multiple elements) or end with `xxxList` (specific type). For variables of type `map`, describe the `key` and `value` clearly: + ```java - Map idUserMap; - Map userIdNameMap; + Map idUserMap; + Map userIdNameMap; ``` 4. That can intuitively know the type and meaning of the variable through its name. Method names should start with a verb first as follows: + ```java - void computeVcores(Object parameter1); + void computeVcores(Object parameter1); ``` + > Note: It is not necessary to strictly follow this rule in the `Builder` tool class. - ### 3.2 Constant Variables Definition -1. Redundant strings should be extracted as constants - >If a constant has been hardcoded twice or more times, please directly extract it as a constant and change the corresponding reference. - In generally, constants in `log` can be ignored to extract. - - - Negative demo: - - ```java - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put("status", "success"); - resp.put("code", ResponseCode.CODE_SUCCESS); - resp.put("data", data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put("status", "error"); - resp.put("code", ResponseCode.CODE_FAIL); - resp.put("data", null); - return resp; - } - ``` - - - Positive demo: - - > Strings are extracted as constant references. - - ```java - public static final String STATUS = "status"; - public static final String CODE = "code"; - public static final String DATA = "data"; - - public static RestResponse success(Object data) { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "success"); - resp.put(CODE, ResponseCode.CODE_SUCCESS); - resp.put(DATA, data); - return resp; - } - - public static RestResponse error() { - RestResponse resp = new RestResponse(); - resp.put(STATUS, "error"); - resp.put(CODE, ResponseCode.CODE_FAIL); - resp.put(DATA, null); - return resp; - } - ``` +1. Redundant strings should be extracted as constants + + > If a constant has been hardcoded twice or more times, please directly extract it as a constant and change the corresponding reference. + > In generally, constants in `log` can be ignored to extract. + + - Negative demo: + + ```java + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put("status", "success"); + resp.put("code", ResponseCode.CODE_SUCCESS); + resp.put("data", data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put("status", "error"); + resp.put("code", ResponseCode.CODE_FAIL); + resp.put("data", null); + return resp; + } + ``` + + - Positive demo: + + > Strings are extracted as constant references. + + ```java + public static final String STATUS = "status"; + public static final String CODE = "code"; + public static final String DATA = "data"; + + public static RestResponse success(Object data) { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "success"); + resp.put(CODE, ResponseCode.CODE_SUCCESS); + resp.put(DATA, data); + return resp; + } + + public static RestResponse error() { + RestResponse resp = new RestResponse(); + resp.put(STATUS, "error"); + resp.put(CODE, ResponseCode.CODE_FAIL); + resp.put(DATA, null); + return resp; + } + ``` 2. Ensure code readability and intuitiveness - - The string in the `annotation` symbol doesn't need to be extracted as constant. + - The string in the `annotation` symbol doesn't need to be extracted as constant. - - The referenced `package` or `resource` name doesn't need to be extracted as constant. + - The referenced `package` or `resource` name doesn't need to be extracted as constant. 3. Variables that have not been reassigned must also be declared as final types. -4. About the arrangement order of `constant/variable` lines +4. About the arrangement order of `constant/variable` lines Sort the variable lines in the class in the order of 1. `public static final V`, `static final V`,`protected static final V`, `private static final V` 2. `public static v`, `static v`,`protected static v`, `private static v` 3. `public v`, `v`, `protected v`, `private v` - ### 3.3 Methods Rule 1. Sort the methods in the class in the order of `public`, `protected`, `private` @@ -174,9 +173,9 @@ sidebar_position: 3 3. If there are too many lines of code in the method, please have a try on using multiple sub methods at appropriate points to segment the method body. Generally speaking, it needs to adhere to the following principles: - - Convenient testing - - Good semantics - - Easy to read + - Convenient testing + - Good semantics + - Easy to read In addition, it is also necessary to consider whether the splitting is reasonable in terms of components, logic, abstraction, and other aspects in the scenario. @@ -185,35 +184,32 @@ sidebar_position: 3 ### 3.4 Collection Rule 1. For `collection` returned values, unless there are special `concurrent` (such as thread safety), always return the `interface`, such as: - - - returns List if use `ArrayList` - - returns Map if use `HashMap` - - returns Set if use `HashSet` - + - returns List if use `ArrayList` + - returns Map if use `HashMap` + - returns Set if use `HashSet` 2. If there are multiple threads, the following declaration or returned types can be used: - ```java + ```java private CurrentHashMap map; public CurrentHashMap funName(); - ``` + ``` 3. Use `isEmpty()` instead of `length() == 0` or `size() == 0` + - Negative demo: - - Negative demo: - - ```java - if (pathPart.length() == 0) { - return; - } - ``` + ```java + if (pathPart.length() == 0) { + return; + } + ``` - - Positive demo: + - Positive demo: - ```java - if (pathPart.isEmpty()) { - return; - } - ``` + ```java + if (pathPart.isEmpty()) { + return; + } + ``` ### 3.5 Concurrent Processing @@ -226,87 +222,99 @@ sidebar_position: 3 ### 3.6 Control/Condition Statements 1. Avoid unreasonable `condition/control` branches order leads to: + - Multiple code line `depths` of `n+1` + - Redundant lines + + Generally speaking, if a method's code line depth exceeds `2+ Tabs` due to continuous nested `if... else..`, it should be considered to try - - Multiple code line `depths` of `n+1` - - Redundant lines + - `merging branches`, + - `inverting branch conditions` + - `extracting private methods` -Generally speaking, if a method's code line depth exceeds `2+ Tabs` due to continuous nested `if... else..`, it should be considered to try -- `merging branches`, -- `inverting branch conditions` -- `extracting private methods` + to reduce code line depth and improve readability like follows: -to reduce code line depth and improve readability like follows: -- Union or merge the logic into the next level calling - - Negative demo: - ```java + - Union or merge the logic into the next level calling + - Negative demo: + + ```java if (isInsert) { - save(platform); + save(platform); } else { - updateById(platform); + updateById(platform); } - ``` - - Positive demo: - ```java - saveOrUpdate(platform); - ``` -- Merge the conditions - - Negative demo: - ```java - if (expression1) { - if(expression2) { - ...... - } - } - ``` - - Positive demo: - ```java - if (expression1 && expression2) { - ...... - } - ``` -- Reverse the condition - - Negative demo: + ``` + + - Positive demo: ```java - public void doSomething() { - // Ignored more deeper block lines - // ..... - if (condition1) { - ... - } else { - ... - } - } + saveOrUpdate(platform); ``` - - Positive demo: - - ```java - public void doSomething() { - // Ignored more deeper block lines - // ..... - if (!condition1) { - ... - return; - } - // ... - } - ``` -- Using a single variable or method to reduce the complex conditional expression - - Negative demo: + - Merge the conditions + - Negative demo: + + ```java + if (expression1) { + if(expression2) { + // ...... + } + } + ``` + + - Positive demo: + + ```java + if (expression1 && expression2) { + // ...... + } + ``` + + - Reverse the condition + - Negative demo: + + ```java + public void doSomething() { + // Ignored more deeper block lines + // ..... + if (condition1) { + // ... + } else { + // ... + } + } + ``` + + - Positive demo: + + ```java + public void doSomething() { + // Ignored more deeper block lines + // ..... + if (!condition1) { + // ... + return; + } + // ... + } + ``` + + - Using a single variable or method to reduce the complex conditional expression + - Negative demo: + ```java - if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { - ... - } + if (dbType.indexOf("sqlserver") >= 0 || dbType.indexOf("sql server") >= 0) { + // ... + } ``` - - Positive demo: + - Positive demo: + ```java - if (containsSqlServer(dbType)) { - .... - } - //..... - // definition of the containsSqlServer + if (containsSqlServer(dbType)) { + // .... + } + //..... + // definition of the containsSqlServer ``` > Using `sonarlint` and `better highlights` to check code depth looks like good in the future. @@ -315,22 +323,22 @@ to reduce code line depth and improve readability like follows: 1. Method lacks comments: - - `When`: When can the method be called - - `How`: How to use this method and how to pass parameters, etc. - - `What`: What functions does this method achieve - - `Note`: What should developers pay attention to when calling this method + - `When`: When can the method be called + - `How`: How to use this method and how to pass parameters, etc. + - `What`: What functions does this method achieve + - `Note`: What should developers pay attention to when calling this method 2. Missing necessary class header description comments. - Add `What`, `Note`, etc. like mentioned in the `1`. + Add `What`, `Note`, etc. like mentioned in the `1`. 3. The method declaration in the interface must be annotated. - - If the semantics of the implementation and the annotation content at the interface declaration are inconsistent, the specific implementation method also needs to be rewritten with annotations. + - If the semantics of the implementation and the annotation content at the interface declaration are inconsistent, the specific implementation method also needs to be rewritten with annotations. - - If the semantics of the method implementation are consistent with the annotation content at the interface declaration, it is not recommended to write annotations to avoid duplicate annotations. + - If the semantics of the method implementation are consistent with the annotation content at the interface declaration, it is not recommended to write annotations to avoid duplicate annotations. -4. The first word in the comment lines need to be capitalized, like `param` lines, `return` lines. +4. The first word in the comment lines need to be capitalized, like `param` lines, `return` lines. If a special reference as a subject does not need to be capitalized, special symbols such as quotation marks need to be noted. ### 3.8 Java Lambdas @@ -338,31 +346,31 @@ to reduce code line depth and improve readability like follows: 1. Prefer `non-capturing` lambdas (lambdas that do not contain references to the outer scope). Capturing lambdas need to create a new object instance for every call. `Non-capturing` lambdas can use the same instance for each invocation. - - Negative demo: + - Negative demo: - ```java - map.computeIfAbsent(key, x -> key.toLowerCase()) - ``` + ```java + map.computeIfAbsent(key, x -> key.toLowerCase()) + ``` - - Positive demo: + - Positive demo: - ```java - map.computeIfAbsent(key, k -> k.toLowerCase()); - ``` + ```java + map.computeIfAbsent(key, k -> k.toLowerCase()); + ``` 2. Consider method references instead of inline lambdas - - Negative demo: + - Negative demo: - ```java - map.computeIfAbsent(key, k-> Loader.load(k)); - ``` + ```java + map.computeIfAbsent(key, k-> Loader.load(k)); + ``` - - Positive demo: + - Positive demo: - ```java - map.computeIfAbsent(key, Loader::load); - ``` + ```java + map.computeIfAbsent(key, Loader::load); + ``` ### 3.9 Java Streams @@ -381,15 +389,15 @@ to reduce code line depth and improve readability like follows: 1. Use `StringUtils.isBlank` instead of `StringUtils.isEmpty` - Negative demo: - - ```java - if (StringUtils.isEmpty(name)) { + + ```java + if (StringUtils.isEmpty(name)) { return; - } - ``` - + } + ``` + - Positive demo: - + ```java if (StringUtils.isBlank(name)) { return; @@ -399,15 +407,15 @@ to reduce code line depth and improve readability like follows: 2. Use `StringUtils.isNotBlank` instead of `StringUtils.isNotEmpty` - Negative demo: - - ```java - if (StringUtils.isNotEmpty(name)) { - return; - } - ``` - + + ```java + if (StringUtils.isNotEmpty(name)) { + return; + } + ``` + - Positive demo: - + ```java if (StringUtils.isNotBlank(name)) { return; @@ -417,15 +425,15 @@ to reduce code line depth and improve readability like follows: 3. Use `StringUtils.isAllBlank` instead of `StringUtils.isAllEmpty` - Negative demo: - - ```java - if (StringUtils.isAllEmpty(name, age)) { - return; - } - ``` - + + ```java + if (StringUtils.isAllEmpty(name, age)) { + return; + } + ``` + - Positive demo: - + ```java if (StringUtils.isAllBlank(name, age)) { return; @@ -437,15 +445,15 @@ to reduce code line depth and improve readability like follows: 1. Enumeration value comparison - Negative demo: - - ```java - if (status.equals(JobStatus.RUNNING)) { - return; - } - ``` - + + ```java + if (status.equals(JobStatus.RUNNING)) { + return; + } + ``` + - Positive demo: - + ```java if (status == JobStatus.RUNNING) { return; @@ -455,15 +463,15 @@ to reduce code line depth and improve readability like follows: 2. Enumeration classes do not need to implement Serializable - Negative demo: - - ```java - public enum JobStatus implements Serializable { - ... - } - ``` - + + ```java + public enum JobStatus implements Serializable { + ... + } + ``` + - Positive demo: - + ```java public enum JobStatus { ... @@ -473,13 +481,13 @@ to reduce code line depth and improve readability like follows: 3. Use `Enum.name()` instead of `Enum.toString()` - Negative demo: - - ```java - System.out.println(JobStatus.RUNNING.toString()); - ``` - + + ```java + System.out.println(JobStatus.RUNNING.toString()); + ``` + - Positive demo: - + ```java System.out.println(JobStatus.RUNNING.name()); ``` @@ -487,79 +495,82 @@ to reduce code line depth and improve readability like follows: 4. Enumeration class names uniformly use the Enum suffix - Negative demo: - - ```java - public enum JobStatus { - ... - } - ``` - + + ```java + public enum JobStatus { + // ... + } + ``` + - Positive demo: - + ```java public enum JobStatusEnum { - ... + // ... } ``` ### 3.13 `Deprecated` Annotation - - Negative demo: +- Negative demo: - ```java - @deprecated - public void process(String input) { - ... - } - ``` +```java +@deprecated +public void process(String input) { + // ... +} +``` - - Positive demo: +- Positive demo: - ```java - @Deprecated - public void process(String input) { - ... - } - ``` +```java +@Deprecated +public void process(String input) { + // ... +} +``` ## 4 Log 1. Use `placeholders` for log output: - - Negative demo - ```java - log.info("Deploy cluster request " + deployRequest); - ``` - - Positive demo - ```java - log.info("load plugin:{} to {}", file.getName(), appPlugins); - ``` + - Negative demo + + ```java + log.info("Deploy cluster request " + deployRequest); + ``` + + - Positive demo + + ```java + log.info("load plugin:{} to {}", file.getName(), appPlugins); + ``` 2. Pay attention to the selection of `log level` when printing logs - When printing the log content, if the actual parameters of the log placeholder are passed, it is necessary to avoid premature evaluation to avoid unnecessary evaluation caused by the log level. + When printing the log content, if the actual parameters of the log placeholder are passed, it is necessary to avoid premature evaluation to avoid unnecessary evaluation caused by the log level. - - Negative demo: + - Negative demo: - Assuming the current log level is `INFO`: + Assuming the current log level is `INFO`: - ```java - // ignored declaration lines. - List userList = getUsersByBatch(1000); - LOG.debug("All users: {}", getAllUserIds(userList)); - ``` + ```java + // ignored declaration lines. + List userList = getUsersByBatch(1000); + LOG.debug("All users: {}", getAllUserIds(userList)); + ``` - - Positive demo: + - Positive demo: - In this case, we should determine the log level in advance before making actual log calls as follows: + In this case, we should determine the log level in advance before making actual log calls as follows: - ```java - // ignored declaration lines. - List userList = getUsersByBatch(1000); - if (LOG.isDebugEnabled()) { - LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); - } - ``` + ```java + // ignored declaration lines. + List userList = getUsersByBatch(1000); + if (LOG.isDebugEnabled()) { + LOG.debug("All ids of users: {}", getAllIDsOfUsers(userList)); + } + ``` ## 5 Testing @@ -568,8 +579,9 @@ to reduce code line depth and improve readability like follows: 2. The implemented interface needs to write the `e2e` test case script under the `e2e` module. ## References -- https://site.mockito.org/ -- https://alibaba.github.io/p3c/ -- https://rules.sonarsource.com/java/ -- https://junit.org/junit5/ -- https://streampark.apache.org/ + +- +- +- +- +- diff --git a/home/versioned_docs/version-v1.5.x/community/contact.md b/home/versioned_docs/version-v1.5.x/community/contact.md index c5b348343f1..decd6d27c8c 100644 --- a/home/versioned_docs/version-v1.5.x/community/contact.md +++ b/home/versioned_docs/version-v1.5.x/community/contact.md @@ -1,7 +1,7 @@ --- id: contact title: Join discussion -sidebar_label: Discussion +sidebar_label: Discussion --- > If you need any help or want to exchange suggestions during the use process, you can discuss and exchange through ISSUE or Github Discussion. @@ -10,7 +10,7 @@ sidebar_label: Discussion [Chat On Discord](https://discord.gg/Fb6M73htGr) -WeChat Group : Add friend `tan-cloud` and invite to the group. +WeChat Group : Add friend `ahertzbeat` and invite to the group. WeChat Public : Search ID `usthecom`. diff --git a/home/versioned_docs/version-v1.5.x/community/contribution.md b/home/versioned_docs/version-v1.5.x/community/contribution.md index d433135176d..fcbd25ceffa 100644 --- a/home/versioned_docs/version-v1.5.x/community/contribution.md +++ b/home/versioned_docs/version-v1.5.x/community/contribution.md @@ -5,20 +5,20 @@ sidebar_position: 0 --- > We are committed to maintaining a happy community that helps each other, welcome every contributor to join us! @@ -47,10 +47,9 @@ Even small corrections to typos are very welcome :) ### Getting HertzBeat up and running -> To get HertzBeat code running on your development tools, and able to debug with breakpoints. +> To get HertzBeat code running on your development tools, and able to debug with breakpoints. > This is a front-end and back-end separation project. To start the local code, the back-end manager and the front-end web-app must be started separately. - #### Backend start 1. Requires `maven3+`, `java17` and `lombok` environments @@ -88,23 +87,31 @@ Of course, if you have a good idea, you can also propose it directly on GitHub D 1. First you need to fork your target [hertzbeat repository](https://github.com/apache/hertzbeat). 2. Then download the code locally with git command: -```shell -git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended -``` + + ```shell + git clone git@github.com:${YOUR_USERNAME}/hertzbeat.git #Recommended + ``` + 3. After the download is complete, please refer to the getting started guide or README file of the target repository to initialize the project. 4. Then, you can refer to the following command to submit the code: -```shell -git checkout -b a-feature-branch #Recommended -``` + + ```shell + git checkout -b a-feature-branch #Recommended + ``` + 5. Submit the coed as a commit, the commit message format specification required: [module name or type name]feature or bugfix or doc: custom message. -```shell -git add -git commit -m '[docs]feature: necessary instructions' #Recommended -``` + + ```shell + git add + git commit -m '[docs]feature: necessary instructions' #Recommended + ``` + 6. Push to the remote repository -```shell -git push origin a-feature-branch -``` + + ```shell + git push origin a-feature-branch + ``` + 7. Then you can initiate a new PR (Pull Request) on GitHub. Please note that the title of the PR needs to conform to our spec, and write the necessary description in the PR to facilitate code review by Committers and other contributors. @@ -137,6 +144,7 @@ git pull upstream master ``` ### HertzBeat Improvement Proposal (HIP) + If you have major new features(e.g., support metrics push gateway, support logs monitoring), you need to write a design document known as a HertzBeat Improvement Proposal (HIP). Before starting to write a HIP, make sure you follow the process [here](https://github.com/apache/hertzbeat/tree/master/hip). ### How to become a Committer? @@ -147,19 +155,21 @@ With the above steps, you are a contributor to HertzBeat. Repeat the previous st [Join the Mailing Lists](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) : Mail to `dev-subscribe@hertzbeat.apache.org` to subscribe mailing lists. -Add WeChat account `tan-cloud` to pull you into the WeChat group. +Add WeChat account `ahertzbeat` to pull you into the WeChat group. ## 🥐 Architecture - **[manager](https://github.com/apache/hertzbeat/tree/master/manager)** Provide monitoring management, system management basic services. + > Provides monitoring management, monitoring configuration management, system user management, etc. -- **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** Provide metrics data collection services. +> +> - **[collector](https://github.com/apache/hertzbeat/tree/master/collector)** Provide metrics data collection services. > Use common protocols to remotely collect and obtain peer-to-peer metrics data. -- **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** Provide monitoring data warehousing services. +> - **[warehouse](https://github.com/apache/hertzbeat/tree/master/warehouse)** Provide monitoring data warehousing services. > Metrics data management, data query, calculation and statistics. -- **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** Provide alert service. +> - **[alerter](https://github.com/apache/hertzbeat/tree/master/alerter)** Provide alert service. > Alarm calculation trigger, monitoring status linkage, alarm configuration, and alarm notification. -- **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** Provide web ui. +> - **[web-app](https://github.com/apache/hertzbeat/tree/master/web-app)** Provide web ui. > Angular Web UI. ![hertzBeat](/img/docs/hertzbeat-arch.png) diff --git a/home/versioned_docs/version-v1.5.x/community/development.md b/home/versioned_docs/version-v1.5.x/community/development.md index 6bc9544a900..3e17d01385b 100644 --- a/home/versioned_docs/version-v1.5.x/community/development.md +++ b/home/versioned_docs/version-v1.5.x/community/development.md @@ -1,16 +1,15 @@ --- id: development title: How to Run or Build HertzBeat? -sidebar_label: Development +sidebar_label: Development --- ## Getting HertzBeat code up and running -> To get HertzBeat code running on your development tools, and able to debug with breakpoints. -> This is a front-end and back-end separation project. +> To get HertzBeat code running on your development tools, and able to debug with breakpoints. +> This is a front-end and back-end separation project. > To start the local code, the back-end [manager](https://github.com/apache/hertzbeat/tree/master/manager) and the front-end [web-app](https://github.com/apache/hertzbeat/tree/master/web-app) must be started separately. - ### Backend start 1. Requires `maven3+`, `java17` and `lombok` environments @@ -37,9 +36,9 @@ sidebar_label: Development 7. Browser access to localhost:4200 to start, default account/password is *admin/hertzbeat* -## Build HertzBeat binary package +## Build HertzBeat binary package -> Requires `maven3+`, `java17`, `node` and `yarn` environments. +> Requires `maven3+`, `java17`, `node` and `yarn` environments. ### Frontend build @@ -53,7 +52,6 @@ sidebar_label: Development 5. Build web-app: `yarn package` - ### Backend build 1. Requires `maven3+`, `java17` environments diff --git a/home/versioned_docs/version-v1.5.x/community/document.md b/home/versioned_docs/version-v1.5.x/community/document.md index a4f871bb753..b7f3af828d1 100644 --- a/home/versioned_docs/version-v1.5.x/community/document.md +++ b/home/versioned_docs/version-v1.5.x/community/document.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- Good documentation is critical for any type of software. Any contribution that can improve the HertzBeat documentation is welcome. @@ -40,8 +40,8 @@ This website is compiled using node, using Docusaurus framework components 1. Download and install nodejs (version 18.8.0) 2. Clone the code to the local `git clone git@github.com:apache/hertzbeat.git` 3. In `home` directory run `npm install` to install the required dependent libraries. -4. In `home` directory run `npm run start`, you can visit http://localhost:3000 to view the English mode preview of the site -5. In `home` directory run `npm run start-zh-cn`, you can visit http://localhost:3000 to view the Chinese mode preview of the site +4. In `home` directory run `npm run start`, you can visit to view the English mode preview of the site +5. In `home` directory run `npm run start-zh-cn`, you can visit to view the Chinese mode preview of the site 6. To generate static website resource files, run `npm run build`. The static resources of the build are in the build directory. ## Directory structure @@ -93,5 +93,3 @@ css and other style files are placed in the `src/css` directory ### Page content modification > All pages doc can be directly jumped to the corresponding github resource modification page through the 'Edit this page' button at the bottom - - diff --git a/home/versioned_docs/version-v1.5.x/community/how-to-release.md b/home/versioned_docs/version-v1.5.x/community/how-to-release.md index 8ffca0302cb..8c862805475 100644 --- a/home/versioned_docs/version-v1.5.x/community/how-to-release.md +++ b/home/versioned_docs/version-v1.5.x/community/how-to-release.md @@ -22,11 +22,12 @@ This release process is operated in the UbuntuOS(Windows,Mac), and the following ## 2. Preparing for release > First summarize the account information to better understand the operation process, will be used many times later. -- apache id: `muchunjin (APACHE LDAP UserName)` -- apache passphrase: `APACHE LDAP Passphrase` -- apache email: `muchunjin@apache.org` -- gpg real name: `muchunjin (Any name can be used, here I set it to the same name as the apache id)` -- gpg key passphrase: `The password set when creating the gpg key, you need to remember this password` +> +> - apache id: `muchunjin (APACHE LDAP UserName)` +> - apache passphrase: `APACHE LDAP Passphrase` +> - apache email: `muchunjin@apache.org` +> - gpg real name: `muchunjin (Any name can be used, here I set it to the same name as the apache id)` +> - gpg key passphrase: `The password set when creating the gpg key, you need to remember this password` ### 2.1 Key generation @@ -128,12 +129,12 @@ gpg: Total number processed: 1 gpg: unchanged: 1 ``` -Or enter https://keyserver.ubuntu.com/ address in the browser, enter the name of the key and click 'Search key' to search if existed. +Or enter address in the browser, enter the name of the key and click 'Search key' to search if existed. #### 2.4 Add the gpg public key to the KEYS file of the Apache SVN project repo -- Apache HertzBeat Branch Dev https://dist.apache.org/repos/dist/dev/incubator/hertzbeat -- Apache HertzBeat Branch Release https://dist.apache.org/repos/dist/release/incubator/hertzbeat +- Apache HertzBeat Branch Dev +- Apache HertzBeat Branch Release ##### 2.4.1 Add public key to KEYS in dev branch @@ -165,10 +166,11 @@ $ (gpg --list-sigs muchunjin@apache.org && gpg --export --armor muchunjin@apache $ svn ci -m "add gpg key for muchunjin" ``` -## 3. Prepare material package & release +## 3. Prepare material package & release -#### 3.1 Based on the master branch, create a release-${release_version}-rcx branch, such as release-1.6.0-rc1, And create a tag named v1.6.0-rc1 based on the release-1.6.0-rc1 branch, and set this tag as pre-release. +### Build Package +#### 3.1 Based on the master branch, create a release-${release_version}-rcx branch, such as release-1.6.0-rc1, And create a tag named v1.6.0-rc1 based on the release-1.6.0-rc1 branch, and set this tag as pre-release ```shell git checkout master @@ -228,6 +230,8 @@ release-1.6.0-rc1 The archive package is here `dist/apache-hertzbeat-1.6.0-incubating-src.tar.gz` +### Sign package + #### 3.5 Sign binary and source packages > The `gpg -u 33545C76` `33545C76` is your gpg secret ID, see from `gpg --keyid-format SHORT --list-keys` @@ -246,7 +250,7 @@ for i in *.tar.gz; do echo $i; sha512sum $i > $i.sha512 ; done > The final file list is as follows -``` +```properties apache-hertzbeat-1.6.0-incubating-src.tar.gz apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512 @@ -292,7 +296,7 @@ apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz: OK #### 3.7 Publish the dev directory of the Apache SVN material package -- Clone the dev directory +- Clone the dev directory ```shell # Check out the dev directory of the Apache SVN to the svn/dev directory under dist in the root directory of the Apache HertzBeat project @@ -303,7 +307,9 @@ svn co --depth empty https://dist.apache.org/repos/dist/dev/incubator/hertzbeat - Copy the material package to the dev directory -Create a version number directory and name it in the form of ${release_version}-${RC_version}. RC_version starts from 1, that is, the candidate version starts from RC1. During the release process, there is a problem that causes the vote to fail. If it needs to be corrected, it needs to iterate the RC version , the RC version number needs to be +1. For example: Vote for version 1.6.0-RC1. If the vote passes without any problems, the RC1 version material will be released as the final version material. If there is a problem (when the hertzbeat/incubator community votes, the voters will strictly check various release requirements and compliance issues) and need to be corrected, then re-initiate the vote after the correction, and the candidate version for the next vote is 1.6.0- RC2. +Create a version number directory and name it in the form of ${release_version}-${RC_version}. RC_version starts from 1, that is, the candidate version starts from RC1. During the release process, there is a problem that causes the vote to fail. +If it needs to be corrected, it needs to iterate the RC version , the RC version number needs to be +1. For example: Vote for version 1.6.0-RC1. If the vote passes without any problems, the RC1 version material will be released as the final version material. +If there is a problem (when the hertzbeat/incubator community votes, the voters will strictly check various release requirements and compliance issues) and need to be corrected, then re-initiate the vote after the correction, and the candidate version for the next vote is 1.6.0- RC2. ```shell mkdir -p svn/dev/1.6.0-RC1 @@ -329,20 +335,19 @@ svn commit -m "release for HertzBeat 1.6.0" - Check Apache SVN Commit Results -> Visit the address https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/1.6.0-RC1/ in the browser, check if existed the new material package - +> Visit the address in the browser, check if existed the new material package ## 4. Enter the community voting stage -#### 4.1 Send a Community Vote Email +### 4.1 Send a Community Vote Email Send a voting email in the community requires at least three `+1` and no `-1`. -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0 rc1
-> `Body`: +> `Body`: -``` +```text Hello HertzBeat Community: This is a call for vote to release Apache HertzBeat (incubating) version release-1.6.0-RC1. @@ -394,17 +399,16 @@ Thanks! After 72 hours, the voting results will be counted, and the voting result email will be sent, as follows. -> `Send to`: dev@hertzbeat.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Dear HertzBeat community, Thanks for your review and vote for "Release Apache HertzBeat (incubating) 1.6.0-rc1" I'm happy to announce the vote has passed: - - +--- 4 binding +1, from: - cc @@ -412,33 +416,30 @@ I'm happy to announce the vote has passed: 1 non-binding +1, from: - Roc Marshal - - +--- no 0 or -1 votes. Vote thread: https://lists.apache.org/thread/t01b2lbtqzyt7j4dsbdp5qjc3gngjsdq - - +--- Thank you to everyone who helped us to verify and vote for this release. We will move to the ASF Incubator voting shortly. - - +--- Best, ChunJin Mu ``` -One item of the email content is `Vote thread`, and the link is obtained here: https://lists.apache.org/list.html?dev@hertzbeat.apache.org +One item of the email content is `Vote thread`, and the link is obtained here: #### 3.2 Send Incubator Community voting mail Send a voting email in the incubator community requires at least three `+1` and no `-1`. -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org、private@hertzbeat.apache.org
+> `Send to`:
+> `cc`:
> `Title`: [VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hello Incubator Community: This is a call for a vote to release Apache HertzBeat (incubating) version 1.6.0-RC1. @@ -474,27 +475,24 @@ More detailed checklist please refer: Steps to validate the release, Please refer to: • https://www.apache.org/info/verification.html • https://hertzbeat.apache.org/docs/community/how_to_verify_release - - +--- How to Build: https://hertzbeat.apache.org/docs/community/development/#build-hertzbeat-binary-package - - +--- Thanks, On behalf of Apache HertzBeat (incubating) community - - +--- Best, ChunJin Mu ``` If there is no -1 after 72 hours, reply to the email as follows -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Body`: -``` +```text Thanks everyone for review and vote, 72H passed. I'll announce the vote result soon. Best, @@ -503,11 +501,11 @@ Chunjin Mu Then the voting results will be counted, and the voting result email will be sent, as follows. -> `Send to`: general@incubator.apache.org
+> `Send to`:
> `Title`: [RESULT][VOTE] Release Apache HertzBeat (incubating) 1.6.0-rc1
> `Body`: -``` +```text Hi Incubator Community, The vote to release Apache HertzBeat (incubating) 1.6.0-rc4 has passed with 3 +1 binding and no +0 or -1 votes. @@ -529,13 +527,13 @@ Best, ChunJin Mu ``` -One item of the email content is `Vote thread`, and the link is obtained here: https://lists.apache.org/list.html?general@incubator.apache.org +One item of the email content is `Vote thread`, and the link is obtained here: Wait a day to see if the tutor has any other comments, if not, send the following announcement email -## 4. Complete the final publishing steps +## 5. Complete the final publishing steps -#### 4.1 Migrating source and binary packages +### 5.1 Migrating source and binary packages ```shell svn mv https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/1.6.0-RC1 https://dist.apache.org/repos/dist/release/incubator/hertzbeat/1.6.0 -m "transfer packages for 1.6.0-RC1" @@ -543,14 +541,13 @@ svn mv https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/1.6.0-RC1 http #### 4.2 Add the new version download address to the official website -https://github.com/apache/hertzbeat/blob/master/home/docs/download.md -https://github.com/apache/hertzbeat/blob/master/home/i18n/zh-cn/docusaurus-plugin-content-docs/current/download.md + + +Open the official website address to see if there is a new version of the download -Open the official website address https://hertzbeat.apache.org/docs/download/ to see if there is a new version of the download > It should be noted that the download link may take effect after an hour, so please pay attention to it. - #### 4.3 Generate a release on github Update pre-release to create a tag named v1.6.0 based on the release-1.6.0-rc1 branch, and set this tag to latest release. @@ -560,12 +557,16 @@ You can modify it on the original RC Release without creating a new Release. ::: Then enter Release Title and Describe -- Release Title: -``` + +- Release Title: + +```text v1.6.0 ``` + - Describe: -``` + +```text xxx release note: xxx ``` @@ -576,30 +577,34 @@ The rename the release-1.6.0-rc1 branch to release-1.6.0. #### 4.5 Send new version announcement email -> `Send to`: general@incubator.apache.org
-> `cc`: dev@hertzbeat.apache.org
-> `Title`: [ANNOUNCE] Release Apache HertzBeat (incubating) 1.6.0
+> `Send to`:
+> `cc`:
+> `Title`: [ANNOUNCE] Apache HertzBeat (incubating) 1.6.0 released
> `Body`: -``` -Hi Incubator Community, +```text +Hi Community, We are glad to announce the release of Apache HertzBeat (incubating) 1.6.0. -Once again I would like to express my thanks to your help. +Thanks again for your help. + +Apache HertzBeat (https://hertzbeat.apache.org/) - a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. -Apache HertzBeat(https://hertzbeat.apache.org/) - a real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. +Download Link: +https://hertzbeat.apache.org/docs/download/ -Download Links: https://hertzbeat.apache.org/download/ +Release Note: +https://github.com/apache/hertzbeat/releases/tag/v1.6.0 -Release Notes: https://github.com/apache/hertzbeat/releases/tag/v1.6.0 +Website: +https://hertzbeat.apache.org/ HertzBeat Resources: - Issue: https://github.com/apache/hertzbeat/issues - Mailing list: dev@hertzbeat.apache.org - - +--- Apache HertzBeat Team - +--- Best, ChunJin Mu ``` @@ -608,4 +613,4 @@ This version release is over. --- -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/versioned_docs/version-v1.5.x/community/how-to-verify.md b/home/versioned_docs/version-v1.5.x/community/how-to-verify.md index 41c3341b59e..c91c4fbb486 100644 --- a/home/versioned_docs/version-v1.5.x/community/how-to-verify.md +++ b/home/versioned_docs/version-v1.5.x/community/how-to-verify.md @@ -4,13 +4,13 @@ title: How to Verify Release sidebar_position: 4 --- -# Verify the candidate version +## Verify the candidate version For detailed check list, please refer to the official [check list](https://cwiki.apache.org/confluence/display/INCUBATOR/Incubator+Release+Checklist) -Version content accessible in browser https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/ +Version content accessible in browser -## 1. Download the candidate version +### 1. Download the candidate version Download the candidate version to be released to the local environment Need to rely on gpg tool, if not, it is recommended to install `gpg2`. @@ -27,11 +27,11 @@ $ svn co https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_ve $ wget https://dist.apache.org/repos/dist/dev/incubator/hertzbeat/${release_version}-${rc_version}/xxx.xxx ``` -## 2. Verify that the uploaded version is compliant +### 2. Verify that the uploaded version is compliant Start the verification process, which includes but is not limited to the following content and forms. -### 2.1 Check whether the release package is complete +#### 2.1 Check whether the release package is complete The package uploaded to dist must include the source code package, and the binary package is optional. @@ -40,18 +40,18 @@ The package uploaded to dist must include the source code package, and the binar 3. Whether to include the sha512 of the source code package 4. If the binary package is uploaded, also check the contents listed in (2)-(4) - -### 2.2 Check gpg signature +#### 2.2 Check gpg signature First import the publisher's public key. Import KEYS from the svn repository to the local environment. (The person who releases the version does not need to import it again, the person who helps to do the verification needs to import it, and the user name is enough for the person who issued the version) -#### 2.2.1 Import public key +##### 2.2.1 Import public key ```shell -$ curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # Download KEYS -$ gpg --import KEYS # Import KEYS to local +curl https://downloads.apache.org/incubator/hertzbeat/KEYS > KEYS # Download KEYS +gpg --import KEYS # Import KEYS to local ``` -#### 2.2.2 Trust the public key + +##### 2.2.2 Trust the public key Trust the KEY used in this version: @@ -80,10 +80,10 @@ gpg> ``` -#### 2.2.3 Check the gpg signature +##### 2.2.3 Check the gpg signature ```shell -$ for i in *.tar.gz; do echo $i; gpg --verify $i.asc $i; done +for i in *.tar.gz; do echo $i; gpg --verify $i.asc $i; done ``` check result @@ -97,13 +97,13 @@ gpg: using RSA key XXXXX gpg: Good signature from "xxx @apache.org>" ``` -### 2.3 Check sha512 hash +#### 2.3 Check sha512 hash ```shell -$ for i in *.tar.gz; do echo $i; sha512sum --check $i.sha512; done +for i in *.tar.gz; do echo $i; sha512sum --check $i.sha512; done ``` -### 2.4 Check the binary package +#### 2.4 Check the binary package unzip `apache-hertzbeat-${release.version}-incubating-bin.tar.gz` @@ -123,9 +123,7 @@ check as follows: - [ ] Able to compile correctly - [ ] ..... - - -### 2.5 Check the source package +#### 2.5 Check the source package > If the binary/web-binary package is uploaded, check the binary package. @@ -151,28 +149,27 @@ and check as follows: You can refer to this article: [ASF Third Party License Policy](https://apache.org/legal/resolved.html) - -## 3. Email reply +### 3. Email reply If you initiate a posting vote, you can refer to this response example to reply to the email after verification When replying to the email, you must bring the information that you have checked by yourself. Simply replying to `+1 approve` is invalid. -When PPMC votes in the dev@hertzbeat.apache.org hertzbeat community, Please bring the binding suffix to indicate that it has a binding vote for the vote in the hertzbeat community, and it is convenient to count the voting results. +When PPMC votes in the hertzbeat community, Please bring the binding suffix to indicate that it has a binding vote for the vote in the hertzbeat community, and it is convenient to count the voting results. -When IPMC votes in the general@incubator.apache.org incubator community. Please bring the binding suffix to indicate that the voting in the incubator community has a binding vote, which is convenient for counting the voting results. +When IPMC votes in the incubator community. Please bring the binding suffix to indicate that the voting in the incubator community has a binding vote, which is convenient for counting the voting results. :::caution -If you have already voted on dev@hertzbeat.apache.org, you can take it directly to the incubator community when you reply to the vote, such as: +If you have already voted on , you can take it directly to the incubator community when you reply to the vote, such as: ```html //Incubator community voting, only IPMC members have binding binding,PPMC needs to be aware of binding changes Forward my +1 from dev@listhertzbeatnkis (non-binding) Copy my +1 from hertzbeat DEV ML (non-binding) -```` -::: +``` +::: Non-PPMC/Non-IPMC member: @@ -184,7 +181,7 @@ I checked: 3. LICENSE and NOTICE are exist 4. Build successfully on macOS(Big Sur) 5. -```` +``` PPMC/IPMC member: @@ -197,10 +194,8 @@ I checked: 3. LICENSE and NOTICE are exist 4. Build successfully on macOS(Big Sur) 5. -```` - - +``` ---- +--- -This doc refer from [Apache StreamPark](https://streampark.apache.org/) +This doc refer from [Apache StreamPark](https://streampark.apache.org/) diff --git a/home/versioned_docs/version-v1.5.x/community/mailing_lists.md b/home/versioned_docs/version-v1.5.x/community/mailing_lists.md index fed6e3928ee..ef1a0a20329 100644 --- a/home/versioned_docs/version-v1.5.x/community/mailing_lists.md +++ b/home/versioned_docs/version-v1.5.x/community/mailing_lists.md @@ -5,20 +5,20 @@ sidebar_position: 1 --- The [Developer Mailing List](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) is the community-recommended way to communicate and obtain the latest information. @@ -32,27 +32,26 @@ Before you post anything to the mailing lists, be sure that you already **subscr - Use this list for your HertzBeat questions - Used by HertzBeat contributors to discuss development of HertzBeat - -| List Name | Address | Subscribe | Unsubscribe | Archive | -|---------------------|------------------------------|------------------------------------------------------------|----------------------------------------------------------------|----------------------------------------------------------------------------| -| **Developer List** | dev@hertzbeat.apache.org | [subscribe](mailto:dev-subscribe@hertzbeat.apache.org) | [unsubscribe](mailto:dev-unsubscribe@hertzbeat.apache.org) | [archive](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | +| List Name | Address | Subscribe | Unsubscribe | Archive | +|--------------------|--------------------------|--------------------------------------------------------|------------------------------------------------------------|------------------------------------------------------------------------| +| **Developer List** | | [subscribe](mailto:dev-subscribe@hertzbeat.apache.org) | [unsubscribe](mailto:dev-unsubscribe@hertzbeat.apache.org) | [archive](https://lists.apache.org/list.html?dev@hertzbeat.apache.org) | ### Notification List - Notifications on changes to the HertzBeat codebase -| List Name | Address | Subscribe | Unsubscribe | Archive | -|-------------------------|------------------------------------|------------------------------------------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------| -| **Notification List** | notifications@hertzbeat.apache.org | [subscribe](mailto:notifications-subscribe@hertzbeat.apache.org) | [unsubscribe](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [archive](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | +| List Name | Address | Subscribe | Unsubscribe | Archive | +|-----------------------|------------------------------------|------------------------------------------------------------------|----------------------------------------------------------------------|----------------------------------------------------------------------------------| +| **Notification List** | | [subscribe](mailto:notifications-subscribe@hertzbeat.apache.org) | [unsubscribe](mailto:notifications-unsubscribe@hertzbeat.apache.org) | [archive](https://lists.apache.org/list.html?notifications@hertzbeat.apache.org) | ## Steps for Subscription Sending a subscription email is also very simple. The steps are as follows: - 1、**Subscribe**: Click the **subscribe** button in the above table, and it redirects to your mail client. The subject and content are arbitrary. - After that, you will receive a confirmation email from dev-help@hertzbeat.apache.org (if not received, please confirm whether the email is automatically classified as SPAM, promotion email, subscription email, etc.). + After that, you will receive a confirmation email from (if not received, please confirm whether the email is automatically classified as SPAM, promotion email, subscription email, etc.). - 2、**Confirm**: Reply directly to the confirmation email, or click on the link in the email to reply quickly. The subject and content are arbitrary. -- 3、**Welcome**: After completing the above steps, you will receive a welcome email with the subject WELCOME to dev@hertzbeat.apache.org, and you have successfully subscribed to the Apache HertzBeat mailing list. +- 3、**Welcome**: After completing the above steps, you will receive a welcome email with the subject WELCOME to , and you have successfully subscribed to the Apache HertzBeat mailing list. ## Post Plain Text Mails diff --git a/home/versioned_docs/version-v1.5.x/community/new_committer_process.md b/home/versioned_docs/version-v1.5.x/community/new_committer_process.md index b72ec6e30b7..47cf938bea9 100644 --- a/home/versioned_docs/version-v1.5.x/community/new_committer_process.md +++ b/home/versioned_docs/version-v1.5.x/community/new_committer_process.md @@ -5,20 +5,20 @@ sidebar_position: 4 --- [Apache New Committer Guideline](https://community.apache.org/newcommitter.html#new-committer-process) @@ -47,10 +47,9 @@ sidebar_position: 4 see **Committer Account Creation** - - Wait until root says it is done - - PMC Chair enables svn and other access - - Add committer to the appropriate groups in JIRA and CWiki - + - Wait until root says it is done + - PMC Chair enables svn and other access + - Add committer to the appropriate groups in JIRA and CWiki - Notify the committer of completion see **Committer Done Template** @@ -81,7 +80,7 @@ ${Work list}[1] ``` Note that, Voting ends one week from today, i.e. -[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +[midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache Voting Guidelines](https://community.apache.org/newcommitter.html) ### Close Vote Template diff --git a/home/versioned_docs/version-v1.5.x/community/new_pmc_member_process.md b/home/versioned_docs/version-v1.5.x/community/new_pmc_member_process.md index ebc84b92d67..9397d6dc034 100644 --- a/home/versioned_docs/version-v1.5.x/community/new_pmc_member_process.md +++ b/home/versioned_docs/version-v1.5.x/community/new_pmc_member_process.md @@ -5,20 +5,20 @@ sidebar_position: 5 --- [Apache New Committer Guideline](https://community.apache.org/newcommitter.html#new-committer-process) @@ -78,10 +78,9 @@ ${Work list}[1] [1] https://github.com/apache/hertzbeat/commits?author=${NEW_PMC_NAME} ``` -Note that, Voting ends one week from today, i.e. [midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) +Note that, Voting ends one week from today, i.e. [midnight UTC on YYYY-MM-DD](https://www.timeanddate.com/counters/customcounter.html?year=YYYY&month=MM&day=DD) [Apache Voting Guidelines](https://community.apache.org/newcommitter.html) - ### Close Vote Template ```text diff --git a/home/versioned_docs/version-v1.5.x/community/submit-code.md b/home/versioned_docs/version-v1.5.x/community/submit-code.md index dfea1601d87..4b5f5dacf42 100644 --- a/home/versioned_docs/version-v1.5.x/community/submit-code.md +++ b/home/versioned_docs/version-v1.5.x/community/submit-code.md @@ -5,22 +5,21 @@ sidebar_position: 2 --- - * First from the remote repository fork a copy of the code into your own repository * The remote dev and merge branch is `master`. @@ -28,49 +27,46 @@ sidebar_position: 2 * Clone your repository to your local ```shell - git clone git@github.com:/hertzbeat.git +git clone git@github.com:/hertzbeat.git ``` * Add remote repository address, named upstream ```shell - git remote add upstream git@github.com:apache/hertzbeat.git +git remote add upstream git@github.com:apache/hertzbeat.git ``` * View repository ```shell - git remote -v +git remote -v ``` - > At this time, there will be two repositories: origin (your own repository) and upstream (remote repository) +> At this time, there will be two repositories: origin (your own repository) and upstream (remote repository) * Get/Update remote repository code - ```shell - git fetch upstream - ``` + ```shell + git fetch upstream + ``` * Synchronize remote repository code to local repository - ```shell - git checkout origin/dev - git merge --no-ff upstream/dev - ``` + ```shell + git checkout origin/dev + git merge --no-ff upstream/dev + ``` * **⚠️Note that you must create a new branch to develop features `git checkout -b feature-xxx`. It is not recommended to use the master branch for direct development** - * After modifying the code locally, submit it to your own repository: - **Note that the submission information does not contain special characters** - ```shell - git commit -m 'commit content' - git push - ``` + **Note that the submission information does not contain special characters** -* Submit changes to the remote repository, you can see a green button "Compare & pull request" on your repository page, click it. + ```shell + git commit -m 'commit content' + git push + ``` +* Submit changes to the remote repository, you can see a green button "Compare & pull request" on your repository page, click it. * Select the modified local branch and the branch you want to merge with the past, you need input the message carefully, describe doc is important as code, click "Create pull request". - * Then the community Committers will do CodeReview, and then he will discuss some details (design, implementation, performance, etc.) with you, afterward you can directly update the code in this branch according to the suggestions (no need to create a new PR). When this pr is approved, the commit will be merged into the master branch - * Finally, congratulations, you have become an official contributor to HertzBeat ! You will be added to the contributor wall, you can contact the community to obtain a contributor certificate. diff --git a/home/versioned_docs/version-v1.5.x/download.md b/home/versioned_docs/version-v1.5.x/download.md index 2c0df07bb7c..67c05a32860 100644 --- a/home/versioned_docs/version-v1.5.x/download.md +++ b/home/versioned_docs/version-v1.5.x/download.md @@ -4,12 +4,14 @@ title: Download Apache HertzBeat (incubating) sidebar_label: Download --- -> **Here is the Apache HertzBeat (incubating) official download page.** +> **Here is the Apache HertzBeat (incubating) official download page.** > **Please choose version to download from the following tables. It is recommended use the latest.** :::tip + - Please verify the release with corresponding hashes(sha512), signatures and [project release KEYS](https://downloads.apache.org/incubator/hertzbeat/KEYS). - Refer to [How to Verify](https://www.apache.org/dyn/closer.cgi#verify) for how to check the hashes and signatures. + ::: ## The Latest Release @@ -18,12 +20,10 @@ sidebar_label: Download Previous releases of HertzBeat may be affected by security issues, please use the latest one. ::: - -| Version | Date | Download | Release Notes | +| Version | Date | Download | Release Notes | |---------|------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------| | v1.6.0 | 2024.06.10 | [apache-hertzbeat-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-collector-1.6.0-incubating-bin.tar.gz.sha512) )
[apache-hertzbeat-1.6.0-incubating-src.tar.gz](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz) ( [signature](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.asc) , [sha512](https://downloads.apache.org/incubator/hertzbeat/1.6.0/apache-hertzbeat-1.6.0-incubating-src.tar.gz.sha512) ) | [release note](https://github.com/apache/hertzbeat/releases/tag/v1.6.0) | - ## All Archived Releases For older releases, please check the [archive](https://archive.apache.org/dist/incubator/hertzbeat/). @@ -32,5 +32,5 @@ For older releases, please check the [archive](https://archive.apache.org/dist/i > Apache HertzBeat provides a docker image for each release. You can pull the image from the [Docker Hub](https://hub.docker.com/r/apache/hertzbeat). -- HertzBeat https://hub.docker.com/r/apache/hertzbeat -- HertzBeat Collector https://hub.docker.com/r/apache/hertzbeat-collector +- HertzBeat +- HertzBeat Collector diff --git a/home/versioned_docs/version-v1.5.x/help/activemq.md b/home/versioned_docs/version-v1.5.x/help/activemq.md index 52e3090fde2..ee014e7ce8c 100644 --- a/home/versioned_docs/version-v1.5.x/help/activemq.md +++ b/home/versioned_docs/version-v1.5.x/help/activemq.md @@ -9,50 +9,52 @@ keywords: [open source monitoring tool, monitoring Apache ActiveMQ metrics] **Use Protocol: JMX** -### Pre-monitoring Operations +### Pre-monitoring Operations > You need to enable the `JMX` service on ActiveMQ, HertzBeat uses the JMX protocol to collect metrics from ActiveMQ. 1. Modify the `conf/activemq.xml` file in the installation directory to enable JMX -> Add `userJmx="true"` attribute in `broker` tag + > Add `userJmx="true"` attribute in `broker` tag -```xml - - - -``` + ```xml + + + + ``` 2. Modify the `bin/env` file in the installation directory, configure the JMX port IP, etc. -The original configuration information will be as follows -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` - -Update to the following configuration, ⚠️ pay attention to modify `local external IP` -```text -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" -# ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" - -ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" -``` + The original configuration information will be as follows + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` + + Update to the following configuration, ⚠️ pay attention to modify `local external IP` + + ```text + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.password.file=${ACTIVEMQ_CONF}/jmx.password" + # ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.access.file=${ACTIVEMQ_CONF}/jmx.access" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.port=11099" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.ssl=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote.authenticate=false" + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Djava.rmi.server.hostname=本机对外IP" + + ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" + ``` 3. Restart the ACTIVEMQ service, and add the corresponding ActiveMQ monitoring in HertzBeat. The parameters use the IP port configured by JMX. ### Configuration parameters -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | | Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | @@ -64,82 +66,80 @@ ACTIVEMQ_SUNJMX_START="$ACTIVEMQ_SUNJMX_START -Dcom.sun.management.jmxremote" | Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | | Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | -### Collect Metrics +### Collect Metrics #### metrics: broker -| Metric Name | Unit | Description | +| Metric Name | Unit | Description | |-------------------------|------|-----------------------------------------------------------------------| -| BrokerName | None | The name of the broker. | -| BrokerVersion | None | The version of the broker. | -| Uptime | None | Uptime of the broker. | +| BrokerName | None | The name of the broker. | +| BrokerVersion | None | The version of the broker. | +| Uptime | None | Uptime of the broker. | | UptimeMillis | ms | Uptime of the broker in milliseconds. | -| Persistent | None | Messages are synchronized to disk. | +| Persistent | None | Messages are synchronized to disk. | | MemoryPercentUsage | % | Percent of memory limit used. | | StorePercentUsage | % | Percent of store limit used. | | TempPercentUsage | % | Percent of temp limit used. | -| CurrentConnectionsCount | None | Attribute exposed for management | -| TotalConnectionsCount | None | Attribute exposed for management | -| TotalEnqueueCount | None | Number of messages that have been sent to the broker. | -| TotalDequeueCount | None | Number of messages that have been acknowledged on the broker. | -| TotalConsumerCount | None | Number of message consumers subscribed to destinations on the broker. | -| TotalProducerCount | None | Number of message producers active on destinations on the broker. | -| TotalMessageCount | None | Number of unacknowledged messages on the broker. | -| AverageMessageSize | None | Average message size on this broker | -| MaxMessageSize | None | Max message size on this broker | -| MinMessageSize | None | Min message size on this broker | - -#### metrics: topic - -| Metric Name | Unit | Description | -|-------------------------|------|-------------------------------------------------------------------------------------------| -| Name | None | Name of this destination. | -| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | -| MemoryPercentUsage | None | The percentage of the memory limit used | -| ProducerCount | None | Number of producers attached to this destination | -| ConsumerCount | None | Number of consumers subscribed to this destination. | -| EnqueueCount | None | Number of messages that have been sent to the destination. | -| DequeueCount | None | Number of messages that has been acknowledged (and removed) from the destination. | -| ForwardCount | None | Number of messages that have been forwarded (to a networked broker) from the destination. | -| InFlightCount | None | Number of messages that have been dispatched to, but not acknowledged by, consumers. | -| DispatchCount | None | Number of messages that has been delivered to consumers, including those not acknowledged | -| ExpiredCount | None | Number of messages that have been expired. | -| StoreMessageSize | B | The memory size of all messages in this destination's store. | -| AverageEnqueueTime | ms | Average time a message was held on this destination. | -| MaxEnqueueTime | ms | The longest time a message was held on this destination | -| MinEnqueueTime | ms | The shortest time a message was held on this destination | -| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | -| AverageMessageSize | B | Average message size on this destination | -| MaxMessageSize | B | Max message size on this destination | -| MinMessageSize | B | Min message size on this destination | - +| CurrentConnectionsCount | None | Attribute exposed for management | +| TotalConnectionsCount | None | Attribute exposed for management | +| TotalEnqueueCount | None | Number of messages that have been sent to the broker. | +| TotalDequeueCount | None | Number of messages that have been acknowledged on the broker. | +| TotalConsumerCount | None | Number of message consumers subscribed to destinations on the broker. | +| TotalProducerCount | None | Number of message producers active on destinations on the broker. | +| TotalMessageCount | None | Number of unacknowledged messages on the broker. | +| AverageMessageSize | None | Average message size on this broker | +| MaxMessageSize | None | Max message size on this broker | +| MinMessageSize | None | Min message size on this broker | + +#### metrics: topic + +| Metric Name | Unit | Description | +|--------------------|------|-------------------------------------------------------------------------------------------| +| Name | None | Name of this destination. | +| MemoryLimit | MB | Memory limit, in bytes, used by undelivered messages before paging to temporary storage. | +| MemoryPercentUsage | None | The percentage of the memory limit used | +| ProducerCount | None | Number of producers attached to this destination | +| ConsumerCount | None | Number of consumers subscribed to this destination. | +| EnqueueCount | None | Number of messages that have been sent to the destination. | +| DequeueCount | None | Number of messages that has been acknowledged (and removed) from the destination. | +| ForwardCount | None | Number of messages that have been forwarded (to a networked broker) from the destination. | +| InFlightCount | None | Number of messages that have been dispatched to, but not acknowledged by, consumers. | +| DispatchCount | None | Number of messages that has been delivered to consumers, including those not acknowledged | +| ExpiredCount | None | Number of messages that have been expired. | +| StoreMessageSize | B | The memory size of all messages in this destination's store. | +| AverageEnqueueTime | ms | Average time a message was held on this destination. | +| MaxEnqueueTime | ms | The longest time a message was held on this destination | +| MinEnqueueTime | ms | The shortest time a message was held on this destination | +| TotalBlockedTime | ms | Total time (ms) messages have been blocked by flow control | +| AverageMessageSize | B | Average message size on this destination | +| MaxMessageSize | B | Max message size on this destination | +| MinMessageSize | B | Min message size on this destination | #### metrics: memory_pool -| Metric Name | Unit | Description | -|-------------| ----------- |----------------| -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric Name | Unit | Description | +|-------------|------|--------------| +| name | | metrics name | +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### metrics: class_loading -| Metric Name | Unit | Description | -|-----------------------| ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - +| Metric Name | Unit | Description | +|-----------------------|------|--------------------------| +| LoadedClassCount | | Loaded Class Count | +| TotalLoadedClassCount | | Total Loaded Class Count | +| UnloadedClassCount | | Unloaded Class Count | #### metrics: thread -| Metric Name | Unit | Description | -|-------------------------| ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | +| Metric Name | Unit | Description | +|-------------------------|------|----------------------------| +| TotalStartedThreadCount | | Total Started Thread Count | +| ThreadCount | | Thread Count | +| PeakThreadCount | | Peak Thread Count | +| DaemonThreadCount | | Daemon Thread Count | +| CurrentThreadUserTime | ms | Current Thread User Time | +| CurrentThreadCpuTime | ms | Current Thread Cpu Time | diff --git a/home/versioned_docs/version-v1.5.x/help/airflow.md b/home/versioned_docs/version-v1.5.x/help/airflow.md index 5323ede8110..a7f77f7f5b6 100644 --- a/home/versioned_docs/version-v1.5.x/help/airflow.md +++ b/home/versioned_docs/version-v1.5.x/help/airflow.md @@ -9,33 +9,30 @@ keywords: [开源监控系统, 开源数据库监控, Apache Airflow监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8080 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| HTTPS | 是否启用HTTPS | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8080 | +| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | +| HTTPS | 是否启用HTTPS | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:airflow_health -| 指标名称 | 指标单位 | 指标帮助描述 | -| ------------ | -------- | -------------------- | -| metadatabase | 无 | metadatabase健康情况 | -| scheduler | 无 | scheduler健康情况 | -| triggerer | 无 | triggerer健康情况 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------|------|------------------| +| metadatabase | 无 | metadatabase健康情况 | +| scheduler | 无 | scheduler健康情况 | +| triggerer | 无 | triggerer健康情况 | #### 指标集合:airflow_version -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | -------- | --------------- | -| value | 无 | Airflow版本 | -| git_version | 无 | Airflow git版本 | - - - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------|------|---------------| +| value | 无 | Airflow版本 | +| git_version | 无 | Airflow git版本 | diff --git a/home/versioned_docs/version-v1.5.x/help/alert_console.md b/home/versioned_docs/version-v1.5.x/help/alert_console.md index e727fec4771..45ab7d791d3 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_console.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_console.md @@ -6,13 +6,13 @@ sidebar_label: Console address in alarm template > After the threshold is triggered, send the alarm information. When you notify through DingDing / enterprise Wechat / FeiShu robot or email, the alarm content has a detailed link to log in to the console. - ### Custom settings In our startup configuration file application.yml, find the following configuration + ```yml alerter: console-url: #Here is our custom console address ``` -The default value is the official console address of HertzBeat. \ No newline at end of file +The default value is the official console address of HertzBeat. diff --git a/home/versioned_docs/version-v1.5.x/help/alert_dingtalk.md b/home/versioned_docs/version-v1.5.x/help/alert_dingtalk.md index fb63d52aa48..57efd130881 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_dingtalk.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_dingtalk.md @@ -5,37 +5,37 @@ sidebar_label: Alert DingDing robot notification keywords: [open source monitoring tool, open source alerter, open source DingDing robot notification] --- -> After the threshold is triggered send alarm information and notify the recipient by DingDing robot. +> After the threshold is triggered send alarm information and notify the recipient by DingDing robot. -### Operation steps +### Operation steps 1. **【DingDing desktop client】-> 【Group settings】-> 【Intelligent group assistant】-> 【Add new robot-select custom】-> 【Set robot name and avatar】-> 【Note⚠️Set custom keywords: HertzBeat】 ->【Copy its webhook address after adding successfully】** -> Note⚠️ When adding a robot, its custom keywords need to be set in the security setting block: HertzBeat. Other security settings or the IP segment don't need to be filled in. + > Note⚠️ When adding a robot, its custom keywords need to be set in the security setting block: HertzBeat. Other security settings or the IP segment don't need to be filled in. -![email](/img/docs/help/alert-notice-8.png) + ![email](/img/docs/help/alert-notice-8.png) 2. **【Save access_token value of the WebHook address of the robot】** -> eg: webHook address:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` -> Its robot access_token value is `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > eg: webHook address:`https://oapi.dingtalk.com/robot/send?access_token=43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` + > Its robot access_token value is `43aac28a236e001285ed84e473f8eabee70f63c7a70287acb0e0f8b65fade64f` 3. **【Alarm notification】->【Add new recipient】 ->【Select DingDing robot notification method】->【Set DingDing robot ACCESS_TOKEN】-> 【Confirm】** -![email](/img/docs/help/alert-notice-9.png) + ![email](/img/docs/help/alert-notice-9.png) -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### DingDing robot common issues -### DingDing robot common issues +1. DingDing group did not receive the robot alarm notification. -1. DingDing group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether DingDing robot is configured with security custom keywords :HertzBeat. -> Please check whether the robot ACCESS_TOKEN is configured correctly and whether the alarm strategy association is configured. + > Please check whether there is any triggered alarm information in the alarm center. + > Please check whether DingDing robot is configured with security custom keywords :HertzBeat. + > Please check whether the robot ACCESS_TOKEN is configured correctly and whether the alarm strategy association is configured. -Other issues can be fed back through the communication group ISSUE! +Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_discord.md b/home/versioned_docs/version-v1.5.x/help/alert_discord.md index 8dfdca384fa..7d38b18b1dd 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_discord.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_discord.md @@ -13,58 +13,56 @@ keywords: [open source monitoring tool, open source alerter, open source Discord 1. Visit [https://discord.com/developers/applications](https://discord.com/developers/applications) to create an application -![bot](/img/docs/help/discord-bot-1.png) + ![bot](/img/docs/help/discord-bot-1.png) 2. Create a robot under the application and get the robot Token -![bot](/img/docs/help/discord-bot-2.png) + ![bot](/img/docs/help/discord-bot-2.png) -![bot](/img/docs/help/discord-bot-3.png) + ![bot](/img/docs/help/discord-bot-3.png) 3. Authorize the bot to the chat server -> Authorize the robot under the OAuth2 menu, select `bot` for `SCOPES`, `BOT PERMISSIONS` select `Send Messages` + > Authorize the robot under the OAuth2 menu, select `bot` for `SCOPES`, `BOT PERMISSIONS` select `Send Messages` -![bot](/img/docs/help/discord-bot-4.png) + ![bot](/img/docs/help/discord-bot-4.png) -> Obtain the URL generated at the bottom, and the browser accesses this URL to officially authorize the robot, that is, to set which chat server the robot will join. + > Obtain the URL generated at the bottom, and the browser accesses this URL to officially authorize the robot, that is, to set which chat server the robot will join. 4. Check if your chat server has joined robot members -![bot](/img/docs/help/discord-bot-5.png) + ![bot](/img/docs/help/discord-bot-5.png) ### Enable developer mode and get Channel ID 1. Personal Settings -> Advanced Settings -> Enable Developer Mode -![bot](/img/docs/help/discord-bot-6.png) + ![bot](/img/docs/help/discord-bot-6.png) 2. Get channel Channel ID -> Right-click the chat channel you want to send the robot message to, click the COPY ID button to get the Channel ID - -![bot](/img/docs/help/discord-bot-7.png) + > Right-click the chat channel you want to send the robot message to, click the COPY ID button to get the Channel ID + ![bot](/img/docs/help/discord-bot-7.png) ### Add an alarm notification person in HertzBeat, the notification method is Discord Bot 1. **[Alarm notification] -> [Add recipient] -> [Select Discord robot notification method] -> [Set robot Token and ChannelId] -> [OK]** -![email](/img/docs/help/discord-bot-8.png) - -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** + ![email](/img/docs/help/discord-bot-8.png) -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. +2. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** -![email](/img/docs/help/alert-notice-policy.png) + > **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. + ![email](/img/docs/help/alert-notice-policy.png) -### Discord Bot Notification FAQ +### Discord Bot Notification FAQ -1. Discord doesn't receive bot alert notifications +1. Discord doesn't receive bot alert notifications -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and ChannelId are configured correctly, and whether the alarm policy association has been configured -> Please check whether the bot is properly authorized by the Discord chat server + > Please check whether the alarm information has been triggered in the alarm center + > Please check whether the robot Token and ChannelId are configured correctly, and whether the alarm policy association has been configured + > Please check whether the bot is properly authorized by the Discord chat server Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_email.md b/home/versioned_docs/version-v1.5.x/help/alert_email.md index 353ae4673fe..10f15a6bfb9 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_email.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_email.md @@ -5,34 +5,35 @@ sidebar_label: Alert email notification keywords: [open source monitoring tool, open source alerter, open source email notification] --- -> After the threshold is triggered send alarm information and notify the recipient by email. +> After the threshold is triggered send alarm information and notify the recipient by email. -### Operation steps +### Operation steps -1. **【Alarm notification】->【Add new recipient】 ->【Select email notification method】** +1. **【Alarm notification】->【Add new recipient】 ->【Select email notification method】** -![email](/img/docs/help/alert-notice-1.png) + ![email](/img/docs/help/alert-notice-1.png) -2. **【Get verification code】-> 【Enter email verification code】-> 【Confirm】** -![email](/img/docs/help/alert-notice-2.png) +2. **【Get verification code】-> 【Enter email verification code】-> 【Confirm】** + ![email](/img/docs/help/alert-notice-2.png) -![email](/img/docs/help/alert-notice-3.png) + ![email](/img/docs/help/alert-notice-3.png) -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### Email notification common issues -### Email notification common issues +1. Hertzbeat deployed on its own intranet cannot receive email notifications -1. Hertzbeat deployed on its own intranet cannot receive email notifications -> Hertzbeat needs to configure its own mail server, not tancloud. Please confirm whether you have configured its own mail server in application.yml + > Hertzbeat needs to configure its own mail server, not tancloud. Please confirm whether you have configured its own mail server in application.yml -2. Cloud environment tancloud cannot receive email notification -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the mailbox is configured correctly and whether the alarm strategy association is configured. -> Please check whether the warning email is blocked in the trash can of the mailbox. +2. Cloud environment tancloud cannot receive email notification + + > Please check whether there is any triggered alarm information in the alarm center. + > Please check whether the mailbox is configured correctly and whether the alarm strategy association is configured. + > Please check whether the warning email is blocked in the trash can of the mailbox. Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_enterprise_wechat_app.md b/home/versioned_docs/version-v1.5.x/help/alert_enterprise_wechat_app.md index f9e072e436a..352981b7d85 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_enterprise_wechat_app.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_enterprise_wechat_app.md @@ -5,30 +5,30 @@ sidebar_label: Alert Enterprise Wechat App notification keywords: [open source monitoring tool, open source alerter, open source Enterprise Wechat App notification] --- -> After the threshold is triggered send alarm information and notify the recipient by enterprise WeChat App. +> After the threshold is triggered send alarm information and notify the recipient by enterprise WeChat App. -### Operation steps +### Operation steps 1. **【Enterprise Wechat backstage】-> 【App Management】-> 【Create an app】-> 【Set App message】->【Copy AgentId and Secret adding successfully】** -![email](/img/docs/help/alert-wechat-1.jpg) + ![email](/img/docs/help/alert-wechat-1.jpg) 2. **【Alarm notification】->【Add new recipient】 ->【Select Enterprise WeChat App notification method】->【Set Enterprise WeChat ID,Enterprise App ID and Enterprise App Secret 】-> 【Confirm】** -![email](/img/docs/help/alert-wechat-2.jpg) + ![email](/img/docs/help/alert-wechat-2.jpg) -3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +3. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** -![email](/img/docs/help/alert-wechat-3.jpg) + ![email](/img/docs/help/alert-wechat-3.jpg) +### Enterprise WeChat App common issues -### Enterprise WeChat App common issues +1. Enterprise WeChat App did not receive the alarm notification. -1. Enterprise WeChat App did not receive the alarm notification. -> Please check if the user has application permissions. -> Please check if the enterprise application callback address settings are normal. -> Please check if the server IP is on the enterprise application whitelist. + > Please check if the user has application permissions. + > Please check if the enterprise application callback address settings are normal. + > Please check if the server IP is on the enterprise application whitelist. -Other issues can be fed back through the communication group ISSUE! +Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_feishu.md b/home/versioned_docs/version-v1.5.x/help/alert_feishu.md index 56606012021..da5a2674133 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_feishu.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_feishu.md @@ -5,30 +5,30 @@ sidebar_label: Alert FeiShu robot notification keywords: [open source monitoring tool, open source alerter, open source feishu bot notification] --- -> After the threshold is triggered send alarm information and notify the recipient by FeiShu robot. +> After the threshold is triggered send alarm information and notify the recipient by FeiShu robot. -### Operation steps +### Operation steps 1. **【FeiShu client】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** -2. **【Save the key value of the WebHook address of the robot】** +2. **【Save the key value of the WebHook address of the robot】** -> eg: webHook address:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > eg: webHook address:`https://open.feishu.cn/open-apis/bot/v2/hook/3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` 3. **【Alarm notification】->【Add new recipient】 ->【Select FeiShu robot notification method】->【Set FeiShu robot KEY】-> 【Confirm】** -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) +### FeiShu robot notification common issues -### FeiShu robot notification common issues +1. FeiShu group did not receive the robot alarm notification. -1. FeiShu group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. + > Please check whether there is any triggered alarm information in the alarm center. + > Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. -Other issues can be fed back through the communication group ISSUE! +Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_slack.md b/home/versioned_docs/version-v1.5.x/help/alert_slack.md index 0de69afa328..7b5c395c729 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_slack.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_slack.md @@ -17,20 +17,19 @@ Refer to the official website document [Sending messages using Incoming Webhooks 1. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Webhook URL】-> 【OK】** -![email](/img/docs/help/slack-bot-1.png) + ![email](/img/docs/help/slack-bot-1.png) -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** +2. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) + > **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. + ![email](/img/docs/help/alert-notice-policy.png) ### Slack Notification FAQ 1. Slack did not receive the robot warning notification -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the slack webhook url are configured correctly, and whether the alarm policy association has been configured + > Please check whether the alarm information has been triggered in the alarm center + > Please check whether the slack webhook url are configured correctly, and whether the alarm policy association has been configured Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_smn.md b/home/versioned_docs/version-v1.5.x/help/alert_smn.md index b4013b9f902..6d049dfbe39 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_smn.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_smn.md @@ -11,33 +11,33 @@ keywords: [ open source monitoring tool, open source alerter, open source Huawei 1. **According to [Huawei Cloud SMN Official Document](https://support.huaweicloud.com/qs-smn/smn_json.html) activate the SMN service and configure SMN** -![alert-notice-10](/img/docs/help/alert-notice-10.png) + ![alert-notice-10](/img/docs/help/alert-notice-10.png) 2. **Save topic URN for SMN** -![alert-notice-11](/img/docs/help/alert-notice-11.png) + ![alert-notice-11](/img/docs/help/alert-notice-11.png) 3. **According to [Huawei Cloud Signature Document](https://support.huaweicloud.com/devg-apisign/api-sign-provide.html) obtain AK, SK, and project ID** -![alert-notice-12](/img/docs/help/alert-notice-12.png) + ![alert-notice-12](/img/docs/help/alert-notice-12.png) -![alert-notice-13](/img/docs/help/alert-notice-13.png) + ![alert-notice-13](/img/docs/help/alert-notice-13.png) 4. **【Alarm Notification】->【Add Recipient】->【Select Slack Webhook Notification Method】->【Set Huawei Cloud SMN AK, SK and other configurations】-> 【OK】** -![alert-notice-14](/img/docs/help/alert-notice-14.png) + ![alert-notice-14](/img/docs/help/alert-notice-14.png) 5. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. + > **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) ### Huawei Cloud SMN Notification FAQ 1. Huawei Cloud SMN did not receive the robot warning notification -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the Huawei Cloud SMN AK, SK and other configurations are configured correctly, and whether the alarm policy association has been configured + > Please check whether the alarm information has been triggered in the alarm center + > Please check whether the Huawei Cloud SMN AK, SK and other configurations are configured correctly, and whether the alarm policy association has been configured Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_telegram.md b/home/versioned_docs/version-v1.5.x/help/alert_telegram.md index 1fbe4f0ae7e..9cf2c84bdc2 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_telegram.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_telegram.md @@ -13,32 +13,32 @@ keywords: [open source monitoring tool, open source alerter, open source Telegra 1. Use [@BotFather](https://t.me/BotFather) to create your own bot and get an access token `Token` -![telegram-bot](/img/docs/help/telegram-bot-1.png) + ![telegram-bot](/img/docs/help/telegram-bot-1.png) 2. Get the `User ID` of the recipient -**Use the recipient account you want to notify to send a message to the newly created Bot account**, -Visit ```https://api.telegram.org/bot/getUpdates```, **`use the Bot Token from the previous step to replace the `**, and respond to the first in the `Json` data A `result.message.from.id` value is the recipient's `User ID` - -```json -{ - "ok": true, - "result": [ - { - "update_id": 632299191, - "message": { - "from":{ - "id": "User ID" - }, - "chat":{ - }, - "date": 1673858065, - "text": "111" + **Use the recipient account you want to notify to send a message to the newly created Bot account**, + Visit ```https://api.telegram.org/bot/getUpdates```, **`use the Bot Token from the previous step to replace the `**, and respond to the first in the `Json` data A `result.message.from.id` value is the recipient's `User ID` + + ```json + { + "ok": true, + "result": [ + { + "update_id": 632299191, + "message": { + "from":{ + "id": "User ID" + }, + "chat":{ + }, + "date": 1673858065, + "text": "111" + } } - } - ] -} -``` + ] + } + ``` 3. Record and save the `Token` and `User Id` we got @@ -46,21 +46,20 @@ Visit ```https://api.telegram.org/bot/getUpdates```, **`use the Bot Token 1. **【Alarm Notification】->【Add Recipient】->【Select Telegram Robot Notification Method】->【Set Robot Token and UserId】-> 【OK】** -![email](/img/docs/help/telegram-bot-2.png) + ![email](/img/docs/help/telegram-bot-2.png) -4. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** +2. **Configure the associated alarm notification strategy⚠️ [Add notification strategy] -> [Associate the recipient just set] -> [OK]** -> **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. - -![email](/img/docs/help/alert-notice-policy.png) + > **Note ⚠️ Adding a new recipient does not mean that it has taken effect and can receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, specify which messages are sent to which recipients**. + ![email](/img/docs/help/alert-notice-policy.png) ### Telegram Bot Notification FAQ 1. Telegram did not receive the robot warning notification -> Please check whether the alarm information has been triggered in the alarm center -> Please check whether the robot Token and UserId are configured correctly, and whether the alarm policy association has been configured -> UserId should be the UserId of the recipient of the message + > Please check whether the alarm information has been triggered in the alarm center + > Please check whether the robot Token and UserId are configured correctly, and whether the alarm policy association has been configured + > UserId should be the UserId of the recipient of the message Other questions can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_threshold.md b/home/versioned_docs/version-v1.5.x/help/alert_threshold.md index 0574b1924ba..2619fdbcf6e 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_threshold.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_threshold.md @@ -3,6 +3,7 @@ id: alert_threshold title: Threshold Alert Configuration sidebar_label: Threshold Alert Configuration --- + > Configure alert thresholds for monitoring metrics (warning alert, critical alert, emergency alert). The system triggers alerts based on threshold configuration and collected metric data. ## Operational Steps diff --git a/home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md b/home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md index a7a7e6bdbe0..c999d887982 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md @@ -8,40 +8,40 @@ sidebar_label: Threshold Trigger Expression #### Supported Operators in Expressions -| Operator (Visual Configuration) | Operator (Expression Configuration) | Supported Types | Description | -| ------------------------------- | ----------------------------------- | ------------------------- | -------------------------- | -| Equals | equals(str1,str2) | String | Check if strings are equal | -| Not Equals | !equals(str1,str2) | String | Check if strings are not equal | -| Contains | contains(str1,str2) | String | Check if string contains | -| Not Contains | !contains(str1,str2) | String | Check if string does not contain | -| Matches | matches(str1,str2) | String | Check if string matches regex | -| Not Matches | !matches(str1,str2) | String | Check if string does not match regex | -| Exists | exists(obj) | String, Numeric, Time | Check if value exists | -| Not Exists | !exists(obj) | String, Numeric, Time | Check if value does not exist | -| Greater than | obj1 > obj2 | Numeric, Time | Check if value is greater than | -| Less than | obj1 < obj2 | Numeric, Time | Check if value is less than | -| Greater than or Equal to | obj1 >= obj2 | Numeric, Time | Check if value is greater than or equal to | -| Less than or Equal to | obj1 <= obj2 | Numeric, Time | Check if value is less than or equal to | -| Not Equal to | obj1 != obj2 | Numeric, Time | Check if values are not equal | -| Equal to | obj1 == obj2 | Numeric, Time | Check if values are equal | +| Operator (Visual Configuration) | Operator (Expression Configuration) | Supported Types | Description | +|---------------------------------|-------------------------------------|-----------------------|--------------------------------------------| +| Equals | equals(str1,str2) | String | Check if strings are equal | +| Not Equals | !equals(str1,str2) | String | Check if strings are not equal | +| Contains | contains(str1,str2) | String | Check if string contains | +| Not Contains | !contains(str1,str2) | String | Check if string does not contain | +| Matches | matches(str1,str2) | String | Check if string matches regex | +| Not Matches | !matches(str1,str2) | String | Check if string does not match regex | +| Exists | exists(obj) | String, Numeric, Time | Check if value exists | +| Not Exists | !exists(obj) | String, Numeric, Time | Check if value does not exist | +| Greater than | obj1 > obj2 | Numeric, Time | Check if value is greater than | +| Less than | obj1 < obj2 | Numeric, Time | Check if value is less than | +| Greater than or Equal to | obj1 >= obj2 | Numeric, Time | Check if value is greater than or equal to | +| Less than or Equal to | obj1 <= obj2 | Numeric, Time | Check if value is less than or equal to | +| Not Equal to | obj1 != obj2 | Numeric, Time | Check if values are not equal | +| Equal to | obj1 == obj2 | Numeric, Time | Check if values are equal | #### Expression Function Library List -| Supported Function Library | Description | -| -------------------------------- | -------------------------------------------------------------- | -| condition ? trueExpression : falseExpression | Ternary operator | -| toDouble(str) | Convert string to Double type | -| toBoolean(str) | Convert string to Boolean type | -| toInteger(str) | Convert string to Integer type | -| array[n] | Retrieve the nth element of an array | -| * | Multiplication | -| / | Division | -| % | Modulo | -| ( and ) | Parentheses for controlling the order of operations in logical or mathematical expressions | -| + | Addition | -| - | Subtraction | -| && | Logical AND operator | -| \|\| | Logical OR operator | +| Supported Function Library | Description | +|----------------------------------------------|--------------------------------------------------------------------------------------------| +| condition ? trueExpression : falseExpression | Ternary operator | +| toDouble(str) | Convert string to Double type | +| toBoolean(str) | Convert string to Boolean type | +| toInteger(str) | Convert string to Integer type | +| array[n] | Retrieve the nth element of an array | +| * | Multiplication | +| / | Division | +| % | Modulo | +| ( and ) | Parentheses for controlling the order of operations in logical or mathematical expressions | +| + | Addition | +| - | Subtraction | +| && | Logical AND operator | +| \|\| | Logical OR operator | #### Supported Environment Variables @@ -58,9 +58,9 @@ This variable is mainly used for calculations involving multiple instances. For `responseTime>=400` 2. API Monitoring -> Alert when response time is greater than 3000ms `responseTime>3000` -3. Overall Monitoring -> Alert when response time for URL (instance) path 'https://baidu.com/book/3' is greater than 200ms +3. Overall Monitoring -> Alert when response time for URL (instance) path '' is greater than 200ms `equals(instance,"https://baidu.com/book/3")&&responseTime>200` 4. MYSQL Monitoring -> Alert when 'threads_running' metric under 'status' exceeds 7 `threads_running>7` -If you encounter any issues, feel free to discuss and provide feedback through our community group or ISSUE tracker! \ No newline at end of file +If you encounter any issues, feel free to discuss and provide feedback through our community group or ISSUE tracker! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_webhook.md b/home/versioned_docs/version-v1.5.x/help/alert_webhook.md index adc1b6f12f8..7768dcf29d4 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_webhook.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_webhook.md @@ -5,23 +5,24 @@ sidebar_label: Alert webHook notification keywords: [open source monitoring tool, open source alerter, open source webhook notification] --- -> After the threshold is triggered send alarm information and call the Webhook interface through post request to notify the recipient. +> After the threshold is triggered send alarm information and call the Webhook interface through post request to notify the recipient. -### Operation steps +### Operation steps -1. **【Alarm notification】->【Add new recipient】 ->【Select WebHook notification method】-> 【Set WebHook callback address】 -> 【Confirm】** +1. **【Alarm notification】->【Add new recipient】 ->【Select WebHook notification method】-> 【Set WebHook callback address】 -> 【Confirm】** -![email](/img/docs/help/alert-notice-5.png) + ![email](/img/docs/help/alert-notice-5.png) -2. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +2. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** -![email](/img/docs/help/alert-notice-4.png) + ![email](/img/docs/help/alert-notice-4.png) -### WebHook callback POST body BODY content +### WebHook callback POST body BODY content + +Content format:JSON -Content format:JSON ```json { "alarmId": 76456, @@ -43,24 +44,23 @@ Content format:JSON } ``` -| | | -|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | -| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | -| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | -| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | -| content | string title: The actual content of the alarm notification 告警通知实际内容 | -| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | -| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | -| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | -| tags | example: {key1:value1} | - +| | | +|-------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| alarmId | integer($int64) title: Alarm record entity primary key index ID 告警记录实体主键索引ID | +| target | string title: Alert target object: monitor availability-available metrics-app.metrics.field 告警目标对象: 监控可用性-available 指标-app.metrics.field | +| thresholdId | integer($int64) title: Alarm definition ID associated with the alarm 告警关联的告警定义ID | +| priority | string($byte) title: Alarm level 0: high-emergency-critical alarm-red 1: medium-critical-critical alarm-orange 2: low-warning-warning alarm-yellow 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 | +| content | string title: The actual content of the alarm notification 告警通知实际内容 | +| status | string($byte) title: Alarm status: 0-normal alarm (to be processed) 1-threshold triggered but not reached the number of alarms 2-recovered alarm 3-processed 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 | +| times | integer($int32) title: Alarm threshold trigger times 告警阈值触发次数 | +| triggerTime | integer($int64) title: Alarm trigger time (timestamp in milliseconds) 首次告警触发时间(毫秒时间戳) | +| tags | example: {key1:value1} | +### Webhook notification common issues -### Webhook notification common issues +1. WebHook callback did not take effect -1. WebHook callback did not take effect -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the configured webhook callback address is correct. + > Please check whether there is any triggered alarm information in the alarm center. + > Please check whether the configured webhook callback address is correct. -Other issues can be fed back through the communication group ISSUE! +Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/alert_wework.md b/home/versioned_docs/version-v1.5.x/help/alert_wework.md index e862fae7ddf..1e72ad5d401 100644 --- a/home/versioned_docs/version-v1.5.x/help/alert_wework.md +++ b/home/versioned_docs/version-v1.5.x/help/alert_wework.md @@ -5,34 +5,34 @@ sidebar_label: Alert enterprise Wechat notification keywords: [open source monitoring tool, open source alerter, open source WeWork notification] --- -> After the threshold is triggered send alarm information and notify the recipient by enterprise Wechat robot. +> After the threshold is triggered send alarm information and notify the recipient by enterprise Wechat robot. -### Operation steps +### Operation steps -1. **【Enterprise Wechat】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** +1. **【Enterprise Wechat】-> 【Group settings】-> 【Group robot】-> 【Add new robot】-> 【Set robot name and avatar】-> 【Copy its webhook address after adding successfully】** -![email](/img/docs/help/alert-notice-6.jpg) + ![email](/img/docs/help/alert-notice-6.jpg) -2. **【Save the key value of the WebHook address of the robot】** +2. **【Save the key value of the WebHook address of the robot】** -> eg: webHook address:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -> Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > eg: webHook address:`https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key=3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` + > Its robot KEY value is `3adafc96-23d0-4cd5-8feb-17f6e0b5fcs4` -3. **【Alarm notification】->【Add new recipient】 ->【Select enterprise Wechat robot notification method】->【Set enterprise Wechat robot KEY】-> 【Confirm】** +3. **【Alarm notification】->【Add new recipient】 ->【Select enterprise Wechat robot notification method】->【Set enterprise Wechat robot KEY】-> 【Confirm】** -![email](/img/docs/help/alert-notice-7.png) + ![email](/img/docs/help/alert-notice-7.png) -4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** +4. **Configure the associated alarm notification strategy⚠️ 【Add new notification strategy】-> 【Associate the recipient just set】-> 【Confirm】** -> **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** - -![email](/img/docs/help/alert-notice-4.png) + > **Note⚠️ Adding a new recipient does not mean that it is effective to receive alarm information. It is also necessary to configure the associated alarm notification strategy, that is, to specify which messages are sent to which recipients.** + ![email](/img/docs/help/alert-notice-4.png) ### Enterprise Wechat robot common issues -1. The enterprise wechat group did not receive the robot alarm notification. -> Please check whether there is any triggered alarm information in the alarm center. -> Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. +1. The enterprise wechat group did not receive the robot alarm notification. + + > Please check whether there is any triggered alarm information in the alarm center. + > Please check whether the robot key is configured correctly and whether the alarm strategy association is configured. Other issues can be fed back through the communication group ISSUE! diff --git a/home/versioned_docs/version-v1.5.x/help/almalinux.md b/home/versioned_docs/version-v1.5.x/help/almalinux.md index 380e1439ab4..695a8be57b3 100644 --- a/home/versioned_docs/version-v1.5.x/help/almalinux.md +++ b/home/versioned_docs/version-v1.5.x/help/almalinux.md @@ -4,14 +4,14 @@ title: Monitoring AlmaLinux Operating System Monitoring sidebar_label: AlmaLinux Operating System keywords: [open-source monitoring system, open-source operating system monitoring, AlmaLinux operating system monitoring] --- + > Collect and monitor common performance metrics of the AlmaLinux operating system. ### Configuration Parameters - -| Parameter Name | Parameter Help Description | -| ----------------- | ------------------------------------------------------------------------------------------------------------------------------------- | -| Monitoring Host | The monitored peer's IPv4, IPv6, or domain name. Note ⚠️ No protocol header (e.g., https://, http://). | +| Parameter Name | Parameter Help Description | +|-------------------|---------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | The monitored peer's IPv4, IPv6, or domain name. Note ⚠️ No protocol header (e.g., https://, http://). | | Task Name | A unique name to identify this monitoring task. | | Port | The port provided by Linux SSH, default is 22. | | Timeout | Set the connection timeout in milliseconds, default is 6000 ms. | @@ -28,18 +28,16 @@ keywords: [open-source monitoring system, open-source operating system monitorin #### Metric Set: Basic System Information - -| Metric Name | Metric Unit | Metric Help Description | -| -------------- | ----------- | ------------------------ | +| Metric Name | Metric Unit | Metric Help Description | +|----------------|-------------|--------------------------| | Host Name | None | Host name | | System Version | None | Operating system version | | Uptime | None | Uptime | #### Metric Set: CPU Information - -| Metric Name | Metric Unit | Metric Help Description | -| -------------- | ----------- | --------------------------------- | +| Metric Name | Metric Unit | Metric Help Description | +|----------------|-------------|-----------------------------------| | info | None | CPU model | | cores | Cores | Number of CPU cores | | interrupt | Count | Number of CPU interrupts | @@ -49,9 +47,8 @@ keywords: [open-source monitoring system, open-source operating system monitorin #### Metric Set: Memory Information - -| Metric Name | Metric Unit | Metric Help Description | -| ----------- | ----------- | ----------------------------------- | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------| | total | Mb | Total memory capacity | | used | Mb | Memory used by user programs | | free | Mb | Free memory capacity | @@ -61,9 +58,8 @@ keywords: [open-source monitoring system, open-source operating system monitorin #### Metric Set: Disk Information - -| Metric Name | Metric Unit | Metric Help Description | -| ------------- | ----------- | -------------------------------------- | +| Metric Name | Metric Unit | Metric Help Description | +|---------------|-------------|----------------------------------------| | disk_num | Count | Total number of disks | | partition_num | Count | Total number of partitions | | block_write | Blocks | Total number of blocks written to disk | @@ -72,18 +68,16 @@ keywords: [open-source monitoring system, open-source operating system monitorin #### Metric Set: Network Card Information - -| Metric Name | Metric Unit | Metric Help Description | -| -------------- | ----------- | ----------------------------- | +| Metric Name | Metric Unit | Metric Help Description | +|----------------|-------------|-------------------------------| | interface_name | None | Network card name | | receive_bytes | Byte | Inbound data traffic (bytes) | | transmit_bytes | Byte | Outbound data traffic (bytes) | #### Metric Set: File System - | Metric Name | Metric Unit | Metric Help Description | -| ----------- | ----------- | ----------------------- | +|-------------|-------------|-------------------------| | filesystem | None | Name of the file system | | used | Mb | Used disk size | | available | Mb | Available disk size | @@ -94,9 +88,8 @@ keywords: [open-source monitoring system, open-source operating system monitorin Statistics for the top 10 processes using the CPU. Statistics include: process ID, CPU usage, memory usage, and executed command. - | Metric Name | Metric Unit | Metric Help Description | -| ----------- | ----------- | ----------------------- | +|-------------|-------------|-------------------------| | pid | None | Process ID | | cpu_usage | % | CPU usage | | mem_usage | % | Memory usage | @@ -106,9 +99,8 @@ Statistics for the top 10 processes using the CPU. Statistics include: process I Statistics for the top 10 processes using memory. Statistics include: process ID, memory usage, CPU usage, and executed command. - | Metric Name | Metric Unit | Metric Help Description | -| ----------- | ----------- | ----------------------- | +|-------------|-------------|-------------------------| | pid | None | Process ID | | mem_usage | % | Memory usage | | cpu_usage | % | CPU usage | diff --git a/home/versioned_docs/version-v1.5.x/help/api.md b/home/versioned_docs/version-v1.5.x/help/api.md index 4d93f38e088..7e068a390b3 100644 --- a/home/versioned_docs/version-v1.5.x/help/api.md +++ b/home/versioned_docs/version-v1.5.x/help/api.md @@ -5,33 +5,32 @@ sidebar_label: HTTP API keywords: [open source monitoring tool, monitoring http api] --- -> Call HTTP API interface, check whether the interface is available, and monitor its response time and other Metrics. +> Call HTTP API interface, check whether the interface is available, and monitor its response time and other Metrics. ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Request mode | Set the request mode of interface call:GET, POST, PUT, DELETE | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Username | User name used for interface Basic authentication or Digest authentication | -| Password | Password used for interface Basic authentication or Digest authentication | -| Headers | HTTP request headers | -| Params | HTTP query params, support [time expression](time_expression) | -| Content-Type | Set the resource type when carrying the BODY request body data request | -| Request BODY | Set the carry BODY request body data, which is valid when PUT or POST request method is used | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | +| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.io/console` website is `/console` | +| Request mode | Set the request mode of interface call:GET, POST, PUT, DELETE | +| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | +| Username | User name used for interface Basic authentication or Digest authentication | +| Password | Password used for interface Basic authentication or Digest authentication | +| Headers | HTTP request headers | +| Params | HTTP query params, support [time expression](time_expression) | +| Content-Type | Set the resource type when carrying the BODY request body data request | +| Request BODY | Set the carry BODY request body data, which is valid when PUT or POST request method is used | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | -### Collection Metric +### Collection Metric -#### Metric set:summary - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | +#### Metric set:summary +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-------------------------| +| responseTime | ms | Website response time | diff --git a/home/versioned_docs/version-v1.5.x/help/centos.md b/home/versioned_docs/version-v1.5.x/help/centos.md index 2a6ad2b0a6d..858a1d2bb94 100644 --- a/home/versioned_docs/version-v1.5.x/help/centos.md +++ b/home/versioned_docs/version-v1.5.x/help/centos.md @@ -9,74 +9,73 @@ keywords: [open source monitoring tool, open source os monitoring tool, monitori ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Linux SSH. The default is 22 | +| Username | SSH connection user name, optional | +| Password | SSH connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------| +| hostname | none | Host name | +| version | none | Operating system version | +| uptime | none | System running time | #### Metric set:cpu -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------------------------| +| info | none | CPU model | +| cores | cores | Number of CPU cores | +| interrupt | number | Number of CPU interrupts | +| load | none | Average load of CPU in the last 1/5/15 minutes | +| context_switch | number | Number of current context switches | +| usage | % | CPU usage | #### Metric set:memory -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------------------| +| total | Mb | Total memory capacity | +| used | Mb | User program memory | +| free | Mb | Free memory capacity | +| buff_cache | Mb | Memory occupied by cache | +| available | Mb | Remaining available memory capacity | +| usage | % | Memory usage | #### Metric set:disk -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|----------------------------------------| +| disk_num | blocks | Total number of disks | +| partition_num | partitions | Total number of partitions | +| block_write | blocks | Total number of blocks written to disk | +| block_read | blocks | Number of blocks read from disk | +| write_rate | iops | Rate of writing disk blocks per second | #### Metric set:interface -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------| +| interface_name | none | Network card name | +| receive_bytes | byte | Inbound data traffic(bytes) | +| transmit_bytes | byte | Outbound data traffic(bytes) | #### Metric set:disk_free -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| filesystem | none | File system name | +| used | Mb | Used disk size | +| available | Mb | Available disk size | +| usage | % | usage | +| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.5.x/help/clickhouse.md b/home/versioned_docs/version-v1.5.x/help/clickhouse.md index 3e09687a450..d9994148bcd 100644 --- a/home/versioned_docs/version-v1.5.x/help/clickhouse.md +++ b/home/versioned_docs/version-v1.5.x/help/clickhouse.md @@ -4,91 +4,92 @@ title: Monitoring ClickHouse Database Monitoring sidebar_label: ClickHouse Database keywords: [open source monitoring system, open source database monitoring, ClickHouse database monitoring] --- + > Collect and monitor general performance metrics for the ClickHouse database. ### Configuration Parameters -| Parameter Name | Parameter Description | -| -------------- | ------------------------------------------------------------------------- | -| Monitor Host | IP address, IPV4, IPV6, or domain name of the host being monitored. Note ⚠️ without protocol prefix (e.g., https://, http://). | -| Task Name | Name identifying this monitoring, ensuring uniqueness. | -| Port | Port number of the database exposed to the outside, default is 8123. | -| Query Timeout | Timeout for SQL queries to respond, in milliseconds (ms), default is 6000ms. | -| Database Name | Name of the database instance, optional. | -| Username | Username for database connection, optional. | -| Password | Password for database connection, optional. | -| Collection Interval | Interval for periodic data collection during monitoring, in seconds, with a minimum interval of 30 seconds. | -| Tag Binding | Used for categorizing and managing monitored resources. | -| Description | Additional information to identify and describe this monitoring, where users can add remarks. | +| Parameter Name | Parameter Description | +|---------------------|--------------------------------------------------------------------------------------------------------------------------------| +| Monitor Host | IP address, IPV4, IPV6, or domain name of the host being monitored. Note ⚠️ without protocol prefix (e.g., https://, http://). | +| Task Name | Name identifying this monitoring, ensuring uniqueness. | +| Port | Port number of the database exposed to the outside, default is 8123. | +| Query Timeout | Timeout for SQL queries to respond, in milliseconds (ms), default is 6000ms. | +| Database Name | Name of the database instance, optional. | +| Username | Username for database connection, optional. | +| Password | Password for database connection, optional. | +| Collection Interval | Interval for periodic data collection during monitoring, in seconds, with a minimum interval of 30 seconds. | +| Tag Binding | Used for categorizing and managing monitored resources. | +| Description | Additional information to identify and describe this monitoring, where users can add remarks. | ### Collected Metrics #### Metric Set: ping Availability -| Metric Name | Metric Unit | Metric Description | -| ------------- | ----------- | ------------------ | -| responseTime | N/A | Response time | +| Metric Name | Metric Unit | Metric Description | +|--------------|-------------|--------------------| +| responseTime | N/A | Response time | #### Metric Set: Data from system.metrics table -| Metric Name | Metric Unit | Metric Description | -| ---------------------- | ----------- | ------------------------------------------------------------- | -| Query | N/A | Number of queries being executed | -| Merge | N/A | Number of background merges being executed | -| Move | N/A | Number of background moves being executed | -| PartMutation | N/A | Number of table mutations | -| ReplicatedFetch | N/A | Number of data blocks fetched from replicas | -| ReplicatedSend | N/A | Number of data blocks sent to replicas | -| ReplicatedChecks | N/A | Number of consistency checks on data blocks | -| QueryPreempted | N/A | Number of queries stopped or waiting | -| TCPConnection | N/A | Number of TCP connections | -| HTTPConnection | N/A | Number of HTTP connections | -| OpenFileForRead | N/A | Number of open readable files | -| OpenFileForWrite | N/A | Number of open writable files | -| QueryThread | N/A | Number of threads processing queries | -| ReadonlyReplica | N/A | Number of Replicated tables in read-only state | -| EphemeralNode | N/A | Number of ephemeral nodes in ZooKeeper | -| ZooKeeperWatch | N/A | Number of ZooKeeper event subscriptions | -| StorageBufferBytes | Bytes | Bytes in Buffer tables | -| VersionInteger | N/A | ClickHouse version number | -| RWLockWaitingReaders | N/A | Number of threads waiting for read-write lock on a table | -| RWLockWaitingWriters | N/A | Number of threads waiting for write lock on a table | -| RWLockActiveReaders | N/A | Number of threads holding read lock on a table | -| RWLockActiveWriters | N/A | Number of threads holding write lock on a table | -| GlobalThread | N/A | Number of threads in global thread pool | -| GlobalThreadActive | N/A | Number of active threads in global thread pool | -| LocalThread | N/A | Number of threads in local thread pool | -| LocalThreadActive | N/A | Number of active threads in local thread pool | +| Metric Name | Metric Unit | Metric Description | +|----------------------|-------------|----------------------------------------------------------| +| Query | N/A | Number of queries being executed | +| Merge | N/A | Number of background merges being executed | +| Move | N/A | Number of background moves being executed | +| PartMutation | N/A | Number of table mutations | +| ReplicatedFetch | N/A | Number of data blocks fetched from replicas | +| ReplicatedSend | N/A | Number of data blocks sent to replicas | +| ReplicatedChecks | N/A | Number of consistency checks on data blocks | +| QueryPreempted | N/A | Number of queries stopped or waiting | +| TCPConnection | N/A | Number of TCP connections | +| HTTPConnection | N/A | Number of HTTP connections | +| OpenFileForRead | N/A | Number of open readable files | +| OpenFileForWrite | N/A | Number of open writable files | +| QueryThread | N/A | Number of threads processing queries | +| ReadonlyReplica | N/A | Number of Replicated tables in read-only state | +| EphemeralNode | N/A | Number of ephemeral nodes in ZooKeeper | +| ZooKeeperWatch | N/A | Number of ZooKeeper event subscriptions | +| StorageBufferBytes | Bytes | Bytes in Buffer tables | +| VersionInteger | N/A | ClickHouse version number | +| RWLockWaitingReaders | N/A | Number of threads waiting for read-write lock on a table | +| RWLockWaitingWriters | N/A | Number of threads waiting for write lock on a table | +| RWLockActiveReaders | N/A | Number of threads holding read lock on a table | +| RWLockActiveWriters | N/A | Number of threads holding write lock on a table | +| GlobalThread | N/A | Number of threads in global thread pool | +| GlobalThreadActive | N/A | Number of active threads in global thread pool | +| LocalThread | N/A | Number of threads in local thread pool | +| LocalThreadActive | N/A | Number of active threads in local thread pool | #### Metric Set: Data from system.events table -| Metric Name | Metric Unit | Metric Description | -| ------------------------------------- | ----------- | ---------------------------------------------------------------------------------------------------- | -| Query | N/A | Number of queries to parse and possibly execute. Excludes queries rejected due to AST size limits, quota limits, or simultaneous query limits. May include internal queries initiated by ClickHouse. Subqueries are not counted. | -| SelectQuery | N/A | Number of Select queries possibly executed | -| InsertQuery | N/A | Number of Insert queries possibly executed | -| InsertedRows | N/A | Number of rows inserted into all tables | -| InsertedBytes | Bytes | Number of bytes inserted into all tables | -| FailedQuery | N/A | Number of failed queries | -| FailedSelectQuery | N/A | Number of failed Select queries | -| FileOpen | N/A | Number of file openings | -| MergeTreeDataWriterRows | N/A | Number of data rows written to MergeTree tables | -| MergeTreeDataWriterCompressedBytes | Bytes | Number of compressed data bytes written to MergeTree tables | +| Metric Name | Metric Unit | Metric Description | +|------------------------------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Query | N/A | Number of queries to parse and possibly execute. Excludes queries rejected due to AST size limits, quota limits, or simultaneous query limits. May include internal queries initiated by ClickHouse. Subqueries are not counted. | +| SelectQuery | N/A | Number of Select queries possibly executed | +| InsertQuery | N/A | Number of Insert queries possibly executed | +| InsertedRows | N/A | Number of rows inserted into all tables | +| InsertedBytes | Bytes | Number of bytes inserted into all tables | +| FailedQuery | N/A | Number of failed queries | +| FailedSelectQuery | N/A | Number of failed Select queries | +| FileOpen | N/A | Number of file openings | +| MergeTreeDataWriterRows | N/A | Number of data rows written to MergeTree tables | +| MergeTreeDataWriterCompressedBytes | Bytes | Number of compressed data bytes written to MergeTree tables | #### Metric Set: Data from system.asynchronous_metrics table -| Metric Name | Metric Unit | Metric Description | -| -------------------------------------- | ----------- | -------------------------------------- | -| AsynchronousMetricsCalculationTimeSpent | N/A | Time spent calculating asynchronous metrics (seconds) | -| jemalloc.arenas.all.muzzy_purged | N/A | Number of purged muzzy pages | -| jemalloc.arenas.all.dirty_purged | N/A | Number of purged dirty pages | -| BlockReadBytes_ram1 | N/A | Number of bytes read from ram1 block | -| jemalloc.background_thread.run_intervals | N/A | Number of intervals jemalloc background thread ran | -| BlockQueueTime_nbd13 | N/A | Queue wait time for nbd13 block | -| jemalloc.background_thread.num_threads | N/A | Number of jemalloc background threads | -| jemalloc.resident | N/A | Physical memory size allocated by jemalloc (bytes) | -| InterserverThreads | N/A | Number of Interserver threads | -| BlockWriteMerges_nbd7 | N/A | Number of block write merges for nbd7 block | -| MarkCacheBytes | N/A | Size of marks cache in StorageMergeTree | -| MarkCacheFiles | N/A | Number of files in marks cache for StorageMergeTree | -| MaxPartCountForPartition | N/A | Maximum active data blocks in partitions | \ No newline at end of file +| Metric Name | Metric Unit | Metric Description | +|------------------------------------------|-------------|-------------------------------------------------------| +| AsynchronousMetricsCalculationTimeSpent | N/A | Time spent calculating asynchronous metrics (seconds) | +| jemalloc.arenas.all.muzzy_purged | N/A | Number of purged muzzy pages | +| jemalloc.arenas.all.dirty_purged | N/A | Number of purged dirty pages | +| BlockReadBytes_ram1 | N/A | Number of bytes read from ram1 block | +| jemalloc.background_thread.run_intervals | N/A | Number of intervals jemalloc background thread ran | +| BlockQueueTime_nbd13 | N/A | Queue wait time for nbd13 block | +| jemalloc.background_thread.num_threads | N/A | Number of jemalloc background threads | +| jemalloc.resident | N/A | Physical memory size allocated by jemalloc (bytes) | +| InterserverThreads | N/A | Number of Interserver threads | +| BlockWriteMerges_nbd7 | N/A | Number of block write merges for nbd7 block | +| MarkCacheBytes | N/A | Size of marks cache in StorageMergeTree | +| MarkCacheFiles | N/A | Number of files in marks cache for StorageMergeTree | +| MaxPartCountForPartition | N/A | Maximum active data blocks in partitions | diff --git a/home/versioned_docs/version-v1.5.x/help/debian.md b/home/versioned_docs/version-v1.5.x/help/debian.md index 65940c34a39..47487573f36 100644 --- a/home/versioned_docs/version-v1.5.x/help/debian.md +++ b/home/versioned_docs/version-v1.5.x/help/debian.md @@ -4,13 +4,13 @@ title: Monitoring Debian System Monitoring sidebar_label: Debian keywords: [Open Source Monitoring System, Operating System Monitoring, Debian Monitoring] --- + > Collect and monitor general performance metrics of the Debian system. ## Configuration Parameters - -| Parameter Name | Metric help description | -| ----------------------- | ----------------------------------------------------------------------------------------------------------------- | +| Parameter Name | Metric help description | +|-------------------------|-------------------------------------------------------------------------------------------------------------------| | Target Host | The monitored destination IPV4, IPV6, or domain name. Note: no protocol header (e.g., https://, http://). | | Task Name | A unique name to identify this monitoring task. | | Port | SSH port of the Debian system, default: 22 | @@ -28,18 +28,16 @@ keywords: [Open Source Monitoring System, Operating System Monitoring, Debian Mo #### Metric Set: Basic System Information - -| Metric Name | Metric Unit | Metric help description | -| -------------- | ----------- | ------------------------ | +| Metric Name | Metric Unit | Metric help description | +|----------------|-------------|--------------------------| | Host Name | N/A | Host name | | System Version | N/A | Operating system version | | Uptime | N/A | Boot time | #### Metric Set: CPU Information - -| Metric Name | Metric Unit | Metric help description | -| -------------- | ----------- | ----------------------- | +| Metric Name | Metric Unit | Metric help description | +|----------------|-------------|-------------------------| | Info | N/A | Model | | Cores | N/A | Number of cores | | Interrupt | N/A | Number of interrupts | @@ -49,9 +47,8 @@ keywords: [Open Source Monitoring System, Operating System Monitoring, Debian Mo #### Metric Set: Memory Information - -| Metric Name | Metric Unit | Metric help description | -| ------------------- | ----------- | ---------------------------- | +| Metric Name | Metric Unit | Metric help description | +|---------------------|-------------|------------------------------| | Total Memory | Mb | Total memory capacity | | User Program Memory | Mb | Memory used by user programs | | Free Memory | Mb | Free memory capacity | @@ -61,9 +58,8 @@ keywords: [Open Source Monitoring System, Operating System Monitoring, Debian Mo #### Metric Set: Disk Information - -| Metric Name | Metric Unit | Metric help description | -| ------------- | ----------- | ----------------------------- | +| Metric Name | Metric Unit | Metric help description | +|---------------|-------------|-------------------------------| | Disk Num | N/A | Total number of disks | | Partition Num | N/A | Total number of partitions | | Block Write | N/A | Number of disk blocks written | diff --git a/home/versioned_docs/version-v1.5.x/help/dm.md b/home/versioned_docs/version-v1.5.x/help/dm.md index 91b032fdf54..f8e031bfe20 100644 --- a/home/versioned_docs/version-v1.5.x/help/dm.md +++ b/home/versioned_docs/version-v1.5.x/help/dm.md @@ -9,41 +9,40 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameters -| Parameter name | Parameter help description | -| ------- | ---------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 5236. | -| Query Timeout | Set the timeout when the SQL query does not respond to data, in ms milliseconds, the default is 3000 milliseconds. | -| database name | database instance name, optional. | -| username | database connection username, optional | -| password | database connection password, optional | -| URL | Database connection URL, optional | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | +| Parameter name | Parameter help description | +|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | +| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | +| Port | The port provided by the database externally, the default is 5236. | +| Query Timeout | Set the timeout when the SQL query does not respond to data, in ms milliseconds, the default is 3000 milliseconds. | +| database name | database instance name, optional. | +| username | database connection username, optional | +| password | database connection password, optional | +| URL | Database connection URL, optional | +| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | +| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | ### Collect metrics #### Metric collection: basic -| Metric Name | Metric Unit | Metric Help Description | -| ------------ | -------- | ------------------ | -| PORT_NUM | None | Database exposed service port | -| CTL_PATH | None | Control File Path | -| MAX_SESSIONS | None | Maximum database connections | +| Metric Name | Metric Unit | Metric Help Description | +|--------------|-------------|-------------------------------| +| PORT_NUM | None | Database exposed service port | +| CTL_PATH | None | Control File Path | +| MAX_SESSIONS | None | Maximum database connections | #### Metric collection: status -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------------ | -| status$ | None | Open/Close status of DM database | - +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|----------------------------------| +| status$ | None | Open/Close status of DM database | #### Metric collection: thread -| Metric Name | Metric Unit | Metric Help Description | -| ------------- | -------- | ------------------------- | -| dm_sql_thd | None | Thread for writing dmsql dmserver | -| dm_io_thd | None | IO threads, controlled by IO_THR_GROUPS parameter, default is 2 threads | -| dm_quit_thd | None | Thread used to perform a graceful shutdown of the database | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------------------------------------------| +| dm_sql_thd | None | Thread for writing dmsql dmserver | +| dm_io_thd | None | IO threads, controlled by IO_THR_GROUPS parameter, default is 2 threads | +| dm_quit_thd | None | Thread used to perform a graceful shutdown of the database | diff --git a/home/versioned_docs/version-v1.5.x/help/dns.md b/home/versioned_docs/version-v1.5.x/help/dns.md index 7587452c1a7..5eb31844648 100644 --- a/home/versioned_docs/version-v1.5.x/help/dns.md +++ b/home/versioned_docs/version-v1.5.x/help/dns.md @@ -9,9 +9,9 @@ keywords: [ open source monitoring tool, open source DNS monitoring tool, monito **Protocol Use:DNS** -### Configuration parameter +## Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6. Note⚠️Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -24,11 +24,11 @@ keywords: [ open source monitoring tool, open source DNS monitoring tool, monito | Bind Tags | Used to classify and manage monitoring resources. | | Description remarks | For more information about identifying and describing this monitoring, users can note information here. | -### Collection Metrics +## Collection Metrics -#### Metrics Set:Header +### Metrics Set:Header -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|---------------------------------------------------| | Response Time | ms | Time taken for DNS server to respond to requests. | | Opcode | none | Type of the current message. | @@ -41,13 +41,13 @@ keywords: [ open source monitoring tool, open source DNS monitoring tool, monito ### Metrics Set: Question -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------| | Section | none | Question record information, including the queried domain name, resource type, resource record class, and additional information. | ### Metrics Set: Answer -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|----------------------------------------------------------------------------------------------------------------------------| | Section0 | none | Answer record information, including the queried domain name, TTL, resource record class, resource type, and query result. | @@ -55,7 +55,7 @@ keywords: [ open source monitoring tool, open source DNS monitoring tool, monito ### Metrics Set: Authority -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------| | Section0 | none | SOA (Start of Authority) record for the domain name, including queried domain name, TTL, resource type, resource record class, and other information. | @@ -63,7 +63,7 @@ keywords: [ open source monitoring tool, open source DNS monitoring tool, monito ### Metrics Set: Additional -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|-----------------------------------------| | Section0 | none | Additional information for DNS queries. | diff --git a/home/versioned_docs/version-v1.5.x/help/docker.md b/home/versioned_docs/version-v1.5.x/help/docker.md index fdd3098ce55..63fe3b03a19 100644 --- a/home/versioned_docs/version-v1.5.x/help/docker.md +++ b/home/versioned_docs/version-v1.5.x/help/docker.md @@ -7,7 +7,6 @@ keywords: [open source monitoring tool, open source docker monitoring tool, moni > Collect and monitor general performance Metrics of Docker containers. - ## Pre-monitoring operations If you want to monitor the container information in `Docker`, you need to open the port according to the following steps, so that the collection request can obtain the corresponding information. @@ -31,9 +30,9 @@ This is equivalent to the **2375** port that is open to the outside world. Of co ```shell systemctl daemon-reload systemctl restart docker -```` +``` -**Note: Remember to open the `2375` port number in the server console. ** +**Note: Remember to open the `2375` port number in the server console.** **3. If the above method does not work:** @@ -42,65 +41,61 @@ Open the `2375` port number inside the server. ```shell firewall-cmd --zone=public --add-port=2375/tcp --permanent firewall-cmd --reload -```` - - - - +``` ### Configuration parameters -| Parameter name | Parameter help description | -| ------------ | ------------------------------- | -| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | -| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | -| Port | The port provided by the database externally, the default is 2375. | -| Query Timeout | Set the timeout when getting the Docker server API interface, in ms, the default is 3000 ms. | -| Container Name | Generally monitors all running container information. | -| username | connection username, optional | -| password | connection password, optional | -| URL | Database connection URL, optional, if configured, the parameters such as database name, username and password in the URL will override the parameters configured above | -| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | -| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | +| Parameter name | Parameter help description | +|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitor Host | Monitored peer IPV4, IPV6 or domain name. Note ⚠️ without protocol headers (eg: https://, http://). | +| Monitor Name | Identifies the name of this monitor. The name needs to be unique. | +| Port | The port provided by the database externally, the default is 2375. | +| Query Timeout | Set the timeout when getting the Docker server API interface, in ms, the default is 3000 ms. | +| Container Name | Generally monitors all running container information. | +| username | connection username, optional | +| password | connection password, optional | +| URL | Database connection URL, optional, if configured, the parameters such as database name, username and password in the URL will override the parameters configured above | +| Collection Interval | Monitor periodical collection data interval, in seconds, the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and then continue to add and modify operations if the detection is successful | +| Description Remarks | More remarks that identify and describe this monitoring, users can remark information here | ### Collect metrics #### Metric collection: system -| Metric Name | Metric Unit | Metric Help Description | -| ------------------ | -------- | ----------------------- | -| Name | None | Server Name | -| version | none | docker version number | -| os | none | server version eg: linux x86_64 | -| root_dir | none | docker folder directory eg: /var/lib/docker | -| containers | None | Total number of containers (running + not running) | -| containers_running | None | Number of running containers | -| containers_paused | none | number of containers in pause | -| images | None | The total number of container images. | -| ncpu | none | ncpu | -| mem_total | MB | Total size of memory used | -| system_time | none | system time | +| Metric Name | Metric Unit | Metric Help Description | +|--------------------|-------------|----------------------------------------------------| +| Name | None | Server Name | +| version | none | docker version number | +| os | none | server version eg: linux x86_64 | +| root_dir | none | docker folder directory eg: /var/lib/docker | +| containers | None | Total number of containers (running + not running) | +| containers_running | None | Number of running containers | +| containers_paused | none | number of containers in pause | +| images | None | The total number of container images. | +| ncpu | none | ncpu | +| mem_total | MB | Total size of memory used | +| system_time | none | system time | #### Metric collection: containers -| Metric Name | Metric Unit | Metric Help Description | -| -------- | -------- | ------------ | -| id | None | The ID of the container in Docker | -| name | None | The container name in the Docker container | -| image | None | Image used by the Docker container | -| command | None | Default startup command in Docker | -| state | None | The running state of the container in Docker | -| status | None | Update time in Docker container | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|----------------------------------------------| +| id | None | The ID of the container in Docker | +| name | None | The container name in the Docker container | +| image | None | Image used by the Docker container | +| command | None | Default startup command in Docker | +| state | None | The running state of the container in Docker | +| status | None | Update time in Docker container | #### Metrics collection: stats -| Metric Name | Metric Unit | Metric Help Description | -| ---------------- | -------- | ------------------ | -| name | None | The name in the Docker container | -| available_memory | MB | The amount of memory that the Docker container can utilize | -| used_memory | MB | The amount of memory already used by the Docker container | -| memory_usage | None | Memory usage of the Docker container | -| cpu_delta | None | The number of CPUs already used by the Docker container | -| number_cpus | None | The number of CPUs that the Docker container can use | -| cpu_usage | None | Docker container CPU usage | +| Metric Name | Metric Unit | Metric Help Description | +|------------------|-------------|------------------------------------------------------------| +| name | None | The name in the Docker container | +| available_memory | MB | The amount of memory that the Docker container can utilize | +| used_memory | MB | The amount of memory already used by the Docker container | +| memory_usage | None | Memory usage of the Docker container | +| cpu_delta | None | The number of CPUs already used by the Docker container | +| number_cpus | None | The number of CPUs that the Docker container can use | +| cpu_usage | None | Docker container CPU usage | diff --git a/home/versioned_docs/version-v1.5.x/help/doris_be.md b/home/versioned_docs/version-v1.5.x/help/doris_be.md index 2bc212ef3fb..3e6fd37de03 100644 --- a/home/versioned_docs/version-v1.5.x/help/doris_be.md +++ b/home/versioned_docs/version-v1.5.x/help/doris_be.md @@ -9,162 +9,162 @@ keywords: [开源监控系统, 开源数据库监控, DORIS数据库BE监控] ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ------------ | ------------------------------------------------------------ | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | -| 端口 | 数据库对外提供的端口,默认为8040 | -| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | -| 数据库名称 | 数据库实例名称,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|-----------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://) | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性 | +| 端口 | 数据库对外提供的端口,默认为8040 | +| 查询超时时间 | 设置连接未响应的超时时间,单位ms毫秒,默认3000毫秒 | +| 数据库名称 | 数据库实例名称,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:doris_be_load_channel_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | 当前打开的 load channel 个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------------| +| value | 无 | 当前打开的 load channel 个数 | #### 指标集合:doris_be_memtable_flush_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------------- | -| value | 无 | memtable写入磁盘的个数累计值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------| +| value | 无 | memtable写入磁盘的个数累计值 | #### 指标集合:doris_be_plan_fragment_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------- | -| value | 无 | 当前已接收的 fragment instance 的数量 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------| +| value | 无 | 当前已接收的 fragment instance 的数量 | #### 指标集合:doris_be_process_thread_num -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------- | -| value | 无 | BE 进程线程数。通过 `/proc/pid/task` 采集 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------------------| +| value | 无 | BE 进程线程数。通过 `/proc/pid/task` 采集 | #### 指标集合:doris_be_query_scan_rows -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------------ | -| value | 无 | 读取行数的累计值。这里只统计读取 Olap 表的数据量。并且是 RawRowsRead(部分数据行可能被索引跳过,并没有真正读取,但仍会记录到这个值中) | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------------------------------------------| +| value | 无 | 读取行数的累计值。这里只统计读取 Olap 表的数据量。并且是 RawRowsRead(部分数据行可能被索引跳过,并没有真正读取,但仍会记录到这个值中) | #### 指标集合:doris_be_result_buffer_block_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 当前查询结果缓存中的 query 个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------| +| value | 无 | 当前查询结果缓存中的 query 个数 | #### 指标集合:doris_be_send_batch_thread_pool_queue_size -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------------- | -| value | 无 | 导入时用于发送数据包的线程池的排队个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------| +| value | 无 | 导入时用于发送数据包的线程池的排队个数 | #### 指标集合:doris_be_tablet_base_max_compaction_score -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------------- | -| value | 无 | 当前最大的 Base Compaction Score | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------------------| +| value | 无 | 当前最大的 Base Compaction Score | #### 指标集合:doris_be_timeout_canceled_fragment_count -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------- | -| value | 无 | 因超时而被取消的 fragment instance 数量累计值 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|----------------------------------| +| value | 无 | 因超时而被取消的 fragment instance 数量累计值 | #### 指标集合:doris_be_load_rows -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------- | -| value | 无 | 通过 tablet sink 发送的行数累计 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------| +| value | 无 | 通过 tablet sink 发送的行数累计 | #### 指标集合:doris_be_all_rowsets_num -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ---------------------- | -| value | 无 | 当前所有 rowset 的个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-----------------| +| value | 无 | 当前所有 rowset 的个数 | #### 指标集合:doris_be_all_segments_num -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------- | -| value | 无 | 当前所有 segment 的个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------| +| value | 无 | 当前所有 segment 的个数 | #### 指标集合:doris_be_heavy_work_max_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc heavy线程池线程个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | brpc heavy线程池线程个数 | #### 指标集合:doris_be_light_work_max_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------ | -| value | 无 | brpc light线程池线程个数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|-------------------| +| value | 无 | brpc light线程池线程个数 | #### 指标集合:doris_be_heavy_work_pool_queue_size -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc heavy线程池队列最大长度,超过则阻塞提交work | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------------------| +| value | 无 | brpc heavy线程池队列最大长度,超过则阻塞提交work | #### 指标集合:doris_be_light_work_pool_queue_size -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ----------------------------------------------- | -| value | 无 | brpc light线程池队列最大长度,超过则阻塞提交work | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|---------------------------------| +| value | 无 | brpc light线程池队列最大长度,超过则阻塞提交work | #### 指标集合:doris_be_heavy_work_active_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc heavy线程池活跃线程数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------| +| value | 无 | brpc heavy线程池活跃线程数 | #### 指标集合:doris_be_light_work_active_threads -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | -------------------------- | -| value | 无 | brpc light线程池活跃线程数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------| +| value | 无 | brpc light线程池活跃线程数 | #### 指标集合:doris_be_compaction_bytes_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| ---------- | -------- | ---------------------------------- | -| base | 字节 | Base Compaction 的数据量累计 | -| cumulative | 字节 | Cumulative Compaction 的数据量累计 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------|------|------------------------------| +| base | 字节 | Base Compaction 的数据量累计 | +| cumulative | 字节 | Cumulative Compaction 的数据量累计 | #### 指标集合:doris_be_disks_avail_capacity -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的剩余空间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------| +| path | 无 | 指定数据目录 | +| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的剩余空间 | #### 指标集合:doris_be_disks_total_capacity -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | ------------------------------------------------------- | -| path | 无 | 指定数据目录 | -| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的全部空间 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|--------------------------------------------| +| path | 无 | 指定数据目录 | +| value | 字节 | `{path="/path1/"}` 表示 `/path1` 目录所在磁盘的全部空间 | #### 指标集合:doris_be_local_bytes_read_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileReader` 读取的字节数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|----------------------------| +| value | 字节 | 由 `LocalFileReader` 读取的字节数 | #### 指标集合:doris_be_local_bytes_written_total -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------- | -| value | 字节 | 由 `LocalFileWriter` 写入的字节数 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|----------------------------| +| value | 字节 | 由 `LocalFileWriter` 写入的字节数 | #### 指标集合:doris_be_memory_allocated_bytes -| 指标名称 | 指标单位 | 指标帮助描述 | -| -------- | -------- | --------------------------------------------------- | -| value | 字节 | BE 进程物理内存大小,取自 `/proc/self/status/VmRSS` | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------|------|------------------------------------------| +| value | 字节 | BE 进程物理内存大小,取自 `/proc/self/status/VmRSS` | diff --git a/home/versioned_docs/version-v1.5.x/help/doris_fe.md b/home/versioned_docs/version-v1.5.x/help/doris_fe.md index bb7a6b99d53..ecfad855ba6 100644 --- a/home/versioned_docs/version-v1.5.x/help/doris_fe.md +++ b/home/versioned_docs/version-v1.5.x/help/doris_fe.md @@ -4,6 +4,7 @@ title: Monitoring DORIS Database FE Monitoring sidebar_label: DORIS Database FE keywords: [Open Source Monitoring System, Open Source Database Monitoring, DORIS Database FE Monitoring] --- + > Collect and monitor general performance metrics for DORIS database FE. Supports DORIS 2.0.0. **Protocol: HTTP** @@ -14,9 +15,8 @@ Check the `fe/conf/fe.conf` file to obtain the value of the `http_port` configur ### Configuration Parameters - -| Parameter Name | Parameter Description | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Parameter Name | Parameter Description | +|---------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitor Host | The monitored target's IPV4, IPV6, or domain name. Note: Without the protocol header (e.g., https://, http://) | | Task Name | A unique name identifying this monitoring task | | Port | The port provided by the database to the outside, default is 8030 ,get the value of the`http_port` configuration item | @@ -30,26 +30,23 @@ Check the `fe/conf/fe.conf` file to obtain the value of the `http_port` configur #### Metric Set: doris_fe_connection_total - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | -------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|----------------------------------------------------| | value | None | The current number of MySQL port connections on FE | #### Metric Set: doris_fe_edit_log_clean Should not fail; if it does, manual intervention is required. - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|---------------------------------------------------------------| | success | None | The number of successful cleanups of historical metadata logs | | failed | None | The number of failed cleanups of historical metadata logs | #### Metric Set: doris_fe_edit_log - -| Metric Name | Metric Unit | Metric help description | -| ----------------- | ----------- | ------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------------|-------------|---------------------------------------------| | write | None | The count of metadata log write operations | | read | None | The count of metadata log read operations | | current | None | The current number of metadata logs | @@ -60,9 +57,8 @@ Should not fail; if it does, manual intervention is required. Should not fail; if it does, manual intervention is required. - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | -------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|----------------------------------------------------------------------| | success | None | The number of successful cleanups of historical metadata image files | | failed | None | The number of failed cleanups of historical metadata image files | @@ -70,75 +66,65 @@ Should not fail; if it does, manual intervention is required. Should not fail; if it does, manual intervention is required. - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ------------------------------------------------------------ | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|--------------------------------------------------------------| | success | None | The number of successful generations of metadata image files | | failed | None | The number of failed generations of metadata image files | #### Metric Set: doris_fe_query_err - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ----------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|-------------------------------------------| | value | None | The cumulative value of erroneous queries | #### Metric Set: doris_fe_max_journal_id - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | value | None | The current maximum metadata log ID on the FE node. If it is a Master FE, it is the maximum ID currently written; if it is a non-Master FE, it represents the maximum metadata log ID currently being replayed. Used to observe if there is a large gap between the IDs of multiple FEs. A large gap indicates issues with metadata synchronization | #### Metric Set: doris_fe_max_tablet_compaction_score - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | value | None | The largest compaction score value among all BE nodes. This value can observe the current cluster's maximum compaction score to judge if it is too high. If too high, there may be delays in queries or writes | #### Metric Set: doris_fe_qps - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|---------------------------------------------------------------------------------| | value | None | The number of queries per second on the current FE (only counts query requests) | #### Metric Set: doris_fe_query_err_rate - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ------------------------------------------ | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|--------------------------------------------| | value | None | The number of erroneous queries per second | #### Metric Set: doris_fe_report_queue_size - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | value | None | The length of the queue for various regular reporting tasks on the BE side at the FE end. This value reflects the degree of blocking of reporting tasks on the Master FE node. A larger value indicates insufficient processing capacity on the FE | #### Metric Set: doris_fe_rps - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ---------------------------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|------------------------------------------------------------------------------------------------------| | value | None | The number of requests per second on the current FE (includes queries and other types of statements) | #### Metric Set: doris_fe_scheduled_tablet_num - -| Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Metric Name | Metric Unit | Metric help description | +|-------------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | value | None | The number of tablets currently being scheduled by the Master FE node. This includes tablets that are being repaired and tablets that are being balanced. This value can reflect the number of tablets currently migrating in the cluster. If there is a value for a long time, it indicates that the cluster is unstable | #### Metric Set: doris_fe_txn_status Can observe the number of import transactions in various states to determine if there is a backlog. - | Metric Name | Metric Unit | Metric help description | -| ----------- | ----------- | ----------------------- | +|-------------|-------------|-------------------------| | unknown | None | Unknown state | | prepare | None | In preparation | | committed | None | Committed | diff --git a/home/versioned_docs/version-v1.5.x/help/dynamic_tp.md b/home/versioned_docs/version-v1.5.x/help/dynamic_tp.md index 7418e17cc1b..72e6389fdde 100644 --- a/home/versioned_docs/version-v1.5.x/help/dynamic_tp.md +++ b/home/versioned_docs/version-v1.5.x/help/dynamic_tp.md @@ -11,55 +11,55 @@ keywords: [open source monitoring tool, open source dynamicTp monitoring tool, m 1. Integration Using `DynamicTp` -`DynamicTp` is a lightweight dynamic thread pool based on the configuration center of the Jvm language. It has built-in monitoring and alarm functions, which can be realized through SPI custom extensions. + `DynamicTp` is a lightweight dynamic thread pool based on the configuration center of the Jvm language. It has built-in monitoring and alarm functions, which can be realized through SPI custom extensions. -For integrated use, please refer to the document [Quick Start](https://dynamictp.cn/guide/use/quick-start.html) + For integrated use, please refer to the document [Quick Start](https://dynamictp.cn/guide/use/quick-start.html) 2. Open SpringBoot Actuator Endpoint to expose `DynamicTp` Metric interface -```yaml -management: - endpoints: - web: - exposure: - include: '*' -``` -Test whether the access Metric interface `ip:port/actuator/dynamic-tp` has response json data as follows: + ```yaml + management: + endpoints: + web: + exposure: + include: '*' + ``` -```json -[ - { - "poolName": "commonExecutor", - "corePoolSize": 1, - "maximumPoolSize": 1, - "queueType": "LinkedBlockingQueue", - "queueCapacity": 2147483647, - "queueSize": 0, - "fair": false, - "queueRemainingCapacity": 2147483647, - "activeCount": 0, - "taskCount": 0, - "completedTaskCount": 0, - "largestPoolSize": 0, - "poolSize": 0, - "waitTaskCount": 0, - "rejectCount": 0, - "rejectHandlerName": null, - "dynamic": false, - "runTimeoutCount": 0, - "queueTimeoutCount": 0 - }, - { - "maxMemory": "4GB", - "totalMemory": "444MB", - "freeMemory": "250.34 MB", - "usableMemory": "3.81GB" - } -] -``` + Test whether the access Metric interface `ip:port/actuator/dynamic-tp` has response json data as follows: -3. Add DynamicTp monitoring under HertzBeat middleware monitoring + ```json + [ + { + "poolName": "commonExecutor", + "corePoolSize": 1, + "maximumPoolSize": 1, + "queueType": "LinkedBlockingQueue", + "queueCapacity": 2147483647, + "queueSize": 0, + "fair": false, + "queueRemainingCapacity": 2147483647, + "activeCount": 0, + "taskCount": 0, + "completedTaskCount": 0, + "largestPoolSize": 0, + "poolSize": 0, + "waitTaskCount": 0, + "rejectCount": 0, + "rejectHandlerName": null, + "dynamic": false, + "runTimeoutCount": 0, + "queueTimeoutCount": 0 + }, + { + "maxMemory": "4GB", + "totalMemory": "444MB", + "freeMemory": "250.34 MB", + "usableMemory": "3.81GB" + } + ] + ``` +3. Add DynamicTp monitoring under HertzBeat middleware monitoring ### Configuration parameters @@ -78,24 +78,24 @@ Test whether the access Metric interface `ip:port/actuator/dynamic-tp` has respo #### Metric collection: thread_pool -| Metric Name | Metric Unit | Metric Help Description | -|---------|------|------------------------| -| pool_name | None | Thread pool name | -| core_pool_size | None | Number of core threads | -| maximum_pool_size | None | Maximum number of threads | -| queue_type | None | Task queue type | -| queue_capacity | MB | task queue capacity | -| queue_size | None | The current occupied size of the task queue | -| fair | None | Queue mode, SynchronousQueue will be used | -| queue_remaining_capacity | MB | task queue remaining size | -| active_count | None | Number of active threads | -| task_count | None | Total number of tasks | -| completed_task_count | None | Number of completed tasks | -| largest_pool_size | None | The largest number of threads in history | -| pool_size | none | current number of threads | -| wait_task_count | None | Number of tasks waiting to be executed | -| reject_count | None | Number of rejected tasks | -| reject_handler_name | None | Reject policy type | -| dynamic | None | Dynamic thread pool or not | -| run_timeout_count | None | Number of running timeout tasks | -| queue_timeout_count | None | Number of tasks waiting for timeout | +| Metric Name | Metric Unit | Metric Help Description | +|--------------------------|-------------|---------------------------------------------| +| pool_name | None | Thread pool name | +| core_pool_size | None | Number of core threads | +| maximum_pool_size | None | Maximum number of threads | +| queue_type | None | Task queue type | +| queue_capacity | MB | task queue capacity | +| queue_size | None | The current occupied size of the task queue | +| fair | None | Queue mode, SynchronousQueue will be used | +| queue_remaining_capacity | MB | task queue remaining size | +| active_count | None | Number of active threads | +| task_count | None | Total number of tasks | +| completed_task_count | None | Number of completed tasks | +| largest_pool_size | None | The largest number of threads in history | +| pool_size | none | current number of threads | +| wait_task_count | None | Number of tasks waiting to be executed | +| reject_count | None | Number of rejected tasks | +| reject_handler_name | None | Reject policy type | +| dynamic | None | Dynamic thread pool or not | +| run_timeout_count | None | Number of running timeout tasks | +| queue_timeout_count | None | Number of tasks waiting for timeout | diff --git a/home/versioned_docs/version-v1.5.x/help/elasticsearch.md b/home/versioned_docs/version-v1.5.x/help/elasticsearch.md index 25078850862..f0c29a8fd9f 100644 --- a/home/versioned_docs/version-v1.5.x/help/elasticsearch.md +++ b/home/versioned_docs/version-v1.5.x/help/elasticsearch.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, monitoring ElasticSearch metrics ] ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6. Note⚠️Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -27,7 +27,7 @@ keywords: [ open source monitoring tool, monitoring ElasticSearch metrics ] #### Metrics Set:health -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------------|-------------|-------------------------------------------| | cluster_name | none | Cluster Name | | status | none | status | @@ -49,7 +49,7 @@ keywords: [ open source monitoring tool, monitoring ElasticSearch metrics ] #### Metrics Set:nodes_detail -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------|-------------|-------------------------| | node_name | none | Node Name | | ip | none | IP Address | diff --git a/home/versioned_docs/version-v1.5.x/help/euleros.md b/home/versioned_docs/version-v1.5.x/help/euleros.md index c63c6c26643..5fad0c856ae 100644 --- a/home/versioned_docs/version-v1.5.x/help/euleros.md +++ b/home/versioned_docs/version-v1.5.x/help/euleros.md @@ -9,7 +9,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo ### Configuration Parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|----------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The IP, IPV6, or domain name of the monitored endpoint. Note ⚠️: Do not include protocol headers (eg: https://, http://). | | Task Name | Identifies the name of this monitoring, ensuring uniqueness. | @@ -28,7 +28,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo #### Metric Set: Basic Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|---------------------------| | Host Name | None | Host name. | | System Version | None | Operating system version. | @@ -36,7 +36,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo #### Metric Set: CPU Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|-------------------------------------------| | info | None | CPU model. | | cores | None | Number of CPU cores. | @@ -47,7 +47,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo #### Metric Set: Memory Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|------------------------------------| | total | Mb | Total memory capacity. | | used | Mb | Used memory by user programs. | @@ -58,7 +58,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo #### Metric Set: Disk Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |---------------|-------------|------------------------------------| | disk_num | None | Total number of disks. | | partition_num | None | Total number of partitions. | @@ -68,7 +68,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, EulerOS Mo #### Metric Set: Interface Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|--------------------------------| | interface_name | None | Name of the network interface. | | receive_bytes | Mb | Inbound data traffic. | diff --git a/home/versioned_docs/version-v1.5.x/help/flink.md b/home/versioned_docs/version-v1.5.x/help/flink.md index 2115a1f0b0f..9fb7c7cb9e1 100644 --- a/home/versioned_docs/version-v1.5.x/help/flink.md +++ b/home/versioned_docs/version-v1.5.x/help/flink.md @@ -7,10 +7,9 @@ keywords: [open source monitoring tool, open source flink monitoring tool] > Collect and monitor the general performance Metrics of Flink. - ### Configuration parameter -| Parameter Name | Parameter Help Description | +| Parameter Name | Parameter Help Description | |---------------------|-----------------------------------------------------------------------------------------------------------------------------| | Monitor Host | The monitored peer IPV4, IPV6, or domain name. Note: Do not include protocol headers (e.g., https://, http://). | | Task Name | Identifier for this monitoring task, name must be unique. | @@ -27,13 +26,10 @@ keywords: [open source monitoring tool, open source flink monitoring tool] #### Metrics Set:Overview -| Metric Name | Metric Unit | Metric Help Description | -|---------------|-------------|-------------------------| -| slots_total | Units | Total number of slots. | -| slots_used | Units | Number of slots used. | -| task_total | Units | Total number of tasks. | -| jobs_running | Units | Number of jobs running. | -| jobs_failed | Units | Number of jobs failed. | - - - +| Metric Name | Metric Unit | Metric Help Description | +|--------------|-------------|-------------------------| +| slots_total | Units | Total number of slots. | +| slots_used | Units | Number of slots used. | +| task_total | Units | Total number of tasks. | +| jobs_running | Units | Number of jobs running. | +| jobs_failed | Units | Number of jobs failed. | diff --git a/home/versioned_docs/version-v1.5.x/help/freebsd.md b/home/versioned_docs/version-v1.5.x/help/freebsd.md index 96d9866743b..d6505d83dd1 100644 --- a/home/versioned_docs/version-v1.5.x/help/freebsd.md +++ b/home/versioned_docs/version-v1.5.x/help/freebsd.md @@ -9,7 +9,7 @@ keywords: [ Open Source Monitoring System, Open Source Operating System Monitori ### Configuration Parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The IPv4, IPv6, or domain name of the monitored peer. Note ⚠️ without the protocol header (eg: https://, http://). | | Task Name | Identifies the name of this monitor, ensuring uniqueness of the name. | @@ -28,7 +28,7 @@ keywords: [ Open Source Monitoring System, Open Source Operating System Monitori #### Metric Set: Basic Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|--------------------------| | Host Name | None | Host name | | System Version | None | Operating system version | @@ -36,7 +36,7 @@ keywords: [ Open Source Monitoring System, Open Source Operating System Monitori #### Metric Set: CPU Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|----------------------------------------------| | info | None | CPU model | | cores | Number | Number of CPU cores | diff --git a/home/versioned_docs/version-v1.5.x/help/ftp.md b/home/versioned_docs/version-v1.5.x/help/ftp.md index 8802d3ab415..72d55e8c1e2 100644 --- a/home/versioned_docs/version-v1.5.x/help/ftp.md +++ b/home/versioned_docs/version-v1.5.x/help/ftp.md @@ -11,7 +11,7 @@ keywords: [ open source monitoring tool, open source ftp server monitoring tool, ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: ftp://). | | Monitoring name | Identify the name of this monitoring, The name needs to be unique. | @@ -28,7 +28,7 @@ keywords: [ open source monitoring tool, open source ftp server monitoring tool, #### Metrics Set:Basic -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------|-------------|----------------------------------------------------------| | Is Active | none | Check if the directory exists and has access permission. | | Response Time | ms | Response Time | diff --git a/home/versioned_docs/version-v1.5.x/help/fullsite.md b/home/versioned_docs/version-v1.5.x/help/fullsite.md index 3246fa31d82..bad94c4b751 100644 --- a/home/versioned_docs/version-v1.5.x/help/fullsite.md +++ b/home/versioned_docs/version-v1.5.x/help/fullsite.md @@ -5,30 +5,30 @@ sidebar_label: Full site Monitor keywords: [open source monitoring tool, open source website monitoring tool, monitoring sitemap metrics] --- -> Available or not to monitor all pages of the website. -> A website often has multiple pages provided by different services. We monitor the full site by collecting the SiteMap exposed by the website. -> Note⚠️ This monitoring requires your website to support SiteMap. We support SiteMap in XML and TXT formats. +> Available or not to monitor all pages of the website. +> A website often has multiple pages provided by different services. We monitor the full site by collecting the SiteMap exposed by the website. +> Note⚠️ This monitoring requires your website to support SiteMap. We support SiteMap in XML and TXT formats. -### Configuration parameter +### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| SiteMap | Relative path of website SiteMap address, eg:/sitemap.xml | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | +| SiteMap | Relative path of website SiteMap address, eg:/sitemap.xml | +| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | -### Collection Metric +### Collection Metric -#### Metric set:summary +#### Metric set:summary -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| url | none | URL path of web page | -| statusCode | none | Response HTTP status code for requesting the website | -| responseTime | ms | Website response time | -| errorMsg | none | Error message feedback after requesting the website | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|------------------------------------------------------| +| url | none | URL path of web page | +| statusCode | none | Response HTTP status code for requesting the website | +| responseTime | ms | Website response time | +| errorMsg | none | Error message feedback after requesting the website | diff --git a/home/versioned_docs/version-v1.5.x/help/guide.md b/home/versioned_docs/version-v1.5.x/help/guide.md index 1d9bac72dd5..8728b7f8e37 100644 --- a/home/versioned_docs/version-v1.5.x/help/guide.md +++ b/home/versioned_docs/version-v1.5.x/help/guide.md @@ -5,19 +5,19 @@ sidebar_label: Help Center --- > Hertzbeat - An open source, real-time monitoring tool with custom-monitor and agentLess. -> Help documents and auxiliary information during use +> Help documents and auxiliary information during use ## 🔬 Monitoring services -> Regularly collect and monitor the performance Metrics exposed by end-to-end services, provide visual interfaces, and process data for alarm and other service scheduling. +> Regularly collect and monitor the performance Metrics exposed by end-to-end services, provide visual interfaces, and process data for alarm and other service scheduling. > Planned monitoring type:application service, database, operating system, cloud native, open source middleware. -### Application service monitoring +### Application service monitoring - 👉 [Website monitoring](website)
- 👉 [HTTP API](api)
- 👉 [PING Connectivity](ping)
- 👉 [Port availability](port)
+ 👉 [Website monitoring](website)
+ 👉 [HTTP API](api)
+ 👉 [PING Connectivity](ping)
+ 👉 [Port availability](port)
 👉 [Full site monitoring](fullsite)
 👉 [SSL Cert monitoring](ssl_cert)
 👉 [DNS monitoring](dns)
@@ -32,7 +32,7 @@ sidebar_label: Help Center  👉 [SpringBoot3.0](springboot3)
 👉 [DynamicTp](dynamic_tp)
-### Database monitoring +### Database monitoring  👉 [MYSQL database monitoring](mysql)
 👉 [MariaDB database monitoring](mariadb)
@@ -51,8 +51,7 @@ sidebar_label: Help Center  👉 [Redis monitoring](redis)
 👉 [Memcached monitoring](memcached)
- -### Operating system monitoring +### Operating system monitoring  👉 [Linux operating system monitoring](linux)
 👉 [Windows operating system monitoring](windows)
@@ -92,35 +91,33 @@ sidebar_label: Help Center ### Network monitoring - 👉 [Huawei-switch](huawei_switch)
+ 👉 [Huawei-switch](huawei_switch)
### Server monitoring - *** -## 💡 Alarm service +## 💡 Alarm service > More liberal threshold alarm configuration (calculation expression), supports email, SMS, WebHook, DingDing, WeChat and FeiShu for alarm notification. > The positioning of alarm service is to trigger the threshold accurately and timely, and the alarm notification can be reached in time. -### Alarm center +### Alarm center > The triggered alarm information center provides query and filtering of alarm deletion, alarm processing, mark unprocessed, alarm level status, etc. -### Alarm configuration +### Alarm configuration > The Metric threshold configuration provides the Metric threshold configuration in the form of expression, which can set the alarm level, trigger times, alarm notification template and whether it is enabled, correlation monitoring and other functions. -More details see 👉 [Threshold alarm](alert_threshold)
-   👉 [Threshold expression](alert_threshold_expr) - -### Alarm notification +More details see 👉 [Threshold alarm](alert_threshold)
+   👉 [Threshold expression](alert_threshold_expr) -> After triggering the alarm information, in addition to being displayed in the alarm center list, it can also be notified to the designated recipient in a specified way (e-mail, wechat and FeiShu etc.) -> Alarm notification provides different types of notification methods, such as email recipient, enterprise wechat robot notification, DingDing robot notification, and FeiShu robot notification. -> After setting the receiver, you need to set the associated alarm notification strategy to configure which alarm information is sent to which receiver. +### Alarm notification +> After triggering the alarm information, in addition to being displayed in the alarm center list, it can also be notified to the designated recipient in a specified way (e-mail, wechat and FeiShu etc.) +> Alarm notification provides different types of notification methods, such as email recipient, enterprise wechat robot notification, DingDing robot notification, and FeiShu robot notification. +> After setting the receiver, you need to set the associated alarm notification strategy to configure which alarm information is sent to which receiver.  👉 [Configure Email Notification](alert_email)
 👉 [Configure Discord Notification](alert_webhook)
@@ -134,4 +131,4 @@ More details see 👉 [Threshold alarm](alert_threshold)
### Plugins - 👉 [Plugin](plugin)
\ No newline at end of file + 👉 [Plugin](plugin)
diff --git a/home/versioned_docs/version-v1.5.x/help/hadoop.md b/home/versioned_docs/version-v1.5.x/help/hadoop.md index f0a458ecc9f..e12a44807ea 100644 --- a/home/versioned_docs/version-v1.5.x/help/hadoop.md +++ b/home/versioned_docs/version-v1.5.x/help/hadoop.md @@ -11,9 +11,10 @@ keywords: [Open Source Monitoring System, Open Source Java Monitoring, Hadoop JV ### Pre-monitoring steps ->You need to enable JMX service in the Hadoop application before monitoring. HertzBeat uses the JMX protocol to collect performance metrics from Hadoop's JVM. +> You need to enable JMX service in the Hadoop application before monitoring. HertzBeat uses the JMX protocol to collect performance metrics from Hadoop's JVM. ### Steps to enable JMX protocol in the Hadoop application + Add JVM parameters when the application starts. ⚠️Note that you can customize the exposed port and external IP. - 1.Enter the hadoop-env.sh configuration file and enter the following command in the terminal: @@ -31,12 +32,12 @@ export HADOOP_OPTS= "$HADOOP_OPTS -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false " ``` -- 3.Save and exit, and then execute "start-all.sh" in the "$HADOOP_HOME/sbin" directory to restart the service. +- 3.Save and exit, and then execute "start-all.sh" in the "$HADOOP_HOME/sbin" directory to restart the service. ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -70,16 +71,15 @@ export HADOOP_OPTS= "$HADOOP_OPTS #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------------|-------------|--------------------------| | LoadedClassCount | | Loaded Class Count | | TotalLoadedClassCount | | Total Loaded Class Count | | UnloadedClassCount | | Unloaded Class Count | - #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|----------------------------| | TotalStartedThreadCount | | Total Started Thread Count | | ThreadCount | | Thread Count | @@ -87,5 +87,3 @@ export HADOOP_OPTS= "$HADOOP_OPTS | DaemonThreadCount | | Daemon Thread Count | | CurrentThreadUserTime | ms | Current Thread User Time | | CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.5.x/help/hbase_master.md b/home/versioned_docs/version-v1.5.x/help/hbase_master.md index 188ad146a5a..d30c8d4bdf7 100644 --- a/home/versioned_docs/version-v1.5.x/help/hbase_master.md +++ b/home/versioned_docs/version-v1.5.x/help/hbase_master.md @@ -4,6 +4,7 @@ title: Monitoring Hbase Master sidebar_label: HbaseMaster Monitoring keywords: [Open Source Monitoring System, Open Source Database Monitoring, HbaseMaster Monitoring] --- + > Collect monitoring data for general performance metrics of Hbase Master. **Protocol: HTTP** @@ -14,13 +15,12 @@ Check the `hbase-site.xml` file to obtain the value of the `hbase.master.info.po ## Configuration Parameters - -| Parameter Name | Parameter Description | -| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | +| Parameter Name | Parameter Description | +|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Target Host | The IPv4, IPv6, or domain name of the monitored peer. Note: without protocol header (e.g., https://, http://). | | Port | The port number of the Hbase master, default is 16010. That is, the value of the`hbase.master.info.port` parameter. | | Task Name | The name identifying this monitoring, which needs to be unique. | -| Query Timeout | Set the connection timeout in ms, the default is 3000 milliseconds. | +| Query Timeout | Set the connection timeout in ms, the default is 3000 milliseconds. | | Collection Interval | The periodic collection interval for monitoring data, in seconds, with the minimum allowable interval being 30 seconds. | | Probe | Whether to probe and check the availability of monitoring before adding new monitoring, and proceed with the addition or modification operation only if the probe is successful. | | Description | Additional notes and descriptions for this monitoring, users can add notes here. | @@ -29,9 +29,8 @@ Check the `hbase-site.xml` file to obtain the value of the `hbase.master.info.po #### Metric Set: server - -| Metric Name | Unit | Metric Description | -| -------------------- | ---- | --------------------------------------- | +| Metric Name | Unit | Metric Description | +|----------------------|------|-----------------------------------------| | numRegionServers | none | Number of currently alive RegionServers | | numDeadRegionServers | none | Number of currently dead RegionServers | | averageLoad | none | Cluster average load | @@ -39,18 +38,16 @@ Check the `hbase-site.xml` file to obtain the value of the `hbase.master.info.po #### Metric Set: Rit - -| Metric Name | Unit | Metric Description | -| -------------------- | ---- | -------------------------------- | +| Metric Name | Unit | Metric Description | +|----------------------|------|----------------------------------| | ritnone | none | Current number of RIT | | ritnoneOverThreshold | none | Number of RIT over the threshold | | ritOldestAge | ms | Duration of the oldest RIT | #### Metric Set: basic - -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | ------------------------------------------- | +| Metric Name | Unit | Metric Description | +|-------------------------|------|---------------------------------------------| | liveRegionServers | none | List of currently active RegionServers | | deadRegionServers | none | List of currently offline RegionServers | | zookeeperQuorum | none | Zookeeper list | diff --git a/home/versioned_docs/version-v1.5.x/help/hbase_regionserver.md b/home/versioned_docs/version-v1.5.x/help/hbase_regionserver.md index 4e676491022..a2940b9048c 100644 --- a/home/versioned_docs/version-v1.5.x/help/hbase_regionserver.md +++ b/home/versioned_docs/version-v1.5.x/help/hbase_regionserver.md @@ -4,6 +4,7 @@ title: Monitoring HBase RegionServer Monitoring sidebar_label: HBase RegionServer Monitoring keywords: [Open-source monitoring system, Open-source database monitoring, RegionServer monitoring] --- + > Collect and monitor common performance metrics for HBase RegionServer. **Protocol:** HTTP @@ -14,13 +15,12 @@ Review the `hbase-site.xml` file to obtain the value of the `hbase.regionserver. ## Configuration Parameters - -| Parameter Name | Parameter Description | -| ------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------- | -| Target Host | The IPV4, IPV6, or domain name of the monitored entity. Note ⚠️ Do not include the protocol header (e.g., https://, http://). | +| Parameter Name | Parameter Description | +|---------------------|----------------------------------------------------------------------------------------------------------------------------------------------------| +| Target Host | The IPV4, IPV6, or domain name of the monitored entity. Note ⚠️ Do not include the protocol header (e.g., https://, http://). | | Port | The port number of the HBase regionserver, default is 16030, i.e., the value of the`hbase.regionserver.info.port` parameter | | Task Name | A unique name to identify this monitoring task. | -| Query Timeout | Set the connection timeout in ms, the default is 3000 milliseconds. | +| Query Timeout | Set the connection timeout in ms, the default is 3000 milliseconds. | | Collection Interval | The interval time for periodic data collection in seconds, with a minimum interval of 30 seconds. | | Probe Before Adding | Whether to probe and check the availability of monitoring before adding new monitoring, only proceed with the addition if the probe is successful. | | Description Note | Additional notes to identify and describe this monitoring, users can add notes here. | @@ -31,9 +31,8 @@ Review the `hbase-site.xml` file to obtain the value of the `hbase.regionserver. #### Metric Set: server - -| Metric Name | Unit | Metric Description | -| --------------------------------- | ----- | ------------------------------------------------------------------------- | +| Metric Name | Unit | Metric Description | +|-----------------------------------|-------|---------------------------------------------------------------------------| | regionCount | None | Number of Regions | | readRequestCount | None | Number of read requests since cluster restart | | writeRequestCount | None | Number of write requests since cluster restart | @@ -74,9 +73,8 @@ Review the `hbase-site.xml` file to obtain the value of the `hbase.regionserver. #### Metric Set: IPC - -| Metric Name | Unit | Metric Description | -| ------------------------- | ---- | -------------------------------------- | +| Metric Name | Unit | Metric Description | +|---------------------------|------|----------------------------------------| | numActiveHandler | None | Current number of RITs | | NotServingRegionException | None | Number of RITs exceeding the threshold | | RegionMovedException | ms | Duration of the oldest RIT | @@ -84,9 +82,8 @@ Review the `hbase-site.xml` file to obtain the value of the `hbase.regionserver. #### Metric Set: JVM - -| Metric Name | Unit | Metric Description | -| -------------------- | ---- | --------------------------------- | +| Metric Name | Unit | Metric Description | +|----------------------|------|-----------------------------------| | MemNonHeapUsedM | None | Current active RegionServer list | | MemNonHeapCommittedM | None | Current offline RegionServer list | | MemHeapUsedM | None | Zookeeper list | diff --git a/home/versioned_docs/version-v1.5.x/help/hdfs_datanode.md b/home/versioned_docs/version-v1.5.x/help/hdfs_datanode.md index 2e09fb9fba1..68e1c4a38de 100644 --- a/home/versioned_docs/version-v1.5.x/help/hdfs_datanode.md +++ b/home/versioned_docs/version-v1.5.x/help/hdfs_datanode.md @@ -15,42 +15,42 @@ Retrieve the HTTP monitoring port for the Apache HDFS DataNode. Value: `dfs.data ## Configuration Parameters -| Parameter Name | Parameter Description | -| ----------------- |-------------------------------------------------------| -| Target Host | IP(v4 or v6) or domain name of the target to be monitored. Exclude protocol. | -| Port | Monitoring port number for Apache HDFS DataNode, default is 50075. | -| Query Timeout | Timeout for querying Apache HDFS DataNode, in milliseconds, default is 6000 milliseconds. | +| Parameter Name | Parameter Description | +|-----------------------------|-------------------------------------------------------------------------------------------| +| Target Host | IP(v4 or v6) or domain name of the target to be monitored. Exclude protocol. | +| Port | Monitoring port number for Apache HDFS DataNode, default is 50075. | +| Query Timeout | Timeout for querying Apache HDFS DataNode, in milliseconds, default is 6000 milliseconds. | | Metrics Collection Interval | Time interval for monitoring data collection, in seconds, minimum interval is 30 seconds. | -| Probe Before Monitoring | Whether to probe and check monitoring availability before adding. | -| Description/Remarks | Additional description and remarks for this monitoring. | +| Probe Before Monitoring | Whether to probe and check monitoring availability before adding. | +| Description/Remarks | Additional description and remarks for this monitoring. | ### Metrics Collected #### Metric Set: FSDatasetState -| Metric Name | Metric Unit | Metric Description | -| ------------ | ----------- | ------------------------------ | -| DfsUsed | GB | DataNode HDFS usage | -| Remaining | GB | Remaining space on DataNode HDFS | -| Capacity | GB | Total capacity of DataNode HDFS | +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|----------------------------------| +| DfsUsed | GB | DataNode HDFS usage | +| Remaining | GB | Remaining space on DataNode HDFS | +| Capacity | GB | Total capacity of DataNode HDFS | #### Metric Set: JvmMetrics -| Metric Name | Metric Unit | Metric Description | -| ---------------------- | ----------- | ----------------------------------------- | -| MemNonHeapUsedM | MB | Current usage of NonHeapMemory by JVM | -| MemNonHeapCommittedM | MB | Committed size of NonHeapMemory configured in JVM | -| MemHeapUsedM | MB | Current usage of HeapMemory by JVM | -| MemHeapCommittedM | MB | Committed size of HeapMemory by JVM | -| MemHeapMaxM | MB | Maximum size of HeapMemory configured in JVM | -| MemMaxM | MB | Maximum memory available for JVM at runtime | -| ThreadsRunnable | Count | Number of threads in RUNNABLE state | -| ThreadsBlocked | Count | Number of threads in BLOCKED state | -| ThreadsWaiting | Count | Number of threads in WAITING state | -| ThreadsTimedWaiting | Count | Number of threads in TIMED WAITING state | +| Metric Name | Metric Unit | Metric Description | +|----------------------|-------------|---------------------------------------------------| +| MemNonHeapUsedM | MB | Current usage of NonHeapMemory by JVM | +| MemNonHeapCommittedM | MB | Committed size of NonHeapMemory configured in JVM | +| MemHeapUsedM | MB | Current usage of HeapMemory by JVM | +| MemHeapCommittedM | MB | Committed size of HeapMemory by JVM | +| MemHeapMaxM | MB | Maximum size of HeapMemory configured in JVM | +| MemMaxM | MB | Maximum memory available for JVM at runtime | +| ThreadsRunnable | Count | Number of threads in RUNNABLE state | +| ThreadsBlocked | Count | Number of threads in BLOCKED state | +| ThreadsWaiting | Count | Number of threads in WAITING state | +| ThreadsTimedWaiting | Count | Number of threads in TIMED WAITING state | #### Metric Set: runtime -| Metric Name | Metric Unit | Metric Description | -| ------------ | ----------- | ------------------ | -| StartTime | | Startup time | +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|--------------------| +| StartTime | | Startup time | diff --git a/home/versioned_docs/version-v1.5.x/help/hdfs_namenode.md b/home/versioned_docs/version-v1.5.x/help/hdfs_namenode.md index 1afd6d4b1ae..975c2e5d935 100644 --- a/home/versioned_docs/version-v1.5.x/help/hdfs_namenode.md +++ b/home/versioned_docs/version-v1.5.x/help/hdfs_namenode.md @@ -15,78 +15,78 @@ Ensure that you have obtained the JMX monitoring port for the HDFS NameNode. ## Configuration Parameters -| Parameter Name | Parameter Description | -| ------------------ |--------------------------------------------------------| -| Target Host | The IPv4, IPv6, or domain name of the target being monitored. Exclude protocol headers. | -| Port | The monitoring port number of the HDFS NameNode, default is 50070. | -| Query Timeout | Timeout for querying the HDFS NameNode, in milliseconds, default is 6000 milliseconds. | +| Parameter Name | Parameter Description | +|-----------------------------|-------------------------------------------------------------------------------------------| +| Target Host | The IPv4, IPv6, or domain name of the target being monitored. Exclude protocol headers. | +| Port | The monitoring port number of the HDFS NameNode, default is 50070. | +| Query Timeout | Timeout for querying the HDFS NameNode, in milliseconds, default is 6000 milliseconds. | | Metrics Collection Interval | Time interval for collecting monitoring data, in seconds, minimum interval is 30 seconds. | -| Probe Before Monitoring | Whether to probe and check the availability of monitoring before adding it. | -| Description/Remarks | Additional description and remarks for this monitoring. | +| Probe Before Monitoring | Whether to probe and check the availability of monitoring before adding it. | +| Description/Remarks | Additional description and remarks for this monitoring. | ### Collected Metrics #### Metric Set: FSNamesystem -| Metric Name | Metric Unit | Metric Description | -| --------------------------- | ----------- | ------------------------------------- | -| CapacityTotal | | Total cluster storage capacity | -| CapacityTotalGB | GB | Total cluster storage capacity | -| CapacityUsed | | Used cluster storage capacity | -| CapacityUsedGB | GB | Used cluster storage capacity | -| CapacityRemaining | | Remaining cluster storage capacity | -| CapacityRemainingGB | GB | Remaining cluster storage capacity | -| CapacityUsedNonDFS | | Non-HDFS usage of cluster capacity | -| TotalLoad | | Total client connections in the cluster | -| FilesTotal | | Total number of files in the cluster | -| BlocksTotal | | Total number of BLOCKs | -| PendingReplicationBlocks | | Number of blocks awaiting replication | -| UnderReplicatedBlocks | | Number of blocks with insufficient replicas | -| CorruptBlocks | | Number of corrupt blocks | -| ScheduledReplicationBlocks | | Number of blocks scheduled for replication | -| PendingDeletionBlocks | | Number of blocks awaiting deletion | -| ExcessBlocks | | Number of excess blocks | -| PostponedMisreplicatedBlocks| | Number of misreplicated blocks postponed for processing | -| NumLiveDataNodes | | Number of live data nodes in the cluster | -| NumDeadDataNodes | | Number of data nodes marked as dead | -| NumDecomLiveDataNodes | | Number of decommissioned live nodes | -| NumDecomDeadDataNodes | | Number of decommissioned dead nodes | -| NumDecommissioningDataNodes | | Number of nodes currently being decommissioned | -| TransactionsSinceLastCheckpoint | | Number of transactions since the last checkpoint | -| LastCheckpointTime | | Time of the last checkpoint | -| PendingDataNodeMessageCount| | Number of DATANODE requests queued in the standby namenode | +| Metric Name | Metric Unit | Metric Description | +|---------------------------------|-------------|------------------------------------------------------------| +| CapacityTotal | | Total cluster storage capacity | +| CapacityTotalGB | GB | Total cluster storage capacity | +| CapacityUsed | | Used cluster storage capacity | +| CapacityUsedGB | GB | Used cluster storage capacity | +| CapacityRemaining | | Remaining cluster storage capacity | +| CapacityRemainingGB | GB | Remaining cluster storage capacity | +| CapacityUsedNonDFS | | Non-HDFS usage of cluster capacity | +| TotalLoad | | Total client connections in the cluster | +| FilesTotal | | Total number of files in the cluster | +| BlocksTotal | | Total number of BLOCKs | +| PendingReplicationBlocks | | Number of blocks awaiting replication | +| UnderReplicatedBlocks | | Number of blocks with insufficient replicas | +| CorruptBlocks | | Number of corrupt blocks | +| ScheduledReplicationBlocks | | Number of blocks scheduled for replication | +| PendingDeletionBlocks | | Number of blocks awaiting deletion | +| ExcessBlocks | | Number of excess blocks | +| PostponedMisreplicatedBlocks | | Number of misreplicated blocks postponed for processing | +| NumLiveDataNodes | | Number of live data nodes in the cluster | +| NumDeadDataNodes | | Number of data nodes marked as dead | +| NumDecomLiveDataNodes | | Number of decommissioned live nodes | +| NumDecomDeadDataNodes | | Number of decommissioned dead nodes | +| NumDecommissioningDataNodes | | Number of nodes currently being decommissioned | +| TransactionsSinceLastCheckpoint | | Number of transactions since the last checkpoint | +| LastCheckpointTime | | Time of the last checkpoint | +| PendingDataNodeMessageCount | | Number of DATANODE requests queued in the standby namenode | #### Metric Set: RPC -| Metric Name | Metric Unit | Metric Description | -| ------------------------- | ----------- | -------------------------- | -| ReceivedBytes | | Data receiving rate | -| SentBytes | | Data sending rate | -| RpcQueueTimeNumOps | | RPC call rate | +| Metric Name | Metric Unit | Metric Description | +|--------------------|-------------|---------------------| +| ReceivedBytes | | Data receiving rate | +| SentBytes | | Data sending rate | +| RpcQueueTimeNumOps | | RPC call rate | #### Metric Set: runtime -| Metric Name | Metric Unit | Metric Description | -| ------------------------- | ----------- | ------------------- | -| StartTime | | Start time | +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|--------------------| +| StartTime | | Start time | #### Metric Set: JvmMetrics -| Metric Name | Metric Unit | Metric Description | -| ------------------------- | ----------- | ------------------- | -| MemNonHeapUsedM | MB | Current usage of NonHeapMemory by JVM | -| MemNonHeapCommittedM | MB | Committed NonHeapMemory by JVM | -| MemHeapUsedM | MB | Current usage of HeapMemory by JVM | -| MemHeapCommittedM | MB | Committed HeapMemory by JVM | -| MemHeapMaxM | MB | Maximum HeapMemory configured for JVM | -| MemMaxM | MB | Maximum memory that can be used by JVM | -| GcCountParNew | Count | Number of ParNew GC events | -| GcTimeMillisParNew | Milliseconds| Time spent in ParNew GC | -| GcCountConcurrentMarkSweep| Count | Number of ConcurrentMarkSweep GC events| -| GcTimeMillisConcurrentMarkSweep | Milliseconds | Time spent in ConcurrentMarkSweep GC | -| GcCount | Count | Total number of GC events | -| GcTimeMillis | Milliseconds| Total time spent in GC events | -| ThreadsRunnable | Count | Number of threads in RUNNABLE state | -| ThreadsBlocked | Count | Number of threads in BLOCKED state | -| ThreadsWaiting | Count | Number of threads in WAITING state | -| ThreadsTimedWaiting | Count | Number of threads in TIMED WAITING state| +| Metric Name | Metric Unit | Metric Description | +|---------------------------------|--------------|------------------------------------------| +| MemNonHeapUsedM | MB | Current usage of NonHeapMemory by JVM | +| MemNonHeapCommittedM | MB | Committed NonHeapMemory by JVM | +| MemHeapUsedM | MB | Current usage of HeapMemory by JVM | +| MemHeapCommittedM | MB | Committed HeapMemory by JVM | +| MemHeapMaxM | MB | Maximum HeapMemory configured for JVM | +| MemMaxM | MB | Maximum memory that can be used by JVM | +| GcCountParNew | Count | Number of ParNew GC events | +| GcTimeMillisParNew | Milliseconds | Time spent in ParNew GC | +| GcCountConcurrentMarkSweep | Count | Number of ConcurrentMarkSweep GC events | +| GcTimeMillisConcurrentMarkSweep | Milliseconds | Time spent in ConcurrentMarkSweep GC | +| GcCount | Count | Total number of GC events | +| GcTimeMillis | Milliseconds | Total time spent in GC events | +| ThreadsRunnable | Count | Number of threads in RUNNABLE state | +| ThreadsBlocked | Count | Number of threads in BLOCKED state | +| ThreadsWaiting | Count | Number of threads in WAITING state | +| ThreadsTimedWaiting | Count | Number of threads in TIMED WAITING state | diff --git a/home/versioned_docs/version-v1.5.x/help/hive.md b/home/versioned_docs/version-v1.5.x/help/hive.md index ec0d7dee398..1293fbd3802 100644 --- a/home/versioned_docs/version-v1.5.x/help/hive.md +++ b/home/versioned_docs/version-v1.5.x/help/hive.md @@ -16,6 +16,7 @@ If you want to monitor information in `Apache Hive` with this monitoring type, y ```shell hive --service metastore & ``` + **2. Enable hive server2:** ```shell @@ -24,55 +25,52 @@ hive --service hiveserver2 & ### Configure parameters -| Parameter name | Parameter Help describes the | -| ------------ |-------------------------------------------------------------------------------------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 10002. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | +| Parameter name | Parameter Help describes the | +|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| Port | The default port provided by the database is 10002. | +| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | | The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric Collection: basic -| Metric Name | metric unit | Metrics help describe | -|-------------| -------- |--------------------------------| -| vm_name | None | The name of the virtual machine (VM) running HiveServer2. | -| vm_vendor | None | The vendor or provider of the virtual machine. | -| vm_version | None | The version of the virtual machine. | -| up_time | None | The duration for which HiveServer2 has been running. | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-----------------------------------------------------------| +| vm_name | None | The name of the virtual machine (VM) running HiveServer2. | +| vm_vendor | None | The vendor or provider of the virtual machine. | +| vm_version | None | The version of the virtual machine. | +| up_time | None | The duration for which HiveServer2 has been running. | #### metric Collection: enviroment -| Metric Name | metric unit | Metrics help describe | -|-----------------| -------- |-------------------------------------| -| https_proxyPort | None | The port number used for HTTPS proxy communication. | -| os_name | None | The name of the operating system on which HiveServer2 is running. | -| os_version | None | The version of the operating system.| -| os_arch | None | The architecture of the operating system.| -| java_runtime_name | None | The name of the Java runtime environment used by HiveServer2. | -| java_runtime_version | None | The version of the Java runtime environment. | +| Metric Name | metric unit | Metrics help describe | +|----------------------|-------------|-------------------------------------------------------------------| +| https_proxyPort | None | The port number used for HTTPS proxy communication. | +| os_name | None | The name of the operating system on which HiveServer2 is running. | +| os_version | None | The version of the operating system. | +| os_arch | None | The architecture of the operating system. | +| java_runtime_name | None | The name of the Java runtime environment used by HiveServer2. | +| java_runtime_version | None | The version of the Java runtime environment. | #### metric Collection: thread -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| thread_count | None | The current number of threads being used by HiveServer2. | -| total_started_thread | None | The total count of threads started by HiveServer2 since its launch. | -| peak_thread_count | None | The highest number of threads used by HiveServer2 at any given time. | -| daemon_thread_count | None | The number of daemon threads currently active in HiveServer2. | +| Metric Name | metric unit | Metrics help describe | +|----------------------|-------------|----------------------------------------------------------------------| +| thread_count | None | The current number of threads being used by HiveServer2. | +| total_started_thread | None | The total count of threads started by HiveServer2 since its launch. | +| peak_thread_count | None | The highest number of threads used by HiveServer2 at any given time. | +| daemon_thread_count | None | The number of daemon threads currently active in HiveServer2. | #### metric Collection: code_cache -| Metric Name | metric unit | Metrics help describe | -|-------------|-------------|--------------------------------------------| -| committed | MB | The amount of memory currently allocated for the memory pool. | -| init | MB | The initial amount of memory requested for the memory pool. | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-------------------------------------------------------------------------| +| committed | MB | The amount of memory currently allocated for the memory pool. | +| init | MB | The initial amount of memory requested for the memory pool. | | max | MB | The maximum amount of memory that can be allocated for the memory pool. | -| used | MB | The amount of memory currently being used by the memory pool. | - - - +| used | MB | The amount of memory currently being used by the memory pool. | diff --git a/home/versioned_docs/version-v1.5.x/help/http_sd.md b/home/versioned_docs/version-v1.5.x/help/http_sd.md index 3278936d66d..957b0f88bf6 100644 --- a/home/versioned_docs/version-v1.5.x/help/http_sd.md +++ b/home/versioned_docs/version-v1.5.x/help/http_sd.md @@ -9,46 +9,43 @@ keywords: [open source monitoring tool, open source java monitoring tool, monito **Protocol Use:httpsd** -# Steps to monitor micro services +## Steps to monitor micro services 1. Make sure your **Register center** is available > We currently support for `Consul` and `Nacos`. 2. Add http_sd monitor and enter necessary info about **Register center** on Hertzbeat, such as host, port and so on. - 3. Click **OK** -# Configuration parameter +## Configuration parameter -| Parameter name | Parameter help description | -| --------------------- | ------------------------------------------------------------ | -| Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Task name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Register center | -| Discovery Client Type | Select one Register center that you want to monitor | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Parameter name | Parameter help description | +|-----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Task name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Register center | +| Discovery Client Type | Select one Register center that you want to monitor | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | | Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | -# Collection Metrics +## Collection Metrics ## Metrics Set:server -| Metric name | Metric unit | Metric help description | -| ------------- | ----------- | ----------------------- | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|-------------------------| | Address | | | | Port | | | | Response Time | ms | | ## Metrics Set:service -| Metric name | Metric unit | Metric help description | -| ------------- | ----------- | -------------------------------- | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|----------------------------------| | Service Id | | | | Service Name | | | | Address | | | | Port | | | | Health Status | | Current health status of service | - - diff --git a/home/versioned_docs/version-v1.5.x/help/huawei_switch.md b/home/versioned_docs/version-v1.5.x/help/huawei_switch.md index 2e9982c5ef9..6bc99169bce 100644 --- a/home/versioned_docs/version-v1.5.x/help/huawei_switch.md +++ b/home/versioned_docs/version-v1.5.x/help/huawei_switch.md @@ -11,7 +11,7 @@ keywords: [ open source monitoring tool, network monitoring, Huawei switch ] ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |-------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Task Name | Identify the name of this monitoring. The name needs to be unique | @@ -25,8 +25,8 @@ keywords: [ open source monitoring tool, network monitoring, Huawei switch ] | SNMP privPassphrase | For SNMP v3, SNMP encrypted passwords | | privPassword Encryption | For SNMP v3, SNMP encrypted algorithm | | Timeout | Set the timeout time when querying unresponsive data, in milliseconds, the default is 6000 milliseconds | -| Intervals | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Description | For more information about identifying and describing this monitoring, users can note information here | +| Intervals | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Description | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric @@ -37,7 +37,7 @@ This document only introduces the monitoring indicators queried in the monitor t #### Metric set: huawei_core -| Metric Name | Metric Unit | Metric Help Description | +| Metric Name | Metric Unit | Metric Help Description | |---------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | ifIndex | none | Interface index. This value is greater than zero and globally unique. | | ifDescr | none | A textual string containing information about the interface. This string should include the name of the manufacturer, the product name and the version of the interface hardware/software. | @@ -47,7 +47,7 @@ This document only introduces the monitoring indicators queried in the monitor t | ifInDiscards | none | The number of inbound packets which were chosen to be discarded even though no errors had been detected to prevent their being deliverable to a higher-layer protocol. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | | ifInErrors | none | For packet-oriented interfaces, the number of inbound packets that contained errors preventing them from being deliverable to a higher-layer protocol. For character-oriented or fixed-length interfaces, the number of inbound transmission units that contained errors preventing them from being deliverable to a higher-layer protocol. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | | ifOutOctets | octets | The total number of octets transmitted out of the interface, including framing characters. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | -| ifOutDiscards | none | The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | +| ifOutDiscards | none | The number of outbound packets which were chosen to be discarded even though no errors had been detected to prevent their being transmitted. One possible reason for discarding such a packet could be to free up buffer space. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | | ifOutErrors | none | For packet-oriented interfaces, the number of outbound packets that could not be transmitted because of errors. For character-oriented or fixed-length interfaces, the number of outbound transmission units that could not be transmitted because of errors. Discontinuities in the value of this counter can occur at re-initialization of the management system, and at other times as indicated by the value of ifCounterDiscontinuityTime. | | ifAdminStatus | none | The desired state of the interface. The testing(3) state indicates that no operational packets can be passed. When a managed system initializes, all interfaces start with ifAdminStatus in the down(2) state. As a result of either explicit management action or per configuration information retained by the managed system, ifAdminStatus is then changed to either the up(1) or testing(3) states (or remains in the down(2) state). | | ifOperStatus | none | The current operational state of the interface. The testing(3) state indicates that no operational packets can be passed. If ifAdminStatus is down(2) then ifOperStatus should be down(2). If ifAdminStatus is changed to up(1) then ifOperStatus should change to up(1) if the interface is ready to transmit and receive network traffic; it should change to dormant(5) if the interface is waiting for external actions (such as a serial line waiting for an incoming connection); it should remain in the down(2) state if and only if there is a fault that prevents it from going to the up(1) state; it should remain in the notPresent(6) state if the interface has missing (typically, hardware) components. | diff --git a/home/versioned_docs/version-v1.5.x/help/hugegraph.md b/home/versioned_docs/version-v1.5.x/help/hugegraph.md index 4fca13f4e00..90334a4bc03 100644 --- a/home/versioned_docs/version-v1.5.x/help/hugegraph.md +++ b/home/versioned_docs/version-v1.5.x/help/hugegraph.md @@ -4,6 +4,7 @@ title: Monitoring HugeGraph Monitoring sidebar_label: Apache HugeGraph keywords: [Open Source Monitoring System, Open Source Database Monitoring, HugeGraph Monitoring] --- + > Collect and monitor the general performance metrics of HugeGraph **Protocol used: HTTP** @@ -14,137 +15,126 @@ Check the `rest-server.properties` file to obtain the value of the `restserver_p ## Configuration Parameters - -| Parameter Name | Parameter Description | -|------------------|--------------------------------------------------------| -| Target Host | The IPv4, IPv6, or domain name of the monitored endpoint. Note ⚠️ Do not include protocol headers (eg: https://, http://). | -| Port | Port number of the HugeGraph restserver, default is 8080. i.e., the value of the `restserver_port` parameter | -| Enable SSL | Enable SSL usage | -| Base Path | Base path, default is: /metrics, usually does not need to be modified | -| Task Name | Identifies the name of this monitoring, ensuring uniqueness. | -| Collection Interval | Interval for periodically collecting data for monitoring, in seconds, with a minimum interval of 30 seconds | -| Probe Enabled | Whether to probe before adding new monitoring, only continue with add/modify operations if the probe is successful | -| Description | Additional identification and description of this monitoring, users can add information here | +| Parameter Name | Parameter Description | +|---------------------|----------------------------------------------------------------------------------------------------------------------------| +| Target Host | The IPv4, IPv6, or domain name of the monitored endpoint. Note ⚠️ Do not include protocol headers (eg: https://, http://). | +| Port | Port number of the HugeGraph restserver, default is 8080. i.e., the value of the `restserver_port` parameter | +| Enable SSL | Enable SSL usage | +| Base Path | Base path, default is: /metrics, usually does not need to be modified | +| Task Name | Identifies the name of this monitoring, ensuring uniqueness. | +| Collection Interval | Interval for periodically collecting data for monitoring, in seconds, with a minimum interval of 30 seconds | +| Probe Enabled | Whether to probe before adding new monitoring, only continue with add/modify operations if the probe is successful | +| Description | Additional identification and description of this monitoring, users can add information here | ### Metrics Collection #### Metric Set: gauges -| Metric Name | Metric Unit | Metric Description | -| ------------------------------------ | -------- | --------------------------------- | -| edge-hugegraph-capacity | NONE | Indicates the capacity limit of edges in the current graph | -| edge-hugegraph-expire | NONE | Indicates the expiration time of edge data | -| edge-hugegraph-hits | NONE | Indicates the number of hits in the edge data cache | -| edge-hugegraph-miss | NONE | Indicates the number of misses in the edge data cache | -| edge-hugegraph-size | NONE | Indicates the number of edges in the current graph | -| instances | NONE | Indicates the number of currently running HugeGraph instances| -| schema-id-hugegraph-capacity | NONE | Indicates the capacity limit of schema IDs in the graph | -| schema-id-hugegraph-expire | NONE | Indicates the expiration time of schema ID data | -| schema-id-hugegraph-hits | NONE | Indicates the number of hits in the schema ID data cache| -| schema-id-hugegraph-miss | NONE | Indicates the number of misses in the schema ID data cache| -| schema-id-hugegraph-size | NONE | Indicates the number of schema IDs in the current graph | -| schema-name-hugegraph-capacity | NONE | Indicates the capacity limit of schema names in the graph | -| schema-name-hugegraph-expire | NONE | Indicates the expiration time of schema name data | -| schema-name-hugegraph-hits | NONE | Indicates the number of hits in the schema name data cache| -| schema-name-hugegraph-miss | NONE | Indicates the number of misses in the schema name data cache| -| schema-name-hugegraph-size | NONE | Indicates the number of schema names in the current graph | -| token-hugegraph-capacity | NONE | Indicates the capacity limit of tokens in the graph | -| token-hugegraph-expire | NONE | Indicates the expiration time of token data | -| token-hugegraph-hits | NONE | Indicates the number of hits in the token data cache | -| token-hugegraph-miss | NONE | Indicates the number of misses in the token data cache | -| token-hugegraph-size | NONE | Indicates the number of tokens in the current graph | -| users-hugegraph-capacity | NONE | Indicates the capacity limit of users in the graph | -| users-hugegraph-expire | NONE | Indicates the expiration time of user data | -| users-hugegraph-hits | NONE | Indicates the number of hits in the user data cache | -| users-hugegraph-miss | NONE | Indicates the number of misses in the user data cache | -| users-hugegraph-size | NONE | Indicates the number of users in the current graph | -| users_pwd-hugegraph-capacity | NONE | Indicates the capacity limit of user passwords | -| users_pwd-hugegraph-expire | NONE | Indicates the expiration time of user password data | -| users_pwd-hugegraph-hits | NONE | Indicates the number of hits in the user password data cache| -| users_pwd-hugegraph-miss | NONE | Indicates the number of misses in the user password data cache| -| users_pwd-hugegraph-size | NONE | Indicates the number of user passwords in the current graph | -| vertex-hugegraph-capacity | NONE | Indicates the capacity limit of vertices in the graph | -| vertex-hugegraph-expire | NONE | Indicates the expiration time of vertex data | -| vertex-hugegraph-hits | NONE | Indicates the number of hits in the vertex data cache | -| vertex-hugegraph-miss | NONE | Indicates the number of misses in the vertex data cache | -| vertex-hugegraph-size | NONE | Indicates the number of vertices in the current graph | -| batch-write-threads | NONE | Indicates the number of threads for batch write operations | -| max-write-threads | NONE | Indicates the maximum number of threads for write operations | -| pending-tasks | NONE | Indicates the number of pending tasks | -| workers | NONE | Indicates the current number of worker threads | -| average-load-penalty | NONE | Indicates the average load penalty | -| estimated-size | NONE | Indicates the estimated data size | -| eviction-count | NONE | Indicates the number of evicted data entries | -| eviction-weight | NONE | Indicates the weight of evicted data | -| hit-count | NONE | Indicates the total cache hits | -| hit-rate | NONE | Indicates the cache hit rate | -| load-count | NONE | Indicates the number of data loads | -| load-failure-count | NONE | Indicates the number of data load failures | -| load-failure-rate | NONE | Indicates the data load failure rate | -| load-success-count | NONE | Indicates the number of successful data loads | -| long-run-compilation-count | NONE | Indicates the number of long-running compilations | -| miss-count | NONE | Indicates the total cache misses | -| miss-rate | NONE | Indicates the cache miss rate | -| request-count | NONE | Indicates the total request count | -| total-load-time | NONE | Indicates the total data load time | -| sessions | NONE | Indicates the current number of active sessions | - - - +| Metric Name | Metric Unit | Metric Description | +|--------------------------------|-------------|----------------------------------------------------------------| +| edge-hugegraph-capacity | NONE | Indicates the capacity limit of edges in the current graph | +| edge-hugegraph-expire | NONE | Indicates the expiration time of edge data | +| edge-hugegraph-hits | NONE | Indicates the number of hits in the edge data cache | +| edge-hugegraph-miss | NONE | Indicates the number of misses in the edge data cache | +| edge-hugegraph-size | NONE | Indicates the number of edges in the current graph | +| instances | NONE | Indicates the number of currently running HugeGraph instances | +| schema-id-hugegraph-capacity | NONE | Indicates the capacity limit of schema IDs in the graph | +| schema-id-hugegraph-expire | NONE | Indicates the expiration time of schema ID data | +| schema-id-hugegraph-hits | NONE | Indicates the number of hits in the schema ID data cache | +| schema-id-hugegraph-miss | NONE | Indicates the number of misses in the schema ID data cache | +| schema-id-hugegraph-size | NONE | Indicates the number of schema IDs in the current graph | +| schema-name-hugegraph-capacity | NONE | Indicates the capacity limit of schema names in the graph | +| schema-name-hugegraph-expire | NONE | Indicates the expiration time of schema name data | +| schema-name-hugegraph-hits | NONE | Indicates the number of hits in the schema name data cache | +| schema-name-hugegraph-miss | NONE | Indicates the number of misses in the schema name data cache | +| schema-name-hugegraph-size | NONE | Indicates the number of schema names in the current graph | +| token-hugegraph-capacity | NONE | Indicates the capacity limit of tokens in the graph | +| token-hugegraph-expire | NONE | Indicates the expiration time of token data | +| token-hugegraph-hits | NONE | Indicates the number of hits in the token data cache | +| token-hugegraph-miss | NONE | Indicates the number of misses in the token data cache | +| token-hugegraph-size | NONE | Indicates the number of tokens in the current graph | +| users-hugegraph-capacity | NONE | Indicates the capacity limit of users in the graph | +| users-hugegraph-expire | NONE | Indicates the expiration time of user data | +| users-hugegraph-hits | NONE | Indicates the number of hits in the user data cache | +| users-hugegraph-miss | NONE | Indicates the number of misses in the user data cache | +| users-hugegraph-size | NONE | Indicates the number of users in the current graph | +| users_pwd-hugegraph-capacity | NONE | Indicates the capacity limit of user passwords | +| users_pwd-hugegraph-expire | NONE | Indicates the expiration time of user password data | +| users_pwd-hugegraph-hits | NONE | Indicates the number of hits in the user password data cache | +| users_pwd-hugegraph-miss | NONE | Indicates the number of misses in the user password data cache | +| users_pwd-hugegraph-size | NONE | Indicates the number of user passwords in the current graph | +| vertex-hugegraph-capacity | NONE | Indicates the capacity limit of vertices in the graph | +| vertex-hugegraph-expire | NONE | Indicates the expiration time of vertex data | +| vertex-hugegraph-hits | NONE | Indicates the number of hits in the vertex data cache | +| vertex-hugegraph-miss | NONE | Indicates the number of misses in the vertex data cache | +| vertex-hugegraph-size | NONE | Indicates the number of vertices in the current graph | +| batch-write-threads | NONE | Indicates the number of threads for batch write operations | +| max-write-threads | NONE | Indicates the maximum number of threads for write operations | +| pending-tasks | NONE | Indicates the number of pending tasks | +| workers | NONE | Indicates the current number of worker threads | +| average-load-penalty | NONE | Indicates the average load penalty | +| estimated-size | NONE | Indicates the estimated data size | +| eviction-count | NONE | Indicates the number of evicted data entries | +| eviction-weight | NONE | Indicates the weight of evicted data | +| hit-count | NONE | Indicates the total cache hits | +| hit-rate | NONE | Indicates the cache hit rate | +| load-count | NONE | Indicates the number of data loads | +| load-failure-count | NONE | Indicates the number of data load failures | +| load-failure-rate | NONE | Indicates the data load failure rate | +| load-success-count | NONE | Indicates the number of successful data loads | +| long-run-compilation-count | NONE | Indicates the number of long-running compilations | +| miss-count | NONE | Indicates the total cache misses | +| miss-rate | NONE | Indicates the cache miss rate | +| request-count | NONE | Indicates the total request count | +| total-load-time | NONE | Indicates the total data load time | +| sessions | NONE | Indicates the current number of active sessions | #### Metric Set: counters - - -| Metric Name | Metric Unit | Metric Description | -| --------------------------------------------- | -------- | ---------------------------------------- | -| GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests | -| GET-TOTAL_COUNTER | NONE | Records the total number of GET requests | -| favicon-ico-GET-FAILED_COUNTER | NONE | Records the number of failed GET requests to retrieve favicon.ico | -| favicon-ico-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve favicon.ico | -| graphs-HEAD-FAILED_COUNTER | NONE | Records the number of failed HEAD requests for graphs resources | -| graphs-HEAD-SUCCESS_COUNTER | NONE | Records the number of successful HEAD requests for graphs resources | -| graphs-HEAD-TOTAL_COUNTER | NONE | Records the total number of HEAD requests for graphs resources | -| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests for vertices in HugeGraph graphs | -| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests for vertices in HugeGraph graphs | -| metrics-GET-FAILED_COUNTER | NONE | Records the number of failed GET requests to retrieve metrics | -| metrics-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics | -| metrics-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests to retrieve metrics | -| metrics-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics | -| metrics-gauges-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests to retrieve metrics gauges | -| metrics-gauges-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics gauges | - - - +| Metric Name | Metric Unit | Metric Description | +|-----------------------------------------------------|-------------|--------------------------------------------------------------------------------| +| GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests | +| GET-TOTAL_COUNTER | NONE | Records the total number of GET requests | +| favicon-ico-GET-FAILED_COUNTER | NONE | Records the number of failed GET requests to retrieve favicon.ico | +| favicon-ico-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve favicon.ico | +| graphs-HEAD-FAILED_COUNTER | NONE | Records the number of failed HEAD requests for graphs resources | +| graphs-HEAD-SUCCESS_COUNTER | NONE | Records the number of successful HEAD requests for graphs resources | +| graphs-HEAD-TOTAL_COUNTER | NONE | Records the total number of HEAD requests for graphs resources | +| graphs-hugegraph-graph-vertices-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests for vertices in HugeGraph graphs | +| graphs-hugegraph-graph-vertices-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests for vertices in HugeGraph graphs | +| metrics-GET-FAILED_COUNTER | NONE | Records the number of failed GET requests to retrieve metrics | +| metrics-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics | +| metrics-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests to retrieve metrics | +| metrics-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics | +| metrics-gauges-GET-SUCCESS_COUNTER | NONE | Records the number of successful GET requests to retrieve metrics gauges | +| metrics-gauges-GET-TOTAL_COUNTER | NONE | Records the total number of GET requests to retrieve metrics gauges | #### Metric Set: system - - -| Metric Name | Metric Unit | Metric Description | -| --------------------------------------------- | -------- | -------------------------------------------------- | -| mem | NONE | Indicates the total memory of the system | -| mem_total | NONE | Indicates the total memory of the system (same as mem) | -| mem_used | NONE | Indicates the currently used memory of the system | -| mem_free | NONE | Indicates the free memory of the system | -| mem_unit | NONE | Indicates the unit of memory (such as bytes, kilobytes, megabytes, etc.) | -| processors | NONE | Indicates the number of processors in the system | -| uptime | NONE | Indicates the system uptime, i.e., the time since booting | -| systemload_average | NONE | Indicates the average system load, reflecting the system's busyness | -| heap_committed | NONE | Indicates the committed size of JVM heap memory, i.e., the guaranteed heap memory size available to JVM | -| heap_init | NONE | Indicates the initial size of JVM heap memory | -| heap_used | NONE | Indicates the currently used JVM heap memory size | -| heap_max | NONE | Indicates the maximum available size of JVM heap memory | -| nonheap_committed | NONE | Indicates the committed size of JVM non-heap memory | -| nonheap_init | NONE | Indicates the initial size of JVM non-heap memory | -| nonheap_used | NONE | Indicates the currently used JVM non-heap memory size | -| nonheap_max | NONE | Indicates the maximum available size of JVM non-heap memory | -| thread_peak | NONE | Indicates the peak number of threads since JVM startup | -| thread_daemon | NONE | Indicates the current number of active daemon threads | -| thread_total_started | NONE | Indicates the total number of threads started since JVM startup | -| thread_count | NONE | Indicates the current number of active threads | -| garbage_collector_g1_young_generation_count | NONE | Indicates the number of young generation garbage collections by G1 garbage collector | -| garbage_collector_g1_young_generation_time | NONE | Indicates the total time spent in young generation garbage collections by G1 garbage collector | -| garbage_collector_g1_old_generation_count | NONE | Indicates the number of old generation garbage collections by G1 garbage collector | -| garbage_collector_g1_old_generation_time | NONE | Indicates the total time spent in old generation garbage collections by G1 garbage collector | -| garbage_collector_time_unit | NONE | Indicates the unit of garbage collection time (such as milliseconds, seconds, etc.) | \ No newline at end of file +| Metric Name | Metric Unit | Metric Description | +|---------------------------------------------|-------------|---------------------------------------------------------------------------------------------------------| +| mem | NONE | Indicates the total memory of the system | +| mem_total | NONE | Indicates the total memory of the system (same as mem) | +| mem_used | NONE | Indicates the currently used memory of the system | +| mem_free | NONE | Indicates the free memory of the system | +| mem_unit | NONE | Indicates the unit of memory (such as bytes, kilobytes, megabytes, etc.) | +| processors | NONE | Indicates the number of processors in the system | +| uptime | NONE | Indicates the system uptime, i.e., the time since booting | +| systemload_average | NONE | Indicates the average system load, reflecting the system's busyness | +| heap_committed | NONE | Indicates the committed size of JVM heap memory, i.e., the guaranteed heap memory size available to JVM | +| heap_init | NONE | Indicates the initial size of JVM heap memory | +| heap_used | NONE | Indicates the currently used JVM heap memory size | +| heap_max | NONE | Indicates the maximum available size of JVM heap memory | +| nonheap_committed | NONE | Indicates the committed size of JVM non-heap memory | +| nonheap_init | NONE | Indicates the initial size of JVM non-heap memory | +| nonheap_used | NONE | Indicates the currently used JVM non-heap memory size | +| nonheap_max | NONE | Indicates the maximum available size of JVM non-heap memory | +| thread_peak | NONE | Indicates the peak number of threads since JVM startup | +| thread_daemon | NONE | Indicates the current number of active daemon threads | +| thread_total_started | NONE | Indicates the total number of threads started since JVM startup | +| thread_count | NONE | Indicates the current number of active threads | +| garbage_collector_g1_young_generation_count | NONE | Indicates the number of young generation garbage collections by G1 garbage collector | +| garbage_collector_g1_young_generation_time | NONE | Indicates the total time spent in young generation garbage collections by G1 garbage collector | +| garbage_collector_g1_old_generation_count | NONE | Indicates the number of old generation garbage collections by G1 garbage collector | +| garbage_collector_g1_old_generation_time | NONE | Indicates the total time spent in old generation garbage collections by G1 garbage collector | +| garbage_collector_time_unit | NONE | Indicates the unit of garbage collection time (such as milliseconds, seconds, etc.) | diff --git a/home/versioned_docs/version-v1.5.x/help/influxdb.md b/home/versioned_docs/version-v1.5.x/help/influxdb.md index cf3d838e796..31fb3efec6c 100644 --- a/home/versioned_docs/version-v1.5.x/help/influxdb.md +++ b/home/versioned_docs/version-v1.5.x/help/influxdb.md @@ -7,61 +7,59 @@ keywords: [open source monitoring system, open source database monitoring, Influ ### Configuration Parameters -| Parameter Name | Parameter Description | -| -------------- | -------------------------------------------------------- | -| Monitor Host | The IPv4, IPv6, or domain name of the target being monitored. Note⚠️: Do not include the protocol header (e.g., https://, http://). | -| Task Name | A unique identifier for this monitoring task. | -| Port | The port on which the database is exposed. Default is 8086. | -| URL | The database connection URL, usually constructed from the host. No need to add it separately. | -| Collection Interval | The interval at which data is collected during monitoring, in seconds. The minimum interval that can be set is 30 seconds. | -| Probe Enabled | Whether to perform a probe check for monitoring availability before adding or modifying the monitoring task. | -| Description | Additional notes and remarks about this monitoring task. Users can provide information and descriptions here. | +| Parameter Name | Parameter Description | +|---------------------|-------------------------------------------------------------------------------------------------------------------------------------| +| Monitor Host | The IPv4, IPv6, or domain name of the target being monitored. Note⚠️: Do not include the protocol header (e.g., https://, http://). | +| Task Name | A unique identifier for this monitoring task. | +| Port | The port on which the database is exposed. Default is 8086. | +| URL | The database connection URL, usually constructed from the host. No need to add it separately. | +| Collection Interval | The interval at which data is collected during monitoring, in seconds. The minimum interval that can be set is 30 seconds. | +| Probe Enabled | Whether to perform a probe check for monitoring availability before adding or modifying the monitoring task. | +| Description | Additional notes and remarks about this monitoring task. Users can provide information and descriptions here. | ### Collected Metrics #### Metric Set: influxdb_info | Metric Name | Metric Unit | Metric Description | -|------------| ----------- |--------| -| build_date | N/A | Creation date | -| os | N/A | Operating system | -| cpus | N/A | CPUs | -| version | N/A | Version number | +|-------------|-------------|--------------------| +| build_date | N/A | Creation date | +| os | N/A | Operating system | +| cpus | N/A | CPUs | +| version | N/A | Version number | #### Metric Set: http_api_request_duration_seconds -| Metric Name | Metric Unit | Metric Description | -|---------------|------|---------| -| handler | N/A | Handler | -| path | N/A | Path | -| response_code | N/A | Response code | -| method | N/A | Request method | -| user_agent | N/A | User agent | -| status | N/A | Status | +| Metric Name | Metric Unit | Metric Description | +|---------------|-------------|--------------------| +| handler | N/A | Handler | +| path | N/A | Path | +| response_code | N/A | Response code | +| method | N/A | Request method | +| user_agent | N/A | User agent | +| status | N/A | Status | #### Metric Set: storage_compactions_queued -| Metric Name | Metric Unit | Metric Description | -|---------------------------------|------|------------| -| bucket | N/A | Storage bucket | -| engine | N/A | Engine type | -| id | N/A | Identifier | -| level | N/A | Level | -| path | N/A | Data file path | - +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|--------------------| +| bucket | N/A | Storage bucket | +| engine | N/A | Engine type | +| id | N/A | Identifier | +| level | N/A | Level | +| path | N/A | Data file path | #### Metric Set: http_write_request_bytes -| Metric Name | Metric Unit | Metric Description | -| ----------- |------|--------| -| endpoint | N/A | Endpoint | -| org_id | N/A | Organization identifier | -| status | N/A | Status | +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|-------------------------| +| endpoint | N/A | Endpoint | +| org_id | N/A | Organization identifier | +| status | N/A | Status | #### Metric Set: qc_requests_total -| Metric Name | Metric Unit | Metric Description | -| ----------- |------|--------| -| result | N/A | Result | -| org | N/A | Organization identifier | - +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|-------------------------| +| result | N/A | Result | +| org | N/A | Organization identifier | diff --git a/home/versioned_docs/version-v1.5.x/help/influxdb_promql.md b/home/versioned_docs/version-v1.5.x/help/influxdb_promql.md index fcef4b4acff..c8b55c9ae76 100644 --- a/home/versioned_docs/version-v1.5.x/help/influxdb_promql.md +++ b/home/versioned_docs/version-v1.5.x/help/influxdb_promql.md @@ -9,7 +9,7 @@ keywords: [ Open Source Monitoring System, InfluxDB Monitoring, InfluxDB-PromQL ### Configuration Parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|----------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | IP, IPv6, or domain name of the target being monitored. Note ⚠️: Do not include protocol header (e.g., https://, http://). | | Monitoring name | Name to identify this monitoring, ensuring uniqueness of names. | @@ -28,7 +28,7 @@ keywords: [ Open Source Monitoring System, InfluxDB Monitoring, InfluxDB-PromQL #### Metric Set: basic_influxdb_memstats_alloc -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | instance | None | Instance to which the metric belongs | | timestamp | None | Timestamp of metric collection | @@ -36,7 +36,7 @@ keywords: [ Open Source Monitoring System, InfluxDB Monitoring, InfluxDB-PromQL #### Metric Set: influxdb_database_numMeasurements -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | job | None | Metric name | | instance | None | Instance to which the metric belongs | @@ -46,7 +46,7 @@ keywords: [ Open Source Monitoring System, InfluxDB Monitoring, InfluxDB-PromQL #### Metric Set: influxdb_query_rate_seconds -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | instance | None | Instance to which the metric belongs | | timestamp | None | Timestamp of metric collection | @@ -54,7 +54,7 @@ keywords: [ Open Source Monitoring System, InfluxDB Monitoring, InfluxDB-PromQL #### Metric Set: influxdb_queryExecutor_queriesFinished_10s -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | instance | None | Instance to which the metric belongs | | timestamp | None | Timestamp of metric collection | diff --git a/home/versioned_docs/version-v1.5.x/help/iotdb.md b/home/versioned_docs/version-v1.5.x/help/iotdb.md index 0e4dcad9912..5399caa3c41 100644 --- a/home/versioned_docs/version-v1.5.x/help/iotdb.md +++ b/home/versioned_docs/version-v1.5.x/help/iotdb.md @@ -17,29 +17,29 @@ The main steps are as follows: 1. The metric collection is disabled by default, you need to modify the parameters in `conf/iotdb-metric.yml` first, then restart the server -``` -# Whether to start the monitoring module, the default is false -enableMetric: true - -# Whether to enable operation delay statistics -enablePerformanceStat: false - -# Data provision method, externally provide metrics data through jmx and prometheus protocol, optional parameters: [JMX, PROMETHEUS, IOTDB], IOTDB is closed by default. -metricReporterList: - - JMX - - PROMETHEUS - -# The metric architecture used at the bottom layer, optional parameters: [MICROMETER, DROPWIZARD] -monitorType: MICROMETER - -# Initialize the level of the metric, optional parameters: [CORE, IMPORTANT, NORMAL, ALL] -metricLevel: IMPORTANT - -# Predefined metrics set, optional parameters: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] -predefinedMetrics: - - JVM - - FILE -``` + ```yaml + # Whether to start the monitoring module, the default is false + enableMetric: true + + # Whether to enable operation delay statistics + enablePerformanceStat: false + + # Data provision method, externally provide metrics data through jmx and prometheus protocol, optional parameters: [JMX, PROMETHEUS, IOTDB], IOTDB is closed by default. + metricReporterList: + - JMX + - PROMETHEUS + + # The metric architecture used at the bottom layer, optional parameters: [MICROMETER, DROPWIZARD] + monitorType: MICROMETER + + # Initialize the level of the metric, optional parameters: [CORE, IMPORTANT, NORMAL, ALL] + metricLevel: IMPORTANT + + # Predefined metrics set, optional parameters: [JVM, LOGBACK, FILE, PROCESS, SYSTEM] + predefinedMetrics: + - JVM + - FILE + ``` 2. Restart IoTDB, open a browser or use curl to access http://servier_ip:9091/metrics, and you can see the metric data. @@ -61,33 +61,33 @@ predefinedMetrics: #### Metric collection: cluster_node_status -| Metric Name | Metric Unit | Metric Help Description | -| --------- |------|-------------------------| -| name | None | Node name IP | -| status | None | Node status, 1=online 2=offline | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|---------------------------------| +| name | None | Node name IP | +| status | None | Node status, 1=online 2=offline | #### Metric collection: jvm_memory_committed_bytes -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | The memory size currently requested by the JVM | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|------------------------------------------------| +| area | none | heap memory or nonheap memory | +| id | none | memory block | +| value | MB | The memory size currently requested by the JVM | #### Metric collection: jvm_memory_used_bytes -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | none | heap memory or nonheap memory | -| id | none | memory block | -| value | MB | JVM used memory size | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------| +| area | none | heap memory or nonheap memory | +| id | none | memory block | +| value | MB | JVM used memory size | #### Metric collection: jvm_threads_states_threads -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------| -| state | none | thread state | -| count | None | The number of threads corresponding to the thread state | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|---------------------------------------------------------| +| state | none | thread state | +| count | None | The number of threads corresponding to the thread state | #### Index collection: quantity business data @@ -114,7 +114,7 @@ predefinedMetrics: #### Metric collection: thrift_connections -| Metric Name | Metric Unit | Metric Help Description | -|-------|------|-------------| -| name | None | name | -| connection | none | thrift current connection number | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|----------------------------------| +| name | None | name | +| connection | none | thrift current connection number | diff --git a/home/versioned_docs/version-v1.5.x/help/issue.md b/home/versioned_docs/version-v1.5.x/help/issue.md index c3dffd147be..0bb4f069f3a 100644 --- a/home/versioned_docs/version-v1.5.x/help/issue.md +++ b/home/versioned_docs/version-v1.5.x/help/issue.md @@ -1,49 +1,56 @@ --- id: issue title: Common issues -sidebar_label: Common issues +sidebar_label: Common issues --- -### Monitoring common issues +### Monitoring common issues -1. **Page feedback:monitor.host: Monitoring Host must be ipv4, ipv6 or domain name** -> As shown in the information, the entered monitoring Host must be ipv4, ipv6 or domain name, and cannot carry a protocol header, such as http +1. **Page feedback:monitor.host: Monitoring Host must be ipv4, ipv6 or domain name** -2. **The website API and other monitoring feedback statusCode:403 or 401, but the opposite end service itself does not need authentication, and the direct access of the browser is OK** -> Please check whether it is blocked by the firewall. For example, BaoTa/aaPanel have set the blocking of `User-Agent=Apache-HttpClient` in the request header by default. If it is blocked, please delete this blocking rule. (user-agent has been simulated as a browser in the v1.0.beat5 version. This problem does not exist) + > As shown in the information, the entered monitoring Host must be ipv4, ipv6 or domain name, and cannot carry a protocol header, such as http + +2. **The website API and other monitoring feedback statusCode:403 or 401, but the opposite end service itself does not need authentication, and the direct access of the browser is OK** + + > Please check whether it is blocked by the firewall. For example, BaoTa/aaPanel have set the blocking of `User-Agent=Apache-HttpClient` in the request header by default. If it is blocked, please delete this blocking rule. (user-agent has been simulated as a browser in the v1.0.beat5 version. This problem does not exist) 3. Ping connectivity monitoring exception when installing hertzbeat for package deployment. -The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 -> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. -> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. -> See https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 + + > The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. + > When you install HertzBeat via DockerDocker root is enabled by default. No such problem. + > See + +### Docker Deployment common issues +1. **MYSQL, TDENGINE and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** + The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -### Docker Deployment common issues + > Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. + > Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` -1. **MYSQL, TDENGINE and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` +2. **According to the process deploy,visit no interface** + Please refer to the following points to troubleshoot issues: -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issues: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent service, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> > three:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. + > one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. + > two:Check whether dependent service, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. + > three:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. -3. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. +3. **Log an error TDengine connection or insert SQL failed** + + > one:Check whether database account and password configured is correct, the database is created. + > two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. ### Package Deployment common issues -1. **According to the process deploy,visit http://ip:1157/ no interface** +1. **According to the process deploy,visit no interface** Please refer to the following points to troubleshoot issues: -> one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. -> two:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> three: Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. + + > one:Whether the MySQL database and tdengine database as dependent services have been successfully started, whether the corresponding hertzbeat database has been created, and whether the SQL script has been executed. + > two:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. + > three: Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. 2. **Log an error TDengine connection or insert SQL failed** -> one:Check whether database account and password configured is correct, the database is created. -> two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. + + > one:Check whether database account and password configured is correct, the database is created. + > two:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. diff --git a/home/versioned_docs/version-v1.5.x/help/jetty.md b/home/versioned_docs/version-v1.5.x/help/jetty.md index 3e5230aa9d0..2a3f69c13e4 100644 --- a/home/versioned_docs/version-v1.5.x/help/jetty.md +++ b/home/versioned_docs/version-v1.5.x/help/jetty.md @@ -19,38 +19,39 @@ keywords: [open source monitoring tool, open source jetty web server monitoring 1. Start the JMX JMX-REMOTE module in Jetty -```shell -java -jar $JETTY_HOME/start.jar --add-module=jmx -java -jar $JETTY_HOME/start.jar --add-module=jmx-remote -``` -Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file + ```shell + java -jar $JETTY_HOME/start.jar --add-module=jmx + java -jar $JETTY_HOME/start.jar --add-module=jmx-remote + ``` -2. Edit the `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file to modify the JMX IP port and other parameters. - -**`localhost` needs to be modified to expose the IP** - -```text -## The host/address to bind the RMI server to. -# jetty.jmxremote.rmiserverhost=localhost - -## The port the RMI server listens to (0 means a random port is chosen). -# jetty.jmxremote.rmiserverport=1099 - -## The host/address to bind the RMI registry to. -# jetty.jmxremote.rmiregistryhost=localhost + Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file -## The port the RMI registry listens to. -# jetty.jmxremote.rmiregistryport=1099 +2. Edit the `${JETTY_BASE}/start.d/jmx-remote.ini` configuration file to modify the JMX IP port and other parameters. -## The host name exported in the RMI stub. --Djava.rmi.server.hostname=localhost -``` + **`localhost` needs to be modified to expose the IP** + + ```text + ## The host/address to bind the RMI server to. + # jetty.jmxremote.rmiserverhost=localhost + + ## The port the RMI server listens to (0 means a random port is chosen). + # jetty.jmxremote.rmiserverport=1099 + + ## The host/address to bind the RMI registry to. + # jetty.jmxremote.rmiregistryhost=localhost + + ## The port the RMI registry listens to. + # jetty.jmxremote.rmiregistryport=1099 + + ## The host name exported in the RMI stub. + -Djava.rmi.server.hostname=localhost + ``` 3. Restart Jetty Server. ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -73,19 +74,17 @@ Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` | max | kb | max size | | used | kb | used size | - #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------------|-------------|--------------------------| | LoadedClassCount | | Loaded Class Count | | TotalLoadedClassCount | | Total Loaded Class Count | | UnloadedClassCount | | Unloaded Class Count | - #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|----------------------------| | TotalStartedThreadCount | | Total Started Thread Count | | ThreadCount | | Thread Count | @@ -93,4 +92,3 @@ Successful command execution will create `${JETTY_BASE}/start.d/jmx-remote.ini` | DaemonThreadCount | | Daemon Thread Count | | CurrentThreadUserTime | ms | Current Thread User Time | | CurrentThreadCpuTime | ms | Current Thread Cpu Time | - diff --git a/home/versioned_docs/version-v1.5.x/help/jvm.md b/home/versioned_docs/version-v1.5.x/help/jvm.md index 95b1545fffc..477d9fbece1 100644 --- a/home/versioned_docs/version-v1.5.x/help/jvm.md +++ b/home/versioned_docs/version-v1.5.x/help/jvm.md @@ -13,7 +13,7 @@ keywords: [open source monitoring tool, open source java jvm monitoring tool, mo 1. Add JVM `VM options` When Start Server ⚠️ customIP -Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#remote +Refer: ```shell -Djava.rmi.server.hostname=customIP @@ -24,7 +24,7 @@ Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#rem ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -58,16 +58,15 @@ Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#rem #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------------|-------------|--------------------------| | LoadedClassCount | | Loaded Class Count | | TotalLoadedClassCount | | Total Loaded Class Count | | UnloadedClassCount | | Unloaded Class Count | - #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|----------------------------| | TotalStartedThreadCount | | Total Started Thread Count | | ThreadCount | | Thread Count | @@ -75,5 +74,3 @@ Refer: https://docs.oracle.com/javase/1.5.0/docs/guide/management/agent.html#rem | DaemonThreadCount | | Daemon Thread Count | | CurrentThreadUserTime | ms | Current Thread User Time | | CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.5.x/help/kafka.md b/home/versioned_docs/version-v1.5.x/help/kafka.md index 067cabef0e9..48d06b2037b 100644 --- a/home/versioned_docs/version-v1.5.x/help/kafka.md +++ b/home/versioned_docs/version-v1.5.x/help/kafka.md @@ -27,70 +27,63 @@ exec $base_dir/kafka-run-class.sh $EXTRA_ARGS kafka.Kafka "$@" ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by JMX | +| Username | JMX connection user name, optional | +| Password | JMX connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metrics #### Metrics Set:server_info -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Version | | Kafka Version | -| StartTimeMs | ms | Start Time | -| CommitId | | Version Commit ID | - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| Version | | Kafka Version | +| StartTimeMs | ms | Start Time | +| CommitId | | Version Commit ID | #### Metrics Set:memory_pool -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| name | | metrics name | +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### Metrics Set:active_controller_count -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | server active controller count | - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------------| +| Value | | server active controller count | #### Metrics Set:broker_partition_count -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker partition count | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| Value | | broker partition count | #### Metrics Set:broker_leader_count -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| Value | | broker leader count | - - -#### Metrics Set:broker_handler_avg_percent - -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| EventType | | event type | -| RateUnit | | rate unit | -| Count | | percent count | -| OneMinuteRate | % | One Minute Rate | -| FiveMinuteRate | % | Five Minute Rate | -| MeanRate | % | Mean Rate | -| FifteenMinuteRate | % | Fifteen Minute Rate | - - - - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| Value | | broker leader count | + +#### Metrics Set:broker_handler_avg_percent + +| Metric name | Metric unit | Metric help description | +|-------------------|-------------|-------------------------| +| EventType | | event type | +| RateUnit | | rate unit | +| Count | | percent count | +| OneMinuteRate | % | One Minute Rate | +| FiveMinuteRate | % | Five Minute Rate | +| MeanRate | % | Mean Rate | +| FifteenMinuteRate | % | Fifteen Minute Rate | diff --git a/home/versioned_docs/version-v1.5.x/help/kafka_promql.md b/home/versioned_docs/version-v1.5.x/help/kafka_promql.md index e88f6eb0342..203ef2bef4b 100644 --- a/home/versioned_docs/version-v1.5.x/help/kafka_promql.md +++ b/home/versioned_docs/version-v1.5.x/help/kafka_promql.md @@ -16,7 +16,7 @@ keywords: [ Open Source Monitoring System, Open Source Middleware Monitoring, Ka ### Configuration Parameters -| Parameter Name | Parameter Description | +| Parameter Name | Parameter Description | |---------------------|----------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | IP, IPv6, or domain name of the target being monitored. Note ⚠️: Do not include protocol header (e.g., https://, http://). | | Monitoring name | Name to identify this monitoring, ensuring uniqueness of names. | @@ -35,7 +35,7 @@ keywords: [ Open Source Monitoring System, Open Source Middleware Monitoring, Ka #### Metric Set: kafka_brokers -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | \_\_name__ | None | Metric name | | instance | None | Instance to which the metric belongs | @@ -44,7 +44,7 @@ keywords: [ Open Source Monitoring System, Open Source Middleware Monitoring, Ka #### Metric Set: kafka_topic_partitions -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | \_\_name__ | None | Metric name | | instance | None | Instance to which the metric belongs | @@ -53,7 +53,7 @@ keywords: [ Open Source Monitoring System, Open Source Middleware Monitoring, Ka #### Metric Set: kafka_server_brokertopicmetrics_bytesinpersec -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|--------------------------------------| | \_\_name__ | None | Metric name | | instance | None | Instance to which the metric belongs | diff --git a/home/versioned_docs/version-v1.5.x/help/kubernetes.md b/home/versioned_docs/version-v1.5.x/help/kubernetes.md index 8e10896c6d1..836c84f3818 100644 --- a/home/versioned_docs/version-v1.5.x/help/kubernetes.md +++ b/home/versioned_docs/version-v1.5.x/help/kubernetes.md @@ -13,21 +13,22 @@ If you want to monitor the information in 'Kubernetes', you need to obtain an au Refer to the steps to obtain token -#### method one: +### method one 1. Create a service account and bind the default cluster-admin administrator cluster role -```kubectl create serviceaccount dashboard-admin -n kube-system``` + ```kubectl create serviceaccount dashboard-admin -n kube-system``` 2. User Authorization -```shell -kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin -kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' -kubectl describe secret {secret} -n kube-system -``` + ```shell + kubectl create clusterrolebinding dashboard-admin --clusterrole=cluster-admin --serviceaccount=kube-system:dashboard-admin + kubectl -n kube-system get secret | grep dashboard-admin | awk '{print $1}' + kubectl describe secret {secret} -n kube-system + ``` + +### method two -#### method two: ```shell kubectl create serviceaccount cluster-admin kubectl create clusterrolebinding cluster-admin-manual --clusterrole=cluster-admin --serviceaccount=default:cluster-admin @@ -36,59 +37,59 @@ kubectl create token --duration=1000h cluster-admin ### Configure parameters -| Parameter name | Parameter Help describes the | -|-------------|------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| APiServer port | K8s APiServer port, default 6443 | -| token | Authorize the Access Token | -| URL | The database connection URL is optional, if configured, the database name, user name and password parameters in the URL will override the parameter | configured above -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Parameter name | Parameter Help describes the | +|-----------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| APiServer port | K8s APiServer port, default 6443 | +| token | Authorize the Access Token | +| URL | The database connection URL is optional, if configured, the database name, user name and password parameters in the URL will override the parameter | configured above | +| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric collection: nodes -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------| -| node_name | None | Node name | -| is_ready | None | Node Status | -| capacity_cpu | None | CPU capacity | -| allocatable_cpu | None | CPU | allotted -| capacity_memory | None | Memory capacity | -| allocatable_memory | None | Memory | allocated -| creation_time | None | Node creation time | +| Metric Name | metric unit | Metrics help describe | +|--------------------|-------------|-----------------------|-----------| +| node_name | None | Node name | +| is_ready | None | Node Status | +| capacity_cpu | None | CPU capacity | +| allocatable_cpu | None | CPU | allotted | +| capacity_memory | None | Memory capacity | +| allocatable_memory | None | Memory | allocated | +| creation_time | None | Node creation time | #### metric Collection: namespaces -| Metric Name | metric unit | Metrics help describe | -| -------- | -------- |-------------| -| namespace | None | namespace name | -| status | None | Status | -| creation_time | None | Created | +| Metric Name | metric unit | Metrics help describe | +|---------------|-------------|-----------------------| +| namespace | None | namespace name | +| status | None | Status | +| creation_time | None | Created | #### metric collection: pods -| Metric Name | metric unit | Metrics help describe | -| ---------------- | -------- |----------------| -| pod | None | Pod name | -| namespace | None | The namespace | to which the pod belongs -| status | None | Pod status | -| restart | None | Number of restarts | -| host_ip | None | The IP address of the host is | -| pod_ip | None | pod ip | -| creation_time | None | Pod creation time | -| start_time | None | Pod startup time | +| Metric Name | metric unit | Metrics help describe | +|---------------|-------------|-------------------------------|--------------------------| +| pod | None | Pod name | +| namespace | None | The namespace | to which the pod belongs | +| status | None | Pod status | +| restart | None | Number of restarts | +| host_ip | None | The IP address of the host is | +| pod_ip | None | pod ip | +| creation_time | None | Pod creation time | +| start_time | None | Pod startup time | #### metric Collection: services -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------------------------------------------| -| service | None | Service Name | -| namespace | None | The namespace | to which the service belongs -| type | None | Service Type ClusterIP NodePort LoadBalancer ExternalName | -| cluster_ip | None | cluster ip | -| selector | None | tag selector matches | -| creation_time | None | Created | +| Metric Name | metric unit | Metrics help describe | +|---------------|-------------|-----------------------------------------------------------|------------------------------| +| service | None | Service Name | +| namespace | None | The namespace | to which the service belongs | +| type | None | Service Type ClusterIP NodePort LoadBalancer ExternalName | +| cluster_ip | None | cluster ip | +| selector | None | tag selector matches | +| creation_time | None | Created | diff --git a/home/versioned_docs/version-v1.5.x/help/linux.md b/home/versioned_docs/version-v1.5.x/help/linux.md index 05e3405ff6e..f5c77a72ca6 100644 --- a/home/versioned_docs/version-v1.5.x/help/linux.md +++ b/home/versioned_docs/version-v1.5.x/help/linux.md @@ -9,74 +9,73 @@ keywords: [open source monitoring tool, open source linux monitoring tool, monit ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Linux SSH. The default is 22 | +| Username | SSH connection user name, optional | +| Password | SSH connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------| +| hostname | none | Host name | +| version | none | Operating system version | +| uptime | none | System running time | #### Metric set:cpu -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------------------------| +| info | none | CPU model | +| cores | cores | Number of CPU cores | +| interrupt | number | Number of CPU interrupts | +| load | none | Average load of CPU in the last 1/5/15 minutes | +| context_switch | number | Number of current context switches | +| usage | % | CPU usage | #### Metric set:memory -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------------------| +| total | Mb | Total memory capacity | +| used | Mb | User program memory | +| free | Mb | Free memory capacity | +| buff_cache | Mb | Memory occupied by cache | +| available | Mb | Remaining available memory capacity | +| usage | % | Memory usage | #### Metric set:disk -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|----------------------------------------| +| disk_num | blocks | Total number of disks | +| partition_num | partitions | Total number of partitions | +| block_write | blocks | Total number of blocks written to disk | +| block_read | blocks | Number of blocks read from disk | +| write_rate | iops | Rate of writing disk blocks per second | #### Metric set:interface -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------| +| interface_name | none | Network card name | +| receive_bytes | byte | Inbound data traffic(bytes) | +| transmit_bytes | byte | Outbound data traffic(bytes) | #### Metric set:disk_free -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| filesystem | none | File system name | +| used | Mb | Used disk size | +| available | Mb | Available disk size | +| usage | % | usage | +| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.5.x/help/mariadb.md b/home/versioned_docs/version-v1.5.x/help/mariadb.md index e72668fe791..8373b61cec3 100644 --- a/home/versioned_docs/version-v1.5.x/help/mariadb.md +++ b/home/versioned_docs/version-v1.5.x/help/mariadb.md @@ -9,49 +9,45 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 3306 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 3306 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| version | none | Database version | -| port | none | Database exposure service port | -| datadir | none | Database storage data disk address | -| max_connections | none | Database maximum connections | +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|------------------------------------| +| version | none | Database version | +| port | none | Database exposure service port | +| datadir | none | Database storage data disk address | +| max_connections | none | Database maximum connections | #### Metric set:status -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| threads_created | none | MariaDB created total connections | -| threads_connected | none | MariaDB connected connections | -| threads_cached | none | MariaDB current cached connections | -| threads_running | none | MariaDB current active connections | - +| Metric name | Metric unit | Metric help description | +|-------------------|-------------|------------------------------------| +| threads_created | none | MariaDB created total connections | +| threads_connected | none | MariaDB connected connections | +| threads_cached | none | MariaDB current cached connections | +| threads_running | none | MariaDB current active connections | #### Metric set:innodb -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| innodb_data_reads | none | innodb average number of reads from files per second | -| innodb_data_writes | none | innodb average number of writes from file per second | -| innodb_data_read | KB | innodb average amount of data read per second | -| innodb_data_written | KB | innodb average amount of data written per second | - - - +| Metric name | Metric unit | Metric help description | +|---------------------|-------------|------------------------------------------------------| +| innodb_data_reads | none | innodb average number of reads from files per second | +| innodb_data_writes | none | innodb average number of writes from file per second | +| innodb_data_read | KB | innodb average amount of data read per second | +| innodb_data_written | KB | innodb average amount of data written per second | diff --git a/home/versioned_docs/version-v1.5.x/help/memcached.md b/home/versioned_docs/version-v1.5.x/help/memcached.md index 5d89ce0977b..f3c1ddfab55 100644 --- a/home/versioned_docs/version-v1.5.x/help/memcached.md +++ b/home/versioned_docs/version-v1.5.x/help/memcached.md @@ -14,7 +14,7 @@ The default YML configuration for the memcache version is in compliance with 1.4 You need to use the stats command to view the parameters that your memcache can monitor ``` -### +### **1、Obtain usable parameter indicators through commands such as stats、stats setting、stats settings. @@ -32,11 +32,11 @@ STAT version 1.4.15 ... ``` -**There is help_doc: https://www.runoob.com/memcached/memcached-stats.html** +**There is help_doc: ** ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -49,7 +49,7 @@ STAT version 1.4.15 #### Metrics Set:server_info -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |------------------|-------------|---------------------------------------------------| | pid | | Memcache server process ID | | uptime | s | The number of seconds the server has been running | @@ -66,4 +66,4 @@ STAT version 1.4.15 | cmd_set | | Set command request count | | cmd_flush | | Flush command request count | | get_misses | | Get command misses | -| delete_misses | | Delete command misses | \ No newline at end of file +| delete_misses | | Delete command misses | diff --git a/home/versioned_docs/version-v1.5.x/help/mongodb.md b/home/versioned_docs/version-v1.5.x/help/mongodb.md index 4a2951ec23c..52582b47097 100644 --- a/home/versioned_docs/version-v1.5.x/help/mongodb.md +++ b/home/versioned_docs/version-v1.5.x/help/mongodb.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |------------------------|-------------------------------------------------------------------------------------------------------------------------| | Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -27,7 +27,7 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m #### Metric set:Build Info -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |------------------|-------------|-----------------------------------------------------------------------------------------| | version | none | The version number of the MongoDB server. | | gitVersion | none | The Git version of the MongoDB codebase. | @@ -39,7 +39,7 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m #### Metric set:Server Document -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|-----------------------------------| | deleted | none | The number of documents deleted. | | inserted | none | The number of documents inserted. | @@ -48,21 +48,21 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m #### Metric set:Server Operation -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |----------------|-------------|------------------------------------------------------------------| | scanAndOrder | none | The number of times a query required both scanning and ordering. | | writeConflicts | none | The number of write conflicts that occurred. | #### Metric set: Max Connections -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |------------------|-------------|--------------------------------------------| | deletedDocuments | none | Number of deleted documents. | | passes | none | Total number of passes for TTL operations. | #### Metric set:System Info -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|------------------------------------------------------| | currentTime | none | Current system time. | | hostname | none | Hostname of the server. | @@ -75,7 +75,7 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m #### Metric set:OS Info -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------|-------------|----------------------------------| | type | none | Type of the operating system. | | name | none | Name of the operating system. | @@ -83,7 +83,7 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m #### Metric set:Extra Info -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------|-------------|--------------------------------------------------------| | versionString | none | String describing the version of the operating system. | | libcVersion | none | Version of the C standard library (libc). | @@ -93,4 +93,3 @@ keywords: [ open source monitoring tool, open source database monitoring tool, m | pageSize | none | Size of a memory page in bytes. | | numPages | none | Total number of memory pages. | | maxOpenFiles | none | Maximum number of open files allowed. | - diff --git a/home/versioned_docs/version-v1.5.x/help/mysql.md b/home/versioned_docs/version-v1.5.x/help/mysql.md index 3f07be99380..86922782e27 100644 --- a/home/versioned_docs/version-v1.5.x/help/mysql.md +++ b/home/versioned_docs/version-v1.5.x/help/mysql.md @@ -7,9 +7,9 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo > Collect and monitor the general performance Metrics of MySQL database. Support MYSQL5+. -### Configuration parameter +### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -27,31 +27,27 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| version | none | Database version | -| port | none | Database exposure service port | -| datadir | none | Database storage data disk address | -| max_connections | none | Database maximum connections | +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|------------------------------------| +| version | none | Database version | +| port | none | Database exposure service port | +| datadir | none | Database storage data disk address | +| max_connections | none | Database maximum connections | #### Metric set:status -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| threads_created | none | MySql created total connections | -| threads_connected | none | MySql connected connections | -| threads_cached | none | MySql current cached connections | -| threads_running | none | MySql current active connections | - +| Metric name | Metric unit | Metric help description | +|-------------------|-------------|----------------------------------| +| threads_created | none | MySql created total connections | +| threads_connected | none | MySql connected connections | +| threads_cached | none | MySql current cached connections | +| threads_running | none | MySql current active connections | #### Metric set:innodb -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| innodb_data_reads | none | innodb average number of reads from files per second | -| innodb_data_writes | none | innodb average number of writes from file per second | -| innodb_data_read | KB | innodb average amount of data read per second | -| innodb_data_written | KB | innodb average amount of data written per second | - - - +| Metric name | Metric unit | Metric help description | +|---------------------|-------------|------------------------------------------------------| +| innodb_data_reads | none | innodb average number of reads from files per second | +| innodb_data_writes | none | innodb average number of writes from file per second | +| innodb_data_read | KB | innodb average amount of data read per second | +| innodb_data_written | KB | innodb average amount of data written per second | diff --git a/home/versioned_docs/version-v1.5.x/help/nacos.md b/home/versioned_docs/version-v1.5.x/help/nacos.md index 721f1776c2a..eb4cb0b5e25 100644 --- a/home/versioned_docs/version-v1.5.x/help/nacos.md +++ b/home/versioned_docs/version-v1.5.x/help/nacos.md @@ -13,81 +13,82 @@ keywords: [open source monitoring tool, open source middleware monitoring tool, 1. Deploy the Nacos cluster according to [deployment document](https://nacos.io/en-us/docs/deployment.html). 2. Configure the application. properties file to expose metrics data. -``` -management.endpoints.web.exposure.include=* -``` + + ```properties + management.endpoints.web.exposure.include=* + ``` + 3. Access ```{ip}:8848/nacos/actuator/prometheus``` to see if metrics data can be accessed. More information see [Nacos monitor guide](https://nacos.io/en-us/docs/monitor-guide.html). -### Configuration parameter +### Configuration parameter -| Parameter name | Parameter help description | -|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Target name | Identify the name of this monitoring. The name needs to be unique | -| Nacos Port | Port provided by the Nacos Server. The default is 8848 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|-------------------------------------------------------------------------------------------------------------------------| +| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Target name | Identify the name of this monitoring. The name needs to be unique | +| Nacos Port | Port provided by the Nacos Server. The default is 8848 | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:jvm -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| system_cpu_usage | none | cpu usage | -| system_load_average_1m | none | load | -| jvm_memory_used_bytes | byte | jvm memory used | -| jvm_memory_max_bytes | byte | jvm max memory | -| jvm_gc_pause_seconds_count | none | gc count | -| jvm_gc_pause_seconds_sum | second | gc time | -| jvm_threads_daemon | none | jvm threads count | +| Metric name | Metric unit | Metric help description | +|----------------------------|-------------|-------------------------| +| system_cpu_usage | none | cpu usage | +| system_load_average_1m | none | load | +| jvm_memory_used_bytes | byte | jvm memory used | +| jvm_memory_max_bytes | byte | jvm max memory | +| jvm_gc_pause_seconds_count | none | gc count | +| jvm_gc_pause_seconds_sum | second | gc time | +| jvm_threads_daemon | none | jvm threads count | #### Metric set:Nacos -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| http_server_requests_seconds_count | second | http requests count | -| http_server_requests_seconds_sum | second | http requests time | -| nacos_timer_seconds_sum | second | Nacos config notify time | -| nacos_timer_seconds_count | none | Nacos config notify count | -| nacos_monitor{name='longPolling'} | none | Nacos config connection count | -| nacos_monitor{name='configCount'} | none | Nacos configuration file count | -| nacos_monitor{name='dumpTask'} | none | Nacos config dump task count | -| nacos_monitor{name='notifyTask'} | none | Nacos config notify task count | -| nacos_monitor{name='getConfig'} | none | Nacos config read configuration count | -| nacos_monitor{name='publish'} | none | Nacos config update configuration count | -| nacos_monitor{name='ipCount'} | none | Nacos naming ip count | -| nacos_monitor{name='domCount'} | none | Nacos naming domain count(1.x version) | -| nacos_monitor{name='serviceCount'} | none | Nacos naming domain count(2.x version) | -| nacos_monitor{name='failedPush'} | none | Nacos naming push fail count | -| nacos_monitor{name='avgPushCost'} | second | Nacos naming push cost time(average) | -| nacos_monitor{name='leaderStatus'} | none | Nacos naming if node is leader | -| nacos_monitor{name='maxPushCost'} | second | Nacos naming push cost time(max) | -| nacos_monitor{name='mysqlhealthCheck'} | none | Nacos naming mysql health check count | -| nacos_monitor{name='httpHealthCheck'} | none | Nacos naming http health check count | -| nacos_monitor{name='tcpHealthCheck'} | none | Nacos naming tcp health check count | +| Metric name | Metric unit | Metric help description | +|----------------------------------------|-------------|-----------------------------------------| +| http_server_requests_seconds_count | second | http requests count | +| http_server_requests_seconds_sum | second | http requests time | +| nacos_timer_seconds_sum | second | Nacos config notify time | +| nacos_timer_seconds_count | none | Nacos config notify count | +| nacos_monitor{name='longPolling'} | none | Nacos config connection count | +| nacos_monitor{name='configCount'} | none | Nacos configuration file count | +| nacos_monitor{name='dumpTask'} | none | Nacos config dump task count | +| nacos_monitor{name='notifyTask'} | none | Nacos config notify task count | +| nacos_monitor{name='getConfig'} | none | Nacos config read configuration count | +| nacos_monitor{name='publish'} | none | Nacos config update configuration count | +| nacos_monitor{name='ipCount'} | none | Nacos naming ip count | +| nacos_monitor{name='domCount'} | none | Nacos naming domain count(1.x version) | +| nacos_monitor{name='serviceCount'} | none | Nacos naming domain count(2.x version) | +| nacos_monitor{name='failedPush'} | none | Nacos naming push fail count | +| nacos_monitor{name='avgPushCost'} | second | Nacos naming push cost time(average) | +| nacos_monitor{name='leaderStatus'} | none | Nacos naming if node is leader | +| nacos_monitor{name='maxPushCost'} | second | Nacos naming push cost time(max) | +| nacos_monitor{name='mysqlhealthCheck'} | none | Nacos naming mysql health check count | +| nacos_monitor{name='httpHealthCheck'} | none | Nacos naming http health check count | +| nacos_monitor{name='tcpHealthCheck'} | none | Nacos naming tcp health check count | #### Metric set:Nacos exception -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| nacos_exception_total{name='db'} | none | database exception | -| nacos_exception_total{name='configNotify'} | none | Nacos config notify exception | -| nacos_exception_total{name='unhealth'} | none | Nacos config server health check exception | -| nacos_exception_total{name='disk'} | none | Nacos naming write disk exception | -| nacos_exception_total{name='leaderSendBeatFailed'} | none | Nacos naming leader send heart beat fail count | -| nacos_exception_total{name='illegalArgument'} | none | request argument illegal count | -| nacos_exception_total{name='nacos'} | none | Nacos inner exception | +| Metric name | Metric unit | Metric help description | +|----------------------------------------------------|-------------|------------------------------------------------| +| nacos_exception_total{name='db'} | none | database exception | +| nacos_exception_total{name='configNotify'} | none | Nacos config notify exception | +| nacos_exception_total{name='unhealth'} | none | Nacos config server health check exception | +| nacos_exception_total{name='disk'} | none | Nacos naming write disk exception | +| nacos_exception_total{name='leaderSendBeatFailed'} | none | Nacos naming leader send heart beat fail count | +| nacos_exception_total{name='illegalArgument'} | none | request argument illegal count | +| nacos_exception_total{name='nacos'} | none | Nacos inner exception | #### Metric set:client -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| nacos_monitor{name='subServiceCount'} | none | subscribed services count | -| nacos_monitor{name='pubServiceCount'} | none | published services count | -| nacos_monitor{name='configListenSize'} | none | listened configuration file count | -| nacos_client_request_seconds_count | none | request count | -| nacos_client_request_seconds_sum | second | request time | - \ No newline at end of file +| Metric name | Metric unit | Metric help description | +|----------------------------------------|-------------|-----------------------------------| +| nacos_monitor{name='subServiceCount'} | none | subscribed services count | +| nacos_monitor{name='pubServiceCount'} | none | published services count | +| nacos_monitor{name='configListenSize'} | none | listened configuration file count | +| nacos_client_request_seconds_count | none | request count | +| nacos_client_request_seconds_sum | second | request time | diff --git a/home/versioned_docs/version-v1.5.x/help/nebulagraph.md b/home/versioned_docs/version-v1.5.x/help/nebulagraph.md index ae2cfb4683f..60ac139f827 100644 --- a/home/versioned_docs/version-v1.5.x/help/nebulagraph.md +++ b/home/versioned_docs/version-v1.5.x/help/nebulagraph.md @@ -14,13 +14,13 @@ The monitoring has two parts,nebulaGraph_stats and rocksdb_stats. nebulaGraph_stats is nebulaGraph's statistics, and rocksdb_stats is rocksdb's statistics. ``` -### +### **1、Obtain available parameters through the stats and rocksdb stats interfaces.** 1.1、 If you only need to get nebulaGraph_stats, you need to ensure that you have access to stats, or you'll get errors. -The default port is 19669 and the access address is http://ip:19669/stats +The default port is 19669 and the access address is 1.2、If you need to obtain additional parameters for rocksdb stats, you need to ensure that you have access to rocksdb stats, otherwise an error will be reported. @@ -28,15 +28,15 @@ stats, otherwise an error will be reported. Once you connect to NebulaGraph for the first time, you must first register your Storage service in order to properly query your data. -**There is help_doc: https://docs.nebula-graph.com.cn/3.4.3/4.deployment-and-installation/connect-to-nebula-graph/** +**There is help_doc: ** -**https://docs.nebula-graph.com.cn/3.4.3/2.quick-start/3.quick-start-on-premise/3.1add-storage-hosts/** +**** -The default port is 19779 and the access address is:http://ip:19779/rocksdb_stats +The default port is 19779 and the access address is: ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -53,9 +53,9 @@ The default port is 19779 and the access address is:http://ip:19779/rocksdb_stat #### Metrics Set:nebulaGraph_stats Too many indicators, related links are as follows -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/1.query-performance-metrics/** +**** -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------------------------------|-------------|--------------------------------------------------------------| | num_queries_hit_memory_watermark_rate | | The rate of statements that reached the memory watermark. | | num_queries_hit_memory_watermark_sum | | The sum of statements that reached the memory watermark. | @@ -65,9 +65,9 @@ Too many indicators, related links are as follows #### Metrics Set:rocksdb_stats Too many indicators, related links are as follows -**https://docs.nebula-graph.com.cn/3.4.3/6.monitor-and-metrics/2.rocksdb-statistics/** +**** -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |----------------------------|-------------|-------------------------------------------------------------| | rocksdb.backup.read.bytes | | Number of bytes read during the RocksDB database backup. | | rocksdb.backup.write.bytes | | Number of bytes written during the RocksDB database backup. | diff --git a/home/versioned_docs/version-v1.5.x/help/nebulagraph_cluster.md b/home/versioned_docs/version-v1.5.x/help/nebulagraph_cluster.md index d0da21a7adb..1a4291dd5f6 100644 --- a/home/versioned_docs/version-v1.5.x/help/nebulagraph_cluster.md +++ b/home/versioned_docs/version-v1.5.x/help/nebulagraph_cluster.md @@ -11,7 +11,7 @@ keywords: [ Open Source Monitoring System, Open Source Database Monitoring, Open ### Configuration parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------| | Target Host | The IPv4, IPv6, or domain name of the monitored peer. Note ⚠️ without the protocol header (eg: https://, http://). | | Task Name | Identifies the name of this monitor, ensuring uniqueness of the name. | @@ -35,21 +35,21 @@ keywords: [ Open Source Monitoring System, Open Source Database Monitoring, Open #### Metric Set: Session -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |---------------------|-------------|----------------------------------| | session | None | Number of sessions | | running_query_count | None | Number of queries being executed | #### Metric Set: Jobs -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |--------------|-------------|-------------------------------------------| | queue_jobs | None | Number of pending background tasks | | running_jobs | None | Number of background tasks being executed | #### Metric Set: Cluster node info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------------|-------------|---------------------------------| | total_storage_node | None | Number of storage nodes | | offline_storage_node | None | Number of offline storage nodes | @@ -60,7 +60,7 @@ keywords: [ Open Source Monitoring System, Open Source Database Monitoring, Open #### Metric Set: Storage Nodes -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-----------------------|-------------|-------------------------------------------------------| | host | None | Node address | | port | None | Port | diff --git a/home/versioned_docs/version-v1.5.x/help/nginx.md b/home/versioned_docs/version-v1.5.x/help/nginx.md index 99bb389000c..2c9f12f4900 100644 --- a/home/versioned_docs/version-v1.5.x/help/nginx.md +++ b/home/versioned_docs/version-v1.5.x/help/nginx.md @@ -17,104 +17,107 @@ If you want to monitor information in 'Nginx' with this monitoring type, you nee 1. Check if `ngx_http_stub_status_module` has been added -```shell -nginx -V -``` -View whether it contains `--with-http_stub_status_module`, if not, you need to recompile and install Nginx. + ```shell + nginx -V + ``` + + View whether it contains `--with-http_stub_status_module`, if not, you need to recompile and install Nginx. 2. Compile and install Nginx, add `ngx_http_stub_status_module` module -Download Nginx and unzip it, execute the following command in the directory + Download Nginx and unzip it, execute the following command in the directory -```shell + ```shell + + ./configure --prefix=/usr/local/nginx --with-http_stub_status_module + + make && make install + ``` -./configure --prefix=/usr/local/nginx --with-http_stub_status_module +3. Modify Nginx configure file -make && make install -``` + Modify the `nginx.conf` file and add the monitoring module exposed endpoint, as follows: -3. Modify Nginx configure file + ```shell + # modify nginx.conf + server { + listen 80; # port + server_name localhost; + location /nginx-status { + stub_status on; + access_log on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } + } + ``` -Modify the `nginx.conf` file and add the monitoring module exposed endpoint, as follows: - -```shell -# modify nginx.conf -server { - listen 80; # port - server_name localhost; - location /nginx-status { - stub_status on; - access_log on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts - } -} -``` 4. Reload Nginx -```shell - -nginx -s reload -``` + ```shell + + nginx -s reload + ``` 5. Access `http://localhost/nginx-status` in the browser to view the Nginx monitoring status information. ### Enable `ngx_http_reqstat_module` -```shell -# install `ngx_http_reqstat_module` -wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip - -unzip ngx_req_status.zip - -patch -p1 < ../ngx_req_status-master/write_filter.patch - -./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master - -make -j2 - -make install -``` +1. install `ngx_http_reqstat_module` + + ```shell + # install `ngx_http_reqstat_module` + wget https://github.com/zls0424/ngx_req_status/archive/master.zip -O ngx_req_status.zip + + unzip ngx_req_status.zip + + patch -p1 < ../ngx_req_status-master/write_filter.patch + + ./configure --prefix=/usr/local/nginx --add-module=/path/to/ngx_req_status-master + + make -j2 + + make install + ``` 2. Modify Nginx configure file -update `nginx.conf` file, add status module exposed endpoint, as follows: - -```shell -# modify nginx.conf -http { - req_status_zone server_name $server_name 256k; - req_status_zone server_addr $server_addr 256k; - - req_status server_name server_addr; - - server { - location /req-status { - req_status_show on; - #allow 127.0.0.1; #only allow requests from localhost - #deny all; #deny all other hosts + update `nginx.conf` file, add status module exposed endpoint, as follows: + + ```shell + # modify nginx.conf + http { + req_status_zone server_name $server_name 256k; + req_status_zone server_addr $server_addr 256k; + + req_status server_name server_addr; + + server { + location /req-status { + req_status_show on; + #allow 127.0.0.1; #only allow requests from localhost + #deny all; #deny all other hosts + } } } -} -``` + ``` 3. Reload Nginx -```shell - -nginx -s reload -``` + ```shell + + nginx -s reload + ``` 4. Access `http://localhost/req-status` in the browser to view the Nginx monitoring status information. + **Refer Doc: ** -**Refer Doc: https://github.com/zls0424/ngx_req_status** - -**⚠️Attention: The endpoint path of the monitoring module is `/nginx-status` `/req-status`** + **⚠️Attention: The endpoint path of the monitoring module is `/nginx-status` `/req-status`** ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -128,28 +131,26 @@ nginx -s reload #### Metrics Set:nginx_status -| Metric name | Metric unit | Metric help description | -|-------------|-------------|------------------------------------------| -| accepts | | Accepted connections | -| handled | | Successfully processed connections | -| active | | Currently active connections | -| dropped | | Discarded connections | -| requests | | Client requests | -| reading | | Connections performing read operations | -| writing | | Connections performing write operations | -| waiting | | Waiting connections | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-----------------------------------------| +| accepts | | Accepted connections | +| handled | | Successfully processed connections | +| active | | Currently active connections | +| dropped | | Discarded connections | +| requests | | Client requests | +| reading | | Connections performing read operations | +| writing | | Connections performing write operations | +| waiting | | Waiting connections | #### Metrics Set:req_status -| Metric name | Metric unit | Metric help description | -|-------------|-------------|---------------------------------| -| zone_name | | Group category | -| key | | Group name | -| max_active | | Maximum concurrent connections | -| max_bw | kb | Maximum bandwidth | -| traffic | kb | Total traffic | -| requests | | Total requests | -| active | | Current concurrent connections | -| bandwidth | kb | Current bandwidth | - - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------------| +| zone_name | | Group category | +| key | | Group name | +| max_active | | Maximum concurrent connections | +| max_bw | kb | Maximum bandwidth | +| traffic | kb | Total traffic | +| requests | | Total requests | +| active | | Current concurrent connections | +| bandwidth | kb | Current bandwidth | diff --git a/home/versioned_docs/version-v1.5.x/help/ntp.md b/home/versioned_docs/version-v1.5.x/help/ntp.md index 5eca6c58e80..3c3abeee5a8 100644 --- a/home/versioned_docs/version-v1.5.x/help/ntp.md +++ b/home/versioned_docs/version-v1.5.x/help/ntp.md @@ -9,9 +9,9 @@ keywords: [ open source monitoring tool, open source NTP monitoring tool, monito **Protocol Use:NTP** -### Configuration parameter +## Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -23,7 +23,7 @@ keywords: [ open source monitoring tool, open source NTP monitoring tool, monito #### Metrics Set:summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |--------------|-------------|------------------------------------------------------------------------------------------| | responseTime | ms | The time it takes for the NTP server to respond to a request). | | time | ms | The current time reported by the NTP server). | @@ -35,4 +35,3 @@ keywords: [ open source monitoring tool, open source NTP monitoring tool, monito | stratum | | The stratumevel of the NTP server, indicating its distance from a reference clock). | | referenceId | | An identifier that indicates the reference clock or time source used by the NTP server). | | precision | | The precision of the NTP server's clock, indicating its accuracy). | - diff --git a/home/versioned_docs/version-v1.5.x/help/openai.md b/home/versioned_docs/version-v1.5.x/help/openai.md index 7fc70548645..a7a10de2b19 100644 --- a/home/versioned_docs/version-v1.5.x/help/openai.md +++ b/home/versioned_docs/version-v1.5.x/help/openai.md @@ -8,11 +8,12 @@ keywords: [open source monitoring system, open source network monitoring, OpenAI ### Preparation #### Obtain Session Key + > 1. Open Chrome browser's network request interface > `Mac: cmd + option + i` > `Windows: ctrl + shift + i` -> 2. Visit https://platform.openai.com/usage -> 3. Find the request to https://api.openai.com/dashboard/billing/usage +> 2. Visit +> 3. Find the request to > 4. Find the Authorization field in the request headers, and copy the content after `Bearer`. For example: `sess-123456` ### Notes @@ -22,7 +23,7 @@ keywords: [open source monitoring system, open source network monitoring, OpenAI ### Configuration Parameters -| Parameter Name | Parameter Description | +| Parameter Name | Parameter Description | |:------------------|------------------------------------------------------------------------------------------------| | Monitoring Host | Fill in api.openai.com here. | | Task Name | Identify the name of this monitoring, ensuring uniqueness. | @@ -36,7 +37,7 @@ keywords: [open source monitoring system, open source network monitoring, OpenAI #### Metric Set: Credit Grants -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |----------------------|-------------|--------------------------------------| | Total Granted | USD ($) | Total granted credit limit | | Total Used | USD ($) | Total used credit limit | @@ -45,14 +46,14 @@ keywords: [open source monitoring system, open source network monitoring, OpenAI #### Metric Set: Model Cost -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |-------------|-------------|------------------------| | Model Name | None | Name of the model | | Cost | USD ($) | Expenses for the model | #### Metric Set: Billing Subscription -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |--------------------------|-------------|-----------------------------------------| | Has Payment Method | None | Whether payment method is available | | Canceled | None | Whether subscription is cancelled | diff --git a/home/versioned_docs/version-v1.5.x/help/opengauss.md b/home/versioned_docs/version-v1.5.x/help/opengauss.md index 650882861e8..3490bb8b003 100644 --- a/home/versioned_docs/version-v1.5.x/help/opengauss.md +++ b/home/versioned_docs/version-v1.5.x/help/opengauss.md @@ -5,54 +5,51 @@ sidebar_label: OpenGauss Database keywords: [open source monitoring tool, open source database monitoring tool, monitoring opengauss database metrics] --- -> Collect and monitor the general performance Metrics of OpenGauss database. +> Collect and monitor the general performance Metrics of OpenGauss database. ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 5432 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|-------------------------------------------| +| server_version | none | Version number of the database server | +| port | none | Database server exposure service port | +| server_encoding | none | Character set encoding of database server | +| data_directory | none | Database storage data disk address | +| max_connections | connections | Database maximum connections | #### Metric set:state -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| name | none | Database name, or share-object is a shared object | +| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | +| deadlocks | number | Number of deadlocks detected in the database | +| blks_read | times | The number of disk blocks read in the database | +| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | +| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | +| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | +| stats_reset | none | The last time these statistics were reset | #### Metric set:activity -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------------------| +| running | connections | Number of current client connections | diff --git a/home/versioned_docs/version-v1.5.x/help/opensuse.md b/home/versioned_docs/version-v1.5.x/help/opensuse.md index e4220262e67..a4c1fc873de 100644 --- a/home/versioned_docs/version-v1.5.x/help/opensuse.md +++ b/home/versioned_docs/version-v1.5.x/help/opensuse.md @@ -4,103 +4,104 @@ title: Monitoring OpenSUSE Operating System Monitoring sidebar_label: OpenSUSE OS keywords: [open source monitoring system, open source operating system monitoring, OpenSUSE OS monitoring] --- + > Collect and monitor general performance metrics of the OpenSUSE operating system. ### Configuration Parameters -| Parameter Name | Parameter Help Description | -| -------------- | ---------------------------------------------------------------------------- | -| Monitored Host | The IPV4, IPV6, or domain name of the host being monitored. Note ⚠️ No protocol header (e.g., https://, http://). | -| Task Name | The name that identifies this monitoring, which must be unique. | -| Port | The port provided by Linux SSH, default is 22. | -| Timeout | Sets the connection timeout in milliseconds, default is 6000 ms. | -| Connection Reuse | Sets whether SSH connections are reused, default is :false. If false, a new connection is created each time information is retrieved. | -| Username | SSH connection username, optional. | -| Password | SSH connection password, optional. | -| Collector | Configures which collector is used to schedule data collection for this monitoring. | -| Monitoring Period | The interval time for periodic data collection in seconds, with a minimum interval of 30 seconds. | -| Binding Tags | Used for categorized management of monitoring resources. | -| Description | Additional notes and descriptions for this monitoring, where users can make notes. | -| Key | The key required to connect to the server. | +| Parameter Name | Parameter Help Description | +|-------------------|---------------------------------------------------------------------------------------------------------------------------------------| +| Monitored Host | The IPV4, IPV6, or domain name of the host being monitored. Note ⚠️ No protocol header (e.g., https://, http://). | +| Task Name | The name that identifies this monitoring, which must be unique. | +| Port | The port provided by Linux SSH, default is 22. | +| Timeout | Sets the connection timeout in milliseconds, default is 6000 ms. | +| Connection Reuse | Sets whether SSH connections are reused, default is :false. If false, a new connection is created each time information is retrieved. | +| Username | SSH connection username, optional. | +| Password | SSH connection password, optional. | +| Collector | Configures which collector is used to schedule data collection for this monitoring. | +| Monitoring Period | The interval time for periodic data collection in seconds, with a minimum interval of 30 seconds. | +| Binding Tags | Used for categorized management of monitoring resources. | +| Description | Additional notes and descriptions for this monitoring, where users can make notes. | +| Key | The key required to connect to the server. | ### Collection Metrics #### Metric Set: System Basic Information -| Metric Name | Unit | Metric Help Description | -| --------------- | ------- | ------------------------ | -| Host Name | None | Host name | -| System Version | None | Operating system version| -| Uptime | None | Uptime | +| Metric Name | Unit | Metric Help Description | +|----------------|------|--------------------------| +| Host Name | None | Host name | +| System Version | None | Operating system version | +| Uptime | None | Uptime | #### Metric Set: CPU Information -| Metric Name | Unit | Metric Help Description | -| --------------- | ----- | ---------------------------------- | -| info | None | CPU model | -| cores | Cores | Number of CPU cores | -| interrupt | Count | Number of CPU interrupts | -| load | None | Average CPU load over the last 1/5/15 minutes | -| context_switch | Count | Number of context switches | -| usage | % | CPU usage rate | +| Metric Name | Unit | Metric Help Description | +|----------------|-------|-----------------------------------------------| +| info | None | CPU model | +| cores | Cores | Number of CPU cores | +| interrupt | Count | Number of CPU interrupts | +| load | None | Average CPU load over the last 1/5/15 minutes | +| context_switch | Count | Number of context switches | +| usage | % | CPU usage rate | #### Metric Set: Memory Information -| Metric Name | Unit | Metric Help Description | -| ----------- | ---- | ------------------------ | -| total | Mb | Total memory capacity | -| used | Mb | Memory used by user programs | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory used for cache | +| Metric Name | Unit | Metric Help Description | +|-------------|------|-------------------------------------| +| total | Mb | Total memory capacity | +| used | Mb | Memory used by user programs | +| free | Mb | Free memory capacity | +| buff_cache | Mb | Memory used for cache | | available | Mb | Remaining available memory capacity | -| usage | % | Memory usage rate | +| usage | % | Memory usage rate | #### Metric Set: Disk Information -| Metric Name | Unit | Metric Help Description | -| --------------- | ----- | ----------------------------- | -| disk_num | Count | Total number of disks | -| partition_num | Count | Total number of partitions | -| block_write | Count | Total number of blocks written to disk | -| block_read | Count | Total number of blocks read from disk | -| write_rate | iops | Disk block write rate per second | +| Metric Name | Unit | Metric Help Description | +|---------------|-------|----------------------------------------| +| disk_num | Count | Total number of disks | +| partition_num | Count | Total number of partitions | +| block_write | Count | Total number of blocks written to disk | +| block_read | Count | Total number of blocks read from disk | +| write_rate | iops | Disk block write rate per second | #### Metric Set: Network Card Information -| Metric Name | Unit | Metric Help Description | -| ------------------- | ---- | -------------------------- | -| interface_name | None | Network card name | -| receive_bytes | Mb | Inbound data traffic | -| transmit_bytes | Mb | Outbound data traffic | +| Metric Name | Unit | Metric Help Description | +|----------------|------|-------------------------| +| interface_name | None | Network card name | +| receive_bytes | Mb | Inbound data traffic | +| transmit_bytes | Mb | Outbound data traffic | #### Metric Set: File System | Metric Name | Unit | Metric Help Description | -| ---------- | ---- | ------------------------ | -| filesystem | None | Name of the file system | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | Usage rate | -| mounted | None | Mount point directory | +|-------------|------|-------------------------| +| filesystem | None | Name of the file system | +| used | Mb | Used disk size | +| available | Mb | Available disk size | +| usage | % | Usage rate | +| mounted | None | Mount point directory | #### Metric Set: Top 10 CPU Processes Statistics for the top 10 processes using the CPU. Statistics include: Process ID, CPU usage, memory usage, executed command. -| Metric Name | Unit | Metric Help Description | -| ------------ | ---- | ------------------------ | -| pid | None | Process ID | -| cpu_usage | % | CPU usage rate | -| mem_usage | % | Memory usage rate | -| command | None | Executed command | +| Metric Name | Unit | Metric Help Description | +|-------------|------|-------------------------| +| pid | None | Process ID | +| cpu_usage | % | CPU usage rate | +| mem_usage | % | Memory usage rate | +| command | None | Executed command | #### Metric Set: Top 10 Memory Processes Statistics for the top 10 processes using memory. Statistics include: Process ID, memory usage, CPU usage, executed command. -| Metric Name | Unit | Metric Help Description | -| ------------ | ---- | ------------------------ | -| pid | None | Process ID | -| mem_usage | % | Memory usage rate | -| cpu_usage | % | CPU usage rate | -| command | None | Executed command | \ No newline at end of file +| Metric Name | Unit | Metric Help Description | +|-------------|------|-------------------------| +| pid | None | Process ID | +| mem_usage | % | Memory usage rate | +| cpu_usage | % | CPU usage rate | +| command | None | Executed command | diff --git a/home/versioned_docs/version-v1.5.x/help/oracle.md b/home/versioned_docs/version-v1.5.x/help/oracle.md index 5410e53decb..978e6736620 100644 --- a/home/versioned_docs/version-v1.5.x/help/oracle.md +++ b/home/versioned_docs/version-v1.5.x/help/oracle.md @@ -9,7 +9,7 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -27,37 +27,37 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_version | none | Database version | -| database_type | none | Database type | -| hostname | none | Host name | -| instance_name | none | Database instance name | -| startup_time | none | Database start time | -| status | none | Database status | +| Metric name | Metric unit | Metric help description | +|------------------|-------------|-------------------------| +| database_version | none | Database version | +| database_type | none | Database type | +| hostname | none | Host name | +| instance_name | none | Database instance name | +| startup_time | none | Database start time | +| status | none | Database status | #### Metric set:tablespace -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| file_id | none | File ID | -| file_name | none | File name | -| tablespace_name | none | Table space name | -| status | none | Status | -| bytes | MB | Size | -| blocks | none | Number of blocks | +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|-------------------------| +| file_id | none | File ID | +| file_name | none | File name | +| tablespace_name | none | Table space name | +| status | none | Status | +| bytes | MB | Size | +| blocks | none | Number of blocks | #### Metric set:user_connect -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| username | none | Username | -| counts | number | Current connection counts | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|---------------------------| +| username | none | Username | +| counts | number | Current connection counts | #### Metric set:performance -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| qps | QPS | I/O Requests per second | -| tps | TPS | User transaction per second | -| mbps | MBPS | I/O Megabytes per second | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-----------------------------| +| qps | QPS | I/O Requests per second | +| tps | TPS | User transaction per second | +| mbps | MBPS | I/O Megabytes per second | diff --git a/home/versioned_docs/version-v1.5.x/help/ping.md b/home/versioned_docs/version-v1.5.x/help/ping.md index c5603fdfbce..bed89d53dcf 100644 --- a/home/versioned_docs/version-v1.5.x/help/ping.md +++ b/home/versioned_docs/version-v1.5.x/help/ping.md @@ -5,32 +5,32 @@ sidebar_label: PING connectivity keywords: [open source monitoring tool, open source network monitoring tool, monitoring ping metrics] --- -> Ping the opposite end HOST address and judge its connectivity. +> Ping the opposite end HOST address and judge its connectivity. ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Ping timeout | Set the timeout when Ping does not respond to data, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Ping timeout | Set the timeout when Ping does not respond to data, unit:ms, default: 3000ms | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:summary -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-------------------------| +| responseTime | ms | Website response time | ### Common Problem 1. Ping connectivity monitoring exception when installing hertzbeat for package deployment. The hertzbeat installed and deployed by the installation package is not available for ping connectivity monitoring, but local direct ping is available 。 -> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. -> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. -> See https://stackoverflow.com/questions/11506321/how-to-ping-an-ip-address + +> The deployment of the installation package requires configuring the root permission of the Java virtual machine to start hertzbeat to use ICMP. If the root permission is not enabled, judge whether port 7 of telnet opposite end is opened. +> When you install HertzBeat via DockerDocker root is enabled by default. No such problem. +> See diff --git a/home/versioned_docs/version-v1.5.x/help/plugin.md b/home/versioned_docs/version-v1.5.x/help/plugin.md index b8104a3594a..11d42c65fcf 100644 --- a/home/versioned_docs/version-v1.5.x/help/plugin.md +++ b/home/versioned_docs/version-v1.5.x/help/plugin.md @@ -1,10 +1,11 @@ --- id: plugin title: Custom plugin -sidebar_label: Custom plugin +sidebar_label: Custom plugin --- ## Custom plugins + ### Introduction Currently, `Hertzbeat` relies on the `alert` module to notify the user, and then the user can take actions such as sending requests, executing `sql`, executing `shell` scripts, etc. However, this can only be automated manually or by `webhook` to receive the alert message. @@ -13,10 +14,11 @@ After adding the customized code, you only need to package the `plugin` module, Currently, `HertzBeat` only set up the trigger `alert` method after alarm, if you need to set up the trigger method at the time of acquisition, startup program, etc., please mention `Task` in `https://github.com/apache/hertzbeat/issues/new/choose`. ### Specific uses + 1. Pull the master branch code `git clone https://github.com/apache/hertzbeat.git` and locate the `plugin` module's `Plugin` interface. ![plugin-1.png](/img/docs/help/plugin-1.png) -2. In the `org.apache.hertzbeat.plugin.impl` directory, create a new interface implementation class, such as `org.apache.hertzbeat.plugin.impl.DemoPluginImpl`, and receive the `Alert` class as a parameter, implement the `alert ` method, the logic is customized by the user, here we simply print the object. +2. In the `org.apache.hertzbeat.plugin.impl` directory, create a new interface implementation class, such as `org.apache.hertzbeat.plugin.impl.DemoPluginImpl`, and receive the `Alert` class as a parameter, implement the `alert` method, the logic is customized by the user, here we simply print the object. ![plugin-2.png](/img/docs/help/plugin-2.png) 3. Package the `hertzbeat-plugin` module. ![plugin-3.png](/img/docs/help/plugin-3.png) diff --git a/home/versioned_docs/version-v1.5.x/help/pop3.md b/home/versioned_docs/version-v1.5.x/help/pop3.md index 822192ad66d..c73884a0afe 100644 --- a/home/versioned_docs/version-v1.5.x/help/pop3.md +++ b/home/versioned_docs/version-v1.5.x/help/pop3.md @@ -24,10 +24,9 @@ If you want to monitor information in 'POP3' with this monitoring type, you just 5. 通过POP3服务器域名,端口号,qq邮箱账号以及授权码连接POP3服务器,采集监控指标 ``` - ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -42,9 +41,7 @@ If you want to monitor information in 'POP3' with this monitoring type, you just #### Metrics Set:email_status -| Metric name | Metric unit | Metric help description | -|--------------|-------------|------------------------------------------| -| email_count | | Number of emails | -| mailbox_size | kb | The total size of emails in the mailbox | - - +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-----------------------------------------| +| email_count | | Number of emails | +| mailbox_size | kb | The total size of emails in the mailbox | diff --git a/home/versioned_docs/version-v1.5.x/help/port.md b/home/versioned_docs/version-v1.5.x/help/port.md index e3350a8776f..6ae4a6bda2d 100644 --- a/home/versioned_docs/version-v1.5.x/help/port.md +++ b/home/versioned_docs/version-v1.5.x/help/port.md @@ -7,25 +7,22 @@ keywords: [open source monitoring tool, open source port monitoring tool, monito > Judge whether the exposed port of the opposite end service is available, then judge whether the opposite end service is available, and collect Metrics such as response time for monitoring. -### Configuration parameter - -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Connection timeout | Waiting timeout for port connection, unit:ms, default: 3000ms | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +### Configuration parameter + +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | +| Connection timeout | Waiting timeout for port connection, unit:ms, default: 3000ms | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:summary -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | - - - +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-------------------------| +| responseTime | ms | Website response time | diff --git a/home/versioned_docs/version-v1.5.x/help/postgresql.md b/home/versioned_docs/version-v1.5.x/help/postgresql.md index de14f9d62eb..5191f7d325d 100644 --- a/home/versioned_docs/version-v1.5.x/help/postgresql.md +++ b/home/versioned_docs/version-v1.5.x/help/postgresql.md @@ -9,50 +9,47 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 5432 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 5432 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| server_version | none | Version number of the database server | -| port | none | Database server exposure service port | -| server_encoding | none | Character set encoding of database server | -| data_directory | none | Database storage data disk address | -| max_connections | connections | Database maximum connections | +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|-------------------------------------------| +| server_version | none | Version number of the database server | +| port | none | Database server exposure service port | +| server_encoding | none | Character set encoding of database server | +| data_directory | none | Database storage data disk address | +| max_connections | connections | Database maximum connections | #### Metric set:state -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Database name, or share-object is a shared object | -| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | -| deadlocks | number | Number of deadlocks detected in the database | -| blks_read | times | The number of disk blocks read in the database | -| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | -| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | -| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | -| stats_reset | none | The last time these statistics were reset | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| name | none | Database name, or share-object is a shared object | +| conflicts | times | The number of queries canceled in the database due to a conflict with recovery | +| deadlocks | number | Number of deadlocks detected in the database | +| blks_read | times | The number of disk blocks read in the database | +| blks_hit | times | Times the disk block has been found to be in the buffer, so there is no need to read it once (This only includes hits in the PostgreSQL buffer, not in the operating system file system buffer) | +| blk_read_time | ms | Time spent by the backend reading data file blocks in the database | +| blk_write_time | ms | Time spent by the backend writing data file blocks in the database | +| stats_reset | none | The last time these statistics were reset | #### Metric set:activity -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| running | connections | Number of current client connections | - - +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------------------| +| running | connections | Number of current client connections | diff --git a/home/versioned_docs/version-v1.5.x/help/process.md b/home/versioned_docs/version-v1.5.x/help/process.md index 599c4f1ea7b..61dacc52ba6 100644 --- a/home/versioned_docs/version-v1.5.x/help/process.md +++ b/home/versioned_docs/version-v1.5.x/help/process.md @@ -4,34 +4,33 @@ title: Monitoring Linux Process Monitoring sidebar_label: Process keywords: [Open Source Monitoring System, Operating System Process Monitoring, Process Monitoring] --- + > Collect and monitor basic information of processes on Linux systems, including CPU usage, memory usage, physical memory, IO, etc. ## Configuration Parameters - -| Parameter Name | Parameter Description | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | +| Parameter Name | Parameter Description | +|---------------------|----------------------------------------------------------------------------------------------------------------------------------| | Target Host | The IPv4, IPv6, or domain name of the monitored endpoint. Note ⚠️: Do not include the protocol header (e.g., https://, http://). | -| Task Name | Identifies the name of this monitoring, ensuring uniqueness. | -| Port | SSH port of the Linux system, default: 22 | -| Timeout | Sets the timeout for the connection in milliseconds, default is 6000 milliseconds. | -| Reuse Connection | Sets whether SSH connection is reused, default is false. When false, a new connection is created for each information retrieval. | -| Username | Username for the server. | -| Password | Password for the server. | -| Process Name | Name or part of the name of the process to be monitored. | -| Collector | Specifies which collector to use for scheduling this monitoring. | -| Monitoring Interval | Interval for periodic data collection, in seconds. Minimum interval that can be set is 30 seconds. | -| Tags | Used for categorizing and managing monitoring resources. | -| Description | Additional notes and descriptions for identifying this monitoring. Users can add remarks here. | -| Private Key | Private key required for connecting to the server. | +| Task Name | Identifies the name of this monitoring, ensuring uniqueness. | +| Port | SSH port of the Linux system, default: 22 | +| Timeout | Sets the timeout for the connection in milliseconds, default is 6000 milliseconds. | +| Reuse Connection | Sets whether SSH connection is reused, default is false. When false, a new connection is created for each information retrieval. | +| Username | Username for the server. | +| Password | Password for the server. | +| Process Name | Name or part of the name of the process to be monitored. | +| Collector | Specifies which collector to use for scheduling this monitoring. | +| Monitoring Interval | Interval for periodic data collection, in seconds. Minimum interval that can be set is 30 seconds. | +| Tags | Used for categorizing and managing monitoring resources. | +| Description | Additional notes and descriptions for identifying this monitoring. Users can add remarks here. | +| Private Key | Private key required for connecting to the server. | ### Metrics Collected #### Metric Set: Process Basic Information - | Metric Name | Metric Unit | Metric Description | -| ----------- | ----------- | ------------------ | +|-------------|-------------|--------------------| | PID | NONE | Process ID | | User | NONE | User | | CPU | NONE | CPU Usage | @@ -41,9 +40,8 @@ keywords: [Open Source Monitoring System, Operating System Process Monitoring, P #### Metric Set: Memory Usage Information - | Metric Name | Metric Unit | Metric Description | -| ----------- | ----------- | ------------------ | +|-------------|-------------|--------------------| | PID | NONE | Process ID | | detail | NONE | Detailed metrics | @@ -63,9 +61,8 @@ Includes metrics for: #### Metric Set: Other Monitoring Information - -| Metric Name | Metric Unit | Metric Description | -| ----------- | ----------- | --------------------------------- | +| Metric Name | Metric Unit | Metric Description | +|-------------|-------------|-----------------------------------| | PID | NONE | Process ID | | path | NONE | Execution Path | | date | NONE | Start Time | @@ -73,9 +70,8 @@ Includes metrics for: #### Metric Set: IO - | Metric Name | Metric Unit | Metric Description | -| ----------- | ----------- | ------------------ | +|-------------|-------------|--------------------| | PID | NONE | Process ID | | metric | NONE | Metric Name | | value | NONE | Metric Value | diff --git a/home/versioned_docs/version-v1.5.x/help/prometheus.md b/home/versioned_docs/version-v1.5.x/help/prometheus.md index 4de9f80f67d..39af4dff7e4 100755 --- a/home/versioned_docs/version-v1.5.x/help/prometheus.md +++ b/home/versioned_docs/version-v1.5.x/help/prometheus.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, Prometheus protocol monitoring ] ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Task Name | Identify the name of this monitoring. The name needs to be unique. | @@ -39,6 +39,3 @@ You can use the following configuration: - Endpoint Path: `/actuator/prometheus` Keep the rest of the settings default. - - - diff --git a/home/versioned_docs/version-v1.5.x/help/pulsar.md b/home/versioned_docs/version-v1.5.x/help/pulsar.md index 2cc520d6189..1424bd3f58b 100644 --- a/home/versioned_docs/version-v1.5.x/help/pulsar.md +++ b/home/versioned_docs/version-v1.5.x/help/pulsar.md @@ -4,52 +4,48 @@ title: Monitoring Pulsar Monitoring sidebar_label: Apache Pulsar keywords: [open-source monitoring system, open-source database monitoring, HbaseMaster monitoring] --- + > Collecting and monitoring general performance metrics of Pulsar **Protocol Used: HTTP** ## Configuration Parameters - -| Parameter Name | Description | -| ------------------- | ---------------------------------------------------------------------------------------------------------------------------- | +| Parameter Name | Description | +|---------------------|----------------------------------------------------------------------------------------------------------------------------| | Target Host | The monitored endpoint's IPV4, IPV6, or domain name. Note⚠️: Do not include the protocol header (e.g., https://, http://). | -| Port | The webServicePort value of Pulsar, default is 8080. | -| Task Name | The name identifying this monitoring task, must be unique. | -| Query Timeout | Set the connection timeout in milliseconds, default is 3000 milliseconds. | -| Monitoring Interval | Interval time for periodic data collection, in seconds, minimum interval is 30 seconds. | -| Binding Tags | Used for categorizing monitoring resources. | -| Description/Remarks | Additional notes and descriptions for this monitoring task. Users can add more information here. | +| Port | The webServicePort value of Pulsar, default is 8080. | +| Task Name | The name identifying this monitoring task, must be unique. | +| Query Timeout | Set the connection timeout in milliseconds, default is 3000 milliseconds. | +| Monitoring Interval | Interval time for periodic data collection, in seconds, minimum interval is 30 seconds. | +| Binding Tags | Used for categorizing monitoring resources. | +| Description/Remarks | Additional notes and descriptions for this monitoring task. Users can add more information here. | ### Collected Metrics #### Metric Set: Version Information - -| Metric Name | Unit | Description | -| ------------ | ---- | ------------------- | -| Version Info | NONE | Version Information | +| Metric Name | Unit | Description | +|--------------|------|---------------------| +| Version Info | NONE | Version Information | #### Metric Set: process_start_time_seconds - -| Metric Name | Unit | Description | -| ------------------ | ---- | ------------------ | -| Process Start Time | NONE | Process Start Time | +| Metric Name | Unit | Description | +|--------------------|------|--------------------| +| Process Start Time | NONE | Process Start Time | #### Metric Set: process_open_fds - -| Metric Name | Unit | Description | -| --------------------- | ---- | ------------------------------- | -| Open File Descriptors | NONE | Number of Open File Descriptors | +| Metric Name | Unit | Description | +|-----------------------|------|---------------------------------| +| Open File Descriptors | NONE | Number of Open File Descriptors | #### Metric Set: process_max_fds - -| Metric Name | Unit | Description | -| -------------------- | ---- | ---------------------------------- | -| Max File Descriptors | NONE | Maximum Number of File Descriptors | +| Metric Name | Unit | Description | +|----------------------|------|------------------------------------| +| Max File Descriptors | NONE | Maximum Number of File Descriptors | #### Metric Set: jvm_memory_pool_allocated_bytes diff --git a/home/versioned_docs/version-v1.5.x/help/rabbitmq.md b/home/versioned_docs/version-v1.5.x/help/rabbitmq.md index 1bcd3ea5851..91fad16ff1e 100644 --- a/home/versioned_docs/version-v1.5.x/help/rabbitmq.md +++ b/home/versioned_docs/version-v1.5.x/help/rabbitmq.md @@ -7,24 +7,24 @@ keywords: [open source monitoring tool, open source rabbitmq monitoring tool, mo > Monitoring the running status of RabbitMQ message middleware, nodes, topics and other related metrics. -### Pre-monitoring Operations +### Pre-monitoring Operations > HertzBeat uses RabbitMQ Management's Rest Api to collect RabbitMQ metric data. > Therefore, you need to enable the Management plug-in in your RabbitMQ environment 1. Open the Management plugin, or use the self-opening version -```shell -rabbitmq-plugins enable rabbitmq_management -``` + ```shell + rabbitmq-plugins enable rabbitmq_management + ``` -2. Access http://ip:15672/ with a browser, and the default account password is `guest/guest`. Successful login means that it is successfully opened. +2. Access with a browser, and the default account password is `guest/guest`. Successful login means that it is successfully opened. 3. Just add the corresponding RabbitMQ monitoring in HertzBeat, the parameters use the IP port of Management, and the default account password. ### Configuration parameters -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | | Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | @@ -40,7 +40,7 @@ rabbitmq-plugins enable rabbitmq_management #### metrics: overview -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |--------------------|-------------|------------------------------------| | product_version | None | Product Version | | product_name | None | Product name | @@ -52,7 +52,7 @@ rabbitmq-plugins enable rabbitmq_management #### metrics: object_totals -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |-------------|-------------|-----------------------------| | channels | none | total number of channels | | connections | none | total number of connections | @@ -62,24 +62,24 @@ rabbitmq-plugins enable rabbitmq_management #### metrics: nodes -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |--------------------|-------------|-----------------------------------------------------------| | name | None | The node name | | type | None | The node type | | running | None | Running state | | os_pid | None | Pid in OS | -| mem_limit | MB | Memory usage high watermark | -| mem_used | MB | Total amount of memory used | +| mem_limit | MB | Memory usage high watermark | +| mem_used | MB | Total amount of memory used | | fd_total | None | File descriptors available | -| fd_used | None | File descriptors used | -| sockets_total | None | Sockets available | -| sockets_used | None | Sockets used | -| proc_total | None | Erlang process limit | -| proc_used | None | Erlang processes used | -| disk_free_limit | GB | Free disk space low watermark | +| fd_used | None | File descriptors used | +| sockets_total | None | Sockets available | +| sockets_used | None | Sockets used | +| proc_total | None | Erlang process limit | +| proc_used | None | Erlang processes used | +| disk_free_limit | GB | Free disk space low watermark | | disk_free | GB | Free disk space | -| gc_num | None | GC runs | -| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | +| gc_num | None | GC runs | +| gc_bytes_reclaimed | MB | Bytes reclaimed by GC | | context_switches | None | Context_switches num | | io_read_count | None | Total number of read operations | | io_read_bytes | KB | Total data size read into disk | @@ -100,27 +100,26 @@ rabbitmq-plugins enable rabbitmq_management | queue_deleted | None | queue deleted num | | connection_closed | None | connection closed num | - #### metrics: queues -| Metric Name | Metric Unit | Metric Description | +| Metric Name | Metric Unit | Metric Description | |------------------------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------| -| name | None | The name of the queue with non-ASCII characters escaped as in C. | +| name | None | The name of the queue with non-ASCII characters escaped as in C. | | node | None | The queue on the node name | -| state | None | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | +| state | None | The state of the queue. Normally "running", but may be "{syncing, message_count}" if the queue is synchronising. | | type | None | Queue type, one of: quorum, stream, classic. | -| vhost | None | vhost path | +| vhost | None | vhost path | | auto_delete | None | Whether the queue will be deleted automatically when no longer used | -| policy | None | Effective policy name for the queue. | +| policy | None | Effective policy name for the queue. | | consumers | None | Number of consumers. | | memory | B | Bytes of memory allocated by the runtime for the queue, including stack, heap and internal structures. | | messages_ready | None | Number of messages ready to be delivered to clients | -| messages_unacknowledged | None | Number of messages delivered to clients but not yet acknowledged | +| messages_unacknowledged | None | Number of messages delivered to clients but not yet acknowledged | | messages | None | Sum of ready and unacknowledged messages (queue depth) | -| messages_ready_ram | None | Number of messages from messages_ready which are resident in ram | +| messages_ready_ram | None | Number of messages from messages_ready which are resident in ram | | messages_persistent | None | Total number of persistent messages in the queue (will always be 0 for transient queues) | -| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | +| message_bytes | B | Sum of the size of all message bodies in the queue. This does not include the message properties (including headers) or any overhead | | message_bytes_ready | B | Like message_bytes but counting only those messages ready to be delivered to clients | -| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | +| message_bytes_unacknowledged | B | Like message_bytes but counting only those messages delivered to clients but not yet acknowledged | | message_bytes_ram | B | Like message_bytes but counting only those messages which are currently held in RAM | | message_bytes_persistent | B | Like message_bytes but counting only those messages which are persistent | diff --git a/home/versioned_docs/version-v1.5.x/help/redhat.md b/home/versioned_docs/version-v1.5.x/help/redhat.md index d877c46df36..28b076f129d 100644 --- a/home/versioned_docs/version-v1.5.x/help/redhat.md +++ b/home/versioned_docs/version-v1.5.x/help/redhat.md @@ -9,7 +9,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS ### Configuration Parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|----------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The IP, IPV6, or domain name of the monitored endpoint. Note ⚠️: Do not include protocol headers (eg: https://, http://). | | Task Name | Identifies the name of this monitoring, ensuring uniqueness. | @@ -28,7 +28,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS #### Metric Set: Basic Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|---------------------------| | Host Name | None | Host name. | | System Version | None | Operating system version. | @@ -36,7 +36,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS #### Metric Set: CPU Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|-------------------------------------------| | info | None | CPU model. | | cores | None | Number of CPU cores. | @@ -47,7 +47,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS #### Metric Set: Memory Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|------------------------------------| | total | Mb | Total memory capacity. | | used | Mb | Used memory by user programs. | @@ -58,7 +58,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS #### Metric Set: Disk Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |---------------|-------------|------------------------------------| | disk_num | None | Total number of disks. | | partition_num | None | Total number of partitions. | @@ -68,7 +68,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, RedHat OS #### Metric Set: Interface Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|--------------------------------| | interface_name | None | Name of the network interface. | | receive_bytes | Mb | Inbound data traffic. | diff --git a/home/versioned_docs/version-v1.5.x/help/redis.md b/home/versioned_docs/version-v1.5.x/help/redis.md index de0df0d52ca..dca24d20781 100644 --- a/home/versioned_docs/version-v1.5.x/help/redis.md +++ b/home/versioned_docs/version-v1.5.x/help/redis.md @@ -2,244 +2,238 @@ id: redis title: 监控:REDIS数据库监控 sidebar_label: REDIS -keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] +keywords: [开源监控系统, 开源数据库监控, Redis数据库监控] --- > 对REDIS数据库的通用性能指标进行采集监控。支持REDIS1.0+。 ### 配置参数 -| 参数名称 | 参数帮助描述 | -| ----------- | ----------- | -| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | -| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | -| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | -| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | -| 数据库名称 | 数据库实例名称,可选。 | -| 用户名 | 数据库连接用户名,可选 | -| 密码 | 数据库连接密码,可选 | -| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | -| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | -| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | +| 参数名称 | 参数帮助描述 | +|--------|------------------------------------------------------| +| 监控Host | 被监控的对端IPV4,IPV6或域名。注意⚠️不带协议头(eg: https://, http://)。 | +| 任务名称 | 标识此监控的名称,名称需要保证唯一性。 | +| 端口 | redis对外提供的端口,默认为6379,sentinel节点默认26379 | +| 超时时间 | 设置redis info 查询未响应数据时的超时时间,单位ms毫秒,默认3000毫秒。 | +| 数据库名称 | 数据库实例名称,可选。 | +| 用户名 | 数据库连接用户名,可选 | +| 密码 | 数据库连接密码,可选 | +| 采集间隔 | 监控周期性采集数据间隔时间,单位秒,可设置的最小间隔为30秒 | +| 是否探测 | 新增监控前是否先探测检查监控可用性,探测成功才会继续新增修改操作 | +| 描述备注 | 更多标识和描述此监控的备注信息,用户可以在这里备注信息 | ### 采集指标 #### 指标集合:server -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| redis_version | 无 | Redis 服务器版本 | -| redis_git_sha1 | 无 | Git SHA1 | -| redis_git_dirty | 无 | Git dirty flag | -| redis_build_id | 无 | redis 构建的id | -| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | -| os | 无 | Redis 服务器的宿主操作系统 | -| arch_bits | 无 | 架构(32 或 64 位) | -| multiplexing_api | 无 | Redis使用的事件循环机制| -| atomicvar_api | 无 | Redis使用的原子 API | -| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本| -| process_id | 无 | 服务器进程的PID | -| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | -| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | -| tcp_port | 无 | TCP/IP侦听端口 | -| server_time_usec | 无 | 微秒级精度的基于时间的系统时间| -| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | -| uptime_in_days | 无 | 自Redis服务器启动后的天数 | -| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | -| configured_hz | 无 | 服务器配置的频率设置 | -| lru_clock | 无 | 时钟每分钟递增,用于LRU管理| -| executable | 无 | 服务器可执行文件的路径 | -| config_file | 无 | 配置文件的路径 | -| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志| -| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------|------|-----------------------------------------------| +| redis_version | 无 | Redis 服务器版本 | +| redis_git_sha1 | 无 | Git SHA1 | +| redis_git_dirty | 无 | Git dirty flag | +| redis_build_id | 无 | redis 构建的id | +| redis_mode | 无 | redis模式(包括standalone, sentinel, cluster) | +| os | 无 | Redis 服务器的宿主操作系统 | +| arch_bits | 无 | 架构(32 或 64 位) | +| multiplexing_api | 无 | Redis使用的事件循环机制 | +| atomicvar_api | 无 | Redis使用的原子 API | +| gcc_version | 无 | 用于编译Redis服务器的GCC编译器版本 | +| process_id | 无 | 服务器进程的PID | +| process_supervised | 无 | 受监管系统(包括:upstart、systemd、unknown、no) | +| run_id | 无 | 标识Redis服务器的随机值(由Sentinel和Cluster使用) | +| tcp_port | 无 | TCP/IP侦听端口 | +| server_time_usec | 无 | 微秒级精度的基于时间的系统时间 | +| uptime_in_seconds | 无 | 自Redis服务器启动后的秒数 | +| uptime_in_days | 无 | 自Redis服务器启动后的天数 | +| hz | 无 | 服务器的当前频率设置,redis相关定时任务的执行频率(如清除过期key,关闭超时客户端) | +| configured_hz | 无 | 服务器配置的频率设置 | +| lru_clock | 无 | 时钟每分钟递增,用于LRU管理 | +| executable | 无 | 服务器可执行文件的路径 | +| config_file | 无 | 配置文件的路径 | +| io_threads_active | 无 | 指示I/O线程是否处于活动状态的标志 | +| shutdown_in_milliseconds | 无 | 复制副本在完成关闭序列之前赶上复制的最长剩余时间。此字段仅在停机期间出现。 | #### 指标集合:clients -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | -| cluster_connections | 无 | 群集总线使用的套接字数量的近似值| -| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。| -| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | -| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | -| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | -| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING)| -| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------------|------|--------------------------------------------------------------------------------| +| connected_clients | 无 | 客户端连接数(不包括来自副本的连接) | +| cluster_connections | 无 | 群集总线使用的套接字数量的近似值 | +| maxclients | 无 | maxclients配置指令的值。这是connected_clients、connected_slave和cluster_connections之和的上限。 | +| client_recent_max_input_buffer | byte | 当前客户端连接中最大的输入缓冲区 | +| client_recent_max_output_buffer | byte | 当前客户端连接中最大的输出缓冲区 | +| blocked_clients | 无 | 阻塞呼叫挂起的客户端数(BLPOP、BRPOP、BRPOPLPUSH、BLMOVE、BZPOPMIN、BZPOPMAX) | +| tracking_clients | 无 | 正在跟踪的客户端数(CLIENT TRACKING) | +| clients_in_timeout_table | 无 | 客户端超时表中的客户端数 | #### 指标集合:memory -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | -| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | -| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字| -| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值| -| used_memory_peak | byte | Redis消耗的峰值内存(字节)| -| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | -| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和| -| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节)| -| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | -| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | -| allocator_allocated | byte| 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同| -| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片| -| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | -| total_system_memory | byte | Redis主机的内存总量 | -| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | -| used_memory_lua | byte | Lua引擎使用的字节数 | -| used_memory_lua_human | KB | 上一个值的人类可读值 | -| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | -| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | -| number_of_cached_scripts | 无 |缓存的lua脚本数量 | -| maxmemory | byte | maxmemory配置指令的值| -| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | -| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | -| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | -| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | -| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | -| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | -| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | -| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | -| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | -| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | -| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。| -| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | -| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | -| mem_clients_normal | 无 | 普通客户端使用的内存 | -| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | -| mem_allocator | 无 | 内存分配器,在编译时选择。 | -| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | -| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL)| -| lazyfreed_objects | 无 | 已延迟释放的对象数。| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|----------|-----------------------------------------------------------------------------------------------| +| used_memory | byte | Redis使用其分配器(标准libc、jemalloc或tcmalloc等替代分配器)分配的总字节数 | +| used_memory_human | GB/MB/KB | 上一个值的人类可读表示 | +| used_memory_rss | byte | 操作系统看到的Redis分配的字节数(也称为驻留集大小)。这是top(1)和ps(1)等工具报告的数字 | +| used_memory_rss_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak | byte | Redis消耗的峰值内存(字节) | +| used_memory_peak_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_peak_perc | 无 | used_memory_peak 与used_memory百分比 | +| used_memory_overhead | byte | 服务器分配用于管理其内部数据结构的所有开销的字节总和 | +| used_memory_startup | byte | Redis在启动时消耗的初始内存量(字节) | +| used_memory_dataset | byte | 数据集的字节大小(used_memory - used_memory_overhead) | +| used_memory_dataset_perc | 无 | 已用内存数据集占净内存使用量的百分比(used_memory_dataset / (used_memory - used_memory_startup)) | +| allocator_allocated | byte | 从分配器分配的总字节数,包括内部碎片。通常与使用的内存相同 | +| allocator_active | byte | 分配器活动页中的总字节数,包括外部碎片 | +| allocator_resident | byte | 分配器中驻留的总字节数(RSS),包括可释放到操作系统的页面(通过MEMORY PURGE或仅等待) | +| total_system_memory | byte | Redis主机的内存总量 | +| total_system_memory_human | GB/MB/KB | 上一个值的人类可读值 | +| used_memory_lua | byte | Lua引擎使用的字节数 | +| used_memory_lua_human | KB | 上一个值的人类可读值 | +| used_memory_scripts | byte | 缓存Lua脚本使用的字节数 | +| used_memory_scripts_human | GB/MB/KB | 上一值的人类可读值 | +| number_of_cached_scripts | 无 | 缓存的lua脚本数量 | +| maxmemory | byte | maxmemory配置指令的值 | +| maxmemory_human | GB/MB/KB | 上一个值的人类可读值 | +| maxmemory_policy | 无 | 当达到maxmemory时的淘汰策略 | +| allocator_frag_ratio | 无 | allocator_active 和 allocator_allocated之间的比率这是真实(外部)碎片度量(不是mem_fragmentation_ratio) | +| allocator_frag_bytes | byte | allocator_active 和 allocator_allocated 之间的差值。 | +| allocator_rss_ratio | | 从操作系统角度看, 内存分配器碎片比例 | +| allocator_rss_bytes | byte | allocator_resident 和 allocator_active之间的差值 | +| rss_overhead_ratio | 无 | used_memory_rss和allocator_resident之间的比率,这包括与分配器或堆无关的RSS开销 | +| rss_overhead_bytes | byte | used_memory_rss和allocator_resident之间的增量 | +| mem_fragmentation_ratio | 无 | used_memory_rss和used_memory之间的比率,注意,这不仅包括碎片,还包括其他进程开销(请参阅allocator_* metrics),以及代码、共享库、堆栈等开销。 | +| mem_fragmentation_bytes | byte | used_memory_rss和used_memory之间的增量。注意,当总碎片字节较低(几兆字节)时,高比率(例如1.5及以上)不是问题的表现 | +| mem_not_counted_for_evict | byte | 不应驱逐的内存大小,以字节为单位。这基本上是瞬时复制和AOF缓冲区。 | +| mem_replication_backlog | byte | 复制backlog的内存大小, 以字节为单位 | +| mem_clients_slaves | 无 | 副本客户端使用的内存-从Redis 7.0开始,副本缓冲区与复制积压工作共享内存,因此当副本不触发内存使用增加时,此字段可以显示0。 | +| mem_clients_normal | 无 | 普通客户端使用的内存 | +| mem_aof_buffer | 无 | 用于AOF和AOF重写缓冲区的临时大小 | +| mem_allocator | 无 | 内存分配器,在编译时选择。 | +| active_defrag_running | 无 | 启用activedefrag时,这表示碎片整理当前是否处于活动状态,以及它打算使用的CPU百分比。 | +| lazyfree_pending_objects | 无 | 等待释放的对象数(使用ASYNC选项调用UNLINK或FLUSHDB和FLUSHOLL) | +| lazyfreed_objects | 无 | 已延迟释放的对象数。 | #### 指标集合:persistence -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是| -| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | -| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | -| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比| -| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | -| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | -| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | -| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | -| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | -| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功| -| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | -| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | -| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | -| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | -| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite| -| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | -| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | -| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | -| aof_last_write_status | 无 | 上次aof写入状态 | -| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | -| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | -| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|------------------------------|--------|-----------------------------------------------------------------------------------------------------| +| loading | 无 | 服务器是否正在进行持久化 0 - 否 1 -是 | +| current_cow_size | byte | 运行子fork时写入时复制内存的大小(以字节为单位) | +| current_cow_size_age | second | current_cow_size值的年龄(以秒为单位) | +| current_fork_perc | 无 | 当前fork进程的百分比,对于AOF和RDB的fork,它是current_save_keys_processed占current_save_keys_total的百分比 | +| current_save_keys_processed | 无 | 当前保存操作处理的key的数量 | +| current_save_keys_total | 无 | 当前保存操作开始时的key的数量 | +| rdb_changes_since_last_save | 无 | 离最近一次成功生成rdb文件,写入命令的个数,即有多少个写入命令没有持久化 | +| rdb_bgsave_in_progress | 无 | 服务器是否正在创建rdb文件 0 - 否 1 - 是 | +| rdb_last_save_time | second | 最近一次创建rdb文件的时间戳,单位秒 | +| rdb_last_bgsave_status | 无 | 最近一次rdb持久化是否成功 ok 成功 | +| rdb_last_bgsave_time_sec | second | 最近一次成功生成rdb文件耗时秒数 | +| rdb_current_bgsave_time_sec | 无 | 如果服务器正在创建rdb文件,那么这个字段记录的就是当前的创建操作已经耗费的秒数 | +| rdb_last_cow_size | 无 | RDB过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| aof_enabled | 无 | 是否开启了AOF 0 - 否 1 - 是 | +| aof_rewrite_in_progress | 无 | 标识aof的rewrite操作是否在进行中 0 - 否 1- 是 | +| aof_rewrite_scheduled | 无 | rewrite任务计划,当客户端发送bgrewriteaof指令,如果当前rewrite子进程正在执行,那么将客户端请求的bgrewriteaof变为计划任务,待aof子进程结束后执行rewrite | +| aof_last_rewrite_time_sec | 无 | 最近一次aof rewrite耗费的时长 | +| aof_current_rewrite_time_sec | second | 如果rewrite操作正在进行,则记录所使用的时间,单位秒 | +| aof_last_bgrewrite_status | 无 | 上次 bgrewrite aof 操作的状态 ok 成功 | +| aof_last_write_status | 无 | 上次aof写入状态 | +| aof_last_cow_size | 无 | AOF过程中父进程与子进程相比执行了多少修改(包括读缓冲区,写缓冲区,数据修改等) | +| module_fork_in_progress | 无 | 指示fork模块正在进行的标志 | +| module_fork_last_cow_size | 无 | 上一次fork操作期间写入时复制内存的字节大小 | #### 指标集合:stats -| 指标名称 |指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| total_connections_received | 无 | 服务器接受的连接总数 | -| total_commands_processed | 无 | 服务器处理的命令总数 | -| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | -| total_net_input_bytes | byte | 从网络读取的字节总数 | -| total_net_output_bytes | byte | 写入网络的总字节数 | -| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | -| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | -| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数| -| sync_full | 无 | 具有副本的完整重新同步数 | -| sync_partial_ok | 无 | 接受的部分重新同步请求数 | -| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | -| expired_keys | 无 | 过期的key总数 | -| expired_stale_perc | 无 | 可能过期key的百分比 | -| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | -| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | -| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | -| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | -| keyspace_misses | 无 | 在主dict 中未查到key的次数 | -| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | -| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | -| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | -| total_forks | 无 | 自服务器启动以来的fork操作总数| -| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | -| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | -| active_defrag_hits | 无 | 主动碎片整理命中次数 | -| active_defrag_misses | 无 | 主动碎片整理未命中次数 | -| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | -| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数| -| tracking_total_keys | 无 | key 查询的总数| -| tracking_total_items | 无 | item查询的总数 | -| tracking_total_prefixes | 无 | 前缀查询的总数 | -| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | -| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | -| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | -| total_reads_processed | 无 | 正在读取的请求数 | -| total_writes_processed | 无 | 正在写入的请求数 | -| io_threaded_reads_processed | 无 | 正在读取的线程数| -| io_threaded_writes_processed | 无 | 正在写入的线程数 | - +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|----------------------------------------------------| +| total_connections_received | 无 | 服务器接受的连接总数 | +| total_commands_processed | 无 | 服务器处理的命令总数 | +| instantaneous_ops_per_sec | 无 | 每秒处理的命令数 | +| total_net_input_bytes | byte | 从网络读取的字节总数 | +| total_net_output_bytes | byte | 写入网络的总字节数 | +| instantaneous_input_kbps | KB/S | 网络每秒的读取速率(KB/秒) | +| instantaneous_output_kbps | KB/S | 网络每秒的写入速率(KB/秒) | +| rejected_connections | 无 | 由于maxclients限制而拒绝的连接数 | +| sync_full | 无 | 具有副本的完整重新同步数 | +| sync_partial_ok | 无 | 接受的部分重新同步请求数 | +| sync_partial_err | 无 | 被拒绝的部分重新同步请求数 | +| expired_keys | 无 | 过期的key总数 | +| expired_stale_perc | 无 | 可能过期key的百分比 | +| expired_time_cap_reached_count | 无 | 活动过期周期提前停止的次数 | +| expire_cycle_cpu_milliseconds | 无 | 活动到期周期所花费的累计时间 | +| evicted_keys | 无 | 由于最大内存限制而收回key的数量 | +| keyspace_hits | 无 | 在主dict 中成功查找key的次数 | +| keyspace_misses | 无 | 在主dict 中未查到key的次数 | +| pubsub_channels | 无 | 客户端使用 pub/sub 频道的总和 | +| pubsub_patterns | 无 | 客户端使用 pub/sub 模式的全局数量 | +| latest_fork_usec | 无 | 最后一次fork操作的持续时间(以微秒为单位) | +| total_forks | 无 | 自服务器启动以来的fork操作总数 | +| migrate_cached_sockets | 无 | 为MIGRATE目的打开的socket数量 | +| slave_expires_tracked_keys | 无 | trace key 到期的数量(仅适用于可写副本) | +| active_defrag_hits | 无 | 主动碎片整理命中次数 | +| active_defrag_misses | 无 | 主动碎片整理未命中次数 | +| active_defrag_key_hits | 无 | 主动碎片整理key命中次数 | +| active_defrag_key_misses | 无 | 主动碎片整理key未命中次数 | +| tracking_total_keys | 无 | key 查询的总数 | +| tracking_total_items | 无 | item查询的总数 | +| tracking_total_prefixes | 无 | 前缀查询的总数 | +| unexpected_error_replies | 无 | 意外错误回复数,即AOF加载或复制中的错误类型 | +| total_error_replies | 无 | 发出的错误回复总数,即被拒绝的命令(命令执行之前的错误)和失败的命令(在命令执行过程中的错误)的总和 | +| dump_payload_sanitizations | 无 | 参考sanitize-dump-payload配置 | +| total_reads_processed | 无 | 正在读取的请求数 | +| total_writes_processed | 无 | 正在写入的请求数 | +| io_threaded_reads_processed | 无 | 正在读取的线程数 | +| io_threaded_writes_processed | 无 | 正在写入的线程数 | #### 指标集合:replication -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| role | 无 | 节点角色 master 主节点 slave 从节点 | -| connected_slaves | 无 | 连接的从节点数 | -| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | -| master_replid | 无 | 实例启动的随机字符串| -| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID| -| master_repl_offset | 无 | 主从同步偏移量 | -| second_repl_offset | 无 | 接受从服务ID的最大偏移量| -| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | -| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | -| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | -| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|--------------------------------|------|-------------------------------------------------------------------------------------| +| role | 无 | 节点角色 master 主节点 slave 从节点 | +| connected_slaves | 无 | 连接的从节点数 | +| master_failover_state | 无 | 正在进行的故障切换的状态(如果有) | +| master_replid | 无 | 实例启动的随机字符串 | +| master_replid2 | 无 | 故障切换后用于PSYNC的辅助复制ID | +| master_repl_offset | 无 | 主从同步偏移量 | +| second_repl_offset | 无 | 接受从服务ID的最大偏移量 | +| repl_backlog_active | 无 | 表示从服务挤压处于活动状态 | +| repl_backlog_size | byte | 从服务积压缓冲区的总大小(字节) | +| repl_backlog_first_byte_offset | 无 | 复制缓冲区里偏移量的大小 | +| repl_backlog_histlen | 无 | 此值等于 master_repl_offset - repl_backlog_first_byte_offset,该值不会超过repl_backlog_size的大小 | #### 指标集合:cpu -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和| -| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和| -| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和| -| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | -| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU| -| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------------------|------|------------------------| +| used_cpu_sys | 无 | Redis主进程在内核态所占用CPU时钟总和 | +| used_cpu_user | 无 | Redis主进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_children | 无 | Redis子进程在内核态所占用CPU时钟总和 | +| used_cpu_user_children | 无 | Redis子进程在用户态所占用CPU时钟总和 | +| used_cpu_sys_main_thread | 无 | Redis服务器主线程消耗的内核CPU | +| used_cpu_user_main_thread | 无 | Redis服务器主线程消耗的用户CPU | #### 指标集合:errorstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| errorstat_ERR | 无 | 错误累计出现的次数 | -| errorstat_MISCONF | 无 | | +| 指标名称 | 指标单位 | 指标帮助描述 | +|-------------------|------|-----------| +| errorstat_ERR | 无 | 错误累计出现的次数 | +| errorstat_MISCONF | 无 | | #### 指标集合:cluster -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是| - +| 指标名称 | 指标单位 | 指标帮助描述 | +|-----------------|------|--------------------| +| cluster_enabled | 无 | 集群是否开启 0 - 否 1 - 是 | #### 指标集合:commandstats -| 指标名称 | 指标单位 | 指标帮助描述 | -| ----------- | ----------- | ----------- | -| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数| -| cmdstat_get | 无 | get命令的统计信息 | -| cmdstat_setnx | 无 | setnx命令的统计信息 | -| cmdstat_hset | 无 | hset命令的统计信息 | -| cmdstat_hget | 无 | hget命令的统计信息 | -| cmdstat_lpush | 无 | lpush命令的统计信息 | -| cmdstat_rpush | 无 | rpush命令的统计信息 | -| cmdstat_lpop | 无 | lpop命令的统计信息 | -| cmdstat_rpop | 无 | rpop命令的统计信息 | -| cmdstat_llen | 无 | llen命令的统计信息 | +| 指标名称 | 指标单位 | 指标帮助描述 | +|---------------|------|---------------------------------------------------------------------------------------------------------------------------| +| cmdstat_set | 无 | set命令的统计信息,calls: 累计调用该命令的次数;usec: 调用该命令的累计耗时,单位微秒;usec_per_call: 调用该命令的平均耗时;rejected_call: 拒绝执行的次数;failed_calls: 调用失败的次数 | +| cmdstat_get | 无 | get命令的统计信息 | +| cmdstat_setnx | 无 | setnx命令的统计信息 | +| cmdstat_hset | 无 | hset命令的统计信息 | +| cmdstat_hget | 无 | hget命令的统计信息 | +| cmdstat_lpush | 无 | lpush命令的统计信息 | +| cmdstat_rpush | 无 | rpush命令的统计信息 | +| cmdstat_lpop | 无 | lpop命令的统计信息 | +| cmdstat_rpop | 无 | rpop命令的统计信息 | +| cmdstat_llen | 无 | llen命令的统计信息 | diff --git a/home/versioned_docs/version-v1.5.x/help/rocketmq.md b/home/versioned_docs/version-v1.5.x/help/rocketmq.md index f56bdfc2f14..4fbe5e195a4 100644 --- a/home/versioned_docs/version-v1.5.x/help/rocketmq.md +++ b/home/versioned_docs/version-v1.5.x/help/rocketmq.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, monitoring Apache RocketMQ metrics ] ### Configuration parameters -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Namesrv Host | IPV4,IPV6 of RocketMQ name server(eg: https://, http://)。 | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -24,7 +24,7 @@ keywords: [ open source monitoring tool, monitoring Apache RocketMQ metrics ] #### Metric set:cluster -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|---------------------------------------| | BrokerId | none | Broker id | | Address | none | Broker address | @@ -38,7 +38,7 @@ keywords: [ open source monitoring tool, monitoring Apache RocketMQ metrics ] #### Metric set:Consumer -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------|-------------|-------------------------| | Consumer_group | none | Consumer group | | Client_quantity | none | Number of clients | diff --git a/home/versioned_docs/version-v1.5.x/help/rockylinux.md b/home/versioned_docs/version-v1.5.x/help/rockylinux.md index f83eb606b0a..43a5f78d7ee 100644 --- a/home/versioned_docs/version-v1.5.x/help/rockylinux.md +++ b/home/versioned_docs/version-v1.5.x/help/rockylinux.md @@ -9,7 +9,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu ### Configuration Parameters -| Parameter Name | Parameter help description | +| Parameter Name | Parameter help description | |---------------------|----------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | The IP, IPV6, or domain name of the monitored endpoint. Note ⚠️: Do not include protocol headers (eg: https://, http://). | | Task Name | Identifies the name of this monitoring, ensuring uniqueness. | @@ -28,7 +28,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu #### Metric Set: Basic Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|---------------------------| | Host Name | None | Host name. | | System Version | None | Operating system version. | @@ -36,7 +36,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu #### Metric Set: CPU Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|-------------------------------------------| | info | None | CPU model. | | cores | None | Number of CPU cores. | @@ -47,7 +47,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu #### Metric Set: Memory Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |-------------|-------------|------------------------------------| | total | Mb | Total memory capacity. | | used | Mb | Used memory by user programs. | @@ -58,7 +58,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu #### Metric Set: Disk Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |---------------|-------------|------------------------------------| | disk_num | None | Total number of disks. | | partition_num | None | Total number of partitions. | @@ -68,7 +68,7 @@ keywords: [ Open Source Monitoring System, Open Source OS Monitoring, Rocky Linu #### Metric Set: Interface Info -| Metric Name | Metric Unit | Metric help description | +| Metric Name | Metric Unit | Metric help description | |----------------|-------------|--------------------------------| | interface_name | None | Name of the network interface. | | receive_bytes | Mb | Inbound data traffic. | diff --git a/home/versioned_docs/version-v1.5.x/help/shenyu.md b/home/versioned_docs/version-v1.5.x/help/shenyu.md index 01523769c78..7bc5f61bdc0 100644 --- a/home/versioned_docs/version-v1.5.x/help/shenyu.md +++ b/home/versioned_docs/version-v1.5.x/help/shenyu.md @@ -5,39 +5,39 @@ sidebar_label: Apache ShenYu keywords: [open source monitoring tool, open source apache shenyu monitoring tool, monitoring apache shenyu metrics] --- -> monitor ShenYu running status(JVM-related), include request response and other related metrics. +> monitor ShenYu running status(JVM-related), include request response and other related metrics. -## Pre-monitoring operations +## Pre-monitoring operations -Enable `metrics` plugin in ShenYu, expose it's prometheus metrics endpoint。 +Enable `metrics` plugin in ShenYu, expose it's prometheus metrics endpoint。 -Refer [ShenYu Document](https://shenyu.apache.org/docs/plugin-center/observability/metrics-plugin) +Refer [ShenYu Document](https://shenyu.apache.org/docs/plugin-center/observability/metrics-plugin) -Two Steps Mainly: +Two Steps Mainly: -1. add metrics plugin dependency in gateway's pom.xml. +1. add metrics plugin dependency in gateway's pom.xml. -```xml - - org.apache.shenyu - shenyu-spring-boot-starter-plugin-metrics - ${project.version} - -``` + ```xml + + org.apache.shenyu + shenyu-spring-boot-starter-plugin-metrics + ${project.version} + + ``` -2. modify this config in shenyu gateway yaml. +2. modify this config in shenyu gateway yaml. -```yaml -shenyu: - metrics: - enabled: false #false is close, true is open - name : prometheus - host: 127.0.0.1 - port: 8090 - jmxConfig: - props: - jvm_enabled: true #enable jvm monitoring -``` + ```yaml + shenyu: + metrics: + enabled: false #false is close, true is open + name : prometheus + host: 127.0.0.1 + port: 8090 + jmxConfig: + props: + jvm_enabled: true #enable jvm monitoring + ``` Finally, restart the access gateway metrics endpoint `http://ip:8090` to respond to prometheus format data. @@ -57,75 +57,73 @@ Finally, restart the access gateway metrics endpoint `http://ip:8090` to respond #### Index collection: shenyu_request_total -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect all requests from ShenYu gateway | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|------------------------------------------| +| value | None | Collect all requests from ShenYu gateway | #### Metric collection: shenyu_request_throw_created -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------------| -| value | None | Collect the number of abnormal requests from ShenYu Gateway | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------------------------------| +| value | None | Collect the number of abnormal requests from ShenYu Gateway | #### Metric collection: process_cpu_seconds_total -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| value | none | total user and system CPU elapsed seconds | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------------| +| value | none | total user and system CPU elapsed seconds | #### Metric collection: process_open_fds -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| value | none | number of open file descriptors | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|---------------------------------| +| value | none | number of open file descriptors | #### Metric collection: process_max_fds -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------------| -| value | none | maximum number of open file descriptors | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-----------------------------------------| +| value | none | maximum number of open file descriptors | #### Metric collection: jvm_info | Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-----------| -| runtime | none | JVM version information | -| vendor | none | JVM version information | -| version | None | JVM version information | +|-------------|-------------|-------------------------| +| runtime | none | JVM version information | +| vendor | none | JVM version information | +| version | None | JVM version information | #### Metric collection: jvm_memory_bytes_used -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| area | None | JVM memory area | -| value | MB | used size of the given JVM memory region | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|------------------------------------------| +| area | None | JVM memory area | +| value | MB | used size of the given JVM memory region | #### Metric collection: jvm_memory_pool_bytes_used -| Metric Name | Metric Unit | Metric Help Description | -|--------|------|-----------------| -| pool | None | JVM memory pool | -| value | MB | used size of the given JVM memory pool | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|----------------------------------------| +| pool | None | JVM memory pool | +| value | MB | used size of the given JVM memory pool | #### Metric collection: jvm_memory_pool_bytes_committed -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|------------------| -| pool | None | JVM memory pool | -| value | MB | The committed size of the given JVM memory pool | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------------------| +| pool | None | JVM memory pool | +| value | MB | The committed size of the given JVM memory pool | #### Metric collection: jvm_memory_pool_bytes_max -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------| ----------- | -| pool | None | JVM memory pool | -| value | MB | The maximum size of the memory pool for the given JVM | +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|-------------------------------------------------------| +| pool | None | JVM memory pool | +| value | MB | The maximum size of the memory pool for the given JVM | #### Metric collection: jvm_threads_state -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|-------------| -| state | none | thread state | -| value | None | The number of threads corresponding to the thread state | - - +| Metric Name | Metric Unit | Metric Help Description | +|-------------|-------------|---------------------------------------------------------| +| state | none | thread state | +| value | None | The number of threads corresponding to the thread state | diff --git a/home/versioned_docs/version-v1.5.x/help/smtp.md b/home/versioned_docs/version-v1.5.x/help/smtp.md index 971de82c3e0..4be044bc090 100644 --- a/home/versioned_docs/version-v1.5.x/help/smtp.md +++ b/home/versioned_docs/version-v1.5.x/help/smtp.md @@ -11,14 +11,13 @@ keywords: [ open source monitoring tool, open source SMTP monitoring tool, monit Determine whether the server is available through the hello command in SMTP ``` -> see https://datatracker.ietf.org/doc/html/rfc821#page-13 - +> see **Protocol Use:SMTP** ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -33,10 +32,9 @@ Determine whether the server is available through the hello command in SMTP #### Metrics Set:summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |--------------|-------------|----------------------------------------------------------------| | responseTime | ms | The time it takes for the SMTP server to respond to a request. | | response | | Response Status. | | smtpBanner | | Banner of SMTP server. | | heloInfo | | Response information returned by helo. | - diff --git a/home/versioned_docs/version-v1.5.x/help/spark.md b/home/versioned_docs/version-v1.5.x/help/spark.md index 3d4b44828ea..8bc045fc9a1 100644 --- a/home/versioned_docs/version-v1.5.x/help/spark.md +++ b/home/versioned_docs/version-v1.5.x/help/spark.md @@ -13,14 +13,11 @@ keywords: [open source monitoring tool, open source java spark monitoring tool, 1. Add Spark `VM options` When Start Server ⚠️ customIP -Refer: https://spark.apache.org/docs/latest/spark-standalone.html - +Refer: **监控配置spark的监控主要分为Master、Worker、driver、executor监控。Master和Worker的监控在spark集群运行时即可监控,Driver和Excutor的监控需要针对某一个app来进行监控。** **如果都要监控,需要根据以下步骤来配置** - - ## 第一步 **修改$SPARK_HOME/conf/spark-env.sh,添加以下语句:** @@ -36,8 +33,6 @@ export SPARK_DAEMON_JAVA_OPTS="-Dcom.sun.management.jmxremote -Dcom.sun.manageme 语句中有$JMX_PORT,这个的值可以自定义,也可以获取一个随机数作为端口号。 如果端口自定义为一个具体的值,而 spark 的 Master 和其中之一的 Worker 在同一台机器上,会出现端口冲突的情况。 - - ## 第二步 **vim $SPARK_HOME/conf/metrics.properties 添加如下内容** @@ -50,10 +45,6 @@ driver.source.jvm.class=org.apache.spark.metrics.source.JvmSource executor.source.jvm.class=org.apache.spark.metrics.source.JvmSource ``` - - - - ## 第三步 **vim $SPARK_HOME/conf/spark-defaults.conf,添加以下项为driver和executor设置监控端口,在有程序运行的情况下,此端口会被打开。** @@ -69,11 +60,9 @@ gement.jmxremote.port=8711 在spark的Master和Worker正常运行以及spark-submit提交了一个程序的情况下,可以从linux中查询出端口号码。 - - ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | | Monitoring name | Identify the name of this monitoring. The name needs to be unique | @@ -107,16 +96,15 @@ gement.jmxremote.port=8711 #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-----------------------|-------------|--------------------------| | LoadedClassCount | | Loaded Class Count | | TotalLoadedClassCount | | Total Loaded Class Count | | UnloadedClassCount | | Unloaded Class Count | - #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |-------------------------|-------------|----------------------------| | TotalStartedThreadCount | | Total Started Thread Count | | ThreadCount | | Thread Count | @@ -124,5 +112,3 @@ gement.jmxremote.port=8711 | DaemonThreadCount | | Daemon Thread Count | | CurrentThreadUserTime | ms | Current Thread User Time | | CurrentThreadCpuTime | ms | Current Thread Cpu Time | - - diff --git a/home/versioned_docs/version-v1.5.x/help/spring_gateway.md b/home/versioned_docs/version-v1.5.x/help/spring_gateway.md index ae24228c222..7f27b7fe8ef 100644 --- a/home/versioned_docs/version-v1.5.x/help/spring_gateway.md +++ b/home/versioned_docs/version-v1.5.x/help/spring_gateway.md @@ -19,6 +19,7 @@ If you want to monitor information in 'Spring Gateway' with this monitoring type spring-boot-starter-actuator ``` + **2. Modify the YML configuration exposure metric interface:** ```yaml @@ -35,56 +36,54 @@ management: ### Configure parameters -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Parameter name | Parameter Help describes the | +|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| Port | The default port provided by the database is 8080. | +| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | +| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric Collection: Health -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------| +| status | None | Service health: UP, Down | #### metric Collection: enviroment -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-----------------------------------------------| +| profile | None | The application runs profile: prod, dev, test | +| port | None | Apply the exposed port | +| os | None | Run the operating system | +| os_arch | None | Run the operating system architecture | +| jdk_vendor | None | jdk vendor | +| jvm_version | None | jvm version | #### metric Collection: threads -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|----------------------------------|-------------------| +| state | None | Thread status | +| number | None | This thread state corresponds to | number of threads | #### metric Collection: memory_used -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | - -#### metric Collection: route_info - -| Metric Name | metric unit | Metrics help describe | +| Metric Name | metric unit | Metrics help describe | |-------------|-------------|--------------------------------------| -| route_id | None | Route id | -| predicate | None | This is a routing matching rule | -| uri | None | This is a service resource identifier| -| order | None | The priority of this route | +| space | None | Memory space name | +| mem_used | MB | This space occupies a memory size of | +#### metric Collection: route_info +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|---------------------------------------| +| route_id | None | Route id | +| predicate | None | This is a routing matching rule | +| uri | None | This is a service resource identifier | +| order | None | The priority of this route | diff --git a/home/versioned_docs/version-v1.5.x/help/springboot2.md b/home/versioned_docs/version-v1.5.x/help/springboot2.md index ca46530f77b..08029dc23b5 100644 --- a/home/versioned_docs/version-v1.5.x/help/springboot2.md +++ b/home/versioned_docs/version-v1.5.x/help/springboot2.md @@ -19,6 +19,7 @@ If you want to monitor information in 'SpringBoot' with this monitoring type, yo spring-boot-starter-actuator ``` + **2. Modify the YML configuration exposure metric interface:** ```yaml @@ -29,7 +30,9 @@ management: include: '*' enabled-by-default: on ``` + *Note: If your project also introduces authentication related dependencies, such as springboot security, the interfaces exposed by SpringBoot Actor may be intercepted. In this case, you need to manually release these interfaces. Taking springboot security as an example, you should add the following code to the Security Configuration class:* + ```java public class SecurityConfig extends WebSecurityConfigurerAdapter{ @Override @@ -45,47 +48,48 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ } } ``` + ### Configure parameters -| Parameter name | Parameter Help describes the | -| ------------ |------------------------------------------------------| -| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | -| Monitoring Name | A name that identifies this monitoring that needs to be unique. | -| Port | The default port provided by the database is 8080. | -| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | -| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | -| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful -| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | +| Parameter name | Parameter Help describes the | +|-----------------------------|-------------------------------------------------------------------------------------------------------------------------------------|-----------------------------------------------| +| Monitor Host | THE MONITORED PEER IPV4, IPV6 OR DOMAIN NAME. Note ⚠️ that there are no protocol headers (eg: https://, http://). | +| Monitoring Name | A name that identifies this monitoring that needs to be unique. | +| Port | The default port provided by the database is 8080. | +| Enable HTTPS | Whether to access the website through HTTPS, please note that ⚠️ when HTTPS is enabled, the default port needs to be changed to 443 | +| The acquisition interval is | Monitor the periodic data acquisition interval, in seconds, and the minimum interval that can be set is 30 seconds | +| Whether to probe the | Whether to check the availability of the monitoring before adding a monitoring is successful, and the new modification operation | will continue only if the probe is successful | +| Description Comment | For more information identifying and describing the remarks for this monitoring, users can remark the information here | ### Collect metrics #### metric Collection: Health -| Metric Name | metric unit | Metrics help describe | -| ------------------ | -------- |--------------------------------| -| status | None | Service health: UP, Down | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------| +| status | None | Service health: UP, Down | #### metric Collection: enviroment -| Metric Name | metric unit | Metrics help describe | -|---------| -------- |----------------------------| -| profile | None | The application runs profile: prod, dev, test | -| port | None | Apply the exposed port | -| os | None | Run the operating system | -| os_arch | None | Run the operating system architecture | -| jdk_vendor | None | jdk vendor | -| jvm_version | None | jvm version | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|-----------------------------------------------| +| profile | None | The application runs profile: prod, dev, test | +| port | None | Apply the exposed port | +| os | None | Run the operating system | +| os_arch | None | Run the operating system architecture | +| jdk_vendor | None | jdk vendor | +| jvm_version | None | jvm version | #### metric Collection: threads -| Metric Name | metric unit | Metrics help describe | -| ---------------- |------|--------------------| -| state | None | Thread status | -| number | None | This thread state corresponds to | number of threads +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|----------------------------------|-------------------| +| state | None | Thread status | +| number | None | This thread state corresponds to | number of threads | #### metric Collection: memory_used -| Metric Name | metric unit | Metrics help describe | -|---------|------|------------| -| space | None | Memory space name | -| mem_used | MB | This space occupies a memory size of | +| Metric Name | metric unit | Metrics help describe | +|-------------|-------------|--------------------------------------| +| space | None | Memory space name | +| mem_used | MB | This space occupies a memory size of | diff --git a/home/versioned_docs/version-v1.5.x/help/springboot3.md b/home/versioned_docs/version-v1.5.x/help/springboot3.md index 0dbc32fc834..77d7032e436 100644 --- a/home/versioned_docs/version-v1.5.x/help/springboot3.md +++ b/home/versioned_docs/version-v1.5.x/help/springboot3.md @@ -51,7 +51,7 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### Configuration Parameters -| Parameter Name | Parameter Description | +| Parameter Name | Parameter Description | |-------------------|----------------------------------------------------------------------------------------------------------------------| | Monitor Host | The monitored peer's IPV4, IPV6, or domain name. Note⚠️: Do not include protocol headers (eg: https://, http://). | | Task Name | Identifies the name of this monitor, ensuring uniqueness is necessary. | @@ -65,23 +65,27 @@ public class SecurityConfig extends WebSecurityConfigurerAdapter{ ### Collection Metrics #### Metric Set: Availability + | Metric Name | Unit | Metric Description | |--------------|------|--------------------| | responseTime | ms | Response time | #### Metric Set: Threads -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|----------------------------------| | state | None | Thread state | | size | None | Number of threads for this state | #### Metric Set: Memory Usage -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|-----------------------------| | space | None | Memory space name | | mem_used | MB | Memory usage for this space | #### Metric Set: Health Status -| Metric Name | Unit | Metric Description | + +| Metric Name | Unit | Metric Description | |-------------|------|---------------------------------| | status | None | Service health status: UP, Down | diff --git a/home/versioned_docs/version-v1.5.x/help/sqlserver.md b/home/versioned_docs/version-v1.5.x/help/sqlserver.md index cc12abf0d7e..06e19252ede 100644 --- a/home/versioned_docs/version-v1.5.x/help/sqlserver.md +++ b/home/versioned_docs/version-v1.5.x/help/sqlserver.md @@ -9,68 +9,68 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by the database. The default is 1433 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by the database. The default is 1433 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 3000ms | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| URL | Database connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| machine_name | none | Windows computer name running the server instance | -| server_name | none | Server and instance information SQL Server associated with Windows instance | -| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | -| edition | none | The product SQL server version of the installed instance | -| start_time | none | Database start time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-----------------------------------------------------------------------------| +| machine_name | none | Windows computer name running the server instance | +| server_name | none | Server and instance information SQL Server associated with Windows instance | +| version | none | Version of the instance,SQL Server,format is "major.minor.build.revision" | +| edition | none | The product SQL server version of the installed instance | +| start_time | none | Database start time | #### Metric set:performance_counters -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| database_pages | none | Database pages, Number of pages obtained (buffer pool) | -| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | -| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | -| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | -| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | -| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | -| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | - +| Metric name | Metric unit | Metric help description | +|------------------------|-------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| database_pages | none | Database pages, Number of pages obtained (buffer pool) | +| target_pages | none | Target pages, The desired number of pages that the buffer pool must have | +| page_life_expectancy | s | Page life expectancy. The time that data pages stay in the buffer pool. This time is generally greater than 300 | +| buffer_cache_hit_ratio | % | Buffer cache hit ratio, Database buffer pool cache hit rate. The probability that the requested data is found in the buffer pool is generally greater than 80%, otherwise the buffer pool capacity may be too small | +| checkpoint_pages_sec | none | Checkpoint pages/sec, The number of dirty pages written to the disk by the checkpoint per second. If the data is too high, it indicates that there is a lack of memory capacity | +| page_reads_sec | none | Page reads/sec, Number of pages read per second in the cache pool | +| page_writes_sec | none | Page writes/sec, Number of pages written per second in the cache pool | #### Metric set:connection -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| user_connection | none | Number of connected sessions | - +| Metric name | Metric unit | Metric help description | +|-----------------|-------------|------------------------------| +| user_connection | none | Number of connected sessions | ### Common Problem 1. SSL connection problem fixed -jdk version: jdk11 -Description of the problem: SQL Server 2019 uses the SA user connection to report an error -Error message: +jdk version: jdk11 +Description of the problem: SQL Server 2019 uses the SA user connection to report an error +Error message: + ```text The driver could not establish a secure connection to SQL Server by using Secure Sockets Layer (SSL) encryption. Error: "PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target". ClientConnectionId:xxxxxxxxxxxxxxxxxxxx ``` -Screenshot of the problem: + +Screenshot of the problem: ![issue](https://user-images.githubusercontent.com/38679717/206621658-c0741d48-673d-45ff-9a3b-47d113064c12.png) -solution: +solution: Use advanced settings when adding `SqlServer` monitoring, customize JDBC URL, add parameter configuration after the spliced jdbc url, ```;encrypt=true;trustServerCertificate=true;```This parameter true means unconditionally trust the server returned any root certificate. Example: ```jdbc:sqlserver://127.0.0.1:1433;DatabaseName=demo;encrypt=true;trustServerCertificate=true;``` -Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification](https://techcommunity.microsoft.com/t5/azure-database-support-blog/pkix-path-building- failed-unable-to-find-valid-certification/ba-p/2591304) +Reference document: [microsoft pkix-path-building-failed-unable-to-find-valid-certification]( failed-unable-to-find-valid-certification/ba-p/2591304) diff --git a/home/versioned_docs/version-v1.5.x/help/ssl_cert.md b/home/versioned_docs/version-v1.5.x/help/ssl_cert.md index 4d808f47dca..253485f8b1a 100644 --- a/home/versioned_docs/version-v1.5.x/help/ssl_cert.md +++ b/home/versioned_docs/version-v1.5.x/help/ssl_cert.md @@ -9,25 +9,25 @@ keywords: [open source monitoring tool, open source ssl cert monitoring tool, mo ### Configuration parameters -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | -| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | -| Port | The port provided by the website, https generally defaults to 443. | -| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.cn/console` The relative path of the website is `/console`. | -| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | -| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | +| Parameter name | Parameter help description | +|----------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | The peer IPV4, IPV6 or domain name to be monitored. Note ⚠️Without protocol header (eg: https://, http://). | +| Monitoring name | The name that identifies this monitoring, and the name needs to be unique. | +| Port | The port provided by the website, https generally defaults to 443. | +| Relative path | The suffix path of the website address except the IP port, for example, `www.tancloud.io/console` The relative path of the website is `/console`. | +| Acquisition Interval | Interval time for monitoring periodic data collection, in seconds, the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring, and the operation of adding and modifying will continue after the detection is successful | +| Description Remarks | More remark information to identify and describe this monitoring, users can remark information here | ### Collect metrics #### Metric collection: certificate -| Metric Name | Metric Unit | Metric Help Description | -| ----------- |------|----------| -| subject | none | certificate name | -| expired | no | expired or not | -| start_time | None | Validity start time | -| start_timestamp | ms millisecond | Validity start timestamp | -| end_time | None | Expiration time | -| end_timestamp | ms milliseconds | expiration timestamp | +| Metric Name | Metric Unit | Metric Help Description | +|-----------------|-----------------|--------------------------| +| subject | none | certificate name | +| expired | no | expired or not | +| start_time | None | Validity start time | +| start_timestamp | ms millisecond | Validity start timestamp | +| end_time | None | Expiration time | +| end_timestamp | ms milliseconds | expiration timestamp | diff --git a/home/versioned_docs/version-v1.5.x/help/tidb.md b/home/versioned_docs/version-v1.5.x/help/tidb.md index 541b84d6876..2378b224110 100644 --- a/home/versioned_docs/version-v1.5.x/help/tidb.md +++ b/home/versioned_docs/version-v1.5.x/help/tidb.md @@ -17,22 +17,21 @@ keywords: [open source monitoring tool, open source database monitoring tool, mo ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Task name | Identify the name of this monitoring. The name needs to be unique | -| Service Port | The port that the TiDB database provides externally for status reporting is 10080 by default | -| PD Port | The PD port for the TiDB database, which defaults to 2379 | -| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 6000ms | -| JDBC Port | The TiDB database externally provides the port used for client requests, which defaults to 4000 | -| Database name | Database instance name, optional | -| Username | Database connection user name, optional | -| Password | Database connection password, optional | -| JDBC URL | Database using [JDBC](https://docs.pingcap.com/tidb/stable/dev-guide-connect-to-tidb#jdbc) connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | - +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Target Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Task name | Identify the name of this monitoring. The name needs to be unique | +| Service Port | The port that the TiDB database provides externally for status reporting is 10080 by default | +| PD Port | The PD port for the TiDB database, which defaults to 2379 | +| Query timeout | Set the timeout time when SQL query does not respond to data, unit: ms, default: 6000ms | +| JDBC Port | The TiDB database externally provides the port used for client requests, which defaults to 4000 | +| Database name | Database instance name, optional | +| Username | Database connection user name, optional | +| Password | Database connection password, optional | +| JDBC URL | Database using [JDBC](https://docs.pingcap.com/tidb/stable/dev-guide-connect-to-tidb#jdbc) connection URL,optional,If configured, the database name, user name, password and other parameters in the URL will overwrite the above configured parameters | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric @@ -44,12 +43,12 @@ Due to the large number of metrics that can be monitored, only the metrics queri #### Metric set: global variables -| Metric Name | Metric Unit | Metric Help Description | -|---------------|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| -| version | none | The MySQL version, followed by the TiDB version. For example '8.0.11-TiDB-v7.5.1'. | -| version_comment | none | The TiDB version. For example, 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible'. | -| version_compile_machine | none | The name of the CPU architecture on which TiDB is running. | -| version_compile_os | none | The name of the OS on which TiDB is running. | -| max_connections | none | The maximum number of concurrent connections permitted for a single TiDB instance. This variable can be used for resources control. The default value 0 means no limit. When the value of this variable is larger than 0, and the number of connections reaches the value, the TiDB server rejects new connections from clients. | -| datadir | none | The location where data is stored. This location can be a local path /tmp/tidb, or point to a PD server if the data is stored on TiKV. A value in the format of ${pd-ip}:${pd-port} indicates the PD server that TiDB connects to on startup. | -| port | none | The port that the tidb-server is listening on when speaking the MySQL protocol. | +| Metric Name | Metric Unit | Metric Help Description | +|-------------------------|-------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| version | none | The MySQL version, followed by the TiDB version. For example '8.0.11-TiDB-v7.5.1'. | +| version_comment | none | The TiDB version. For example, 'TiDB Server (Apache License 2.0) Community Edition, MySQL 8.0 compatible'. | +| version_compile_machine | none | The name of the CPU architecture on which TiDB is running. | +| version_compile_os | none | The name of the OS on which TiDB is running. | +| max_connections | none | The maximum number of concurrent connections permitted for a single TiDB instance. This variable can be used for resources control. The default value 0 means no limit. When the value of this variable is larger than 0, and the number of connections reaches the value, the TiDB server rejects new connections from clients. | +| datadir | none | The location where data is stored. This location can be a local path /tmp/tidb, or point to a PD server if the data is stored on TiKV. A value in the format of ${pd-ip}:${pd-port} indicates the PD server that TiDB connects to on startup. | +| port | none | The port that the tidb-server is listening on when speaking the MySQL protocol. | diff --git a/home/versioned_docs/version-v1.5.x/help/time_expression.md b/home/versioned_docs/version-v1.5.x/help/time_expression.md index e2cb0928b05..07eea14a81d 100644 --- a/home/versioned_docs/version-v1.5.x/help/time_expression.md +++ b/home/versioned_docs/version-v1.5.x/help/time_expression.md @@ -11,7 +11,7 @@ HertzBeat supports using expressions to calculate relative time during monitorin ### Syntax -``` +```shell ${FORMATTER [{ + | - } ]} ``` @@ -23,28 +23,28 @@ ${FORMATTER [{ + | - } ]} > Example outputs are based on the current time being `2022-04-24 02:40:00.123` -| Name | Description | Example | -|---------------|------------------------------------|------------------------| -| @now | Formats as `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | -| @date | Formats as `yyyy-MM-dd` | 2022-04-24 | -| @timestamp10 | Returns 10-digit timestamp | 1650768000 | -| @timestamp | Returns 13-digit timestamp | 1650768000000 | -| @time | Formats as `HH:mm:ss` | 02:40:00 | -| @year | Formats as `yyyy` | 2022 | -| @month | Formats as `MM` | 04 | -| @day | Formats as `dd` | 24 | -| @hour | Formats as `HH` | 02 | -| @minute | Formats as `mm` | 40 | -| @millisecond | Formats as `SSS` | 123 | -| @second | Formats as `ss` | 00 | +| Name | Description | Example | +|--------------|----------------------------------|---------------------| +| @now | Formats as `yyyy-MM-dd HH:mm:ss` | 2022-04-24 02:40:00 | +| @date | Formats as `yyyy-MM-dd` | 2022-04-24 | +| @timestamp10 | Returns 10-digit timestamp | 1650768000 | +| @timestamp | Returns 13-digit timestamp | 1650768000000 | +| @time | Formats as `HH:mm:ss` | 02:40:00 | +| @year | Formats as `yyyy` | 2022 | +| @month | Formats as `MM` | 04 | +| @day | Formats as `dd` | 24 | +| @hour | Formats as `HH` | 02 | +| @minute | Formats as `mm` | 40 | +| @millisecond | Formats as `SSS` | 123 | +| @second | Formats as `ss` | 00 | ### Supported Time Units | Name | Description | |------|-------------| -| y | Year | +| y | Year | | M | Month | -| d | Day | +| d | Day | | H | Hour | | m | Minute | | s | Second | @@ -57,8 +57,8 @@ ${FORMATTER [{ + | - } ]} #### Usage Examples 1. Simple expression - - `${now}` gets the current time and formats it as `yyyy-MM-dd HH:mm:ss` - - `${time+1h}` calculates the time one hour from now and formats it as `HH:mm:ss` - - `${time+1h+15s+30s}` calculates the time one hour, 15 minutes, and 30 seconds from now and formats it as `HH:mm:ss` + - `${now}` gets the current time and formats it as `yyyy-MM-dd HH:mm:ss` + - `${time+1h}` calculates the time one hour from now and formats it as `HH:mm:ss` + - `${time+1h+15s+30s}` calculates the time one hour, 15 minutes, and 30 seconds from now and formats it as `HH:mm:ss` 2. Complex expression template (if the built-in formatter does not meet your needs, you can combine multiple expressions) - - `${@year}年${@month}月${@day}日` returns the current date formatted as yyyy年MM月dd日 + - `${@year}年${@month}月${@day}日` returns the current date formatted as yyyy年MM月dd日 diff --git a/home/versioned_docs/version-v1.5.x/help/tomcat.md b/home/versioned_docs/version-v1.5.x/help/tomcat.md index 8b35808ffc8..9f103dfe5be 100644 --- a/home/versioned_docs/version-v1.5.x/help/tomcat.md +++ b/home/versioned_docs/version-v1.5.x/help/tomcat.md @@ -11,65 +11,63 @@ keywords: [open source monitoring tool, open source tomcat monitoring tool, moni ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by JMX | -| Username | JMX connection user name, optional | -| Password | JMX connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by JMX | +| Username | JMX connection user name, optional | +| Password | JMX connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metrics #### Metrics Set:memory_pool -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | | metrics name | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| name | | metrics name | +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### Metrics Set:code_cache -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| committed | kb | total size | -| init | kb | init size | -| max | kb | max size | -| used | kb | used size | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| committed | kb | total size | +| init | kb | init size | +| max | kb | max size | +| used | kb | used size | #### Metrics Set:class_loading -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| LoadedClassCount | | Loaded Class Count | -| TotalLoadedClassCount | | Total Loaded Class Count | -| UnloadedClassCount | | Unloaded Class Count | - +| Metric name | Metric unit | Metric help description | +|-----------------------|-------------|--------------------------| +| LoadedClassCount | | Loaded Class Count | +| TotalLoadedClassCount | | Total Loaded Class Count | +| UnloadedClassCount | | Unloaded Class Count | #### Metrics Set:thread -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| TotalStartedThreadCount | | Total Started Thread Count | -| ThreadCount | | Thread Count | -| PeakThreadCount | | Peak Thread Count | -| DaemonThreadCount | | Daemon Thread Count | -| CurrentThreadUserTime | ms | Current Thread User Time | -| CurrentThreadCpuTime | ms | Current Thread Cpu Time | +| Metric name | Metric unit | Metric help description | +|-------------------------|-------------|----------------------------| +| TotalStartedThreadCount | | Total Started Thread Count | +| ThreadCount | | Thread Count | +| PeakThreadCount | | Peak Thread Count | +| DaemonThreadCount | | Daemon Thread Count | +| CurrentThreadUserTime | ms | Current Thread User Time | +| CurrentThreadCpuTime | ms | Current Thread Cpu Time | ### Tomcat Enable JMX Protocol -1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file +1. After building tomcat, enter the bin directory under tomcat and modify the catalina.sh file 2. vim catalina.sh Attention⚠️ Replace Hostname And Port ```aidl CATALINA_OPTS="$CATALINA_OPTS -Dcom.sun.management.jmxremote -Djava.rmi.server.hostname=10.1.1.52 -Dcom.sun.management.jmxremote.port=1099 -Dcom.sun.management.jmxremote.ssl=false -Dcom.sun.management.jmxremote.authenticate=false" ``` - diff --git a/home/versioned_docs/version-v1.5.x/help/ubuntu.md b/home/versioned_docs/version-v1.5.x/help/ubuntu.md index e7d368c9ea3..9de28efe095 100644 --- a/home/versioned_docs/version-v1.5.x/help/ubuntu.md +++ b/home/versioned_docs/version-v1.5.x/help/ubuntu.md @@ -9,74 +9,73 @@ keywords: [open source monitoring tool, open source linux ubuntu monitoring tool ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Linux SSH. The default is 22 | -| Username | SSH connection user name, optional | -| Password | SSH connection password, optional | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Linux SSH. The default is 22 | +| Username | SSH connection user name, optional | +| Password | SSH connection password, optional | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:basic -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| hostname | none | Host name | -| version | none | Operating system version | -| uptime | none | System running time | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|--------------------------| +| hostname | none | Host name | +| version | none | Operating system version | +| uptime | none | System running time | #### Metric set:cpu -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| info | none | CPU model | -| cores | cores | Number of CPU cores | -| interrupt | number | Number of CPU interrupts | -| load | none | Average load of CPU in the last 1/5/15 minutes | -| context_switch | number | Number of current context switches | -| usage | % | CPU usage | - +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------------------------| +| info | none | CPU model | +| cores | cores | Number of CPU cores | +| interrupt | number | Number of CPU interrupts | +| load | none | Average load of CPU in the last 1/5/15 minutes | +| context_switch | number | Number of current context switches | +| usage | % | CPU usage | #### Metric set:memory -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| total | Mb | Total memory capacity | -| used | Mb | User program memory | -| free | Mb | Free memory capacity | -| buff_cache | Mb | Memory occupied by cache | -| available | Mb | Remaining available memory capacity | -| usage | % | Memory usage | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------------------| +| total | Mb | Total memory capacity | +| used | Mb | User program memory | +| free | Mb | Free memory capacity | +| buff_cache | Mb | Memory occupied by cache | +| available | Mb | Remaining available memory capacity | +| usage | % | Memory usage | #### Metric set:disk -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| disk_num | blocks | Total number of disks | -| partition_num | partitions | Total number of partitions | -| block_write | blocks | Total number of blocks written to disk | -| block_read | blocks | Number of blocks read from disk | -| write_rate | iops | Rate of writing disk blocks per second | +| Metric name | Metric unit | Metric help description | +|---------------|-------------|----------------------------------------| +| disk_num | blocks | Total number of disks | +| partition_num | partitions | Total number of partitions | +| block_write | blocks | Total number of blocks written to disk | +| block_read | blocks | Number of blocks read from disk | +| write_rate | iops | Rate of writing disk blocks per second | #### Metric set:interface -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| interface_name | none | Network card name | -| receive_bytes | byte | Inbound data traffic(bytes) | -| transmit_bytes | byte | Outbound data traffic(bytes) | +| Metric name | Metric unit | Metric help description | +|----------------|-------------|------------------------------| +| interface_name | none | Network card name | +| receive_bytes | byte | Inbound data traffic(bytes) | +| transmit_bytes | byte | Outbound data traffic(bytes) | #### Metric set:disk_free -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| filesystem | none | File system name | -| used | Mb | Used disk size | -| available | Mb | Available disk size | -| usage | % | usage | -| mounted | none | Mount point directory | +| Metric name | Metric unit | Metric help description | +|-------------|-------------|-------------------------| +| filesystem | none | File system name | +| used | Mb | Used disk size | +| available | Mb | Available disk size | +| usage | % | usage | +| mounted | none | Mount point directory | diff --git a/home/versioned_docs/version-v1.5.x/help/udp_port.md b/home/versioned_docs/version-v1.5.x/help/udp_port.md index 7fdcce3cf77..85d4fcb4383 100644 --- a/home/versioned_docs/version-v1.5.x/help/udp_port.md +++ b/home/versioned_docs/version-v1.5.x/help/udp_port.md @@ -10,7 +10,7 @@ keywords: [open source monitoring tool, open source port monitoring tool, monito ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------|--------------------------------------------------------------------------------------------------------------------------| | Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️ Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -26,9 +26,6 @@ keywords: [open source monitoring tool, open source port monitoring tool, monito #### Metric set:summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------|-------------------|-------------------------| | Response Time | Milliseconds (ms) | Website response time | - - - diff --git a/home/versioned_docs/version-v1.5.x/help/website.md b/home/versioned_docs/version-v1.5.x/help/website.md index 88d7a1957ad..1041755f156 100644 --- a/home/versioned_docs/version-v1.5.x/help/website.md +++ b/home/versioned_docs/version-v1.5.x/help/website.md @@ -5,25 +5,25 @@ sidebar_label: Website Monitor keywords: [open source monitoring tool, open source website monitoring tool, monitoring website metrics] --- -> Monitor whether the website is available, response time and other Metrics. +> Monitor whether the website is available, response time and other Metrics. -### Configuration parameter +### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | -| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.cn/console` website is `/console` | -| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Ports provided by website, http generally defaults to 80 and https generally defaults to 443 | +| Relative path | Suffix path of website address except IP port. For example, the relative path of `www.tancloud.io/console` website is `/console` | +| Enable HTTPS | Whether to access the website through HTTPS. Note⚠️When HTTPS is enabled, the default corresponding port needs to be changed to 443 | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | -### Collection Metric +### Collection Metric -#### Metric set:summary +#### Metric set:summary -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| responseTime | ms | Website response time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|-------------------------| +| responseTime | ms | Website response time | diff --git a/home/versioned_docs/version-v1.5.x/help/websocket.md b/home/versioned_docs/version-v1.5.x/help/websocket.md index 8e3d29a204a..1523a145bd6 100644 --- a/home/versioned_docs/version-v1.5.x/help/websocket.md +++ b/home/versioned_docs/version-v1.5.x/help/websocket.md @@ -9,7 +9,7 @@ keywords: [ open source monitoring tool, Websocket监控 ] ### Configuration parameter -| Parameter name | Parameter help description | +| Parameter name | Parameter help description | |---------------------------|--------------------------------------------------------------------------------------------------------------------------| | Host of WebSocket service | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://). | | Monitoring name | Identify the name of this monitoring. The name needs to be unique. | @@ -23,7 +23,7 @@ keywords: [ open source monitoring tool, Websocket监控 ] #### Metric set:Summary -| Metric name | Metric unit | Metric help description | +| Metric name | Metric unit | Metric help description | |---------------|-------------|-------------------------| | responseTime | ms | Response time | | httpVersion | none | HTTP version | diff --git a/home/versioned_docs/version-v1.5.x/help/windows.md b/home/versioned_docs/version-v1.5.x/help/windows.md index 82e36d23470..99d305cbce5 100644 --- a/home/versioned_docs/version-v1.5.x/help/windows.md +++ b/home/versioned_docs/version-v1.5.x/help/windows.md @@ -6,38 +6,38 @@ keywords: [open source monitoring tool, open source windows monitoring tool, mon --- > Collect and monitor the general performance Metrics of Windows operating system through SNMP protocol. -> Note⚠️ You need to start SNMP service for Windows server. +> Note⚠️ You need to start SNMP service for Windows server. -References: -[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) -[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) -[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) -[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) +References: +[What is SNMP protocol 1](https://www.cnblogs.com/xdp-gacl/p/3978825.html) +[What is SNMP protocol 2](https://www.auvik.com/franklyit/blog/network-basics-what-is-snmp/) +[Win configure SNMP in English](https://docs.microsoft.com/en-us/troubleshoot/windows-server/networking/configure-snmp-service) +[Win configure SNMP in Chinese](https://docs.microsoft.com/zh-cn/troubleshoot/windows-server/networking/configure-snmp-service) ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Windows SNMP service. The default is 161 | -| SNMP version | SNMP protocol version V1 V2c V3 | +| Parameter name | Parameter help description | +|---------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Windows SNMP service. The default is 161 | +| SNMP version | SNMP protocol version V1 V2c V3 | | SNMP community Word | SNMP agreement community name(Community Name). It is used to realize the authentication of SNMP network administrator when accessing SNMP management agent. Similar to password, the default value is public | -| Timeout | Protocol connection timeout | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Timeout | Protocol connection timeout | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:system -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| name | none | Host name | -| descr | none | Operating system description | -| uptime | none | System running time | -| numUsers | number | Current number of users | -| services | number | Current number of services | -| processes | number | Current number of processes | -| responseTime | ms | Collection response time | +| Metric name | Metric unit | Metric help description | +|--------------|-------------|------------------------------| +| name | none | Host name | +| descr | none | Operating system description | +| uptime | none | System running time | +| numUsers | number | Current number of users | +| services | number | Current number of services | +| processes | number | Current number of processes | +| responseTime | ms | Collection response time | diff --git a/home/versioned_docs/version-v1.5.x/help/yarn.md b/home/versioned_docs/version-v1.5.x/help/yarn.md index 176a3209fee..cea4079abf7 100644 --- a/home/versioned_docs/version-v1.5.x/help/yarn.md +++ b/home/versioned_docs/version-v1.5.x/help/yarn.md @@ -15,69 +15,69 @@ Retrieve the HTTP monitoring port of Apache Yarn. Value: `yarn.resourcemanager.w ## Configuration Parameters -| Parameter Name | Parameter Description | -| ---------------- |----------------------------------------------------| -| Target Host | IP address, IPV6, or domain name of the monitored endpoint. Without protocol header. | -| Port | Monitoring port number of Apache Yarn, default is 8088. | -| Query Timeout | Timeout for querying Apache Yarn, in milliseconds, default is 6000 milliseconds. | +| Parameter Name | Parameter Description | +|------------------|-------------------------------------------------------------------------------------------| +| Target Host | IP address, IPV6, or domain name of the monitored endpoint. Without protocol header. | +| Port | Monitoring port number of Apache Yarn, default is 8088. | +| Query Timeout | Timeout for querying Apache Yarn, in milliseconds, default is 6000 milliseconds. | | Metrics Interval | Time interval for monitoring data collection, in seconds, minimum interval is 30 seconds. | ### Collected Metrics #### Metric Set: ClusterMetrics -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | -----------------------------------------| -| NumActiveNMs | | Number of currently active NodeManagers | -| NumDecommissionedNMs | | Number of currently decommissioned NodeManagers | -| NumDecommissioningNMs | | Number of nodes currently decommissioning | -| NumLostNMs | | Number of lost nodes in the cluster | -| NumUnhealthyNMs | | Number of unhealthy nodes in the cluster | +| Metric Name | Unit | Metric Description | +|-----------------------|------|-------------------------------------------------| +| NumActiveNMs | | Number of currently active NodeManagers | +| NumDecommissionedNMs | | Number of currently decommissioned NodeManagers | +| NumDecommissioningNMs | | Number of nodes currently decommissioning | +| NumLostNMs | | Number of lost nodes in the cluster | +| NumUnhealthyNMs | | Number of unhealthy nodes in the cluster | #### Metric Set: JvmMetrics -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | -------------------------------------------- | -| MemNonHeapCommittedM | MB | Current committed size of non-heap memory in JVM | -| MemNonHeapMaxM | MB | Maximum available non-heap memory in JVM | -| MemNonHeapUsedM | MB | Current used size of non-heap memory in JVM | -| MemHeapCommittedM | MB | Current committed size of heap memory in JVM | -| MemHeapMaxM | MB | Maximum available heap memory in JVM | -| MemHeapUsedM | MB | Current used size of heap memory in JVM | -| GcTimeMillis | | JVM GC time | -| GcCount | | Number of JVM GC occurrences | +| Metric Name | Unit | Metric Description | +|----------------------|------|--------------------------------------------------| +| MemNonHeapCommittedM | MB | Current committed size of non-heap memory in JVM | +| MemNonHeapMaxM | MB | Maximum available non-heap memory in JVM | +| MemNonHeapUsedM | MB | Current used size of non-heap memory in JVM | +| MemHeapCommittedM | MB | Current committed size of heap memory in JVM | +| MemHeapMaxM | MB | Maximum available heap memory in JVM | +| MemHeapUsedM | MB | Current used size of heap memory in JVM | +| GcTimeMillis | | JVM GC time | +| GcCount | | Number of JVM GC occurrences | #### Metric Set: QueueMetrics -| Metric Name | Unit | Metric Description | -| --------------------------- | ---- | -------------------------------------------- | -| queue | | Queue name | -| AllocatedVCores | | Allocated virtual cores (allocated) | -| ReservedVCores | | Reserved cores | -| AvailableVCores | | Available cores (unallocated) | -| PendingVCores | | Blocked scheduling cores | -| AllocatedMB | MB | Allocated (used) memory size | -| AvailableMB | MB | Available memory (unallocated) | -| PendingMB | MB | Blocked scheduling memory | -| ReservedMB | MB | Reserved memory | -| AllocatedContainers | | Number of allocated (used) containers | -| PendingContainers | | Number of blocked scheduling containers | -| ReservedContainers | | Number of reserved containers | -| AggregateContainersAllocated| | Total aggregated containers allocated | -| AggregateContainersReleased| | Total aggregated containers released | -| AppsCompleted | | Number of completed applications | -| AppsKilled | | Number of killed applications | -| AppsFailed | | Number of failed applications | -| AppsPending | | Number of pending applications | -| AppsRunning | | Number of currently running applications | -| AppsSubmitted | | Number of submitted applications | -| running_0 | | Number of jobs running for less than 60 minutes | -| running_60 | | Number of jobs running between 60 and 300 minutes | -| running_300 | | Number of jobs running between 300 and 1440 minutes | -| running_1440 | | Number of jobs running for more than 1440 minutes | +| Metric Name | Unit | Metric Description | +|------------------------------|------|-----------------------------------------------------| +| queue | | Queue name | +| AllocatedVCores | | Allocated virtual cores (allocated) | +| ReservedVCores | | Reserved cores | +| AvailableVCores | | Available cores (unallocated) | +| PendingVCores | | Blocked scheduling cores | +| AllocatedMB | MB | Allocated (used) memory size | +| AvailableMB | MB | Available memory (unallocated) | +| PendingMB | MB | Blocked scheduling memory | +| ReservedMB | MB | Reserved memory | +| AllocatedContainers | | Number of allocated (used) containers | +| PendingContainers | | Number of blocked scheduling containers | +| ReservedContainers | | Number of reserved containers | +| AggregateContainersAllocated | | Total aggregated containers allocated | +| AggregateContainersReleased | | Total aggregated containers released | +| AppsCompleted | | Number of completed applications | +| AppsKilled | | Number of killed applications | +| AppsFailed | | Number of failed applications | +| AppsPending | | Number of pending applications | +| AppsRunning | | Number of currently running applications | +| AppsSubmitted | | Number of submitted applications | +| running_0 | | Number of jobs running for less than 60 minutes | +| running_60 | | Number of jobs running between 60 and 300 minutes | +| running_300 | | Number of jobs running between 300 and 1440 minutes | +| running_1440 | | Number of jobs running for more than 1440 minutes | #### Metric Set: runtime -| Metric Name | Unit | Metric Description | -| ----------------------- | ---- | --------------------------| -| StartTime | | Startup timestamp | \ No newline at end of file +| Metric Name | Unit | Metric Description | +|-------------|------|--------------------| +| StartTime | | Startup timestamp | diff --git a/home/versioned_docs/version-v1.5.x/help/zookeeper.md b/home/versioned_docs/version-v1.5.x/help/zookeeper.md index b7a34f49eda..362edf8cff9 100644 --- a/home/versioned_docs/version-v1.5.x/help/zookeeper.md +++ b/home/versioned_docs/version-v1.5.x/help/zookeeper.md @@ -10,10 +10,12 @@ keywords: [open source monitoring tool, open source zookeeper monitoring tool, m ### PreRequisites #### Zookeeper four word command ->The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. -Users need to add the four word command of zookeeper to the white list by themselves. + +> The current implementation scheme uses the four word command provided by zookeeper to collect Metrics. +> Users need to add the four word command of zookeeper to the white list by themselves. Steps + > 1.Find our zookeeper configuration file, which is usually zoo.cfg. > > 2.Add the following commands to the configuration file @@ -28,73 +30,73 @@ Steps > 3.Restart service -```shell +```shell zkServer.sh restart ``` #### netcat protocol + The current implementation scheme requires us to deploy the Linux server of zookeeper Command environment for installing netcat > netcat installation steps -```shell -yum install -y nc -``` +> +> ```shell +> yum install -y nc +> ``` If the terminal displays the following information, the installation is successful + ```shell Complete! ``` ### Configuration parameter -| Parameter name | Parameter help description | -| ----------- | ----------- | -| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | -| Monitoring name | Identify the name of this monitoring. The name needs to be unique | -| Port | Port provided by Zookeeper. The default is 2181 | -| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | -| Username | User name of the Linux connection where Zookeeper is located | -| Password | Password of the Linux connection where Zookeeper is located | -| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | -| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | -| Description remarks | For more information about identifying and describing this monitoring, users can note information here | +| Parameter name | Parameter help description | +|---------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------| +| Monitoring Host | Monitored IPV4, IPV6 or domain name. Note⚠️Without protocol header (eg: https://, http://) | +| Monitoring name | Identify the name of this monitoring. The name needs to be unique | +| Port | Port provided by Zookeeper. The default is 2181 | +| Query timeout | Set the timeout of Zookeeper connection, unit: ms, default: 3000ms | +| Username | User name of the Linux connection where Zookeeper is located | +| Password | Password of the Linux connection where Zookeeper is located | +| Collection interval | Interval time of monitor periodic data collection, unit: second, and the minimum interval that can be set is 30 seconds | +| Whether to detect | Whether to detect and check the availability of monitoring before adding monitoring. Adding and modifying operations will continue only after the detection is successful | +| Description remarks | For more information about identifying and describing this monitoring, users can note information here | ### Collection Metric #### Metric set:conf -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| clientPort | none | Port | -| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | -| dataDirSize | kb | Data snapshot file size | -| dataLogDir | none | Transaction log file directory, production environment on a separate disk | -| dataLogSize | kb | Transaction log file size | -| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | -| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | -| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | -| serverId | none | Server id | - +| Metric name | Metric unit | Metric help description | +|-------------------|-------------|--------------------------------------------------------------------------------------------------------------------| +| clientPort | none | Port | +| dataDir | none | Data snapshot file directory. By default, 100000 operations generate a snapshot | +| dataDirSize | kb | Data snapshot file size | +| dataLogDir | none | Transaction log file directory, production environment on a separate disk | +| dataLogSize | kb | Transaction log file size | +| tickTime | ms | Time interval between servers or between clients and servers to maintain heartbeat | +| minSessionTimeout | ms | Minimum session timeout. Heartbeat timex2. The specified time is less than this time, which is used by default | +| maxSessionTimeout | ms | Maximum session timeout. Heartbeat timex20. The specified time is greater than this time, which is used by default | +| serverId | none | Server id | #### Metric set:stats -| Metric name | Metric unit | Metric help description | -| ----------- | ----------- | ----------- | -| zk_version | none | Server version | -| zk_server_state | none | Server role | -| zk_num_alive_connections | number | Number of connections | -| zk_avg_latency | ms | Average latency | -| zk_outstanding_requests | number | Number of outstanding requests | -| zk_znode_count | number | Number of znode | -| zk_packets_sent | number | Number of packets sent | -| zk_packets_received | number | Number of packets received | -| zk_watch_count | number | Number of watch | -| zk_max_file_descriptor_count | number | Maximum number of file descriptors | -| zk_approximate_data_size | kb | data size | -| zk_open_file_descriptor_count | number | Number of open file descriptors | -| zk_max_latency | ms | Max latency | -| zk_ephemerals_count | number | Number of ephemeral nodes | -| zk_min_latency | ms | Min latency | - - +| Metric name | Metric unit | Metric help description | +|-------------------------------|-------------|------------------------------------| +| zk_version | none | Server version | +| zk_server_state | none | Server role | +| zk_num_alive_connections | number | Number of connections | +| zk_avg_latency | ms | Average latency | +| zk_outstanding_requests | number | Number of outstanding requests | +| zk_znode_count | number | Number of znode | +| zk_packets_sent | number | Number of packets sent | +| zk_packets_received | number | Number of packets received | +| zk_watch_count | number | Number of watch | +| zk_max_file_descriptor_count | number | Maximum number of file descriptors | +| zk_approximate_data_size | kb | data size | +| zk_open_file_descriptor_count | number | Number of open file descriptors | +| zk_max_latency | ms | Max latency | +| zk_ephemerals_count | number | Number of ephemeral nodes | +| zk_min_latency | ms | Min latency | diff --git a/home/versioned_docs/version-v1.5.x/introduce.md b/home/versioned_docs/version-v1.5.x/introduce.md index 98305d95ed5..94b3eaf741c 100644 --- a/home/versioned_docs/version-v1.5.x/introduce.md +++ b/home/versioned_docs/version-v1.5.x/introduce.md @@ -5,7 +5,7 @@ sidebar_label: Introduce slug: / --- -> A real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. +> A real-time monitoring system with agentless, performance cluster, prometheus-compatible, custom monitoring and status page building capabilities. [![Discord](https://img.shields.io/badge/Chat-Discord-7289DA?logo=discord)](https://discord.gg/Fb6M73htGr) [![Reddit](https://img.shields.io/badge/Reddit-Community-7289DA?logo=reddit)](https://www.reddit.com/r/hertzbeat/) @@ -32,8 +32,7 @@ slug: / * Provides flexible alarm threshold rules and timely notifications delivered via `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. * Provides powerful status page building capabilities, easily communicate the real-time status of your service to users. - -> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system. +> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system. ---- @@ -41,7 +40,7 @@ slug: / > Before we discuss the customizable monitoring capabilities of HertzBeat, which we mentioned at the beginning, let's introduce the different monitoring templates of HertzBeat. And it is because of this monitoring template design that the advanced features come later. -HertzBeat itself did not create a data collection protocol for the monitoring client to adapt to. Instead, HertzBeat makes full use of the existing ecosystem, `SNMP protocol` to collect information from network switches and routers, `JMX specification` to collect information from Java applications, `JDBC specification` to collect information from datasets, `SSH` to directly connect to scripts to get the display information, `HTTP+ (JsonPath | prometheus, etc.) ` to parse the information from API interfaces, `IPMI protocol` to collect server information, and so on. +HertzBeat itself did not create a data collection protocol for the monitoring client to adapt to. Instead, HertzBeat makes full use of the existing ecosystem, `SNMP protocol` to collect information from network switches and routers, `JMX specification` to collect information from Java applications, `JDBC specification` to collect information from datasets, `SSH` to directly connect to scripts to get the display information, `HTTP+ (JsonPath | prometheus, etc.)` to parse the information from API interfaces, `IPMI protocol` to collect server information, and so on. HertzBeat uses these existing standard protocols or specifications, makes them abstractly configurable, and finally makes them all available in the form of YML format monitoring templates that can be written to create templates that use these protocols to collect any desired metrics data. ![hertzbeat](/img/blog/multi-protocol.png) @@ -49,12 +48,11 @@ Do you believe that users can just write a monitoring template on the UI page, c ![hertzbeat](/img/home/9.png) - ### Built-in Monitoring Types **There are a lot of built-in monitoring templates for users to add directly on the page, one monitoring type corresponds to one YML monitoring template**. -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), +* [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), @@ -63,7 +61,7 @@ Do you believe that users can just write a monitoring template on the UI page, c [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), +* [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), @@ -72,13 +70,13 @@ Do you believe that users can just write a monitoring template on the UI page, c [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), +* [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), +* [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), @@ -86,31 +84,31 @@ Do you believe that users can just write a monitoring template on the UI page, c [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), +* [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) +* [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) -- And More Your Custom Template. -- Notified Support `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. +* And More Your Custom Template. +* Notified Support `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. ### Powerful Customization -> From the previous introduction of **Monitoring Templates**, it is clear that `HertzBeat` has powerful customization features. -> Each monitor type is considered as a monitor template, no matter it is built-in or user-defined. You can easily add, modify and delete indicators by modifying the monitoring template. -> The templates contain a series of functions such as protocol configuration, environment variables, metrics conversion, metrics calculation, units conversion, metrics collection, etc., which help users to collect the metrics they want. +> From the previous introduction of **Monitoring Templates**, it is clear that `HertzBeat` has powerful customization features. +> Each monitor type is considered as a monitor template, no matter it is built-in or user-defined. You can easily add, modify and delete indicators by modifying the monitoring template. +> The templates contain a series of functions such as protocol configuration, environment variables, metrics conversion, metrics calculation, units conversion, metrics collection, etc., which help users to collect the metrics they want. ![hertzbeat](/img/docs/custom-arch.png) ### No Agent Required -> For users who have used various systems, the most troublesome thing is the installation, deployment, debugging and upgrading of various `agents`. -> You need to install one `agent` per host, and several corresponding `agents` to monitor different application middleware, and the number of monitoring can easily reach thousands, so writing a batch script may ease the burden. -> The problem of whether the version of `agent` is compatible with the main application, debugging the communication between `agent` and the main application, upgrading the `agent` synchronization and so on and so forth, are all big headaches. +> For users who have used various systems, the most troublesome thing is the installation, deployment, debugging and upgrading of various `agents`. +> You need to install one `agent` per host, and several corresponding `agents` to monitor different application middleware, and the number of monitoring can easily reach thousands, so writing a batch script may ease the burden. +> The problem of whether the version of `agent` is compatible with the main application, debugging the communication between `agent` and the main application, upgrading the `agent` synchronization and so on and so forth, are all big headaches. -The principle of `HertzBeat` is to use different protocols to connect directly to the end system, and use the `PULL` form to pull the collected data, without the need for the user to deploy and install `Agent` | `Exporter` on the host of the end, etc. For example, monitoring the `linux operating system`. +The principle of `HertzBeat` is to use different protocols to connect directly to the end system, and use the `PULL` form to pull the collected data, without the need for the user to deploy and install `Agent` | `Exporter` on the host of the end, etc. For example, monitoring the `linux operating system`. -- For example, if you want to monitor `linux OS`, you can just input the IP port account password or key on `HertzBeat` side. -- For example, to monitor `linux OS`, just enter your ip/port account password or key in `HertzBeat`. +* For example, if you want to monitor `linux OS`, you can just input the IP port account password or key on `HertzBeat` side. +* For example, to monitor `linux OS`, just enter your ip/port account password or key in `HertzBeat`. **Password and other sensitive information is encrypted on all links**. @@ -118,9 +116,9 @@ The principle of `HertzBeat` is to use different protocols to connect directly t > When the number of monitors rises exponentially, the collection performance drops or the environment is unstable and prone to single point of failure of the collectors, then our collector clusters come into play. -- HertzBeat supports the deployment of collector clusters and the horizontal expansion of multiple collector clusters to exponentially increase the number of monitorable tasks and collection performance. -- Monitoring tasks are self-scheduled in the collector cluster, single collector hangs without sensing the failure to migrate the collection tasks, and the newly added collector nodes are automatically scheduled to share the collection pressure. -- It is very easy to switch between stand-alone mode and cluster mode without additional component deployment. +* HertzBeat supports the deployment of collector clusters and the horizontal expansion of multiple collector clusters to exponentially increase the number of monitorable tasks and collection performance. +* Monitoring tasks are self-scheduled in the collector cluster, single collector hangs without sensing the failure to migrate the collection tasks, and the newly added collector nodes are automatically scheduled to share the collection pressure. +* It is very easy to switch between stand-alone mode and cluster mode without additional component deployment. ![hertzbeat](/img/docs/cluster-arch.png) @@ -128,65 +126,64 @@ The principle of `HertzBeat` is to use different protocols to connect directly t > Two locations, three centers, multi-cloud environments, multi-isolated networks, you may have heard of these scenarios. When there is a need for a unified monitoring system to monitor the IT resources of different isolated networks, this is where our Cloud Edge Collaboration comes in. -In an isolated network where multiple networks are not connected, we need to deploy a monitoring system in each network in the previous solution, which leads to data non-interoperability and inconvenient management, deployment and maintenance. -`HertzBeat` provides the ability of cloud edge collaboration, can be deployed in multiple isolated networks edge collector, collector in the isolated network within the monitoring task collection, collection of data reported by the main service unified scheduling management display. +In an isolated network where multiple networks are not connected, we need to deploy a monitoring system in each network in the previous solution, which leads to data non-interoperability and inconvenient management, deployment and maintenance. +`HertzBeat` provides the ability of cloud edge collaboration, can be deployed in multiple isolated networks edge collector, collector in the isolated network within the monitoring task collection, collection of data reported by the main service unified scheduling management display. ![hertzbeat](/img/docs/cluster-arch.png) ### Easy to Use -- Set **Monitoring+Alarm+Notification** All in one, no need to deploy multiple component services separately. -- Full UI interface operation, no matter adding new monitor, modifying monitor template, or alarm threshold notification, all can be done in WEB interface, no need to modify files or scripts or reboot. -- No Agent is needed, we only need to fill in the required IP, port, account, password and other parameters in the WEB interface. -- Customization friendly, only need a monitoring template YML, automatically generate monitoring management page, data chart page, threshold configuration for corresponding monitoring types. -- Threshold alarm notification friendly, based on the expression threshold configuration, a variety of alarm notification channels, support alarm silence, time label alarm level filtering and so on. +* Set **Monitoring+Alarm+Notification** All in one, no need to deploy multiple component services separately. +* Full UI interface operation, no matter adding new monitor, modifying monitor template, or alarm threshold notification, all can be done in WEB interface, no need to modify files or scripts or reboot. +* No Agent is needed, we only need to fill in the required IP, port, account, password and other parameters in the WEB interface. +* Customization friendly, only need a monitoring template YML, automatically generate monitoring management page, data chart page, threshold configuration for corresponding monitoring types. +* Threshold alarm notification friendly, based on the expression threshold configuration, a variety of alarm notification channels, support alarm silence, time label alarm level filtering and so on. ### Completely Open Source -- An open source collaboration product using the `Apache2` protocol, maintained by a free and open source community. -- No monitoring number `License`, monitoring type and other pseudo-open source restrictions . -- Built on `Java+SpringBoot+TypeScript+Angular` mainstream technology stack , convenient secondary development . -- Open source is not the same as free, dev based on HertzBeat must retain page footnotes, copyright, etc. - +* An open source collaboration product using the `Apache2` protocol, maintained by a free and open source community. +* No monitoring number `License`, monitoring type and other pseudo-open source restrictions . +* Built on `Java+SpringBoot+TypeScript+Angular` mainstream technology stack , convenient secondary development . +* Open source is not the same as free, dev based on HertzBeat must retain page footnotes, copyright, etc. **HertzBeat has been included in the [CNCF Observability And Analysis - Monitoring Landscape](https://landscape.cncf.io/card-mode?category=monitoring&grouping=category)** ![cncf](/img/home/cncf-landscape-left-logo.svg) ------ +---- **HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help users quickly build their own monitoring system.** ------ +---- ## Quickly Start -Just run a single command in a Docker environment: `docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` +Just run a single command in a Docker environment: `docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat` Browser access `http://localhost:1157` default account password `admin/hertzbeat` ### Landing Page -- HertzBeat's user management is unified by the configuration file `sureness.yml`, which allows users to add, delete, and modify user information, user role permissions, and so on. Default password admin/hertzbeat +* HertzBeat's user management is unified by the configuration file `sureness.yml`, which allows users to add, delete, and modify user information, user role permissions, and so on. Default password admin/hertzbeat ![hertzbeat](/img/home/0.png) ### Overview Page -- The global overview page shows the distribution of current monitoring categories, users can visualize the current monitoring types and quantities and click to jump to the corresponding monitoring types for maintenance and management. -- Show the status of currently registered collector clusters, including collector on-line status, monitoring tasks, startup time, IP address, name and so on. -- Show the list of recent alarm messages, alarm level distribution and alarm processing rate. +* The global overview page shows the distribution of current monitoring categories, users can visualize the current monitoring types and quantities and click to jump to the corresponding monitoring types for maintenance and management. +* Show the status of currently registered collector clusters, including collector on-line status, monitoring tasks, startup time, IP address, name and so on. +* Show the list of recent alarm messages, alarm level distribution and alarm processing rate. ![hertzbeat](/img/home/1.png) ### Monitoring Center -- The monitoring portal supports the management of monitoring of application services, database, operating system, middleware, network, customization, etc. It displays the currently added monitors in the form of a list. -- It displays the currently added monitors in the form of a list and supports adding, modifying, deleting, canceling, importing, exporting and batch management of monitors. -- Support tag grouping, query filtering, view monitoring details portal. +* The monitoring portal supports the management of monitoring of application services, database, operating system, middleware, network, customization, etc. It displays the currently added monitors in the form of a list. +* It displays the currently added monitors in the form of a list and supports adding, modifying, deleting, canceling, importing, exporting and batch management of monitors. +* Support tag grouping, query filtering, view monitoring details portal. Built-in support for monitoring types include: -- [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), +* [Website](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml), [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml), [Http Api](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml), [Ping Connect](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml), [Jvm](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml), [SiteMap](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml), [Ssl Certificate](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml), [SpringBoot2](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot2.yml), @@ -195,7 +192,7 @@ Built-in support for monitoring types include: [Pop3](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-pop3.yml), [Ntp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ntp.yml), [Api Code](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api_code.yml), [Smtp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-smtp.yml), [Nginx](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nginx.yml) -- [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), +* [Mysql](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml), [PostgreSQL](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-postgresql.yml), [MariaDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml), [Redis](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis.yml), [ElasticSearch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-elasticsearch.yml), [SqlServer](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-sqlserver.yml), [Oracle](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-oracle.yml), [MongoDB](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mongodb.yml), @@ -204,13 +201,13 @@ Built-in support for monitoring types include: [Redis Cluster](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml), [Redis Sentinel](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml) [Doris BE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_be.yml), [Doris FE](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-doris_fe.yml), [Memcached](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-memcached.yml), [NebulaGraph](https://github.com/apache/hertzbeat/blob/master/manager/src/main/resources/define/app-nebulaGraph.yml) -- [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), +* [Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml), [Ubuntu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ubuntu.yml), [CentOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-centos.yml), [Windows](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml), [EulerOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-euleros.yml), [Fedora CoreOS](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-coreos.yml), [OpenSUSE](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-opensuse.yml), [Rocky Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rockylinux.yml), [Red Hat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redhat.yml), [FreeBSD](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-freebsd.yml), [AlmaLinux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml), [Debian Linux](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml) -- [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), +* [Tomcat](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tomcat.yml), [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml), [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml), [RabbitMQ](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-rabbitmq.yml), [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml), [Kafka](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kafka.yml), [ShenYu](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-shenyu.yml), [DynamicTp](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-dynamic_tp.yml), @@ -218,8 +215,8 @@ Built-in support for monitoring types include: [Spring Gateway](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spring_gateway.yml), [EMQX MQTT](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-emqx.yml), [AirFlow](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-airflow.yml), [Hive](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hive.yml), [Spark](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-spark.yml), [Hadoop](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hadoop.yml) -- [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) -- [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), +* [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml), [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml) +* [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml), [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml), [HuaweiSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-huawei_switch.yml), [TpLinkSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-tplink_switch.yml), [H3cSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-h3c_switch.yml) @@ -227,18 +224,18 @@ Built-in support for monitoring types include: ### Add and Modify Surveillance -- You can add or modify monitoring instances of a specific monitoring type, configure the IP, port and other parameters of the monitoring on the other end, set the collection period, collection task scheduling method, support detecting availability in advance, etc. The monitoring instances on the page are defined by the corresponding monitoring templates. -- The monitoring parameters configured on the page are defined by the monitoring template of the corresponding monitoring type, and users can modify the configuration parameters on the page by modifying the monitoring template. -- Support associated tags to manage monitoring grouping, alarm matching, and so on. +* You can add or modify monitoring instances of a specific monitoring type, configure the IP, port and other parameters of the monitoring on the other end, set the collection period, collection task scheduling method, support detecting availability in advance, etc. The monitoring instances on the page are defined by the corresponding monitoring templates. +* The monitoring parameters configured on the page are defined by the monitoring template of the corresponding monitoring type, and users can modify the configuration parameters on the page by modifying the monitoring template. +* Support associated tags to manage monitoring grouping, alarm matching, and so on. ![hertzbeat](/img/home/10.png) ### Monitor Details -- The monitoring data detail page shows the basic parameter information of the current monitoring, and the monitoring indicator data information. -- Monitor Real-time Data Report displays the real-time values of all the currently monitored indicators in the form of a list of small cards, and users can configure alarm threshold rules based on the real-time values for reference. -- Monitor Historical Data Report displays the historical values of the currently monitored metrics in the form of trend charts, supports querying hourly, daily and monthly historical data, and supports configuring the page refresh time. -- ⚠️ Note that the monitoring history charts need to be configured with an external timing database in order to get the full functionality, timing database support: IOTDB, TDengine, InfluxDB, GreptimeDB +* The monitoring data detail page shows the basic parameter information of the current monitoring, and the monitoring indicator data information. +* Monitor Real-time Data Report displays the real-time values of all the currently monitored indicators in the form of a list of small cards, and users can configure alarm threshold rules based on the real-time values for reference. +* Monitor Historical Data Report displays the historical values of the currently monitored metrics in the form of trend charts, supports querying hourly, daily and monthly historical data, and supports configuring the page refresh time. +* ⚠️ Note that the monitoring history charts need to be configured with an external timing database in order to get the full functionality, timing database support: IOTDB, TDengine, InfluxDB, GreptimeDB ![hertzbeat](/img/home/3.png) @@ -246,17 +243,17 @@ Built-in support for monitoring types include: ### Alarm Center -- The management display page of triggered alarm messages enables users to visualize the current alarm situation. -- Support alarm processing, alarm marking unprocessed, alarm deletion, clearing and other batch operations. +* The management display page of triggered alarm messages enables users to visualize the current alarm situation. +* Support alarm processing, alarm marking unprocessed, alarm deletion, clearing and other batch operations. ![hertzbeat](/img/home/7.png) ### Threshold Rules -- Threshold rules can be configured for monitoring the availability status, and alerts can be issued when the value of a particular metric exceeds the expected range. -- There are three levels of alerts: notification alerts, critical alerts, and emergency alerts. -- Threshold rules support visual page configuration or expression rule configuration for more flexibility. -- It supports configuring the number of triggers, alarm levels, notification templates, associated with a specific monitor and so on. +* Threshold rules can be configured for monitoring the availability status, and alerts can be issued when the value of a particular metric exceeds the expected range. +* There are three levels of alerts: notification alerts, critical alerts, and emergency alerts. +* Threshold rules support visual page configuration or expression rule configuration for more flexibility. +* It supports configuring the number of triggers, alarm levels, notification templates, associated with a specific monitor and so on. ![hertzbeat](/img/home/6.png) @@ -264,19 +261,18 @@ Built-in support for monitoring types include: ### Alarm Convergence -- When the alarm is triggered by the threshold rule, it will enter into the alarm convergence, the alarm convergence will be based on the rules of the specific time period of the duplicate alarm message de-emphasis convergence, to avoid a large number of repetitive alarms lead to the receiver alarm numbness. -- Alarm convergence rules support duplicate alarm effective time period, label matching and alarm level matching filter. +* When the alarm is triggered by the threshold rule, it will enter into the alarm convergence, the alarm convergence will be based on the rules of the specific time period of the duplicate alarm message de-emphasis convergence, to avoid a large number of repetitive alarms lead to the receiver alarm numbness. +* Alarm convergence rules support duplicate alarm effective time period, label matching and alarm level matching filter. ![hertzbeat](/img/home/12.png) ![hertzbeat](/img/home/13.png) - ### Alarm Silence -- When the alarm is triggered by the threshold rule, it will enter into the alarm silence, the alarm silence will be based on the rules of a specific one-time time period or periodic time period of the alarm message blocking silence, this time period does not send alarm messages. -- This application scenario, such as users in the system maintenance, do not need to send known alarms. Users will only receive alarm messages on weekdays, and users need to avoid disturbances at night. -- Alarm silence rules support one-time time period or periodic time period, support label matching and alarm level matching. +* When the alarm is triggered by the threshold rule, it will enter into the alarm silence, the alarm silence will be based on the rules of a specific one-time time period or periodic time period of the alarm message blocking silence, this time period does not send alarm messages. +* This application scenario, such as users in the system maintenance, do not need to send known alarms. Users will only receive alarm messages on weekdays, and users need to avoid disturbances at night. +* Alarm silence rules support one-time time period or periodic time period, support label matching and alarm level matching. ![hertzbeat](/img/home/14.png) @@ -284,11 +280,11 @@ Built-in support for monitoring types include: ### Message Notification -- Message notification is a function to notify alarm messages to specified recipients through different media channels, so that the alarm messages can reach them in time. -- It includes recipient information management and notification policy management. Recipient management maintains the information of recipients and their notification methods, while notification policy management maintains the policy rules of which recipients will be notified of the alert messages. -- Notification methods support `Email` `Discord` `Slack` `Telegram` `Pinning` `WeChat` `Flybook` `SMS` `Webhook` and so on. -- The notification policy supports tag matching and alert level matching, which makes it convenient to assign alerts with different tags and alert levels to different receivers and handlers. -- Support notification templates, users can customize the content format of the templates to meet their own personalized notification display needs. +* Message notification is a function to notify alarm messages to specified recipients through different media channels, so that the alarm messages can reach them in time. +* It includes recipient information management and notification policy management. Recipient management maintains the information of recipients and their notification methods, while notification policy management maintains the policy rules of which recipients will be notified of the alert messages. +* Notification methods support `Email` `Discord` `Slack` `Telegram` `Pinning` `WeChat` `Flybook` `SMS` `Webhook` and so on. +* The notification policy supports tag matching and alert level matching, which makes it convenient to assign alerts with different tags and alert levels to different receivers and handlers. +* Support notification templates, users can customize the content format of the templates to meet their own personalized notification display needs. ![hertzbeat](/img/home/16.png) @@ -298,16 +294,15 @@ Built-in support for monitoring types include: ### Monitoring Templates -- HertzBeat makes `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` and other protocols configurable so that you can customize the metrics you want to collect using these protocols by simply configuring the monitoring template `YML` in your browser. Would you believe that you can instantly adapt a new monitoring type such as `K8s` or `Docker` just by configuring it? -- All our built-in monitoring types (mysql, website, jvm, k8s) are also mapped to corresponding monitoring templates, so you can add and modify monitoring templates to customize your monitoring functions. +* HertzBeat makes `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` and other protocols configurable so that you can customize the metrics you want to collect using these protocols by simply configuring the monitoring template `YML` in your browser. Would you believe that you can instantly adapt a new monitoring type such as `K8s` or `Docker` just by configuring it? +* All our built-in monitoring types (mysql, website, jvm, k8s) are also mapped to corresponding monitoring templates, so you can add and modify monitoring templates to customize your monitoring functions. ![hertzbeat](/img/home/9.png) - ------ +---- **There's so much more to discover. Have Fun!** ------ +---- -**Github: https://github.com/apache/hertzbeat** +**Github: ** diff --git a/home/versioned_docs/version-v1.5.x/others/design.md b/home/versioned_docs/version-v1.5.x/others/design.md index e7f80d164d7..da5ec8fffee 100644 --- a/home/versioned_docs/version-v1.5.x/others/design.md +++ b/home/versioned_docs/version-v1.5.x/others/design.md @@ -1,9 +1,9 @@ --- id: design title: 设计文档 -sidebar_label: 设计文档 +sidebar_label: 设计文档 --- -### HertzBeat Arch +### HertzBeat Arch -![architecture](/img/docs/hertzbeat-arch.svg) +![architecture](/img/docs/hertzbeat-arch.svg) diff --git a/home/versioned_docs/version-v1.5.x/others/resource.md b/home/versioned_docs/version-v1.5.x/others/resource.md index 79c16b4ab56..83188bd1c8e 100644 --- a/home/versioned_docs/version-v1.5.x/others/resource.md +++ b/home/versioned_docs/version-v1.5.x/others/resource.md @@ -1,19 +1,19 @@ --- id: resource title: Related resources -sidebar_label: Related resources +sidebar_label: Related resources --- -## Icon Resources +## Icon Resources -### HertzBeat Logo +### HertzBeat Logo -![logo](/img/hertzbeat-logo.svg) +![logo](/img/hertzbeat-logo.svg) -Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) +Download: [SVG](/img/hertzbeat-logo.svg) [PNG](/img/hertzbeat-logo.png) -### HertzBeat Brand Logo +### HertzBeat Brand Logo -![logo](/img/hertzbeat-brand.svg) +![logo](/img/hertzbeat-brand.svg) -Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) +Download: [SVG](/img/hertzbeat-brand.svg) [PNG](/img/hertzbeat-brand.png) diff --git a/home/versioned_docs/version-v1.5.x/start/account-modify.md b/home/versioned_docs/version-v1.5.x/start/account-modify.md index 64bba7d72df..06a2ee468a0 100644 --- a/home/versioned_docs/version-v1.5.x/start/account-modify.md +++ b/home/versioned_docs/version-v1.5.x/start/account-modify.md @@ -1,14 +1,14 @@ --- id: account-modify title: Modify Account Username Password And Secret -sidebar_label: Update Account Secret +sidebar_label: Update Account Secret --- ## Update Account -Apache HertzBeat (incubating) default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat +Apache HertzBeat (incubating) default built-in three user accounts, respectively admin/hertzbeat tom/hertzbeat guest/hertzbeat If you need add, delete or modify account or password, configure `sureness.yml`. Ignore this step without this demand. -The configuration file content refer to project repository[/script/sureness.yml](https://github.com/hertzbeat/hertzbeat/blob/master/script/sureness.yml) +The configuration file content refer to project repository[/script/sureness.yml](https://github.com/hertzbeat/hertzbeat/blob/master/script/sureness.yml) Modify the following **part parameters** in sureness.yml:**[Note⚠️Other default sureness configuration parameters should be retained]** ```yaml @@ -112,12 +112,11 @@ account: role: [guest] ``` -## Update Security Secret +## Update Security Secret -> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. +> This secret is the key for account security encryption management and needs to be updated to your custom key string of the same length. - -Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. +Update the `application.yml` file in the `config` directory, modify the `sureness.jwt.secret` parameter to your custom key string of the same length. ```yaml sureness: @@ -128,4 +127,4 @@ sureness: dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp' ``` -**Restart HertzBeat, access http://ip:1157/ to explore** +**Restart HertzBeat, access to explore** diff --git a/home/versioned_docs/version-v1.5.x/start/custom-config.md b/home/versioned_docs/version-v1.5.x/start/custom-config.md index 91282bf5055..b88a2ff4af4 100644 --- a/home/versioned_docs/version-v1.5.x/start/custom-config.md +++ b/home/versioned_docs/version-v1.5.x/start/custom-config.md @@ -1,7 +1,7 @@ --- id: custom-config title: Advanced Params Config -sidebar_label: Advanced Params Config +sidebar_label: Advanced Params Config --- This describes how to configure the SMS server, the number of built-in availability alarm triggers, etc. @@ -10,49 +10,50 @@ This describes how to configure the SMS server, the number of built-in availabil ### Configure the configuration file of HertzBeat -Modify the configuration file located at `hertzbeat/config/application.yml` -Note ⚠️The docker container method needs to mount the application.yml file to the local host -The installation package can be decompressed and modified in `hertzbeat/config/application.yml` +Modify the configuration file located at `hertzbeat/config/application.yml` +Note ⚠️The docker container method needs to mount the application.yml file to the local host +The installation package can be decompressed and modified in `hertzbeat/config/application.yml` 1. Configure the SMS sending server -> Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. + > Only when your own SMS server is successfully configured, the alarm SMS triggered in the monitoring tool will be sent normally. -Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -```yaml -common: - sms: - tencent: - secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY - secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA - app-id: 1435441637 - sign-name: XX Technology - template-id: 1343434 -``` + Add the following Tencent platform SMS server configuration in `application.yml` (parameters need to be replaced with your SMS server configuration) -2. Configure alarm custom parameters + ```yaml + common: + sms: + tencent: + secret-id: AKIDbQ4VhdMr89wDedFrIcgU2PaaMvOuBCzY + secret-key: PaXGl0ziY9UcWFjUyiFlCPMr77rLkJYlyA + app-id: 1435441637 + sign-name: XX Technology + template-id: 1343434 + ``` +2. Configure alarm custom parameters -```yaml -alerter: - # Custom console address - console-url: https://console.tancloud.cn -``` + ```yaml + alerter: + # Custom console address + console-url: https://console.tancloud.io + ``` 3. Use external redis instead of memory to store real-time metric data -> By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. - -Note ⚠️ `memory.enabled: false, redis.enabled: true` -```yaml -warehouse: - store: - memory: - enabled: false - init-size: 1024 - redis: - enabled: true - host: 127.0.0.1 - port: 6379 - password: 123456 -``` + > By default, the real-time data of our metrics is stored in memory, which can be configured as follows to use redis instead of memory storage. + + Note ⚠️ `memory.enabled: false, redis.enabled: true` + + ```yaml + warehouse: + store: + memory: + enabled: false + init-size: 1024 + redis: + enabled: true + host: 127.0.0.1 + port: 6379 + password: 123456 + ``` diff --git a/home/versioned_docs/version-v1.5.x/start/docker-deploy.md b/home/versioned_docs/version-v1.5.x/start/docker-deploy.md index 7671366e9ad..dfc05ee9fdd 100644 --- a/home/versioned_docs/version-v1.5.x/start/docker-deploy.md +++ b/home/versioned_docs/version-v1.5.x/start/docker-deploy.md @@ -1,90 +1,93 @@ --- id: docker-deploy title: Install HertzBeat via Docker -sidebar_label: Install via Docker +sidebar_label: Install via Docker --- > Recommend to use docker deploy Apache HertzBeat (incubating) - -1. Download and install the Docker environment +1. Download and install the Docker environment Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 After the installation you can check if the Docker version normally output at the terminal. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` 2. pull HertzBeat Docker mirror you can look up the mirror version TAG in [dockerhub mirror repository](https://hub.docker.com/r/apache/hertzbeat/tags) - or in [quay.io mirror repository](https://quay.io/repository/apache/hertzbeat) + or in [quay.io mirror repository](https://quay.io/repository/apache/hertzbeat) + ```shell - $ docker pull apache/hertzbeat - $ docker pull apache/hertzbeat-collector + docker pull apache/hertzbeat + docker pull apache/hertzbeat-collector ``` - or + + or + ```shell - $ docker pull quay.io/tancloud/hertzbeat - $ docker pull quay.io/tancloud/hertzbeat-collector + docker pull quay.io/tancloud/hertzbeat + docker pull quay.io/tancloud/hertzbeat-collector ``` -3. Mounted HertzBeat configuration file (optional) - Download and config `application.yml` in the host directory, eg:`$(pwd)/application.yml` - Download from [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - You can modify the configuration yml file according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) - -4. Mounted the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need update account or password, configure `sureness.yml`. Ignore this step without this demand. - Download and config `sureness.yml` in the host directory,eg:`$(pwd)/sureness.yml` - Download from [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) - For detail steps, please refer to [Configure Account Password](account-modify) - -5. Start the HertzBeat Docker container - -```shell -$ docker run -d -p 1157:1157 -p 1158:1158 \ - -e LANG=en_US.UTF-8 \ - -e TZ=Asia/Shanghai \ - -v $(pwd)/data:/opt/hertzbeat/data \ - -v $(pwd)/logs:/opt/hertzbeat/logs \ - -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ - -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ - --name hertzbeat apache/hertzbeat -``` +3. Mounted HertzBeat configuration file (optional) + Download and config `application.yml` in the host directory, eg:`$(pwd)/application.yml` + Download from [github/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + You can modify the configuration yml file according to your needs. + - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` + - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) + - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) + - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) +4. Mounted the account file(optional) + HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` + If you need update account or password, configure `sureness.yml`. Ignore this step without this demand. + Download and config `sureness.yml` in the host directory,eg:`$(pwd)/sureness.yml` + Download from [github/script/sureness.yml](https://github.com/apache/hertzbeat/raw/master/script/sureness.yml) + For detail steps, please refer to [Configure Account Password](account-modify) +5. Start the HertzBeat Docker container + + ```shell + $ docker run -d -p 1157:1157 -p 1158:1158 \ + -e LANG=en_US.UTF-8 \ + -e TZ=Asia/Shanghai \ + -v $(pwd)/data:/opt/hertzbeat/data \ + -v $(pwd)/logs:/opt/hertzbeat/logs \ + -v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml \ + -v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml \ + --name hertzbeat apache/hertzbeat + ``` This command starts a running HertzBeat Docker container with mapping port 1157-1158. If existing processes on the host use the port, please modify host mapped port. + - `docker run -d` : Run a container in the background via Docker - `-p 1157:1157 -p 1158:1158` : Mapping container ports to the host, 1157 is web-ui port, 1158 is cluster port. - `-e LANG=en_US.UTF-8` : Set the system language - `-e TZ=Asia/Shanghai` : Set the system timezone - `-v $(pwd)/data:/opt/hertzbeat/data` : (optional, data persistence) Important⚠️ Mount the H2 database file to the local host, to ensure that the data is not lost due creating or deleting container. - `-v $(pwd)/logs:/opt/hertzbeat/logs` : (optional, if you don't have a need, just delete it) Mount the log file to the local host, to ensure the log will not be lost due creating or deleting container. - - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (optional, if you don't have a need, just delete it) Mount the local configuration file into the container which has been modified in the previous step, namely using the local configuration file to cover container configuration file. + - `-v $(pwd)/application.yml:/opt/hertzbeat/config/application.yml` : (optional, if you don't have a need, just delete it) Mount the local configuration file into the container which has been modified in the previous step, namely using the local configuration file to cover container configuration file. - `-v $(pwd)/sureness.yml:/opt/hertzbeat/config/sureness.yml` : (optional, if you don't have a need, just delete it) Mount account configuration file modified in the previous step into the container. Delete this command parameters if no needs. - - `--name hertzbeat` : Naming container name hertzbeat - - `apache/hertzbeat` : Use the pulled latest HertzBeat official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat` instead if you pull `quay.io` docker image.** + - `--name hertzbeat` : Naming container name hertzbeat + - `apache/hertzbeat` : Use the pulled latest HertzBeat official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat` instead if you pull `quay.io` docker image.** -6. Begin to explore HertzBeat +6. Begin to explore HertzBeat - Access `http://ip:1157/` using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! + Access `http://ip:1157/` using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! 7. Deploy collector cluster (Optional) -```shell -$ docker run -d \ - -e IDENTITY=custom-collector-name \ - -e MODE=public \ - -e MANAGER_HOST=127.0.0.1 \ - -e MANAGER_PORT=1158 \ - --name hertzbeat-collector apache/hertzbeat-collector -``` + ```shell + $ docker run -d \ + -e IDENTITY=custom-collector-name \ + -e MODE=public \ + -e MANAGER_HOST=127.0.0.1 \ + -e MANAGER_PORT=1158 \ + --name hertzbeat-collector apache/hertzbeat-collector + ``` This command starts a running HertzBeat-Collector container. + - `docker run -d` : Run a container in the background via Docker - `-e IDENTITY=custom-collector-name` : (optional) Set the collector unique identity name. Attention the clusters collector name must unique. - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. @@ -94,43 +97,50 @@ $ docker run -d \ - `--name hertzbeat-collector` : Naming container name hertzbeat-collector - `apache/hertzbeat-collector` : Use the pulled latest HertzBeat-Collector official application mirror to start the container. **Use `quay.io/tancloud/hertzbeat-collector` instead if you pull `quay.io` docker image.** -8. Access `http://localhost:1157` and you will see the registered new collector in dashboard. +8. Access `http://localhost:1157` and you will see the registered new collector in dashboard. -**HAVE FUN** +**HAVE FUN** -### FAQ +### FAQ **The most common problem is network problems, please check in advance** -1. **MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** -The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. -> Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. -> Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` +1. **MYSQL, TDENGINE, IoTDB and HertzBeat are deployed on the same host by Docker,HertzBeat use localhost or 127.0.0.1 connect to the database but fail** + The problems lies in Docker container failed to visit and connect localhost port. Because the docker default network mode is Bridge mode which can't access local machine through localhost. + + > Solution A:Configure application.yml. Change database connection address from localhost to external IP of the host machine. + > Solution B:Use the Host network mode to start Docker, namely making Docker container and hosting share network. `docker run -d --network host .....` + +2. **According to the process deploy,visit no interface** + Please refer to the following points to troubleshoot issues: -2. **According to the process deploy,visit http://ip:1157/ no interface** -Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. -> 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. + > 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. + > 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. + > 3:`docker logs hertzbeat` Check whether the container log has errors. If you haven't solved the issue, report it to the communication group or community. -3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. +3. **Log an error TDengine connection or insert SQL failed** -4. **Historical monitoring charts have been missing data for a long time** -> 1:Check whether you configure Tdengine or IoTDB. No configuration means no historical chart data. -> 2:Check whether Tdengine database `hertzbeat` is created. -> 3: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. + > 1:Check whether database account and password configured is correct, the database is created. + > 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. + +4. **Historical monitoring charts have been missing data for a long time** + + > 1:Check whether you configure Tdengine or IoTDB. No configuration means no historical chart data. + > 2:Check whether Tdengine database `hertzbeat` is created. + > 3: Check whether IP account and password configuration is correct in HertzBeat's configuration file `application.yml`. 5. If the history chart on the monitoring page is not displayed,popup [please configure time series database] -> As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - IoTDB or TDengine database. -> Installation and initialization this database refer to [TDengine Installation](tdengine-init) or [IoTDB Installation](iotdb-init) -6. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is near 2.4.0.12, version 3.0 and 2.2 are not compatible. + > As shown in the popup window,the premise of history chart display is that you need install and configure hertzbeat's dependency service - IoTDB or TDengine database. + > Installation and initialization this database refer to [TDengine Installation](tdengine-init) or [IoTDB Installation](iotdb-init) + +6. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed + + > Please confirm whether the installed TDengine version is near 2.4.0.12, version 3.0 and 2.2 are not compatible. 7. The time series database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure dependent time series database] -> Please check if the configuration parameters are correct -> Is iot-db or td-engine enable set to true -> Note⚠️If both hertzbeat and IotDB, TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + + > Please check if the configuration parameters are correct + > Is iot-db or td-engine enable set to true + > Note⚠️If both hertzbeat and IotDB, TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.5.x/start/greptime-init.md b/home/versioned_docs/version-v1.5.x/start/greptime-init.md index cfb148ecea7..5ff9268213b 100644 --- a/home/versioned_docs/version-v1.5.x/start/greptime-init.md +++ b/home/versioned_docs/version-v1.5.x/start/greptime-init.md @@ -8,52 +8,57 @@ Apache HertzBeat (incubating)'s historical data storage relies on the time serie > It is recommended to use VictoriaMetrics as metrics storage. -GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. +GreptimeDB is an open-source time-series database with a special focus on scalability, analytical capabilities and efficiency. It's designed to work on infrastructure of the cloud era, and users benefit from its elasticity and commodity storage. -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** + +### Install GreptimeDB via Docker -### Install GreptimeDB via Docker > Refer to the official website [installation tutorial](https://docs.greptime.com/getting-started/overview) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install GreptimeDB with Docker - -```shell -$ docker run -p 4000-4004:4000-4004 \ - -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ - --name greptime \ - greptime/greptimedb standalone start \ - --http-addr 0.0.0.0:4000 \ - --rpc-addr 0.0.0.0:4001 \ -``` - `-v /opt/greptimedb:/tmp/greptimedb` is local persistent mount of greptimedb data directory. `/opt/greptimedb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + +2. Install GreptimeDB with Docker + + ```shell + $ docker run -p 4000-4004:4000-4004 \ + -p 4242:4242 -v /opt/greptimedb:/tmp/greptimedb \ + --name greptime \ + greptime/greptimedb standalone start \ + --http-addr 0.0.0.0:4000 \ + --rpc-addr 0.0.0.0:4001 \ + ``` + + `-v /opt/greptimedb:/tmp/greptimedb` is local persistent mount of greptimedb data directory. `/opt/greptimedb` should be replaced with the actual local directory. + use```$ docker ps``` to check if the database started successfully + +### Configure the database connection in hertzbeat `application.yml` configuration file + +1. Configure HertzBeat's configuration file + Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Replace `warehouse.store.greptime` data source parameters, URL account and password. -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable greptime - greptime: - enabled: true - endpoint: localhost:4001 -``` + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable greptime + greptime: + enabled: true + endpoint: localhost:4001 + ``` 2. Restart HertzBeat @@ -61,5 +66,4 @@ warehouse: 1. Do both the time series databases Greptime, IoTDB or TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. - + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/versioned_docs/version-v1.5.x/start/influxdb-init.md b/home/versioned_docs/version-v1.5.x/start/influxdb-init.md index b752fc82a21..c295f908d3e 100644 --- a/home/versioned_docs/version-v1.5.x/start/influxdb-init.md +++ b/home/versioned_docs/version-v1.5.x/start/influxdb-init.md @@ -1,67 +1,71 @@ --- id: influxdb-init title: Use Time Series Database InfluxDB to Store Metrics Data (Optional) -sidebar_label: Use InfluxDB Store Metrics +sidebar_label: Use InfluxDB Store Metrics --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. - **Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need InfluxDB 1.x Version. +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +Note⚠️ Need InfluxDB 1.x Version. ### 1. Use HuaweiCloud GaussDB For Influx > Use [HuaweiCloud GaussDB For Influx](https://www.huaweicloud.com/product/gaussdbforinflux.html) - -> Get the `GaussDB For Influx` service url, username and password config. +> +> Get the `GaussDB For Influx` service url, username and password config. ⚠️Note `GaussDB For Influx` enable SSL default, the service url should use `https:` -### 2. Install TDengine via Docker +### 2. Install TDengine via Docker + > Refer to the official website [installation tutorial](https://hub.docker.com/_/influxdb) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install InfluxDB with Docker - ``` + +2. Install InfluxDB with Docker + + ```shell $ docker run -p 8086:8086 \ - -v /opt/influxdb:/var/lib/influxdb \ - influxdb:1.8 + -v /opt/influxdb:/var/lib/influxdb \ + influxdb:1.8 + ``` + + `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. + use```$ docker ps``` to check if the database started successfully + +### Configure the database connection in hertzbeat `application.yml` configuration file + +1. Configure HertzBeat's configuration file + Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Replace `warehouse.store.influxdb` data source parameters, URL account and password. + + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable influxdb + influxdb: + enabled: true + server-url: http://localhost:8086 + username: root + password: root + expire-time: '30d' + replication: 1 ``` - `-v /opt/influxdb:/var/lib/influxdb` is local persistent mount of InfluxDB data directory. `/opt/influxdb` should be replaced with the actual local directory. - use```$ docker ps``` to check if the database started successfully - - -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.influxdb` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable influxdb - influxdb: - enabled: true - server-url: http://localhost:8086 - username: root - password: root - expire-time: '30d' - replication: 1 -``` 2. Restart HertzBeat @@ -69,4 +73,4 @@ warehouse: 1. Do both the time series databases InfluxDB, IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. diff --git a/home/versioned_docs/version-v1.5.x/start/iotdb-init.md b/home/versioned_docs/version-v1.5.x/start/iotdb-init.md index ee7a66a87f4..52a5fcf9043 100644 --- a/home/versioned_docs/version-v1.5.x/start/iotdb-init.md +++ b/home/versioned_docs/version-v1.5.x/start/iotdb-init.md @@ -3,6 +3,7 @@ id: iotdb-init title: Use Time Series Database IoTDB to Store Metrics Data (Optional) sidebar_label: Use IoTDB Store Metrics --- + Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. @@ -23,21 +24,22 @@ Apache IoTDB is a software system that integrates the collection, storage, manag Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). After the installation you can check if the Docker version normally output at the terminal. - ``` + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Install IoTDB via Docker -```shell -$ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ - -v /opt/iotdb/data:/iotdb/data \ - --name iotdb \ - apache/iotdb:1.2.2-standalone -``` + ```shell + $ docker run -d -p 6667:6667 -p 31999:31999 -p 8181:8181 \ + -v /opt/iotdb/data:/iotdb/data \ + --name iotdb \ + apache/iotdb:1.2.2-standalone + ``` -`-v /opt/iotdb/data:/iotdb/data` is local persistent mount of IotDB data directory.`/iotdb/data` should be replaced with the actual local directory. -use```$ docker ps``` to check if the database started successfully + `-v /opt/iotdb/data:/iotdb/data` is local persistent mount of IotDB data directory.`/iotdb/data` should be replaced with the actual local directory. + use```$ docker ps``` to check if the database started successfully 3. Configure the database connection in hertzbeat `application.yml`configuration file @@ -45,62 +47,61 @@ use```$ docker ps``` to check if the database started successfully Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.iot-db` data source parameters, HOST account and password. -``` -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable iot-db - iot-db: - enabled: true - host: 127.0.0.1 - rpc-port: 6667 - username: root - password: root - query-timeout-in-ms: -1 - # default '7776000000'(90days,unit:ms,-1:no-expire) - expire-time: '7776000000' -``` - -**IoTDB Cluster Configuration** - -If you are using IoTDB for clustering, please refer to the configuration below: - -```yaml -warehouse: - store: - # Disable default JPA - jpa: - enabled: false - # Enable IoTDB - iot-db: - enabled: true - node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667'] - username: root - password: root - # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 - query-timeout-in-ms: -1 - # Data storage time: default '7776000000' (90 days, in milliseconds, -1 means never expire) - expire-time: '7776000000' -``` - -Configuration parameters: - - -| Parameter Name | Description | -| ------------------- |-------------------------------------------------------------------------------------------| -| enabled | Whether to enable | -| host | IoTDB database address | -| rpc-port | IoTDB database port | -| node-urls | IoTDB cluster addresses | -| username | IoTDB database account | -| password | IoTDB database password | -| version | deprecated | -| query-timeout-in-ms | Query timeout | -| expire-time | Data storage time, default '7776000000' (90 days, in milliseconds, -1 means never expire) | - -> If both cluster configuration `node-urls` and standalone configuration are set simultaneously, the cluster `node-urls` configuration takes precedence. + ```yaml + warehouse: + store: + # disable JPA + jpa: + enabled: false + # enable iot-db + iot-db: + enabled: true + host: 127.0.0.1 + rpc-port: 6667 + username: root + password: root + query-timeout-in-ms: -1 + # default '7776000000'(90days,unit:ms,-1:no-expire) + expire-time: '7776000000' + ``` + + **IoTDB Cluster Configuration** + + If you are using IoTDB for clustering, please refer to the configuration below: + + ```yaml + warehouse: + store: + # Disable default JPA + jpa: + enabled: false + # Enable IoTDB + iot-db: + enabled: true + node-urls: ['127.0.0.1:6667','127.0.0.2:6667','127.0.0.3:6667'] + username: root + password: root + # if iotdb version >= 0.13 use default queryTimeoutInMs = -1; else use default queryTimeoutInMs = 0 + query-timeout-in-ms: -1 + # Data storage time: default '7776000000' (90 days, in milliseconds, -1 means never expire) + expire-time: '7776000000' + ``` + + Configuration parameters: + + | Parameter Name | Description | + |---------------------|-------------------------------------------------------------------------------------------| + | enabled | Whether to enable | + | host | IoTDB database address | + | rpc-port | IoTDB database port | + | node-urls | IoTDB cluster addresses | + | username | IoTDB database account | + | password | IoTDB database password | + | version | deprecated | + | query-timeout-in-ms | Query timeout | + | expire-time | Data storage time, default '7776000000' (90 days, in milliseconds, -1 means never expire) | + + > If both cluster configuration `node-urls` and standalone configuration are set simultaneously, the cluster `node-urls` configuration takes precedence. 4. Restart HertzBeat @@ -108,15 +109,15 @@ Configuration parameters: 1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. 2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database + > As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database 3. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + > Please check if the configuration parameters are correct + > Is td-engine enable set to true + > Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.5.x/start/mysql-change.md b/home/versioned_docs/version-v1.5.x/start/mysql-change.md index 1095f538b0c..f3dfed7861f 100644 --- a/home/versioned_docs/version-v1.5.x/start/mysql-change.md +++ b/home/versioned_docs/version-v1.5.x/start/mysql-change.md @@ -1,22 +1,27 @@ --- id: mysql-change title: Use MYSQL Replace H2 Database to Store Metadata(Optional) -sidebar_label: Use MYSQL Instead of H2 +sidebar_label: Use MYSQL Instead of H2 --- -MYSQL is a reliable relational database. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. -> If you have the MYSQL environment, can be directly to database creation step. +MYSQL is a reliable relational database. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use MYSQL to store structured relational data such as monitoring information, alarm information and configuration information. -### Install MYSQL via Docker -1. Download and install the Docker environment +> If you have the MYSQL environment, can be directly to database creation step. + +### Install MYSQL via Docker + +1. Download and install the Docker environment For Docker installation, please refer to the [Docker official documentation](https://docs.docker.com/get-docker/). After the installation, please verify in the terminal that the Docker version can be printed normally. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install MYSQl with Docker - ``` + +2. Install MYSQl with Docker + + ```shell $ docker run -d --name mysql \ -p 3306:3306 \ -v /opt/data:/var/lib/mysql \ @@ -24,18 +29,20 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data --restart=always \ mysql:5.7 ``` - `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. + + `-v /opt/data:/var/lib/mysql` is local persistent mount of mysql data directory. `/opt/data` should be replaced with the actual local directory. use ```$ docker ps``` to check if the database started successfully -### Database creation -1. Enter MYSQL or use the client to connect MYSQL service - `mysql -uroot -p123456` -2. Create database named hertzbeat +### Database creation + +1. Enter MYSQL or use the client to connect MYSQL service + `mysql -uroot -p123456` +2. Create database named hertzbeat `create database hertzbeat default charset utf8mb4 collate utf8mb4_general_ci;` 3. Check if hertzbeat database has been successfully created `show databases;` -### Modify hertzbeat's configuration file application.yml and switch data source +### Modify hertzbeat's configuration file application.yml and switch data source - Configure HertzBeat's configuration file Modify `hertzbeat/config/application.yml` configuration file @@ -43,6 +50,7 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data Replace `spring.database` data source parameters, URL account and password. For example: + ```yaml spring: datasource: @@ -51,7 +59,9 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data password: 123456 url: jdbc:h2:./data/hertzbeat;MODE=MYSQL ``` - Specific replacement parameters are as follows and you need to configure account according to the mysql environment: + + Specific replacement parameters are as follows and you need to configure account according to the mysql environment: + ```yaml spring: datasource: @@ -64,6 +74,6 @@ MYSQL is a reliable relational database. In addition to default built-in H2 data database: mysql ``` -- It is recommended to set the host field in the MySQL URL or Redis URL to the public IP address when using Hertzbeat in docker. +- It is recommended to set the host field in the MySQL URL or Redis URL to the public IP address when using Hertzbeat in docker. -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** +**Start HertzBeat visit on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.5.x/start/package-deploy.md b/home/versioned_docs/version-v1.5.x/start/package-deploy.md index 050121f5c55..21430e6682b 100644 --- a/home/versioned_docs/version-v1.5.x/start/package-deploy.md +++ b/home/versioned_docs/version-v1.5.x/start/package-deploy.md @@ -6,43 +6,46 @@ sidebar_label: Install via Package > You can install and run Apache HertzBeat (incubating) on Linux Windows Mac system, and CPU supports X86/ARM64. -1. Download HertzBeat installation package +1. Download HertzBeat installation package Download installation package `hertzbeat-xx.tar.gz` `hertzbeat-collector-xx.tar.gz` corresponding to your system environment - [Download Page](/docs/download) +2. Configure HertzBeat's configuration file(optional) + Unzip the installation package to the host eg: /opt/hertzbeat -2. Configure HertzBeat's configuration file(optional) - Unzip the installation package to the host eg: /opt/hertzbeat - ``` + ```shell $ tar zxvf hertzbeat-xx.tar.gz or $ unzip -o hertzbeat-xx.zip ``` - Modify the configuration file `hertzbeat/config/application.yml` params according to your needs. - - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` + + Modify the configuration file `hertzbeat/config/application.yml` params according to your needs. + - If you need to use email to send alarms, you need to replace the email server parameters `spring.mail` in `application.yml` - **Recommended** If you need to use an external Mysql database to replace the built-in H2 database, you need to replace the `spring.datasource` parameter in `application.yml` For specific steps, see [Using Mysql to replace H2 database](mysql-change) - **Highly recommended** From now on we will mainly support VictoriaMetrics as a time-series database, if you need to use the time series database VictoriaMetrics to store metric data, you need to replace the `warehouse.store.victoria-metrics` parameter in `application.yml` for specific steps, see [Using VictoriaMetrics to store metrics data](victoria-metrics-init) - - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) + - **Recommended** If you need to use the time series database TDengine to store metric data, you need to replace the `warehouse.store.td-engine` parameter in `application.yml` for specific steps, see [Using TDengine to store metrics data](tdengine-init) - **Recommended** If you need to use the time series database IotDB to store the metric database, you need to replace the `warehouse.storeiot-db` parameter in `application.yml` For specific steps, see [Use IotDB to store metrics data](iotdb-init) -3. Configure the account file(optional) - HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` - If you need add, delete or modify account or password, configure `hertzbeat/config/sureness.yml`. Ignore this step without this demand. - For detail steps, please refer to [Configure Account Password](account-modify) +3. Configure the account file(optional) + HertzBeat default built-in three user accounts, respectively `admin/hertzbeat tom/hertzbeat guest/hertzbeat` + If you need add, delete or modify account or password, configure `hertzbeat/config/sureness.yml`. Ignore this step without this demand. + For detail steps, please refer to [Configure Account Password](account-modify) + +4. Start the service + Execute the startup script `startup.sh` in the installation directory `hertzbeat/bin/`, or `startup.bat` in windows. -4. Start the service - Execute the startup script `startup.sh` in the installation directory `hertzbeat/bin/`, or `startup.bat` in windows. - ``` - $ ./startup.sh + ```shell + ./startup.sh ``` -5. Begin to explore HertzBeat +5. Begin to explore HertzBeat - Access http://localhost:1157/ using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! + Access using browser. You can explore HertzBeat with default account `admin/hertzbeat` now! 6. Deploy collector clusters (Optional) - - Download and unzip the collector release package `hertzbeat-collector-xx.tar.gz` to new machine [Download Page](/docs/download) + - Download and unzip the collector release package `hertzbeat-collector-xx.tar.gz` to new machine [Download Page](/docs/download) - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` + ```yaml collector: dispatch: @@ -54,20 +57,22 @@ sidebar_label: Install via Package manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` + + - Run command `$ ./bin/startup.sh` or `bin/startup.bat` - Access `http://localhost:1157` and you will see the registered new collector in dashboard **HAVE FUN** -### FAQ +### FAQ 1. **If using the package not contains JDK, you need to prepare the JAVA environment in advance** - Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) - requirement:JDK17 ENV - download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) + Install JAVA runtime environment-refer to [official website](http://www.oracle.com/technetwork/java/javase/downloads/index.html) + requirement:JDK17 ENV + download JAVA installation package: [mirror website](https://repo.huaweicloud.com/java/jdk/) After installation use command line to check whether you install it successfully. - ``` + + ```shell $ java -version java version "17.0.9" Java(TM) SE Runtime Environment 17.0.9 (build 17.0.9+8-LTS-237) @@ -75,18 +80,20 @@ sidebar_label: Install via Package ``` -2. **According to the process deploy,visit http://ip:1157/ no interface** +2. **According to the process deploy,visit no interface** Please refer to the following points to troubleshoot issues: -> 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. -> 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. -> 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. + + > 1:If you switch to dependency service MYSQL database,check whether the database is created and started successfully. + > 2:Check whether dependent services, IP account and password configuration is correct in HertzBeat's configuration file `hertzbeat/config/application.yml`. + > 3:Check whether the running log has errors in `hertzbeat/logs/` directory. If you haven't solved the issue, report it to the communication group or community. 3. **Log an error TDengine connection or insert SQL failed** -> 1:Check whether database account and password configured is correct, the database is created. -> 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. -4. **Monitoring historical charts with no data for a long time ** -> 1: Whether the time series database is configured or not, if it is not configured, there is no historical chart data. -> 2: If you are using Tdengine, check whether the database `hertzbeat` of Tdengine is created. -> 3: HertzBeat's configuration file `application.yml`, the dependent services in it, the time series, the IP account password, etc. are configured correctly. + > 1:Check whether database account and password configured is correct, the database is created. + > 2:If you install TDengine2.3+ version, you must execute `systemctl start taosadapter` to start adapter in addition to start the server. + +4. **Monitoring historical charts with no data for a long time** + > 1: Whether the time series database is configured or not, if it is not configured, there is no historical chart data. + > 2: If you are using Tdengine, check whether the database `hertzbeat` of Tdengine is created. + > 3: HertzBeat's configuration file `application.yml`, the dependent services in it, the time series, the IP account password, etc. are configured correctly. diff --git a/home/versioned_docs/version-v1.5.x/start/postgresql-change.md b/home/versioned_docs/version-v1.5.x/start/postgresql-change.md index c78a24a1ca7..e9cd31cd408 100644 --- a/home/versioned_docs/version-v1.5.x/start/postgresql-change.md +++ b/home/versioned_docs/version-v1.5.x/start/postgresql-change.md @@ -3,32 +3,42 @@ id: postgresql-change title: Use PostgreSQL Replace H2 Database to Store Metadata(Optional) sidebar_label: Use PostgreSQL Instead of H2 --- + PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition to default built-in H2 database, Apache HertzBeat (incubating) allow you to use PostgreSQL to store structured relational data such as monitoring information, alarm information and configuration information. > If you have the PostgreSQL environment, can be directly to database creation step. ### Install PostgreSQL via Docker -1. Download and install the Docker environment + +1. Download and install the Docker environment Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/)。 After the installation you can check if the Docker version normally output at the terminal. - ``` + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` + 2. Install PostgreSQL with Docker + + ```shell + docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 ``` - $ docker run -d --name postgresql -p 5432:5432 -e POSTGRES_USER=root -e POSTGRES_PASSWORD=123456 -e TZ=Asia/Shanghai postgresql:15 - ``` + use```$ docker ps```to check if the database started successfully + 3. Create database in container manually or with [script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-iotdb/conf/sql/schema.sql). ### Database creation -1. Enter postgreSQL or use the client to connect postgreSQL service - ``` + +1. Enter postgreSQL or use the client to connect postgreSQL service + + ```shell su - postgres psql ``` -2. Create database named hertzbeat + +2. Create database named hertzbeat `CREATE DATABASE hertzbeat;` 3. Check if hertzbeat database has been successfully created `\l` @@ -39,6 +49,7 @@ PostgreSQL is a RDBMS emphasizing extensibility and SQL compliance. In addition Modify `hertzbeat/config/application.yml` configuration file Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Replace `spring.database` data source parameters, URL account and password. + ```yaml spring: datasource: @@ -47,7 +58,9 @@ spring: password: 123456 url: jdbc:h2:./data/hertzbeat;MODE=MYSQL ``` + Specific replacement parameters are as follows and you need to configure account, ip, port according to the postgresql environment: + ```yaml spring: config: @@ -70,4 +83,4 @@ spring: dialect: org.hibernate.dialect.PostgreSQLDialect ``` -**Start HertzBeat visit http://ip:1157/ on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** +**Start HertzBeat visit on the browser You can use HertzBeat monitoring alarm, default account and password are admin/hertzbeat** diff --git a/home/versioned_docs/version-v1.5.x/start/quickstart.md b/home/versioned_docs/version-v1.5.x/start/quickstart.md index 087e7db2367..e8b099e7058 100644 --- a/home/versioned_docs/version-v1.5.x/start/quickstart.md +++ b/home/versioned_docs/version-v1.5.x/start/quickstart.md @@ -1,14 +1,14 @@ --- id: quickstart title: Quick Start -sidebar_label: Quick Start +sidebar_label: Quick Start --- ### 🐕 Quick Start - If you wish to deploy Apache HertzBeat (incubating) locally, please refer to the following Deployment Documentation for instructions. -### 🍞 Install HertzBeat +#### 🍞 Install HertzBeat > Apache HertzBeat (incubating) supports installation through source code, docker or package, cpu support X86/ARM64. @@ -16,35 +16,37 @@ sidebar_label: Quick Start 1. Just one command to get started: -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat apache/hertzbeat``` -```or use quay.io (if dockerhub network connect timeout)``` + ```or use quay.io (if dockerhub network connect timeout)``` -```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` + ```docker run -d -p 1157:1157 -p 1158:1158 --name hertzbeat quay.io/tancloud/hertzbeat``` 2. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 3. Deploy collector clusters(Optional) -``` -docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector -``` -- `-e IDENTITY=custom-collector-name` : set the collector unique identity name. -- `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. -- `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. -- `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. + ```shell + docker run -d -e IDENTITY=custom-collector-name -e MANAGER_HOST=127.0.0.1 -e MANAGER_PORT=1158 --name hertzbeat-collector apache/hertzbeat-collector + ``` + + - `-e IDENTITY=custom-collector-name` : set the collector unique identity name. + - `-e MODE=public` : set the running mode(public or private), public cluster or private cloud-edge. + - `-e MANAGER_HOST=127.0.0.1` : set the main hertzbeat server ip. + - `-e MANAGER_PORT=1158` : set the main hertzbeat server port, default 1158. Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache.org/docs/start/docker-deploy) ##### 2:Install via package -1. Download the release package `hertzbeat-xx.tar.gz` [GITHUB Release](https://github.com/apache/hertzbeat/releases) +1. Download the release package `hertzbeat-xx.tar.gz` [Download](https://hertzbeat.apache.org/docs/download) 2. Configure the HertzBeat configuration yml file `hertzbeat/config/application.yml` (optional) -3. Run command `$ ./bin/startup.sh ` or `bin/startup.bat` +3. Run command `$ ./bin/startup.sh` or `bin/startup.bat` 4. Access `http://localhost:1157` to start, default account: `admin/hertzbeat` 5. Deploy collector clusters(Optional) - - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [GITHUB Release](https://github.com/apache/hertzbeat/releases) + - Download the release package `hertzbeat-collector-xx.tar.gz` to new machine [Download](https://hertzbeat.apache.org/docs/download) - Configure the collector configuration yml file `hertzbeat-collector/config/application.yml`: unique `identity` name, running `mode` (public or private), hertzbeat `manager-host`, hertzbeat `manager-port` + ```yaml collector: dispatch: @@ -56,7 +58,8 @@ Detailed config refer to [Install HertzBeat via Docker](https://hertzbeat.apache manager-host: ${MANAGER_HOST:127.0.0.1} manager-port: ${MANAGER_PORT:1158} ``` - - Run command `$ ./bin/startup.sh ` or `bin/startup.bat` + + - Run command `$ ./bin/startup.sh` or `bin/startup.bat` - Access `http://localhost:1157` and you will see the registered new collector in dashboard Detailed config refer to [Install HertzBeat via Package](https://hertzbeat.apache.org/docs/start/package-deploy) @@ -68,9 +71,9 @@ Detailed config refer to [Install HertzBeat via Package](https://hertzbeat.apach 3. Web:need `nodejs npm angular-cli` environment, Run `ng serve --open` in `web-app` directory after backend startup. 4. Access `http://localhost:4200` to start, default account: `admin/hertzbeat` -Detailed steps refer to [CONTRIBUTING](../community/contribution) +Detailed steps refer to [CONTRIBUTING](../community/contribution) -##### 4:Install All(hertzbeat+mysql+iotdb/tdengine) via Docker-compose +##### 4:Install All(hertzbeat+mysql+iotdb/tdengine) via Docker-compose Install and deploy the mysql database, iotdb/tdengine database and hertzbeat at one time through [docker-compose deployment script](https://github.com/apache/hertzbeat/tree/master/script/docker-compose). @@ -82,4 +85,4 @@ Install HertzBeat cluster in a Kubernetes cluster by Helm chart. Detailed steps refer to [Artifact Hub](https://artifacthub.io/packages/helm/hertzbeat/hertzbeat) -**HAVE FUN** +**HAVE FUN** diff --git a/home/versioned_docs/version-v1.5.x/start/rainbond-deploy.md b/home/versioned_docs/version-v1.5.x/start/rainbond-deploy.md index 57f537aa4ac..ef2c581d57d 100644 --- a/home/versioned_docs/version-v1.5.x/start/rainbond-deploy.md +++ b/home/versioned_docs/version-v1.5.x/start/rainbond-deploy.md @@ -1,7 +1,7 @@ --- id: rainbond-deploy title: Use Rainbond Deploy HertzBeat -sidebar_label: Install via Rainbond +sidebar_label: Install via Rainbond --- If you are unfamiliar with Kubernetes, and want to install Apache HertzBeat (incubating) in Kubernetes, you can use Rainbond to deploy. Rainbond is a cloud-native application management platform built on Kubernetes and simplifies the application deployment to Kubernetes. diff --git a/home/versioned_docs/version-v1.5.x/start/sslcert-practice.md b/home/versioned_docs/version-v1.5.x/start/sslcert-practice.md index d8c06a8beba..5e203b4fc7f 100644 --- a/home/versioned_docs/version-v1.5.x/start/sslcert-practice.md +++ b/home/versioned_docs/version-v1.5.x/start/sslcert-practice.md @@ -12,14 +12,13 @@ This article introduces how to use the hertzbeat monitoring tool to detect the v Apache HertzBeat (incubating) is a real-time monitoring tool with powerful custom monitoring capabilities without Agent. Website monitoring, PING connectivity, port availability, database, operating system, middleware, API monitoring, threshold alarms, alarm notification (email, WeChat, Ding Ding Feishu). - -github: https://github.com/apache/hertzbeat +github: #### Install HertzBeat 1. The `docker` environment can be installed with just one command -`docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` + `docker run -d -p 1157:1157 --name hertzbeat apache/hertzbeat` 2. After the installation is successful, the browser can access `localhost:1157` to start, the default account password is `admin/hertzbeat` @@ -27,81 +26,69 @@ github: https://github.com/apache/hertzbeat 1. Click Add SSL Certificate Monitor -> System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate - + > System Page -> Monitor Menu -> SSL Certificate -> Add SSL Certificate -![](/img/docs/start/ssl_1.png) + ![](/img/docs/start/ssl_1.png) 2. Configure the monitoring website -> Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. -> Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. + > Here we take the example of monitoring Baidu website, configure monitoring host domain name, name, collection interval, etc. + > Click OK Note ⚠️Before adding, it will test the connectivity of the website by default, and the connection will be successful before adding. Of course, you can also gray out the **Test or not** button. -![](/img/docs/start/ssl_2.png) + ![](/img/docs/start/ssl_2.png) 3. View the detection index data -> In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. - - -![](/img/docs/start/ssl_3.png) + > In the monitoring list, you can view the monitoring status, and in the monitoring details, you can view the metric data chart, etc. + ![](/img/docs/start/ssl_3.png) -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 4. Set the threshold (triggered when the certificate expires) -> System Page -> Alarms -> Alarm Thresholds -> New Thresholds - - -![](/img/docs/start/ssl_4.png) - -> Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. + > System Page -> Alarms -> Alarm Thresholds -> New Thresholds + ![](/img/docs/start/ssl_4.png) -![](/img/docs/start/ssl_5.png) + > Configure the threshold, select the SSL certificate metric object, configure the alarm expression-triggered when the metric `expired` is `true`, that is, `equals(expired,"true")`, set the alarm level notification template information, etc. -> Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. + ![](/img/docs/start/ssl_5.png) + > Associating thresholds with monitoring, in the threshold list, set which monitoring this threshold applies to. -![](/img/docs/start/ssl_6.png) - + ![](/img/docs/start/ssl_6.png) 5. Set the threshold (triggered one week before the certificate expires) -> In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. - - -![](/img/docs/start/ssl_7.png) + > In the same way, add a new configuration threshold and configure an alarm expression - when the metric expires timestamp `end_timestamp`, the `now()` function is the current timestamp, if the configuration triggers an alarm one week in advance: `end_timestamp <= (now( ) + 604800000)` , where `604800000` is the 7-day total time difference in milliseconds. -> Finally, you can see the triggered alarm in the alarm center. + ![](/img/docs/start/ssl_7.png) + > Finally, you can see the triggered alarm in the alarm center. -![](/img/docs/start/ssl_8.png) - + ![](/img/docs/start/ssl_8.png) 6. Alarm notification (in time notification via Dingding WeChat Feishu, etc.) -> Monitoring Tool -> Alarm Notification -> New Receiver - - -![](/img/docs/start/ssl_10.png) + > Monitoring Tool -> Alarm Notification -> New Receiver -For token configuration such as Dingding WeChat Feishu, please refer to the help document + ![](/img/docs/start/ssl_10.png) -https://hertzbeat.apache.org/docs/help/alert_dingtalk + For token configuration such as Dingding WeChat Feishu, please refer to the help document -> Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured + + > Alarm Notification -> New Alarm Notification Policy -> Enable Notification for the Recipient Just Configured -![](/img/docs/start/ssl_11.png) + ![](/img/docs/start/ssl_11.png) 7. OK When the threshold is triggered, we can receive the corresponding alarm message. If there is no notification, you can also view the alarm information in the alarm center. ---- -#### Finish! +#### Finish The practice of monitoring SSL certificates is here. Of course, for hertzbeat, this function is just the tip of the iceberg. If you think hertzbeat is a good open source project, please give us a Gitee star on GitHub, thank you very much. Thank you for your support. Refill! -**github: https://github.com/apache/hertzbeat** +**github: ** diff --git a/home/versioned_docs/version-v1.5.x/start/tdengine-init.md b/home/versioned_docs/version-v1.5.x/start/tdengine-init.md index 1f73a4151eb..99c88825369 100644 --- a/home/versioned_docs/version-v1.5.x/start/tdengine-init.md +++ b/home/versioned_docs/version-v1.5.x/start/tdengine-init.md @@ -1,116 +1,127 @@ --- id: tdengine-init title: Use Time Series Database TDengine to Store Metrics Data (Optional) -sidebar_label: Use TDengine Store Metrics +sidebar_label: Use TDengine Store Metrics --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) > It is recommended to use VictoriaMetrics as metrics storage. -TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. +TDengine is an open-source IoT time-series database, which we use to store the collected historical data of monitoring metrics. Pay attention to support ⚠️ 3.x version. -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** -**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** -Note⚠️ Need TDengine 3.x Version. +**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** +**⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** +Note⚠️ Need TDengine 3.x Version. -> If you have TDengine environment, can directly skip to create a database instance. +> If you have TDengine environment, can directly skip to create a database instance. +### Install TDengine via Docker -### Install TDengine via Docker > Refer to the official website [installation tutorial](https://docs.taosdata.com/get-started/docker/) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` -2. Install TDengine with Docker + +2. Install TDengine with Docker + ```shell $ docker run -d -p 6030-6049:6030-6049 -p 6030-6049:6030-6049/udp \ - -v /opt/taosdata:/var/lib/taos \ - --name tdengine -e TZ=Asia/Shanghai \ - tdengine/tdengine:3.0.4.0 + -v /opt/taosdata:/var/lib/taos \ + --name tdengine -e TZ=Asia/Shanghai \ + tdengine/tdengine:3.0.4.0 ``` - `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. - `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. - use```$ docker ps``` to check if the database started successfully -### Create database instance + `-v /opt/taosdata:/var/lib/taos` is local persistent mount of TDengine data directory. `/opt/taosdata` should be replaced with the actual local directory. + `-e TZ="Asia/Shanghai"` can set time zone for TDengine.Set up the corresponding time zone you want. + use```$ docker ps``` to check if the database started successfully -1. Enter database Docker container - ``` - $ docker exec -it tdengine /bin/bash - ``` -2. Create database named hertzbeat - After entering the container,execute `taos` command as follows: - +### Create database instance + +1. Enter database Docker container + + ```shell + docker exec -it tdengine /bin/bash ``` + +2. Create database named hertzbeat + After entering the container,execute `taos` command as follows: + + ```shell root@tdengine-server:~/TDengine-server# taos Welcome to the TDengine shell from Linux, Client Version Copyright (c) 2020 by TAOS Data, Inc. All rights reserved. taos> ``` - - execute commands to create database - - ``` + + execute commands to create database + + ```shell taos> show databases; taos> CREATE DATABASE hertzbeat KEEP 90 DURATION 10 BUFFER 16; ``` - - The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). + + The above statements will create a database named hertzbeat. The data will be saved for 90 days (more than 90 days data will be automatically deleted). A data file every 10 days, memory blocks buffer is 16MB. -3. Check if hertzbeat database has been created success - - ``` +3. Check if hertzbeat database has been created success + + ```shell taos> show databases; taos> use hertzbeat; ``` -**Note⚠️If you install TDengine using package** +**Note⚠️If you install TDengine using package** > In addition to start the server,you must execute `systemctl start taosadapter` to start adapter -### Configure the database connection in hertzbeat `application.yml` configuration file - -1. Configure HertzBeat's configuration file - Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) - Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` - Replace `warehouse.store.td-engine` data source parameters, URL account and password. - -```yaml -warehouse: - store: - # disable jpa - jpa: - enabled: false - # enable td-engine - td-engine: - enabled: true - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://localhost:6041/hertzbeat - username: root - password: taosdata -``` +### Configure the database connection in hertzbeat `application.yml` configuration file + +1. Configure HertzBeat's configuration file + Modify `hertzbeat/config/application.yml` configuration file [/script/application.yml](https://github.com/apache/hertzbeat/raw/master/script/application.yml) + Note⚠️The docker container way need to mount application.yml file locally,while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Replace `warehouse.store.td-engine` data source parameters, URL account and password. + + ```yaml + warehouse: + store: + # disable jpa + jpa: + enabled: false + # enable td-engine + td-engine: + enabled: true + driver-class-name: com.taosdata.jdbc.rs.RestfulDriver + url: jdbc:TAOS-RS://localhost:6041/hertzbeat + username: root + password: taosdata + ``` 2. Restart HertzBeat ### FAQ 1. Do both the time series databases IoTDB and TDengine need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. + + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which only affects the historical chart data. 2. The historical chart of the monitoring page is not displayed, and pops up [Unable to provide historical chart data, please configure to rely on the time series database] -> As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database -3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed -> Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. + > As shown in the pop-up window, the premise of displaying the history chart is to install and configure the dependent services of hertzbeat - IotDB database or TDengine database + +3. The historical picture of monitoring details is not displayed or has no data, and TDengine has been deployed + + > Please confirm whether the installed TDengine version is 3.x, version 2.x are not compatible. 4. The TDengine database is installed and configured, but the page still displays a pop-up [Unable to provide historical chart data, please configure the dependent time series database] -> Please check if the configuration parameters are correct -> Is td-engine enable set to true -> Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed -> You can check the startup logs according to the logs directory + + > Please check if the configuration parameters are correct + > Is td-engine enable set to true + > Note⚠️If both hertzbeat and TDengine are started under the same host for docker containers, 127.0.0.1 cannot be used for communication between containers by default, and the host IP is changed + > You can check the startup logs according to the logs directory diff --git a/home/versioned_docs/version-v1.5.x/start/upgrade.md b/home/versioned_docs/version-v1.5.x/start/upgrade.md index 917b8ffbe54..f4d9b8ce14e 100644 --- a/home/versioned_docs/version-v1.5.x/start/upgrade.md +++ b/home/versioned_docs/version-v1.5.x/start/upgrade.md @@ -1,20 +1,19 @@ --- id: upgrade title: HertzBeat New Version Upgrade -sidebar_label: Version Upgrade Guide +sidebar_label: Version Upgrade Guide --- **HertzBeat Release Version List** - [Download Page](/docs/download) -- [Github Release](https://github.com/apache/hertzbeat/releases) +- [Download](https://hertzbeat.apache.org/docs/download) - [DockerHub Release](https://hub.docker.com/r/apache/hertzbeat/tags) Apache HertzBeat (incubating)'s metadata information is stored in H2 or Mysql, PostgreSQL relational databases, and the collected metric data is stored in time series databases such as TDengine and IotDB. **You need to save and back up the data files of the database and monitoring templates yml files before upgrading** - ### Upgrade For Docker Deploy 1. If using custom monitoring templates @@ -22,30 +21,26 @@ Apache HertzBeat (incubating)'s metadata information is stored in H2 or Mysql, P - `docker cp hertzbeat:/opt/hertzbeat/define ./define` - And mount the template define directory when docker start `-v $(pwd)/define:/opt/hertzbeat/define` - `-v $(pwd)/define:/opt/hertzbeat/define` - -2. If using the built-in default H2 database +2. If using the built-in default H2 database - Need to mount or back up `-v $(pwd)/data:/opt/hertzbeat/data` database file directory in the container `/opt/hertzbeat/data` - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - Refer to [Docker installation of HertzBeat](docker-deploy) to create a new container using a new image. Note that the database file directory needs to be mounted `-v $(pwd)/data:/opt/hertzbeat/data` - -3. If using external relational database Mysql, PostgreSQL +3. If using external relational database Mysql, PostgreSQL - No need to mount the database file directory in the backup container - Stop and delete the container, delete the local HertzBeat docker image, and pull the new version image - Refer to [Docker installation HertzBeat](docker-deploy) to create a new container using the new image, and configure the database connection in `application.yml` - ### Upgrade For Package Deploy -1. If using the built-in default H2 database +1. If using the built-in default H2 database - Back up the database file directory under the installation package `/opt/hertzbeat/data` - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - Refer to [Installation package to install HertzBeat](package-deploy) to start using the new installation package - -2. If using external relational database Mysql, PostgreSQL +2. If using external relational database Mysql, PostgreSQL - No need to back up the database file directory under the installation package - If there is a custom monitoring template, you need to back up the template YML under `/opt/hertzbeat/define` - `bin/shutdown.sh` stops the HertzBeat process and downloads the new installation package - Refer to [Installation package to install HertzBeat](package-deploy) to start with the new installation package and configure the database connection in `application.yml` -**HAVE FUN** +**HAVE FUN** diff --git a/home/versioned_docs/version-v1.5.x/start/victoria-metrics-init.md b/home/versioned_docs/version-v1.5.x/start/victoria-metrics-init.md index 327bc4999af..a593e794dd7 100644 --- a/home/versioned_docs/version-v1.5.x/start/victoria-metrics-init.md +++ b/home/versioned_docs/version-v1.5.x/start/victoria-metrics-init.md @@ -1,7 +1,7 @@ --- id: victoria-metrics-init title: Use Time Series Database VictoriaMetrics to Store Metrics Data (Recommended) -sidebar_label: Use VictoriaMetrics Store Metrics(Recommended) +sidebar_label: Use VictoriaMetrics Store Metrics(Recommended) --- Apache HertzBeat (incubating)'s historical data storage relies on the time series database, you can choose one of them to install and initialize, or not to install (note ⚠️ but it is strongly recommended to configure in the production environment) @@ -10,56 +10,58 @@ Apache HertzBeat (incubating)'s historical data storage relies on the time serie VictoriaMetrics is a fast, cost-effective and scalable monitoring solution and time series database.Recommend Version(VictoriaMetrics:v1.95.1+, HertzBeat:v1.4.3+) -**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** +**Note⚠️ Time series database is optional, but production environment configuration is strongly recommended to provide more complete historical chart functions and high performance** **⚠️ If you do not configure a time series database, only the last hour of historical data is retained.** > If you already have an VictoriaMetrics environment, you can skip directly to the YML configuration step. -### Install VictoriaMetrics via Docker -> Refer to the official website [installation tutorial](https://docs.victoriametrics.com/Quick-Start.html#how-to-install) -1. Download and install Docker environment - Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). - After the installation you can check if the Docker version normally output at the terminal. - ``` +### Install VictoriaMetrics via Docker + +1. Download and install Docker environment +Docker tools download refer to [Docker official document](https://docs.docker.com/get-docker/). +After the installation you can check if the Docker version normally output at the terminal. + + ```shell $ docker -v Docker version 20.10.12, build e91ed57 ``` - -2. Install VictoriaMetrics via Docker -```shell -$ docker run -d -p 8428:8428 \ - -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ - --name victoria-metrics \ - victoriametrics/victoria-metrics:v1.95.1 -``` +2. Install VictoriaMetrics via Docker - `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` is local persistent mount of VictoriaMetrics data directory - use```$ docker ps``` to check if the database started successfully + ```shell + $ docker run -d -p 8428:8428 \ + -v $(pwd)/victoria-metrics-data:/victoria-metrics-data \ + --name victoria-metrics \ + victoriametrics/victoria-metrics:v1.95.1 + ``` + + `-v $(pwd)/victoria-metrics-data:/victoria-metrics-data` is local persistent mount of VictoriaMetrics data directory + use```$ docker ps``` to check if the database started successfully 3. Configure the database connection in hertzbeat `application.yml`configuration file - Modify `hertzbeat/config/application.yml` configuration file - Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` + Modify `hertzbeat/config/application.yml` configuration file + Note⚠️The docker container way need to mount application.yml file locally, while you can use installation package way to unzip and modify `hertzbeat/config/application.yml` Config the `warehouse.store.jpa.enabled` `false`. Replace `warehouse.store.victoria-metrics` data source parameters, HOST account and password. -```yaml -warehouse: - store: - # disable JPA - jpa: - enabled: false - # enable victoria-metrics - victoria-metrics: - enabled: true - url: http://localhost:8428 - username: root - password: root -``` + ```yaml + warehouse: + store: + # disable JPA + jpa: + enabled: false + # enable victoria-metrics + victoria-metrics: + enabled: true + url: http://localhost:8428 + username: root + password: root + ``` 4. Restart HertzBeat ### FAQ -1. Do both the time series databases need to be configured? Can they both be used? -> You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which can affects the historical chart data. +1. Do both the time series databases need to be configured? Can they both be used? + + > You don't need to configure all of them, you can choose one of them. Use the enable parameter to control whether it is used or not. You can also install and configure neither, which can affects the historical chart data. diff --git a/home/versioned_docs/version-v1.5.x/template.md b/home/versioned_docs/version-v1.5.x/template.md index 4bdf785e588..f4b2743be26 100644 --- a/home/versioned_docs/version-v1.5.x/template.md +++ b/home/versioned_docs/version-v1.5.x/template.md @@ -4,27 +4,28 @@ title: Monitoring Template Here sidebar_label: Monitoring Template --- -> Apache HertzBeat (incubating) is an open source, real-time monitoring tool with custom-monitor and agentLess. - -> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. +> Apache HertzBeat (incubating) is an open source, real-time monitoring tool with custom-monitor and agentLess. +> +> We make protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, and you only need to configure `YML` online to collect any metrics you want. > Do you believe that you can immediately adapt a new monitoring type such as K8s or Docker just by configuring online? -Here is the architecture. +Here is the architecture. ![hertzBeat](/img/docs/hertzbeat-arch.png) -**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates, and users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** +**We define all monitoring collection types (mysql, website, jvm, k8s) as yml templates** +**Users can import these templates into the hertzbeat system to support corresponding types of monitoring, which is very convenient!** ![](/img/docs/advanced/extend-point-1.png) **Welcome everyone to contribute your customized general monitoring type YML template during use. The available templates are as follows:** -### Application service monitoring +### Application service monitoring  👉 [Website monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-website.yml)
- 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
- 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
- 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
+ 👉 [HTTP API](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-api.yml)
+ 👉 [PING Connectivity](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ping.yml)
+ 👉 [Port Telnet](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-port.yml)
 👉 [Full site monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-fullsite.yml)
 👉 [SSL Cert monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ssl_cert.yml)
 👉 [JVM monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-jvm.yml)
@@ -32,7 +33,7 @@ Here is the architecture.  👉 [SpringBoot3.0](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-springboot3.yml)
 👉 [FTP Server](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-ftp.yml)
-### Database monitoring +### Database monitoring  👉 [MYSQL database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mysql.yml)
 👉 [MariaDB database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-mariadb.yml)
@@ -49,7 +50,7 @@ Here is the architecture.  👉 [Redis Sentinel database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_sentinel.yml)
 👉 [Redis Cluster database monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-redis_cluster.yml)
-### Operating system monitoring +### Operating system monitoring  👉 [Linux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-linux.yml)
 👉 [Windows operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-windows.yml)
@@ -64,7 +65,6 @@ Here is the architecture.  👉 [AlmaLinux operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-almalinux.yml)
 👉 [Debian operating system monitoring](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-debian.yml)
- ### Middleware monitoring  👉 [Zookeeper](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-zookeeper.yml)
@@ -78,13 +78,12 @@ Here is the architecture.  👉 [Flink](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-flink.yml)
 👉 [Nacos](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-nacos.yml)
- ### CloudNative monitoring  👉 [Docker](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-docker.yml)
 👉 [Kubernetes](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-kubernetes.yml)
-### Network monitoring +### Network monitoring  👉 [CiscoSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-cisco_switch.yml)
 👉 [HpeSwitch](https://raw.githubusercontent.com/apache/hertzbeat/master/manager/src/main/resources/define/app-hpe_switch.yml)
diff --git a/home/versioned_sidebars/version-v1.3.x-sidebars.json b/home/versioned_sidebars/version-v1.3.x-sidebars.json deleted file mode 100644 index df03eff4f6d..00000000000 --- a/home/versioned_sidebars/version-v1.3.x-sidebars.json +++ /dev/null @@ -1,191 +0,0 @@ -{ - "docs": [ - { - "type": "category", - "label": "quickstart", - "items": [ - "introduce", - { - "type": "link", - "label": "Cloud Service", - "href": "https://console.tancloud.cn" - }, - "start/quickstart", - "start/docker-deploy", - "start/package-deploy", - { - "type": "link", - "label": "Install via HuaweiCloud", - "href": "https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - }, - "start/rainbond-deploy", - "start/iotdb-init", - "start/tdengine-init", - "start/greptime-init", - "start/influxdb-init", - "start/mysql-change", - "start/postgresql-change", - "start/account-modify", - "start/custom-config", - "start/ssl-cert-practice" - ] - }, - { - "type": "category", - "label": "custom", - "items": [ - "advanced/extend-point", - "advanced/extend-tutorial", - { - "type": "category", - "label": "http", - "items": [ - "advanced/extend-http", - "advanced/extend-http-default", - "advanced/extend-http-jsonpath", - "advanced/extend-http-example-hertzbeat", - "advanced/extend-http-example-token" - ] - }, - { - "type": "category", - "label": "jdbc", - "items": [ - "advanced/extend-jdbc" - ] - }, - { - "type": "category", - "label": "ssh", - "items": [ - "advanced/extend-ssh" - ] - }, - { - "type": "category", - "label": "jmx", - "items": [ - "advanced/extend-jmx" - ] - }, - { - "type": "category", - "label": "snmp", - "items": [ - "advanced/extend-snmp" - ] - } - ] - }, - { - "type": "doc", - "id": "template" - }, - { - "type": "category", - "label": "help", - "items": [ - "help/guide", - { - "type": "category", - "label": "service", - "items": [ - "help/website", - "help/api", - "help/ping", - "help/port", - "help/fullsite", - "help/ssl_cert", - "help/jvm", - "help/springboot2" - ] - }, - { - "type": "category", - "label": "database", - "items": [ - "help/mysql", - "help/mariadb", - "help/postgresql", - "help/sqlserver", - "help/oracle", - "help/dm", - "help/opengauss", - "help/iotdb", - "help/redis" - ] - }, - { - "type": "category", - "label": "os", - "items": [ - "help/linux", - "help/windows", - "help/ubuntu", - "help/centos" - ] - }, - { - "type": "category", - "label": "mid", - "items": [ - "help/zookeeper", - "help/kafka", - "help/tomcat", - "help/shenyu", - "help/dynamic_tp", - "help/rabbitmq", - "help/activemq", - "help/jetty", - "help/hadoop" - ] - }, - { - "type": "category", - "label": "cloud-native", - "items": [ - "help/docker", - "help/kubernetes" - ] - }, - { - "type": "category", - "label": "threshold", - "items": [ - "help/alert_threshold", - "help/alert_threshold_expr" - ] - }, - { - "type": "category", - "label": "notice", - "items": [ - "help/alert_email", - "help/alert_webhook", - "help/alert_discord", - "help/alert_slack", - "help/alert_telegram", - "help/alert_wework", - "help/alert_dingtalk", - "help/alert_feishu", - "help/alert_console", - "help/alert_enterprise_wechat_app", - "help/alert_smn" - ] - }, - "help/issue" - ] - }, - { - "type": "category", - "label": "Others", - "items": [ - "others/developer", - "others/contributing", - "others/contact", - "others/sponsor", - "others/resource" - ] - } - ] -} diff --git a/home/versioned_sidebars/version-v1.4.x-sidebars.json b/home/versioned_sidebars/version-v1.4.x-sidebars.json deleted file mode 100644 index 80a8853ee41..00000000000 --- a/home/versioned_sidebars/version-v1.4.x-sidebars.json +++ /dev/null @@ -1,241 +0,0 @@ -{ - "docs": [ - { - "type": "category", - "label": "quickstart", - "items": [ - "introduce", - { - "type": "link", - "label": "Cloud Service", - "href": "https://console.tancloud.cn" - }, - "start/quickstart", - "start/docker-deploy", - "start/package-deploy", - { - "type": "link", - "label": "Install via HuaweiCloud", - "href": "https://marketplace.huaweicloud.com/contents/0477015c-ad63-4522-a308-816861769f0a#productid=OFFI863735781612109824" - }, - "start/rainbond-deploy", - { - "type": "link", - "label": "Install via Helm", - "href": "https://artifacthub.io/packages/helm/hertzbeat/hertzbeat" - }, - "start/upgrade", - "start/victoria-metrics-init", - "start/iotdb-init", - "start/tdengine-init", - "start/greptime-init", - "start/influxdb-init", - "start/mysql-change", - "start/postgresql-change", - "start/account-modify", - "start/custom-config", - "start/ssl-cert-practice" - ] - }, - { - "type": "category", - "label": "custom", - "items": [ - "advanced/extend-point", - "advanced/extend-tutorial", - { - "type": "category", - "label": "http", - "items": [ - "advanced/extend-http", - "advanced/extend-http-default", - "advanced/extend-http-jsonpath", - "advanced/extend-http-example-hertzbeat", - "advanced/extend-http-example-token" - ] - }, - { - "type": "category", - "label": "jdbc", - "items": [ - "advanced/extend-jdbc" - ] - }, - { - "type": "category", - "label": "ssh", - "items": [ - "advanced/extend-ssh" - ] - }, - { - "type": "category", - "label": "jmx", - "items": [ - "advanced/extend-jmx" - ] - }, - { - "type": "category", - "label": "snmp", - "items": [ - "advanced/extend-snmp" - ] - }, - { - "type": "category", - "label": "push", - "items": [ - "advanced/extend-push" - ] - } - ] - }, - { - "type": "doc", - "id": "template" - }, - { - "type": "category", - "label": "help", - "items": [ - "help/guide", - { - "type": "category", - "label": "service", - "items": [ - "help/website", - "help/api", - "help/ping", - "help/port", - "help/fullsite", - "help/ssl_cert", - "help/nginx", - "help/pop3", - "help/smtp", - "help/ntp" - ] - }, - { - "type": "category", - "label": "program", - "items": [ - "help/jvm", - "help/springboot2", - "help/dynamic_tp" - ] - }, - { - "type": "category", - "label": "database", - "items": [ - "help/mysql", - "help/mariadb", - "help/postgresql", - "help/sqlserver", - "help/oracle", - "help/dm", - "help/opengauss", - "help/nebulaGraph" - ] - }, - { - "type": "category", - "label": "cache", - "items": [ - "help/redis", - "help/memcached" - ] - }, - { - "type": "category", - "label": "os", - "items": [ - "help/linux", - "help/windows", - "help/ubuntu", - "help/centos" - ] - }, - { - "type": "category", - "label": "mid", - "items": [ - "help/zookeeper", - "help/shenyu", - "help/rabbitmq", - "help/activemq", - "help/spring_gateway" - ] - }, - { - "type": "category", - "label": "bigdata", - "items": [ - "help/spark", - "help/doris_be", - "help/doris_fe", - "help/hadoop", - "help/iotdb", - "help/hive", - "help/airflow" - ] - }, - { - "type": "category", - "label": "webserver", - "items": [ - "help/tomcat", - "help/jetty" - ] - }, - { - "type": "category", - "label": "cloud-native", - "items": [ - "help/docker", - "help/kubernetes" - ] - }, - { - "type": "category", - "label": "threshold", - "items": [ - "help/alert_threshold", - "help/alert_threshold_expr" - ] - }, - { - "type": "category", - "label": "notice", - "items": [ - "help/alert_email", - "help/alert_webhook", - "help/alert_discord", - "help/alert_slack", - "help/alert_telegram", - "help/alert_wework", - "help/alert_dingtalk", - "help/alert_feishu", - "help/alert_console", - "help/alert_enterprise_wechat_app", - "help/alert_smn" - ] - }, - "help/issue" - ] - }, - { - "type": "category", - "label": "Others", - "items": [ - "others/media", - "others/developer", - "others/contributing", - "others/contact", - "others/sponsor", - "others/resource" - ] - } - ] -} diff --git a/home/versions.json b/home/versions.json index 25ff5db779c..b0190cee534 100644 --- a/home/versions.json +++ b/home/versions.json @@ -1,5 +1,3 @@ [ - "v1.5.x", - "v1.4.x", - "v1.3.x" + "v1.5.x" ] diff --git a/manager/pom.xml b/manager/pom.xml index 2e0e1120445..34debeb7894 100644 --- a/manager/pom.xml +++ b/manager/pom.xml @@ -29,14 +29,6 @@ true - 3.2.0 - 3.3.0 - 1.9.22 - 1.1.0 - 1.0 - 4.3.0 - 3.1.37 - 3.23.5 diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarm.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarm.java index 101a4c44034..faa483e22f8 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarm.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarm.java @@ -29,10 +29,11 @@ import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.common.queue.CommonDataQueue; import org.apache.hertzbeat.manager.service.NoticeConfigService; -import org.apache.hertzbeat.manager.service.PluginService; import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; import org.apache.hertzbeat.manager.support.exception.IgnoreException; +import org.apache.hertzbeat.plugin.PostAlertPlugin; import org.apache.hertzbeat.plugin.Plugin; +import org.apache.hertzbeat.plugin.runner.PluginRunner; import org.springframework.beans.factory.InitializingBean; import org.springframework.stereotype.Component; @@ -50,18 +51,18 @@ public class DispatcherAlarm implements InitializingBean { private final NoticeConfigService noticeConfigService; private final AlertStoreHandler alertStoreHandler; private final Map alertNotifyHandlerMap; - private final PluginService pluginService; + private final PluginRunner pluginRunner; public DispatcherAlarm(AlerterWorkerPool workerPool, CommonDataQueue dataQueue, NoticeConfigService noticeConfigService, AlertStoreHandler alertStoreHandler, - List alertNotifyHandlerList, PluginService pluginService) { + List alertNotifyHandlerList, PluginRunner pluginRunner) { this.workerPool = workerPool; this.dataQueue = dataQueue; this.noticeConfigService = noticeConfigService; this.alertStoreHandler = alertStoreHandler; - this.pluginService = pluginService; + this.pluginRunner = pluginRunner; alertNotifyHandlerMap = Maps.newHashMapWithExpectedSize(alertNotifyHandlerList.size()); alertNotifyHandlerList.forEach(r -> alertNotifyHandlerMap.put(r.type(), r)); } @@ -104,7 +105,7 @@ public boolean sendNoticeMsg(NoticeReceiver receiver, NoticeTemplate noticeTempl } private NoticeReceiver getOneReceiverById(Long id) { - return noticeConfigService.getOneReceiverById(id); + return noticeConfigService.getReceiverById(id); } private NoticeTemplate getOneTemplateById(Long id) { @@ -130,11 +131,15 @@ public void run() { alertStoreHandler.store(alert); // Notice distribution sendNotify(alert); - // Execute the plugin if enable - pluginService.pluginExecute(Plugin.class, plugin -> plugin.alert(alert)); + // Execute the plugin if enable (Compatible with old version plugins, will be removed in later versions) + pluginRunner.pluginExecute(Plugin.class, plugin -> plugin.alert(alert)); + // Execute the plugin if enable with params + pluginRunner.pluginExecute(PostAlertPlugin.class, (afterAlertPlugin, pluginContext) -> afterAlertPlugin.execute(alert, pluginContext)); + } } catch (IgnoreException ignored) { } catch (InterruptedException e) { + Thread.currentThread().interrupt(); log.error(e.getMessage()); } catch (Exception exception) { log.error(exception.getMessage(), exception); @@ -143,21 +148,19 @@ public void run() { } private void sendNotify(Alert alert) { - matchNoticeRulesByAlert(alert).ifPresent(noticeRules -> { - noticeRules.forEach(rule -> { - workerPool.executeNotify(() -> { - rule.getReceiverId() - .forEach(receiverId -> { - try { - sendNoticeMsg(getOneReceiverById(receiverId), - getOneTemplateById(rule.getTemplateId()), alert); - } catch (AlertNoticeException e) { - log.warn("DispatchTask sendNoticeMsg error, message: {}", e.getMessage()); - } - }); - }); + matchNoticeRulesByAlert(alert).ifPresent(noticeRules -> noticeRules.forEach(rule -> { + workerPool.executeNotify(() -> { + rule.getReceiverId() + .forEach(receiverId -> { + try { + sendNoticeMsg(getOneReceiverById(receiverId), + getOneTemplateById(rule.getTemplateId()), alert); + } catch (AlertNoticeException e) { + log.warn("DispatchTask sendNoticeMsg error, message: {}", e.getMessage()); + } + }); }); - }); + })); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/AbstractAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/AbstractAlertNotifyHandlerImpl.java index 43f9b88de13..4ba10283cc5 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/AbstractAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/AbstractAlertNotifyHandlerImpl.java @@ -18,6 +18,7 @@ package org.apache.hertzbeat.manager.component.alerter.impl; import freemarker.cache.StringTemplateLoader; +import freemarker.core.TemplateClassResolver; import freemarker.template.Configuration; import freemarker.template.TemplateException; import java.io.IOException; @@ -37,7 +38,6 @@ import org.apache.hertzbeat.common.support.event.SystemConfigChangeEvent; import org.apache.hertzbeat.common.util.ResourceBundleUtil; import org.apache.hertzbeat.manager.component.alerter.AlertNotifyHandler; -import org.apache.hertzbeat.manager.service.NoticeConfigService; import org.springframework.context.event.EventListener; import org.springframework.ui.freemarker.FreeMarkerTemplateUtils; import org.springframework.web.client.RestTemplate; @@ -55,8 +55,6 @@ abstract class AbstractAlertNotifyHandlerImpl implements AlertNotifyHandler { protected RestTemplate restTemplate; @Resource protected AlerterProperties alerterProperties; - @Resource - protected NoticeConfigService noticeConfigService; protected String renderContent(NoticeTemplate noticeTemplate, Alert alert) throws TemplateException, IOException { @@ -64,6 +62,7 @@ protected String renderContent(NoticeTemplate noticeTemplate, Alert alert) throw freemarker.template.Template templateRes; Configuration cfg = new Configuration(Configuration.VERSION_2_3_0); cfg.setNumberFormat(NUMBER_FORMAT); + cfg.setNewBuiltinClassResolver(TemplateClassResolver.SAFER_RESOLVER); Map model = new HashMap<>(16); model.put("title", bundle.getString("alerter.notify.title")); @@ -116,6 +115,42 @@ protected String renderContent(NoticeTemplate noticeTemplate, Alert alert) throw return template.replaceAll("((\r\n)|\n)[\\s\t ]*(\\1)+", "$1"); } + protected String escapeJsonStr(String jsonStr){ + if (jsonStr == null) { + return null; + } + + StringBuilder sb = new StringBuilder(); + for (char c : jsonStr.toCharArray()) { + switch (c) { + case '"': + sb.append("\\\""); + break; + case '\\': + sb.append("\\\\"); + break; + case '\b': + sb.append("\\b"); + break; + case '\f': + sb.append("\\f"); + break; + case '\n': + sb.append("\\n"); + break; + case '\r': + sb.append("\\r"); + break; + case '\t': + sb.append("\\t"); + break; + default: + sb.append(c); + } + } + return sb.toString(); + } + @EventListener(SystemConfigChangeEvent.class) public void onEvent(SystemConfigChangeEvent event) { log.info("{} receive system config change event: {}.", this.getClass().getName(), event.getSource()); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImpl.java index 2ab070a5b96..b393ee6ba77 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImpl.java @@ -69,6 +69,9 @@ public class EmailAlertNotifyHandlerImpl implements AlertNotifyHandler { @Value("${spring.mail.properties.mail.smtp.ssl.enable:true}") private boolean sslEnable = true; + @Value("${spring.mail.properties.mail.smtp.starttls.enable:false}") + private boolean starttlsEnable = false; + private final GeneralConfigDao generalConfigDao; private final ObjectMapper objectMapper; @@ -97,6 +100,7 @@ public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert a sender.setPassword(emailNoticeSenderConfig.getEmailPassword()); Properties props = sender.getJavaMailProperties(); props.put("mail.smtp.ssl.enable", emailNoticeSenderConfig.isEmailSsl()); + props.put("mail.smtp.starttls.enable", emailNoticeSenderConfig.isEmailStarttls()); fromUsername = emailNoticeSenderConfig.getEmailUsername(); useDatabase = true; } @@ -109,6 +113,7 @@ public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert a sender.setPassword(password); Properties props = sender.getJavaMailProperties(); props.put("mail.smtp.ssl.enable", sslEnable); + props.put("mail.smtp.starttls.enable", starttlsEnable); } } catch (Exception e) { log.error("Type not found {}", e.getMessage()); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImpl.java index 0ee227fdb33..6c5c4ceaaae 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImpl.java @@ -21,7 +21,6 @@ import java.util.ArrayList; import java.util.Collections; import java.util.List; -import java.util.stream.Collectors; import lombok.Data; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; @@ -85,7 +84,7 @@ public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert a atContent.setUserId(userID); return atContent; }) - .collect(Collectors.toList()); + .toList(); contentList.addAll(atContents); } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImpl.java index 763e8fdd2e5..aea5dcc40c9 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImpl.java @@ -87,7 +87,7 @@ public byte type() { } @Data - private static class GotifyWebHookDto { + protected static class GotifyWebHookDto { private String title; private String message; private Extras extras; diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImpl.java index 87056875b03..51935b19d45 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImpl.java @@ -79,7 +79,7 @@ public byte type() { } @Data - private static class ServerChanWebHookDto { + protected static class ServerChanWebHookDto { private static final String MARKDOWN = "markdown"; /** diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImpl.java index f0ab01c2d30..c80bbc5d90c 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImpl.java @@ -38,11 +38,11 @@ @Slf4j @ConditionalOnProperty("common.sms.tencent.app-id") final class SmsAlertNotifyHandlerImpl extends AbstractAlertNotifyHandlerImpl { - + private final TencentSmsClient tencentSmsClient; - + private final ResourceBundle bundle = ResourceBundleUtil.getBundle("alerter"); - + @Override public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert alert) { // SMS notification @@ -60,7 +60,7 @@ public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert a throw new AlertNoticeException("[Sms Notify Error] " + e.getMessage()); } } - + @Override public byte type() { return 0; diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAlertNotifyHandlerImpl.java index 71f4d336181..27effc2fc4c 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAlertNotifyHandlerImpl.java @@ -26,8 +26,10 @@ import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.http.HttpHeaders; import org.slf4j.Logger; import org.slf4j.LoggerFactory; +import org.springframework.http.MediaType; /** * Send alarm information through WeChat @@ -59,8 +61,7 @@ private String getAccessToken() throws Exception { .GET() .build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); - JsonParser parser = new JsonParser(); - JsonObject jsonObject = parser.parse(response.body()).getAsJsonObject(); + JsonObject jsonObject = JsonParser.parseString(response.body()).getAsJsonObject(); String accessToken = null; if (jsonObject.has(ACCESS_TOKEN)) { accessToken = jsonObject.get(ACCESS_TOKEN).getAsString(); @@ -96,7 +97,7 @@ private void sendMessage(String accessToken, String messageContent) throws Excep HttpClient client = HttpClient.newHttpClient(); HttpRequest request = HttpRequest.newBuilder() .uri(new URI(SEND_MESSAGE_URL + accessToken)) - .header("Content-Type", "application/json") + .header(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) .POST(HttpRequest.BodyPublishers.ofString(messageContent)) .build(); HttpResponse response = client.send(request, HttpResponse.BodyHandlers.ofString()); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImpl.java index 62e6ff38dca..6300b718eab 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImpl.java @@ -123,7 +123,7 @@ public byte type() { @Data @AllArgsConstructor @NoArgsConstructor - private static class WeChatAppReq { + protected static class WeChatAppReq { @JsonProperty(value = "errcode") private Integer errCode; @@ -139,7 +139,7 @@ private static class WeChatAppReq { @Builder @AllArgsConstructor @NoArgsConstructor - private static class WeChatAppDTO { + protected static class WeChatAppDTO { /** * markdown format @@ -172,7 +172,7 @@ private static class WeChatAppDTO { private MarkdownDTO markdown; @Data - private static class MarkdownDTO { + protected static class MarkdownDTO { /** * message content */ @@ -180,7 +180,7 @@ private static class MarkdownDTO { } @Data - private static class TextDTO { + protected static class TextDTO { /** * message content */ diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImpl.java index b4db3b0773c..7f7b793cb25 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImpl.java @@ -47,6 +47,7 @@ public void send(NoticeReceiver receiver, NoticeTemplate noticeTemplate, Alert a // fix null pointer exception filterInvalidTags(alert); + alert.setContent(escapeJsonStr(alert.getContent())); String webhookJson = renderContent(noticeTemplate, alert); webhookJson = webhookJson.replace(",\n }", "\n }"); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/component/status/CalculateStatus.java b/manager/src/main/java/org/apache/hertzbeat/manager/component/status/CalculateStatus.java index 828aa495c75..ec37ea966bb 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/component/status/CalculateStatus.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/component/status/CalculateStatus.java @@ -37,6 +37,7 @@ import java.util.concurrent.ThreadFactory; import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.manager.Monitor; import org.apache.hertzbeat.common.entity.manager.StatusPageComponent; @@ -51,7 +52,6 @@ import org.apache.hertzbeat.manager.dao.StatusPageOrgDao; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; /** * calculate component status for status page @@ -115,7 +115,7 @@ private void startCalculate() { ListJoin tagJoin = root .join(root.getModel() .getList("tags", Tag.class), JoinType.LEFT); - if (StringUtils.hasText(tagItem.getValue())) { + if (StringUtils.isNotBlank(tagItem.getValue())) { andList.add(criteriaBuilder.equal(tagJoin.get("name"), tagItem.getName())); andList.add(criteriaBuilder.equal(tagJoin.get("tagValue"), tagItem.getValue())); } else { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/AiProperties.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/AiProperties.java new file mode 100644 index 00000000000..8725d3520a2 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/AiProperties.java @@ -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.hertzbeat.manager.config; + +import lombok.Data; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.springframework.boot.context.properties.ConfigurationProperties; +import org.springframework.context.annotation.Configuration; + +/** + * AiProperties + */ + +@Data +@Configuration +@ConfigurationProperties(prefix = + ConfigConstants.FunctionModuleConstants.AI) +public class AiProperties { + + /** + * AI Type: zhiPu, alibabaAi, kimiAi, sparkDesk + */ + private String type; + + /** + * Model name: glm-4, qwen-turboo, moonshot-v1-8k, generalv3.5 + */ + private String model; + + /** + * API key + */ + private String apiKey; + + /** + * At present, only IFLYTEK large model needs to be filled in + */ + private String apiSecret; + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/AngularErrorViewResolver.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/AngularErrorViewResolver.java index ad3f3a98553..15d9a737077 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/AngularErrorViewResolver.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/AngularErrorViewResolver.java @@ -33,6 +33,7 @@ import org.springframework.core.io.Resource; import org.springframework.http.HttpStatus; import org.springframework.http.MediaType; +import org.springframework.lang.NonNull; import org.springframework.util.Assert; import org.springframework.util.FileCopyUtils; import org.springframework.web.servlet.ModelAndView; @@ -134,7 +135,7 @@ public String getContentType() { } @Override - public void render(Map model, HttpServletRequest request, HttpServletResponse response) + public void render(Map model, @NonNull HttpServletRequest request, HttpServletResponse response) throws Exception { response.setContentType(getContentType()); FileCopyUtils.copy(this.resource.getInputStream(), response.getOutputStream()); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/CommonCommandLineRunner.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/CommonCommandLineRunner.java index 71fc96023d9..f1cac1a2b18 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/CommonCommandLineRunner.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/CommonCommandLineRunner.java @@ -24,6 +24,7 @@ import java.util.Locale; import java.util.Random; import java.util.TimeZone; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.manager.GeneralConfig; import org.apache.hertzbeat.common.util.TimeZoneUtil; @@ -40,7 +41,6 @@ import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; /** * Common CommandLineRunner class @@ -106,7 +106,7 @@ public void run(String... args) throws Exception { if (DEFAULT_JWT_SECRET.equals(currentJwtSecret)) { // use the random jwt secret SystemSecret systemSecret = systemSecretService.getConfig(); - if (systemSecret == null || !StringUtils.hasText(systemSecret.getJwtSecret())) { + if (systemSecret == null || StringUtils.isBlank(systemSecret.getJwtSecret())) { char[] chars = DEFAULT_JWT_SECRET.toCharArray(); Random rand = new Random(); for (int i = 0; i < chars.length; i++) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/HeaderRequestInterceptor.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/HeaderRequestInterceptor.java index 7c8cf348c82..08a92528f3b 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/HeaderRequestInterceptor.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/HeaderRequestInterceptor.java @@ -24,6 +24,7 @@ import org.springframework.http.client.ClientHttpRequestExecution; import org.springframework.http.client.ClientHttpRequestInterceptor; import org.springframework.http.client.ClientHttpResponse; +import org.springframework.lang.NonNull; /** * Rest Template interceptor adds request header information @@ -31,7 +32,7 @@ public class HeaderRequestInterceptor implements ClientHttpRequestInterceptor { @Override - public ClientHttpResponse intercept(HttpRequest request, byte[] body, ClientHttpRequestExecution execution) + public ClientHttpResponse intercept(HttpRequest request, @NonNull byte[] body, @NonNull ClientHttpRequestExecution execution) throws IOException { // Send json by default if (request.getHeaders().getContentType() == null) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/JacksonConfig.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/JacksonConfig.java index 820f4e35c06..cf437b09782 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/JacksonConfig.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/JacksonConfig.java @@ -22,8 +22,10 @@ import java.text.SimpleDateFormat; import java.util.TimeZone; import lombok.extern.slf4j.Slf4j; +import org.springframework.boot.autoconfigure.jackson.Jackson2ObjectMapperBuilderCustomizer; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; +import org.springframework.http.converter.json.Jackson2ObjectMapperBuilder; /** * jackson config @@ -31,15 +33,23 @@ @Slf4j @Configuration public class JacksonConfig { + @Bean - public ObjectMapper objectMapper() { - JavaTimeModule javaTimeModule = new JavaTimeModule(); - final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"); - simpleDateFormat.setTimeZone(TimeZone.getDefault()); + public Jackson2ObjectMapperBuilderCustomizer customizer() { + return builder -> { + JavaTimeModule javaTimeModule = new JavaTimeModule(); + final SimpleDateFormat simpleDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"); + simpleDateFormat.setTimeZone(TimeZone.getDefault()); - return new ObjectMapper() - .registerModule(javaTimeModule) - .setTimeZone(TimeZone.getDefault()) - .setDateFormat(simpleDateFormat); + builder.modules(javaTimeModule) + .timeZone(TimeZone.getDefault()) + .dateFormat(simpleDateFormat); + }; } + + @Bean + public ObjectMapper objectMapper(Jackson2ObjectMapperBuilder builder) { + return builder.build(); + } + } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/RestTemplateConfig.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/RestTemplateConfig.java index d07735c2aee..d856c1d9b78 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/RestTemplateConfig.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/RestTemplateConfig.java @@ -19,7 +19,9 @@ import java.util.Collections; import java.util.concurrent.TimeUnit; +import okhttp3.ConnectionPool; import okhttp3.OkHttpClient; +import org.apache.hertzbeat.common.constants.NetworkConstants; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; import org.springframework.http.client.ClientHttpRequestFactory; @@ -42,12 +44,18 @@ public RestTemplate restTemplate(ClientHttpRequestFactory factory) { @Bean public ClientHttpRequestFactory simpleClientHttpRequestFactory() { - OkHttpClient client = new OkHttpClient.Builder() - .connectTimeout(15, TimeUnit.SECONDS) - .readTimeout(20, TimeUnit.SECONDS) - .writeTimeout(20, TimeUnit.SECONDS) - .build(); - return new OkHttp3ClientHttpRequestFactory(client); + + return new OkHttp3ClientHttpRequestFactory( + new OkHttpClient.Builder() + .readTimeout(NetworkConstants.HttpClientConstants.READ_TIME_OUT, TimeUnit.SECONDS) + .writeTimeout(NetworkConstants.HttpClientConstants.WRITE_TIME_OUT, TimeUnit.SECONDS) + .connectTimeout(NetworkConstants.HttpClientConstants.CONNECT_TIME_OUT, TimeUnit.SECONDS) + .connectionPool(new ConnectionPool( + NetworkConstants.HttpClientConstants.MAX_IDLE_CONNECTIONS, + NetworkConstants.HttpClientConstants.KEEP_ALIVE_TIMEOUT, + TimeUnit.SECONDS) + ).build() + ); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/config/StatusProperties.java b/manager/src/main/java/org/apache/hertzbeat/manager/config/StatusProperties.java index cc41b91e8b7..7a2d9daa474 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/config/StatusProperties.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/config/StatusProperties.java @@ -17,14 +17,20 @@ package org.apache.hertzbeat.manager.config; +import lombok.Getter; +import lombok.Setter; +import org.apache.hertzbeat.common.constants.ConfigConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * status page properties */ -@ConfigurationProperties(prefix = "status") + +@Getter +@Setter @Component +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.STATUS) public class StatusProperties { /** @@ -32,17 +38,11 @@ public class StatusProperties { */ private CalculateProperties calculate; - public CalculateProperties getCalculate() { - return calculate; - } - - public void setCalculate(CalculateProperties calculate) { - this.calculate = calculate; - } - /** * calculate component status properties */ + @Getter + @Setter public static class CalculateProperties { /** @@ -50,13 +50,6 @@ public static class CalculateProperties { */ private Integer interval = 300; - public Integer getInterval() { - return interval; - } - - public void setInterval(Integer interval) { - this.interval = interval; - } } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AccountController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AccountController.java index 54fdd517e82..f01731cab0a 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AccountController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AccountController.java @@ -19,25 +19,19 @@ import static org.apache.hertzbeat.common.constants.CommonConstants.MONITOR_LOGIN_FAILED_CODE; import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; -import com.usthe.sureness.provider.SurenessAccount; -import com.usthe.sureness.provider.SurenessAccountProvider; -import com.usthe.sureness.provider.ducument.DocumentAccountProvider; -import com.usthe.sureness.util.JsonWebTokenUtil; -import com.usthe.sureness.util.Md5Util; -import io.jsonwebtoken.Claims; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; import jakarta.validation.Valid; import jakarta.validation.constraints.NotNull; -import java.util.HashMap; -import java.util.List; import java.util.Map; +import javax.naming.AuthenticationException; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.dto.Message; -import org.apache.hertzbeat.common.util.JsonUtil; import org.apache.hertzbeat.manager.pojo.dto.LoginDto; import org.apache.hertzbeat.manager.pojo.dto.RefreshTokenResponse; +import org.apache.hertzbeat.manager.service.AccountService; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -50,49 +44,22 @@ * Authentication registration TOKEN management API */ @Tag(name = "Auth Manage API") -@RestController() +@RestController @RequestMapping(value = "/api/account/auth", produces = {APPLICATION_JSON_VALUE}) @Slf4j public class AccountController { - /** - * Token validity time in seconds - */ - private static final long PERIOD_TIME = 3600L; - /** - * account data provider - */ - private SurenessAccountProvider accountProvider = new DocumentAccountProvider(); + + @Autowired + private AccountService accountService; @PostMapping("/form") @Operation(summary = "Account password login to obtain associated user information", description = "Account password login to obtain associated user information") public ResponseEntity>> authGetToken(@Valid @RequestBody LoginDto loginDto) { - SurenessAccount account = accountProvider.loadAccount(loginDto.getIdentifier()); - if (account == null || account.getPassword() == null) { - return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Incorrect Account or Password")); - } else { - String password = loginDto.getCredential(); - if (account.getSalt() != null) { - password = Md5Util.md5(password + account.getSalt()); - } - if (!account.getPassword().equals(password)) { - return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Incorrect Account or Password")); - } - if (account.isDisabledAccount() || account.isExcessiveAttempts()) { - return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Expired or Illegal Account")); - } + try { + return ResponseEntity.ok(Message.success(accountService.authGetToken(loginDto))); + } catch (AuthenticationException e) { + return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, e.getMessage())); } - // Get the roles the user has - rbac - List roles = account.getOwnRoles(); - // Issue TOKEN - String issueToken = JsonWebTokenUtil.issueJwt(loginDto.getIdentifier(), PERIOD_TIME, roles); - Map customClaimMap = new HashMap<>(1); - customClaimMap.put("refresh", true); - String issueRefresh = JsonWebTokenUtil.issueJwt(loginDto.getIdentifier(), PERIOD_TIME << 5, customClaimMap); - Map resp = new HashMap<>(2); - resp.put("token", issueToken); - resp.put("refreshToken", issueRefresh); - resp.put("role", JsonUtil.toJson(roles)); - return ResponseEntity.ok(Message.success(resp)); } @GetMapping("/refresh/{refreshToken}") @@ -101,30 +68,12 @@ public ResponseEntity> refreshToken( @Parameter(description = "Refresh TOKEN", example = "xxx") @PathVariable("refreshToken") @NotNull final String refreshToken) { try { - Claims claims = JsonWebTokenUtil.parseJwt(refreshToken); - String userId = String.valueOf(claims.getSubject()); - boolean isRefresh = claims.get("refresh", Boolean.class); - if (userId == null || !isRefresh) { - return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Illegal Refresh Token")); - } - SurenessAccount account = accountProvider.loadAccount(userId); - if (account == null) { - return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Not Exists This Token Mapping Account")); - } - List roles = account.getOwnRoles(); - String issueToken = issueToken(userId, roles, PERIOD_TIME); - String issueRefresh = issueToken(userId, roles, PERIOD_TIME << 5); - RefreshTokenResponse response = new RefreshTokenResponse(issueToken, issueRefresh); - return ResponseEntity.ok(Message.success(response)); + return ResponseEntity.ok(Message.success(accountService.refreshToken(refreshToken))); + } catch (AuthenticationException e) { + return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, e.getMessage())); } catch (Exception e) { log.error("Exception occurred during token refresh: {}", e.getClass().getName(), e); return ResponseEntity.ok(Message.fail(MONITOR_LOGIN_FAILED_CODE, "Refresh Token Expired or Error")); } } - - private String issueToken(String userId, List roles, long expirationMillis) { - Map customClaimMap = new HashMap<>(1); - customClaimMap.put("refresh", true); - return JsonWebTokenUtil.issueJwt(userId, expirationMillis, roles, customClaimMap); - } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AiController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AiController.java index eed6d631ad2..718d9c09410 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AiController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AiController.java @@ -21,18 +21,18 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import org.apache.hertzbeat.manager.service.AiService; -import org.apache.hertzbeat.manager.service.impl.AiServiceFactoryImpl; +import org.apache.hertzbeat.manager.config.AiProperties; +import org.apache.hertzbeat.manager.service.ai.AiService; +import org.apache.hertzbeat.manager.service.ai.factory.AiServiceFactoryImpl; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.beans.factory.annotation.Value; import org.springframework.http.codec.ServerSentEvent; +import org.springframework.util.Assert; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.RequestMapping; import org.springframework.web.bind.annotation.RequestParam; import org.springframework.web.bind.annotation.RestController; import reactor.core.publisher.Flux; - /** * AI Management API */ @@ -44,29 +44,23 @@ public class AiController { /** * AI beanFactory */ - @Autowired + @Autowired(required = false) private AiServiceFactoryImpl aiServiceFactory; - /** - * Types of artificial intelligence - */ - @Value("${ai.type:zhiPu}") - private String type; + @Autowired + private AiProperties aiProperties; /** * request AI * @param text request text - * @param currentlyDisabledType Currently disabled, later released * @return AI response */ @GetMapping(path = "/get", produces = {TEXT_EVENT_STREAM_VALUE}) @Operation(summary = "Artificial intelligence questions and Answers", description = "Artificial intelligence questions and Answers") - public Flux> requestAi(@Parameter(description = "Request text", example = "Who are you") @RequestParam("text") String text, - @Parameter(description = "Types of artificial intelligence", example = "zhiPu") @RequestParam(value = "type", required = false) String currentlyDisabledType) { - - AiService aiServiceImplBean = aiServiceFactory.getAiServiceImplBean(type); - + public Flux> requestAi(@Parameter(description = "Request text", example = "Who are you") @RequestParam("text") String text) { + Assert.notNull(aiServiceFactory, "please check that your type value is consistent with the documentation on the website"); + AiService aiServiceImplBean = aiServiceFactory.getAiServiceImplBean(aiProperties.getType()); return aiServiceImplBean.requestAi(text); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AppController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AppController.java index d3d98a95546..5472f0f39e2 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/AppController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/AppController.java @@ -25,6 +25,7 @@ import jakarta.validation.Valid; import java.util.List; import java.util.Locale; +import java.util.Map; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.common.entity.job.Job; import org.apache.hertzbeat.common.entity.manager.ParamDefine; @@ -155,6 +156,35 @@ public ResponseEntity>> queryAppsHierarchy( @Parameter(description = "en: language type", example = "zh-CN") @RequestParam(name = "lang", required = false) String lang) { + lang = getLang(lang); + List appHierarchies = appService.getAllAppHierarchy(lang); + return ResponseEntity.ok(Message.success(appHierarchies)); + } + + @GetMapping(path = "/hierarchy/{app}") + @Operation(summary = "Query all monitor metrics level, output in a hierarchical structure", description = "Query all monitor metrics level, output in a hierarchical structure") + public ResponseEntity>> queryAppsHierarchyByApp( + @Parameter(description = "en: language type", + example = "zh-CN") + @RequestParam(name = "lang", required = false) String lang, + @Parameter(description = "en: Monitoring type name", example = "api") @PathVariable("app") final String app) { + lang = getLang(lang); + List appHierarchies = appService.getAppHierarchy(app, lang); + return ResponseEntity.ok(Message.success(appHierarchies)); + } + + @GetMapping(path = "/defines") + @Operation(summary = "Query all monitor types", description = "Query all monitor types") + public ResponseEntity>> getAllAppDefines( + @Parameter(description = "en: language type", + example = "zh-CN") + @RequestParam(name = "lang", required = false) String lang) { + lang = getLang(lang); + Map allAppDefines = appService.getI18nApps(lang); + return ResponseEntity.ok(Message.success(allAppDefines)); + } + + private String getLang(@RequestParam(name = "lang", required = false) @Parameter(description = "en: language type", example = "zh-CN") String lang) { if (lang == null || lang.isEmpty()) { lang = "zh-CN"; } @@ -165,7 +195,6 @@ public ResponseEntity>> queryAppsHierarchy( } else { lang = "en-US"; } - List appHierarchies = appService.getAllAppHierarchy(lang); - return ResponseEntity.ok(Message.success(appHierarchies)); + return lang; } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/BulletinController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/BulletinController.java new file mode 100644 index 00000000000..a3cd5e0c910 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/BulletinController.java @@ -0,0 +1,144 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.apache.hertzbeat.common.constants.CommonConstants.FAIL_CODE; +import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; +import io.swagger.v3.oas.annotations.Operation; +import io.swagger.v3.oas.annotations.Parameter; +import jakarta.validation.Valid; +import java.util.List; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.entity.dto.Message; +import org.apache.hertzbeat.common.entity.manager.bulletin.Bulletin; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinDto; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinMetricsData; +import org.apache.hertzbeat.manager.service.BulletinService; +import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.http.ResponseEntity; +import org.springframework.web.bind.annotation.DeleteMapping; +import org.springframework.web.bind.annotation.GetMapping; +import org.springframework.web.bind.annotation.PathVariable; +import org.springframework.web.bind.annotation.PostMapping; +import org.springframework.web.bind.annotation.PutMapping; +import org.springframework.web.bind.annotation.RequestBody; +import org.springframework.web.bind.annotation.RequestMapping; +import org.springframework.web.bind.annotation.RequestParam; +import org.springframework.web.bind.annotation.RestController; + +/** + * Bulletin Controller + */ +@Slf4j +@RestController +@RequestMapping(value = "/api/bulletin", produces = {APPLICATION_JSON_VALUE}) +public class BulletinController { + + @Autowired + private BulletinService bulletinService; + + @Autowired + private RealTimeDataReader realTimeDataReader; + + /** + * add a new bulletin + */ + @PostMapping + public ResponseEntity> addNewBulletin(@Valid @RequestBody BulletinDto bulletinDto) { + try { + bulletinService.validate(bulletinDto); + bulletinService.addBulletin(bulletinDto); + } catch (Exception e) { + return ResponseEntity.ok(Message.fail(FAIL_CODE, "Add failed! " + e.getMessage())); + } + return ResponseEntity.ok(Message.success("Add success!")); + } + + /** + * edit a exist bulletin + */ + @PutMapping + public ResponseEntity> editBulletin(@Valid @RequestBody BulletinDto bulletinDto) { + try { + bulletinService.validate(bulletinDto); + bulletinService.editBulletin(bulletinDto); + } catch (Exception e) { + return ResponseEntity.ok(Message.fail(FAIL_CODE, "Add failed! " + e.getMessage())); + } + return ResponseEntity.ok(Message.success("Add success!")); + } + + /** + * edit a exist bulletin + */ + @GetMapping("/{name}") + public ResponseEntity> getBulletinByName(@Valid @PathVariable String name) { + try { + return ResponseEntity.ok(Message.success(bulletinService.getBulletinByName(name))); + } catch (Exception e) { + return ResponseEntity.ok(Message.fail(FAIL_CODE, "Add failed! " + e.getMessage())); + } + } + + /** + * get All Names + */ + @Operation(summary = "Get All Bulletin Names", description = "Get All Bulletin Names") + @GetMapping("/names") + public ResponseEntity>> getAllNames() { + List names = bulletinService.getAllNames(); + return ResponseEntity.ok(Message.success(names)); + } + + /** + * delete bulletin by name + */ + @Operation(summary = "Delete Bulletin by Name", description = "Delete Bulletin by Name") + @DeleteMapping + public ResponseEntity> deleteBulletin( + @Parameter(description = "Bulletin Name", example = "402372614668544") + @RequestParam List names) { + try { + bulletinService.deleteBulletinByName(names); + } catch (Exception e) { + return ResponseEntity.ok(Message.fail(FAIL_CODE, "Delete failed!" + e.getMessage())); + } + return ResponseEntity.ok(Message.success("Delete success!")); + } + + @GetMapping("/metrics") + @Operation(summary = "Query All Bulletin Real Time Metrics Data", description = "Query All Bulletin real-time metrics data of monitoring indicators") + public ResponseEntity> getAllMetricsData( + @RequestParam(name = "name") String name, + @RequestParam(defaultValue = "0", name = "pageIndex") int pageIndex, + @RequestParam(defaultValue = "10", name = "pageSize") int pageSize) { + if (!realTimeDataReader.isServerAvailable()) { + return ResponseEntity.ok(Message.fail(FAIL_CODE, "real time store not available")); + } + + Bulletin bulletin = bulletinService.getBulletinByName(name); + + BulletinMetricsData.BulletinMetricsDataBuilder contentBuilder = BulletinMetricsData.builder() + .name(bulletin.getName()); + BulletinMetricsData data = bulletinService.buildBulletinMetricsData(contentBuilder, bulletin); + return ResponseEntity.ok(Message.success(data)); + } + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/CollectorController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/CollectorController.java index 349191c2546..df31ef9d43e 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/CollectorController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/CollectorController.java @@ -21,21 +21,13 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.Predicate; -import java.util.HashMap; import java.util.List; import java.util.Map; -import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.dto.CollectorSummary; import org.apache.hertzbeat.common.entity.dto.Message; -import org.apache.hertzbeat.common.entity.manager.Collector; -import org.apache.hertzbeat.common.util.IpDomainUtil; -import org.apache.hertzbeat.manager.scheduler.netty.ManageServer; import org.apache.hertzbeat.manager.service.CollectorService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -56,9 +48,6 @@ public class CollectorController { @Autowired private CollectorService collectorService; - - @Autowired(required = false) - private ManageServer manageServer; @GetMapping @Operation(summary = "Get a list of collectors based on query filter items", @@ -67,21 +56,8 @@ public ResponseEntity>> getCollectors( @Parameter(description = "collector name", example = "tom") @RequestParam(required = false) final String name, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pagination", example = "8") @RequestParam(required = false) Integer pageSize) { - if (pageSize == null) { - pageSize = Integer.MAX_VALUE; - } - Specification specification = (root, query, criteriaBuilder) -> { - Predicate predicate = criteriaBuilder.conjunction(); - if (name != null && !name.isEmpty()) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); - predicate = criteriaBuilder.and(predicateName); - } - return predicate; - }; - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); - Page receivers = collectorService.getCollectors(specification, pageRequest); - Message> message = Message.success(receivers); - return ResponseEntity.ok(message); + Page receivers = collectorService.getCollectors(name, pageIndex, pageSize); + return ResponseEntity.ok(Message.success(receivers)); } @PutMapping("/online") @@ -89,10 +65,7 @@ public ResponseEntity>> getCollectors( public ResponseEntity> onlineCollector( @Parameter(description = "collector name", example = "demo-collector") @RequestParam(required = false) List collectors) { - if (collectors != null) { - collectors.forEach(collector -> - this.manageServer.getCollectorAndJobScheduler().onlineCollector(collector)); - } + collectorService.makeCollectorsOnline(collectors); return ResponseEntity.ok(Message.success("Online success")); } @@ -101,9 +74,7 @@ public ResponseEntity> onlineCollector( public ResponseEntity> offlineCollector( @Parameter(description = "collector name", example = "demo-collector") @RequestParam(required = false) List collectors) { - if (collectors != null) { - collectors.forEach(collector -> this.manageServer.getCollectorAndJobScheduler().offlineCollector(collector)); - } + collectorService.makeCollectorsOffline(collectors); return ResponseEntity.ok(Message.success("Offline success")); } @@ -121,14 +92,7 @@ public ResponseEntity> deleteCollector( public ResponseEntity>> generateCollectorDeployInfo( @Parameter(description = "collector name", example = "demo-collector") @PathVariable() String collector) { - if (this.collectorService.hasCollector(collector)) { - return ResponseEntity.ok(Message.fail(CommonConstants.FAIL_CODE, "There already has same collector name.")); - } - String host = IpDomainUtil.getLocalhostIp(); - Map maps = new HashMap<>(6); - maps.put("identity", collector); - maps.put("host", host); - return ResponseEntity.ok(Message.success(maps)); + return ResponseEntity.ok(Message.success(collectorService.generateCollectorDeployInfo(collector))); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/GeneralConfigController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/GeneralConfigController.java index c2857eeac0e..8747bc8b9d7 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/GeneralConfigController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/GeneralConfigController.java @@ -21,15 +21,12 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; +import jakarta.annotation.Resource; import jakarta.validation.constraints.NotNull; -import java.util.HashMap; -import java.util.List; -import java.util.Map; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; -import org.apache.hertzbeat.manager.service.GeneralConfigService; -import org.apache.hertzbeat.manager.service.impl.TemplateConfigServiceImpl; +import org.apache.hertzbeat.manager.service.ConfigService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -47,14 +44,9 @@ @Tag(name = "Alert sender Configuration API") @Slf4j public class GeneralConfigController { - private Map configServiceMap; + @Resource + private ConfigService configService; - public GeneralConfigController(List generalConfigServices) { - configServiceMap = new HashMap<>(8); - if (generalConfigServices != null) { - generalConfigServices.forEach(config -> configServiceMap.put(config.type(), config)); - } - } @PostMapping(path = "/{type}") @Operation(summary = "Save or update common config", description = "Save or update common config") @@ -62,11 +54,7 @@ public ResponseEntity> saveOrUpdateConfig( @Parameter(description = "Config Type", example = "email") @PathVariable("type") @NotNull final String type, @RequestBody Object config) { - GeneralConfigService configService = configServiceMap.get(type); - if (configService == null) { - throw new IllegalArgumentException("Not supported this config type: " + type); - } - configService.saveConfig(config); + configService.saveConfig(type, config); return ResponseEntity.ok(Message.success("Update config success")); } @@ -75,11 +63,7 @@ public ResponseEntity> saveOrUpdateConfig( public ResponseEntity> getConfig( @Parameter(description = "Config Type", example = "email") @PathVariable("type") @NotNull final String type) { - GeneralConfigService configService = configServiceMap.get(type); - if (configService == null) { - throw new IllegalArgumentException("Not supported this config type: " + type); - } - return ResponseEntity.ok(Message.success(configService.getConfig())); + return ResponseEntity.ok(Message.success(configService.getConfig(type))); } @PutMapping(path = "/template/{app}") @@ -87,19 +71,7 @@ public ResponseEntity> getConfig( public ResponseEntity> updateTemplateAppConfig( @PathVariable("app") @NotNull final String app, @RequestBody TemplateConfig.AppTemplate template) { - GeneralConfigService configService = configServiceMap.get("template"); - if (configService == null || !(configService instanceof TemplateConfigServiceImpl)) { - throw new IllegalArgumentException("Not supported this config type: template"); - } - TemplateConfig config = ((TemplateConfigServiceImpl) configService).getConfig(); - if (config == null) { - config = new TemplateConfig(); - } - if (config.getApps() == null) { - config.setApps(new HashMap<>(8)); - } - config.getApps().put(app, template); - configService.saveConfig(config); + configService.updateTemplateAppConfig(app, template); return ResponseEntity.ok(Message.success()); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/MonitorsController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/MonitorsController.java index 46e1129b3d7..6bbe0a270fb 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/MonitorsController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/MonitorsController.java @@ -21,12 +21,7 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.CriteriaBuilder; -import jakarta.persistence.criteria.JoinType; -import jakarta.persistence.criteria.ListJoin; -import jakarta.persistence.criteria.Predicate; import jakarta.servlet.http.HttpServletResponse; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import org.apache.hertzbeat.common.entity.dto.Message; @@ -34,11 +29,7 @@ import org.apache.hertzbeat.manager.service.MonitorService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.domain.Sort; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; -import org.springframework.util.StringUtils; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -56,10 +47,6 @@ @RequestMapping(path = "/api/monitors", produces = {APPLICATION_JSON_VALUE}) public class MonitorsController { - private static final byte ALL_MONITOR_STATUS = 9; - - private static final int TAG_LENGTH = 2; - @Autowired private MonitorService monitorService; @@ -77,69 +64,8 @@ public ResponseEntity>> getMonitors( @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pagination ", example = "8") @RequestParam(defaultValue = "8") int pageSize, @Parameter(description = "Monitor tag ", example = "env:prod") @RequestParam(required = false) final String tag) { - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (ids != null && !ids.isEmpty()) { - CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); - for (long id : ids) { - inPredicate.value(id); - } - andList.add(inPredicate); - } - if (StringUtils.hasText(app)) { - Predicate predicateApp = criteriaBuilder.equal(root.get("app"), app); - andList.add(predicateApp); - } - if (status != null && status >= 0 && status < ALL_MONITOR_STATUS) { - Predicate predicateStatus = criteriaBuilder.equal(root.get("status"), status); - andList.add(predicateStatus); - } - - if (StringUtils.hasText(tag)) { - String[] tagArr = tag.split(":"); - String tagName = tagArr[0]; - ListJoin tagJoin = root - .join(root.getModel() - .getList("tags", org.apache.hertzbeat.common.entity.manager.Tag.class), JoinType.LEFT); - if (tagArr.length == TAG_LENGTH) { - String tagValue = tagArr[1]; - andList.add(criteriaBuilder.equal(tagJoin.get("name"), tagName)); - andList.add(criteriaBuilder.equal(tagJoin.get("tagValue"), tagValue)); - } else { - andList.add(criteriaBuilder.equal(tagJoin.get("name"), tag)); - } - } - Predicate[] andPredicates = new Predicate[andList.size()]; - Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); - - List orList = new ArrayList<>(); - if (StringUtils.hasText(host)) { - Predicate predicateHost = criteriaBuilder.like(root.get("host"), "%" + host + "%"); - orList.add(predicateHost); - } - if (StringUtils.hasText(name)) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); - orList.add(predicateName); - } - Predicate[] orPredicates = new Predicate[orList.size()]; - Predicate orPredicate = criteriaBuilder.or(orList.toArray(orPredicates)); - - if (andPredicates.length == 0 && orPredicates.length == 0) { - return query.where().getRestriction(); - } else if (andPredicates.length == 0) { - return orPredicate; - } else if (orPredicates.length == 0) { - return andPredicate; - } else { - return query.where(andPredicate, orPredicate).getRestriction(); - } - }; - // Pagination is a must - Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); - Page monitorPage = monitorService.getMonitors(specification, pageRequest); - Message> message = Message.success(monitorPage); - return ResponseEntity.ok(message); + Page monitorPage = monitorService.getMonitors(ids, app, name, host, status, sort, order, pageIndex, pageSize, tag); + return ResponseEntity.ok(Message.success(monitorPage)); } @GetMapping(path = "/{app}") @@ -147,9 +73,7 @@ public ResponseEntity>> getMonitors( description = "Filter all acquired monitoring information lists of the specified monitoring type according to the query") public ResponseEntity>> getAppMonitors( @Parameter(description = "en: Monitoring type", example = "linux") @PathVariable(required = false) final String app) { - List monitors = monitorService.getAppMonitors(app); - Message> message = Message.success(monitors); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success(monitorService.getAppMonitors(app))); } @@ -162,8 +86,7 @@ public ResponseEntity> deleteMonitors( if (ids != null && !ids.isEmpty()) { monitorService.deleteMonitors(new HashSet<>(ids)); } - Message message = Message.success(); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success()); } @DeleteMapping("manage") @@ -175,8 +98,7 @@ public ResponseEntity> cancelManageMonitors( if (ids != null && !ids.isEmpty()) { monitorService.cancelManageMonitors(new HashSet<>(ids)); } - Message message = Message.success(); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success()); } @GetMapping("manage") @@ -188,8 +110,7 @@ public ResponseEntity> enableManageMonitors( if (ids != null && !ids.isEmpty()) { monitorService.enableManageMonitors(new HashSet<>(ids)); } - Message message = Message.success(); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success()); } @GetMapping("/export") diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/NoticeConfigController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/NoticeConfigController.java index d1eb09ac35f..241bddaa070 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/NoticeConfigController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/NoticeConfigController.java @@ -22,7 +22,6 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import jakarta.persistence.criteria.Predicate; import java.util.List; import java.util.Optional; import javax.validation.Valid; @@ -32,7 +31,6 @@ import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.service.NoticeConfigService; import org.springframework.beans.factory.annotation.Autowired; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -86,17 +84,7 @@ public ResponseEntity> deleteNoticeReceiver( description = "Get a list of message notification recipients based on query filter items") public ResponseEntity>> getReceivers( @Parameter(description = "en: Recipient name,support fuzzy query", example = "tom") @RequestParam(required = false) final String name) { - Specification specification = (root, query, criteriaBuilder) -> { - Predicate predicate = criteriaBuilder.conjunction(); - if (name != null && !name.isEmpty()) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); - predicate = criteriaBuilder.and(predicateName); - } - return predicate; - }; - List receivers = noticeConfigService.getNoticeReceivers(specification); - Message> message = Message.success(receivers); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success(noticeConfigService.getNoticeReceivers(name))); } @PostMapping(path = "/rule") @@ -131,17 +119,7 @@ public ResponseEntity> deleteNoticeRule( description = "Get a list of message notification policies based on query filter items") public ResponseEntity>> getRules( @Parameter(description = "en: Recipient name", example = "rule1") @RequestParam(required = false) final String name) { - Specification specification = (root, query, criteriaBuilder) -> { - Predicate predicate = criteriaBuilder.conjunction(); - if (name != null && !name.isEmpty()) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); - predicate = criteriaBuilder.and(predicateName); - } - return predicate; - }; - List receiverPage = noticeConfigService.getNoticeRules(specification); - Message> message = Message.success(receiverPage); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success(noticeConfigService.getNoticeRules(name))); } @@ -177,18 +155,8 @@ public ResponseEntity> deleteNoticeTemplate( description = "Get a list of message notification templates based on query filter items") public ResponseEntity>> getTemplates( @Parameter(description = "Template name,support fuzzy query", example = "rule1") @RequestParam(required = false) final String name) { - - Specification specification = (root, query, criteriaBuilder) -> { - Predicate predicate = criteriaBuilder.conjunction(); - if (name != null && !"".equals(name)) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); - predicate = criteriaBuilder.and(predicateName); - } - return predicate; - }; - List templatePage = noticeConfigService.getNoticeTemplates(specification); - Message> message = Message.success(templatePage); - return ResponseEntity.ok(message); + List templatePage = noticeConfigService.getNoticeTemplates(name); + return ResponseEntity.ok(Message.success(templatePage)); } @PostMapping(path = "/receiver/send-test-msg") diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/PluginController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/PluginController.java index b75f6973841..18c24544fac 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/PluginController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/PluginController.java @@ -20,19 +20,17 @@ import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; -import jakarta.persistence.criteria.Predicate; import jakarta.validation.Valid; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; import lombok.RequiredArgsConstructor; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.common.entity.dto.PluginUpload; import org.apache.hertzbeat.common.entity.manager.PluginMetadata; +import org.apache.hertzbeat.manager.pojo.dto.PluginParam; +import org.apache.hertzbeat.manager.pojo.dto.PluginParametersVO; import org.apache.hertzbeat.manager.service.PluginService; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -68,31 +66,13 @@ public ResponseEntity>> getPlugins( @Parameter(description = "plugin name search", example = "status") @RequestParam(required = false) String search, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pagination", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - // Get tag information - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (search != null && !search.isEmpty()) { - Predicate predicateApp = criteriaBuilder.like(root.get("name"), "%" + search + "%"); - andList.add(predicateApp); - } - Predicate[] andPredicates = new Predicate[andList.size()]; - Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); - - if (andPredicates.length == 0) { - return query.where().getRestriction(); - } else { - return andPredicate; - } - }; - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); - Page alertPage = pluginService.getPlugins(specification, pageRequest); - Message> message = Message.success(alertPage); - return ResponseEntity.ok(message); + Page alertPage = pluginService.getPlugins(search, pageIndex, pageSize); + return ResponseEntity.ok(Message.success(alertPage)); } @DeleteMapping() @Operation(summary = "Delete plugins based on ID", description = "Delete plugins based on ID") - public ResponseEntity> deleteTags( + public ResponseEntity> deletePlugins( @Parameter(description = "Plugin IDs ", example = "6565463543") @RequestParam(required = false) List ids) { if (ids != null && !ids.isEmpty()) { pluginService.deletePlugins(new HashSet<>(ids)); @@ -107,4 +87,19 @@ public ResponseEntity> updatePluginStatus(@RequestBody PluginMetad pluginService.updateStatus(plugin); return ResponseEntity.ok(Message.success("Update success")); } + + @GetMapping("/params/define") + @Operation(summary = "get param define", description = "get param define by jar path") + public ResponseEntity> getParamDefine(@RequestParam Long pluginMetadataId) { + PluginParametersVO plugins = pluginService.getParamDefine(pluginMetadataId); + return ResponseEntity.ok(Message.success(plugins)); + } + + @PostMapping("/params") + @Operation(summary = "get param define", description = "get param define by jar path") + public ResponseEntity> saveParams(@RequestBody List pluginParams) { + pluginService.savePluginParam(pluginParams); + return ResponseEntity.ok(Message.success(true)); + } + } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/controller/TagController.java b/manager/src/main/java/org/apache/hertzbeat/manager/controller/TagController.java index cbcf52c1441..43276f788d4 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/controller/TagController.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/controller/TagController.java @@ -20,19 +20,14 @@ import static org.springframework.http.MediaType.APPLICATION_JSON_VALUE; import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; -import jakarta.persistence.criteria.Predicate; import jakarta.validation.Valid; -import java.util.ArrayList; import java.util.HashSet; import java.util.List; -import java.util.stream.Collectors; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.common.entity.manager.Tag; import org.apache.hertzbeat.manager.service.TagService; import org.springframework.beans.factory.annotation.Autowired; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.DeleteMapping; import org.springframework.web.bind.annotation.GetMapping; @@ -56,11 +51,6 @@ public class TagController { @PostMapping @Operation(summary = "Add Tag", description = "Add Tag") public ResponseEntity> addNewTags(@Valid @RequestBody List tags) { - // Verify request data - tags = tags.stream().peek(tag -> { - tag.setType((byte) 1); - tag.setId(null); - }).distinct().collect(Collectors.toList()); tagService.addTags(tags); return ResponseEntity.ok(Message.success("Add success")); } @@ -69,8 +59,8 @@ public ResponseEntity> addNewTags(@Valid @RequestBody List ta @Operation(summary = "Modify an existing tag", description = "Modify an existing tag") public ResponseEntity> modifyMonitor(@Valid @RequestBody Tag tag) { // Verify request data - if (tag.getId() == null || tag.getName() == null) { - throw new IllegalArgumentException("The Tag not exist."); + if (tag.getId() == null) { + throw new IllegalArgumentException("ID cannot be null."); } tagService.modifyTag(tag); return ResponseEntity.ok(Message.success("Modify success")); @@ -83,49 +73,14 @@ public ResponseEntity>> getTags( @Parameter(description = "Tag type", example = "0") @RequestParam(required = false) Byte type, @Parameter(description = "List current page", example = "0") @RequestParam(defaultValue = "0") int pageIndex, @Parameter(description = "Number of list pagination", example = "8") @RequestParam(defaultValue = "8") int pageSize) { - // Get tag information - Specification specification = (root, query, criteriaBuilder) -> { - List andList = new ArrayList<>(); - if (type != null) { - Predicate predicateApp = criteriaBuilder.equal(root.get("type"), type); - andList.add(predicateApp); - } - Predicate[] andPredicates = new Predicate[andList.size()]; - Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); - - List orList = new ArrayList<>(); - if (search != null && !search.isEmpty()) { - Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + search + "%"); - orList.add(predicateName); - Predicate predicateValue = criteriaBuilder.like(root.get("tagValue"), "%" + search + "%"); - orList.add(predicateValue); - } - Predicate[] orPredicates = new Predicate[orList.size()]; - Predicate orPredicate = criteriaBuilder.or(orList.toArray(orPredicates)); - - if (andPredicates.length == 0 && orPredicates.length == 0) { - return query.where().getRestriction(); - } else if (andPredicates.length == 0) { - return orPredicate; - } else if (orPredicates.length == 0) { - return andPredicate; - } else { - return query.where(andPredicate, orPredicate).getRestriction(); - } - }; - PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); - Page alertPage = tagService.getTags(specification, pageRequest); - Message> message = Message.success(alertPage); - return ResponseEntity.ok(message); + return ResponseEntity.ok(Message.success(tagService.getTags(search, type, pageIndex, pageSize))); } @DeleteMapping() @Operation(summary = "Delete tags based on ID", description = "Delete tags based on ID") public ResponseEntity> deleteTags( @Parameter(description = "TAG IDs ", example = "6565463543") @RequestParam(required = false) List ids) { - if (ids != null && !ids.isEmpty()) { - tagService.deleteTags(new HashSet<>(ids)); - } + tagService.deleteTags(new HashSet<>(ids)); return ResponseEntity.ok(Message.success("Delete success")); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/dao/BulletinDao.java b/manager/src/main/java/org/apache/hertzbeat/manager/dao/BulletinDao.java new file mode 100644 index 00000000000..0be6a8320a5 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/dao/BulletinDao.java @@ -0,0 +1,41 @@ +/* + * 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.hertzbeat.manager.dao; + + +import java.util.List; +import org.apache.hertzbeat.common.entity.manager.bulletin.Bulletin; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * BulletinDao + */ +public interface BulletinDao extends JpaRepository, JpaSpecificationExecutor { + /** + * Delete Bulletin by name + */ + void deleteByNameIn(List names); + + /** + * Get Bulletin by name + */ + Bulletin findByName(String name); + + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/dao/DefineDao.java b/manager/src/main/java/org/apache/hertzbeat/manager/dao/DefineDao.java new file mode 100644 index 00000000000..cd04776afcf --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/dao/DefineDao.java @@ -0,0 +1,28 @@ +/* + * 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.hertzbeat.manager.dao; + +import org.apache.hertzbeat.common.entity.manager.Define; +import org.springframework.data.jpa.repository.JpaRepository; +import org.springframework.data.jpa.repository.JpaSpecificationExecutor; + +/** + * monitor define repository + */ +public interface DefineDao extends JpaRepository, JpaSpecificationExecutor { +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/dao/PluginParamDao.java b/manager/src/main/java/org/apache/hertzbeat/manager/dao/PluginParamDao.java new file mode 100644 index 00000000000..4eeec26b192 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/dao/PluginParamDao.java @@ -0,0 +1,48 @@ +/* + * 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.hertzbeat.manager.dao; + +import java.util.List; +import java.util.Set; +import org.apache.hertzbeat.manager.pojo.dto.PluginParam; +import org.springframework.data.jpa.repository.JpaRepository; + +/** + * PluginParamDao database operations + */ +public interface PluginParamDao extends JpaRepository { + + /** + * Query the list of parameters associated with the monitoring ID' + * @param pluginMetadataId Monitor ID + * @return list of parameter values + */ + List findParamsByPluginMetadataId(Long pluginMetadataId); + + /** + * Remove the parameter list associated with the pluginMetadata ID based on it + * @param pluginMetadataId Monitor Id + */ + void deletePluginParamsByPluginMetadataId(long pluginMetadataId); + + /** + * Remove the parameter list associated with the pluginMetadata ID list based on it + * @param pluginMetadataIds Monitoring ID List + */ + void deletePluginParamsByPluginMetadataIdIn(Set pluginMetadataIds); +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/nativex/HertzbeatRuntimeHintsRegistrar.java b/manager/src/main/java/org/apache/hertzbeat/manager/nativex/HertzbeatRuntimeHintsRegistrar.java index d1d58f01a7d..44d9b3a6a33 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/nativex/HertzbeatRuntimeHintsRegistrar.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/nativex/HertzbeatRuntimeHintsRegistrar.java @@ -33,6 +33,7 @@ import org.springframework.aot.hint.RuntimeHints; import org.springframework.aot.hint.RuntimeHintsRegistrar; import org.springframework.aot.hint.TypeReference; +import org.springframework.lang.NonNull; import org.springframework.util.ClassUtils; /** @@ -44,7 +45,7 @@ public class HertzbeatRuntimeHintsRegistrar implements RuntimeHintsRegistrar { private static final String SshConstantsClassName = "org.apache.sshd.common.SshConstants"; @Override - public void registerHints(RuntimeHints hints, ClassLoader classLoader) { + public void registerHints(@NonNull RuntimeHints hints, ClassLoader classLoader) { // see: https://github.com/spring-cloud/spring-cloud-config/blob/main/spring-cloud-config-server/src/main/java/org/springframework/cloud/config/server/config/ConfigServerRuntimeHints.java // TODO: move over to GraalVM reachability metadata if (ClassUtils.isPresent(SshConstantsClassName, classLoader)) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/AliAiResponse.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/AliAiResponse.java index 2654879aaf5..e2562cc5c02 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/AliAiResponse.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/AliAiResponse.java @@ -48,7 +48,7 @@ public class AliAiResponse { @Data @AllArgsConstructor @NoArgsConstructor - public class AliAiOutput { + public static class AliAiOutput { /** * response message diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/EmailNoticeSender.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/EmailNoticeSender.java index 1c8f9df19ca..027bf3c0549 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/EmailNoticeSender.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/EmailNoticeSender.java @@ -54,5 +54,7 @@ public class EmailNoticeSender { private boolean emailSsl = true; + private boolean emailStarttls = false; + private boolean enable = true; } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/MonitorDto.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/MonitorDto.java index d52e7b8dda5..9c71eb1adf9 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/MonitorDto.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/MonitorDto.java @@ -21,6 +21,7 @@ import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_WRITE; import io.swagger.v3.oas.annotations.media.Schema; import jakarta.validation.Valid; +import jakarta.validation.constraints.NotEmpty; import jakarta.validation.constraints.NotNull; import java.util.List; import lombok.Data; @@ -40,7 +41,7 @@ public class MonitorDto { private Monitor monitor; @Schema(description = "Monitor Params", accessMode = READ_WRITE) - @NotNull + @NotEmpty @Valid private List params; diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/ObjectStoreDTO.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/ObjectStoreDTO.java index 0a8a6fdb00b..c07d2a86827 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/ObjectStoreDTO.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/ObjectStoreDTO.java @@ -51,6 +51,11 @@ public enum Type { */ FILE, + /** + * local database + */ + DATABASE, + /** * Huawei Cloud OBS */ diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParam.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParam.java new file mode 100644 index 00000000000..b92948f2b10 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParam.java @@ -0,0 +1,110 @@ +/* + * 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.hertzbeat.manager.pojo.dto; + +import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_ONLY; +import static io.swagger.v3.oas.annotations.media.Schema.AccessMode.READ_WRITE; +import io.swagger.v3.oas.annotations.media.Schema; +import jakarta.persistence.Column; +import jakarta.persistence.Entity; +import jakarta.persistence.EntityListeners; +import jakarta.persistence.GeneratedValue; +import jakarta.persistence.GenerationType; +import jakarta.persistence.Id; +import jakarta.persistence.Index; +import jakarta.persistence.Table; +import jakarta.persistence.UniqueConstraint; +import jakarta.validation.constraints.Min; +import jakarta.validation.constraints.NotNull; +import jakarta.validation.constraints.Size; +import java.time.LocalDateTime; +import lombok.AllArgsConstructor; +import lombok.Builder; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.springframework.data.annotation.CreatedDate; +import org.springframework.data.annotation.LastModifiedDate; +import org.springframework.data.jpa.domain.support.AuditingEntityListener; + +/** + * PluginParam + */ +@Entity +@Table(name = "hzb_plugin_param", indexes = { @Index(columnList = "pluginMetadataId") }, + uniqueConstraints = @UniqueConstraint(columnNames = {"pluginMetadataId", "field"})) +@Data +@Builder +@AllArgsConstructor +@NoArgsConstructor +@Schema(description = "Parameter Entity") +@EntityListeners(AuditingEntityListener.class) +public class PluginParam { + + /** + * Parameter primary key index ID + */ + @Id + @GeneratedValue(strategy = GenerationType.IDENTITY) + @Schema(title = "Parameter primary key index ID", example = "87584674384", accessMode = READ_ONLY) + private Long id; + /** + * Monitor ID + */ + @Schema(title = "Plugin task ID", example = "875846754543", accessMode = READ_WRITE) + @NotNull + private Long pluginMetadataId; + + /** + * Parameter Field Identifier + */ + @Schema(title = "Parameter identifier field", example = "port", accessMode = READ_WRITE) + @Size(max = 100) + @NotNull + private String field; + + /** + * Param Value + */ + @Schema(title = "parameter values", example = "8080", accessMode = READ_WRITE) + @Size(max = 8126) + @Column(length = 8126) + private String paramValue; + + /** + * Parameter type 0: number 1: string 2: encrypted string 3: json string mapped by map + */ + @Schema(title = "Parameter types 0: number 1: string 2: encrypted string 3:map mapped json string 4:arrays string", + accessMode = READ_WRITE) + @Min(0) + private byte type; + + /** + * Record create time + */ + @Schema(title = "Record create time", example = "1612198922000", accessMode = READ_ONLY) + @CreatedDate + private LocalDateTime gmtCreate; + + /** + * Record the latest modification time + */ + @Schema(title = "Record modify time", example = "1612198444000", accessMode = READ_ONLY) + @LastModifiedDate + private LocalDateTime gmtUpdate; + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParametersVO.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParametersVO.java new file mode 100644 index 00000000000..ba3f2f9ffa1 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/PluginParametersVO.java @@ -0,0 +1,43 @@ +/* + * 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.hertzbeat.manager.pojo.dto; + +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; +import org.apache.hertzbeat.common.entity.manager.ParamDefine; +import java.util.List; + +/** + * Popup rendering and parameter values + */ +@Data +@AllArgsConstructor +@NoArgsConstructor +public class PluginParametersVO { + + /** + * Stencil rendering + */ + private List paramDefines; + + /** + * specific parameter + */ + private List pluginParams; +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsAlibabaConfig.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsAlibabaConfig.java new file mode 100644 index 00000000000..25feeaa0ebc --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsAlibabaConfig.java @@ -0,0 +1,35 @@ +/* + * 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.hertzbeat.manager.pojo.dto; + +import jakarta.validation.constraints.NotBlank; +import lombok.Data; + +/** + * Alibaba Sms Sender configuration dto + */ +@Data +public class SmsAlibabaConfig { + + @NotBlank(message = "SecretId cannot be empty") + private String secretId; + + @NotBlank(message = "SecretKey cannot be empty") + private String secretKey; + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsNoticeSender.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsNoticeSender.java new file mode 100644 index 00000000000..b2aecead57c --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsNoticeSender.java @@ -0,0 +1,41 @@ +/* + * 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.hertzbeat.manager.pojo.dto; + +import jakarta.validation.constraints.NotBlank; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * Sms Sender configuration dto + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class SmsNoticeSender { + + @NotBlank(message = "Type cannot be empty") + private String type; + + private SmsTencentConfig tencent; + + private SmsAlibabaConfig alibaba; + + private boolean enable = true; +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsTencentConfig.java b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsTencentConfig.java new file mode 100644 index 00000000000..f54affd5978 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/pojo/dto/SmsTencentConfig.java @@ -0,0 +1,48 @@ +/* + * 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.hertzbeat.manager.pojo.dto; + +import jakarta.validation.constraints.NotBlank; +import lombok.AllArgsConstructor; +import lombok.Data; +import lombok.NoArgsConstructor; + +/** + * Tencent Sms Sender configuration dto + */ +@Data +@NoArgsConstructor +@AllArgsConstructor +public class SmsTencentConfig { + + @NotBlank(message = "SecretId cannot be empty") + private String secretId; + + @NotBlank(message = "SecretKey cannot be empty") + private String secretKey; + + @NotBlank(message = "SignName cannot be empty") + private String signName; + + @NotBlank(message = "AppId cannot be null") + private String appId; + + @NotBlank(message = "templateId cannot be null") + private String templateId; + +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/CollectorJobScheduler.java b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/CollectorJobScheduler.java index a2e49645dfd..a935061d0c3 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/CollectorJobScheduler.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/CollectorJobScheduler.java @@ -22,13 +22,15 @@ import java.util.LinkedList; import java.util.List; import java.util.Map; -import java.util.Optional; +import java.util.Objects; import java.util.Set; import java.util.concurrent.ConcurrentHashMap; import java.util.concurrent.CountDownLatch; import java.util.concurrent.TimeUnit; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.collector.dispatch.entrance.internal.CollectJobService; import org.apache.hertzbeat.collector.dispatch.entrance.internal.CollectResponseEventListener; import org.apache.hertzbeat.common.constants.CommonConstants; @@ -53,7 +55,6 @@ import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.AutoConfigureAfter; import org.springframework.stereotype.Component; -import org.springframework.util.StringUtils; /** * collector service @@ -92,14 +93,12 @@ public class CollectorJobScheduler implements CollectorScheduling, CollectJobSch @Override public void collectorGoOnline(String identity, CollectorInfo collectorInfo) { - if (identity == null) { + if (StringUtils.isBlank(identity)) { log.error("identity can not be null if collector not existed"); return; } - Optional collectorOptional = collectorDao.findCollectorByName(identity); - Collector collector; - if (collectorOptional.isPresent()) { - collector = collectorOptional.get(); + Collector collector = collectorDao.findCollectorByName(identity).orElse(null); + if (Objects.nonNull(collector)) { if (collector.getStatus() == CommonConstants.COLLECTOR_STATUS_ONLINE) { return; } @@ -129,13 +128,12 @@ public void collectorGoOnline(String identity, CollectorInfo collectorInfo) { reBalanceCollectorAssignJobs(); // Read database The fixed collection tasks at this collector are delivered List binds = collectorMonitorBindDao.findCollectorMonitorBindsByCollector(identity); - for (CollectorMonitorBind bind : binds) { - Optional monitorOptional = monitorDao.findById(bind.getMonitorId()); - if (monitorOptional.isEmpty()) { - continue; - } - Monitor monitor = monitorOptional.get(); - if (monitor.getStatus() == CommonConstants.MONITOR_PAUSED_CODE) { + if (CollectionUtils.isEmpty(binds)){ + return; + } + List monitors = monitorDao.findMonitorsByIdIn(binds.stream().map(CollectorMonitorBind::getMonitorId).collect(Collectors.toSet())); + for (Monitor monitor : monitors) { + if (Objects.isNull(monitor) || monitor.getStatus() == CommonConstants.MONITOR_PAUSED_CODE) { continue; } try { @@ -150,15 +148,20 @@ public void collectorGoOnline(String identity, CollectorInfo collectorInfo) { appDefine.setTimestamp(System.currentTimeMillis()); List params = paramDao.findParamsByMonitorId(monitor.getId()); List configmaps = params.stream() - .map(param -> new Configmap(param.getField(), param.getParamValue(), - param.getType())).collect(Collectors.toList()); + .map(param -> Configmap.builder() + .key(param.getField()) + .value(param.getParamValue()) + .type(param.getType()).build()).collect(Collectors.toList()); List paramDefaultValue = appDefine.getParams().stream() - .filter(item -> StringUtils.hasText(item.getDefaultValue())) + .filter(item -> StringUtils.isNotBlank(item.getDefaultValue())) .toList(); paramDefaultValue.forEach(defaultVar -> { if (configmaps.stream().noneMatch(item -> item.getKey().equals(defaultVar.getField()))) { - Configmap configmap = new Configmap(defaultVar.getField(), defaultVar.getDefaultValue(), (byte) 1); - configmaps.add(configmap); + configmaps.add(Configmap.builder() + .key(defaultVar.getField()) + .value(defaultVar.getDefaultValue()) + .type((byte) 1) + .build()); } }); appDefine.setConfigmap(configmaps); @@ -173,12 +176,11 @@ public void collectorGoOnline(String identity, CollectorInfo collectorInfo) { @Override public void collectorGoOffline(String identity) { - Optional collectorOptional = collectorDao.findCollectorByName(identity); - if (collectorOptional.isEmpty()) { + Collector collector = collectorDao.findCollectorByName(identity).orElse(null); + if (Objects.isNull(collector)) { log.info("the collector : {} not found.", identity); return; } - Collector collector = collectorOptional.get(); collector.setStatus(CommonConstants.COLLECTOR_STATUS_OFFLINE); collectorDao.save(collector); consistentHash.removeNode(identity); @@ -191,14 +193,14 @@ public void reBalanceCollectorAssignJobs() { consistentHash.getAllNodes().entrySet().parallelStream().forEach(entry -> { String collectorName = entry.getKey(); AssignJobs assignJobs = entry.getValue().getAssignJobs(); - if (collectorName == null || assignJobs == null) { + if (StringUtils.isBlank(collectorName) || Objects.isNull(assignJobs)) { return; } - if (assignJobs.getAddingJobs() != null && !assignJobs.getAddingJobs().isEmpty()) { + if (CollectionUtils.isNotEmpty(assignJobs.getAddingJobs())) { Set addedJobIds = new HashSet<>(8); for (Long addingJobId : assignJobs.getAddingJobs()) { Job job = jobContentCache.get(addingJobId); - if (job == null) { + if (Objects.isNull(job)) { log.error("assigning job {} content is null.", addingJobId); continue; } @@ -217,7 +219,7 @@ public void reBalanceCollectorAssignJobs() { assignJobs.addAssignJobs(addedJobIds); assignJobs.removeAddingJobs(addedJobIds); } - if (assignJobs.getRemovingJobs() != null && !assignJobs.getRemovingJobs().isEmpty()) { + if (CollectionUtils.isNotEmpty(assignJobs.getRemovingJobs())) { if (CommonConstants.MAIN_COLLECTOR_NODE.equals(collectorName)) { assignJobs.getRemovingJobs().forEach(jobId -> collectJobService.cancelAsyncCollectJob(jobId)); } else { @@ -251,11 +253,10 @@ public boolean offlineCollector(String identity) { @Override public boolean onlineCollector(String identity) { - Optional collectorOptional = collectorDao.findCollectorByName(identity); - if (collectorOptional.isEmpty()) { + Collector collector = collectorDao.findCollectorByName(identity).orElse(null); + if (Objects.isNull(collector)) { return false; } - Collector collector = collectorOptional.get(); ClusterMsg.Message message = ClusterMsg.Message.newBuilder() .setType(ClusterMsg.MessageType.GO_ONLINE) .setDirection(ClusterMsg.Direction.REQUEST) @@ -281,7 +282,7 @@ public List collectSyncJobData(Job job) { // todo dispatchKey ip+port or id String dispatchKey = String.valueOf(job.getMonitorId()); ConsistentHash.Node node = consistentHash.preDispatchJob(dispatchKey); - if (node == null) { + if (Objects.isNull(node)) { log.error("there is no collector online to assign job."); CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder() .setCode(CollectRep.Code.FAIL) @@ -326,7 +327,7 @@ public void response(List responseMetrics) { @Override public List collectSyncJobData(Job job, String collector) { ConsistentHash.Node node = consistentHash.getNode(collector); - if (node == null) { + if (Objects.isNull(node)) { log.error("there is no collector online to assign job."); CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder() .setCode(CollectRep.Code.FAIL) @@ -371,7 +372,7 @@ public long addAsyncCollectJob(Job job, String collector) { job.setId(jobId); jobContentCache.put(jobId, job); ConsistentHash.Node node; - if (collector == null) { + if (StringUtils.isBlank(collector)) { // todo dispatchKey ip+port or id String dispatchKey = String.valueOf(job.getMonitorId()); node = consistentHash.dispatchJob(dispatchKey, jobId); @@ -447,13 +448,13 @@ public void cancelAsyncCollectJob(Long jobId) { @Override public void collectSyncJobResponse(List metricsDataList) { - if (metricsDataList.isEmpty()) { + if (CollectionUtils.isEmpty(metricsDataList)) { return; } CollectRep.MetricsData metricsData = metricsDataList.get(0); long monitorId = metricsData.getId(); CollectResponseEventListener eventListener = eventListeners.remove(monitorId); - if (eventListener != null) { + if (Objects.nonNull(eventListener)) { eventListener.response(metricsDataList); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/ConsistentHash.java b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/ConsistentHash.java index 7e08b7770fa..44d1707aaff 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/ConsistentHash.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/ConsistentHash.java @@ -30,6 +30,7 @@ import lombok.AllArgsConstructor; import lombok.Getter; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; /** @@ -215,7 +216,7 @@ public List getDispatchJobCache() { * @return collector node */ public Node dispatchJob(String dispatchKey, Long jobId) { - if (dispatchKey == null || "".equals(dispatchKey)) { + if (dispatchKey == null || StringUtils.isBlank(dispatchKey)) { log.error("The dispatch key can not null."); return null; } @@ -230,7 +231,7 @@ public Node dispatchJob(String dispatchKey, Long jobId) { * @return collector node */ public Node preDispatchJob(String dispatchKey) { - if (dispatchKey == null || "".equals(dispatchKey)) { + if (dispatchKey == null || StringUtils.isBlank(dispatchKey)) { log.error("The dispatch key can not null."); return null; } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerInit.java b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerInit.java index 3a79aa1f6a6..34d2d9d0227 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerInit.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerInit.java @@ -21,6 +21,7 @@ import java.util.Map; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.dto.CollectorInfo; import org.apache.hertzbeat.common.entity.job.Configmap; @@ -40,7 +41,6 @@ import org.springframework.context.annotation.Configuration; import org.springframework.core.Ordered; import org.springframework.core.annotation.Order; -import org.springframework.util.StringUtils; /** * scheduler init @@ -110,7 +110,7 @@ public void run(String... args) throws Exception { .map(param -> new Configmap(param.getField(), param.getParamValue(), param.getType())).collect(Collectors.toList()); List paramDefaultValue = appDefine.getParams().stream() - .filter(item -> StringUtils.hasText(item.getDefaultValue())) + .filter(item -> StringUtils.isNotBlank(item.getDefaultValue())) .toList(); paramDefaultValue.forEach(defaultVar -> { if (configmaps.stream().noneMatch(item -> item.getKey().equals(defaultVar.getField()))) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerProperties.java b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerProperties.java index 54bf19d95d0..826a8049275 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerProperties.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/SchedulerProperties.java @@ -17,29 +17,30 @@ package org.apache.hertzbeat.manager.scheduler; +import lombok.Getter; +import lombok.Setter; +import org.apache.hertzbeat.common.constants.ConfigConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.stereotype.Component; /** * scheduler properties config */ + +@Getter +@Setter @Component -@ConfigurationProperties(prefix = "scheduler") +@ConfigurationProperties(prefix = + ConfigConstants.FunctionModuleConstants.SCHEDULER) public class SchedulerProperties { private ServerProperties server; - - public ServerProperties getServer() { - return server; - } - - public void setServer(ServerProperties server) { - this.server = server; - } /** * server properties */ + @Getter + @Setter public static class ServerProperties { private boolean enabled = true; @@ -52,30 +53,7 @@ public static class ServerProperties { * unit: s */ private int idleStateEventTriggerTime = 100; - - public boolean isEnabled() { - return enabled; - } - - public void setEnabled(boolean enabled) { - this.enabled = enabled; - } - - public int getPort() { - return port; - } - - public void setPort(int port) { - this.port = port; - } - - public int getIdleStateEventTriggerTime() { - return idleStateEventTriggerTime; - } - public void setIdleStateEventTriggerTime(int idleStateEventTriggerTime) { - this.idleStateEventTriggerTime = idleStateEventTriggerTime; - } } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/netty/process/CollectorOnlineProcessor.java b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/netty/process/CollectorOnlineProcessor.java index ab48b220380..f48412232e8 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/netty/process/CollectorOnlineProcessor.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/scheduler/netty/process/CollectorOnlineProcessor.java @@ -20,12 +20,12 @@ import io.netty.channel.ChannelHandlerContext; import java.net.InetSocketAddress; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.entity.dto.CollectorInfo; import org.apache.hertzbeat.common.entity.message.ClusterMsg; import org.apache.hertzbeat.common.util.JsonUtil; import org.apache.hertzbeat.manager.scheduler.netty.ManageServer; import org.apache.hertzbeat.remoting.netty.NettyRemotingProcessor; -import org.springframework.util.StringUtils; /** * handle collector online message @@ -43,7 +43,7 @@ public ClusterMsg.Message handle(ChannelHandlerContext ctx, ClusterMsg.Message m String collector = message.getIdentity(); log.info("the collector {} actively requests to go online.", collector); CollectorInfo collectorInfo = JsonUtil.fromJson(message.getMsg(), CollectorInfo.class); - if (collectorInfo != null && !StringUtils.hasText(collectorInfo.getIp())) { + if (collectorInfo != null && StringUtils.isBlank(collectorInfo.getIp())) { // fetch remote ip address InetSocketAddress socketAddress = (InetSocketAddress) ctx.channel().remoteAddress(); String clientIP = socketAddress.getAddress().getHostAddress(); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/AccountService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/AccountService.java new file mode 100644 index 00000000000..9a47f80c13b --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/AccountService.java @@ -0,0 +1,44 @@ +/* + * 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.hertzbeat.manager.service; + +import java.util.Map; +import javax.naming.AuthenticationException; +import org.apache.hertzbeat.manager.pojo.dto.LoginDto; +import org.apache.hertzbeat.manager.pojo.dto.RefreshTokenResponse; + +/** + * Account service + */ +public interface AccountService { + /** + * Account password login to obtain associated user information + * @param loginDto loginDto + * @return token info + * @throws AuthenticationException when authentication is failed + */ + Map authGetToken(LoginDto loginDto) throws AuthenticationException; + + /** + * Use refresh TOKEN to re-acquire TOKEN + * @param refreshToken refreshToken + * @return token and refresh token + * @throws AuthenticationException failed to refresh + */ + RefreshTokenResponse refreshToken(String refreshToken) throws AuthenticationException; +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/AppService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/AppService.java index d34df783cae..21144afb645 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/AppService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/AppService.java @@ -80,6 +80,14 @@ public interface AppService { */ Map getI18nResources(String lang); + /** + * Get the I 18 N resources of the monitoring type + * + * @param lang Language type + * @return I18N Resources + */ + Map getI18nApps(String lang); + /** * Query all types of monitoring hierarchy * @@ -88,6 +96,15 @@ public interface AppService { */ List getAllAppHierarchy(String lang); + /** + * Get the monitoring hierarchy based on the monitoring type + * + * @param app monitoring type + * @param lang language + * @return hierarchy information + */ + List getAppHierarchy(String app, String lang); + /** * Get all app define * diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/BulletinService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/BulletinService.java new file mode 100644 index 00000000000..b7022fb29ec --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/BulletinService.java @@ -0,0 +1,84 @@ +/* + * 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.hertzbeat.manager.service; + +import java.util.List; +import java.util.Optional; +import org.apache.hertzbeat.common.entity.manager.bulletin.Bulletin; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinDto; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinMetricsData; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinVo; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.jpa.domain.Specification; + +/** + * Bulletin Service + */ +public interface BulletinService { + + /** + * validate Bulletin + */ + void validate(BulletinDto bulletindto) throws IllegalArgumentException; + + /** + * Get Bulletin by name + */ + Bulletin getBulletinByName(String name); + + /** + * Get Bulletin by id + */ + Optional getBulletinById(Long id); + + /** + * Get all names + */ + List getAllNames(); + + + /** + * delete Bulletin by id + */ + void deleteBulletinByName(List names); + + + /** + * Save Bulletin + */ + void editBulletin(BulletinDto bulletinDto); + + /** + * Add Bulletin + */ + void addBulletin(BulletinDto bulletinDto); + + /** + * Dynamic conditional query + * @param specification Query conditions + * @param pageRequest Paging parameters + * @return The query results + */ + Page getBulletins(Specification specification, PageRequest pageRequest); + + /** + * deal with the bulletin + */ + BulletinMetricsData buildBulletinMetricsData(BulletinMetricsData.BulletinMetricsDataBuilder contentBuilder, Bulletin bulletin); +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/CollectorService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/CollectorService.java index 81d995af829..74a7ad3a171 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/CollectorService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/CollectorService.java @@ -18,11 +18,9 @@ package org.apache.hertzbeat.manager.service; import java.util.List; +import java.util.Map; import org.apache.hertzbeat.common.entity.dto.CollectorSummary; -import org.apache.hertzbeat.common.entity.manager.Collector; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; /** * collector service @@ -31,11 +29,13 @@ public interface CollectorService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest pageIndex pageSize + * @param name Collector Name + * @param pageIndex current pageIndex + * @param pageSize Number of list pagination + * * @return Search result */ - Page getCollectors(Specification specification, PageRequest pageRequest); + Page getCollectors(String name, int pageIndex, Integer pageSize); /** * delete registered collectors @@ -49,4 +49,23 @@ public interface CollectorService { * @return return true if it has */ boolean hasCollector(String collector); + + /** + * Generate Collector Deploy Info + * @param collector collector name + */ + Map generateCollectorDeployInfo(String collector); + + /** + * Makes Collectors Offline + * @param collectors collector names + */ + void makeCollectorsOffline(List collectors); + + /** + * Makes Collectors Online + * @param collectors collector names + */ + void makeCollectorsOnline(List collectors); + } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/ConfigService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ConfigService.java new file mode 100644 index 00000000000..418c7c5e256 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ConfigService.java @@ -0,0 +1,47 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; + +/** + * Provides operations for the GeneralConfigService + */ +public interface ConfigService { + + /** + * save config + * @param type config type + * @param config need save configuration + */ + void saveConfig(String type, Object config); + + /** + * get config + * @param type config type + * @return config + */ + Object getConfig(String type); + + /** + * Update the app template config + * @param app monitoring type + * @param template template config + */ + void updateTemplateAppConfig(String app, TemplateConfig.AppTemplate template); +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/GeneralConfigService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/GeneralConfigService.java index 0f381bf6821..3d6c956d8f0 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/GeneralConfigService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/GeneralConfigService.java @@ -18,7 +18,7 @@ package org.apache.hertzbeat.manager.service; /** - *

ConfigService interface provides CRUD operations for configurations.

+ *

GeneralConfigService interface provides CRUD operations for configurations.

* @param configuration type. * @version 1.0 */ diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/MonitorService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/MonitorService.java index 1657b7a4da8..0a3007e868b 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/MonitorService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/MonitorService.java @@ -28,8 +28,6 @@ import org.apache.hertzbeat.manager.pojo.dto.MonitorDto; import org.apache.hertzbeat.manager.support.exception.MonitorDetectException; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; import org.springframework.web.multipart.MultipartFile; /** @@ -96,11 +94,19 @@ public interface MonitorService { /** * Dynamic conditional query - * @param specification Query conditions - * @param pageRequest Pagination parameters + * @param monitorIds Monitor ID List + * @param app Monitor Type + * @param name Monitor Name support fuzzy query + * @param host Monitor Host support fuzzy query + * @param status Monitor Status 0:no monitor,1:usable,2:disabled,9:all status + * @param sort Sort Field + * @param order Sort mode eg:asc desc + * @param pageIndex List current page + * @param pageSize Number of list pagination + * @param tag Monitor tag * @return Search Result */ - Page getMonitors(Specification specification, PageRequest pageRequest); + Page getMonitors(List monitorIds, String app, String name, String host, Byte status, String sort, String order, int pageIndex, int pageSize, String tag); /** * Unmanaged monitoring items in batches according to the monitoring ID list diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/NoticeConfigService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/NoticeConfigService.java index a304cace573..eaedf925837 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/NoticeConfigService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/NoticeConfigService.java @@ -23,7 +23,6 @@ import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeRule; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; -import org.springframework.data.jpa.domain.Specification; /** * Message notification configuration interface @@ -32,24 +31,24 @@ public interface NoticeConfigService { /** * Dynamic conditional query - * @param specification Query conditions + * @param name Recipient name,support fuzzy query * @return Search result */ - List getNoticeReceivers(Specification specification); + List getNoticeReceivers(String name); /** * Dynamic conditional query - * @param specification Query conditions + * @param name Template name,support fuzzy query * @return Search result */ - List getNoticeTemplates(Specification specification); + List getNoticeTemplates(String name); /** * Dynamic conditional query - * @param specification Query conditions + * @param name Recipient name * @return Search result */ - List getNoticeRules(Specification specification); + List getNoticeRules(String name); /** * Add a notification recipient @@ -94,13 +93,6 @@ public interface NoticeConfigService { */ List getReceiverFilterRule(Alert alert); - /** - * Query the recipient information according to the recipient ID - * @param id Receiver ID - * @return Receiver - */ - NoticeReceiver getOneReceiverById(Long id); - /** * Query the template information according to the template ID * @param id Template ID @@ -122,6 +114,7 @@ public interface NoticeConfigService { */ NoticeRule getNoticeRulesById(Long ruleId); + /** * Add a notification template * @param noticeTemplate template information diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/ObjectStoreService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ObjectStoreService.java index e4e8f26b608..03017646e9f 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/ObjectStoreService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ObjectStoreService.java @@ -34,6 +34,18 @@ public interface ObjectStoreService { */ boolean upload(String filePath, InputStream is); + /** + * remove file + * @param filePath file path,eg:hertzbeat/111.json + */ + void remove(String filePath); + + /** + * whether the file exists + * @param filePath file path,eg:hertzbeat/111.json + */ + boolean isExist(String filePath); + /** * read file * @param filePath file path,eg:hertzbeat/111.json diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/PluginService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/PluginService.java index 2fe3e5041c5..8b747450940 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/PluginService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/PluginService.java @@ -17,13 +17,16 @@ package org.apache.hertzbeat.manager.service; +import java.util.List; import java.util.Set; +import java.util.function.BiConsumer; import java.util.function.Consumer; import org.apache.hertzbeat.common.entity.dto.PluginUpload; import org.apache.hertzbeat.common.entity.manager.PluginMetadata; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; +import org.apache.hertzbeat.manager.pojo.dto.PluginParam; +import org.apache.hertzbeat.manager.pojo.dto.PluginParametersVO; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; /** * plugin service @@ -47,11 +50,12 @@ public interface PluginService { /** * get plugin page list * - * @param specification Query condition - * @param pageRequest Paging condition + * @param search plugin name search + * @param pageIndex List current page + * @param pageSize Number of list pagination * @return Plugins */ - Page getPlugins(Specification specification, PageRequest pageRequest); + Page getPlugins(String search, int pageIndex, int pageSize); /** * execute plugin @@ -61,6 +65,17 @@ public interface PluginService { */ void pluginExecute(Class clazz, Consumer execute); + + /** + * execute plugin + * + * @param clazz plugin interface + * @param execute run plugin logic + * @param plugin type + */ + void pluginExecute(Class clazz, BiConsumer execute); + + /** * delete plugin * @@ -70,4 +85,16 @@ public interface PluginService { void updateStatus(PluginMetadata plugin); + /** + * get param define + * @param pluginMetadataId plugin id + */ + PluginParametersVO getParamDefine(Long pluginMetadataId); + + /** + * save plugin param + * @param params params + */ + void savePluginParam(List params); + } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/TagService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/TagService.java index e6d6c5f8879..4e9f399cbad 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/TagService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/TagService.java @@ -23,8 +23,6 @@ import org.apache.hertzbeat.common.entity.manager.Monitor; import org.apache.hertzbeat.common.entity.manager.Tag; import org.springframework.data.domain.Page; -import org.springframework.data.domain.PageRequest; -import org.springframework.data.jpa.domain.Specification; /** * tag service @@ -45,11 +43,13 @@ public interface TagService { /** * get tag page list - * @param specification Query condition - * @param pageRequest Paging condition + * @param search Tag content search + * @param type Tag type + * @param pageIndex List current page + * @param pageSize Number of list pagination * @return Tags */ - Page getTags(Specification specification, PageRequest pageRequest); + Page getTags(String search, Byte type, int pageIndex, int pageSize); /** * delete tags diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/AiService.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AiService.java similarity index 96% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/AiService.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AiService.java index 22ccd55d799..de8e683ed91 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/AiService.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AiService.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service; +package org.apache.hertzbeat.manager.service.ai; import org.apache.hertzbeat.common.constants.AiTypeEnum; diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AlibabaAiServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AlibabaAiServiceImpl.java similarity index 56% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AlibabaAiServiceImpl.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AlibabaAiServiceImpl.java index 07b4881ca9e..0f0fc339be3 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AlibabaAiServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/AlibabaAiServiceImpl.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service.impl; +package org.apache.hertzbeat.manager.service.ai; import java.util.List; import java.util.Objects; @@ -23,11 +23,11 @@ import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.AiConstants; import org.apache.hertzbeat.common.constants.AiTypeEnum; +import org.apache.hertzbeat.manager.config.AiProperties; import org.apache.hertzbeat.manager.pojo.dto.AiMessage; import org.apache.hertzbeat.manager.pojo.dto.AliAiRequestParamDTO; import org.apache.hertzbeat.manager.pojo.dto.AliAiResponse; -import org.apache.hertzbeat.manager.service.AiService; -import org.springframework.beans.factory.annotation.Value; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; @@ -45,15 +45,12 @@ * alibaba Ai */ @Service("AlibabaAiServiceImpl") -@ConditionalOnProperty(prefix = "ai", name = "api-key", matchIfMissing = false) +@ConditionalOnProperty(prefix = "ai", name = "type", havingValue = "alibabaAi") @Slf4j public class AlibabaAiServiceImpl implements AiService { - @Value("${ai.model:qwen-turbo}") - private String model; - @Value("${ai.api-key}") - private String apiKey; - + @Autowired + private AiProperties aiProperties; private WebClient webClient; @@ -62,7 +59,7 @@ private void init() { this.webClient = WebClient.builder() .baseUrl(AiConstants.AliAiConstants.URL) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) - .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + apiKey) + .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + aiProperties.getApiKey()) //sse .defaultHeader(HttpHeaders.ACCEPT, MediaType.TEXT_EVENT_STREAM_VALUE) .exchangeStrategies(ExchangeStrategies.builder() @@ -78,52 +75,46 @@ public AiTypeEnum getType() { @Override public Flux> requestAi(String text) { - checkParam(text, apiKey); - try { - AliAiRequestParamDTO aliAiRequestParamDTO = AliAiRequestParamDTO.builder() - .model(model) - .input(AliAiRequestParamDTO.Input.builder() - .messages(List.of(new AiMessage(AiConstants.AliAiConstants.REQUEST_ROLE, text))) - .build()) - .parameters(AliAiRequestParamDTO.Parameters.builder() - .maxTokens(AiConstants.AliAiConstants.MAX_TOKENS) - .temperature(AiConstants.AliAiConstants.TEMPERATURE) - .enableSearch(true) - .resultFormat("message") - .incrementalOutput(true) - .build()) - .build(); + checkParam(text, aiProperties.getModel(), aiProperties.getApiKey()); + AliAiRequestParamDTO aliAiRequestParamDTO = AliAiRequestParamDTO.builder() + .model(aiProperties.getModel()) + .input(AliAiRequestParamDTO.Input.builder() + .messages(List.of(new AiMessage(AiConstants.AliAiConstants.REQUEST_ROLE, text))) + .build()) + .parameters(AliAiRequestParamDTO.Parameters.builder() + .maxTokens(AiConstants.AliAiConstants.MAX_TOKENS) + .temperature(AiConstants.AliAiConstants.TEMPERATURE) + .enableSearch(true) + .resultFormat("message") + .incrementalOutput(true) + .build()) + .build(); - return webClient.post() - .body(BodyInserters.fromValue(aliAiRequestParamDTO)) - .retrieve() - .bodyToFlux(AliAiResponse.class) - .map(aliAiResponse -> { - if (Objects.nonNull(aliAiResponse)) { - List choices = aliAiResponse.getOutput().getChoices(); - if (CollectionUtils.isEmpty(choices)) { - return ServerSentEvent.builder().build(); - } - String content = choices.get(0).getMessage().getContent(); - return ServerSentEvent.builder() - .data(content) - .build(); + return webClient.post() + .body(BodyInserters.fromValue(aliAiRequestParamDTO)) + .retrieve() + .bodyToFlux(AliAiResponse.class) + .map(aliAiResponse -> { + if (Objects.nonNull(aliAiResponse)) { + List choices = aliAiResponse.getOutput().getChoices(); + if (CollectionUtils.isEmpty(choices)) { + return ServerSentEvent.builder().build(); } - return ServerSentEvent.builder().build(); - }) - .doOnError(error -> log.info("AiResponse Exception:{}", error.toString())); - - } catch (Exception e) { - log.info("KimiAiServiceImpl.requestAi exception:{}", e.toString()); - throw e; - } - + String content = choices.get(0).getMessage().getContent(); + return ServerSentEvent.builder() + .data(content) + .build(); + } + return ServerSentEvent.builder().build(); + }) + .doOnError(error -> log.info("AlibabaAiServiceImpl.requestAi exception:{}", error.getMessage())); } - private void checkParam(String param, String apiKey) { + private void checkParam(String param, String apiKey, String model) { Assert.notNull(param, "text is null"); + Assert.notNull(model, "model is null"); Assert.notNull(apiKey, "ai.api-key is null"); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/KimiAiServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/KimiAiServiceImpl.java similarity index 64% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/impl/KimiAiServiceImpl.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/KimiAiServiceImpl.java index f4efc1f6b1e..031a33271b3 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/KimiAiServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/KimiAiServiceImpl.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service.impl; +package org.apache.hertzbeat.manager.service.ai; import java.util.List; import javax.annotation.PostConstruct; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.AiConstants; import org.apache.hertzbeat.common.constants.AiTypeEnum; +import org.apache.hertzbeat.manager.config.AiProperties; import org.apache.hertzbeat.manager.pojo.dto.AiMessage; import org.apache.hertzbeat.manager.pojo.dto.OpenAiRequestParamDTO; import org.apache.hertzbeat.manager.pojo.dto.OpenAiResponse; -import org.apache.hertzbeat.manager.service.AiService; -import org.springframework.beans.factory.annotation.Value; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; @@ -42,15 +42,12 @@ * Kimi Ai */ @Service("KimiAiServiceImpl") -@ConditionalOnProperty(prefix = "ai", name = "api-key", matchIfMissing = false) +@ConditionalOnProperty(prefix = "ai", name = "type", havingValue = "kimiAi") @Slf4j public class KimiAiServiceImpl implements AiService { - @Value("${ai.model:moonshot-v1-8k}") - private String model; - - @Value("${ai.api-key}") - private String apiKey; + @Autowired + private AiProperties aiProperties; private WebClient webClient; @@ -59,7 +56,7 @@ private void init() { this.webClient = WebClient.builder() .baseUrl(AiConstants.KimiAiConstants.URL) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) - .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + apiKey) + .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + aiProperties.getApiKey()) .exchangeStrategies(ExchangeStrategies.builder() .codecs(item -> item.defaultCodecs().maxInMemorySize(16 * 1024 * 1024)) .build()) @@ -73,36 +70,28 @@ public AiTypeEnum getType() { @Override public Flux> requestAi(String text) { - try { - checkParam(text, apiKey); - OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() - .model(model) - .stream(Boolean.TRUE) - .maxTokens(AiConstants.KimiAiConstants.MAX_TOKENS) - .temperature(AiConstants.KimiAiConstants.TEMPERATURE) - .messages(List.of(new AiMessage(AiConstants.KimiAiConstants.REQUEST_ROLE, text))) - .build(); - - - return webClient.post() - .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) - .retrieve() - .bodyToFlux(String.class) - .filter(aiResponse -> !"[DONE]".equals(aiResponse)) - .map(OpenAiResponse::convertToResponse) - .doOnError(error -> log.info("AiResponse Exception:{}", error.toString())); - - - } catch (Exception e) { - log.info("KimiAiServiceImpl.requestAi exception:{}", e.toString()); - throw e; - } + checkParam(text, aiProperties.getModel(), aiProperties.getApiKey()); + OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() + .model(aiProperties.getModel()) + .stream(Boolean.TRUE) + .maxTokens(AiConstants.KimiAiConstants.MAX_TOKENS) + .temperature(AiConstants.KimiAiConstants.TEMPERATURE) + .messages(List.of(new AiMessage(AiConstants.KimiAiConstants.REQUEST_ROLE, text))) + .build(); + return webClient.post() + .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) + .retrieve() + .bodyToFlux(String.class) + .filter(aiResponse -> !"[DONE]".equals(aiResponse)) + .map(OpenAiResponse::convertToResponse) + .doOnError(error -> log.info("KimiAiServiceImpl.requestAi exception:{}", error.getMessage())); } - private void checkParam(String param, String apiKey) { + private void checkParam(String param, String model, String apiKey) { Assert.notNull(param, "text is null"); + Assert.notNull(model, "model is null"); Assert.notNull(apiKey, "ai.api-key is null"); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SparkDeskAiServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/SparkDeskAiServiceImpl.java similarity index 63% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SparkDeskAiServiceImpl.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/SparkDeskAiServiceImpl.java index 9167ed2d9a2..4c2520f63a0 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SparkDeskAiServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/SparkDeskAiServiceImpl.java @@ -15,18 +15,18 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service.impl; +package org.apache.hertzbeat.manager.service.ai; import java.util.List; import javax.annotation.PostConstruct; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.AiConstants; import org.apache.hertzbeat.common.constants.AiTypeEnum; +import org.apache.hertzbeat.manager.config.AiProperties; import org.apache.hertzbeat.manager.pojo.dto.AiMessage; import org.apache.hertzbeat.manager.pojo.dto.OpenAiRequestParamDTO; import org.apache.hertzbeat.manager.pojo.dto.OpenAiResponse; -import org.apache.hertzbeat.manager.service.AiService; -import org.springframework.beans.factory.annotation.Value; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; @@ -43,24 +43,23 @@ * sparkDesk AI */ @Service("SparkDeskAiServiceImpl") -@ConditionalOnProperty(prefix = "ai", name = {"api-key", "api-secret"}, matchIfMissing = false) +@ConditionalOnProperty(prefix = "ai", name = "type", havingValue = "sparkDesk") @Slf4j public class SparkDeskAiServiceImpl implements AiService { - @Value("${ai.model:generalv3.5}") - private String model; - @Value("${ai.api-key}") - private String apiKey; - @Value("${ai.api-secret}") - private String apiSecret; + @Autowired + private AiProperties aiProperties; private WebClient webClient; @PostConstruct private void init() { StringBuilder sb = new StringBuilder(); - String bearer = sb.append("Bearer ").append(apiKey).append(":").append(apiSecret).toString(); + String bearer = sb.append("Bearer ") + .append(aiProperties.getApiKey()) + .append(":").append(aiProperties.getApiSecret()).toString(); + this.webClient = WebClient.builder() .baseUrl(AiConstants.SparkDeskConstants.SPARK_ULTRA_URL) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) @@ -78,32 +77,29 @@ public AiTypeEnum getType() { @Override public Flux> requestAi(String text) { + checkParam(text, aiProperties.getApiKey(), aiProperties.getModel()); + OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() + .model(aiProperties.getModel()) + //sse + .stream(Boolean.TRUE) + .maxTokens(AiConstants.SparkDeskConstants.MAX_TOKENS) + .temperature(AiConstants.SparkDeskConstants.TEMPERATURE) + .messages(List.of(new AiMessage(AiConstants.SparkDeskConstants.REQUEST_ROLE, text))) + .build(); - try { - checkParam(text, apiKey); - OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() - .model(model) - //sse - .stream(Boolean.TRUE) - .maxTokens(AiConstants.SparkDeskConstants.MAX_TOKENS) - .temperature(AiConstants.SparkDeskConstants.TEMPERATURE) - .messages(List.of(new AiMessage(AiConstants.SparkDeskConstants.REQUEST_ROLE, text))) - .build(); + return webClient.post() + .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) + .retrieve() + .bodyToFlux(String.class) + .filter(aiResponse -> !"[DONE]".equals(aiResponse)) + .map(OpenAiResponse::convertToResponse) + .doOnError(error -> log.info("SparkDeskAiServiceImpl.requestAi exception:{}", error.getMessage())); - return webClient.post() - .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) - .retrieve() - .bodyToFlux(String.class) - .filter(aiResponse -> !"[DONE]".equals(aiResponse)) - .map(OpenAiResponse::convertToResponse); - } catch (Exception e) { - log.info("SparkDeskAiServiceImpl.requestAi exception:{}", e.toString()); - throw e; - } } - private void checkParam(String param, String apiKey) { + private void checkParam(String param, String apiKey, String model) { Assert.notNull(param, "text is null"); + Assert.notNull(model, "model is null"); Assert.notNull(apiKey, "ai.api-key is null"); } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ZhiPuServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/ZhiPuServiceImpl.java similarity index 65% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ZhiPuServiceImpl.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/ZhiPuServiceImpl.java index 543e78df690..75a55f1b8cd 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ZhiPuServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/ZhiPuServiceImpl.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service.impl; +package org.apache.hertzbeat.manager.service.ai; import java.util.List; @@ -23,11 +23,11 @@ import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.AiConstants; import org.apache.hertzbeat.common.constants.AiTypeEnum; +import org.apache.hertzbeat.manager.config.AiProperties; import org.apache.hertzbeat.manager.pojo.dto.AiMessage; import org.apache.hertzbeat.manager.pojo.dto.OpenAiRequestParamDTO; import org.apache.hertzbeat.manager.pojo.dto.OpenAiResponse; -import org.apache.hertzbeat.manager.service.AiService; -import org.springframework.beans.factory.annotation.Value; +import org.springframework.beans.factory.annotation.Autowired; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.http.HttpHeaders; import org.springframework.http.MediaType; @@ -44,23 +44,21 @@ * ZhiPu AI */ @Service("ZhiPuServiceImpl") -@ConditionalOnProperty(prefix = "ai", name = "api-key", matchIfMissing = false) +@ConditionalOnProperty(prefix = "ai", name = "type", havingValue = "zhiPu") @Slf4j public class ZhiPuServiceImpl implements AiService { - @Value("${ai.model:glm-4}") - private String model; - @Value("${ai.api-key}") - private String apiKey; - private WebClient webClient; + @Autowired + private AiProperties aiProperties; + private WebClient webClient; @PostConstruct private void init() { this.webClient = WebClient.builder() .baseUrl(AiConstants.ZhiPuConstants.URL) .defaultHeader(HttpHeaders.CONTENT_TYPE, MediaType.APPLICATION_JSON_VALUE) - .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + apiKey) + .defaultHeader(HttpHeaders.AUTHORIZATION, "Bearer " + aiProperties.getApiKey()) .exchangeStrategies(ExchangeStrategies.builder() .codecs(item -> item.defaultCodecs().maxInMemorySize(16 * 1024 * 1024)) .build()) @@ -74,33 +72,28 @@ public AiTypeEnum getType() { @Override public Flux> requestAi(String text) { - try { - checkParam(text, model, apiKey); - OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() - .model(model) - //sse - .stream(Boolean.TRUE) - .maxTokens(AiConstants.ZhiPuConstants.MAX_TOKENS) - .temperature(AiConstants.ZhiPuConstants.TEMPERATURE) - .messages(List.of(new AiMessage(AiConstants.ZhiPuConstants.REQUEST_ROLE, text))) - .build(); - - return webClient.post() - .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) - .retrieve() - .bodyToFlux(String.class) - .filter(aiResponse -> !"[DONE]".equals(aiResponse)) - .map(OpenAiResponse::convertToResponse) - .doOnError(error -> log.info("AiResponse Exception:{}", error.toString())); + checkParam(text, aiProperties.getModel(), aiProperties.getApiKey()); + OpenAiRequestParamDTO zhiPuRequestParamDTO = OpenAiRequestParamDTO.builder() + .model(aiProperties.getModel()) + //sse + .stream(Boolean.TRUE) + .maxTokens(AiConstants.ZhiPuConstants.MAX_TOKENS) + .temperature(AiConstants.ZhiPuConstants.TEMPERATURE) + .messages(List.of(new AiMessage(AiConstants.ZhiPuConstants.REQUEST_ROLE, text))) + .build(); - } catch (Exception e) { - log.info("ZhiPuServiceImpl.requestAi exception:{}", e.toString()); - throw e; - } + return webClient.post() + .body(BodyInserters.fromValue(zhiPuRequestParamDTO)) + .retrieve() + .bodyToFlux(String.class) + .filter(aiResponse -> !"[DONE]".equals(aiResponse)) + .map(OpenAiResponse::convertToResponse) + .doOnError(error -> log.info("ZhiPuServiceImpl.requestAi exception:{}", error.getMessage())); } private void checkParam(String param, String model, String apiKey) { Assert.notNull(param, "text is null"); + Assert.notNull(model, "model is null"); Assert.notNull(apiKey, "ai.api-key is null"); } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AiServiceFactoryImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/factory/AiServiceFactoryImpl.java similarity index 79% rename from manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AiServiceFactoryImpl.java rename to manager/src/main/java/org/apache/hertzbeat/manager/service/ai/factory/AiServiceFactoryImpl.java index 55a752f2f82..8e0954c7adb 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AiServiceFactoryImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/ai/factory/AiServiceFactoryImpl.java @@ -15,7 +15,7 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.service.impl; +package org.apache.hertzbeat.manager.service.ai.factory; import java.util.HashMap; import java.util.List; @@ -24,24 +24,30 @@ import java.util.stream.Collectors; import javax.annotation.PostConstruct; import org.apache.hertzbeat.common.constants.AiTypeEnum; -import org.apache.hertzbeat.manager.service.AiService; +import org.apache.hertzbeat.manager.service.ai.AiService; import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.stereotype.Component; import org.springframework.util.Assert; +import org.springframework.util.CollectionUtils; /** * AI bean factory */ @Component +@ConditionalOnProperty(prefix = "ai", name = "type") public class AiServiceFactoryImpl { - @Autowired + @Autowired(required = false) private List aiService; private Map aiServiceFactoryMap = new HashMap<>(); @PostConstruct public void init() { + if (CollectionUtils.isEmpty(aiService)) { + return; + } aiServiceFactoryMap = aiService.stream() .collect(Collectors.toMap(AiService::getType, Function.identity())); } @@ -49,7 +55,7 @@ public void init() { public AiService getAiServiceImplBean(String type) { Assert.notNull(type, "type is null"); AiTypeEnum typeByName = AiTypeEnum.getTypeByName(type); - Assert.notNull(typeByName, "The current type is not supported"); + Assert.notNull(typeByName, "The current type is not supported,please check that your type value is consistent with the documentation on the website"); AiService aiServiceImpl = aiServiceFactoryMap.get(typeByName); Assert.notNull(aiServiceImpl, "No bean for current type found"); return aiServiceImpl; diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AbstractImExportServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AbstractImExportServiceImpl.java index 1d1a682424d..5c6ee688f04 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AbstractImExportServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AbstractImExportServiceImpl.java @@ -48,7 +48,7 @@ * class AbstractImExportServiceImpl */ @Slf4j -abstract class AbstractImExportServiceImpl implements ImExportService { +public abstract class AbstractImExportServiceImpl implements ImExportService { @Resource @Lazy @@ -62,7 +62,7 @@ public void importConfig(InputStream is) { var formList = parseImport(is) .stream() .map(this::convert) - .collect(Collectors.toUnmodifiableList()); + .toList(); if (!CollectionUtils.isEmpty(formList)) { formList.forEach(monitorDto -> { monitorService.validate(monitorDto, false); @@ -80,7 +80,7 @@ public void exportConfig(OutputStream os, List configList) { .map(it -> monitorService.getMonitorDto(it)) .filter(Objects::nonNull) .map(this::convert) - .collect(Collectors.toUnmodifiableList()); + .toList(); writeOs(monitorList, os); } @@ -173,7 +173,7 @@ protected String fileNamePrefix() { @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) @ExcelTarget(value = "ExportMonitorDTO") - protected static class ExportMonitorDTO { + public static class ExportMonitorDTO { @ExcelEntity(name = "Monitor") private MonitorDTO monitor; @ExcelCollection(name = "Params") @@ -184,12 +184,11 @@ protected static class ExportMonitorDTO { private Boolean detected; } - @Data @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) @ExcelTarget(value = "MonitorDTO") - protected static class MonitorDTO { + public static class MonitorDTO { @Excel(name = "Name") private String name; @Excel(name = "App") @@ -208,12 +207,11 @@ protected static class MonitorDTO { private String collector; } - @Data @JsonInclude(JsonInclude.Include.NON_NULL) @JsonIgnoreProperties(ignoreUnknown = true) @ExcelTarget(value = "ParamDTO") - protected static class ParamDTO { + public static class ParamDTO { @Excel(name = "Field") private String field; @Excel(name = "Type") @@ -222,5 +220,4 @@ protected static class ParamDTO { private String value; } - } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AccountServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AccountServiceImpl.java new file mode 100644 index 00000000000..7d14d6234df --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AccountServiceImpl.java @@ -0,0 +1,111 @@ +/* + * 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.hertzbeat.manager.service.impl; + +import com.usthe.sureness.provider.SurenessAccount; +import com.usthe.sureness.provider.SurenessAccountProvider; +import com.usthe.sureness.provider.ducument.DocumentAccountProvider; +import com.usthe.sureness.util.JsonWebTokenUtil; +import com.usthe.sureness.util.Md5Util; +import io.jsonwebtoken.Claims; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import javax.naming.AuthenticationException; +import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.manager.pojo.dto.LoginDto; +import org.apache.hertzbeat.manager.pojo.dto.RefreshTokenResponse; +import org.apache.hertzbeat.manager.service.AccountService; +import org.springframework.core.Ordered; +import org.springframework.core.annotation.Order; +import org.springframework.stereotype.Service; + +/** + * Implementation of Account service + */ +@Service +@Order(value = Ordered.HIGHEST_PRECEDENCE) +@Slf4j +public class AccountServiceImpl implements AccountService { + /** + * Token validity time in seconds + */ + private static final long PERIOD_TIME = 3600L; + /** + * account data provider + */ + private final SurenessAccountProvider accountProvider = new DocumentAccountProvider(); + + @Override + public Map authGetToken(LoginDto loginDto) throws AuthenticationException { + SurenessAccount account = accountProvider.loadAccount(loginDto.getIdentifier()); + if (account == null || StringUtils.isBlank(account.getPassword())) { + throw new AuthenticationException("Incorrect Account or Password"); + } else { + String password = loginDto.getCredential(); + if (StringUtils.isNotBlank(account.getSalt())) { + password = Md5Util.md5(password + account.getSalt()); + } + if (!account.getPassword().equals(password)) { + throw new AuthenticationException("Incorrect Account or Password"); + } + if (account.isDisabledAccount() || account.isExcessiveAttempts()) { + throw new AuthenticationException("Expired or Illegal Account"); + } + } + // Get the roles the user has - rbac + List roles = account.getOwnRoles(); + // Issue TOKEN + String issueToken = JsonWebTokenUtil.issueJwt(loginDto.getIdentifier(), PERIOD_TIME, roles); + Map customClaimMap = new HashMap<>(1); + customClaimMap.put("refresh", true); + String issueRefresh = JsonWebTokenUtil.issueJwt(loginDto.getIdentifier(), PERIOD_TIME << 5, customClaimMap); + Map resp = new HashMap<>(2); + resp.put("token", issueToken); + resp.put("refreshToken", issueRefresh); + resp.put("role", JsonUtil.toJson(roles)); + + return resp; + } + + @Override + public RefreshTokenResponse refreshToken(String refreshToken) throws AuthenticationException { + Claims claims = JsonWebTokenUtil.parseJwt(refreshToken); + String userId = String.valueOf(claims.getSubject()); + boolean isRefresh = claims.get("refresh", Boolean.class); + if (StringUtils.isBlank(userId) || !isRefresh) { + throw new AuthenticationException("Illegal Refresh Token"); + } + SurenessAccount account = accountProvider.loadAccount(userId); + if (account == null) { + throw new AuthenticationException("Not Exists This Token Mapping Account"); + } + List roles = account.getOwnRoles(); + String issueToken = issueToken(userId, roles, PERIOD_TIME); + String issueRefresh = issueToken(userId, roles, PERIOD_TIME << 5); + return new RefreshTokenResponse(issueToken, issueRefresh); + } + + private String issueToken(String userId, List roles, long expirationMillis) { + Map customClaimMap = new HashMap<>(1); + customClaimMap.put("refresh", true); + return JsonWebTokenUtil.issueJwt(userId, expirationMillis, roles, customClaimMap); + } +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AppServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AppServiceImpl.java index a8973986888..d2537515be2 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AppServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/AppServiceImpl.java @@ -38,17 +38,21 @@ import lombok.extern.slf4j.Slf4j; import org.apache.commons.io.FileUtils; import org.apache.commons.io.IOUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.collector.util.CollectUtil; import org.apache.hertzbeat.common.entity.job.Configmap; import org.apache.hertzbeat.common.entity.job.Job; import org.apache.hertzbeat.common.entity.job.Metrics; +import org.apache.hertzbeat.common.entity.manager.Define; import org.apache.hertzbeat.common.entity.manager.Monitor; import org.apache.hertzbeat.common.entity.manager.Param; import org.apache.hertzbeat.common.entity.manager.ParamDefine; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.support.SpringContextHolder; +import org.apache.hertzbeat.common.support.exception.CommonException; import org.apache.hertzbeat.common.util.CommonUtil; +import org.apache.hertzbeat.manager.dao.DefineDao; import org.apache.hertzbeat.manager.dao.MonitorDao; import org.apache.hertzbeat.manager.dao.ParamDao; import org.apache.hertzbeat.manager.pojo.dto.Hierarchy; @@ -67,7 +71,6 @@ import org.springframework.stereotype.Service; import org.springframework.util.Assert; import org.springframework.util.StreamUtils; -import org.springframework.util.StringUtils; import org.yaml.snakeyaml.Yaml; /** @@ -89,6 +92,9 @@ public class AppServiceImpl implements AppService, CommandLineRunner { @Resource private ParamDao paramDao; + + @Resource + private DefineDao defineDao; @Resource private WarehouseService warehouseService; @@ -100,15 +106,13 @@ public class AppServiceImpl implements AppService, CommandLineRunner { @Override public List getAppParamDefines(String app) { - if (!StringUtils.hasText(app)) { - return Collections.emptyList(); - } - var appDefine = appDefines.get(app.toLowerCase()); - if (appDefine != null && appDefine.getParams() != null) { - return appDefine.getParams(); - } else { - return Collections.emptyList(); + if (StringUtils.isNotBlank(app)){ + var appDefine = appDefines.get(app.toLowerCase()); + if (appDefine != null && appDefine.getParams() != null) { + return appDefine.getParams(); + } } + return Collections.emptyList(); } @Override @@ -124,7 +128,7 @@ public Job getPushDefine(Long monitorId) throws IllegalArgumentException { List params = paramDao.findParamsByMonitorId(monitorId); List configmaps = params.stream() .map(param -> new Configmap(param.getField(), param.getParamValue(), - param.getType())).collect(Collectors.toList()); + param.getType())).toList(); Map configmap = configmaps.stream().collect(Collectors.toMap(Configmap::getKey, item -> item, (key1, key2) -> key1)); CollectUtil.replaceFieldsForPushStyleMonitor(metric, configmap); metricsTmp.add(metric); @@ -164,7 +168,7 @@ public Job getAutoGenerateDynamicDefine(Long monitorId) { @Override public Job getAppDefine(String app) throws IllegalArgumentException { - if (!StringUtils.hasText(app)) { + if (StringUtils.isBlank(app)) { throw new IllegalArgumentException("The app can not null."); } var appDefine = appDefines.get(app.toLowerCase()); @@ -176,7 +180,7 @@ public Job getAppDefine(String app) throws IllegalArgumentException { @Override public Optional getAppDefineOption(String app) { - if (StringUtils.hasText(app)) { + if (StringUtils.isNotBlank(app)) { Job appDefine = appDefines.get(app.toLowerCase()); return Optional.ofNullable(appDefine); } @@ -186,15 +190,15 @@ public Optional getAppDefineOption(String app) { @Override public List getAppDefineMetricNames(String app) { List metricNames = new ArrayList<>(16); - if (StringUtils.hasLength(app)) { + if (StringUtils.isNotBlank(app)) { var appDefine = appDefines.get(app.toLowerCase()); if (appDefine == null) { throw new IllegalArgumentException("The app " + app + " not support."); } - metricNames.addAll(appDefine.getMetrics().stream().map(Metrics::getName).collect(Collectors.toList())); + metricNames.addAll(appDefine.getMetrics().stream().map(Metrics::getName).toList()); } else { appDefines.forEach((k, v) -> - metricNames.addAll(v.getMetrics().stream().map(Metrics::getName).collect(Collectors.toList()))); + metricNames.addAll(v.getMetrics().stream().map(Metrics::getName).toList())); } return metricNames; } @@ -207,7 +211,7 @@ public Map getI18nResources(String lang) { var name = job.getName(); var i18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, name); if (i18nName != null) { - i18nMap.put("monitor.app." + job.getApp(), i18nName); + i18nMap.put("monitor.app." + job.getApp().toLowerCase(), i18nName); } var help = job.getHelp(); var i18nHelp = CommonUtil.getLangMappingValueFromI18nMap(lang, help); @@ -249,6 +253,20 @@ public Map getI18nResources(String lang) { return i18nMap; } + @Override + public Map getI18nApps(String lang) { + Map i18nMap = new HashMap<>(128); + for (var job : appDefines.values()) { + var name = job.getName(); + var i18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, name); + if (i18nName != null) { + i18nMap.put(job.getApp(), i18nName); + } + } + return i18nMap; + } + + @Override public List getAllAppHierarchy(String lang) { LinkedList hierarchies = new LinkedList<>(); @@ -257,82 +275,104 @@ public List getAllAppHierarchy(String lang) { if (DispatchConstants.PROTOCOL_PUSH.equalsIgnoreCase(job.getApp())) { continue; } - var hierarchyApp = new Hierarchy(); - hierarchyApp.setCategory(job.getCategory()); - hierarchyApp.setValue(job.getApp()); - hierarchyApp.setHide(job.isHide()); - var nameMap = job.getName(); - if (nameMap != null && !nameMap.isEmpty()) { - var i18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, nameMap); - if (i18nName != null) { - hierarchyApp.setLabel(i18nName); - } + queryAppHierarchy(lang, hierarchies, job); + } + return hierarchies; + } + + @Override + public List getAppHierarchy(String app, String lang) { + LinkedList hierarchies = new LinkedList<>(); + Job job = appDefines.get(app.toLowerCase()); + // TODO temporarily filter out push to solve the front-end problem, and open it after the subsequent design optimization + if (DispatchConstants.PROTOCOL_PUSH.equalsIgnoreCase(job.getApp())) { + return hierarchies; + } + queryAppHierarchy(lang, hierarchies, job); + return hierarchies; + } + + private void queryAppHierarchy(String lang, LinkedList hierarchies, Job job) { + var hierarchyApp = new Hierarchy(); + hierarchyApp.setCategory(job.getCategory()); + hierarchyApp.setValue(job.getApp()); + hierarchyApp.setHide(job.isHide()); + var nameMap = job.getName(); + if (nameMap != null && !nameMap.isEmpty()) { + var i18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, nameMap); + if (i18nName != null) { + hierarchyApp.setLabel(i18nName); } - List hierarchyMetricList = new LinkedList<>(); - if (DispatchConstants.PROTOCOL_PROMETHEUS.equalsIgnoreCase(job.getApp())) { - List monitors = monitorDao.findMonitorsByAppEquals(job.getApp()); - for (Monitor monitor : monitors) { - List metricsDataList = warehouseService.queryMonitorMetricsData(monitor.getId()); - for (CollectRep.MetricsData metricsData : metricsDataList) { - var hierarchyMetric = new Hierarchy(); - hierarchyMetric.setValue(metricsData.getMetrics()); - hierarchyMetric.setLabel(metricsData.getMetrics()); - List hierarchyFieldList = metricsData.getFieldsList().stream() - .map(item -> { - var hierarchyField = new Hierarchy(); - hierarchyField.setValue(item.getName()); - hierarchyField.setLabel(item.getName()); - hierarchyField.setIsLeaf(true); - hierarchyField.setType((byte) item.getType()); - hierarchyField.setUnit(item.getUnit()); - return hierarchyField; - }).collect(Collectors.toList()); - hierarchyMetric.setChildren(hierarchyFieldList); - // combine Hierarchy Metrics - combineHierarchyMetrics(hierarchyMetricList, hierarchyMetric); - } - } - hierarchyApp.setChildren(hierarchyMetricList); - hierarchies.addFirst(hierarchyApp); - } else { - if (job.getMetrics() != null) { - for (var metrics : job.getMetrics()) { - var hierarchyMetric = new Hierarchy(); - hierarchyMetric.setValue(metrics.getName()); - var metricsI18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, metrics.getI18n()); - hierarchyMetric.setLabel(metricsI18nName != null ? metricsI18nName : metrics.getName()); - List hierarchyFieldList = new LinkedList<>(); - if (metrics.getFields() != null) { - for (var field : metrics.getFields()) { + } + List hierarchyMetricList = new LinkedList<>(); + if (DispatchConstants.PROTOCOL_PROMETHEUS.equalsIgnoreCase(job.getApp())) { + List monitors = monitorDao.findMonitorsByAppEquals(job.getApp()); + for (Monitor monitor : monitors) { + List metricsDataList = warehouseService.queryMonitorMetricsData(monitor.getId()); + for (CollectRep.MetricsData metricsData : metricsDataList) { + var hierarchyMetric = new Hierarchy(); + hierarchyMetric.setValue(metricsData.getMetrics()); + hierarchyMetric.setLabel(metricsData.getMetrics()); + List hierarchyFieldList = metricsData.getFieldsList().stream() + .map(item -> { var hierarchyField = new Hierarchy(); - hierarchyField.setValue(field.getField()); - var metricI18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, field.getI18n()); - hierarchyField.setLabel(metricI18nName != null ? metricI18nName : field.getField()); + hierarchyField.setValue(item.getName()); + hierarchyField.setLabel(item.getName()); hierarchyField.setIsLeaf(true); - // for metric - hierarchyField.setType(field.getType()); - hierarchyField.setUnit(field.getUnit()); - hierarchyFieldList.add(hierarchyField); - } - hierarchyMetric.setChildren(hierarchyFieldList); + hierarchyField.setType((byte) item.getType()); + hierarchyField.setUnit(item.getUnit()); + return hierarchyField; + }).collect(Collectors.toList()); + hierarchyMetric.setChildren(hierarchyFieldList); + // combine Hierarchy Metrics + combineHierarchyMetrics(hierarchyMetricList, hierarchyMetric); + } + } + hierarchyApp.setChildren(hierarchyMetricList); + hierarchies.addFirst(hierarchyApp); + } else { + if (job.getMetrics() != null) { + for (var metrics : job.getMetrics()) { + var hierarchyMetric = new Hierarchy(); + hierarchyMetric.setValue(metrics.getName()); + var metricsI18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, metrics.getI18n()); + hierarchyMetric.setLabel(metricsI18nName != null ? metricsI18nName : metrics.getName()); + List hierarchyFieldList = new LinkedList<>(); + if (metrics.getFields() != null) { + for (var field : metrics.getFields()) { + var hierarchyField = new Hierarchy(); + hierarchyField.setValue(field.getField()); + var metricI18nName = CommonUtil.getLangMappingValueFromI18nMap(lang, field.getI18n()); + hierarchyField.setLabel(metricI18nName != null ? metricI18nName : field.getField()); + hierarchyField.setIsLeaf(true); + // for metric + hierarchyField.setType(field.getType()); + hierarchyField.setUnit(field.getUnit()); + hierarchyFieldList.add(hierarchyField); } - hierarchyMetricList.add(hierarchyMetric); + hierarchyMetric.setChildren(hierarchyFieldList); } + hierarchyMetricList.add(hierarchyMetric); } - hierarchyApp.setChildren(hierarchyMetricList); - hierarchies.add(hierarchyApp); } + hierarchyApp.setChildren(hierarchyMetricList); + hierarchies.add(hierarchyApp); } - return hierarchies; } + private void combineHierarchyMetrics(List hierarchyMetricList, Hierarchy hierarchyMetric) { Optional preHierarchyOptional = hierarchyMetricList.stream() - .filter(item -> item.getValue().equals(hierarchyMetric.getValue())).findFirst(); + .filter(item -> item.getValue().equals(hierarchyMetric.getValue())) + .findFirst(); + if (preHierarchyOptional.isPresent()) { Hierarchy preHierarchy = preHierarchyOptional.get(); List children = preHierarchy.getChildren(); - Set childrenKey = children.stream().map(Hierarchy::getValue).collect(Collectors.toSet()); + Set childrenKey = children.stream() + .map(Hierarchy::getValue) + .collect(Collectors.toSet()); + for (Hierarchy child : hierarchyMetric.getChildren()) { if (!childrenKey.contains(child.getValue())) { children.add(child); @@ -343,6 +383,7 @@ private void combineHierarchyMetrics(List hierarchyMetricList, Hierar } } + @Override public Map getAllAppDefines() { return appDefines; @@ -397,6 +438,21 @@ private void verifyDefineAppContent(Job app, boolean isModify) { Assert.notEmpty(app.getMetrics(), "monitoring template require attributes metrics"); var hasAvailableMetrics = app.getMetrics().stream().anyMatch(item -> item.getPriority() == 0); Assert.isTrue(hasAvailableMetrics, "monitoring template metrics list must have one priority 0 metrics"); + CommonUtil.validDefineI18n(app.getName(), "name"); + CommonUtil.validDefineI18n(app.getHelp(), "help"); + CommonUtil.validDefineI18n(app.getHelpLink(), "helpLink"); + for (ParamDefine param : app.getParams()) { + CommonUtil.validDefineI18n(param.getName(), param.getField() + " param"); + } + for (Metrics metric : app.getMetrics()) { + CommonUtil.validDefineI18n(metric.getI18n(), metric.getName() + " metric"); + if (metric.getFields() == null){ + continue; + } + for (Metrics.Field field : metric.getFields()) { + CommonUtil.validDefineI18n(field.getI18n(), metric.getName() + " metric " + field.getField() + " field"); + } + } if (!isModify) { Assert.isNull(appDefines.get(app.getApp().toLowerCase()), "monitoring template name " + app.getApp() + " already exists."); @@ -422,13 +478,7 @@ public void deleteMonitorDefine(String app) { if (monitors != null && !monitors.isEmpty()) { throw new IllegalArgumentException("Can not delete define which has monitoring instances."); } - var classpath = Objects.requireNonNull(this.getClass().getClassLoader().getResource("")).getPath(); - var defineAppPath = classpath + "define" + File.separator + "app-" + app + ".yml"; - var defineAppFile = new File(defineAppPath); - if (defineAppFile.exists() && defineAppFile.isFile()) { - defineAppFile.delete(); - } - appDefines.remove(app.toLowerCase()); + appDefineStore.delete(app); } @Override @@ -476,6 +526,8 @@ private void refreshStore(ObjectStoreDTO objectStoreConfig) { } else { if (objectStoreConfig.getType() == ObjectStoreDTO.Type.OBS) { appDefineStore = new ObjectStoreAppDefineStoreImpl(); + } else if (objectStoreConfig.getType() == ObjectStoreDTO.Type.DATABASE){ + appDefineStore = new DatabaseAppDefineStoreImpl(); } else { appDefineStore = new LocalFileAppDefineStoreImpl(); } @@ -504,6 +556,7 @@ private interface AppDefineStore { void save(String app, String ymlContent); + void delete(String app); } private class JarAppDefineStoreImpl implements AppDefineStore { @@ -550,6 +603,11 @@ public void save(String app, String ymlContent) { throw new UnsupportedOperationException(); } + @Override + public void delete(String app) { + throw new UnsupportedOperationException("define yml inside jars cannot be deleted"); + } + } private class LocalFileAppDefineStoreImpl implements AppDefineStore { @@ -626,6 +684,22 @@ public void save(String app, String ymlContent) { throw new RuntimeException("flush file " + defineAppPath + " error: " + e.getMessage()); } } + + @Override + public void delete(String app) { + var classpath = Objects.requireNonNull(this.getClass().getClassLoader().getResource("")).getPath(); + var defineAppPath = classpath + "define" + File.separator + "app-" + app + ".yml"; + var defineAppFile = new File(defineAppPath); + + if (!defineAppFile.exists() && appDefines.containsKey(app.toLowerCase())){ + throw new CommonException("the app define file is not in current file server provider"); + } + + if (defineAppFile.exists() && defineAppFile.isFile()) { + defineAppFile.delete(); + } + appDefines.remove(app.toLowerCase()); + } } private class ObjectStoreAppDefineStoreImpl implements AppDefineStore { @@ -667,6 +741,20 @@ public void save(String app, String ymlContent) { objectStoreService.upload(getDefineAppPath(app), IOUtils.toInputStream(ymlContent, StandardCharsets.UTF_8)); } + @Override + public void delete(String app) { + var objectStoreService = getObjectStoreService(); + String defineAppPath = getDefineAppPath(app); + boolean exist = objectStoreService.isExist(defineAppPath); + if (!exist && appDefines.containsKey(app.toLowerCase())){ + throw new CommonException("the app define file is not in current file server provider"); + } + if (exist){ + objectStoreService.remove(defineAppPath); + } + appDefines.remove(app.toLowerCase()); + } + private ObjectStoreService getObjectStoreService() { return SpringContextHolder.getBean(ObsObjectStoreServiceImpl.class); } @@ -677,4 +765,46 @@ private String getDefineAppPath(String app) { } + private class DatabaseAppDefineStoreImpl implements AppDefineStore { + + @Override + public boolean loadAppDefines() { + Yaml yaml = new Yaml(); + List defines = defineDao.findAll(); + for (Define define : defines) { + var app = yaml.loadAs(define.getContent(), Job.class); + if (app != null){ + appDefines.put(define.getApp().toLowerCase(), app); + } + } + // merge define yml files inside jars + return false; + } + + @Override + public String loadAppDefine(String app) { + Optional defineOptional = defineDao.findById(app); + return defineOptional.map(Define::getContent).orElse(null); + } + + @Override + public void save(String app, String ymlContent) { + Define define = new Define(); + define.setApp(app); + define.setContent(ymlContent); + defineDao.save(define); + } + + @Override + public void delete(String app) { + Optional defineOptional = defineDao.findById(app); + if (defineOptional.isEmpty() && appDefines.containsKey(app.toLowerCase())){ + throw new CommonException("the app define file is not in current file server provider"); + } + if (defineOptional.isPresent()){ + defineDao.deleteById(app); + } + appDefines.remove(app.toLowerCase()); + } + } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java new file mode 100644 index 00000000000..6142df26052 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/BulletinServiceImpl.java @@ -0,0 +1,258 @@ +/* + * 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.hertzbeat.manager.service.impl; + +import com.fasterxml.jackson.core.type.TypeReference; +import java.util.ArrayList; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.TreeMap; +import java.util.stream.Collectors; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.entity.manager.Monitor; +import org.apache.hertzbeat.common.entity.manager.bulletin.Bulletin; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinDto; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinMetricsData; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinVo; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.common.util.SnowFlakeIdGenerator; +import org.apache.hertzbeat.manager.dao.BulletinDao; +import org.apache.hertzbeat.manager.service.BulletinService; +import org.apache.hertzbeat.manager.service.MonitorService; +import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.springframework.beans.factory.annotation.Autowired; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageImpl; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.jpa.domain.Specification; +import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; + +/** + * Bulletin Service Implementation + */ + +@Service +@Slf4j +public class BulletinServiceImpl implements BulletinService { + + private static final String NO_DATA = "No Data"; + + private static final String EMPTY_STRING = ""; + + @Autowired + private BulletinDao bulletinDao; + + @Autowired + private MonitorService monitorService; + + @Autowired + private RealTimeDataReader realTimeDataReader; + + + /** + * validate Bulletin + */ + @Override + public void validate(BulletinDto bulletinDto) throws IllegalArgumentException { + if (bulletinDto == null) { + throw new IllegalArgumentException("Bulletin cannot be null"); + } + if (bulletinDto.getApp() == null || bulletinDto.getApp().isEmpty()) { + throw new IllegalArgumentException("Bulletin app cannot be null or empty"); + } + if (bulletinDto.getFields() == null || bulletinDto.getFields().isEmpty()) { + throw new IllegalArgumentException("Bulletin fields cannot be null or empty"); + } + if (bulletinDto.getMonitorIds() == null || bulletinDto.getMonitorIds().isEmpty()) { + throw new IllegalArgumentException("Bulletin monitorIds cannot be null or empty"); + } + } + + + /** + * Pageable query Bulletin + */ + @Override + public Bulletin getBulletinByName(String name) { + return bulletinDao.findByName(name); + } + + /** + * Get all names + */ + @Override + public List getAllNames() { + return bulletinDao.findAll().stream().map(Bulletin::getName).distinct().toList(); + } + + + /** + * Save Bulletin + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void editBulletin(BulletinDto bulletinDto) { + try { + //TODO: update bulletin + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + /** + * Add Bulletin + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void addBulletin(BulletinDto bulletinDto) { + try { + Bulletin bulletin = new Bulletin(); + bulletin.setName(bulletinDto.getName()); + bulletin.setId(SnowFlakeIdGenerator.generateId()); + Map> map = bulletinDto.getFields(); + Map> sortedMap = new TreeMap<>(map); + String fields = JsonUtil.toJson(sortedMap); + bulletin.setFields(fields); + bulletin.setMonitorIds(bulletinDto.getMonitorIds()); + bulletin.setApp(bulletinDto.getApp()); + bulletinDao.save(bulletin); + } catch (Exception e) { + throw new RuntimeException(e); + } + } + + /** + * Dynamic conditional query + * + * @param specification Query conditions + * @param pageRequest Paging parameters + * @return The query results + */ + @Override + public Page getBulletins(Specification specification, PageRequest pageRequest) { + List voList = new ArrayList<>(); + Page bulletinPage = Page.empty(pageRequest); + try { + bulletinPage = bulletinDao.findAll(specification, pageRequest); + voList = bulletinPage.stream().map(bulletin -> { + BulletinVo vo = new BulletinVo(); + vo.setId(bulletin.getId()); + vo.setName(bulletin.getName()); + vo.setTags(bulletin.getTags()); + vo.setMonitorId(bulletin.getMonitorIds()); + vo.setApp(bulletin.getApp()); + return vo; + }).collect(Collectors.toList()); + } catch (Exception e) { + log.error("Failed to query bulletin: {}", e.getLocalizedMessage(), e); + } + long total = bulletinPage.getTotalElements(); + return new PageImpl<>(voList, pageRequest, total); + } + + /** + * deal with the bulletin + * + */ + @Override + public BulletinMetricsData buildBulletinMetricsData(BulletinMetricsData.BulletinMetricsDataBuilder contentBuilder, Bulletin bulletin) { + List dataList = new ArrayList<>(); + for (Long monitorId : bulletin.getMonitorIds()) { + Monitor monitor = monitorService.getMonitor(monitorId); + BulletinMetricsData.Data.DataBuilder dataBuilder = BulletinMetricsData.Data.builder() + .monitorId(monitorId) + .monitorName(monitor.getName()) + .host(monitor.getHost()); + + List metrics = new ArrayList<>(); + Map> fieldMap = JsonUtil.fromJson(bulletin.getFields(), new TypeReference<>() {}); + + if (fieldMap != null) { + for (Map.Entry> entry : fieldMap.entrySet()) { + String metric = entry.getKey(); + List fields = entry.getValue(); + BulletinMetricsData.Metric.MetricBuilder metricBuilder = BulletinMetricsData.Metric.builder() + .name(metric); + CollectRep.MetricsData currentMetricsData = realTimeDataReader.getCurrentMetricsData(monitorId, metric); + + List> fieldsList; + if (currentMetricsData != null) { + fieldsList = currentMetricsData.getValuesList().stream() + .map(valueRow -> { + List fieldList = currentMetricsData.getFieldsList().stream() + .map(field -> BulletinMetricsData.Field.builder() + .key(field.getName()) + .unit(field.getUnit()) + .build()) + .toList(); + + for (int i = 0; i < fieldList.size(); i++) { + fieldList.get(i).setValue(valueRow.getColumns(i)); + } + return fieldList; + }) + .toList(); + } else { + fieldsList = Collections.singletonList(fields.stream() + .map(field -> BulletinMetricsData.Field.builder() + .key(field) + .unit("") + .value("NO_DATA") + .build()) + .toList()); + } + + metricBuilder.fields(fieldsList); + metrics.add(metricBuilder.build()); + } + } + dataBuilder.metrics(metrics); + dataList.add(dataBuilder.build()); + } + contentBuilder.content(dataList); + return contentBuilder.build(); + } + + + /** + * Get Bulletin by id + * + */ + @Override + public Optional getBulletinById(Long id) { + return bulletinDao.findById(id); + } + + /** + * delete Bulletin by names + * + */ + @Override + @Transactional(rollbackFor = Exception.class) + public void deleteBulletinByName(List names) { + try { + bulletinDao.deleteByNameIn(names); + } catch (Exception e) { + throw new RuntimeException(e); + } + } +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/CollectorServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/CollectorServiceImpl.java index 003c5f99e55..b87965b41ae 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/CollectorServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/CollectorServiceImpl.java @@ -17,12 +17,18 @@ package org.apache.hertzbeat.manager.service.impl; +import jakarta.persistence.criteria.Predicate; +import java.util.HashMap; import java.util.LinkedList; import java.util.List; +import java.util.Map; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.entity.dto.CollectorSummary; import org.apache.hertzbeat.common.entity.manager.Collector; import org.apache.hertzbeat.common.entity.manager.CollectorMonitorBind; import org.apache.hertzbeat.common.support.exception.CommonException; +import org.apache.hertzbeat.common.util.IpDomainUtil; import org.apache.hertzbeat.manager.dao.CollectorDao; import org.apache.hertzbeat.manager.dao.CollectorMonitorBindDao; import org.apache.hertzbeat.manager.scheduler.AssignJobs; @@ -58,7 +64,19 @@ public class CollectorServiceImpl implements CollectorService { @Override @Transactional(readOnly = true) - public Page getCollectors(Specification specification, PageRequest pageRequest) { + public Page getCollectors(String name, int pageIndex, Integer pageSize) { + if (pageSize == null) { + pageSize = Integer.MAX_VALUE; + } + Specification specification = (root, query, criteriaBuilder) -> { + Predicate predicate = criteriaBuilder.conjunction(); + if (StringUtils.isNotBlank(name)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); + predicate = criteriaBuilder.and(predicateName); + } + return predicate; + }; + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); Page collectors = collectorDao.findAll(specification, pageRequest); List collectorSummaryList = new LinkedList<>(); for (Collector collector : collectors.getContent()) { @@ -77,13 +95,13 @@ public Page getCollectors(Specification specificati @Override @Transactional(rollbackFor = Exception.class) public void deleteRegisteredCollector(List collectors) { - if (collectors == null || collectors.isEmpty()) { + if (CollectionUtils.isEmpty(collectors)) { return; } // Determine whether there are fixed tasks on the collector collectors.forEach(collector -> { List binds = this.collectorMonitorBindDao.findCollectorMonitorBindsByCollector(collector); - if (!binds.isEmpty()) { + if (CollectionUtils.isNotEmpty(binds)) { throw new CommonException("The collector " + collector + " has pinned tasks that cannot be deleted."); } }); @@ -97,4 +115,31 @@ public void deleteRegisteredCollector(List collectors) { public boolean hasCollector(String collector) { return this.collectorDao.findCollectorByName(collector).isPresent(); } + + @Override + public Map generateCollectorDeployInfo(String collector) { + if (hasCollector(collector)) { + throw new CommonException("There already exists a collector with same name."); + } + String host = IpDomainUtil.getLocalhostIp(); + Map maps = new HashMap<>(6); + maps.put("identity", collector); + maps.put("host", host); + return maps; + } + + @Override + public void makeCollectorsOffline(List collectors) { + if (CollectionUtils.isNotEmpty(collectors)) { + collectors.forEach(collector -> this.manageServer.getCollectorAndJobScheduler().offlineCollector(collector)); + } + } + + @Override + public void makeCollectorsOnline(List collectors) { + if (CollectionUtils.isNotEmpty(collectors)) { + collectors.forEach(collector -> + this.manageServer.getCollectorAndJobScheduler().onlineCollector(collector)); + } + } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ConfigServiceImpl.java new file mode 100644 index 00000000000..a84e18b0f1f --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ConfigServiceImpl.java @@ -0,0 +1,82 @@ +/* + * 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.hertzbeat.manager.service.impl; + +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import java.util.concurrent.ConcurrentHashMap; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; +import org.apache.hertzbeat.manager.service.ConfigService; +import org.apache.hertzbeat.manager.service.GeneralConfigService; +import org.springframework.stereotype.Component; + + +/** + * GeneralConfigService proxy class + */ +@Component +public class ConfigServiceImpl implements ConfigService { + + private static final String TEMPLATE_CONFIG_TYPE = "template"; + + private final Map configServiceMap; + + public ConfigServiceImpl(List generalConfigServices){ + configServiceMap = new ConcurrentHashMap<>(8); + if (CollectionUtils.isNotEmpty(generalConfigServices)) { + generalConfigServices.forEach(config -> configServiceMap.put(config.type(), config)); + } + } + + @Override + public void saveConfig(String type, Object config) { + GeneralConfigService configService = configServiceMap.get(type); + if (configService == null) { + throw new IllegalArgumentException("Not supported this config type: " + type); + } + configService.saveConfig(config); + } + + @Override + public Object getConfig(String type) { + GeneralConfigService configService = configServiceMap.get(type); + if (configService == null) { + throw new IllegalArgumentException("Not supported this config type: " + type); + } + return configService.getConfig(); + } + + @Override + public void updateTemplateAppConfig(String app, TemplateConfig.AppTemplate template){ + GeneralConfigService configService = configServiceMap.get(TEMPLATE_CONFIG_TYPE); + if (!(configService instanceof TemplateConfigServiceImpl)) { + throw new IllegalArgumentException("Not supported this config type: template"); + } + TemplateConfig config = ((TemplateConfigServiceImpl) configService).getConfig(); + if (config == null) { + config = new TemplateConfig(); + } + if (config.getApps() == null) { + config.setApps(new HashMap<>(8)); + } + config.getApps().put(app, template); + configService.saveConfig(config); + } +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/DefaultPluginRunner.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/DefaultPluginRunner.java new file mode 100644 index 00000000000..7add67d5668 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/DefaultPluginRunner.java @@ -0,0 +1,57 @@ +/* + * 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.hertzbeat.manager.service.impl; + +import java.util.function.BiConsumer; +import java.util.function.Consumer; +import lombok.RequiredArgsConstructor; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; +import org.apache.hertzbeat.manager.service.PluginService; +import org.apache.hertzbeat.plugin.runner.PluginRunner; +import org.springframework.stereotype.Service; + + +/** + * default plugin runner + */ +@Service +@RequiredArgsConstructor +@Slf4j +public class DefaultPluginRunner implements PluginRunner { + + private final PluginService pluginService; + + @Override + public void pluginExecute(Class clazz, Consumer execute) { + try { + pluginService.pluginExecute(clazz, execute); + } catch (Exception e) { + log.error("plugin execute failed", e); + } + } + + @Override + public void pluginExecute(Class clazz, BiConsumer execute) { + try { + pluginService.pluginExecute(clazz, execute); + } catch (Exception e) { + log.error("plugin execute failed", e); + } + } +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ExcelImExportServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ExcelImExportServiceImpl.java index f9aa05fa446..671d2a6a4a0 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ExcelImExportServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ExcelImExportServiceImpl.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.manager.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.ExcelFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.ExcelFile.TYPE; import java.io.IOException; import java.io.InputStream; import java.io.OutputStream; @@ -27,6 +29,8 @@ import java.util.stream.Collectors; import lombok.RequiredArgsConstructor; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.poi.ss.usermodel.BorderStyle; import org.apache.poi.ss.usermodel.Cell; import org.apache.poi.ss.usermodel.CellStyle; @@ -40,7 +44,6 @@ import org.apache.poi.ss.util.CellRangeAddress; import org.apache.poi.ss.util.RegionUtil; import org.springframework.stereotype.Service; -import org.springframework.util.StringUtils; /** * Configure the import and export EXCEL format @@ -49,8 +52,6 @@ @RequiredArgsConstructor @Service public class ExcelImExportServiceImpl extends AbstractImExportServiceImpl{ - public static final String TYPE = "EXCEL"; - public static final String FILE_SUFFIX = ".xlsx"; /** * Export file type @@ -75,7 +76,6 @@ public String getFileName() { * @param is input stream * @return form */ - @Override public List parseImport(InputStream is) { try (Workbook workbook = WorkbookFactory.create(is)) { @@ -89,14 +89,14 @@ public List parseImport(InputStream is) { continue; } String name = getCellValueAsString(row.getCell(0)); - if (StringUtils.hasText(name)) { + if (StringUtils.isNotBlank(name)) { startRowList.add(row.getRowNum()); MonitorDTO monitor = extractMonitorDataFromRow(row); ExportMonitorDTO exportMonitor = new ExportMonitorDTO(); exportMonitor.setMonitor(monitor); monitors.add(exportMonitor); String metrics = getCellValueAsString(row.getCell(11)); - if (StringUtils.hasText(metrics)) { + if (StringUtils.isNotBlank(metrics)) { List metricList = Arrays.stream(metrics.split(",")).collect(Collectors.toList()); exportMonitor.setMetrics(metricList); } @@ -145,7 +145,7 @@ private MonitorDTO extractMonitorDataFromRow(Row row) { monitor.setDescription(getCellValueAsString(row.getCell(5))); String tagsString = getCellValueAsString(row.getCell(6)); - if (StringUtils.hasText(tagsString)) { + if (StringUtils.isNotBlank(tagsString)) { List tags = Arrays.stream(tagsString.split(",")) .map(Long::parseLong) .collect(Collectors.toList()); @@ -159,7 +159,7 @@ private MonitorDTO extractMonitorDataFromRow(Row row) { private ParamDTO extractParamDataFromRow(Row row) { String fieldName = getCellValueAsString(row.getCell(8)); - if (StringUtils.hasText(fieldName)) { + if (StringUtils.isNotBlank(fieldName)) { ParamDTO param = new ParamDTO(); param.setField(fieldName); param.setType(getCellValueAsByte(row.getCell(9))); @@ -210,14 +210,13 @@ private Byte getCellValueAsByte(Cell cell) { return null; } - /** * Export Configuration to Output Stream * @param monitorList config list * @param os output stream */ @Override - void writeOs(List monitorList, OutputStream os) { + public void writeOs(List monitorList, OutputStream os) { try { Workbook workbook = WorkbookFactory.create(true); String sheetName = "Export Monitor"; @@ -304,7 +303,7 @@ void writeOs(List monitorList, OutputStream os) { valueCell.setCellStyle(cellStyle); } } - if (paramList.size() > 0) { + if (CollectionUtils.isNotEmpty(paramList)) { RegionUtil.setBorderTop(BorderStyle.THICK, new CellRangeAddress(rowIndex - paramList.size(), rowIndex - 1, 0, 10), sheet); RegionUtil.setBorderBottom(BorderStyle.THICK, new CellRangeAddress(rowIndex - paramList.size(), rowIndex - 1, 0, 10), sheet); RegionUtil.setBorderLeft(BorderStyle.THICK, new CellRangeAddress(rowIndex - paramList.size(), rowIndex - 1, 0, 10), sheet); @@ -318,5 +317,4 @@ void writeOs(List monitorList, OutputStream os) { } } - } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/JsonImExportServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/JsonImExportServiceImpl.java index 359297f9e16..c7ebf72ed53 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/JsonImExportServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/JsonImExportServiceImpl.java @@ -15,6 +15,8 @@ package org.apache.hertzbeat.manager.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.JsonFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.JsonFile.TYPE; import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.io.IOException; @@ -32,16 +34,13 @@ @RequiredArgsConstructor @Service public class JsonImExportServiceImpl extends AbstractImExportServiceImpl { - public static final String TYPE = "JSON"; - public static final String FILE_SUFFIX = ".json"; private final ObjectMapper objectMapper; @Override - List parseImport(InputStream is) { + public List parseImport(InputStream is) { try { - return objectMapper.readValue(is, new TypeReference<>() { - }); + return objectMapper.readValue(is, new TypeReference<>(){}); } catch (IOException ex) { log.error("import monitor failed.", ex); throw new RuntimeException("import monitor failed"); @@ -49,7 +48,7 @@ List parseImport(InputStream is) { } @Override - void writeOs(List monitorList, OutputStream os) { + public void writeOs(List monitorList, OutputStream os) { try { objectMapper.writeValue(os, monitorList); } catch (IOException ex) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailGeneralConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailGeneralConfigServiceImpl.java index 0e49bba9c34..4397e1729f3 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailGeneralConfigServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailGeneralConfigServiceImpl.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.lang.reflect.Type; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; import org.apache.hertzbeat.manager.dao.GeneralConfigDao; import org.apache.hertzbeat.manager.pojo.dto.EmailNoticeSender; import org.springframework.stereotype.Service; @@ -46,7 +47,7 @@ public MailGeneralConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMap @Override public String type() { - return "email"; + return GeneralConfigTypeEnum.email.name(); } /** @@ -54,7 +55,7 @@ public String type() { * a TypeReference of NoticeSender type */ @Override - protected TypeReference getTypeReference() { + public TypeReference getTypeReference() { return new TypeReference<>() { @Override public Type getType() { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailServiceImpl.java index 4e91ea73d6f..ec627f81548 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MailServiceImpl.java @@ -18,6 +18,7 @@ package org.apache.hertzbeat.manager.service.impl; import freemarker.cache.StringTemplateLoader; +import freemarker.core.TemplateClassResolver; import freemarker.template.Configuration; import freemarker.template.TemplateException; import java.io.IOException; @@ -99,6 +100,7 @@ public String buildAlertHtmlTemplate(final Alert alert, NoticeTemplate noticeTem String templateName = "mailTemplate"; stringLoader.putTemplate(templateName, noticeTemplate.getContent()); cfg.setTemplateLoader(stringLoader); + cfg.setNewBuiltinClassResolver(TemplateClassResolver.SAFER_RESOLVER); templateMail = cfg.getTemplate(templateName, Locale.CHINESE); return FreeMarkerTemplateUtils.processTemplateIntoString(templateMail, model); } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MonitorServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MonitorServiceImpl.java index 2684ea1910c..cd0ea218b9f 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MonitorServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/MonitorServiceImpl.java @@ -18,10 +18,15 @@ package org.apache.hertzbeat.manager.service.impl; import com.fasterxml.jackson.core.type.TypeReference; +import jakarta.persistence.criteria.CriteriaBuilder; +import jakarta.persistence.criteria.JoinType; +import jakarta.persistence.criteria.ListJoin; +import jakarta.persistence.criteria.Predicate; import jakarta.servlet.http.HttpServletResponse; import java.net.URLEncoder; import java.nio.charset.StandardCharsets; import java.time.LocalDateTime; +import java.util.ArrayList; import java.util.HashMap; import java.util.HashSet; import java.util.LinkedList; @@ -32,9 +37,13 @@ import java.util.Set; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.alert.dao.AlertDefineBindDao; import org.apache.hertzbeat.collector.dispatch.DispatchConstants; import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.constants.ExportFileConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; +import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.common.entity.job.Configmap; import org.apache.hertzbeat.common.entity.job.Job; import org.apache.hertzbeat.common.entity.job.Metrics; @@ -47,6 +56,7 @@ import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.support.event.MonitorDeletedEvent; import org.apache.hertzbeat.common.util.AesUtil; +import org.apache.hertzbeat.common.util.FileUtil; import org.apache.hertzbeat.common.util.IntervalExpressionUtil; import org.apache.hertzbeat.common.util.IpDomainUtil; import org.apache.hertzbeat.common.util.JsonUtil; @@ -71,12 +81,13 @@ import org.springframework.context.ApplicationContext; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; +import org.springframework.data.domain.Sort; import org.springframework.data.jpa.domain.Specification; import org.springframework.http.HttpHeaders; +import org.springframework.http.MediaType; import org.springframework.stereotype.Service; import org.springframework.transaction.annotation.Transactional; import org.springframework.util.CollectionUtils; -import org.springframework.util.StringUtils; import org.springframework.web.multipart.MultipartFile; /** @@ -88,13 +99,15 @@ public class MonitorServiceImpl implements MonitorService { private static final Long MONITOR_ID_TMP = 1000000000L; - public static final String HTTP = "http://"; - - public static final String HTTPS = "https://"; - public static final String BLANK = ""; public static final String PATTERN_HTTP = "(?i)http://"; public static final String PATTERN_HTTPS = "(?i)https://"; + private static final byte ALL_MONITOR_STATUS = 9; + + private static final int TAG_LENGTH = 2; + + private static final String CONTENT_VALUE = MediaType.APPLICATION_OCTET_STREAM_VALUE + SignConstants.SINGLE_MARK + "charset=" + StandardCharsets.UTF_8; + @Autowired private AppService appService; @@ -163,7 +176,7 @@ public void detectMonitor(Monitor monitor, List params, String collector) } monitor.setStatus(CommonConstants.MONITOR_UP_CODE); // If the detection result fails, a detection exception is thrown - if (collectRep == null || collectRep.isEmpty()) { + if (CollectionUtils.isEmpty(collectRep)) { monitor.setStatus(CommonConstants.MONITOR_DOWN_CODE); throw new MonitorDetectException("Collect Timeout No Response"); } @@ -180,7 +193,7 @@ public void addMonitor(Monitor monitor, List params, String collector) th long monitorId = SnowFlakeIdGenerator.generateId(); // Init Set Default Tags: monitorId monitorName app List tags = monitor.getTags(); - if (tags == null) { + if (CollectionUtils.isEmpty(tags)) { tags = new LinkedList<>(); monitor.setTags(tags); } @@ -201,7 +214,7 @@ public void addMonitor(Monitor monitor, List params, String collector) th }).collect(Collectors.toList()); appDefine.setConfigmap(configmaps); - long jobId = collector == null ? collectJobScheduling.addAsyncCollectJob(appDefine, null) : + long jobId = StringUtils.isBlank(collector) ? collectJobScheduling.addAsyncCollectJob(appDefine, null) : collectJobScheduling.addAsyncCollectJob(appDefine, collector); try { @@ -231,7 +244,7 @@ public void addMonitor(Monitor monitor, List params, String collector) th public void addNewMonitorOptionalMetrics(List metrics, Monitor monitor, List params) { long monitorId = SnowFlakeIdGenerator.generateId(); List tags = monitor.getTags(); - if (tags == null) { + if (CollectionUtils.isEmpty(tags)) { tags = new LinkedList<>(); monitor.setTags(tags); } @@ -291,31 +304,20 @@ public void export(List ids, String type, HttpServletResponse res) throws throw new IllegalArgumentException("not support export type: " + type); } var fileName = imExportService.getFileName(); - res.setHeader("content-type", "application/octet-stream;charset=UTF-8"); - res.setContentType("application/octet-stream;charset=UTF-8"); + res.setHeader(HttpHeaders.CONTENT_DISPOSITION, CONTENT_VALUE); + res.setContentType(CONTENT_VALUE); res.setHeader(HttpHeaders.CONTENT_DISPOSITION, "attachment;filename=" + URLEncoder.encode(fileName, StandardCharsets.UTF_8)); - res.setHeader("Access-Control-Expose-Headers", "Content-Disposition"); + res.setHeader(HttpHeaders.ACCESS_CONTROL_EXPOSE_HEADERS, HttpHeaders.CONTENT_DISPOSITION); imExportService.exportConfig(res.getOutputStream(), ids); } @Override public void importConfig(MultipartFile file) throws Exception { - var fileName = file.getOriginalFilename(); - if (!StringUtils.hasText(fileName)) { - return; - } - var type = ""; - if (fileName.toLowerCase().endsWith(JsonImExportServiceImpl.FILE_SUFFIX)) { - type = JsonImExportServiceImpl.TYPE; - } - if (fileName.toLowerCase().endsWith(ExcelImExportServiceImpl.FILE_SUFFIX)) { - type = ExcelImExportServiceImpl.TYPE; - } - if (fileName.toLowerCase().endsWith(YamlImExportServiceImpl.FILE_SUFFIX)) { - type = YamlImExportServiceImpl.TYPE; - } + + var fileName = FileUtil.getFileName(file); + var type = FileUtil.getFileType(file); if (!imExportServiceMap.containsKey(type)) { - throw new RuntimeException("file " + fileName + " is not supported."); + throw new RuntimeException(ExportFileConstants.FILE + " " + fileName + " is not supported."); } var imExportService = imExportServiceMap.get(type); imExportService.importConfig(file.getInputStream()); @@ -355,11 +357,11 @@ public void validate(MonitorDto monitorDto, Boolean isModify) throws IllegalArgu } } } - if (monitor.getTags() != null) { + if (!CollectionUtils.isEmpty(monitor.getTags())) { monitor.setTags(monitor.getTags().stream().distinct().collect(Collectors.toList())); } // the dispatch collector must exist if pin - if (StringUtils.hasText(monitorDto.getCollector())) { + if (StringUtils.isNotBlank(monitorDto.getCollector())) { Optional optionalCollector = collectorDao.findCollectorByName(monitorDto.getCollector()); if (optionalCollector.isEmpty()) { throw new IllegalArgumentException("The pinned collector does not exist."); @@ -369,14 +371,14 @@ public void validate(MonitorDto monitorDto, Boolean isModify) throws IllegalArgu } // Parameter definition structure verification List paramDefines = appService.getAppParamDefines(monitorDto.getMonitor().getApp()); - if (paramDefines != null) { + if (!CollectionUtils.isEmpty(paramDefines)) { for (ParamDefine paramDefine : paramDefines) { String field = paramDefine.getField(); Param param = paramMap.get(field); if (paramDefine.isRequired() && (param == null || param.getParamValue() == null)) { throw new IllegalArgumentException("Params field " + field + " is required."); } - if (param != null && param.getParamValue() != null && !"".equals(param.getParamValue())) { + if (param != null && param.getParamValue() != null && StringUtils.isNotBlank(param.getParamValue())) { switch (paramDefine.getType()) { case "number": double doubleValue; @@ -411,11 +413,11 @@ public void validate(MonitorDto monitorDto, Boolean isModify) throws IllegalArgu break; case "host": String hostValue = param.getParamValue(); - if (hostValue.toLowerCase().contains(HTTP)) { - hostValue = hostValue.replaceAll(PATTERN_HTTP, BLANK); + if (hostValue.toLowerCase().contains(NetworkConstants.HTTP_HEADER)) { + hostValue = hostValue.replaceAll(PATTERN_HTTP, SignConstants.BLANK); } - if (hostValue.toLowerCase().contains(HTTPS)) { - hostValue = hostValue.replace(PATTERN_HTTPS, BLANK); + if (hostValue.toLowerCase().contains(NetworkConstants.HTTPS_HEADER)) { + hostValue = hostValue.replace(PATTERN_HTTPS, SignConstants.BLANK); } if (!IpDomainUtil.validateIpDomain(hostValue)) { throw new IllegalArgumentException("Params field " + field + " value " @@ -515,7 +517,7 @@ public void modifyMonitor(Monitor monitor, List params, String collector) } // Auto Update Default Tags: monitorName List tags = monitor.getTags(); - if (tags == null) { + if (CollectionUtils.isEmpty(tags)) { tags = new LinkedList<>(); monitor.setTags(tags); } @@ -642,7 +644,67 @@ public MonitorDto getMonitorDto(long id) throws RuntimeException { } @Override - public Page getMonitors(Specification specification, PageRequest pageRequest) { + public Page getMonitors(List monitorIds, String app, String name, String host, Byte status, String sort, String order, int pageIndex, int pageSize, String tag) { + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (!CollectionUtils.isEmpty(monitorIds)) { + CriteriaBuilder.In inPredicate = criteriaBuilder.in(root.get("id")); + for (long id : monitorIds) { + inPredicate.value(id); + } + andList.add(inPredicate); + } + if (StringUtils.isNotBlank(app)) { + Predicate predicateApp = criteriaBuilder.equal(root.get("app"), app); + andList.add(predicateApp); + } + if (status != null && status >= 0 && status < ALL_MONITOR_STATUS) { + Predicate predicateStatus = criteriaBuilder.equal(root.get("status"), status); + andList.add(predicateStatus); + } + + if (StringUtils.isNotBlank(tag)) { + String[] tagArr = tag.split(":"); + String tagName = tagArr[0]; + ListJoin tagJoin = root + .join(root.getModel() + .getList("tags", org.apache.hertzbeat.common.entity.manager.Tag.class), JoinType.LEFT); + if (tagArr.length == TAG_LENGTH) { + String tagValue = tagArr[1]; + andList.add(criteriaBuilder.equal(tagJoin.get("name"), tagName)); + andList.add(criteriaBuilder.equal(tagJoin.get("tagValue"), tagValue)); + } else { + andList.add(criteriaBuilder.equal(tagJoin.get("name"), tag)); + } + } + Predicate[] andPredicates = new Predicate[andList.size()]; + Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); + + List orList = new ArrayList<>(); + if (StringUtils.isNotBlank(host)) { + Predicate predicateHost = criteriaBuilder.like(root.get("host"), "%" + host + "%"); + orList.add(predicateHost); + } + if (StringUtils.isNotBlank(name)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); + orList.add(predicateName); + } + Predicate[] orPredicates = new Predicate[orList.size()]; + Predicate orPredicate = criteriaBuilder.or(orList.toArray(orPredicates)); + + if (andPredicates.length == 0 && orPredicates.length == 0) { + return query.where().getRestriction(); + } else if (andPredicates.length == 0) { + return orPredicate; + } else if (orPredicates.length == 0) { + return andPredicate; + } else { + return query.where(andPredicate, orPredicate).getRestriction(); + } + }; + // Pagination is a must + Sort sortExp = Sort.by(new Sort.Order(Sort.Direction.fromString(order), sort)); + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize, sortExp); return monitorDao.findAll(specification, pageRequest); } @@ -655,7 +717,7 @@ public void cancelManageMonitors(HashSet ids) { monitor.getStatus() != CommonConstants.MONITOR_PAUSED_CODE) .peek(monitor -> monitor.setStatus(CommonConstants.MONITOR_PAUSED_CODE)) .collect(Collectors.toList()); - if (!managedMonitors.isEmpty()) { + if (!CollectionUtils.isEmpty(managedMonitors)) { for (Monitor monitor : managedMonitors) { collectJobScheduling.cancelAsyncCollectJob(monitor.getJobId()); } @@ -671,7 +733,7 @@ public void enableManageMonitors(HashSet ids) { monitor.getStatus() == CommonConstants.MONITOR_PAUSED_CODE) .peek(monitor -> monitor.setStatus(CommonConstants.MONITOR_UP_CODE)) .collect(Collectors.toList()); - if (!unManagedMonitors.isEmpty()) { + if (!CollectionUtils.isEmpty(unManagedMonitors)) { for (Monitor monitor : unManagedMonitors) { // Construct the collection task Job entity Job appDefine = appService.getAppDefine(monitor.getApp()); @@ -686,8 +748,8 @@ public void enableManageMonitors(HashSet ids) { List configmaps = params.stream().map(param -> new Configmap(param.getField(), param.getParamValue(), param.getType())).collect(Collectors.toList()); List paramDefaultValue = appDefine.getParams().stream() - .filter(item -> StringUtils.hasText(item.getDefaultValue())) - .collect(Collectors.toList()); + .filter(item -> StringUtils.isNotBlank(item.getDefaultValue())) + .toList(); paramDefaultValue.forEach(defaultVar -> { if (configmaps.stream().noneMatch(item -> item.getKey().equals(defaultVar.getField()))) { Configmap configmap = new Configmap(defaultVar.getField(), defaultVar.getDefaultValue(), (byte) 1); @@ -713,7 +775,7 @@ public void enableManageMonitors(HashSet ids) { @Override public List getAllAppMonitorsCount() { List appCounts = monitorDao.findAppsStatusCount(); - if (appCounts == null) { + if (CollectionUtils.isEmpty(appCounts)) { return null; } //Statistical category information, calculate the number of corresponding states for each monitor @@ -792,7 +854,7 @@ public void updateAppCollectJob(Job job) { List configmaps = params.stream().map(param -> new Configmap(param.getField(), param.getParamValue(), param.getType())).collect(Collectors.toList()); List paramDefaultValue = appDefine.getParams().stream() - .filter(item -> StringUtils.hasText(item.getDefaultValue())) + .filter(item -> StringUtils.isNotBlank(item.getDefaultValue())) .toList(); paramDefaultValue.forEach(defaultVar -> { if (configmaps.stream().noneMatch(item -> item.getKey().equals(defaultVar.getField()))) { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/NoticeConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/NoticeConfigServiceImpl.java index 20c98298b46..b11f2af5068 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/NoticeConfigServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/NoticeConfigServiceImpl.java @@ -17,6 +17,7 @@ package org.apache.hertzbeat.manager.service.impl; +import jakarta.persistence.criteria.Predicate; import java.io.IOException; import java.io.InputStream; import java.nio.charset.StandardCharsets; @@ -30,6 +31,8 @@ import java.util.Optional; import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.cache.CacheFactory; import org.apache.hertzbeat.common.cache.CommonCacheService; import org.apache.hertzbeat.common.constants.CommonConstants; @@ -83,19 +86,43 @@ public class NoticeConfigServiceImpl implements NoticeConfigService, CommandLine @Override - public List getNoticeReceivers(Specification specification) { + public List getNoticeReceivers(String name) { + Specification specification = (root, query, criteriaBuilder) -> { + Predicate predicate = criteriaBuilder.conjunction(); + if (StringUtils.isNotBlank(name)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); + predicate = criteriaBuilder.and(predicateName); + } + return predicate; + }; return noticeReceiverDao.findAll(specification); } @Override - public List getNoticeTemplates(Specification specification) { + public List getNoticeTemplates(String name) { + Specification specification = (root, query, criteriaBuilder) -> { + Predicate predicate = criteriaBuilder.conjunction(); + if (StringUtils.isNotBlank(name)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); + predicate = criteriaBuilder.and(predicateName); + } + return predicate; + }; List defaultTemplates = new LinkedList<>(PRESET_TEMPLATE.values()); defaultTemplates.addAll(noticeTemplateDao.findAll(specification)); return defaultTemplates; } @Override - public List getNoticeRules(Specification specification) { + public List getNoticeRules(String name) { + Specification specification = (root, query, criteriaBuilder) -> { + Predicate predicate = criteriaBuilder.conjunction(); + if (StringUtils.isNotBlank(name)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + name + "%"); + predicate = criteriaBuilder.and(predicateName); + } + return predicate; + }; return noticeRuleDao.findAll(specification); } @@ -138,7 +165,7 @@ public List getReceiverFilterRule(Alert alert) { // use cache CommonCacheService noticeCache = CacheFactory.getNoticeCache(); List rules = (List) noticeCache.get(CommonConstants.CACHE_NOTICE_RULE); - if (rules == null) { + if (CollectionUtils.isEmpty(rules)) { rules = noticeRuleDao.findNoticeRulesByEnableTrue(); noticeCache.put(CommonConstants.CACHE_NOTICE_RULE, rules); } @@ -191,11 +218,6 @@ public List getReceiverFilterRule(Alert alert) { .collect(Collectors.toList()); } - @Override - public NoticeReceiver getOneReceiverById(Long id) { - return noticeReceiverDao.findById(id).orElse(null); - } - @Override public NoticeTemplate getOneTemplateById(Long id) { return noticeTemplateDao.findById(id).orElse(null); @@ -204,14 +226,15 @@ public NoticeTemplate getOneTemplateById(Long id) { @Override public NoticeReceiver getReceiverById(Long receiverId) { - return noticeReceiverDao.getReferenceById(receiverId); + return noticeReceiverDao.findById(receiverId).orElse(null); } @Override public NoticeRule getNoticeRulesById(Long ruleId) { - return noticeRuleDao.getReferenceById(ruleId); + return noticeRuleDao.findById(ruleId).orElse(null); } + @Override public void addNoticeTemplate(NoticeTemplate noticeTemplate) { noticeTemplateDao.save(noticeTemplate); @@ -250,17 +273,17 @@ public boolean sendTestMsg(NoticeReceiver noticeReceiver) { tags.put(CommonConstants.TAG_MONITOR_NAME, "100Name"); tags.put(CommonConstants.TAG_MONITOR_HOST, "127.0.0.1"); tags.put(CommonConstants.TAG_THRESHOLD_ID, "200"); - Alert alert = new Alert(); - alert.setTags(tags); - alert.setId(1003445L); - alert.setTarget(ALERT_TEST_TARGET); - alert.setPriority(CommonConstants.ALERT_PRIORITY_CODE_CRITICAL); - alert.setContent(ALERT_TEST_CONTENT); - alert.setAlertDefineId(200L); - alert.setTimes(2); - alert.setStatus((byte) 0); - alert.setFirstAlarmTime(System.currentTimeMillis()); - alert.setLastAlarmTime(System.currentTimeMillis()); + Alert alert = Alert.builder() + .tags(tags) + .id(1003445L) + .target(ALERT_TEST_TARGET) + .priority(CommonConstants.ALERT_PRIORITY_CODE_CRITICAL) + .content(ALERT_TEST_CONTENT) + .alertDefineId(200L) + .times(2) + .status((byte) 0) + .firstAlarmTime(System.currentTimeMillis()) + .lastAlarmTime(System.currentTimeMillis()).build(); return dispatcherAlarm.sendNoticeMsg(noticeReceiver, null, alert); } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObjectStoreConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObjectStoreConfigServiceImpl.java index ed7dbef1d59..9682935d8ad 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObjectStoreConfigServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObjectStoreConfigServiceImpl.java @@ -23,10 +23,10 @@ import java.lang.reflect.Type; import javax.annotation.Resource; import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; import org.apache.hertzbeat.manager.dao.GeneralConfigDao; import org.apache.hertzbeat.manager.pojo.dto.ObjectStoreConfigChangeEvent; import org.apache.hertzbeat.manager.pojo.dto.ObjectStoreDTO; -import org.apache.poi.ss.formula.functions.T; import org.springframework.beans.factory.InitializingBean; import org.springframework.beans.factory.support.DefaultListableBeanFactory; import org.springframework.context.ApplicationContext; @@ -41,7 +41,9 @@ @Order(Ordered.HIGHEST_PRECEDENCE) @Slf4j @Service -public class ObjectStoreConfigServiceImpl extends AbstractGeneralConfigServiceImpl> implements InitializingBean { +public class ObjectStoreConfigServiceImpl extends + AbstractGeneralConfigServiceImpl> implements InitializingBean { + @Resource private DefaultListableBeanFactory beanFactory; @@ -56,17 +58,17 @@ public class ObjectStoreConfigServiceImpl extends AbstractGeneralConfigServiceIm * @param generalConfigDao configDao object * @param objectMapper JSON tool object */ - protected ObjectStoreConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { + public ObjectStoreConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { super(generalConfigDao, objectMapper); } @Override public String type() { - return "oss"; + return GeneralConfigTypeEnum.oss.name(); } @Override - protected TypeReference> getTypeReference() { + public TypeReference> getTypeReference() { return new TypeReference<>() { @Override public Type getType() { @@ -76,7 +78,7 @@ public Type getType() { } @Override - public void handler(ObjectStoreDTO config) { + public void handler(ObjectStoreDTO config) { // initialize file storage service if (config != null) { if (config.getType() == ObjectStoreDTO.Type.OBS) { @@ -85,12 +87,13 @@ public void handler(ObjectStoreDTO config) { } ctx.publishEvent(new ObjectStoreConfigChangeEvent(config)); } + log.warn("object store config is null, please check the configuration file."); } /** * init Huawei Cloud OBS */ - private void initObs(ObjectStoreDTO config) { + private void initObs(ObjectStoreDTO config) { var obsConfig = objectMapper.convertValue(config.getConfig(), ObjectStoreDTO.ObsConfig.class); Assert.hasText(obsConfig.getAccessKey(), "cannot find obs accessKey"); Assert.hasText(obsConfig.getSecretKey(), "cannot find obs secretKey"); diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObsObjectStoreServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObsObjectStoreServiceImpl.java index 5d70430c92a..4d839d1d09a 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObsObjectStoreServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/ObsObjectStoreServiceImpl.java @@ -22,7 +22,6 @@ import java.io.InputStream; import java.util.List; import java.util.Objects; -import java.util.stream.Collectors; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.constants.SignConstants; import org.apache.hertzbeat.manager.pojo.dto.FileDTO; @@ -55,6 +54,18 @@ public boolean upload(String filePath, InputStream is) { return Objects.equals(response.getStatusCode(), 200); } + @Override + public void remove(String filePath) { + var objectKey = getObjectKey(filePath); + obsClient.deleteObject(bucketName, objectKey); + } + + @Override + public boolean isExist(String filePath) { + var objectKey = getObjectKey(filePath); + return obsClient.doesObjectExist(bucketName, objectKey); + } + @Override public FileDTO download(String filePath) { var objectKey = getObjectKey(filePath); @@ -74,7 +85,7 @@ public List list(String dir) { return obsClient.listObjects(request).getObjects() .stream() .map(it -> new FileDTO(it.getObjectKey(), it.getObjectContent())) - .collect(Collectors.toUnmodifiableList()); + .toList(); } @Override diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java index d5de0e5889f..0b789452f31 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/PluginServiceImpl.java @@ -17,8 +17,12 @@ package org.apache.hertzbeat.manager.service.impl; +import jakarta.persistence.criteria.Predicate; import java.io.File; +import java.io.FileOutputStream; import java.io.IOException; +import java.io.InputStream; +import java.io.OutputStream; import java.net.MalformedURLException; import java.net.URL; import java.net.URLClassLoader; @@ -33,7 +37,9 @@ import java.util.Optional; import java.util.ServiceLoader; import java.util.Set; +import java.util.UUID; import java.util.concurrent.ConcurrentHashMap; +import java.util.function.BiConsumer; import java.util.function.Consumer; import java.util.jar.JarEntry; import java.util.jar.JarFile; @@ -45,17 +51,29 @@ import org.apache.commons.io.FileUtils; import org.apache.hertzbeat.common.constants.PluginType; import org.apache.hertzbeat.common.entity.dto.PluginUpload; +import org.apache.hertzbeat.common.entity.job.Configmap; import org.apache.hertzbeat.common.entity.manager.PluginItem; import org.apache.hertzbeat.common.entity.manager.PluginMetadata; +import org.apache.hertzbeat.common.entity.plugin.PluginConfig; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; import org.apache.hertzbeat.common.support.exception.CommonException; import org.apache.hertzbeat.manager.dao.PluginItemDao; import org.apache.hertzbeat.manager.dao.PluginMetadataDao; +import org.apache.hertzbeat.manager.dao.PluginParamDao; +import org.apache.hertzbeat.manager.pojo.dto.PluginParam; +import org.apache.hertzbeat.manager.pojo.dto.PluginParametersVO; import org.apache.hertzbeat.manager.service.PluginService; +import org.apache.hertzbeat.plugin.PostAlertPlugin; import org.apache.hertzbeat.plugin.Plugin; +import org.apache.hertzbeat.plugin.PostCollectPlugin; import org.springframework.data.domain.Page; import org.springframework.data.domain.PageRequest; import org.springframework.data.jpa.domain.Specification; import org.springframework.stereotype.Service; +import org.springframework.transaction.annotation.Transactional; +import org.springframework.util.CollectionUtils; +import org.yaml.snakeyaml.Yaml; +import org.yaml.snakeyaml.error.YAMLException; /** * plugin service @@ -69,6 +87,8 @@ public class PluginServiceImpl implements PluginService { private final PluginItemDao itemDao; + private final PluginParamDao pluginParamDao; + public static Map, PluginType> PLUGIN_TYPE_MAPPING = new HashMap<>(); /** @@ -76,12 +96,33 @@ public class PluginServiceImpl implements PluginService { */ private static final Map PLUGIN_ENABLE_STATUS = new ConcurrentHashMap<>(); + /** + * plugin param define + */ + private static final Map PARAMS_CONFIG_MAP = new ConcurrentHashMap<>(); + + /** + * plugin params + */ + private static final Map> PARAMS_MAP = new ConcurrentHashMap<>(); + + /** + * pluginItem Mapping pluginId + */ + private static final Map ITEM_TO_PLUGINMETADATAID_MAP = new ConcurrentHashMap<>(); - private URLClassLoader pluginClassLoader; + private final List pluginClassLoaders = new ArrayList<>(); @Override + @Transactional public void deletePlugins(Set ids) { List plugins = metadataDao.findAllById(ids); + // disable the plugins that need to be removed + for (PluginMetadata plugin : plugins) { + plugin.setEnableStatus(false); + updateStatus(plugin); + } + loadJarToClassLoader(); for (PluginMetadata plugin : plugins) { try { // delete jar file @@ -89,18 +130,35 @@ public void deletePlugins(Set ids) { if (jarFile.exists()) { FileUtils.delete(jarFile); } + // removing jar files that are dependencies for the plugin + File otherLibDir = new File(getOtherLibDir(plugin.getJarFilePath())); + if (otherLibDir.exists()) { + FileUtils.deleteDirectory(otherLibDir); + } // delete metadata metadataDao.deleteById(plugin.getId()); + syncPluginParamMap(plugin.getId(), null, true); } catch (IOException e) { throw new RuntimeException(e); } } + pluginParamDao.deletePluginParamsByPluginMetadataIdIn(ids); syncPluginStatus(); // reload classloader loadJarToClassLoader(); } + /** + * get the directory where the JAR files dependent on the plugin are saved + * + * @param pluginJarPath jar file path + * @return lib dir + */ + private String getOtherLibDir(String pluginJarPath) { + return pluginJarPath.substring(0, pluginJarPath.lastIndexOf(".")); + } + @Override public void updateStatus(PluginMetadata plugin) { Optional pluginMetadata = metadataDao.findById(plugin.getId()); @@ -114,12 +172,46 @@ public void updateStatus(PluginMetadata plugin) { } } + @Override + public PluginParametersVO getParamDefine(Long pluginMetadataId) { + + PluginParametersVO pluginParametersVO = new PluginParametersVO(); + if (PARAMS_CONFIG_MAP.containsKey(pluginMetadataId)) { + PluginConfig config = PARAMS_CONFIG_MAP.get(pluginMetadataId); + List paramsByPluginMetadataId = pluginParamDao.findParamsByPluginMetadataId(pluginMetadataId); + pluginParametersVO.setParamDefines(Optional.ofNullable(config).map(PluginConfig::getParams).orElse(new ArrayList<>())); + pluginParametersVO.setPluginParams(paramsByPluginMetadataId); + return pluginParametersVO; + } + return pluginParametersVO; + } + + @Override + @Transactional + public void savePluginParam(List params) { + if (CollectionUtils.isEmpty(params)) { + return; + } + pluginParamDao.deletePluginParamsByPluginMetadataId(params.get(0).getPluginMetadataId()); + pluginParamDao.saveAll(params); + syncPluginParamMap(params.get(0).getPluginMetadataId(), params, false); + } + + private void syncPluginParamMap(Long pluginMetadataId, List params, boolean isDelete) { + if (isDelete) { + PARAMS_MAP.remove(pluginMetadataId); + return; + } + List configmapList = params.stream().map(item -> new Configmap(item.getField(), item.getParamValue(), item.getType())).toList(); + PARAMS_MAP.put(pluginMetadataId, configmapList); + } static { PLUGIN_TYPE_MAPPING.put(Plugin.class, PluginType.POST_ALERT); + PLUGIN_TYPE_MAPPING.put(PostAlertPlugin.class, PluginType.POST_ALERT); + PLUGIN_TYPE_MAPPING.put(PostCollectPlugin.class, PluginType.POST_COLLECT); } - /** * verify the type of the jar package * @@ -133,6 +225,7 @@ public List validateJarFile(File jarFile) { try (URLClassLoader classLoader = new URLClassLoader(new URL[]{jarUrl}, this.getClass().getClassLoader()); JarFile jar = new JarFile(jarFile)) { Enumeration entries = jar.entries(); + Yaml yaml = new Yaml(); while (entries.hasMoreElements()) { JarEntry entry = entries.nextElement(); if (entry.getName().endsWith(".class")) { @@ -150,6 +243,11 @@ public List validateJarFile(File jarFile) { System.err.println("Failed to load class: " + className); } } + if ((entry.getName().contains("define")) && (entry.getName().endsWith(".yml") || entry.getName().endsWith(".yaml"))) { + try (InputStream ymlInputStream = jar.getInputStream(entry)) { + yaml.loadAs(ymlInputStream, List.class); + } + } } if (pluginItems.isEmpty()) { throw new CommonException("Illegal plug-ins, please refer to https://hertzbeat.apache.org/docs/help/plugin/"); @@ -161,6 +259,8 @@ public List validateJarFile(File jarFile) { } catch (MalformedURLException e) { log.error("Invalid JAR file URL: {}", jarFile.getAbsoluteFile(), e); throw new CommonException("Invalid JAR file URL: " + jarFile.getAbsolutePath()); + } catch (YAMLException e) { + throw new CommonException("YAML the file format is incorrect"); } return pluginItems; } @@ -169,13 +269,11 @@ private void validateMetadata(PluginMetadata metadata) { if (metadataDao.countPluginMetadataByName(metadata.getName()) != 0) { throw new CommonException("A plugin named " + metadata.getName() + " already exists"); } - if (itemDao.countPluginItemByClassIdentifierIn((metadata.getItems().stream().map(PluginItem::getClassIdentifier).collect(Collectors.toList()))) != 0) { - throw new CommonException("Plugin already exists"); - } } @Override @SneakyThrows + @Transactional public void savePlugin(PluginUpload pluginUpload) { String jarPath = new File(this.getClass().getProtectionDomain().getCodeSource().getLocation().getPath()).getAbsolutePath(); Path extLibPath = Paths.get(new File(jarPath).getParent(), "plugin-lib"); @@ -185,19 +283,27 @@ public void savePlugin(PluginUpload pluginUpload) { if (fileName == null) { throw new CommonException("Failed to upload plugin"); } + fileName = UUID.randomUUID().toString().replace("-", "") + "_" + fileName; File destFile = new File(extLibDir, fileName); FileUtils.createParentDirectories(destFile); pluginUpload.getJarFile().transferTo(destFile); - List pluginItems = validateJarFile(destFile); - + List pluginItems; + PluginMetadata pluginMetadata; + try { + pluginItems = validateJarFile(destFile); + pluginMetadata = PluginMetadata.builder() + .name(pluginUpload.getName()) + .enableStatus(true) + .items(pluginItems).jarFilePath(destFile.getAbsolutePath()) + .gmtCreate(LocalDateTime.now()) + .build(); + validateMetadata(pluginMetadata); + } catch (Exception e) { + // verification failed, delete file + FileUtils.delete(destFile); + throw e; + } // save plugin metadata - PluginMetadata pluginMetadata = PluginMetadata.builder() - .name(pluginUpload.getName()) - .enableStatus(true) - .items(pluginItems).jarFilePath(destFile.getAbsolutePath()) - .gmtCreate(LocalDateTime.now()) - .build(); - validateMetadata(pluginMetadata); metadataDao.save(pluginMetadata); itemDao.saveAll(pluginItems); // load jar to classloader @@ -212,7 +318,24 @@ public boolean pluginIsEnable(Class clazz) { } @Override - public Page getPlugins(Specification specification, PageRequest pageRequest) { + public Page getPlugins(String search, int pageIndex, int pageSize) { + // Get tag information + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (search != null && !search.isEmpty()) { + Predicate predicateApp = criteriaBuilder.like(root.get("name"), "%" + search + "%"); + andList.add(predicateApp); + } + Predicate[] andPredicates = new Predicate[andList.size()]; + Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); + + if (andPredicates.length == 0) { + return query.where().getRestriction(); + } else { + return andPredicate; + } + }; + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); return metadataDao.findAll(specification, pageRequest); } @@ -223,13 +346,33 @@ public Page getPlugins(Specification specificati private void syncPluginStatus() { List plugins = metadataDao.findAll(); Map statusMap = new HashMap<>(); + Map itemToPluginMetadataIdMap = new HashMap<>(); for (PluginMetadata plugin : plugins) { for (PluginItem item : plugin.getItems()) { statusMap.put(item.getClassIdentifier(), plugin.getEnableStatus()); + itemToPluginMetadataIdMap.put(item.getClassIdentifier(), plugin.getId()); } } PLUGIN_ENABLE_STATUS.clear(); PLUGIN_ENABLE_STATUS.putAll(statusMap); + ITEM_TO_PLUGINMETADATAID_MAP.clear(); + ITEM_TO_PLUGINMETADATAID_MAP.putAll(itemToPluginMetadataIdMap); + } + + @PostConstruct + private void initParams() { + try { + List params = pluginParamDao.findAll(); + Map> content = params.stream() + .collect(Collectors.groupingBy(PluginParam::getPluginMetadataId)); + + for (Map.Entry> entry : content.entrySet()) { + syncPluginParamMap(entry.getKey(), entry.getValue(), false); + } + } catch (Exception e) { + log.error("Failed to init params:{}", e.getMessage()); + throw new CommonException("Failed to init params:" + e.getMessage()); + } } /** @@ -238,30 +381,106 @@ private void syncPluginStatus() { @PostConstruct private void loadJarToClassLoader() { try { - if (pluginClassLoader != null) { - pluginClassLoader.close(); - } - List plugins = metadataDao.findPluginMetadataByEnableStatusTrue(); - List urls = new ArrayList<>(); - for (PluginMetadata metadata : plugins) { - URL url = new File(metadata.getJarFilePath()).toURI().toURL(); - urls.add(url); + for (URLClassLoader pluginClassLoader : pluginClassLoaders) { + if (pluginClassLoader != null) { + pluginClassLoader.close(); + } } - pluginClassLoader = new URLClassLoader(urls.toArray(new URL[0])); - } catch (MalformedURLException e) { - log.error("Failed to load plugin:{}", e.getMessage()); - throw new CommonException("Failed to load plugin:" + e.getMessage()); } catch (IOException e) { throw new RuntimeException(e); } + + if (!pluginClassLoaders.isEmpty()) { + pluginClassLoaders.clear(); + System.gc(); + } + PARAMS_CONFIG_MAP.clear(); + List plugins = metadataDao.findPluginMetadataByEnableStatusTrue(); + for (PluginMetadata metadata : plugins) { + try { + List urls = loadLibInPlugin(metadata.getJarFilePath(), metadata.getId()); + urls.add(new File(metadata.getJarFilePath()).toURI().toURL()); + pluginClassLoaders.add(new URLClassLoader(urls.toArray(new URL[0]), Plugin.class.getClassLoader())); + } catch (MalformedURLException e) { + log.error("Failed to load plugin:{}", e.getMessage()); + throw new CommonException("Failed to load plugin:" + e.getMessage()); + } catch (IOException exception) { + log.error("{} plugin file is missing, please delete the plugin and upload it again", metadata.getName()); + } + } + } + + /** + * loading other JAR files that are dependencies for the plugin + * + * @param pluginJarPath jar file path + * @param pluginMetadataId plugin id + * @return urls + */ + + private List loadLibInPlugin(String pluginJarPath, Long pluginMetadataId) throws IOException { + File libDir = new File(getOtherLibDir(pluginJarPath)); + FileUtils.forceMkdir(libDir); + List libUrls = new ArrayList<>(); + try (JarFile jarFile = new JarFile(pluginJarPath)) { + Enumeration entries = jarFile.entries(); + Yaml yaml = new Yaml(); + while (entries.hasMoreElements()) { + JarEntry entry = entries.nextElement(); + File file = new File(libDir, entry.getName()); + if (entry.isDirectory()) { + continue; + } + if (entry.getName().endsWith(".jar")) { + if (!file.getParentFile().exists()) { + FileUtils.createParentDirectories(file); + } + try (InputStream in = jarFile.getInputStream(entry); + OutputStream out = new FileOutputStream(file)) { + byte[] buffer = new byte[4096]; + int len; + while ((len = in.read(buffer)) != -1) { + out.write(buffer, 0, len); + } + libUrls.add(file.toURI().toURL()); + out.flush(); + } + } + if ((entry.getName().contains("define")) && (entry.getName().endsWith(".yml") || entry.getName().endsWith(".yaml"))) { + try (InputStream ymlInputStream = jarFile.getInputStream(entry)) { + PluginConfig config = yaml.loadAs(ymlInputStream, PluginConfig.class); + PARAMS_CONFIG_MAP.put(pluginMetadataId, config); + } + } + } + } + return libUrls; } @Override public void pluginExecute(Class clazz, Consumer execute) { - ServiceLoader load = ServiceLoader.load(clazz, pluginClassLoader); - for (T t : load) { - if (pluginIsEnable(t.getClass())) { - execute.accept(t); + for (URLClassLoader pluginClassLoader : pluginClassLoaders) { + ServiceLoader load = ServiceLoader.load(clazz, pluginClassLoader); + for (T t : load) { + if (pluginIsEnable(t.getClass())) { + execute.accept(t); + } + } + } + } + + @Override + public void pluginExecute(Class clazz, BiConsumer execute) { + for (URLClassLoader pluginClassLoader : pluginClassLoaders) { + ServiceLoader load = ServiceLoader.load(clazz, pluginClassLoader); + for (T t : load) { + if (!pluginIsEnable(t.getClass())) { + continue; + } + Long pluginId = ITEM_TO_PLUGINMETADATAID_MAP.get(t.getClass().getName()); + List configmapList = PARAMS_MAP.get(pluginId); + PluginContext context = PluginContext.builder().params(configmapList).build(); + execute.accept(t, context); } } } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SmsGeneralConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SmsGeneralConfigServiceImpl.java new file mode 100644 index 00000000000..c7cd3647575 --- /dev/null +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SmsGeneralConfigServiceImpl.java @@ -0,0 +1,66 @@ +/* + * 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.hertzbeat.manager.service.impl; + +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.lang.reflect.Type; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.SmsNoticeSender; +import org.springframework.stereotype.Service; + +/** + * SmsGeneralConfigServiceImpl class is the implementation of general sms configuration service, + * which inherits the AbstractGeneralConfigServiceImpl class. + */ + +@Service +public class SmsGeneralConfigServiceImpl extends AbstractGeneralConfigServiceImpl { + + /** + * SmsGeneralConfigServiceImpl's constructor creates an instance of this class + * through the default constructor or deserialization construction (setBeanProps). + * The parameter generalConfigDao is used for dao layer operation data, + * and objectMapper is used for object mapping. + * @param generalConfigDao dao layer operation data, needed to create an instance of this class + * @param objectMapper object mapping , needed to create an instance of this class + */ + public SmsGeneralConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { + super(generalConfigDao, objectMapper); + } + + @Override + public String type() { + return GeneralConfigTypeEnum.sms.name(); + } + + /** + * This method is used to get the TypeReference of NoticeSender type for subsequent processing. + * a TypeReference of NoticeSender type + */ + @Override + public TypeReference getTypeReference() { + return new TypeReference<>() { + @Override + public Type getType() { + return SmsNoticeSender.class; + } + }; + } +} diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemGeneralConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemGeneralConfigServiceImpl.java index 9a87eec4a13..396721afee5 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemGeneralConfigServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemGeneralConfigServiceImpl.java @@ -22,6 +22,7 @@ import jakarta.annotation.Resource; import java.lang.reflect.Type; import java.util.Objects; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; import org.apache.hertzbeat.common.support.event.SystemConfigChangeEvent; import org.apache.hertzbeat.common.util.TimeZoneUtil; import org.apache.hertzbeat.manager.dao.GeneralConfigDao; @@ -44,7 +45,7 @@ public class SystemGeneralConfigServiceImpl extends AbstractGeneralConfigService * @param generalConfigDao ConfigDao object * @param objectMapper JSON tool object */ - protected SystemGeneralConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { + public SystemGeneralConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { super(generalConfigDao, objectMapper); } @@ -60,11 +61,11 @@ public void handler(SystemConfig systemConfig) { @Override public String type() { - return "system"; + return GeneralConfigTypeEnum.system.name(); } @Override - protected TypeReference getTypeReference() { + public TypeReference getTypeReference() { return new TypeReference<>() { @Override public Type getType() { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemSecretServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemSecretServiceImpl.java index 4e3eb812d09..2915298dd4d 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemSecretServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/SystemSecretServiceImpl.java @@ -20,6 +20,7 @@ import com.fasterxml.jackson.core.type.TypeReference; import com.fasterxml.jackson.databind.ObjectMapper; import java.lang.reflect.Type; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; import org.apache.hertzbeat.manager.dao.GeneralConfigDao; import org.apache.hertzbeat.manager.pojo.dto.SystemSecret; import org.springframework.stereotype.Service; @@ -37,17 +38,17 @@ public class SystemSecretServiceImpl extends AbstractGeneralConfigServiceImpl getTypeReference() { + public TypeReference getTypeReference() { return new TypeReference<>() { @Override public Type getType() { diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TagServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TagServiceImpl.java index 479de1c4737..02ac69febf6 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TagServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TagServiceImpl.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.manager.service.impl; +import jakarta.persistence.criteria.Predicate; +import java.util.ArrayList; import java.util.HashSet; import java.util.List; import java.util.Optional; @@ -54,6 +56,11 @@ public class TagServiceImpl implements TagService { @Override public void addTags(List tags) { + // Verify request data + tags = tags.stream().peek(tag -> { + tag.setType((byte) 1); + tag.setId(null); + }).distinct().collect(Collectors.toList()); tagDao.saveAll(tags); } @@ -69,12 +76,46 @@ public void modifyTag(Tag tag) { } @Override - public Page getTags(Specification specification, PageRequest pageRequest) { + public Page getTags(String search, Byte type, int pageIndex, int pageSize) { + // Get tag information + Specification specification = (root, query, criteriaBuilder) -> { + List andList = new ArrayList<>(); + if (type != null) { + Predicate predicateApp = criteriaBuilder.equal(root.get("type"), type); + andList.add(predicateApp); + } + Predicate[] andPredicates = new Predicate[andList.size()]; + Predicate andPredicate = criteriaBuilder.and(andList.toArray(andPredicates)); + + List orList = new ArrayList<>(); + if (StringUtils.isNotBlank(search)) { + Predicate predicateName = criteriaBuilder.like(root.get("name"), "%" + search + "%"); + orList.add(predicateName); + Predicate predicateValue = criteriaBuilder.like(root.get("tagValue"), "%" + search + "%"); + orList.add(predicateValue); + } + Predicate[] orPredicates = new Predicate[orList.size()]; + Predicate orPredicate = criteriaBuilder.or(orList.toArray(orPredicates)); + + if (andPredicates.length == 0 && orPredicates.length == 0) { + return query.where().getRestriction(); + } else if (andPredicates.length == 0) { + return orPredicate; + } else if (orPredicates.length == 0) { + return andPredicate; + } else { + return query.where(andPredicate, orPredicate).getRestriction(); + } + }; + PageRequest pageRequest = PageRequest.of(pageIndex, pageSize); return tagDao.findAll(specification, pageRequest); } @Override public void deleteTags(HashSet ids) { + if (CollectionUtils.isEmpty(ids)){ + return; + } if (tagMonitorBindDao.countByTagIdIn(ids) != 0) { throw new CommonException("The tag is in use and cannot be deleted."); } diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TemplateConfigServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TemplateConfigServiceImpl.java index bb21f6d881b..492918ca244 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TemplateConfigServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/TemplateConfigServiceImpl.java @@ -21,6 +21,7 @@ import com.fasterxml.jackson.databind.ObjectMapper; import jakarta.annotation.Resource; import java.lang.reflect.Type; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; import org.apache.hertzbeat.manager.dao.GeneralConfigDao; import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; import org.apache.hertzbeat.manager.service.AppService; @@ -42,7 +43,7 @@ public class TemplateConfigServiceImpl extends AbstractGeneralConfigServiceImpl< * @param generalConfigDao configDao object * @param objectMapper JSON tool object */ - protected TemplateConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { + public TemplateConfigServiceImpl(GeneralConfigDao generalConfigDao, ObjectMapper objectMapper) { super(generalConfigDao, objectMapper); } @@ -55,7 +56,7 @@ public void handler(TemplateConfig templateConfig) { @Override public String type() { - return "template"; + return GeneralConfigTypeEnum.template.name(); } @Override diff --git a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/YamlImExportServiceImpl.java b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/YamlImExportServiceImpl.java index 2986a096b9e..7ff529a787d 100644 --- a/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/YamlImExportServiceImpl.java +++ b/manager/src/main/java/org/apache/hertzbeat/manager/service/impl/YamlImExportServiceImpl.java @@ -17,6 +17,8 @@ package org.apache.hertzbeat.manager.service.impl; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.YamlFile.FILE_SUFFIX; +import static org.apache.hertzbeat.common.constants.ExportFileConstants.YamlFile.TYPE; import java.io.InputStream; import java.io.OutputStream; import java.io.OutputStreamWriter; @@ -33,8 +35,6 @@ @Slf4j @Service public class YamlImExportServiceImpl extends AbstractImExportServiceImpl{ - public static final String TYPE = "YAML"; - public static final String FILE_SUFFIX = ".yaml"; /** * Export file type @@ -60,7 +60,7 @@ public String getFileName() { * @return form */ @Override - List parseImport(InputStream is) { + public List parseImport(InputStream is) { // todo now disable this, will enable it in the future. // upgrade to snakeyaml 2.2 and springboot3.x to fix the issue Yaml yaml = new Yaml(); @@ -73,7 +73,7 @@ List parseImport(InputStream is) { * @param os output stream */ @Override - void writeOs(List monitorList, OutputStream os) { + public void writeOs(List monitorList, OutputStream os) { DumperOptions options = new DumperOptions(); options.setDefaultFlowStyle(DumperOptions.FlowStyle.BLOCK); options.setIndent(2); diff --git a/manager/src/main/resources/application-test.yml b/manager/src/main/resources/application-test.yml index 9ba86b7c57d..24c06555d85 100644 --- a/manager/src/main/resources/application-test.yml +++ b/manager/src/main/resources/application-test.yml @@ -86,13 +86,14 @@ scheduler: enabled: true port: 1158 -#AI config +# AI config +# See the documentation for details : https://hertzbeat.apache.org/zh-cn/docs/help/aiConfig ai: - #AI Type:zhiPu - type: zhiPu - #Model name:glm-4 - model: glm-4 - #api key - api-key: xxx + # AI Type:zhiPu、alibabaAi、kimiAi、sparkDesk + type: + # Model name:glm-4、qwen-turboo、moonshot-v1-8k、generalv3.5 + model: + # api key + api-key: #At present, only IFLYTEK large model needs to be filled in - api-secret: xxx \ No newline at end of file + api-secret: \ No newline at end of file diff --git a/manager/src/main/resources/application.yml b/manager/src/main/resources/application.yml index 494d30d84dc..33ad559a274 100644 --- a/manager/src/main/resources/application.yml +++ b/manager/src/main/resources/application.yml @@ -33,7 +33,10 @@ spring: exclude: org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration freemarker: enabled: false - + servlet: + multipart: + max-file-size: 100MB + max-request-size: 100MB management: health: @@ -81,7 +84,7 @@ spring: eclipselink: logging: level: SEVERE - + flyway: enabled: true clean-disabled: true @@ -89,9 +92,9 @@ spring: baseline-version: 1 locations: - classpath:db/migration/{vendor} - + mail: - # Mail server address, eg: qq-mailbox is smtp.qq.com, qq-exmail is smtp.exmail.qq.com + # Mail server address, eg: qq-mailbox is smtp.qq.com, qq-exmail is smtp.exmail.qq.com host: smtp.qq.com username: tancloud@qq.com # Attention this is not email account password, this requires an email authorization code @@ -104,6 +107,8 @@ spring: socketFactoryClass: javax.net.ssl.SSLSocketFactory ssl: enable: true + starttls: + enable: false common: queue: @@ -160,22 +165,26 @@ warehouse: password: root expire-time: '30d' replication: 1 - - # store real-time metrics data, enable only one below + # store real-time metrics data, enable only one below + real-time: memory: enabled: true init-size: 16 redis: enabled: false - host: 127.0.0.1 - port: 6379 + # redis mode: single, sentinel, cluster. Default is single + mode: single + # separate each address with comma when using cluster mode, eg: 127.0.0.1:6379,127.0.0.1:6380 + address: 127.0.0.1:6379 + # enter master name when using sentinel mode + masterName: mymaster password: 123456 # redis db index, default: DB0 db: 0 alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk @@ -206,4 +215,4 @@ ai: # api key api-key: #At present, only IFLYTEK large model needs to be filled in - api-secret: \ No newline at end of file + api-secret: diff --git a/manager/src/main/resources/define/app-activemq.yml b/manager/src/main/resources/define/app-activemq.yml index 6c1878631eb..62e3157b80b 100644 --- a/manager/src/main/resources/define/app-activemq.yml +++ b/manager/src/main/resources/define/app-activemq.yml @@ -35,7 +35,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 目标Host + zh-CN: 目标 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -45,7 +45,7 @@ params: - field: port # name-param field display i18n name name: - zh-CN: JMX端口 + zh-CN: JMX 端口 en-US: JMX Port # type-param field type(most mapping the html input type) type: number @@ -148,50 +148,110 @@ metrics: url: ^_^url^_^ - name: broker + i18n: + zh-CN: Broker 信息 + en-US: Broker Info priority: 1 fields: - field: BrokerName type: 1 label: true + i18n: + zh-CN: Broker 名称 + en-US: Broker Name - field: BrokerVersion + i18n: + zh-CN: Broker 版本 + en-US: Broker Version type: 1 - field: Uptime + i18n: + zh-CN: 启动时长 + en-US: Uptime type: 1 - field: UptimeMillis + i18n: + zh-CN: 启动时长(毫秒) + en-US: Uptime Millis type: 0 unit: ms - field: Persistent + i18n: + zh-CN: 持久化 + en-US: Persistent type: 1 - field: DataDirectory + i18n: + zh-CN: 数据目录 + en-US: Data Directory type: 1 - field: MemoryPercentUsage + i18n: + zh-CN: 内存使用率 + en-US: Memory Percent Usage type: 0 unit: '%' - field: StorePercentUsage + i18n: + zh-CN: 存储使用率 + en-US: Store Percent Usage type: 0 unit: '%' - field: TempPercentUsage + i18n: + zh-CN: 临时使用率 + en-US: Temp Percent Usage type: 0 unit: '%' - field: CurrentConnectionsCount + i18n: + zh-CN: 当前连接数 + en-US: Current Connections Count type: 0 - field: TotalConnectionsCount + i18n: + zh-CN: 总连接数 + en-US: Total Connections Count type: 0 - field: TotalEnqueueCount + i18n: + zh-CN: 总入队数 + en-US: Total Enqueue Count type: 0 - field: TotalDequeueCount + i18n: + zh-CN: 总出队数 + en-US: Total Dequeue Count type: 0 - field: TotalConsumerCount + i18n: + zh-CN: 消费者总数 + en-US: Total Consumer Count type: 0 - field: TotalProducerCount + i18n: + zh-CN: 生产者总数 + en-US: Total Producer Count type: 0 - field: TotalMessageCount + i18n: + zh-CN: 总消息数 + en-US: Total Message Count type: 0 - field: AverageMessageSize + i18n: + zh-CN: 平均消息大小 + en-US: Average Message Size type: 0 - field: MaxMessageSize + i18n: + zh-CN: 最大消息大小 + en-US: Max Message Size type: 0 - field: MinMessageSize + i18n: + zh-CN: 最小消息大小 + en-US: Min Message Size type: 0 protocol: jmx jmx: @@ -208,52 +268,109 @@ metrics: - field: Name type: 1 label: true + i18n: + zh-CN: Topic 名称 + en-US: Topic Name - field: MemoryLimit type: 0 unit: MB + i18n: + zh-CN: 内存限制 + en-US: Memory Limit - field: MemoryPercentUsage type: 0 unit: '%' + i18n: + zh-CN: 内存使用率 + en-US: Memory Percent Usage - field: ProducerCount type: 0 + i18n: + zh-CN: 生产者数量 + en-US: Producer Count - field: ConsumerCount type: 0 + i18n: + zh-CN: 消费者数量 + en-US: Consumer Count - field: EnqueueCount type: 0 + i18n: + zh-CN: 入队数量 + en-US: Enqueue Count - field: DequeueCount type: 0 + i18n: + zh-CN: 出队数量 + en-US: Dequeue Count - field: ForwardCount type: 0 + i18n: + zh-CN: 转发数量 + en-US: Forward Count - field: InFlightCount type: 0 + i18n: + zh-CN: 进行中数量 + en-US: In Flight Count - field: DispatchCount type: 0 + i18n: + zh-CN: 分发数量 + en-US: Dispatch Count - field: ExpiredCount type: 0 + i18n: + zh-CN: 过期数量 + en-US: Expired Count - field: StoreMessageSize type: 0 unit: B + i18n: + zh-CN: 存储消息大小 + en-US: Store Message Size - field: AverageEnqueueTime type: 0 unit: ms + i18n: + zh-CN: 平均入队时间 + en-US: Average Enqueue Time - field: MaxEnqueueTime type: 0 unit: ms + i18n: + zh-CN: 最大入队时间 + en-US: Max Enqueue Time - field: MinEnqueueTime type: 0 unit: ms + i18n: + zh-CN: 最小入队时间 + en-US: Min Enqueue Time - field: TotalBlockedTime type: 0 unit: ms + i18n: + zh-CN: 总阻塞时间 + en-US: Total Blocked Time - field: AverageMessageSize type: 0 unit: B + i18n: + zh-CN: 平均消息大小 + en-US: Average Message Size - field: MaxMessageSize type: 0 unit: B + i18n: + zh-CN: 最大消息大小 + en-US: Max Message Size - field: MinMessageSize type: 0 unit: B + i18n: + zh-CN: 最小消息大小 + en-US: Min Message Size units: - MemoryLimit=B->MB protocol: jmx diff --git a/manager/src/main/resources/define/app-airflow.yml b/manager/src/main/resources/define/app-airflow.yml index beffb1d415e..0d2c92e62ec 100644 --- a/manager/src/main/resources/define/app-airflow.yml +++ b/manager/src/main/resources/define/app-airflow.yml @@ -35,7 +35,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 服务器Host + zh-CN: 服务器 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -76,23 +76,23 @@ params: metrics: - name: airflow_health i18n: - zh-CN: airflow健康状态 + zh-CN: airflow 健康状态 en-US: airflow health status priority: 0 fields: - field: metadatabase i18n: - zh-CN: metadatabase健康情况 + zh-CN: metadatabase 健康情况 en-US: metadatabase status type: 1 - field: scheduler i18n: - zh-CN: scheduler健康情况 + zh-CN: scheduler 健康情况 en-US: scheduler status type: 1 - field: triggerer i18n: - zh-CN: triggerer健康情况 + zh-CN: triggerer 健康情况 en-US: triggerer status type: 1 aliasFields: @@ -120,13 +120,13 @@ metrics: - name: airflow_version i18n: - zh-CN: Airflow版本 + zh-CN: Airflow 版本 en-US: airflow version priority: 1 fields: - field: version i18n: - zh-CN: Airflow版本 + zh-CN: Airflow 版本 en-US: Airflow version type: 1 - field: git_version diff --git a/manager/src/main/resources/define/app-almalinux.yml b/manager/src/main/resources/define/app-almalinux.yml index 2452a389d5c..bac55b99830 100644 --- a/manager/src/main/resources/define/app-almalinux.yml +++ b/manager/src/main/resources/define/app-almalinux.yml @@ -35,7 +35,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 目标Host + zh-CN: 目标 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num @@ -444,7 +444,7 @@ metrics: type: 0 unit: '%' i18n: - zh-CN: CPU占用率 + zh-CN: CPU 占用率 en-US: CPU Usage - field: mem_usage type: 0 @@ -491,7 +491,7 @@ metrics: type: 0 unit: '%' i18n: - zh-CN: CPU占用率 + zh-CN: CPU 占用率 en-US: CPU Usage - field: command type: 1 diff --git a/manager/src/main/resources/define/app-api.yml b/manager/src/main/resources/define/app-api.yml index add08ab5254..e3eaa9b631f 100644 --- a/manager/src/main/resources/define/app-api.yml +++ b/manager/src/main/resources/define/app-api.yml @@ -309,3 +309,48 @@ metrics: # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule parseType: website keyword: ^_^keyword^_^ + - name: header + i18n: + zh-CN: 请求头 + en-US: Header + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 1 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: Content-Type + type: 1 + i18n: + zh-CN: Content Type + en-US: Content Type + - field: Content-Length + type: 1 + i18n: + zh-CN: 响应内容长度 + en-US: Content Length + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: http + # the config content when protocol is http + http: + # http host: ipv4 ipv6 domain + host: ^_^host^_^ + # http port + port: ^_^port^_^ + # http url + url: ^_^uri^_^ + timeout: ^_^timeout^_^ + # http method: GET POST PUT DELETE PATCH + method: GET + # if enabled https + ssl: ^_^ssl^_^ + authorization: + # http auth type: Basic Auth, Digest Auth, Bearer Token + type: ^_^authType^_^ + basicAuthUsername: ^_^username^_^ + basicAuthPassword: ^_^password^_^ + digestAuthUsername: ^_^username^_^ + digestAuthPassword: ^_^password^_^ + # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule + parseType: website + keyword: ^_^keyword^_^ \ No newline at end of file diff --git a/manager/src/main/resources/define/app-centos.yml b/manager/src/main/resources/define/app-centos.yml index 4b5a579037a..2954d1558cf 100644 --- a/manager/src/main/resources/define/app-centos.yml +++ b/manager/src/main/resources/define/app-centos.yml @@ -178,7 +178,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -239,7 +239,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -306,12 +306,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num @@ -379,7 +379,7 @@ metrics: privateKey: ^_^privateKey^_^ timeout: ^_^timeout^_^ reuseConnection: ^_^reuseConnection^_^ - script: cat /proc/net/dev | tail -n +3 | awk 'BEGIN{ print "interface_name receive_bytes transmit_bytes"} {print $1,$2,$10}' + script: cat /proc/net/dev | tail -n +3 | awk 'BEGIN{ print "interface_name receive_bytes transmit_bytes"} {gsub(":", "", $1); print $1,$2,$10}' parseType: multiRow - name: disk_free diff --git a/manager/src/main/resources/define/app-coreos.yml b/manager/src/main/resources/define/app-coreos.yml index e074c2c9ede..b3e22a4b9fe 100644 --- a/manager/src/main/resources/define/app-coreos.yml +++ b/manager/src/main/resources/define/app-coreos.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-debian.yml b/manager/src/main/resources/define/app-debian.yml index 225f4d46e9e..11827652a52 100644 --- a/manager/src/main/resources/define/app-debian.yml +++ b/manager/src/main/resources/define/app-debian.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-doris_be.yml b/manager/src/main/resources/define/app-doris_be.yml index 658b339f504..6dbbe22fc80 100644 --- a/manager/src/main/resources/define/app-doris_be.yml +++ b/manager/src/main/resources/define/app-doris_be.yml @@ -34,7 +34,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 目标Host + zh-CN: 目标 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -62,6 +62,9 @@ params: defaultValue: 6000 metrics: - name: doris_be_load_channel_count + i18n: + zh-CN: 加载通道数 + en-US: Load Channel Count priority: 0 fields: - field: value @@ -76,6 +79,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_memtable_flush_total + i18n: + zh-CN: Memtable 刷新总数 + en-US: Memtable Flush Total priority: 0 fields: - field: value @@ -90,6 +96,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_plan_fragment_count + i18n: + zh-CN: Plan Fragment 数量 + en-US: Plan Fragment Count priority: 0 fields: - field: value @@ -104,6 +113,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_process_thread_num + i18n: + zh-CN: 进程线程数 + en-US: Process Thread Num priority: 0 fields: - field: value @@ -118,6 +130,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_query_scan_rows + i18n: + zh-CN: 查询扫描行数 + en-US: Query Scan Rows priority: 0 fields: - field: value @@ -132,6 +147,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_result_buffer_block_count + i18n: + zh-CN: 结果缓冲区块数 + en-US: Result Buffer Block Count priority: 0 fields: - field: value @@ -146,6 +164,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_send_batch_thread_pool_queue_size + i18n: + zh-CN: 批量发送线程池队列大小 + en-US: Send Batch Thread Pool Queue Size priority: 0 fields: - field: value @@ -160,6 +181,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_tablet_base_max_compaction_score + i18n: + zh-CN: Tablet Base 最大压缩分数 + en-US: Tablet Base Max Compaction Score priority: 0 fields: - field: value @@ -174,6 +198,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_timeout_canceled_fragment_count + i18n: + zh-CN: 超时取消的 Fragment 数量 + en-US: Timeout Canceled Fragment Count priority: 0 fields: - field: value @@ -188,6 +215,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_load_rows + i18n: + zh-CN: 加载行数 + en-US: Load Rows priority: 0 fields: - field: value @@ -202,6 +232,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_all_rowsets_num + i18n: + zh-CN: Rowset 总数 + en-US: All Rowsets Num priority: 0 fields: - field: value @@ -216,6 +249,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_all_segments_num + i18n: + zh-CN: Segment 总数 + en-US: All Segments Num priority: 0 fields: - field: value @@ -230,6 +266,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_heavy_work_max_threads + i18n: + zh-CN: 繁重工作最大线程数 + en-US: Heavy Work Max Threads priority: 0 fields: - field: value @@ -244,6 +283,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_light_work_max_threads + i18n: + zh-CN: 轻量工作最大线程数 + en-US: Light Work Max Threads priority: 0 fields: - field: value @@ -258,6 +300,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_heavy_work_pool_queue_size + i18n: + zh-CN: 繁重工作池队列大小 + en-US: Heavy Work Pool Queue Size priority: 0 fields: - field: value @@ -272,6 +317,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_light_work_pool_queue_size + i18n: + zh-CN: 轻量工作池队列大小 + en-US: Light Work Pool Queue Size priority: 0 fields: - field: value @@ -286,6 +334,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_heavy_work_active_threads + i18n: + zh-CN: 繁重工作活跃线程数 + en-US: Heavy Work Active Threads priority: 0 fields: - field: value @@ -300,6 +351,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_light_work_active_threads + i18n: + zh-CN: 轻量工作活跃线程数 + en-US: Light Work Active Threads priority: 0 fields: - field: value @@ -314,6 +368,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_compaction_bytes_total + i18n: + zh-CN: 压缩字节总数 + en-US: Compaction Bytes Total priority: 0 fields: - field: type @@ -331,6 +388,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_disks_avail_capacity + i18n: + zh-CN: 磁盘可用容量 + en-US: Disks Avail Capacity priority: 0 fields: - field: path @@ -348,6 +408,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_disks_total_capacity + i18n: + zh-CN: 磁盘总容量 + en-US: Disks Total Capacity priority: 0 fields: - field: path @@ -365,6 +428,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_local_bytes_read_total + i18n: + zh-CN: 本地读取字节总数 + en-US: Local Bytes Read Total priority: 0 fields: - field: value @@ -380,6 +446,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_local_bytes_written_total + i18n: + zh-CN: 本地写入字节总数 + en-US: Local Bytes Written Total priority: 0 fields: - field: value @@ -395,6 +464,9 @@ metrics: method: GET parseType: prometheus - name: doris_be_memory_allocated_bytes + i18n: + zh-CN: 内存分配字节 + en-US: Memory Allocated Bytes priority: 0 fields: - field: value diff --git a/manager/src/main/resources/define/app-doris_fe.yml b/manager/src/main/resources/define/app-doris_fe.yml index 019ab1f1682..e7b4955d229 100644 --- a/manager/src/main/resources/define/app-doris_fe.yml +++ b/manager/src/main/resources/define/app-doris_fe.yml @@ -34,7 +34,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 目标Host + zh-CN: 目标 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -62,6 +62,9 @@ params: defaultValue: 6000 metrics: - name: doris_fe_connection_total + i18n: + zh-CN: 连接总数 + en-US: Connection Total priority: 0 fields: - field: value @@ -81,6 +84,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_edit_log_clean + i18n: + zh-CN: 编辑日志清理 + en-US: Edit Log Clean priority: 0 fields: - field: type @@ -102,6 +108,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_edit_log + i18n: + zh-CN: 编辑日志 + en-US: Edit Log priority: 0 fields: - field: type @@ -123,6 +132,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_image_clean + i18n: + zh-CN: 图片清理 + en-US: Image Clean priority: 0 fields: - field: type @@ -144,6 +156,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_image_write + i18n: + zh-CN: 图片写入 + en-US: Image Write priority: 0 fields: - field: type @@ -165,6 +180,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_query_err + i18n: + zh-CN: 查询错误 + en-US: Query Error priority: 0 fields: - field: value @@ -184,6 +202,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_max_journal_id + i18n: + zh-CN: 最大日志ID + en-US: Max Journal ID priority: 0 fields: - field: value @@ -203,6 +224,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_max_tablet_compaction_score + i18n: + zh-CN: 最大Tablet压缩分数 + en-US: Max Tablet Compaction Score priority: 0 fields: - field: value @@ -222,6 +246,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_qps + i18n: + zh-CN: 每秒查询率 + en-US: QPS priority: 0 fields: - field: value @@ -241,6 +268,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_query_err_rate + i18n: + zh-CN: 查询错误率 + en-US: Query Error Rate priority: 0 fields: - field: value @@ -262,6 +292,9 @@ metrics: parseType: prometheus - name: doris_fe_report_queue_size + i18n: + zh-CN: 报告队列大小 + en-US: Report Queue Size priority: 0 fields: - field: value @@ -281,6 +314,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_rps + i18n: + zh-CN: 每秒转数 + en-US: RPS priority: 0 fields: - field: value @@ -300,6 +336,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_scheduled_tablet_num + i18n: + zh-CN: 调度 Tablet 数量 + en-US: Scheduled Tablet Num priority: 0 fields: - field: value @@ -319,6 +358,9 @@ metrics: method: GET parseType: prometheus - name: doris_fe_txn_status + i18n: + zh-CN: 事务状态 + en-US: Transaction Status priority: 0 fields: - field: type diff --git a/manager/src/main/resources/define/app-dynamic_tp.yml b/manager/src/main/resources/define/app-dynamic_tp.yml index f2be6b2613d..c57f1b00e9c 100644 --- a/manager/src/main/resources/define/app-dynamic_tp.yml +++ b/manager/src/main/resources/define/app-dynamic_tp.yml @@ -19,7 +19,7 @@ category: program app: dynamic_tp # The monitoring i18n name name: - zh-CN: DynamicTp线程池 + zh-CN: DynamicTp 线程池 en-US: DynamicTp Pool # The description and help of this monitoring type help: diff --git a/manager/src/main/resources/define/app-elasticsearch.yml b/manager/src/main/resources/define/app-elasticsearch.yml index 8352171bc3c..be6e3ccb60b 100644 --- a/manager/src/main/resources/define/app-elasticsearch.yml +++ b/manager/src/main/resources/define/app-elasticsearch.yml @@ -297,7 +297,7 @@ metrics: zh-CN: 内存使用率 en-US: Heap Used Percent - field: heap_total - type: 0 + type: 1 unit: 'MB' i18n: zh-CN: 总内存(MB) @@ -309,7 +309,7 @@ metrics: zh-CN: 磁盘剩余容量(GB) en-US: Disk Free - field: disk_total - type: 0 + type: 1 unit: 'GB' i18n: zh-CN: 磁盘总容量 diff --git a/manager/src/main/resources/define/app-emqx.yml b/manager/src/main/resources/define/app-emqx.yml index 12d93a90a5f..e15695a26c0 100644 --- a/manager/src/main/resources/define/app-emqx.yml +++ b/manager/src/main/resources/define/app-emqx.yml @@ -162,6 +162,9 @@ metrics: parseScript: '$' - name: metrics + i18n: + zh-CN: 指标 + en-US: Metrics # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -170,30 +173,69 @@ metrics: # metrics content contains field-metric name, type-metric type:0-number,1-string, instance-if is metrics, unit-metric unit('%','ms','MB') - field: client_connected type: 0 + i18n: + zh-CN: 客户端连接 + en-US: Client Connected - field: client_disconnected type: 0 + i18n: + zh-CN: 客户端断开 + en-US: Client Disconnected - field: packets_sent type: 0 + i18n: + zh-CN: 发送数据包 + en-US: Packets Sent - field: packets_received type: 0 + i18n: + zh-CN: 接收数据包 + en-US: Packets Received - field: bytes_sent type: 0 + i18n: + zh-CN: 发送字节 + en-US: Bytes Sent - field: bytes_received type: 0 + i18n: + zh-CN: 接收字节 + en-US: Bytes Received - field: messages_sent type: 0 + i18n: + zh-CN: 发送消息 + en-US: Messages Sent - field: messages_acked type: 0 + i18n: + zh-CN: 消息确认 + en-US: Messages Acked - field: messages_delayed type: 0 + i18n: + zh-CN: 延迟消息 + en-US: Messages Delayed - field: authorization_deny type: 0 + i18n: + zh-CN: 授权拒绝 + en-US: Authorization Deny - field: client_authorize type: 0 + i18n: + zh-CN: 客户端授权 + en-US: Client Authorize - field: session_created type: 0 + i18n: + zh-CN: 会话创建 + en-US: Session Created - field: session_discarded type: 0 + i18n: + zh-CN: 会话丢弃 + en-US: Session Discarded # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field aliasFields: - client.connected @@ -251,53 +293,122 @@ metrics: parseScript: '$' - name: stats + i18n: + zh-CN: 统计 + en-US: Stats priority: 2 fields: # metrics content contains field-metric name, type-metric type:0-number,1-string, instance-if is metrics, unit-metric unit('%','ms','MB') - field: channels_count type: 0 + i18n: + zh-CN: 通道数 + en-US: Channels Count - field: channels_max type: 0 + i18n: + zh-CN: 通道最大数 + en-US: Channels Max - field: connections_count type: 0 + i18n: + zh-CN: 连接数 + en-US: Connections Count - field: connections_max type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Connections Max - field: delayed_count type: 0 + i18n: + zh-CN: 延迟数 + en-US: Delayed Count - field: delayed_max type: 0 + i18n: + zh-CN: 最大延迟数 + en-US: Delayed Max - field: live_connections_count type: 0 + i18n: + zh-CN: 活动连接数 + en-US: Live Connections Count - field: live_connections_max type: 0 + i18n: + zh-CN: 最大活动连接数 + en-US: Live Connections Max - field: retained_count type: 0 + i18n: + zh-CN: 保留数 + en-US: Retained Count - field: retained_max type: 0 + i18n: + zh-CN: 最大保留数 + en-US: Retained Max - field: sessions_count type: 0 + i18n: + zh-CN: 会话数 + en-US: Sessions Count - field: sessions_max type: 0 + i18n: + zh-CN: 最大会话数 + en-US: Sessions Max - field: suboptions_count type: 0 + i18n: + zh-CN: 订阅选项数 + en-US: Suboptions Count - field: suboptions_max type: 0 + i18n: + zh-CN: 最大订阅选项数 + en-US: Suboptions Max - field: subscribers_count type: 0 + i18n: + zh-CN: 订阅者数 + en-US: Subscribers Count - field: subscribers_max type: 0 + i18n: + zh-CN: 最大订阅者数 + en-US: Subscribers Max - field: subscriptions_count type: 0 + i18n: + zh-CN: 订阅数 + en-US: Subscriptions Count - field: subscriptions_max type: 0 + i18n: + zh-CN: 最大订阅数 + en-US: Subscriptions Max - field: subscriptions_shared_count type: 0 + i18n: + zh-CN: 共享订阅数 + en-US: Subscriptions Shared Count - field: subscriptions_shared_max type: 0 + i18n: + zh-CN: 最大共享订阅数 + en-US: Subscriptions Shared Max - field: topics_count type: 0 + i18n: + zh-CN: 主题数 + en-US: Topics Count - field: topics_max type: 0 + i18n: + zh-CN: 最大主题数 + en-US: Topics Max # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field aliasFields: - channels.count diff --git a/manager/src/main/resources/define/app-euleros.yml b/manager/src/main/resources/define/app-euleros.yml index 761830403dc..9c9f172a612 100644 --- a/manager/src/main/resources/define/app-euleros.yml +++ b/manager/src/main/resources/define/app-euleros.yml @@ -19,7 +19,7 @@ category: os app: euleros # The monitoring i18n name name: - zh-CN: EulerOS操作系统 + zh-CN: EulerOS 操作系统 en-US: EulerOS # The description and help of this monitoring type help: @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-greenplum.yml b/manager/src/main/resources/define/app-greenplum.yml new file mode 100644 index 00000000000..d5ecbeea201 --- /dev/null +++ b/manager/src/main/resources/define/app-greenplum.yml @@ -0,0 +1,753 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: db +# The monitoring type eg: linux windows tomcat mysql aws... +app: greenplum +# The monitoring i18n name +name: + zh-CN: GreenPlum 数据库 + en-US: GreenPlum DB +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 使用 JDBC 协议 通过配置 SQL 对 GreenPlum 数据库的通用性能指标 (basic、state、activity etc) 进行采集监控,支持版本为 GreenPlum 6.23.0+。
您可以点击“新建 GreenPlum 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat uses JDBC Protocol to configure SQL for collecting general metrics of GreenPlum database (basic、state、activity etc). Supported version is GreenPlum 6.23.0+.
You can click "New GreenPlum Database" and configure it, or select "More Action" to import the existing configuration. + zh-TW: HertzBeat 使用 JDBC 協議 通過配置 SQL 對 GreenPlum 數據庫的通用性能指標 (basic、state、activity etc)進行采集監控,支持版本爲 GreenPlum 6.23.0+。
您可以點擊“新建 GreenPlum 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/greenplum + en-US: https://hertzbeat.apache.org/docs/help/greenplum +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 5432 + - field: timeout + name: + zh-CN: 查询超时时间(ms) + en-US: Query Timeout(ms) + type: number + range: '[400,200000]' + required: false + hide: true + defaultValue: 6000 + - field: database + name: + zh-CN: 数据库名称 + en-US: Database Name + type: text + defaultValue: postgres + required: false + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + limit: 50 + required: false + - field: password + name: + zh-CN: 密码 + en-US: Password + type: password + required: false + - field: url + name: + zh-CN: URL + en-US: URL + type: text + required: false + hide: true + +# collect metrics config list +metrics: + # metrics - basic + - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: server_version + type: 1 + label: true + i18n: + zh-CN: 服务器版本 + en-US: Server Version + - field: port + type: 1 + i18n: + zh-CN: 端口 + en-US: Port + - field: server_encoding + type: 1 + i18n: + zh-CN: 服务器编码 + en-US: Server Encoding + - field: data_directory + type: 1 + i18n: + zh-CN: 数据目录 + en-US: Data Directory + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: jdbc + # the config content when protocol is jdbc + jdbc: + # host: ipv4 ipv6 host + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + # database platform name + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + # SQL Query Method:oneRow, multiRow, columns + queryType: columns + # sql + sql: select name, setting as value from pg_settings where name = 'max_connections' or name = 'server_version' or name = 'server_encoding' or name = 'port' or name = 'data_directory'; + # JDBC url + url: ^_^url^_^ + + - name: state + i18n: + zh-CN: 状态信息 + en-US: State Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + - field: blks_read + type: 0 + unit: blocks per second + i18n: + zh-CN: 读取块 + en-US: Blocks Read + - field: blks_hit + type: 0 + unit: blocks per second + i18n: + zh-CN: 命中块 + en-US: Blocks Hit + - field: blk_read_time + type: 0 + unit: ms + i18n: + zh-CN: 读取时间 + en-US: Read Time + - field: blk_write_time + type: 0 + unit: ms + i18n: + zh-CN: 写入时间 + en-US: Write Time + - field: stats_reset + type: 1 + i18n: + zh-CN: 统计重置 + en-US: Stats Reset + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks, blks_read, blks_hit, blk_read_time, blk_write_time, stats_reset from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: activity + i18n: + zh-CN: 活动信息 + en-US: Activity Info + priority: 2 + fields: + - field: running + type: 0 + unit: sbc + i18n: + zh-CN: 运行中 + en-US: Running + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: SELECT count(*) as running FROM pg_stat_activity WHERE NOT pid=pg_backend_pid(); + url: ^_^url^_^ + + - name: resource_config + i18n: + zh-CN: 资源配置 + en-US: Resource Config + priority: 1 + fields: + - field: work_mem + type: 0 + unit: MB + i18n: + zh-CN: 工作内存 + en-US: Work Memory + - field: shared_buffers + type: 0 + unit: MB + i18n: + zh-CN: 共享缓冲区 + en-US: Shared Buffers + - field: autovacuum + type: 1 + i18n: + zh-CN: 自动清理 + en-US: Auto Vacuum + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + - field: effective_cache_size + type: 0 + unit: MB + i18n: + zh-CN: 有效缓存大小 + en-US: Effective Cache Size + - field: wal_buffers + type: 0 + unit: MB + i18n: + zh-CN: WAL缓冲区 + en-US: WAL Buffers + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: columns + sql: show all; + url: ^_^url^_^ + + - name: connection + i18n: + zh-CN: 连接信息 + en-US: Connection Info + priority: 1 + fields: + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select count(1) as active from pg_stat_activity; + url: ^_^url^_^ + + - name: connection_state + i18n: + zh-CN: 连接状态 + en-US: Connection State + priority: 1 + fields: + - field: state + type: 1 + label: true + i18n: + zh-CN: 状态 + en-US: State + - field: num + type: 0 + i18n: + zh-CN: 数量 + en-US: Num + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(state, 'other') as state, count(*) as num from pg_stat_activity group by state; + url: ^_^url^_^ + + - name: connection_db + i18n: + zh-CN: 连接数据库 + en-US: Connection Db + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select count(*) as active, COALESCE(datname, 'other') as db_name from pg_stat_activity group by datname; + url: ^_^url^_^ + + - name: tuple + i18n: + zh-CN: 元组信息 + en-US: Tuple Info + priority: 1 + fields: + - field: fetched + type: 0 + i18n: + zh-CN: 获取次数 + en-US: Fetched + - field: returned + type: 0 + i18n: + zh-CN: 返回次数 + en-US: Returned + - field: inserted + type: 0 + i18n: + zh-CN: 插入次数 + en-US: Inserted + - field: updated + type: 0 + i18n: + zh-CN: 更新次数 + en-US: Updated + - field: deleted + type: 0 + i18n: + zh-CN: 删除次数 + en-US: Deleted + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select sum(tup_fetched) as fetched, sum(tup_updated) as updated, sum(tup_deleted) as deleted, sum(tup_inserted) as inserted, sum(tup_returned) as returned from pg_stat_database; + url: ^_^url^_^ + + - name: temp_file + i18n: + zh-CN: 临时文件 + en-US: Temp File + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: num + type: 0 + i18n: + zh-CN: 次数 + en-US: Num + - field: size + type: 0 + unit: B + i18n: + zh-CN: 大小 + en-US: Size + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(temp_files) as num, sum(temp_bytes) as size from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: lock + i18n: + zh-CN: 锁信息 + en-US: Lock Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: slow_sql + i18n: + zh-CN: 慢查询 + en-US: Slow Sql + priority: 1 + fields: + - field: sql_text + type: 1 + label: true + i18n: + zh-CN: SQL语句 + en-US: SQL Text + - field: calls + type: 0 + i18n: + zh-CN: 调用次数 + en-US: Calls + - field: rows + type: 0 + i18n: + zh-CN: 行数 + en-US: Rows + - field: avg_time + type: 0 + unit: ms + i18n: + zh-CN: 平均时间 + en-US: Avg Time + - field: total_time + type: 0 + unit: ms + i18n: + zh-CN: 总时间 + en-US: Total Time + aliasFields: + - query + - calls + - rows + - total_exec_time + - mean_exec_time + calculates: + - sql_text=query + - avg_time=mean_exec_time + - total_time=total_exec_time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select * from pg_stat_statements; + url: ^_^url^_^ + + - name: transaction + i18n: + zh-CN: 事务信息 + en-US: Transaction Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: commits + type: 0 + unit: times + i18n: + zh-CN: 提交次数 + en-US: Commits + - field: rollbacks + type: 0 + unit: times + i18n: + zh-CN: 回滚次数 + en-US: Rollbacks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(xact_commit) as commits, sum(xact_rollback) as rollbacks from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: conflicts + i18n: + zh-CN: 冲突信息 + en-US: Conflicts Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: tablespace + type: 0 + i18n: + zh-CN: 表空间 + en-US: Tablespace + - field: lock + type: 0 + i18n: + zh-CN: 锁 + en-US: Lock + - field: snapshot + type: 0 + i18n: + zh-CN: 快照 + en-US: Snapshot + - field: bufferpin + type: 0 + i18n: + zh-CN: 缓冲区 + en-US: Bufferpin + - field: deadlock + type: 0 + i18n: + zh-CN: 死锁 + en-US: Deadlock + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, confl_tablespace as tablespace, confl_lock as lock, confl_snapshot as snapshot, confl_bufferpin as bufferpin, confl_deadlock as deadlock from pg_stat_database_conflicts; + url: ^_^url^_^ + + - name: cache_hit_ratio + i18n: + zh-CN: 缓存命中率 + en-US: Cache Hit Ratio + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: ratio + type: 0 + unit: '%' + i18n: + zh-CN: 命中率 + en-US: Hit Ratio + aliasFields: + - blks_hit + - blks_read + - db_name + calculates: + - ratio=(blks_hit + 1) / (blks_read + blks_hit + 1) * 100 + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, blks_hit, blks_read from pg_stat_database; + url: ^_^url^_^ + + - name: checkpoint + i18n: + zh-CN: Checkpoint信息 + en-US: Checkpoint Info + priority: 2 + fields: + - field: checkpoint_sync_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint同步时间 + en-US: Checkpoint Sync Time + - field: checkpoint_write_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint写入时间 + en-US: Checkpoint Write Time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select checkpoint_sync_time, checkpoint_write_time from pg_stat_bgwriter; + url: ^_^url^_^ + + - name: buffer + i18n: + zh-CN: Buffer信息 + en-US: Buffer Info + priority: 2 + fields: + - field: allocated + type: 0 + i18n: + zh-CN: 已分配 + en-US: Allocated + - field: fsync_calls_by_backend + type: 0 + i18n: + zh-CN: 后端进程直接执行的文件同步调用次数 + en-US: Fsync Calls By Backend + - field: written_directly_by_backend + type: 0 + i18n: + zh-CN: 后台写入到数据文件 + en-US: Written Directly By Backend + - field: written_by_background_writer + type: 0 + i18n: + zh-CN: 后台写入 + en-US: Written By Background Writer + - field: written_during_checkpoints + type: 0 + i18n: + zh-CN: 检查点期间写入 + en-US: Written During Checkpoints + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select buffers_alloc as allocated, buffers_backend_fsync as fsync_calls_by_backend, buffers_backend as written_directly_by_backend, buffers_clean as written_by_background_writer, buffers_checkpoint as written_during_checkpoints from pg_stat_bgwriter; + url: ^_^url^_^ diff --git a/manager/src/main/resources/define/app-greptime.yml b/manager/src/main/resources/define/app-greptime.yml new file mode 100644 index 00000000000..1671e872e5f --- /dev/null +++ b/manager/src/main/resources/define/app-greptime.yml @@ -0,0 +1,695 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +# 监控类型所属类别:service-应用服务 program-应用程序 db-数据库 custom-自定义 os-操作系统 bigdata-大数据 mid-中间件 webserver-web服务器 cache-缓存 cn-云原生 network-网络监控等等 +category: bigdata +# The monitoring type eg: linux windows tomcat mysql aws... +# 监控类型 eg: linux windows tomcat mysql aws... +app: greptimeDB +# The monitoring i18n name +# 监控类型国际化名称 +name: + zh-CN: GreptimeDB + en-US: GreptimeDB +# The description and help of this monitoring type +# 监控类型的帮助描述信息 +help: + zh-CN: HertzBeat 对 GreptimeDB 时序数据库进行监控。
点击查看开启步骤 + en-US: HertzBeat monitors the GreptimeDB time series database.
Click to view the activation steps. + zh-TW: HertzBeat 對 GreptimeDB 時序資料庫進行監控。
點擊查看開啓步驟 +helpLink: + zh-CN: https://hertzbeat.com/zh-cn/docs/help/greptimedb + en-US: https://hertzbeat.com/docs/help/greptimedb +# 监控所需输入参数定义(根据定义渲染页面UI) +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + # field-变量字段标识符 + - field: host + # name-param field display i18n name + # name-参数字段显示名称 + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + # type-字段类型,样式(大部分映射input标签type属性) + type: host + # required-true or false + # required-是否是必输项 true-必填 false-可选 + required: true + - field: port + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + # type-字段类型,样式(大部分映射input标签type属性) + type: number + # when type is number, range is required + # 当type为number时,用range表示范围 + range: '[0,65535]' + # default value + defaultValue: 4000 + required: true + - field: timeout + name: + zh-CN: 查询超时时间 + en-US: Query Timeout + type: number + required: false + # hide param-true or false + # 是否隐藏字段 true or false + hide: true + defaultValue: 6000 + +# collect metrics config list +# 采集指标配置列表 +metrics: + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_app_version + i18n: + zh-CN: greptime 应用版本 + en-US: greptime_app_version + priority: 0 + fields: + - field: short_version + i18n: + zh-CN: 版本 + en-US: version + type: 1 + label: true + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_catalog_schema_count + i18n: + zh-CN: 目录 模式 数量 + en-US: greptime_catalog_schema_count + priority: 0 + fields: + - field: value + i18n: + zh-CN: 数量 + en-US: count + type: 1 + calculates: + - name=.name + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_meta_cache_container_cache_get + i18n: + zh-CN: 缓存容器缓存获取 + en-US: greptime_meta_cache_container_cache_get + priority: 0 + fields: + - field: name + i18n: + zh-CN: 名称 + en-US: name + type: 1 + label: true + - field: value + i18n: + zh-CN: 指标值 + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_meta_cache_container_cache_miss + i18n: + zh-CN: 缓存容器缓存未命中 + en-US: greptime_meta_cache_container_cache_miss + priority: 0 + fields: + - field: name + i18n: + zh-CN: 名称 + en-US: name + type: 1 + label: true + - field: value + i18n: + zh-CN: 指标值 + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_mito_region_count + i18n: + zh-CN: mito 引擎区域数量 + en-US: greptime_mito_region_count + priority: 0 + fields: + - field: worker + i18n: + zh-CN: 工作线程 + en-US: worker + type: 1 + label: true + - field: value + i18n: + zh-CN: 数量 + en-US: count + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_mito_write_stall_total + i18n: + zh-CN: mito 引擎写入延迟总数 + en-US: greptime_mito_write_stall_total + priority: 0 + fields: + - field: worker + i18n: + zh-CN: 工作线程 + en-US: worker + type: 1 + label: true + - field: value + i18n: + zh-CN: 数量 + en-US: total + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_meta_create_catalog_counter + i18n: + zh-CN: 创建目录计数器 + en-US: greptime_meta_create_catalog_counter + priority: 0 + fields: + - field: value + i18n: + zh-CN: 指标值 + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_runtime_threads_alive + i18n: + zh-CN: 运行时线程存活 + en-US: greptime_runtime_threads_alive + priority: 0 + fields: + - field: thread_name + i18n: + zh-CN: 线程名称 + en-US: thread_name + type: 1 + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_runtime_threads_idle + i18n: + zh-CN: 运行时线程空闲 + en-US: greptime_runtime_threads_idle + priority: 0 + fields: + - field: thread_name + i18n: + zh-CN: 线程名称 + en-US: thread_name + type: 1 + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_servers_http_requests_total + i18n: + zh-CN: greptime 服务 HTTP 请求总数 + en-US: greptime_servers_http_requests_total + priority: 0 + fields: + - field: code + i18n: + zh-CN: code + en-US: code + type: 1 + - field: method + i18n: + zh-CN: method + en-US: method + type: 1 + - field: path + i18n: + zh-CN: path + en-US: path + type: 1 + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_servers_mysql_connection_count + i18n: + zh-CN: greptime 服务 MySQL 连接数 + en-US: greptime_servers_mysql_connection_count + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: greptime_servers_postgres_connection_count + i18n: + zh-CN: greptime 服务 Postgres 连接数 + en-US: greptime_servers_postgres_connection_count + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_cpu_seconds_total + i18n: + zh-CN: 进程 CPU 时间总数 + en-US: process_cpu_seconds_total + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_max_fds + i18n: + zh-CN: 进程最大文件描述符 + en-US: process_max_fds + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_open_fds + i18n: + zh-CN: 进程打开文件描述符 + en-US: process_open_fds + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_resident_memory_bytes + i18n: + zh-CN: 进程常驻内存字节 + en-US: process_resident_memory_bytes + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_start_time_seconds + i18n: + zh-CN: 进程启动时间(秒) + en-US: process_start_time_seconds + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_threads + i18n: + zh-CN: 进程线程 + en-US: process_threads + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: process_virtual_memory_bytes + i18n: + zh-CN: 进程虚拟内存字节 + en-US: process_virtual_memory_bytes + priority: 0 + fields: + - field: value + i18n: + zh-CN: value + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: raft_engine_log_entry_count + i18n: + zh-CN: raft 引擎日志条目数量 + en-US: raft_engine_log_entry_count + priority: 0 + fields: + - field: type + i18n: + zh-CN: 类型 + en-US: type + type: 1 + - field: value + i18n: + zh-CN: 数量 + en-US: count + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: raft_engine_log_file_count + i18n: + zh-CN: raft 引擎日志文件数量 + en-US: raft_engine_log_file_count + priority: 0 + fields: + - field: type + i18n: + zh-CN: 类型 + en-US: type + type: 1 + - field: value + i18n: + zh-CN: 数量 + en-US: count + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: raft_engine_memory_usage + i18n: + zh-CN: raft 引擎内存占用 + en-US: raft_engine_memory_usage + priority: 0 + fields: + - field: value + i18n: + zh-CN: 占用 + en-US: total + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: raft_engine_recycled_file_count + i18n: + zh-CN: raft 引擎回收文件数量 + en-US: raft_engine_recycled_file_count + priority: 0 + fields: + - field: type + i18n: + zh-CN: 类型 + en-US: type + type: 1 + - field: value + i18n: + zh-CN: 数量 + en-US: count + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: sys_jemalloc_allocated + i18n: + zh-CN: jemalloc 分配 + en-US: sys_jemalloc_allocated + priority: 0 + fields: + - field: value + i18n: + zh-CN: 数量 + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus + + # metrics - cluster_node_status + # 监控指标 - cluster_node_status + - name: sys_jemalloc_resident + i18n: + zh-CN: jemalloc 常驻 + en-US: sys_jemalloc_resident + priority: 0 + fields: + - field: value + i18n: + zh-CN: 数量 + en-US: value + type: 1 + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: '/metrics' + timeout: ^_^timeout^_^ + method: GET + parseType: prometheus diff --git a/manager/src/main/resources/define/app-hbase_master.yml b/manager/src/main/resources/define/app-hbase_master.yml index c0bbb4e01a3..b3921217226 100644 --- a/manager/src/main/resources/define/app-hbase_master.yml +++ b/manager/src/main/resources/define/app-hbase_master.yml @@ -74,6 +74,9 @@ params: metrics: # metrics - Server - name: Server + i18n: + zh-CN: Master服务信息 + en-US: Master Service Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -125,6 +128,9 @@ metrics: parseType: jsonPath parseScript: '$.beans[?(@.name == "Hadoop:service=HBase,name=Master,sub=Server")]' - name: Rit + i18n: + zh-CN: Region In Transition 信息 + en-US: Region In Transition Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -168,6 +174,9 @@ metrics: parseType: jsonPath parseScript: '$.beans[?(@.name == "Hadoop:service=HBase,name=Master,sub=AssignmentManager")]' - name: basic + i18n: + zh-CN: 基础信息 + en-US: Basic Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 diff --git a/manager/src/main/resources/define/app-hbase_regionserver.yml b/manager/src/main/resources/define/app-hbase_regionserver.yml index 82476c56ee5..630a2f5c51e 100644 --- a/manager/src/main/resources/define/app-hbase_regionserver.yml +++ b/manager/src/main/resources/define/app-hbase_regionserver.yml @@ -74,6 +74,9 @@ params: metrics: # metrics - Server - name: Server + i18n: + zh-CN: RegionServer 服务信息 + en-US: RegionServer Service Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -435,6 +438,9 @@ metrics: parseScript: '$.beans[?(@.name == "Hadoop:service=HBase,name=RegionServer,sub=Server")]' # metrics - IPC - name: IPC + i18n: + zh-CN: RegionServer IPC 信息 + en-US: RegionServer IPC Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -490,6 +496,9 @@ metrics: parseScript: '$.beans[?(@.name == "Hadoop:service=HBase,name=RegionServer,sub=IPC")]' # metrics - JVM - name: JVM + i18n: + zh-CN: RegionServer JVM 信息 + en-US: RegionServer JVM Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 diff --git a/manager/src/main/resources/define/app-hertzbeat.yml b/manager/src/main/resources/define/app-hertzbeat.yml index 79b2577a256..fc67c6f92b5 100644 --- a/manager/src/main/resources/define/app-hertzbeat.yml +++ b/manager/src/main/resources/define/app-hertzbeat.yml @@ -87,6 +87,9 @@ metrics: # the first metrics summary # attention: Built-in monitoring metrics contains (responseTime - Response time) - name: summary + i18n: + zh-CN: 概要信息 + en-US: Summary # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -96,14 +99,29 @@ metrics: - field: app type: 1 label: true + i18n: + zh-CN: 应用 + en-US: App - field: category type: 1 + i18n: + zh-CN: 类别 + en-US: Category - field: status type: 0 + i18n: + zh-CN: 状态 + en-US: Status - field: size type: 0 + i18n: + zh-CN: 数量 + en-US: Size - field: availableSize type: 0 + i18n: + zh-CN: 可用数量 + en-US: Available Size # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk, we use HTTP protocol here protocol: http # the config content when protocol is http @@ -132,19 +150,37 @@ metrics: parseScript: '$.data.apps.*' - name: inner_queue + i18n: + zh-CN: 内部队列 + en-US: Inner Queue priority: 1 fields: - field: responseTime type: 0 unit: ms + i18n: + zh-CN: 响应时间 + en-US: Response Time - field: alertDataQueue type: 0 + i18n: + zh-CN: 变更数据队列 + en-US: Data Change Queue - field: metricsDataToAlertQueue type: 0 + i18n: + zh-CN: 指标数据到变更队列 + en-US: Metrics Data to Change Queue - field: metricsDataToPersistentStorageQueue type: 0 + i18n: + zh-CN: 指标数据到持久化队列 + en-US: Metrics Data to Persistent Queue - field: metricsDataToMemoryStorageQueue type: 0 + i18n: + zh-CN: 指标数据到内存存储队列 + en-US: Metrics Data to Memory Storage Queue protocol: http http: host: ^_^host^_^ @@ -163,11 +199,17 @@ metrics: parseScript: '$.data' - name: thread_state + i18n: + zh-CN: 线程状态 + en-US: Thread State visible: false priority: 1 fields: - field: state type: 2 + i18n: + zh-CN: 状态 + en-US: State protocol: http http: host: ^_^host^_^ @@ -185,12 +227,21 @@ metrics: parseScript: '$.availableTags[?(@.tag == "state")].values[*]' - name: threads + i18n: + zh-CN: 线程 + en-US: Threads priority: 3 fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State - field: number type: 0 + i18n: + zh-CN: 数量 + en-US: Number aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: @@ -213,11 +264,17 @@ metrics: parseScript: '$' - name: space_name + i18n: + zh-CN: 空间名称 + en-US: Space Name visible: false priority: 4 fields: - field: id type: 1 + i18n: + zh-CN: ID + en-US: ID protocol: http http: host: ^_^host^_^ @@ -235,13 +292,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "id")].values[*]' - name: memory_used + i18n: + zh-CN: 内存使用 + en-US: Memory Used priority: 5 fields: - field: space type: 1 + i18n: + zh-CN: 空间 + en-US: Space - field: mem_used type: 0 unit: MB + i18n: + zh-CN: 已使用内存 + en-US: Used Memory aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: diff --git a/manager/src/main/resources/define/app-hertzbeat_token.yml b/manager/src/main/resources/define/app-hertzbeat_token.yml index 1bbbf78825a..3c817b63370 100644 --- a/manager/src/main/resources/define/app-hertzbeat_token.yml +++ b/manager/src/main/resources/define/app-hertzbeat_token.yml @@ -78,6 +78,9 @@ params: metrics: # metrics - auth - name: auth + i18n: + zh-CN: 认证 + en-US: Auth # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -86,8 +89,14 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: token type: 1 + i18n: + zh-CN: 令牌 + en-US: Token - field: refreshToken type: 1 + i18n: + zh-CN: 刷新令牌 + en-US: Refresh Token # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # the config content when protocol is http @@ -116,19 +125,37 @@ metrics: - name: summary + i18n: + zh-CN: 概要信息 + en-US: Summary priority: 1 fields: - field: app type: 1 label: true + i18n: + zh-CN: 应用 + en-US: App - field: category type: 1 + i18n: + zh-CN: 类别 + en-US: Category - field: status type: 0 + i18n: + zh-CN: 状态 + en-US: Status - field: size type: 0 + i18n: + zh-CN: 数量 + en-US: Size - field: availableSize type: 0 + i18n: + zh-CN: 可用数量 + en-US: Available Size protocol: http http: host: ^_^host^_^ @@ -144,19 +171,37 @@ metrics: parseScript: '$.data.apps.*' - name: inner_queue + i18n: + zh-CN: 内部队列 + en-US: Inner Queue priority: 1 fields: - field: responseTime type: 0 unit: ms + i18n: + zh-CN: 响应时间 + en-US: Response Time - field: alertDataQueue type: 0 + i18n: + zh-CN: 变更数据队列 + en-US: Alert Data Queue - field: metricsDataToAlertQueue type: 0 + i18n: + zh-CN: 指标数据到变更队列 + en-US: Metrics Data to Alert Queue - field: metricsDataToPersistentStorageQueue type: 0 + i18n: + zh-CN: 指标数据到持久化队列 + en-US: Metrics Data to Persistent Storage Queue - field: metricsDataToMemoryStorageQueue type: 0 + i18n: + zh-CN: 指标数据到内存存储队列 + en-US: Metrics Data to Memory Storage Queue protocol: http http: host: ^_^host^_^ @@ -173,11 +218,17 @@ metrics: parseScript: '$.data' - name: thread_state + i18n: + zh-CN: 指标数据到内存存储队列 + en-US: Metrics Data to Memory Storage Queue visible: false priority: 2 fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State protocol: http http: host: ^_^host^_^ @@ -193,12 +244,21 @@ metrics: parseScript: '$.availableTags[?(@.tag == "state")].values[*]' - name: threads + i18n: + zh-CN: 线程 + en-US: Threads priority: 3 fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State - field: number type: 0 + i18n: + zh-CN: 数量 + en-US: Number aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: @@ -219,11 +279,17 @@ metrics: parseScript: '$' - name: space_name + i18n: + zh-CN: 空间名称 + en-US: Space Name visible: false priority: 4 fields: - field: id type: 1 + i18n: + zh-CN: ID + en-US: ID protocol: http http: host: ^_^host^_^ @@ -239,13 +305,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "id")].values[*]' - name: memory_used + i18n: + zh-CN: 内存使用 + en-US: Memory Used priority: 5 fields: - field: space type: 1 + i18n: + zh-CN: 空间 + en-US: Space - field: mem_used type: 0 unit: MB + i18n: + zh-CN: 内存使用量 + en-US: Memory Used aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: diff --git a/manager/src/main/resources/define/app-hive.yml b/manager/src/main/resources/define/app-hive.yml index 840b0784a1e..9b30ec4bd0d 100644 --- a/manager/src/main/resources/define/app-hive.yml +++ b/manager/src/main/resources/define/app-hive.yml @@ -35,7 +35,7 @@ params: - field: host # name-param field display i18n name name: - zh-CN: 目标Host + zh-CN: 目标 Host en-US: Target Host # type-param field type(most mapping the html input type) type: host @@ -83,6 +83,9 @@ params: metrics: # metrics - available - name: available + i18n: + zh-CN: 可用性 + en-US: Availability # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -90,6 +93,9 @@ metrics: fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: responseTime + i18n: + zh-CN: 响应时间 + en-US: Response Time type: 0 unit: ms # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk @@ -110,15 +116,30 @@ metrics: parseType: default - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic priority: 1 fields: - field: vm_name + i18n: + zh-CN: 虚拟机名称 + en-US: VM Name type: 1 - field: vm_vendor + i18n: + zh-CN: 虚拟机供应商 + en-US: VM Vendor type: 1 - field: vm_version + i18n: + zh-CN: 虚拟机版本 + en-US: VM Version type: 1 - field: up_time + i18n: + zh-CN: 运行时间 + en-US: Uptime type: 0 unit: ms aliasFields: @@ -143,21 +164,42 @@ metrics: # metrics - environment - name: environment + i18n: + zh-CN: 环境信息 + en-US: Environment priority: 2 # collect metrics content fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: https_proxyPort + i18n: + zh-CN: https 代理端口 + en-US: https Proxy Port type: 0 - field: os_name + i18n: + zh-CN: os 名称 + en-US: OS Name type: 1 - field: os_version + i18n: + zh-CN: os 版本 + en-US: OS Version type: 1 - field: os_arch + i18n: + zh-CN: os 架构 + en-US: OS Arch type: 1 - field: java_runtime_name + i18n: + zh-CN: java 运行时名称 + en-US: Java Runtime Name type: 1 - field: java_runtime_version + i18n: + zh-CN: java 运行时版本 + en-US: Java Runtime Version type: 1 # metric alias list, used to identify metrics in query results aliasFields: @@ -195,15 +237,30 @@ metrics: parseScript: '$' - name: thread + i18n: + zh-CN: 线程 + en-US: Thread priority: 4 fields: - field: thread_count + i18n: + zh-CN: 线程数 + en-US: Thread Count type: 0 - field: total_started_thread + i18n: + zh-CN: 启动线程数 + en-US: Total Started Thread type: 0 - field: peak_thread_count + i18n: + zh-CN: 峰值线程数 + en-US: Peak Thread Count type: 0 - field: daemon_thread_count + i18n: + zh-CN: 守护线程数 + en-US: Daemon Thread Count type: 0 aliasFields: - $.beans[?(@.name == 'java.lang:type=Threading')].ThreadCount @@ -226,18 +283,33 @@ metrics: parseScript: '$' - name: code_cache + i18n: + zh-CN: 代码缓存 + en-US: Code Cache priority: 5 fields: - field: committed + i18n: + zh-CN: 已提交 + en-US: Committed type: 1 unit: MB - field: init + i18n: + zh-CN: 初始化 + en-US: Init type: 0 unit: MB - field: max + i18n: + zh-CN: 最大 + en-US: Max type: 0 unit: MB - field: used + i18n: + zh-CN: 已使用 + en-US: Used type: 0 unit: MB aliasFields: diff --git a/manager/src/main/resources/define/app-iceberg.yml b/manager/src/main/resources/define/app-iceberg.yml new file mode 100644 index 00000000000..e46e02efb95 --- /dev/null +++ b/manager/src/main/resources/define/app-iceberg.yml @@ -0,0 +1,335 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: bigdata +# The monitoring type eg: springboot2 linux windows tomcat mysql aws... +app: iceberg +# The monitoring i18n name +name: + zh-CN: Apache Iceberg + en-US: Apache Iceberg +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 对 HServer2 暴露的通用性能指标(basic、environment、thread、code_cache)进行采集监控。⚠️注意:如果要监控 Apache Iceberg 中的信息,需要您的 Apache Iceberg 应用集成并开启 Hive Server2, 点击查看具体步骤 + en-US: HertzBeat collects and monitors Apache Iceberg through general performance metric(health, environment, threads, memory_used) that exposed by the Hive Server2.
⚠️Note:You should make sure that your Apache Iceberg application have already integrated and enabled the Hive Server2, click here to see the specific steps. + zh-TW: HertzBeat 對 HServer2 暴露的通用性能指標(basic、environment、thread、code_cache)進行採集監控。< span class='help_module_span'> ⚠️ 注意:如果要監控Apache Iceberg 中的指標,需要您的Apache Iceberg 應用集成並開啟 Hive Server2,點擊查看具體步驟。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/iceberg + en-US: https://hertzbeat.apache.org/docs/help/iceberg +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 10002 + # field-param field key + - field: ssl + # name-param field display i18n name + name: + zh-CN: 启动SSL + en-US: SSL + # When the type is boolean, the frontend will display a switch for it. + type: boolean + # required-true or false + required: false + # field-param field key + - field: base_path + # name-param field display i18n name + name: + zh-CN: Base Path + en-US: Base Path + # type-param field type(most mapping the html input type) The type "text" belongs to a text input field. + type: text + # default value + defaultValue: /jmx + # required-true or false + required: true + # hide-true or false + hide: true +# collect metrics config list +metrics: + # metrics - available + - name: available + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: responseTime + i18n: + zh-CN: 响应时间 + en-US: Response Time + type: 0 + unit: ms + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: http + # Specific collection configuration when protocol is http protocol + http: + # http host: ipv4 ipv6 domain + host: ^_^host^_^ + # http port + port: ^_^port^_^ + # http url + url: ^_^base_path^_^ + # http request method GET POST PUT DELETE PATCH + method: GET + # enable SSL/TLS, that is, whether it is http or https, the default is false + ssl: ^_^ssl^_^ + # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-api availability monitoring + parseType: default + + - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic + priority: 1 + fields: + - field: vm_name + i18n: + zh-CN: 虚拟机名称 + en-US: VM Name + type: 1 + - field: vm_vendor + i18n: + zh-CN: 虚拟机供应商 + en-US: VM Vendor + type: 1 + - field: vm_version + i18n: + zh-CN: 虚拟机版本 + en-US: VM Version + type: 1 + - field: up_time + i18n: + zh-CN: 运行时间 + en-US: Uptime + type: 0 + unit: ms + aliasFields: + - $.beans[?(@.name == 'java.lang:type=Runtime')].VmName + - $.beans[?(@.name == 'java.lang:type=Runtime')].VmVendor + - $.beans[?(@.name == 'java.lang:type=Runtime')].VmVersion + - $.beans[?(@.name == 'java.lang:type=Runtime')].Uptime + calculates: + - vm_name=$.beans[?(@.name == 'java.lang:type=Runtime')].VmName + - vm_vendor=$.beans[?(@.name == 'java.lang:type=Runtime')].VmVendor + - vm_version=$.beans[?(@.name == 'java.lang:type=Runtime')].VmVersion + - up_time=$.beans[?(@.name == 'java.lang:type=Runtime')].Uptime + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: ^_^base_path^_^ + method: GET + ssl: ^_^ssl^_^ + parseType: jsonPath + parseScript: '$' + + # metrics - environment + - name: environment + i18n: + zh-CN: 环境信息 + en-US: Environment + priority: 2 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: https_proxyPort + i18n: + zh-CN: https 代理端口 + en-US: https Proxy Port + type: 0 + - field: os_name + i18n: + zh-CN: os 名称 + en-US: OS Name + type: 1 + - field: os_version + i18n: + zh-CN: os 版本 + en-US: OS Version + type: 1 + - field: os_arch + i18n: + zh-CN: os 架构 + en-US: OS Arch + type: 1 + - field: java_runtime_name + i18n: + zh-CN: java 运行时名称 + en-US: Java Runtime Name + type: 1 + - field: java_runtime_version + i18n: + zh-CN: java 运行时版本 + en-US: Java Runtime Version + type: 1 + # metric alias list, used to identify metrics in query results + aliasFields: + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.name')].value + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.version')].value + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.arch')].value + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'java.runtime.name')].value + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'java.runtime.version')].value + - $.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'https.proxyPort')].value + # A list of calculation scripts for metric values. + calculates: + - https_proxyPort=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'https.proxyPort')].value + - os_name=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.name')].value + - os_version=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.version')].value + - os_arch=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'os.arch')].value + - java_runtime_name=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'java.runtime.name')].value + - java_runtime_version=$.beans[?(@.name == 'java.lang:type=Runtime')].SystemProperties[?(@.key == 'java.runtime.version')].value + # The protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: http + # Specific collection configuration when protocol is http protocol + http: + # http host: ipv4 ipv6 domain + host: ^_^host^_^ + # http port + port: ^_^port^_^ + # http url + url: ^_^base_path^_^ + # http request method GET POST PUT DELETE PATCH + method: GET + # enable SSL/TLS, that is, whether it is http or https, the default is false + ssl: ^_^ssl^_^ + # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-api availability monitoring + parseType: jsonPath + # http response data parse script + parseScript: '$' + + - name: thread + i18n: + zh-CN: 线程 + en-US: Thread + priority: 4 + fields: + - field: thread_count + i18n: + zh-CN: 线程数 + en-US: Thread Count + type: 0 + - field: total_started_thread + i18n: + zh-CN: 启动线程数 + en-US: Total Started Thread + type: 0 + - field: peak_thread_count + i18n: + zh-CN: 峰值线程数 + en-US: Peak Thread Count + type: 0 + - field: daemon_thread_count + i18n: + zh-CN: 守护线程数 + en-US: Daemon Thread Count + type: 0 + aliasFields: + - $.beans[?(@.name == 'java.lang:type=Threading')].ThreadCount + - $.beans[?(@.name == 'java.lang:type=Threading')].TotalStartedThreadCount + - $.beans[?(@.name == 'java.lang:type=Threading')].PeakThreadCount + - $.beans[?(@.name == 'java.lang:type=Threading')].DaemonThreadCount + calculates: + - thread_count=$.beans[?(@.name == 'java.lang:type=Threading')].ThreadCount + - total_started_thread=$.beans[?(@.name == 'java.lang:type=Threading')].TotalStartedThreadCount + - peak_thread_count=$.beans[?(@.name == 'java.lang:type=Threading')].PeakThreadCount + - daemon_thread_count=$.beans[?(@.name == 'java.lang:type=Threading')].DaemonThreadCount + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: ^_^base_path^_^ + method: GET + ssl: ^_^ssl^_^ + parseType: jsonPath + parseScript: '$' + + - name: code_cache + i18n: + zh-CN: 代码缓存 + en-US: Code Cache + priority: 5 + fields: + - field: committed + i18n: + zh-CN: 已提交 + en-US: Committed + type: 1 + unit: MB + - field: init + i18n: + zh-CN: 初始化 + en-US: Init + type: 0 + unit: MB + - field: max + i18n: + zh-CN: 最大 + en-US: Max + type: 0 + unit: MB + - field: used + i18n: + zh-CN: 已使用 + en-US: Used + type: 0 + unit: MB + aliasFields: + - $.beans[?(@.Name == 'Code Cache')].Usage.committed + - $.beans[?(@.Name == 'Code Cache')].Usage.init + - $.beans[?(@.Name == 'Code Cache')].Usage.max + - $.beans[?(@.Name == 'Code Cache')].Usage.used + calculates: + - committed=$.beans[?(@.Name == 'Code Cache')].Usage.committed + - init=$.beans[?(@.Name == 'Code Cache')].Usage.init + - max=$.beans[?(@.Name == 'Code Cache')].Usage.max + - used=$.beans[?(@.Name == 'Code Cache')].Usage.used + units: + - committed=B->MB + - init=B->MB + - max=B->MB + - used=B->MB + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: ^_^base_path^_^ + method: GET + ssl: ^_^ssl^_^ + parseType: jsonPath + parseScript: '$' diff --git a/manager/src/main/resources/define/app-influxdb_promql.yml b/manager/src/main/resources/define/app-influxdb_promql.yml index a013fdcc2df..ba0fcadb859 100644 --- a/manager/src/main/resources/define/app-influxdb_promql.yml +++ b/manager/src/main/resources/define/app-influxdb_promql.yml @@ -138,6 +138,9 @@ metrics: # The first monitoring metrics basic_influxdb_memstats_alloc. # Note: Built-in monitoring metrics include (responseTime - response time) - name: basic_influxdb_memstats_alloc + i18n: + zh-CN: InfluxDB内存分配 + en-US: InfluxDB Memory Allocation # metrics scheduling priority(0->127), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -146,10 +149,19 @@ metrics: # Metric information includes the following: Field name, Type: 0-number, 1-string, instance: indicates whether the metric is the primary key, unit: the unit of the metric - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 值 + en-US: Value # Monitoring protocol used for data collection, e.g. sql, ssh, http, telnet, wmi, snmp, sdk. protocol: http # When the protocol is HTTP, the specific collection configuration is as follows @@ -185,6 +197,9 @@ metrics: parseType: PromQL - name: influxdb_database_numMeasurements + i18n: + zh-CN: InfluxDB数据库测量值 + en-US: InfluxDB Database Measurements # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -193,14 +208,29 @@ metrics: # Metric information includes the following: Field name, Type: 0-number, 1-string, instance: indicates whether the metric is the primary key, unit: the unit of the metric - field: job type: 1 + i18n: + zh-CN: 任务 + en-US: Job - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: database type: 1 + i18n: + zh-CN: 数据库 + en-US: Database - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 值 + en-US: Value # Monitoring protocol used for data collection, e.g. sql, ssh, http, telnet, wmi, snmp, sdk. protocol: http # When the protocol is HTTP, the specific collection configuration is as follows @@ -236,6 +266,9 @@ metrics: parseType: PromQL - name: influxdb_query_rate_seconds # Query rate per second + i18n: + zh-CN: 每秒查询速率 + en-US: Query Rate Per Second # metrics scheduling priority(0->127), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -244,10 +277,19 @@ metrics: # Metric information includes the following: Field name, Type: 0-number, 1-string, instance: indicates whether the metric is the primary key, unit: the unit of the metric - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 值 + en-US: Value # Monitoring protocol used for data collection, e.g. sql, ssh, http, telnet, wmi, snmp, sdk. protocol: http # When the protocol is HTTP, the specific collection configuration is as follows @@ -283,6 +325,10 @@ metrics: parseType: PromQL - name: influxdb_queryExecutor_queriesFinished_10s # Query rate per second + + i18n: + zh-CN: 查询执行器每10秒查询完成数 + en-US: Query Executor Queries Finished Every 10 Seconds # metrics scheduling priority(0->127), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -291,10 +337,19 @@ metrics: # Metric information includes the following: Field name, Type: 0-number, 1-string, instance: indicates whether the metric is the primary key, unit: the unit of the metric - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 值 + en-US: Value # Monitoring protocol used for data collection, e.g. sql, ssh, http, telnet, wmi, snmp, sdk. protocol: http # When the protocol is HTTP, the specific collection configuration is as follows diff --git a/manager/src/main/resources/define/app-jetty.yml b/manager/src/main/resources/define/app-jetty.yml index 3f37d05b11d..28827543121 100644 --- a/manager/src/main/resources/define/app-jetty.yml +++ b/manager/src/main/resources/define/app-jetty.yml @@ -247,6 +247,9 @@ metrics: url: ^_^url^_^ # metrics - class_loading - name: class_loading + i18n: + zh-CN: 类加载信息 + en-US: Class Loading # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -255,10 +258,19 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: LoadedClassCount type: 0 + i18n: + zh-CN: 已加载类总数 + en-US: Loaded Class Count - field: TotalLoadedClassCount type: 0 + i18n: + zh-CN: 总加载类总数 + en-US: Total Loaded Class Count - field: UnloadedClassCount type: 0 + i18n: + zh-CN: 未加载类总数 + en-US: Unloaded Class Count # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: jmx # the config content when protocol is http diff --git a/manager/src/main/resources/define/app-kafka.yml b/manager/src/main/resources/define/app-kafka.yml index 81b736ced0f..9b6eebfee5b 100644 --- a/manager/src/main/resources/define/app-kafka.yml +++ b/manager/src/main/resources/define/app-kafka.yml @@ -77,6 +77,9 @@ params: metrics: # metrics - server_info - name: server_info + i18n: + zh-CN: 服务器信息 + en-US: Server Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -85,10 +88,19 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: Version type: 1 + i18n: + zh-CN: 版本 + en-US: Version - field: StartTimeMs type: 1 + i18n: + zh-CN: 启动时间 + en-US: Start Time - field: CommitId type: 1 + i18n: + zh-CN: CommitId + en-US: CommitId # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: jmx # the config content when protocol is jmx @@ -98,7 +110,7 @@ metrics: username: ^_^username^_^ password: ^_^password^_^ # jmx mbean object name - objectName: kafka.server:type=app-info,id=0 + objectName: kafka.server:type=app-info,id=* # jmx url url: ^_^url^_^ @@ -193,10 +205,16 @@ metrics: url: ^_^url^_^ - name: active_controller_count + i18n: + zh-CN: 活跃控制器数量 + en-US: Active Controller Count priority: 1 fields: - field: Value type: 0 + i18n: + zh-CN: 值 + en-US: Value protocol: jmx jmx: host: ^_^host^_^ @@ -208,10 +226,16 @@ metrics: url: ^_^url^_^ - name: broker_partition_count + i18n: + zh-CN: Broker分区数量 + en-US: Broker Partition Count priority: 1 fields: - field: Value type: 0 + i18n: + zh-CN: 值 + en-US: Value protocol: jmx jmx: host: ^_^host^_^ @@ -223,10 +247,16 @@ metrics: url: ^_^url^_^ - name: broker_leader_count + i18n: + zh-CN: Broker领导者数量 + en-US: Broker Leader Count priority: 1 fields: - field: Value type: 0 + i18n: + zh-CN: 值 + en-US: Value protocol: jmx jmx: host: ^_^host^_^ @@ -238,22 +268,46 @@ metrics: url: ^_^url^_^ - name: broker_handler_avg_percent + i18n: + zh-CN: Broker处理器平均百分比 + en-US: Broker Handler Avg Percent priority: 2 fields: - field: EventType type: 1 + i18n: + zh-CN: 事件类型 + en-US: Event Type - field: RateUnit type: 1 + i18n: + zh-CN: 速率单位 + en-US: Rate Unit - field: Count type: 0 + i18n: + zh-CN: 计数 + en-US: Count - field: MeanRate type: 0 + i18n: + zh-CN: 平均速率 + en-US: Mean Rate - field: OneMinuteRate type: 0 + i18n: + zh-CN: 一分钟速率 + en-US: One Minute Rate - field: FiveMinuteRate type: 0 + i18n: + zh-CN: 五分钟速率 + en-US: Five Minute Rate - field: FifteenMinuteRate type: 0 + i18n: + zh-CN: 十五分钟速率 + en-US: Fifteen Minute Rate protocol: jmx jmx: host: ^_^host^_^ @@ -265,22 +319,46 @@ metrics: url: ^_^url^_^ - name: topic_bytes_in_persec + i18n: + zh-CN: 每秒主题流入字节 + en-US: Topic Bytes In PerSec priority: 2 fields: - field: EventType type: 1 + i18n: + zh-CN: 事件类型 + en-US: Event Type - field: RateUnit type: 1 + i18n: + zh-CN: 速率单位 + en-US: Rate Unit - field: MeanRate type: 0 + i18n: + zh-CN: 平均速率 + en-US: Mean Rate - field: OneMinuteRate type: 0 + i18n: + zh-CN: 一分钟速率 + en-US: One Minute Rate - field: FiveMinuteRate type: 0 + i18n: + zh-CN: 五分钟速率 + en-US: Five Minute Rate - field: FifteenMinuteRate type: 0 + i18n: + zh-CN: 十五分钟速率 + en-US: Fifteen Minute Rate - field: Count type: 0 + i18n: + zh-CN: 计数 + en-US: Count protocol: jmx jmx: host: ^_^host^_^ @@ -292,22 +370,46 @@ metrics: url: ^_^url^_^ - name: topic_bytes_out_persec + i18n: + zh-CN: 每秒主题流出字节 + en-US: Topic Bytes Out PerSec priority: 2 fields: - field: EventType type: 1 + i18n: + zh-CN: 事件类型 + en-US: Event Type - field: RateUnit type: 1 + i18n: + zh-CN: 速率单位 + en-US: Rate Unit - field: MeanRate type: 0 + i18n: + zh-CN: 平均速率 + en-US: Mean Rate - field: OneMinuteRate type: 0 + i18n: + zh-CN: 一分钟速率 + en-US: One Minute Rate - field: FiveMinuteRate type: 0 + i18n: + zh-CN: 五分钟速率 + en-US: Five Minute Rate - field: FifteenMinuteRate type: 0 + i18n: + zh-CN: 十五分钟速率 + en-US: Fifteen Minute Rate - field: Count type: 0 + i18n: + zh-CN: 计数 + en-US: Count protocol: jmx jmx: host: ^_^host^_^ @@ -319,22 +421,46 @@ metrics: url: ^_^url^_^ - name: produce_message_conversions_persec + i18n: + zh-CN: 每秒生产消息转换 + en-US: Produce Message Conversions PerSec priority: 2 fields: - field: EventType type: 1 + i18n: + zh-CN: 事件类型 + en-US: Event Type - field: RateUnit type: 1 + i18n: + zh-CN: 速率单位 + en-US: Rate Unit - field: MeanRate type: 0 + i18n: + zh-CN: 平均速率 + en-US: Mean Rate - field: OneMinuteRate type: 0 + i18n: + zh-CN: 一分钟速率 + en-US: One Minute Rate - field: FiveMinuteRate type: 0 + i18n: + zh-CN: 五分钟速率 + en-US: Five Minute Rate - field: FifteenMinuteRate type: 0 + i18n: + zh-CN: 十五分钟速率 + en-US: Fifteen Minute Rate - field: Count type: 0 + i18n: + zh-CN: 计数 + en-US: Count protocol: jmx jmx: host: ^_^host^_^ @@ -346,22 +472,46 @@ metrics: url: ^_^url^_^ - name: produce_total_requests_persec + i18n: + zh-CN: 每秒生产总请求数 + en-US: Produce Total Requests PerSec priority: 2 fields: - field: EventType type: 1 + i18n: + zh-CN: 事件类型 + en-US: Event Type - field: RateUnit type: 1 + i18n: + zh-CN: 速率单位 + en-US: Rate Unit - field: MeanRate type: 0 + i18n: + zh-CN: 平均速率 + en-US: Mean Rate - field: OneMinuteRate type: 0 + i18n: + zh-CN: 一分钟速率 + en-US: One Minute Rate - field: FiveMinuteRate type: 0 + i18n: + zh-CN: 五分钟速率 + en-US: Five Minute Rate - field: FifteenMinuteRate type: 0 + i18n: + zh-CN: 十五分钟速率 + en-US: Fifteen Minute Rate - field: Count type: 0 + i18n: + zh-CN: 计数 + en-US: Count protocol: jmx jmx: host: ^_^host^_^ diff --git a/manager/src/main/resources/define/app-kafka_promql.yml b/manager/src/main/resources/define/app-kafka_promql.yml index 8815f6ca8c6..4aadbd1437f 100644 --- a/manager/src/main/resources/define/app-kafka_promql.yml +++ b/manager/src/main/resources/define/app-kafka_promql.yml @@ -136,6 +136,9 @@ params: metrics: # metrics - kafka_brokers - name: kafka_brokers + i18n: + zh-CN: Kafka Broker 数量 + en-US: Kafka Broker Count # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -144,12 +147,24 @@ metrics: # field-metric name, i18n-metric name i18n label, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: __name__ type: 1 + i18n: + zh-CN: 名称 + en-US: Name - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 数值 + en-US: Value # The protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # The config content when protocol is http @@ -183,6 +198,9 @@ metrics: parseType: PromQL - name: kafka_topic_partitions + i18n: + zh-CN: Kafka Topic 分区数量 + en-US: Kafka Topic Partitions # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -191,12 +209,24 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: __name__ type: 1 + i18n: + zh-CN: 名称 + en-US: Name - field: topic type: 1 + i18n: + zh-CN: 主题 + en-US: Topic - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 数值 + en-US: Value # The protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # The config content when protocol is http @@ -231,6 +261,9 @@ metrics: parseType: PromQL - name: kafka_server_brokertopicmetrics_bytesinpersec # Query rate per second + i18n: + zh-CN: Kafka Server Broker Topic 每秒字节入 + en-US: Kafka Server Broker Topic Bytes In Per Second # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -239,14 +272,29 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: instance type: 1 + i18n: + zh-CN: 实例 + en-US: Instance - field: job type: 1 + i18n: + zh-CN: 任务 + en-US: Job - field: topic type: 1 + i18n: + zh-CN: 主题 + en-US: Topic - field: timestamp type: 1 + i18n: + zh-CN: 时间戳 + en-US: Timestamp - field: value type: 1 + i18n: + zh-CN: 数值 + en-US: Value # The protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # The specific collection configuration when the protocol is http diff --git a/manager/src/main/resources/define/app-kingbase.yml b/manager/src/main/resources/define/app-kingbase.yml new file mode 100644 index 00000000000..81d754942f5 --- /dev/null +++ b/manager/src/main/resources/define/app-kingbase.yml @@ -0,0 +1,753 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: db +# The monitoring type eg: linux windows tomcat mysql aws... +app: kingbase +# The monitoring i18n name +name: + zh-CN: Kingbase数据库 + en-US: Kingbase DB +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 使用 JDBC 协议 通过配置 SQL 对 Kingbase 数据库的通用性能指标 (basic、state、activity etc) 进行采集监控,支持版本为 KingbaseV8r6+。
您可以点击“新建 Kingbase 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat uses JDBC Protocol to configure SQL for collecting general metrics of Kingbase database (basic、state、activity etc). Supported version is KingbaseV8r6+.
You can click "New Kingbase Database" and configure it, or select "More Action" to import the existing configuration. + zh-TW: HertzBeat 使用 JDBC 協議 通過配置 SQL 對 Kingbase 數據庫的通用性能指標 (basic、state、activity etc)進行采集監控,支持版本爲 KingbaseV8r6+。
您可以點擊“新建 Kingbase 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/kingbase + en-US: https://hertzbeat.apache.org/docs/help/kingbase +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 5432 + - field: timeout + name: + zh-CN: 查询超时时间(ms) + en-US: Query Timeout(ms) + type: number + range: '[400,200000]' + required: false + hide: true + defaultValue: 6000 + - field: database + name: + zh-CN: 数据库名称 + en-US: Database Name + type: text + defaultValue: kingbase + required: false + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + limit: 50 + required: false + - field: password + name: + zh-CN: 密码 + en-US: Password + type: password + required: false + - field: url + name: + zh-CN: URL + en-US: URL + type: text + required: false + hide: true + +# collect metrics config list +metrics: + # metrics - basic + - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: server_version + type: 1 + label: true + i18n: + zh-CN: 服务器版本 + en-US: Server Version + - field: port + type: 1 + i18n: + zh-CN: 端口 + en-US: Port + - field: server_encoding + type: 1 + i18n: + zh-CN: 服务器编码 + en-US: Server Encoding + - field: data_directory + type: 1 + i18n: + zh-CN: 数据目录 + en-US: Data Directory + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: jdbc + # the config content when protocol is jdbc + jdbc: + # host: ipv4 ipv6 host + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + # database platform name + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + # SQL Query Method:oneRow, multiRow, columns + queryType: columns + # sql + sql: select name, setting as value from pg_settings where name = 'max_connections' or name = 'server_version' or name = 'server_encoding' or name = 'port' or name = 'data_directory'; + # JDBC url + url: ^_^url^_^ + + - name: state + i18n: + zh-CN: 状态信息 + en-US: State Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + - field: blks_read + type: 0 + unit: blocks per second + i18n: + zh-CN: 读取块 + en-US: Blocks Read + - field: blks_hit + type: 0 + unit: blocks per second + i18n: + zh-CN: 命中块 + en-US: Blocks Hit + - field: blk_read_time + type: 0 + unit: ms + i18n: + zh-CN: 读取时间 + en-US: Read Time + - field: blk_write_time + type: 0 + unit: ms + i18n: + zh-CN: 写入时间 + en-US: Write Time + - field: stats_reset + type: 1 + i18n: + zh-CN: 统计重置 + en-US: Stats Reset + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks, blks_read, blks_hit, blk_read_time, blk_write_time, stats_reset from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: activity + i18n: + zh-CN: 活动信息 + en-US: Activity Info + priority: 2 + fields: + - field: running + type: 0 + unit: sbc + i18n: + zh-CN: 运行中 + en-US: Running + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: SELECT count(*) as running FROM pg_stat_activity WHERE NOT pid=pg_backend_pid(); + url: ^_^url^_^ + + - name: resource_config + i18n: + zh-CN: 资源配置 + en-US: Resource Config + priority: 1 + fields: + - field: work_mem + type: 0 + unit: MB + i18n: + zh-CN: 工作内存 + en-US: Work Memory + - field: shared_buffers + type: 0 + unit: MB + i18n: + zh-CN: 共享缓冲区 + en-US: Shared Buffers + - field: autovacuum + type: 1 + i18n: + zh-CN: 自动清理 + en-US: Auto Vacuum + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + - field: effective_cache_size + type: 0 + unit: MB + i18n: + zh-CN: 有效缓存大小 + en-US: Effective Cache Size + - field: wal_buffers + type: 0 + unit: MB + i18n: + zh-CN: WAL缓冲区 + en-US: WAL Buffers + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: columns + sql: show all; + url: ^_^url^_^ + + - name: connection + i18n: + zh-CN: 连接信息 + en-US: Connection Info + priority: 1 + fields: + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select count(1) as active from pg_stat_activity; + url: ^_^url^_^ + + - name: connection_state + i18n: + zh-CN: 连接状态 + en-US: Connection State + priority: 1 + fields: + - field: state + type: 1 + label: true + i18n: + zh-CN: 状态 + en-US: State + - field: num + type: 0 + i18n: + zh-CN: 数量 + en-US: Num + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(state, 'other') as state, count(*) as num from pg_stat_activity group by state; + url: ^_^url^_^ + + - name: connection_db + i18n: + zh-CN: 连接数据库 + en-US: Connection Db + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select count(*) as active, COALESCE(datname, 'other') as db_name from pg_stat_activity group by datname; + url: ^_^url^_^ + + - name: tuple + i18n: + zh-CN: 元组信息 + en-US: Tuple Info + priority: 1 + fields: + - field: fetched + type: 0 + i18n: + zh-CN: 获取次数 + en-US: Fetched + - field: returned + type: 0 + i18n: + zh-CN: 返回次数 + en-US: Returned + - field: inserted + type: 0 + i18n: + zh-CN: 插入次数 + en-US: Inserted + - field: updated + type: 0 + i18n: + zh-CN: 更新次数 + en-US: Updated + - field: deleted + type: 0 + i18n: + zh-CN: 删除次数 + en-US: Deleted + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select sum(tup_fetched) as fetched, sum(tup_updated) as updated, sum(tup_deleted) as deleted, sum(tup_inserted) as inserted, sum(tup_returned) as returned from pg_stat_database; + url: ^_^url^_^ + + - name: temp_file + i18n: + zh-CN: 临时文件 + en-US: Temp File + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: num + type: 0 + i18n: + zh-CN: 次数 + en-US: Num + - field: size + type: 0 + unit: B + i18n: + zh-CN: 大小 + en-US: Size + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(temp_files) as num, sum(temp_bytes) as size from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: lock + i18n: + zh-CN: 锁信息 + en-US: Lock Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: slow_sql + i18n: + zh-CN: 慢查询 + en-US: Slow Sql + priority: 1 + fields: + - field: sql_text + type: 1 + label: true + i18n: + zh-CN: SQL语句 + en-US: SQL Text + - field: calls + type: 0 + i18n: + zh-CN: 调用次数 + en-US: Calls + - field: rows + type: 0 + i18n: + zh-CN: 行数 + en-US: Rows + - field: avg_time + type: 0 + unit: ms + i18n: + zh-CN: 平均时间 + en-US: Avg Time + - field: total_time + type: 0 + unit: ms + i18n: + zh-CN: 总时间 + en-US: Total Time + aliasFields: + - query + - calls + - rows + - total_exec_time + - mean_exec_time + calculates: + - sql_text=query + - avg_time=mean_exec_time + - total_time=total_exec_time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select * from pg_stat_statements; + url: ^_^url^_^ + + - name: transaction + i18n: + zh-CN: 事务信息 + en-US: Transaction Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: commits + type: 0 + unit: times + i18n: + zh-CN: 提交次数 + en-US: Commits + - field: rollbacks + type: 0 + unit: times + i18n: + zh-CN: 回滚次数 + en-US: Rollbacks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(xact_commit) as commits, sum(xact_rollback) as rollbacks from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: conflicts + i18n: + zh-CN: 冲突信息 + en-US: Conflicts Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: tablespace + type: 0 + i18n: + zh-CN: 表空间 + en-US: Tablespace + - field: lock + type: 0 + i18n: + zh-CN: 锁 + en-US: Lock + - field: snapshot + type: 0 + i18n: + zh-CN: 快照 + en-US: Snapshot + - field: bufferpin + type: 0 + i18n: + zh-CN: 缓冲区 + en-US: Bufferpin + - field: deadlock + type: 0 + i18n: + zh-CN: 死锁 + en-US: Deadlock + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, confl_tablespace as tablespace, confl_lock as lock, confl_snapshot as snapshot, confl_bufferpin as bufferpin, confl_deadlock as deadlock from pg_stat_database_conflicts; + url: ^_^url^_^ + + - name: cache_hit_ratio + i18n: + zh-CN: 缓存命中率 + en-US: Cache Hit Ratio + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: ratio + type: 0 + unit: '%' + i18n: + zh-CN: 命中率 + en-US: Hit Ratio + aliasFields: + - blks_hit + - blks_read + - db_name + calculates: + - ratio=(blks_hit + 1) / (blks_read + blks_hit + 1) * 100 + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, blks_hit, blks_read from pg_stat_database; + url: ^_^url^_^ + + - name: checkpoint + i18n: + zh-CN: Checkpoint信息 + en-US: Checkpoint Info + priority: 2 + fields: + - field: checkpoint_sync_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint同步时间 + en-US: Checkpoint Sync Time + - field: checkpoint_write_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint写入时间 + en-US: Checkpoint Write Time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select checkpoint_sync_time, checkpoint_write_time from pg_stat_bgwriter; + url: ^_^url^_^ + + - name: buffer + i18n: + zh-CN: Buffer信息 + en-US: Buffer Info + priority: 2 + fields: + - field: allocated + type: 0 + i18n: + zh-CN: 已分配 + en-US: Allocated + - field: fsync_calls_by_backend + type: 0 + i18n: + zh-CN: 后端进程直接执行的文件同步调用次数 + en-US: Fsync Calls By Backend + - field: written_directly_by_backend + type: 0 + i18n: + zh-CN: 后台写入到数据文件 + en-US: Written Directly By Backend + - field: written_by_background_writer + type: 0 + i18n: + zh-CN: 后台写入 + en-US: Written By Background Writer + - field: written_during_checkpoints + type: 0 + i18n: + zh-CN: 检查点期间写入 + en-US: Written During Checkpoints + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select buffers_alloc as allocated, buffers_backend_fsync as fsync_calls_by_backend, buffers_backend as written_directly_by_backend, buffers_clean as written_by_background_writer, buffers_checkpoint as written_during_checkpoints from pg_stat_bgwriter; + url: ^_^url^_^ diff --git a/manager/src/main/resources/define/app-kvrocks.yml b/manager/src/main/resources/define/app-kvrocks.yml new file mode 100644 index 00000000000..7ce849070fa --- /dev/null +++ b/manager/src/main/resources/define/app-kvrocks.yml @@ -0,0 +1,718 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: cache +# The monitoring type eg: linux windows tomcat mysql aws... +app: kvrocks +# The monitoring i18n name +name: + zh-CN: Kvrocks 数据库 + en-US: Kvrocks +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 对 Apache Kvrocks 数据库的通用性能指标进行采集监控(server、clients、memory、persistence、stats、replication、cpu、cluster、commandstats),支持版本为 Apache Kvrocks 2.9.0+。
您可以点击“新建 Kvrocks 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat monitors Apache Kvrocks database of general performance metrics such as memory, persistence, replication and so on. The versions we support is Apache Kvrocks 2.9.0+.
You could click the "New Kvrocks" button and proceed with the configuration or import an existing setup through the "More Actions" menu. + zh-TW: HertzBeat 對 Apache Kvrocks 數據庫的通用性能指標進行采集監控(server、clients、memory、persistence、stats、replication、cpu、cluster、commandstats),支持版本爲 Apache Kvrocks 2.9.0+。
您可以點擊“新建 Kvrocks 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/kvrocks + en-US: https://hertzbeat.apache.org/docs/help/kvrocks +# Input params define for monitoring(render web ui by +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 6666 + # field-param field key + - field: timeout + # name-param field display i18n name + name: + zh-CN: 超时时间 + en-US: Timeout + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,100000]' + # required-true or false + required: true + # default value + defaultValue: 3000 + # field-param field key + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + limit: 50 + required: false + # field-param field key + - field: password + name: + zh-CN: 密码 + en-US: Password + type: password + required: false + +# collect metrics config list +metrics: + # metrics - server + - name: server + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + i18n: + zh-CN: 服务器信息 + en-US: Server + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: kvrocks_version + type: 1 + i18n: + zh-CN: Kvrocks 服务版本 + en-US: Kvrocks Version + - field: redis_version + type: 1 + i18n: + zh-CN: Redis 服务版本 + en-US: Redis Version + - field: git_sha1 + type: 0 + i18n: + zh-CN: Kvrocks Git SHA1 + en-US: Kvrocks Git SHA1 + - field: kvrocks_mode + type: 1 + i18n: + zh-CN: 运行模式 + en-US: Server Mode + - field: os + type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System + - field: arch_bits + type: 0 + i18n: + zh-CN: 架构 + en-US: Architecture Bits + - field: multiplexing_api + type: 1 + i18n: + zh-CN: IO多路复用器API + en-US: Multiplexing API + - field: atomicvar_api + type: 1 + i18n: + zh-CN: 原子操作处理API + en-US: Atomicvar API + - field: gcc_version + type: 1 + i18n: + zh-CN: GCC版本 + en-US: GCC Version + - field: process_id + type: 0 + i18n: + zh-CN: 进程ID + en-US: PID + - field: tcp_port + type: 0 + i18n: + zh-CN: TCP/IP监听端口 + en-US: TCP Port + - field: server_time_usec + type: 0 + i18n: + zh-CN: 服务器时间戳 + en-US: Server Time Usec + - field: uptime_in_seconds + type: 0 + i18n: + zh-CN: 运行时长(秒) + en-US: Uptime(Seconds) + - field: uptime_in_days + type: 0 + i18n: + zh-CN: 运行时长(天) + en-US: Uptime(Days) + - field: hz + type: 0 + i18n: + zh-CN: 事件循环频率 + en-US: hz + - field: configured_hz + type: 0 + i18n: + zh-CN: 配置的事件循环频率 + en-US: Configured hz + - field: lru_clock + type: 0 + i18n: + zh-CN: LRU时钟 + en-US: LRU Clock + - field: executable + type: 1 + i18n: + zh-CN: 服务器执行路径 + en-US: Server's Executable Path + - field: config_file + type: 1 + i18n: + zh-CN: 配置文件路径 + en-US: Config File Path + - field: io_threads_active + type: 0 + i18n: + zh-CN: 活跃IO线程数 + en-US: Active IO Threads + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + # metrics - clients + - name: clients + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 1 + i18n: + zh-CN: 客户端信息 + en-US: Clients + # collect metrics content + fields: + - field: connected_clients + type: 0 + i18n: + zh-CN: 已连接客户端数量 + en-US: Connected Clients + - field: maxclients + type: 0 + i18n: + zh-CN: 最大客户端连接数 + en-US: Max Clients + - field: blocked_clients + type: 0 + i18n: + zh-CN: 阻塞客户端数量 + en-US: Blocked Clients + - field: monitor_clients + type: 0 + i18n: + zh-CN: 监控的客户端数量 + en-US: monitor Clients + protocol: redis + redis: + host: ^_^host^_^ + port: ^_^port^_^ + username: ^_^username^_^ + password: ^_^password^_^ + timeout: ^_^timeout^_^ + # metrics - memory + - name: memory + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 2 + i18n: + zh-CN: 内存信息 + en-US: Memory + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: used_memory_rss + type: 0 + i18n: + zh-CN: 已使用内存(字节) + en-US: Used Memory RSS + - field: used_memory_rss_human + type: 0 + unit: MB + i18n: + zh-CN: 已使用物理内存 + en-US: Used Memory RSS Human + - field: used_memory_lua + type: 0 + i18n: + zh-CN: LUA脚本占用的内存(字节) + en-US: Used Memory LUA + - field: used_memory_lua_human + type: 0 + unit: KB + i18n: + zh-CN: LUA脚本占用的内存 + en-US: Used Memory LUA Human + - field: used_memory_startup + type: 0 + i18n: + zh-CN: 启动占用内存 + en-US: Used Memory Startup + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - persistence + - name: persistence + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 3 + i18n: + zh-CN: 持久化信息 + en-US: Persistence + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: loading + type: 0 + i18n: + zh-CN: 是否正在加载持久化文件 + en-US: Loading + - field: bgsave_in_progress + type: 0 + i18n: + zh-CN: 是否正在进行bgsave + en-US: bgsave In Progress + - field: last_bgsave_time + type: 0 + i18n: + zh-CN: 最近一次bgsave命令执行时间 + en-US: Last Save Time + - field: last_bgsave_status + type: 1 + i18n: + zh-CN: 最近一次bgsave命令执行状态 + en-US: Last bgsave Status + - field: last_bgsave_time_sec + type: 0 + i18n: + zh-CN: 最近一次bgsave命令执行时间(秒) + en-US: Last bgsave Time Sec + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - stats + - name: stats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 4 + i18n: + zh-CN: 全局统计信息 + en-US: Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: total_connections_received + type: 0 + i18n: + zh-CN: 已接受的总连接数 + en-US: Total Connections Received + - field: total_commands_processed + type: 0 + i18n: + zh-CN: 执行过的命令总数 + en-US: Total Commands Processed + - field: instantaneous_ops_per_sec + type: 0 + i18n: + zh-CN: 命令处理条数/秒 + en-US: Instantaneous Ops Per Sec + - field: total_net_input_bytes + type: 0 + i18n: + zh-CN: 输入总网络流量(字节) + en-US: Total Net Input Bytes + - field: total_net_output_bytes + type: 0 + i18n: + zh-CN: 输出总网络流量(字节) + en-US: Total Net Output Bytes + - field: instantaneous_input_kbps + type: 0 + i18n: + zh-CN: 输入字节数/秒 + en-US: Instantaneous Input Kbps + - field: instantaneous_output_kbps + type: 0 + i18n: + zh-CN: 输出字节数/秒 + en-US: Instantaneous Output Kbps + - field: sync_full + type: 0 + i18n: + zh-CN: 主从完全同步成功次数 + en-US: Sync Full + - field: sync_partial_ok + type: 0 + i18n: + zh-CN: 主从部分同步成功次数 + en-US: Sync Partial OK + - field: sync_partial_err + type: 0 + i18n: + zh-CN: 主从部分同步失败次数 + en-US: Sync Partial Error + - field: pubsub_channels + type: 0 + i18n: + zh-CN: 订阅的频道数量 + en-US: Pubsub Channels + - field: pubsub_patterns + type: 0 + i18n: + zh-CN: 订阅的模式数量 + en-US: Pubsub Patterns + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - replication + - name: replication + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 5 + i18n: + zh-CN: 主从同步信息 + en-US: Replication + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: role + type: 1 + i18n: + zh-CN: 节点角色 + en-US: Role + - field: connected_slaves + type: 0 + i18n: + zh-CN: 已连接的从节点个数 + en-US: Connected Slaves + - field: master_repl_offset + type: 0 + i18n: + zh-CN: 主节点偏移量 + en-US: Master Repl Offset + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - cpu + - name: cpu + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 6 + i18n: + zh-CN: CPU消耗信息 + en-US: CPU + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: used_cpu_sys + type: 0 + i18n: + zh-CN: Kvrocks进程使用的CPU时钟总和(内核态) + en-US: Used CPU Sys + - field: used_cpu_user + type: 0 + i18n: + zh-CN: Kvrocks进程使用的CPU时钟总和(用户态) + en-US: Used CPU User + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - Commandstats + - name: Commandstats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 8 + i18n: + zh-CN: 命令信息 + en-US: Command Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: cmdstat_command + type: 1 + i18n: + zh-CN: 命令 + en-US: Command Stat Command + - field: cmdstat_info + type: 1 + i18n: + zh-CN: 命令监控信息 + en-US: Command Stat Info + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - cluster + - name: cluster + # collect metrics content + priority: 9 + i18n: + zh-CN: 集群信息 + en-US: Cluster + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: cluster_enabled + type: 0 + i18n: + zh-CN: 节点是否开启集群模式 + en-US: Cluster Enabled + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - commandstats + - name: commandstats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 9 + i18n: + zh-CN: 命令统计信息 + en-US: Command Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: cmdstat_client + type: 1 + i18n: + zh-CN: 客户端命令统计 + en-US: cmdstat client + - field: cmdstat_config + type: 1 + i18n: + zh-CN: 配置命令统计 + en-US: cmdstat config + - field: cmdstat_get + type: 1 + i18n: + zh-CN: get + en-US: get + - field: cmdstat_hello + type: 1 + i18n: + zh-CN: hello + en-US: hello + - field: cmdstat_info + type: 1 + i18n: + zh-CN: info + en-US: info + - field: cmdstat_keys + type: 1 + i18n: + zh-CN: keys + en-US: keys + - field: cmdstat_ping + type: 1 + i18n: + zh-CN: ping + en-US: ping + - field: cmdstat_select + type: 1 + i18n: + zh-CN: select + en-US: select + - field: cmdstat_set + type: 1 + i18n: + zh-CN: set + en-US: set + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - keyspace + - name: keyspace + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 9 + i18n: + zh-CN: 数据库统计信息 + en-US: Keyspace + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: db0 + type: 1 + i18n: + zh-CN: db0 + en-US: db0 + - field: sequence + type: 1 + i18n: + zh-CN: 序列 + en-US: sequence + - field: used_db_size + type: 1 + i18n: + zh-CN: 数据库使用大小 + en-US: used_db_size + - field: max_db_size + type: 1 + i18n: + zh-CN: 数据库最大使用大小 + en-US: max_db_size + - field: used_percent + type: 1 + i18n: + zh-CN: 数据库使用百分比 + en-US: used_percent + - field: disk_capacity + type: 1 + i18n: + zh-CN: 磁盘容量 + en-US: disk_capacity + - field: used_disk_size + type: 1 + i18n: + zh-CN: 占用磁盘大小 + en-US: used_disk_size + - field: used_disk_percent + type: 1 + i18n: + zh-CN: 占用磁盘百分比 + en-US: used_disk_percent + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ diff --git a/manager/src/main/resources/define/app-linux.yml b/manager/src/main/resources/define/app-linux.yml index 698f43b0b2d..8579496413d 100644 --- a/manager/src/main/resources/define/app-linux.yml +++ b/manager/src/main/resources/define/app-linux.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-linux_script.yml b/manager/src/main/resources/define/app-linux_script.yml new file mode 100644 index 00000000000..113c90f1a87 --- /dev/null +++ b/manager/src/main/resources/define/app-linux_script.yml @@ -0,0 +1,398 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: os +# The monitoring type eg: linux windows tomcat mysql aws... +app: linux_script +# The monitoring i18n name +name: + zh-CN: Linux 命令 + en-US: Linux Script +# The description and help of this monitoring type +help: + zh-CN: Hertzbeat 使用采集器作为 agent 直接运行 Shell 命令 对 Linux 操作系统的通用性能指标 (系统信息、CPU、内存、磁盘、网卡、文件系统、TOP资源进程等) 进行采集监控。
您可以点击“新建 Linux Script”进行添加。或者选择“更多操作”,导入已有配置。 + en-US: Hertzbeat uses a collector as an agent to directly execute Shell commands to collect and monitor general performance metrics of the Linux operating system (system information, CPU, memory, disk, network card, file system, TOP resource processes, etc.).
You can click “Create New Linux Script” to add it. Or select “More Actions” to import an existing configuration. + zh-TW: Hertzbeat 使用采集器作為 agent 直接運行 Shell 命令 對 Linux 操作系統的通用性能指標 (系統信息、CPU、內存、磁盤、網卡、文件系統、TOP資源進程等) 進行採集監控。
您可以點擊“新建 Linux Script”進行添加。或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/script + en-US: https://hertzbeat.apache.org/docs/help/script +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true +# collect metrics config list +metrics: + # metrics - basic, inner monitoring metrics (responseTime - response time) + - name: basic + i18n: + zh-CN: 系统基本信息 + en-US: Basic Info + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: hostname + type: 1 + label: true + i18n: + zh-CN: 主机名称 + en-US: Host Name + - field: version + type: 1 + i18n: + zh-CN: 操作系统版本 + en-US: System Version + - field: uptime + type: 1 + i18n: + zh-CN: 启动时间 + en-US: Uptime + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: script + # the config content when protocol is ssh + script: + # script tool + scriptTool: bash + # OS charset + charset: UTF-8 + # script working directory + workDirectory: /usr/bin + # collect script + scriptCommand: (uname -r ; hostname ; uptime | awk -F "," '{print $1}' | sed "s/ //g") | sed ":a;N;s/\n/^/g;ta" | awk -F '^' 'BEGIN{print "version hostname uptime"} {print $1, $2, $3}' + # response data parse type: oneRow, multiRow + parseType: multiRow + + - name: cpu + i18n: + zh-CN: CPU 信息 + en-US: CPU Info + priority: 1 + fields: + - field: info + type: 1 + i18n: + zh-CN: 型号 + en-US: Info + - field: cores + type: 1 + i18n: + zh-CN: 核数 + en-US: Cores + - field: interrupt + type: 0 + i18n: + zh-CN: 中断数 + en-US: Interrupt + - field: load + type: 1 + i18n: + zh-CN: 负载 + en-US: Load + - field: context_switch + type: 0 + i18n: + zh-CN: 上下文切换 + en-US: Context Switch + - field: usage + type: 0 + unit: '%' + i18n: + zh-CN: 使用率 + en-US: Usage + # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field + aliasFields: + - info + - cores + - load + - interrupt + - context_switch + - idle + # mapping and conversion expressions, use these and aliasField above to calculate metrics value + # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime + calculates: + - info=info + - cores=cores + - load=load + - interrupt=interrupt + - context_switch=context_switch + - usage=100-idle + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: + | + LANG=C lscpu | awk -F: '$1=="Model name" {gsub(/^ */, "", $2); print $2}';awk '/processor/{core++} END{print core}' /proc/cpuinfo;uptime | sed 's/,/ /g' | awk '{for(i=NF-2;i<=NF;i++)print $i }' | xargs;vmstat 1 1 | awk 'NR==3{print $11}';vmstat 1 1 | awk 'NR==3{print $12}';vmstat 1 2 | awk 'NR==4{print $15}' + parseType: oneRow + + - name: memory + i18n: + zh-CN: 内存信息 + en-US: Memory Info + priority: 2 + fields: + - field: total + type: 1 + unit: Mb + i18n: + zh-CN: 总内存容量 + en-US: Total Memory + - field: used + type: 0 + unit: Mb + i18n: + zh-CN: 用户程序内存量 + en-US: User Program Memory + - field: free + type: 0 + unit: Mb + i18n: + zh-CN: 空闲内存容量 + en-US: Free Memory + - field: buff_cache + type: 0 + unit: Mb + i18n: + zh-CN: 缓存占用内存 + en-US: Buff Cache Memory + - field: available + type: 0 + unit: Mb + i18n: + zh-CN: 剩余可用内存 + en-US: Available Memory + - field: usage + type: 0 + unit: '%' + i18n: + zh-CN: 内存使用率 + en-US: Memory Usage + aliasFields: + - total + - used + - free + - buff_cache + - available + calculates: + - total=total + - used=used + - free=free + - buff_cache=buff_cache + - available=available + - usage=(used / total) * 100 + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: free -m | awk 'BEGIN{print "total used free buff_cache available"} NR==2{print $2,$3,$4,$6,$7}' + parseType: multiRow + + - name: disk + i18n: + zh-CN: 磁盘信息 + en-US: Disk Info + priority: 3 + fields: + - field: disk_num + type: 1 + i18n: + zh-CN: 磁盘总数 + en-US: Disk Num + - field: partition_num + type: 1 + i18n: + zh-CN: 分区总数 + en-US: Partition Num + - field: block_write + type: 0 + i18n: + zh-CN: 写磁盘块数 + en-US: Block Write + - field: block_read + type: 0 + i18n: + zh-CN: 读磁盘块数 + en-US: Block Read + - field: write_rate + type: 0 + unit: iops + i18n: + zh-CN: 磁盘写速率 + en-US: Write Rate + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: vmstat -D | awk 'NR==1{print $1}';vmstat -D | awk 'NR==2{print $1}';vmstat 1 1 | awk 'NR==3{print $10}';vmstat 1 1 | awk 'NR==3{print $9}';vmstat 1 1 | awk 'NR==3{print $16}' + parseType: oneRow + + - name: interface + i18n: + zh-CN: 网卡信息 + en-US: Interface Info + priority: 4 + fields: + - field: interface_name + type: 1 + label: true + i18n: + zh-CN: 网卡名称 + en-US: Interface Name + - field: receive_bytes + type: 0 + unit: Mb + i18n: + zh-CN: 入站数据流量 + en-US: Receive Bytes + - field: transmit_bytes + type: 0 + unit: Mb + i18n: + zh-CN: 出站数据流量 + en-US: Transmit Bytes + units: + - receive_bytes=B->MB + - transmit_bytes=B->MB + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: cat /proc/net/dev | tail -n +3 | awk 'BEGIN{ print "interface_name receive_bytes transmit_bytes"} {print $1,$2,$10}' + parseType: multiRow + + - name: disk_free + i18n: + zh-CN: 文件系统 + en-US: Disk Free + priority: 5 + fields: + - field: filesystem + type: 1 + i18n: + zh-CN: 文件系统 + en-US: Filesystem + - field: used + type: 0 + unit: Mb + i18n: + zh-CN: 已使用量 + en-US: Used + - field: available + type: 0 + unit: Mb + i18n: + zh-CN: 可用量 + en-US: Available + - field: usage + type: 0 + unit: '%' + i18n: + zh-CN: 使用率 + en-US: Usage + - field: mounted + type: 1 + label: true + i18n: + zh-CN: 挂载点 + en-US: Mounted + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: df -mP | tail -n +2 | awk 'BEGIN{ print "filesystem used available usage mounted"} {print $1,$3,$4,$5,$6}' + parseType: multiRow + + - name: top_cpu_process + i18n: + zh-CN: Top10 CPU 进程 + en-US: Top10 CPU Process + priority: 6 + fields: + - field: pid + type: 1 + label: true + i18n: + zh-CN: 进程ID + en-US: PID + - field: cpu_usage + type: 0 + unit: '%' + i18n: + zh-CN: CPU占用率 + en-US: CPU Usage + - field: mem_usage + type: 0 + unit: '%' + i18n: + zh-CN: 内存占用率 + en-US: Memory Usage + - field: command + type: 1 + i18n: + zh-CN: 执行命令 + en-US: Command + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: ps aux | sort -k3nr | awk 'BEGIN{ print "pid cpu_usage mem_usage command" } {printf "%s %s %s ", $2, $3, $4; for (i=11; i<=NF; i++) { printf "%s", $i; if (i < NF) printf " "; } print ""}' | head -n 11 + parseType: multiRow + + - name: top_mem_process + i18n: + zh-CN: Top10 内存进程 + en-US: Top10 Memory Process + priority: 7 + fields: + - field: pid + type: 1 + label: true + i18n: + zh-CN: 进程ID + en-US: PID + - field: mem_usage + type: 0 + unit: '%' + i18n: + zh-CN: 内存占用率 + en-US: Memory Usage + - field: cpu_usage + type: 0 + unit: '%' + i18n: + zh-CN: CPU占用率 + en-US: CPU Usage + - field: command + type: 1 + i18n: + zh-CN: 执行命令 + en-US: Command + protocol: script + script: + scriptTool: bash + charset: UTF-8 + scriptCommand: ps aux | sort -k4nr | awk 'BEGIN{ print "pid cpu_usage mem_usage command" } {printf "%s %s %s ", $2, $3, $4; for (i=11; i<=NF; i++) { printf "%s", $i; if (i < NF) printf " "; } print ""}' | head -n 11 + parseType: multiRow diff --git a/manager/src/main/resources/define/app-mqtt.yml b/manager/src/main/resources/define/app-mqtt.yml new file mode 100644 index 00000000000..c8f98532777 --- /dev/null +++ b/manager/src/main/resources/define/app-mqtt.yml @@ -0,0 +1,170 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring mid-middleware custom-custom monitoring os-operating system monitoring +category: service +# The monitoring type eg: linux windows tomcat mysql aws... +app: mqtt +# The app api i18n name +name: + zh-CN: MQTT 连接 + en-US: MQTT Connection +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 对 MQTT 连接进行监测。
您可以点击 “新建 MQTT 连接” 并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat monitors MQTT connections.
You can click "New MQTT connection" and configure it, or select "More actions" to import an existing configuration. + zh-TW: HertzBeat 對 MQTT 連接進行監測。
您可以點選 “新建 MQTT 連線” 並進行配置,或選擇“更多操作”,匯入已有配置。 +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: MQTT的Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value 1883 + defaultValue: 1883 + - field: protocolVersion + name: + zh-CN: 协议版本 + en-US: Protocol version + type: radio + options: + - label: MQTT 3.1.1 + value: MQTT_3_1_1 + - label: MQTT 5.0 + value: MQTT_5_0 + required: true + defaultValue: MQTT_3_1_1 + # field-param field key + - field: timeout + # name-param field display i18n name + name: + zh-CN: 连接超时时间(ms) + en-US: Connect Timeout(ms) + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,100000]' + # required-true or false + required: true + # default value 6000 + defaultValue: 6000 + # field-param field key + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + hide: true + # required-true or false + required: false + - field: password + name: + zh-CN: 密码 + en-US: Password + type: text + hide: true + # required-true or false + required: false + - field: clientId + name: + zh-CN: 客户端ID + en-US: Client Id + type: text + defaultValue: hertzbeat-mqtt-client + # required-true or false + required: true + + - field: topic + name: + zh-CN: 主题 + en-US: Topic + type: text + required: true + - field: testMessage + name: + zh-CN: 测试消息 + en-US: Test message + type: text + required: false +# collect metrics config list +metrics: + # metrics - summary + - name: summary + i18n: + zh-CN: 概要 + en-US: Summary + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + fields: + - field: responseTime + type: 0 + unit: ms + i18n: + zh-CN: 响应时间 + en-US: Response Time + - field: canDescribe + type: 1 + i18n: + zh-CN: 正常订阅 + en-US: Normal subscription + - field: canPublish + type: 1 + i18n: + zh-CN: 正常推送 + en-US: Normal publish + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: mqtt + # Specific collection configuration when protocol is telnet protocol + mqtt: + # telnet host + host: ^_^host^_^ + # port + port: ^_^port^_^ + # timeout + timeout: ^_^timeout^_^ + # email + topic: ^_^topic^_^ + # clientId + clientId: ^_^clientId^_^ + # protocolVersion + protocolVersion: ^_^protocolVersion^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # testMessage + testMessage: ^_^testMessage^_^ + + diff --git a/manager/src/main/resources/define/app-mysql.yml b/manager/src/main/resources/define/app-mysql.yml index 1ec1c086306..f3d1cc4f6a2 100644 --- a/manager/src/main/resources/define/app-mysql.yml +++ b/manager/src/main/resources/define/app-mysql.yml @@ -569,7 +569,7 @@ metrics: - field: connections type: 0 i18n: - zh-CN: 当前连接数 + zh-CN: 连接的总次数 en-US: Connections - field: max_used_connections type: 0 diff --git a/manager/src/main/resources/define/app-nginx.yml b/manager/src/main/resources/define/app-nginx.yml index 7cff1d7b515..bea9d5ed419 100644 --- a/manager/src/main/resources/define/app-nginx.yml +++ b/manager/src/main/resources/define/app-nginx.yml @@ -69,6 +69,16 @@ params: required: true # default value 6000 defaultValue: 6000 + # field-param field key + - field: ssl + # name-param field display i18n name + name: + zh-CN: 启动SSL + en-US: SSL + # When the type is boolean, the frontend will display a switch for it. + type: boolean + # required-true or false + required: false # collect metrics config list metrics: @@ -99,6 +109,8 @@ metrics: port: ^_^port^_^ # timeout timeout: ^_^timeout^_^ + # ssl + ssl: ^_^ssl^_^ - name: nginx_status i18n: @@ -173,6 +185,8 @@ metrics: timeout: ^_^timeout^_^ # http url url: /nginx-status + # ssl + ssl: ^_^ssl^_^ - name: req_status i18n: @@ -237,3 +251,5 @@ metrics: timeout: ^_^timeout^_^ # http url url: /req-status + # ssl + ssl: ^_^ssl^_^ diff --git a/manager/src/main/resources/define/app-oceanbase.yml b/manager/src/main/resources/define/app-oceanbase.yml new file mode 100644 index 00000000000..8587f4aa130 --- /dev/null +++ b/manager/src/main/resources/define/app-oceanbase.yml @@ -0,0 +1,361 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: db +# The monitoring type +app: OceanBase +# The monitoring i18n name +name: + zh-CN: OceanBase数据库 + en-US: OceanBase DB +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 使用 JDBC 协议 通过配置 SQL 对 OceanBase 数据库的通用性能指标(系统信息、性能状态、Innodb、缓存、事物、用户线程、慢SQL等)进行采集监控,支持版本为 OceanBase 4.0+。
您可以点击“新建 OceanBase 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat uses JDBC Protocol to configure SQL for collecting general metrics of OceanBase database (system information, performance status, Innodb, cache, things, user threads, slow SQL, etc.). Supported version is OceanBase 4.0+.
You can click "New OceanBase Database" and configure it, or select "More Operations" to import the existing configuration. + zh-TW: HertzBeat 使用 JDBC 協議 通過配置 SQL 對 OceanBase 數據庫的通用性能指標(系統信息、性能狀態、Innodb、緩存、事物、用戶線程、慢SQL等)進行采集監控,支持版本爲 OceanBase 4.0+。
您可以點擊“新建 OceanBase 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/oceanbase + en-US: https://hertzbeat.apache.org/docs/help/oceanbase +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 2881 + # field-param field key + - field: timeout + # name-param field display i18n name + name: + zh-CN: 查询超时时间(ms) + en-US: Query Timeout(ms) + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[400,200000]' + # required-true or false + required: false + # hide param-true or false + hide: true + # default value + defaultValue: 6000 + # field-param field key + - field: database + # name-param field display i18n name + name: + zh-CN: 数据库名称 + en-US: Database Name + # type-param field type(most mapping the html input tag) + type: text + # required-true or false + required: false + # field-param field key + - field: username + # name-param field display i18n name + name: + zh-CN: 用户名 + en-US: Username + # type-param field type(most mapping the html input tag) + type: text + # when type is text, use limit to limit string length + limit: 50 + # required-true or false + required: false + # field-param field key + - field: password + # name-param field display i18n name + name: + zh-CN: 密码 + en-US: Password + # type-param field type(most mapping the html input tag) + type: password + # required-true or false + required: false + # field-param field key + - field: url + # name-param field display i18n name + name: + zh-CN: URL + en-US: URL + # type-param field type(most mapping the html input tag) + type: text + # required-true or false + required: false + # hide param-true or false + hide: true + +# collect metrics config list +metrics: + # metrics - basic + - name: basic + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + i18n: + zh-CN: 基础 信息 + en-US: Basic Info + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: version + type: 1 + label: true + i18n: + zh-CN: 版本 + en-US: Version + - field: datadir + type: 1 + i18n: + zh-CN: 存储目录 + en-US: DataDir + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field + aliasFields: + - version + - version_compile_os + - version_compile_machine + - datadir + - max_connections + # (optional)mapping and conversion expressions, use these and aliasField above to calculate metrics value + # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime + calculates: + - datadir=datadir + - max_connections=max_connections + - version=version+"_"+version_compile_os+"_"+version_compile_machine + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: jdbc + # the config content when protocol is jdbc + jdbc: + # OceanBase host: ipv4 ipv6 host + host: ^_^host^_^ + # OceanBase port + port: ^_^port^_^ + # database platform name + platform: mysql + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # database name + database: ^_^database^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + # SQL Query Method:oneRow, multiRow, columns + queryType: columns + # sql + sql: show global variables where Variable_name like 'version%' or Variable_name = 'max_connections' or Variable_name = 'datadir' ; + # JDBC url + url: ^_^url^_^ + # metrics - tenant + - name: tenant + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + i18n: + zh-CN: 租户 信息 + en-US: Tenant Info + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: tenant_id + type: 1 + label: true + i18n: + zh-CN: 租户id + en-US: TenantId + - field: tenant_name + type: 1 + i18n: + zh-CN: 租户名称 + en-US: tenantName + - field: status + type: 1 + i18n: + zh-CN: 状态 + en-US: status + # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field + aliasFields: + - tenant_id + - tenant_name + - status + # (optional)mapping and conversion expressions, use these and aliasField above to calculate metrics value + # eg: cores=core1+core2, usage=usage, waitTime=allTime-runningTime + calculates: + - tenant_id=tenant_id + - tenant_name=tenant_name + - status=status + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: jdbc + # the config content when protocol is jdbc + jdbc: + # OceanBase host: ipv4 ipv6 host + host: ^_^host^_^ + # OceanBase port + port: ^_^port^_^ + # database platform name + platform: mysql + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # database name + database: ^_^database^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + # SQL Query Method:oneRow, multiRow, columns + queryType: multiRow + # sql + sql: select tenant_id, tenant_name, info, status from oceanbase.__all_tenant; + # JDBC url + url: ^_^url^_^ + + - name: sql + priority: 1 + i18n: + zh-CN: Sql 信息 + en-US: Sql Info + fields: + - field: con_id + type: 1 + label: true + i18n: + zh-CN: 租户id + en-US: TenantId + - field: sql_select_count + type: 0 + i18n: + zh-CN: select 语句执行次数 + en-US: sql select count + - field: sql_insert_count + type: 0 + i18n: + zh-CN: insert 语句执行次数 + en-US: sql insert count + - field: sql_update_count + type: 0 + i18n: + zh-CN: update 语句执行次数 + en-US: sql update count + - field: sql_delete_count + type: 0 + i18n: + zh-CN: delete 语句执行次数 + en-US: sql delete count +# - field: com_commit +# type: 0 +# i18n: +# zh-CN: 事务提交次数 +# en-US: trans commit count +# - field: com_rollback +# type: 0 +# i18n: +# zh-CN: 事务回滚次数 +# en-US: trans rollback count + aliasFields: + - con_id + - sql_select_count + - sql_insert_count + - sql_update_count + - sql_delete_count +# - com_commit +# - com_rollback + calculates: + - con_id=con_id + - sql_select_count=sql_select_count + - sql_insert_count=sql_insert_count + - sql_update_count=sql_update_count + - sql_delete_count=sql_delete_count + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + platform: mysql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + timeout: ^_^timeout^_^ + queryType: multiRow + sql: | + SELECT + con_id, + MAX(CASE WHEN name = 'sql select count' THEN value END) AS "sql_select_count", + MAX(CASE WHEN name = 'sql insert count' THEN value END) AS "sql_insert_count", + MAX(CASE WHEN name = 'sql update count' THEN value END) AS "sql_update_count", + MAX(CASE WHEN name = 'sql delete count' THEN value END) AS "sql_delete_count" + FROM + oceanbase.gv$sysstat + WHERE + CLASS = 8 + AND name IN ('sql select count', 'sql insert count', 'sql update count', 'sql delete count') + GROUP BY + con_id + ORDER BY + con_id; + url: ^_^url^_^ + + + - name: process_state + priority: 2 + i18n: + zh-CN: 进程状态 信息 + en-US: Process State Info + fields: + - field: state + type: 1 + label: true + i18n: + zh-CN: 进程状态 + en-US: State + - field: num + type: 0 + i18n: + zh-CN: 该状态进程数量 + en-US: Num + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + platform: mysql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + timeout: ^_^timeout^_^ + queryType: multiRow + sql: select state, count(*) as num from information_schema.PROCESSLIST where state != '' group by state; + url: ^_^url^_^ diff --git a/manager/src/main/resources/define/app-opensuse.yml b/manager/src/main/resources/define/app-opensuse.yml index 75546e737d5..7cae69a79ac 100644 --- a/manager/src/main/resources/define/app-opensuse.yml +++ b/manager/src/main/resources/define/app-opensuse.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-oracle.yml b/manager/src/main/resources/define/app-oracle.yml index 807713a3b23..8dbc10cd93f 100644 --- a/manager/src/main/resources/define/app-oracle.yml +++ b/manager/src/main/resources/define/app-oracle.yml @@ -95,6 +95,9 @@ params: metrics: # metrics - basic - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -104,14 +107,29 @@ metrics: - field: database_version type: 1 label: true + i18n: + zh-CN: 数据库版本 + en-US: Database Version - field: hostname type: 1 + i18n: + zh-CN: 主机名 + en-US: Host Name - field: instance_name type: 1 + i18n: + zh-CN: 实例名 + en-US: Instance Name - field: startup_time type: 1 + i18n: + zh-CN: 启动时间 + en-US: Startup Time - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field aliasFields: - VERSION @@ -148,23 +166,44 @@ metrics: url: ^_^url^_^ - name: tablespace + i18n: + zh-CN: 表空间 + en-US: Tablespace priority: 1 fields: - field: file_id type: 1 label: true + i18n: + zh-CN: 文件ID + en-US: File ID - field: file_name type: 1 + i18n: + zh-CN: 文件名 + en-US: File Name - field: tablespace_name type: 1 + i18n: + zh-CN: 表空间名 + en-US: Tablespace Name - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status - field: bytes type: 0 + i18n: + zh-CN: 字节数 + en-US: Bytes unit: MB - field: blocks type: 0 - unit: 块数 + i18n: + zh-CN: 块数 + en-US: Blocks + unit: 块 protocol: jdbc jdbc: host: ^_^host^_^ @@ -180,10 +219,16 @@ metrics: url: ^_^url^_^ - name: total_sessions + i18n: + zh-CN: 会话总数 + en-US: Total Sessions priority: 1 fields: - field: count type: 0 + i18n: + zh-CN: 总数 + en-US: Count protocol: jdbc jdbc: host: ^_^host^_^ @@ -198,10 +243,16 @@ metrics: url: ^_^url^_^ - name: active_sessions + i18n: + zh-CN: 活动会话 + en-US: Active Sessions priority: 1 fields: - field: count type: 0 + i18n: + zh-CN: 总数 + en-US: Count protocol: jdbc jdbc: host: ^_^host^_^ @@ -216,10 +267,16 @@ metrics: url: ^_^url^_^ - name: background_sessions + i18n: + zh-CN: 后台会话 + en-US: Background Sessions priority: 1 fields: - field: count type: 0 + i18n: + zh-CN: 总数 + en-US: Count protocol: jdbc jdbc: host: ^_^host^_^ @@ -234,12 +291,21 @@ metrics: url: ^_^url^_^ - name: connection + i18n: + zh-CN: 连接 + en-US: Connection priority: 1 fields: - field: username type: 1 + i18n: + zh-CN: 用户名 + en-US: Username label: true - field: count + i18n: + zh-CN: 总数 + en-US: Count type: 0 protocol: jdbc jdbc: @@ -255,16 +321,28 @@ metrics: url: ^_^url^_^ - name: performance + i18n: + zh-CN: 性能 + en-US: Performance priority: 1 fields: - field: qps type: 0 + i18n: + zh-CN: 每秒查询数 + en-US: QPS unit: qps - field: tps type: 0 + i18n: + zh-CN: 每秒事务数 + en-US: TPS unit: tps - field: mbps type: 0 + i18n: + zh-CN: 每秒IO读写 + en-US: MBPS unit: mbps aliasFields: - I/O Requests per Second @@ -289,22 +367,43 @@ metrics: - name: percentage + i18n: + zh-CN: 百分比 + en-US: Percentage priority: 1 fields: - field: tablespace_name type: 1 + i18n: + zh-CN: 表空间名 + en-US: Tablespace Name label: true - field: total + i18n: + zh-CN: 全部 + en-US: Total type: 0 - field: used + i18n: + zh-CN: 已用 + en-US: Used type: 0 - field: free + i18n: + zh-CN: 空闲 + en-US: Free type: 0 - field: used_percentage type: 0 + i18n: + zh-CN: 已用百分比 + en-US: Used Percentage unit: '%' - field: free_percentage type: 0 + i18n: + zh-CN: 空闲百分比 + en-US: Free Percentage unit: '%' protocol: jdbc jdbc: @@ -321,10 +420,16 @@ metrics: url: ^_^url^_^ - name: process + i18n: + zh-CN: 进程 + en-US: Process priority: 1 fields: - field: process_count type: 0 + i18n: + zh-CN: 进程数 + en-US: Process Count protocol: jdbc jdbc: host: ^_^host^_^ @@ -339,14 +444,23 @@ metrics: url: ^_^url^_^ - name: transaction + i18n: + zh-CN: 事务 + en-US: Transaction priority: 1 fields: - field: commits type: 0 unit: 't/s' + i18n: + zh-CN: 提交数 + en-US: Commits - field: rollbacks type: 0 unit: 't/s' + i18n: + zh-CN: 回滚数 + en-US: Rollbacks aliasFields: - User Commits Per Sec - User Rollbacks Per Sec @@ -367,32 +481,59 @@ metrics: url: ^_^url^_^ - name: wait + i18n: + zh-CN: 等待 + en-US: Wait priority: 1 fields: - field: concurrent_wait_time type: 0 unit: ms + i18n: + zh-CN: 并发等待时间 + en-US: Concurrent Wait Time - field: commit_wait_time type: 0 unit: ms + i18n: + zh-CN: 提交等待时间 + en-US: Commit Wait Time - field: app_wait_time type: 0 unit: ms + i18n: + zh-CN: 应用等待时间 + en-US: Application Wait Time - field: network_wait_time type: 0 unit: ms + i18n: + zh-CN: 网络等待时间 + en-US: Network Wait Time - field: system_io_wait_time type: 0 unit: ms + i18n: + zh-CN: 系统I/O等待时间 + en-US: System I/O Wait Time - field: user_io_wait_time type: 0 unit: ms + i18n: + zh-CN: 用户I/O等待时间 + en-US: User I/O Wait Time - field: configure_wait_time type: 0 unit: ms + i18n: + zh-CN: 配置等待时间 + en-US: Configure Wait Time - field: scheduler_wait_time type: 0 unit: ms + i18n: + zh-CN: 调度等待时间 + en-US: Scheduler Wait Time aliasFields: - System I/O - Application @@ -425,13 +566,22 @@ metrics: url: ^_^url^_^ - name: cpu_stats + i18n: + zh-CN: CPU状态 + en-US: CPU Stats priority: 1 fields: - field: type type: 1 label: true + i18n: + zh-CN: 类型 + en-US: Type - field: num type: 1 + i18n: + zh-CN: 数量 + en-US: Num protocol: jdbc jdbc: host: ^_^host^_^ @@ -446,13 +596,22 @@ metrics: url: ^_^url^_^ - name: mem_stats + i18n: + zh-CN: 内存状态 + en-US: Memory Stats priority: 1 fields: - field: type type: 1 label: true + i18n: + zh-CN: 类型 + en-US: Type - field: num type: 1 + i18n: + zh-CN: 数量 + en-US: Num protocol: jdbc jdbc: host: ^_^host^_^ @@ -467,12 +626,21 @@ metrics: url: ^_^url^_^ - name: cache_hit_ratio + i18n: + zh-CN: 缓存命中率 + en-US: Cache Hit Ratio priority: 1 fields: - field: lib_cache_hit_ratio type: 0 + i18n: + zh-CN: 库缓存命中率 + en-US: LIB CACHE HIT RATIO - field: buffer_cache_hit_ratio type: 0 + i18n: + zh-CN: 缓冲区缓存命中率 + en-US: BUFFER CACHE HIT RATIO aliasFields: - Library Cache Hit Ratio - Buffer Cache Hit Ratio @@ -493,33 +661,69 @@ metrics: url: ^_^url^_^ - name: slow_query + i18n: + zh-CN: 慢查询 + en-US: Slow Query priority: 1 fields: - field: sql_id type: 1 + i18n: + zh-CN: sql 主键 + en-US: SQL ID - field: child_number type: 1 + i18n: + zh-CN: 子编号 + en-US: Child Number - field: executions type: 1 - unit: 次数 + i18n: + zh-CN: 执行数 + en-US: EXECUTIONS + unit: 次 - field: per_secs type: 1 + i18n: + zh-CN: 每秒执行数 + en-US: Per Secs unit: 秒 - field: cpu_secs type: 1 + i18n: + zh-CN: 每秒CPU + en-US: CPU Secs unit: 秒 - field: buffer_gets type: 1 + i18n: + zh-CN: 获得的缓冲区 + en-US: Buffer Gets - field: disk_reads type: 1 + i18n: + zh-CN: 磁盘读取 + en-US: Disk Reads - field: fetches type: 1 + i18n: + zh-CN: 获取数量 + en-US: Fetches - field: parse_calls type: 1 + i18n: + zh-CN: 解析调用 + en-US: Parse Calls - field: optimizer_cost type: 1 + i18n: + zh-CN: 优化器成本 + en-US: Optimizer Cost - field: sql_text type: 1 + i18n: + zh-CN: SQL文本 + en-US: SQL Text protocol: jdbc jdbc: host: ^_^host^_^ diff --git a/manager/src/main/resources/define/app-postgresql.yml b/manager/src/main/resources/define/app-postgresql.yml index 3c85d6c29e6..ebd487998a6 100644 --- a/manager/src/main/resources/define/app-postgresql.yml +++ b/manager/src/main/resources/define/app-postgresql.yml @@ -96,6 +96,9 @@ params: metrics: # metrics - basic - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -105,14 +108,29 @@ metrics: - field: server_version type: 1 label: true + i18n: + zh-CN: 服务器版本 + en-US: Server Version - field: port type: 1 + i18n: + zh-CN: 端口 + en-US: Port - field: server_encoding type: 1 + i18n: + zh-CN: 服务器编码 + en-US: Server Encoding - field: data_directory type: 1 + i18n: + zh-CN: 数据目录 + en-US: Data Directory - field: max_connections type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: jdbc # the config content when protocol is jdbc @@ -134,31 +152,58 @@ metrics: url: ^_^url^_^ - name: state + i18n: + zh-CN: 状态信息 + en-US: State Info priority: 1 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: conflicts type: 0 unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts - field: deadlocks type: 0 unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks - field: blks_read type: 0 unit: blocks per second + i18n: + zh-CN: 读取块 + en-US: Blocks Read - field: blks_hit type: 0 unit: blocks per second + i18n: + zh-CN: 命中块 + en-US: Blocks Hit - field: blk_read_time type: 0 unit: ms + i18n: + zh-CN: 读取时间 + en-US: Read Time - field: blk_write_time type: 0 unit: ms + i18n: + zh-CN: 写入时间 + en-US: Write Time - field: stats_reset type: 1 + i18n: + zh-CN: 统计重置 + en-US: Stats Reset protocol: jdbc jdbc: host: ^_^host^_^ @@ -173,11 +218,17 @@ metrics: url: ^_^url^_^ - name: activity + i18n: + zh-CN: 活动信息 + en-US: Activity Info priority: 2 fields: - field: running type: 0 unit: sbc + i18n: + zh-CN: 运行中 + en-US: Running protocol: jdbc jdbc: host: ^_^host^_^ @@ -192,24 +243,45 @@ metrics: url: ^_^url^_^ - name: resource_config + i18n: + zh-CN: 资源配置 + en-US: Resource Config priority: 1 fields: - field: work_mem type: 0 unit: MB + i18n: + zh-CN: 工作内存 + en-US: Work Memory - field: shared_buffers type: 0 unit: MB + i18n: + zh-CN: 共享缓冲区 + en-US: Shared Buffers - field: autovacuum type: 1 + i18n: + zh-CN: 自动清理 + en-US: Auto Vacuum - field: max_connections type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections - field: effective_cache_size type: 0 unit: MB + i18n: + zh-CN: 有效缓存大小 + en-US: Effective Cache Size - field: wal_buffers type: 0 unit: MB + i18n: + zh-CN: WAL缓冲区 + en-US: WAL Buffers protocol: jdbc jdbc: host: ^_^host^_^ @@ -224,10 +296,16 @@ metrics: url: ^_^url^_^ - name: connection + i18n: + zh-CN: 连接信息 + en-US: Connection Info priority: 1 fields: - field: active type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection protocol: jdbc jdbc: host: ^_^host^_^ @@ -242,13 +320,22 @@ metrics: url: ^_^url^_^ - name: connection_state + i18n: + zh-CN: 连接状态 + en-US: Connection State priority: 1 fields: - field: state type: 1 label: true + i18n: + zh-CN: 状态 + en-US: State - field: num type: 0 + i18n: + zh-CN: 数量 + en-US: Num protocol: jdbc jdbc: host: ^_^host^_^ @@ -263,13 +350,22 @@ metrics: url: ^_^url^_^ - name: connection_db + i18n: + zh-CN: 连接数据库 + en-US: Connection Db priority: 1 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: active type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection protocol: jdbc jdbc: host: ^_^host^_^ @@ -284,18 +380,36 @@ metrics: url: ^_^url^_^ - name: tuple + i18n: + zh-CN: 元组信息 + en-US: Tuple Info priority: 1 fields: - field: fetched type: 0 + i18n: + zh-CN: 获取次数 + en-US: Fetched - field: returned type: 0 + i18n: + zh-CN: 返回次数 + en-US: Returned - field: inserted type: 0 + i18n: + zh-CN: 插入次数 + en-US: Inserted - field: updated type: 0 + i18n: + zh-CN: 更新次数 + en-US: Updated - field: deleted type: 0 + i18n: + zh-CN: 删除次数 + en-US: Deleted protocol: jdbc jdbc: host: ^_^host^_^ @@ -310,16 +424,28 @@ metrics: url: ^_^url^_^ - name: temp_file + i18n: + zh-CN: 临时文件 + en-US: Temp File priority: 1 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: num type: 0 + i18n: + zh-CN: 次数 + en-US: Num - field: size type: 0 unit: B + i18n: + zh-CN: 大小 + en-US: Size protocol: jdbc jdbc: host: ^_^host^_^ @@ -334,17 +460,29 @@ metrics: url: ^_^url^_^ - name: lock + i18n: + zh-CN: 锁信息 + en-US: Lock Info priority: 1 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: conflicts type: 0 unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts - field: deadlocks type: 0 unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks protocol: jdbc jdbc: host: ^_^host^_^ @@ -359,21 +497,39 @@ metrics: url: ^_^url^_^ - name: slow_sql + i18n: + zh-CN: 慢查询 + en-US: Slow Sql priority: 1 fields: - field: sql_text type: 1 label: true + i18n: + zh-CN: SQL语句 + en-US: SQL Text - field: calls type: 0 + i18n: + zh-CN: 调用次数 + en-US: Calls - field: rows type: 0 + i18n: + zh-CN: 行数 + en-US: Rows - field: avg_time type: 0 unit: ms + i18n: + zh-CN: 平均时间 + en-US: Avg Time - field: total_time type: 0 unit: ms + i18n: + zh-CN: 总时间 + en-US: Total Time aliasFields: - query - calls @@ -398,17 +554,29 @@ metrics: url: ^_^url^_^ - name: transaction + i18n: + zh-CN: 事务信息 + en-US: Transaction Info priority: 2 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: commits type: 0 unit: times + i18n: + zh-CN: 提交次数 + en-US: Commits - field: rollbacks type: 0 unit: times + i18n: + zh-CN: 回滚次数 + en-US: Rollbacks protocol: jdbc jdbc: host: ^_^host^_^ @@ -423,21 +591,42 @@ metrics: url: ^_^url^_^ - name: conflicts + i18n: + zh-CN: 冲突信息 + en-US: Conflicts Info priority: 2 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: tablespace type: 0 + i18n: + zh-CN: 表空间 + en-US: Tablespace - field: lock type: 0 + i18n: + zh-CN: 锁 + en-US: Lock - field: snapshot type: 0 + i18n: + zh-CN: 快照 + en-US: Snapshot - field: bufferpin type: 0 + i18n: + zh-CN: 缓冲区 + en-US: Bufferpin - field: deadlock type: 0 + i18n: + zh-CN: 死锁 + en-US: Deadlock protocol: jdbc jdbc: host: ^_^host^_^ @@ -452,14 +641,23 @@ metrics: url: ^_^url^_^ - name: cache_hit_ratio + i18n: + zh-CN: 缓存命中率 + en-US: Cache Hit Ratio priority: 2 fields: - field: db_name type: 1 label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name - field: ratio type: 0 unit: '%' + i18n: + zh-CN: 命中率 + en-US: Hit Ratio aliasFields: - blks_hit - blks_read @@ -480,14 +678,23 @@ metrics: url: ^_^url^_^ - name: checkpoint + i18n: + zh-CN: Checkpoint信息 + en-US: Checkpoint Info priority: 2 fields: - field: checkpoint_sync_time type: 0 unit: ms + i18n: + zh-CN: Checkpoint同步时间 + en-US: Checkpoint Sync Time - field: checkpoint_write_time type: 0 unit: ms + i18n: + zh-CN: Checkpoint写入时间 + en-US: Checkpoint Write Time protocol: jdbc jdbc: host: ^_^host^_^ @@ -502,18 +709,36 @@ metrics: url: ^_^url^_^ - name: buffer + i18n: + zh-CN: Buffer信息 + en-US: Buffer Info priority: 2 fields: - field: allocated type: 0 + i18n: + zh-CN: 已分配 + en-US: Allocated - field: fsync_calls_by_backend type: 0 + i18n: + zh-CN: 后端进程直接执行的文件同步调用次数 + en-US: Fsync Calls By Backend - field: written_directly_by_backend type: 0 + i18n: + zh-CN: 后台写入到数据文件 + en-US: Written Directly By Backend - field: written_by_background_writer type: 0 + i18n: + zh-CN: 后台写入 + en-US: Written By Background Writer - field: written_during_checkpoints type: 0 + i18n: + zh-CN: 检查点期间写入 + en-US: Written During Checkpoints protocol: jdbc jdbc: host: ^_^host^_^ diff --git a/manager/src/main/resources/define/app-prestodb.yml b/manager/src/main/resources/define/app-prestodb.yml index 94c1fdd2785..7f509ddb83a 100644 --- a/manager/src/main/resources/define/app-prestodb.yml +++ b/manager/src/main/resources/define/app-prestodb.yml @@ -105,6 +105,64 @@ metrics: parseType: jsonPath parseScript: '$' + - name: node + i18n: + zh-CN: 节点信息 + en-US: Node Info + priority: 0 + fields: + - field: uri + type: 1 + i18n: + zh-CN: 节点链接 + en-US: Node Uri + - field: recentRequests + type: 0 + i18n: + zh-CN: 最近一段时间内的请求数量 + en-US: Recent Requests + - field: recentFailures + type: 0 + i18n: + zh-CN: 最近一段时间内的失败请求数量 + en-US: Recent Failures + - field: recentSuccesses + type: 0 + i18n: + zh-CN: 最近一段时间内的成功请求数量 + en-US: Recent Successes + - field: lastRequestTime + type: 1 + i18n: + zh-CN: 最近一次请求的时间 + en-US: Last Request Time + - field: lastResponseTime + type: 1 + i18n: + zh-CN: 最近一次响应的时间 + en-US: Last Response Time + - field: age + type: 0 + i18n: + zh-CN: 持续时间 + en-US: Age + - field: recentFailureRatio + type: 0 + i18n: + zh-CN: 最近一段时间内的失败 + en-US: Recent Failure Ratio + + protocol: http + http: + host: ^_^host^_^ + port: ^_^port^_^ + url: /v1/node + timeout: ^_^timeout^_^ + method: GET + ssl: ^_^ssl^_^ + parseType: jsonPath + parseScript: '$[*]' + - name: status i18n: zh-CN: 节点状态 diff --git a/manager/src/main/resources/define/app-pulsar.yml b/manager/src/main/resources/define/app-pulsar.yml index ce274f42dc3..5fdf8927654 100644 --- a/manager/src/main/resources/define/app-pulsar.yml +++ b/manager/src/main/resources/define/app-pulsar.yml @@ -87,6 +87,9 @@ metrics: method: GET parseType: prometheus - name: process_start_time_seconds + i18n: + zh-CN: 进程启动时间 + en-US: Process Start Time priority: 0 fields: - field: value @@ -109,6 +112,9 @@ metrics: method: GET parseType: prometheus - name: process_open_fds + i18n: + zh-CN: 打开的文件描述符 + en-US: Open File Descriptors priority: 0 fields: - field: value @@ -130,6 +136,9 @@ metrics: method: GET parseType: prometheus - name: process_max_fds + i18n: + zh-CN: 最大文件描述符 + en-US: Max File Descriptors priority: 0 fields: - field: value @@ -151,6 +160,9 @@ metrics: method: GET parseType: prometheus - name: jvm_memory_pool_allocated_bytes + i18n: + zh-CN: JVM 内存池已分配字节 + en-US: JVM Memory Pool Allocated Bytes priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http @@ -158,14 +170,20 @@ metrics: - field: .name type: 1 i18n: - zh-CN: 指标名称 - en-US: Metric Name + zh-CN: 名称 + en-US: Name label: true - field: pool type: 1 label: true + i18n: + zh-CN: 池 + en-US: Pool - field: value type: 0 + i18n: + zh-CN: 值 + en-US: Value # the config content when protocol is http http: # http host: ipv4 ipv6 domain @@ -178,15 +196,24 @@ metrics: method: GET parseType: prometheus - name: jvm_memory_pool_bytes_used + i18n: + zh-CN: JVM 内存池已使用字节 + en-US: JVM Memory Pool Used Bytes priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http fields: - field: pool type: 1 + i18n: + zh-CN: 池 + en-US: Pool label: true - field: value type: 0 + i18n: + zh-CN: 值 + en-US: Value # the config content when protocol is http http: # http host: ipv4 ipv6 domain @@ -199,15 +226,24 @@ metrics: method: GET parseType: prometheus - name: jvm_memory_pool_bytes_committed + i18n: + zh-CN: JVM 内存池已提交字节 + en-US: JVM Memory Pool Committed Bytes priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http fields: - field: pool type: 1 + i18n: + zh-CN: 池 + en-US: Pool label: true - field: value type: 0 + i18n: + zh-CN: 值 + en-US: Value # the config content when protocol is http http: # http host: ipv4 ipv6 domain @@ -220,15 +256,24 @@ metrics: method: GET parseType: prometheus - name: jvm_memory_pool_bytes_max + i18n: + zh-CN: JVM 内存池最大字节 + en-US: JVM Memory Pool Max Bytes priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http fields: - field: pool type: 1 + i18n: + zh-CN: 池 + en-US: Pool label: true - field: value type: 0 + i18n: + zh-CN: 值 + en-US: Value # the config content when protocol is http http: # http host: ipv4 ipv6 domain @@ -241,6 +286,9 @@ metrics: method: GET parseType: prometheus - name: pulsar_broker_publish_latency + i18n: + zh-CN: broker 发布延迟 + en-US: Broker Publish Latency priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http @@ -253,12 +301,21 @@ metrics: label: true - field: cluster type: 1 + i18n: + zh-CN: 集群 + en-US: Cluster label: true - field: quantile type: 1 + i18n: + zh-CN: 分位数 + en-US: Quantile label: true - field: value type: 0 + i18n: + zh-CN: 值 + en-US: Value # the config content when protocol is http http: # http host: ipv4 ipv6 domain @@ -271,6 +328,9 @@ metrics: method: GET parseType: prometheus - name: pulsar_metadata_store_ops_latency_ms + i18n: + zh-CN: 元数据存储操作延迟 + en-US: Metadata Store Ops Latency priority: 0 # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http @@ -283,15 +343,27 @@ metrics: label: true - field: cluster type: 1 + i18n: + zh-CN: 集群 + en-US: Cluster label: true - field: name type: 1 + i18n: + zh-CN: 名称 + en-US: Name label: true - field: type type: 1 + i18n: + zh-CN: 类型 + en-US: Type label: true - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status label: true - field: le type: 0 diff --git a/manager/src/main/resources/define/app-push.yml b/manager/src/main/resources/define/app-push.yml index e16a35a5bf3..91bcd15ba7b 100644 --- a/manager/src/main/resources/define/app-push.yml +++ b/manager/src/main/resources/define/app-push.yml @@ -62,6 +62,9 @@ params: metrics: # metrics - all - name: metrics + i18n: + zh-CN: 指标 + en-US: Metrics # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 diff --git a/manager/src/main/resources/define/app-rabbitmq.yml b/manager/src/main/resources/define/app-rabbitmq.yml index 58c3f9d11f3..eb2e2064aeb 100644 --- a/manager/src/main/resources/define/app-rabbitmq.yml +++ b/manager/src/main/resources/define/app-rabbitmq.yml @@ -104,6 +104,9 @@ params: metrics: # Note: The built-in monitoring metrics include (responseTime - response time) - name: overview + i18n: + zh-CN: 概览 + en-US: Overview # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -170,6 +173,9 @@ metrics: parseType: default - name: object_totals + i18n: + zh-CN: 对象总数 + en-US: Object Totals # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -224,6 +230,9 @@ metrics: parseScript: '$.object_totals' - name: nodes + i18n: + zh-CN: 节点数 + en-US: Nodes # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -443,6 +452,9 @@ metrics: parseScript: '$.*' - name: queues + i18n: + zh-CN: 队列数 + en-US: Queues # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 diff --git a/manager/src/main/resources/define/app-redfish.yml b/manager/src/main/resources/define/app-redfish.yml index 2be76bb8c2f..2c38fd88671 100644 --- a/manager/src/main/resources/define/app-redfish.yml +++ b/manager/src/main/resources/define/app-redfish.yml @@ -164,12 +164,6 @@ metrics: en-US: Chasis Health # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field # (可选)监控指标别名, 做为中间字段与采集数据字段和指标字段映射转换 - aliasFields: - - $.['@odata.id'] - - $.Name - - $.ChassisType - - $.Status.State - - $.Status.Health # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redfish # the config content when protocol is redfish @@ -184,6 +178,12 @@ metrics: password: ^_^password^_^ # timeout unit:ms timeout: ^_^timeout^_^ + jsonPath: + - $.['@odata.id'] + - $.Name + - $.ChassisType + - $.Status.State + - $.Status.Health - name: Battery priority: 1 @@ -213,12 +213,6 @@ metrics: i18n: zh-CN: 电池充电状态 en-US: Battery Charge Status - aliasFields: - - $.['@odata.id'] - - $.Name - - $.Status.State - - $.Status.Health - - $.ChargeState protocol: redfish redfish: # redfish host: ipv4 ipv6 domain @@ -231,6 +225,12 @@ metrics: password: ^_^password^_^ # timeout unit:ms timeout: ^_^timeout^_^ + jsonPath: + - $.['@odata.id'] + - $.Name + - $.Status.State + - $.Status.Health + - $.ChargeState - name: Fan priority: 2 @@ -265,13 +265,6 @@ metrics: i18n: zh-CN: 风扇转速 en-US: Fan Speed - aliasFields: - - $.['@odata.id'] - - $.Name - - $.Status.State - - $.Status.Health - - $.SpeedPercent.Reading - - $.SpeedPercent.SpeedRPM protocol: redfish redfish: # redfish host: ipv4 ipv6 domain @@ -286,3 +279,10 @@ metrics: timeout: ^_^timeout^_^ # redfish fan collection schema schema: /redfish/v1/Chassis/{ChassisId}/ThermalSubsystem/Fans + jsonPath: + - $.['@odata.id'] + - $.Name + - $.Status.State + - $.Status.Health + - $.SpeedPercent.Reading + - $.SpeedPercent.SpeedRPM diff --git a/manager/src/main/resources/define/app-redhat.yml b/manager/src/main/resources/define/app-redhat.yml index d9f47b8e091..e733df10a17 100644 --- a/manager/src/main/resources/define/app-redhat.yml +++ b/manager/src/main/resources/define/app-redhat.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-redis_cluster.yml b/manager/src/main/resources/define/app-redis_cluster.yml index 44dc473a507..b080def499d 100644 --- a/manager/src/main/resources/define/app-redis_cluster.yml +++ b/manager/src/main/resources/define/app-redis_cluster.yml @@ -114,52 +114,124 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: redis_version type: 1 + i18n: + zh-CN: Redis 版本 + en-US: Redis Version - field: redis_git_sha1 type: 0 + i18n: + zh-CN: Redis Git SHA1 + en-US: Redis Git SHA1 - field: redis_git_dirty type: 0 + i18n: + zh-CN: Redis Git Dirty + en-US: Redis Git Dirty - field: redis_build_id type: 1 + i18n: + zh-CN: Redis 构建 ID + en-US: Redis Build ID - field: redis_mode type: 1 + i18n: + zh-CN: Redis 模式 + en-US: Redis Mode - field: os type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System - field: arch_bits type: 0 + i18n: + zh-CN: 架构位数 + en-US: Architecture Bits - field: multiplexing_api type: 1 + i18n: + zh-CN: 多路复用 API + en-US: Multiplexing API - field: atomicvar_api type: 1 + i18n: + zh-CN: 原子变量 API + en-US: Atomicvar API - field: gcc_version type: 1 + i18n: + zh-CN: GCC 版本 + en-US: GCC Version - field: process_id type: 0 + i18n: + zh-CN: 进程 ID + en-US: Process ID - field: process_supervised type: 1 + i18n: + zh-CN: 进程监控 + en-US: Process Supervised - field: run_id type: 1 + i18n: + zh-CN: 运行 ID + en-US: Run ID - field: tcp_port type: 0 + i18n: + zh-CN: TCP 端口 + en-US: TCP Port - field: server_time_usec type: 0 + i18n: + zh-CN: 基于纪元的系统时间 + en-US: Server Time Usec - field: uptime_in_seconds type: 0 + i18n: + zh-CN: 启动时间(秒) + en-US: Uptime In Seconds - field: uptime_in_days type: 0 + i18n: + zh-CN: 启动时间(天) + en-US: Uptime In Days - field: hz type: 0 + i18n: + zh-CN: 定时器频率 + en-US: HZ - field: configured_hz type: 0 + i18n: + zh-CN: 配置的定时器频率 + en-US: Configured HZ - field: lru_clock type: 0 + i18n: + zh-CN: LRU 时钟 + en-US: LRU Clock - field: executable type: 1 + i18n: + zh-CN: 可执行文件 + en-US: Executable - field: config_file type: 1 + i18n: + zh-CN: 配置文件 + en-US: Config File - field: io_threads_active type: 0 + i18n: + zh-CN: IO 线程活跃数 + en-US: IO Threads Active # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -178,6 +250,9 @@ metrics: - name: clients + i18n: + zh-CN: 客户端 + en-US: Clients # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -185,22 +260,49 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: connected_clients type: 0 + i18n: + zh-CN: 已连接客户端 + en-US: Connected Clients - field: cluster_connections type: 0 + i18n: + zh-CN: 集群连接数 + en-US: Cluster Connections - field: maxclients type: 0 + i18n: + zh-CN: 最大客户端数 + en-US: Maxclients - field: client_recent_max_input_buffer type: 0 + i18n: + zh-CN: 客户端最近最大输入缓冲区 + en-US: Client Recent Max Input Buffer - field: client_recent_max_output_buffer type: 0 + i18n: + zh-CN: 客户端最近最大输出缓冲区 + en-US: Client Recent Max Output Buffer - field: blocked_clients type: 0 + i18n: + zh-CN: 阻塞客户端 + en-US: Blocked Clients - field: tracking_clients type: 0 + i18n: + zh-CN: 跟踪客户端 + en-US: Tracking Clients - field: clients_in_timeout_table type: 0 + i18n: + zh-CN: 超时表中的客户端 + en-US: Clients In Timeout Table # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -218,6 +320,9 @@ metrics: pattern: ^_^pattern^_^ - name: memory + i18n: + zh-CN: 内存 + en-US: Memory # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 2 @@ -225,97 +330,223 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: used_memory type: 0 + i18n: + zh-CN: 已使用内存 + en-US: Used Memory - field: used_memory_human type: 0 + i18n: + zh-CN: 已使用内存 (人类可读) + en-US: Used Memory Human unit: MB - field: used_memory_rss type: 0 + i18n: + zh-CN: 已使用内存 RSS + en-US: Used Memory RSS - field: used_memory_rss_human type: 0 + i18n: + zh-CN: 已使用内存 RSS (人类可读) + en-US: Used Memory RSS Human unit: MB - field: used_memory_peak type: 0 + i18n: + zh-CN: 内存使用峰值 + en-US: Used Memory Peak - field: used_memory_peak_human type: 0 + i18n: + zh-CN: 内存使用峰值 (人类可读) + en-US: Used Memory Peak Human unit: MB - field: used_memory_peak_perc type: 0 + i18n: + zh-CN: 内存使用峰值百分比 + en-US: Used Memory Peak Perc unit: '%' - field: used_memory_overhead type: 0 + i18n: + zh-CN: 内存开销 + en-US: Used Memory Overhead - field: used_memory_startup type: 0 + i18n: + zh-CN: 启动时内存使用 + en-US: Used Memory Startup - field: used_memory_dataset type: 0 + i18n: + zh-CN: 数据集内存使用 + en-US: Used Memory Dataset - field: used_memory_dataset_perc type: 0 + i18n: + zh-CN: 数据集内存使用百分比 + en-US: Used Memory Dataset Perc unit: '%' - field: allocator_allocated type: 0 + i18n: + zh-CN: 分配器已分配内存 + en-US: Allocator Allocated - field: allocator_active type: 0 + i18n: + zh-CN: 分配器活跃内存 + en-US: Allocator Active - field: allocator_resident type: 0 + i18n: + zh-CN: 分配器驻留内存 + en-US: Allocator Resident - field: total_system_memory type: 0 + i18n: + zh-CN: 系统总内存 + en-US: Total System Memory - field: total_system_memory_human type: 0 + i18n: + zh-CN: 系统总内存 (人类可读) + en-US: Total System Memory Human unit: GB - field: used_memory_lua type: 0 + i18n: + zh-CN: Lua 脚本内存使用 + en-US: Used Memory Lua - field: used_memory_lua_human type: 0 + i18n: + zh-CN: Lua 脚本内存使用 (人类可读) + en-US: Used Memory Lua Human unit: KB - field: used_memory_scripts type: 0 + i18n: + zh-CN: 脚本内存使用 + en-US: Used Memory Scripts - field: used_memory_scripts_human type: 0 + i18n: + zh-CN: 脚本内存使用 (人类可读) + en-US: Used Memory Scripts Human unit: KB - field: number_of_cached_scripts type: 0 + i18n: + zh-CN: 缓存脚本数 + en-US: Number Of Cached Scripts - field: maxmemory type: 0 + i18n: + zh-CN: 最大内存 + en-US: Maxmemory - field: maxmemory_human type: 0 + i18n: + zh-CN: 最大内存 (人类可读) + en-US: Maxmemory Human unit: MB - field: maxmemory_policy type: 1 + i18n: + zh-CN: 最大内存策略 + en-US: Maxmemory Policy - field: allocator_frag_ratio type: 0 + i18n: + zh-CN: 分配器碎片率 + en-US: Allocator Frag Ratio - field: allocator_frag_bytes type: 0 + i18n: + zh-CN: 分配器碎片字节 + en-US: Allocator Frag Bytes - field: allocator_rss_ratio type: 0 + i18n: + zh-CN: 分配器驻留内存比率 + en-US: Allocator Rss Ratio - field: allocator_rss_bytes type: 0 + i18n: + zh-CN: 分配器驻留内存字节 + en-US: Allocator Rss Bytes - field: rss_overhead_ratio type: 0 + i18n: + zh-CN: RSS 开销比率 + en-US: Rss Overhead Ratio - field: rss_overhead_bytes type: 0 + i18n: + zh-CN: RSS 开销字节 + en-US: Rss Overhead Bytes - field: mem_fragmentation_ratio type: 0 + i18n: + zh-CN: 内存碎片率 + en-US: Mem Fragmentation Ratio - field: mem_fragmentation_bytes type: 0 + i18n: + zh-CN: 内存碎片字节 + en-US: Mem Fragmentation Bytes - field: mem_not_counted_for_evict type: 0 + i18n: + zh-CN: 不计入驱逐的内存 + en-US: Mem Not Counted For Evict - field: mem_replication_backlog type: 0 + i18n: + zh-CN: 复制积压内存 + en-US: Mem Replication Backlog - field: mem_clients_slaves type: 0 + i18n: + zh-CN: 从节点客户端数 + en-US: Mem Clients Slaves - field: mem_clients_normal type: 0 + i18n: + zh-CN: 普通客户端数 + en-US: Mem Clients Normal - field: mem_aof_buffer type: 0 + i18n: + zh-CN: AOF 缓冲区内存 + en-US: Mem Aof Buffer - field: mem_allocator type: 1 + i18n: + zh-CN: 内存分配器 + en-US: Mem Allocator - field: active_defrag_running type: 0 + i18n: + zh-CN: 活跃碎片整理运行中 + en-US: Active Defrag Running - field: lazyfree_pending_objects type: 0 + i18n: + zh-CN: 懒惰释放待处理对象 + en-US: Lazyfree Pending Objects - field: lazyfreed_objects type: 0 + i18n: + zh-CN: 懒惰释放对象 + en-US: Lazyfreed Objects # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -333,6 +564,9 @@ metrics: pattern: ^_^pattern^_^ - name: persistence + i18n: + zh-CN: 持久化 + en-US: Persistence # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 3 @@ -340,52 +574,124 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: loading type: 0 + i18n: + zh-CN: 加载中 + en-US: Loading - field: current_cow_size type: 0 + i18n: + zh-CN: 当前 COW 大小 + en-US: Current Cow Size - field: current_cow_size_age type: 0 + i18n: + zh-CN: 当前 COW 大小年龄 + en-US: Current Cow Size Age - field: current_fork_perc type: 0 + i18n: + zh-CN: 当前 Fork 百分比 + en-US: Current Fork Perc - field: current_save_keys_processed type: 0 + i18n: + zh-CN: 当前保存键处理 + en-US: Current Save Keys Processed - field: current_save_keys_total type: 0 + i18n: + zh-CN: 当前保存键总数 + en-US: Current Save Keys Total - field: rdb_changes_since_last_save type: 0 + i18n: + zh-CN: 上次保存后的更改 + en-US: Rdb Changes Since Last Save - field: rdb_bgsave_in_progress type: 0 + i18n: + zh-CN: RDB 后台保存中 + en-US: Rdb Bgsave In Progress - field: rdb_last_save_time type: 0 + i18n: + zh-CN: RDB 上次保存时间 + en-US: Rdb Last Save Time - field: rdb_last_bgsave_status type: 1 + i18n: + zh-CN: RDB 上次后台保存状态 + en-US: Rdb Last Bgsave Status - field: rdb_last_bgsave_time_sec type: 0 + i18n: + zh-CN: RDB 上次后台保存时间 + en-US: Rdb Last Bgsave Time - field: rdb_current_bgsave_time_sec type: 0 + i18n: + zh-CN: RDB 当前后台保存时间 + en-US: Rdb Current Bgsave Time - field: rdb_last_cow_size type: 0 + i18n: + zh-CN: RDB 上次 COW 大小 + en-US: Rdb Last Cow Size - field: aof_enabled type: 0 + i18n: + zh-CN: AOF 启用 + en-US: Aof Enabled - field: aof_rewrite_in_progress type: 0 + i18n: + zh-CN: AOF 重写中 + en-US: Aof Rewrite In Progress - field: aof_rewrite_scheduled type: 0 + i18n: + zh-CN: AOF 重写周期 + en-US: Aof Rewrite Scheduled - field: aof_last_rewrite_time_sec type: 0 + i18n: + zh-CN: AOF 上次重写时间 + en-US: Aof Last Rewrite Time - field: aof_current_rewrite_time_sec type: 0 + i18n: + zh-CN: AOF 当前重写时间 + en-US: Aof Current Rewrite Time - field: aof_last_bgrewrite_status type: 1 + i18n: + zh-CN: AOF 上次后台重写状态 + en-US: Aof Last Bgrewrite Status - field: aof_last_write_status type: 1 + i18n: + zh-CN: AOF 上次写入状态 + en-US: Aof Last Write Status - field: aof_last_cow_size type: 0 + i18n: + zh-CN: AOF 上次 COW 大小 + en-US: Aof Last Cow Size - field: module_fork_in_progress type: 0 + i18n: + zh-CN: 模块 Fork 中 + en-US: Module Fork In Progress - field: module_fork_last_cow_size type: 0 + i18n: + zh-CN: 模块 Fork 上次 COW 大小 + en-US: Module Fork Last Cow Size # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -403,6 +709,9 @@ metrics: pattern: ^_^pattern^_^ - name: stats + i18n: + zh-CN: 统计 + en-US: Stats # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 4 @@ -410,82 +719,199 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: total_connections_received type: 0 + i18n: + zh-CN: 收到总连接数 + en-US: Total Connections Received - field: total_commands_processed type: 0 + i18n: + zh-CN: 处理总命令数 + en-US: Total Commands Processed - field: instantaneous_ops_per_sec type: 0 + i18n: + zh-CN: 每秒操作数 + en-US: Instantaneous Ops Per Sec - field: total_net_input_bytes type: 0 + i18n: + zh-CN: 网络总输入字节数 + en-US: Total Net Input Bytes - field: total_net_output_bytes type: 0 + i18n: + zh-CN: 网络总输出字节数 + en-US: Total Net Output Bytes - field: instantaneous_input_kbps type: 0 + i18n: + zh-CN: 瞬时的每秒输入 KB + en-US: Instantaneous Input KB - field: instantaneous_output_kbps type: 0 + i18n: + zh-CN: 瞬时的每秒输出 KB + en-US: Instantaneous Output KB - field: rejected_connections type: 0 + i18n: + zh-CN: 拒绝连接数 + en-US: Rejected Connections - field: sync_full type: 0 + i18n: + zh-CN: 同步全量 + en-US: Sync Full - field: sync_partial_ok type: 0 + i18n: + zh-CN: 同步部分成功 + en-US: Sync Partial Ok - field: sync_partial_err type: 0 + i18n: + zh-CN: 同步部分失败 + en-US: Sync Partial Err - field: expired_keys type: 0 + i18n: + zh-CN: 过期键 + en-US: Expired Keys - field: expired_stale_perc type: 0 + i18n: + zh-CN: 过期陈旧百分比 + en-US: Expired Stale Perc - field: expired_time_cap_reached_count type: 0 + i18n: + zh-CN: 达到过期时间上限计数 + en-US: Expired Time Cap Reached Count - field: expire_cycle_cpu_milliseconds type: 0 + i18n: + zh-CN: 过期周期 CPU 毫秒 + en-US: Expire Cycle CPU Milliseconds - field: evicted_keys type: 0 + i18n: + zh-CN: 驱逐键 + en-US: Evicted Keys - field: keyspace_hits type: 0 + i18n: + zh-CN: 命中键空间 + en-US: Keyspace Hits - field: keyspace_misses type: 0 + i18n: + zh-CN: 未命中键空间 + en-US: Keyspace Misses - field: pubsub_channels type: 0 + i18n: + zh-CN: 发布订阅频道 + en-US: Pubsub Channels - field: pubsub_patterns type: 0 + i18n: + zh-CN: 发布订阅模式 + en-US: Pubsub Patterns - field: latest_fork_usec type: 0 + i18n: + zh-CN: 最新 Fork 微秒 + en-US: Latest Fork Usec - field: total_forks type: 0 + i18n: + zh-CN: 总 Fork 数 + en-US: Total Forks - field: migrate_cached_sockets type: 0 + i18n: + zh-CN: 迁移缓存套接字 + en-US: Migrate Cached Sockets - field: slave_expires_tracked_keys type: 0 + i18n: + zh-CN: 从节点过期跟踪键 + en-US: Slave Expires Tracked Keys - field: active_defrag_hits type: 0 + i18n: + zh-CN: 活跃碎片整理命中 + en-US: Active Defrag Hits - field: active_defrag_misses type: 0 + i18n: + zh-CN: 活跃碎片整理未命中 + en-US: Active Defrag Misses - field: active_defrag_key_hits type: 0 + i18n: + zh-CN: 活跃碎片整理键命中 + en-US: Active Defrag Key Hits - field: active_defrag_key_misses type: 0 + i18n: + zh-CN: 活跃碎片整理键未命中 + en-US: Active Defrag Key Misses - field: tracking_total_keys type: 0 + i18n: + zh-CN: 跟踪键总数 + en-US: Tracking Total Keys - field: tracking_total_items type: 0 + i18n: + zh-CN: 跟踪项总数 + en-US: Tracking Total Items - field: tracking_total_prefixes type: 0 + i18n: + zh-CN: 跟踪前缀总数 + en-US: Tracking Total Prefixes - field: unexpected_error_replies type: 0 + i18n: + zh-CN: 意外错误回复 + en-US: Unexpected Error Replies - field: total_error_replies type: 0 + i18n: + zh-CN: 总错误回复 + en-US: Total Error Replies - field: dump_payload_sanitizations type: 0 + i18n: + zh-CN: 转储有效负载深度完整性验证的总数 + en-US: Dump Payload Sanitizations - field: total_reads_processed type: 0 + i18n: + zh-CN: 总读取处理 + en-US: Total Reads Processed - field: total_writes_processed type: 0 + i18n: + zh-CN: 总写入处理 + en-US: Total Writes Processed - field: io_threaded_reads_processed type: 0 + i18n: + zh-CN: IO 线程读取处理 + en-US: Io Threaded Reads Processed - field: io_threaded_writes_processed type: 0 + i18n: + zh-CN: IO 线程写入处理 + en-US: Io Threaded Writes Processed # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -503,6 +929,9 @@ metrics: pattern: ^_^pattern^_^ - name: replication + i18n: + zh-CN: 副本 + en-US: Replication # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 5 @@ -510,28 +939,64 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: role type: 1 + i18n: + zh-CN: 角色 + en-US: Role - field: connected_slaves type: 0 + i18n: + zh-CN: 已连接从节点 + en-US: Connected Slaves - field: master_failover_state type: 1 + i18n: + zh-CN: 主节点故障转移状态 + en-US: Master Failover State - field: master_replid type: 1 + i18n: + zh-CN: 主节点复制 ID + en-US: Master Replid - field: master_replid2 type: 0 + i18n: + zh-CN: 主节点复制 ID2 + en-US: Master Replid2 - field: master_repl_offset type: 0 + i18n: + zh-CN: 主节点复制偏移量 + en-US: Master Repl Offset - field: second_repl_offset type: 0 + i18n: + zh-CN: 第二复制偏移量 + en-US: Second Repl Offset - field: repl_backlog_active type: 0 + i18n: + zh-CN: 复制积压活跃 + en-US: Repl Backlog Active - field: repl_backlog_size type: 0 + i18n: + zh-CN: 复制积压大小 + en-US: Repl Backlog Size - field: repl_backlog_first_byte_offset type: 0 + i18n: + zh-CN: 复制积压第一个字节偏移量 + en-US: Repl Backlog First Byte Offset - field: repl_backlog_histlen type: 0 + i18n: + zh-CN: 复制积压历史长度 + en-US: Repl Backlog Histlen # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -549,6 +1014,9 @@ metrics: pattern: ^_^pattern^_^ - name: cpu + i18n: + zh-CN: CPU + en-US: CPU # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 6 @@ -556,18 +1024,39 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: used_cpu_sys type: 0 + i18n: + zh-CN: 系统已使用 CPU + en-US: Sys CPU Used - field: used_cpu_user type: 0 + i18n: + zh-CN: 用户已使用 CPU + en-US: User CPU Used - field: used_cpu_sys_children type: 0 + i18n: + zh-CN: Sys 子进程已使用 CPU + en-US: Sys Children CPU Used - field: used_cpu_user_children type: 0 + i18n: + zh-CN: 用户子进程已使用 CPU + en-US: User Children CPU Used - field: used_cpu_sys_main_thread type: 0 + i18n: + zh-CN: 系统主线程已使用 CPU + en-US: Sys Main Thread CPU Used - field: used_cpu_user_main_thread type: 0 + i18n: + zh-CN: 用户主线程已使用 CPU + en-US: User Main Thread CPU Used # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -585,6 +1074,9 @@ metrics: pattern: ^_^pattern^_^ - name: errorstats + i18n: + zh-CN: 错误统计 + en-US: Error Stats # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 8 @@ -592,10 +1084,19 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: errorstat_ERR type: 1 + i18n: + zh-CN: 错误统计 ERR + en-US: Error Stats ERR - field: errorstat_MISCONF type: 1 + i18n: + zh-CN: 错误统计 MISCONF + en-US: Error Stats MISCONF # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -613,6 +1114,9 @@ metrics: pattern: ^_^pattern^_^ - name: cluster + i18n: + zh-CN: 集群 + en-US: Cluster # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 9 @@ -620,40 +1124,94 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: cluster_enabled type: 0 + i18n: + zh-CN: 集群启用 + en-US: Cluster Enabled - field: cluster_state type: 1 + i18n: + zh-CN: 集群状态 + en-US: Cluster State - field: cluster_slots_assigned type: 0 + i18n: + zh-CN: 集群分配槽 + en-US: Cluster Slots Assigned - field: cluster_slots_ok type: 0 + i18n: + zh-CN: 集群槽正常 + en-US: Cluster Slots Ok - field: cluster_slots_pfail type: 0 + i18n: + zh-CN: 集群槽部分失败 + en-US: Cluster Slots Pfail - field: cluster_slots_fail type: 0 + i18n: + zh-CN: 集群槽失败 + en-US: Cluster Slots Fail - field: cluster_known_nodes type: 0 + i18n: + zh-CN: 集群已知节点 + en-US: Cluster Known Nodes - field: cluster_size type: 0 + i18n: + zh-CN: 集群大小 + en-US: Cluster Size - field: cluster_current_epoch type: 0 + i18n: + zh-CN: 集群当前 epoch + en-US: Cluster Current Epoch - field: cluster_my_epoch type: 0 + i18n: + zh-CN: 集群我的 epoch + en-US: Cluster My Epoch - field: cluster_stats_messages_ping_sent type: 0 + i18n: + zh-CN: 集群统计消息 ping 发送 + en-US: Cluster Stats Messages Ping Sent - field: cluster_stats_messages_pong_sent type: 0 + i18n: + zh-CN: 集群统计消息 pong 发送 + en-US: Cluster Stats Messages Pong Sent - field: cluster_stats_messages_sent type: 0 + i18n: + zh-CN: 集群统计消息发送 + en-US: Cluster Stats Messages Sent - field: cluster_stats_messages_ping_received type: 0 + i18n: + zh-CN: 集群统计消息 ping 接收 + en-US: Cluster Stats Messages Ping Received - field: cluster_stats_messages_pong_received type: 0 + i18n: + zh-CN: 集群统计消息 pong 接收 + en-US: Cluster Stats Messages Pong Received - field: cluster_stats_messages_meet_received type: 0 + i18n: + zh-CN: 集群统计消息 meet 接收 + en-US: Cluster Stats Messages Meet Received - field: cluster_stats_messages_received type: 0 + i18n: + zh-CN: 集群统计消息接收 + en-US: Cluster Stats Messages Received # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -671,6 +1229,9 @@ metrics: pattern: ^_^pattern^_^ - name: commandstats + i18n: + zh-CN: 命令统计 + en-US: Command Stats # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 9 @@ -678,26 +1239,59 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: cmdstat_set type: 1 + i18n: + zh-CN: SET 命令统计 + en-US: SET COMMAND STAT - field: cmdstat_get type: 1 + i18n: + zh-CN: GET 命令统计 + en-US: GET COMMAND STAT - field: cmdstat_setnx type: 1 + i18n: + zh-CN: SETNX 命令统计 + en-US: SETNX COMMAND STAT - field: cmdstat_hset type: 1 + i18n: + zh-CN: HSET 命令统计 + en-US: HSET COMMAND STAT - field: cmdstat_hget type: 1 + i18n: + zh-CN: HGET 命令统计 + en-US: HGET COMMAND STAT - field: cmdstat_lpush type: 1 + i18n: + zh-CN: LPUSH 命令统计 + en-US: LPUSH COMMAND STAT - field: cmdstat_rpush type: 1 + i18n: + zh-CN: RPUSH 命令统计 + en-US: RPUSH COMMAND STAT - field: cmdstat_lpop type: 1 + i18n: + zh-CN: LPOP 命令统计 + en-US: LPOP COMMAND STAT - field: cmdstat_rpop type: 1 + i18n: + zh-CN: RPOP 命令统计 + en-US: RPOP COMMAND STAT - field: cmdstat_llen type: 1 + i18n: + zh-CN: LLEN 命令统计 + en-US: LLEN COMMAND STAT # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -716,6 +1310,9 @@ metrics: - name: keyspace + i18n: + zh-CN: 键空间 + en-US: Keyspace # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 9 @@ -723,6 +1320,9 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: db0 type: 1 - field: db1 diff --git a/manager/src/main/resources/define/app-redis_sentinel.yml b/manager/src/main/resources/define/app-redis_sentinel.yml index 02035ca2917..740e3ee8f44 100644 --- a/manager/src/main/resources/define/app-redis_sentinel.yml +++ b/manager/src/main/resources/define/app-redis_sentinel.yml @@ -106,6 +106,9 @@ params: hide: true metrics: - name: server + i18n: + zh-CN: 服务器 + en-US: Server # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -113,52 +116,124 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: identity type: 1 + i18n: + zh-CN: 标识 + en-US: Identity - field: redis_version type: 1 + i18n: + zh-CN: Redis 版本 + en-US: Redis Version - field: redis_git_sha1 type: 0 + i18n: + zh-CN: Redis Git SHA1 + en-US: Redis Git SHA1 - field: redis_git_dirty type: 0 + i18n: + zh-CN: Redis Git Dirty + en-US: Redis Git Dirty - field: redis_build_id type: 1 + i18n: + zh-CN: Redis Build ID + en-US: Redis Build ID - field: redis_mode type: 1 + i18n: + zh-CN: Redis 模式 + en-US: Redis Mode - field: os type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System - field: arch_bits type: 0 + i18n: + zh-CN: 架构位数 + en-US: Architecture Bits - field: multiplexing_api type: 1 + i18n: + zh-CN: 多路复用 API + en-US: Multiplexing API - field: atomicvar_api type: 1 + i18n: + zh-CN: 原子变量 API + en-US: Atomicvar API - field: gcc_version type: 1 + i18n: + zh-CN: GCC 版本 + en-US: GCC Version - field: process_id type: 0 + i18n: + zh-CN: 进程 ID + en-US: Process ID - field: process_supervised type: 1 + i18n: + zh-CN: 进程监控 + en-US: Process Supervised - field: run_id type: 1 + i18n: + zh-CN: 运行 ID + en-US: Run ID - field: tcp_port type: 0 + i18n: + zh-CN: TCP 端口 + en-US: TCP Port - field: server_time_usec type: 0 + i18n: + zh-CN: 基于纪元的系统时间 + en-US: Server Time Usec - field: uptime_in_seconds type: 0 + i18n: + zh-CN: 运行时间(秒) + en-US: Uptime In Seconds - field: uptime_in_days type: 0 + i18n: + zh-CN: 运行时间(天) + en-US: Uptime In Days - field: hz type: 0 + i18n: + zh-CN: 定时器频率 + en-US: Hz - field: configured_hz type: 0 + i18n: + zh-CN: 配置定时器频率 + en-US: Configured Hz - field: lru_clock type: 0 + i18n: + zh-CN: LRU 时钟 + en-US: LRU Clock - field: executable type: 1 + i18n: + zh-CN: 可执行文件 + en-US: Executable - field: config_file type: 1 + i18n: + zh-CN: 配置文件 + en-US: Config File - field: io_threads_active type: 0 + i18n: + zh-CN: 活动 IO 线程 + en-US: IO Threads Active # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -176,6 +251,9 @@ metrics: pattern: ^_^pattern^_^ - name: clients + i18n: + zh-CN: 客户端 + en-US: Clients # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 1 @@ -183,20 +261,44 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: connected_clients type: 0 + i18n: + zh-CN: 已连接客户端 + en-US: Connected Clients - field: cluster_connections type: 0 + i18n: + zh-CN: 集群连接 + en-US: Cluster Connections - field: maxclients type: 0 + i18n: + zh-CN: 最大客户端数 + en-US: Maxclients - field: client_recent_max_input_buffer type: 0 + i18n: + zh-CN: 客户端最近最大输入缓冲区 + en-US: Client Recent Max Input Buffer - field: client_recent_max_output_buffer type: 0 + i18n: + zh-CN: 客户端最近最大输出缓冲区 + en-US: Client Recent Max Output Buffer - field: blocked_clients type: 0 + i18n: + zh-CN: 阻塞客户端 + en-US: Blocked Clients - field: tracking_clients type: 0 + i18n: + zh-CN: 跟踪客户端 + en-US: Tracking Clients - field: clients_in_timeout_table type: 0 + i18n: + zh-CN: 超时表中的客户端 + en-US: Clients In Timeout Table # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -214,6 +316,9 @@ metrics: pattern: ^_^pattern^_^ - name: stats + i18n: + zh-CN: 统计 + en-US: Stats # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 2 @@ -221,80 +326,194 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: total_connections_received type: 0 + i18n: + zh-CN: 收到总连接数 + en-US: Total Connections Received - field: total_commands_processed type: 0 + i18n: + zh-CN: 处理总命令数 + en-US: Total Commands Processed - field: instantaneous_ops_per_sec type: 0 + i18n: + zh-CN: 瞬时每秒操作数 + en-US: Instantaneous Ops Per Sec - field: total_net_input_bytes type: 0 + i18n: + zh-CN: 总网络输入字节 + en-US: Total Net Input Bytes - field: total_net_output_bytes type: 0 + i18n: + zh-CN: 总网络输出字节 + en-US: Total Net Output Bytes - field: instantaneous_input_kbps type: 0 + i18n: + zh-CN: 瞬时的输入 kbps + en-US: Instantaneous Input Kbps - field: instantaneous_output_kbps type: 0 + i18n: + zh-CN: 瞬时输出 kbps + en-US: Instantaneous Output Kbps - field: rejected_connections type: 0 + i18n: + zh-CN: 拒绝连接数 + en-US: Rejected Connections - field: sync_full type: 0 + i18n: + zh-CN: 全量同步 + en-US: Sync Full - field: sync_partial_ok type: 0 + i18n: + zh-CN: 部分同步成功 + en-US: Sync Partial Ok - field: sync_partial_err type: 0 + i18n: + zh-CN: 部分同步失败 + en-US: Sync Partial Err - field: expired_keys type: 0 + i18n: + zh-CN: 过期键 + en-US: Expired Keys - field: expired_stale_perc type: 0 + i18n: + zh-CN: 过期key占比 + en-US: Expired Stale Perc - field: expired_time_cap_reached_count type: 0 + i18n: + zh-CN: 达到过期时间上限计数 + en-US: Expired Time Cap Reached Count - field: expire_cycle_cpu_milliseconds type: 0 + i18n: + zh-CN: 过期周期 CPU 毫秒 + en-US: Expire Cycle CPU Milliseconds - field: evicted_keys type: 0 + i18n: + zh-CN: 逐出键 + en-US: Evicted Keys - field: keyspace_hits type: 0 + i18n: + zh-CN: 命中键 + en-US: Keyspace Hits - field: keyspace_misses type: 0 + i18n: + zh-CN: 未命中键 + en-US: Keyspace Misses - field: pubsub_channels type: 0 + i18n: + zh-CN: 发布订阅频道 + en-US: Pubsub Channels - field: pubsub_patterns type: 0 + i18n: + zh-CN: 发布订阅模式 + en-US: Pubsub Patterns - field: latest_fork_usec type: 0 + i18n: + zh-CN: 最新 fork 毫秒 + en-US: Latest Fork Usec - field: total_forks type: 0 + i18n: + zh-CN: 总 fork 数 + en-US: Total Forks - field: migrate_cached_sockets type: 0 + i18n: + zh-CN: 迁移缓存套接字 + en-US: Migrate Cached Sockets - field: slave_expires_tracked_keys type: 0 + i18n: + zh-CN: 从节点过期跟踪键 + en-US: Slave Expires Tracked Keys - field: active_defrag_hits type: 0 + i18n: + zh-CN: 活跃碎片整理命中 + en-US: Active Defrag Hits - field: active_defrag_misses type: 0 + i18n: + zh-CN: 活跃碎片整理未命中 + en-US: Active Defrag Misses - field: active_defrag_key_hits type: 0 + i18n: + zh-CN: 活跃碎片整理键命中 + en-US: Active Defrag Key Hits - field: active_defrag_key_misses type: 0 + i18n: + zh-CN: 活跃碎片整理键未命中 + en-US: Active Defrag Key Misses - field: tracking_total_keys type: 0 + i18n: + zh-CN: 跟踪键总数 + en-US: Tracking Total Keys - field: tracking_total_items type: 0 + i18n: + zh-CN: 跟踪项总数 + en-US: Tracking Total Items - field: tracking_total_prefixes type: 0 + i18n: + zh-CN: 跟踪前缀总数 + en-US: Tracking Total Prefixes - field: unexpected_error_replies type: 0 + i18n: + zh-CN: 意外错误回复 + en-US: Unexpected Error Replies - field: total_error_replies type: 0 + i18n: + zh-CN: 总错误回复 + en-US: Total Error Replies - field: dump_payload_sanitizations type: 0 + i18n: + zh-CN: 转储有效负载深度完整性验证的总数 + en-US: Dump Payload Sanitizations - field: total_reads_processed type: 0 + i18n: + zh-CN: 总读取处理 + en-US: Total Reads Processed - field: total_writes_processed type: 0 + i18n: + zh-CN: 总写入处理 + en-US: Total Writes Processed - field: io_threaded_reads_processed type: 0 + i18n: + zh-CN: IO 线程读取处理 + en-US: Io Threaded Reads Processed - field: io_threaded_writes_processed type: 0 + i18n: + zh-CN: IO 线程写入处理 + en-US: Io Threaded Writes Processed # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -312,6 +531,9 @@ metrics: pattern: ^_^pattern^_^ - name: cpu + i18n: + zh-CN: CPU + en-US: CPU # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 3 @@ -319,16 +541,34 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: used_cpu_sys type: 0 + i18n: + zh-CN: 系统已使用 CPU + en-US: Sys CPU Used - field: used_cpu_user type: 0 + i18n: + zh-CN: 用户已使用 CPU + en-US: User CPU Used - field: used_cpu_sys_children type: 0 + i18n: + zh-CN: Sys 子进程已使用 CPU + en-US: Sys Children CPU Used - field: used_cpu_user_children type: 0 + i18n: + zh-CN: 用户子进程已使用 CPU + en-US: User Children CPU Used - field: used_cpu_sys_main_thread type: 0 + i18n: + zh-CN: 系统主线程已使用 CPU + en-US: Sys Main Thread CPU Used - field: used_cpu_user_main_thread type: 0 + i18n: + zh-CN: 用户主线程已使用 CPU + en-US: User Main Thread CPU Used # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis @@ -346,6 +586,9 @@ metrics: pattern: ^_^pattern^_^ - name: sentinel + i18n: + zh-CN: 哨兵 + en-US: Sentinel # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 4 @@ -353,14 +596,29 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: sentinel_masters type: 1 + i18n: + zh-CN: 主节点 + en-US: Masters - field: sentinel_tilt type: 1 + i18n: + zh-CN: 倾斜 + en-US: Tilt - field: sentinel_running_scripts type: 1 + i18n: + zh-CN: 运行脚本 + en-US: Running Scripts - field: sentinel_scripts_queue_length type: 1 + i18n: + zh-CN: 脚本队列长度 + en-US: Scripts Queue Length - field: sentinel_simulate_failure_flags type: 1 + i18n: + zh-CN: 模拟失败标志 + en-US: Simulate Failure Flags # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: redis # the config content when protocol is redis diff --git a/manager/src/main/resources/define/app-rockylinux.yml b/manager/src/main/resources/define/app-rockylinux.yml index e608572e60e..f93737ed7ae 100644 --- a/manager/src/main/resources/define/app-rockylinux.yml +++ b/manager/src/main/resources/define/app-rockylinux.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-shenyu.yml b/manager/src/main/resources/define/app-shenyu.yml index 5d686f2e549..21789e2a903 100644 --- a/manager/src/main/resources/define/app-shenyu.yml +++ b/manager/src/main/resources/define/app-shenyu.yml @@ -51,6 +51,9 @@ params: defaultValue: 6000 metrics: - name: shenyu_request_total + i18n: + zh-CN: ShenYu请求总量 + en-US: ShenYu Request Total priority: 0 fields: - field: value @@ -70,6 +73,9 @@ metrics: parseType: prometheus - name: shenyu_request_throw_created + i18n: + zh-CN: ShenYu请求异常总量 + en-US: ShenYu Request Exception Total priority: 1 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field @@ -90,6 +96,9 @@ metrics: parseType: prometheus - name: process_cpu_seconds_total + i18n: + zh-CN: 进程 CPU 时间总量 (秒) + en-US: Process CPU Time Total priority: 1 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field @@ -111,6 +120,9 @@ metrics: parseType: prometheus - name: process_open_fds + i18n: + zh-CN: 进程打开的文件描述符数量 + en-US: Process Open Fds priority: 1 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field @@ -131,6 +143,9 @@ metrics: parseType: prometheus - name: process_max_fds + i18n: + zh-CN: 进程最大文件描述符数量 + en-US: Process Max Fds priority: 1 fields: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field @@ -151,15 +166,27 @@ metrics: parseType: prometheus - name: jvm_info + i18n: + zh-CN: JVM 信息 + en-US: JVM Info priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: runtime type: 1 + i18n: + zh-CN: 运行时 + en-US: Runtime - field: vendor type: 1 + i18n: + zh-CN: 供应商 + en-US: Vendor - field: version type: 1 + i18n: + zh-CN: 版本 + en-US: Version # Monitoring and collection usage protocol eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # Specific collection configuration when protocol is http protocol @@ -175,12 +202,18 @@ metrics: parseType: prometheus - name: jvm_memory_bytes_used + i18n: + zh-CN: JVM 内存使用字节数 + en-US: JVM Memory Bytes Used priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: area type: 1 label: true + i18n: + zh-CN: 区域 + en-US: Area - field: value type: 0 unit: MB @@ -201,12 +234,18 @@ metrics: parseType: prometheus - name: jvm_memory_pool_bytes_used + i18n: + zh-CN: JVM 内存池使用字节数 + en-US: JVM Memory Pool Bytes Used priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: pool type: 1 label: true + i18n: + zh-CN: 池 + en-US: Pool - field: value type: 0 unit: MB @@ -227,12 +266,18 @@ metrics: parseType: prometheus - name: jvm_memory_pool_bytes_committed + i18n: + zh-CN: JVM 内存池提交字节数 + en-US: JVM Memory Pool Bytes Committed priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: pool type: 1 label: true + i18n: + zh-CN: 池 + en-US: Pool - field: value type: 0 unit: MB @@ -253,12 +298,18 @@ metrics: parseType: prometheus - name: jvm_memory_pool_bytes_max + i18n: + zh-CN: JVM 内存池最大字节数 + en-US: JVM Memory Pool Bytes Max priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: pool type: 1 label: true + i18n: + zh-CN: 池 + en-US: Pool - field: value type: 0 unit: MB @@ -279,14 +330,23 @@ metrics: parseType: prometheus - name: jvm_threads_state + i18n: + zh-CN: JVM 线程状态 + en-US: JVM Threads State priority: 1 fields: # Metric information includes field name, type field type (0-number number, 1-string string), label-whether it is a metric label field, unit: metric unit - field: state type: 1 label: true + i18n: + zh-CN: 状态 + en-US: State - field: count type: 0 + i18n: + zh-CN: 数量 + en-US: Count aliasFields: - state - value diff --git a/manager/src/main/resources/define/app-spring_gateway.yml b/manager/src/main/resources/define/app-spring_gateway.yml index 4c8253e63a9..4d3688ac43d 100644 --- a/manager/src/main/resources/define/app-spring_gateway.yml +++ b/manager/src/main/resources/define/app-spring_gateway.yml @@ -109,15 +109,21 @@ params: metrics: # metrics - available - name: available + i18n: + zh-CN: 可用性 + en-US: Availability # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 # collect metrics content fields: - # field-metric name, type-metric type(0-number,1-string), instance-is instance primary key, unit-metric unit + # field-metric name, type-metric type(0-number,1-string), label-is label primary key, unit-metric unit - field: responseTime type: 0 unit: ms + i18n: + zh-CN: 响应时间 + en-US: Response Time # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # Specific collection configuration when protocol is http protocol @@ -142,21 +148,42 @@ metrics: parseType: default - name: environment + i18n: + zh-CN: 环境 + en-US: Environment priority: 1 fields: # The metric information, including field name, type of the field (0-number, 1-string), whether it is an instance primary key, and the unit of the metric. - field: profile type: 1 + i18n: + zh-CN: 配置文件 + en-US: Profile - field: port type: 0 + i18n: + zh-CN: 端口 + en-US: Port - field: os type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System - field: os_arch type: 1 + i18n: + zh-CN: 操作系统架构 + en-US: Operating System Architecture - field: jdk_vendor type: 1 + i18n: + zh-CN: JDK 供应商 + en-US: JDK Vendor - field: jvm_version type: 1 + i18n: + zh-CN: JVM 版本 + en-US: JVM Version # metric alias list, used to identify metrics in query results aliasFields: - $.activeProfiles[0] @@ -199,11 +226,17 @@ metrics: parseScript: '$' - name: thread_state + i18n: + zh-CN: 线程状态 + en-US: Thread State visible: false priority: 2 fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State protocol: http http: host: ^_^host^_^ @@ -219,13 +252,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "state")].values[*]' - name: threads + i18n: + zh-CN: 线程 + en-US: Threads priority: 3 fields: - field: state type: 1 - instance: true + i18n: + zh-CN: 状态 + en-US: State + label: true - field: size type: 0 + i18n: + zh-CN: 数量 + en-US: Size aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: @@ -246,11 +288,17 @@ metrics: parseScript: '$' - name: space_name + i18n: + zh-CN: 空间名称 + en-US: Space Name visible: false priority: 4 fields: - field: id type: 1 + i18n: + zh-CN: 主键 + en-US: ID protocol: http http: host: ^_^host^_^ @@ -266,13 +314,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "id")].values[*]' - name: memory_used + i18n: + zh-CN: 内存使用 + en-US: Memory Used priority: 5 fields: - field: space type: 1 - instance: true + i18n: + zh-CN: 空间 + en-US: Space + label: true - field: mem_used type: 0 + i18n: + zh-CN: 内存使用 + en-US: Memory Used unit: MB aliasFields: - $.measurements[?(@.statistic == "VALUE")].value @@ -296,10 +353,16 @@ metrics: parseScript: '$' - name: health + i18n: + zh-CN: 健康 + en-US: Health priority: 6 fields: - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status protocol: http http: host: ^_^host^_^ @@ -314,11 +377,17 @@ metrics: parseType: default - name: route_id + i18n: + zh-CN: 路由 ID + en-US: Route ID visible: false priority: 7 fields: - field: name type: 1 + i18n: + zh-CN: 名称 + en-US: Name protocol: http http: host: ^_^host^_^ @@ -334,17 +403,32 @@ metrics: parseScript: '$[*].route_id' - name: route_info + i18n: + zh-CN: 路由信息 + en-US: Route Info priority: 8 fields: - field: route_id type: 1 - instance: true + i18n: + zh-CN: 路由 ID + en-US: Route ID + label: true - field: predicate type: 1 + i18n: + zh-CN: 断言 + en-US: Predicate - field: uri type: 1 + i18n: + zh-CN: URI + en-US: URI - field: order type: 0 + i18n: + zh-CN: 顺序 + en-US: Order aliasFields: - $.predicate - $.uri diff --git a/manager/src/main/resources/define/app-springboot2.yml b/manager/src/main/resources/define/app-springboot2.yml index 03bff8e07c0..a6db6b6cca8 100644 --- a/manager/src/main/resources/define/app-springboot2.yml +++ b/manager/src/main/resources/define/app-springboot2.yml @@ -109,6 +109,9 @@ params: metrics: # metrics - available - name: available + i18n: + zh-CN: 可用性 + en-US: Availability # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -118,6 +121,9 @@ metrics: - field: responseTime type: 0 unit: ms + i18n: + zh-CN: 响应时间 + en-US: Response Time # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http # Specific collection configuration when protocol is http protocol @@ -142,22 +148,43 @@ metrics: parseType: default # metrics - environment - name: environment + i18n: + zh-CN: 环境信息 + en-US: Environment priority: 1 # The specific monitoring metrics in the metric group. fields: # The metric information, including field name, type of the field (0-number, 1-string), whether it is an instance primary key, and the unit of the metric. - field: profile type: 1 + i18n: + zh-CN: 配置文件 + en-US: Profile - field: port type: 0 + i18n: + zh-CN: 端口 + en-US: Port - field: os type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System - field: os_arch type: 1 + i18n: + zh-CN: 操作系统架构 + en-US: Operating System Architecture - field: jdk_vendor type: 1 + i18n: + zh-CN: JDK 厂商 + en-US: JDK Vendor - field: jvm_version type: 1 + i18n: + zh-CN: JVM 版本 + en-US: JVM Version # metric alias list, used to identify metrics in query results aliasFields: - $.activeProfiles @@ -200,6 +227,9 @@ metrics: parseScript: '$' # metrics - thread_state - name: thread_state + i18n: + zh-CN: 线程状态 + en-US: Thread State # Whether to display the metric group in the query result, the default is true visible: false # The specific monitoring metrics in the metric group. @@ -207,6 +237,9 @@ metrics: fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State protocol: http http: # Host: ipv4 ipv6 domain @@ -230,13 +263,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "state")].values[*]' - name: threads + i18n: + zh-CN: 线程 + en-US: Threads priority: 3 fields: - field: state type: 1 + i18n: + zh-CN: 状态 + en-US: State label: true - field: size type: 0 + i18n: + zh-CN: 数量 + en-US: Size aliasFields: - $.measurements[?(@.statistic == "VALUE")].value calculates: @@ -257,11 +299,17 @@ metrics: parseScript: '$' - name: space_name + i18n: + zh-CN: 空间名称 + en-US: Space Name visible: false priority: 4 fields: - field: id type: 1 + i18n: + zh-CN: ID + en-US: ID protocol: http http: host: ^_^host^_^ @@ -277,13 +325,22 @@ metrics: parseScript: '$.availableTags[?(@.tag == "id")].values[*]' - name: memory_used + i18n: + zh-CN: 内存使用 + en-US: Memory Used priority: 5 fields: - field: space type: 1 + i18n: + zh-CN: 空间 + en-US: Space label: true - field: mem_used type: 0 + i18n: + zh-CN: 内存使用 + en-US: Memory Used unit: MB aliasFields: - $.measurements[?(@.statistic == "VALUE")].value @@ -307,10 +364,16 @@ metrics: parseScript: '$' - name: health + i18n: + zh-CN: 健康 + en-US: Health priority: 6 fields: - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status protocol: http http: host: ^_^host^_^ diff --git a/manager/src/main/resources/define/app-ssl_cert.yml b/manager/src/main/resources/define/app-ssl_cert.yml index d48406a6700..9a2694380df 100644 --- a/manager/src/main/resources/define/app-ssl_cert.yml +++ b/manager/src/main/resources/define/app-ssl_cert.yml @@ -56,6 +56,17 @@ params: # default value defaultValue: 443 # field-param field key + - field: verify + # name-param field display i18n name + name: + zh-CN: 校验证书 + en-US: verify + # When the type is boolean, the frontend will display a switch for it. + type: boolean + defaultValue: true + # required-true or false + required: false + # field-param field key - field: uri # name-param field display i18n name name: @@ -140,3 +151,4 @@ metrics: host: ^_^host^_^ port: ^_^port^_^ url: ^_^uri^_^ + ssl: ^_^verify^_^ diff --git a/manager/src/main/resources/define/app-tidb.yml b/manager/src/main/resources/define/app-tidb.yml index b0a58c557a2..2d843bbe65d 100644 --- a/manager/src/main/resources/define/app-tidb.yml +++ b/manager/src/main/resources/define/app-tidb.yml @@ -118,6 +118,9 @@ params: metrics: # metrics - status - name: status + i18n: + zh-CN: 状态 + en-US: Status # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 @@ -126,10 +129,19 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: connections type: 0 + i18n: + zh-CN: 连接数 + en-US: Connections - field: version type: 1 + i18n: + zh-CN: 版本 + en-US: Version - field: git_hash type: 1 + i18n: + zh-CN: Git Hash + en-US: Git Hash # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk protocol: http http: @@ -147,30 +159,66 @@ metrics: parseScript: '$' - name: stores + i18n: + zh-CN: 存储 + en-US: Stores priority: 1 fields: - field: address type: 1 + i18n: + zh-CN: 地址 + en-US: Address - field: version type: 1 + i18n: + zh-CN: 版本 + en-US: Version - field: status_address type: 1 + i18n: + zh-CN: 状态地址 + en-US: Status Address - field: deploy_path type: 1 + i18n: + zh-CN: 部署路径 + en-US: Deploy Path - field: state_name type: 1 + i18n: + zh-CN: 状态名称 + en-US: State Name - field: capacity type: 1 + i18n: + zh-CN: 容量 + en-US: Capacity - field: available type: 1 + i18n: + zh-CN: 可用 + en-US: Available - field: used_size type: 1 + i18n: + zh-CN: 已用 + en-US: Used - field: start_ts type: 1 + i18n: + zh-CN: 启动时间 + en-US: Start Time - field: last_heartbeat_ts type: 1 + i18n: + zh-CN: 上次心跳时间 + en-US: Last Heartbeat Time - field: uptime type: 1 + i18n: + zh-CN: 启动时长 + en-US: Uptime aliasFields: - $.store.address - $.store.version @@ -206,6 +254,9 @@ metrics: parseScript: '$.stores.*' - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 2 @@ -214,13 +265,25 @@ metrics: # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field - field: version type: 1 + i18n: + zh-CN: 版本 + en-US: Version label: true - field: port type: 1 + i18n: + zh-CN: 端口 + en-US: Port - field: datadir type: 1 + i18n: + zh-CN: 数据目录 + en-US: Data Directory - field: max_connections type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections # (optional)metrics field alias name, it is used as an alias field to map and convert the collected data and metrics field aliasFields: - version diff --git a/manager/src/main/resources/define/app-ubuntu.yml b/manager/src/main/resources/define/app-ubuntu.yml index 3a5d3e0fbd7..9bd626928fe 100644 --- a/manager/src/main/resources/define/app-ubuntu.yml +++ b/manager/src/main/resources/define/app-ubuntu.yml @@ -177,7 +177,7 @@ metrics: zh-CN: 型号 en-US: Info - field: cores - type: 0 + type: 1 i18n: zh-CN: 核数 en-US: Cores @@ -238,7 +238,7 @@ metrics: priority: 2 fields: - field: total - type: 0 + type: 1 unit: Mb i18n: zh-CN: 总内存容量 @@ -305,12 +305,12 @@ metrics: priority: 3 fields: - field: disk_num - type: 0 + type: 1 i18n: zh-CN: 磁盘总数 en-US: Disk Num - field: partition_num - type: 0 + type: 1 i18n: zh-CN: 分区总数 en-US: Partition Num diff --git a/manager/src/main/resources/define/app-valkey.yml b/manager/src/main/resources/define/app-valkey.yml new file mode 100644 index 00000000000..a7cdd3c5b79 --- /dev/null +++ b/manager/src/main/resources/define/app-valkey.yml @@ -0,0 +1,1270 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: cache +# The monitoring type eg: linux windows tomcat mysql aws... +app: valkey +# The monitoring i18n name +name: + zh-CN: Valkey数据库 + en-US: Valkey +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 对 Valkey 数据库的通用性能指标进行采集监控(server、clients、memory、persistence、stats、replication、cpu、errorstats、cluster、commandstats),支持版本为 Valkey 7.0+。
您可以点击“新建 Valkey 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat monitors Valkey database of general performance metrics such as memory, persistence, replication and so on. The versions we support is Valkey 7.0+.
You could click the "New Valkey" button and proceed with the configuration or import an existing setup through the "More Actions" menu. + zh-TW: HertzBeat 對 Valkey 數據庫的通用性能指標進行采集監控(server、clients、memory、persistence、stats、replication、cpu、errorstats、cluster、commandstats),支持版本爲 Valkey 7.0+。
您可以點擊“新建 Valkey 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/valkey + en-US: https://hertzbeat.apache.org/docs/help/valkey +# Input params define for monitoring(render web ui by +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 6379 + # field-param field key + - field: timeout + # name-param field display i18n name + name: + zh-CN: 超时时间 + en-US: Timeout + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,100000]' + # required-true or false + required: true + # default value + defaultValue: 3000 + # field-param field key + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + limit: 50 + required: false + # field-param field key + - field: password + name: + zh-CN: 密码 + en-US: Password + type: password + required: false + +# collect metrics config list +metrics: + # metrics - server + - name: server + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + i18n: + zh-CN: 服务器信息 + en-US: Server + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: identity + type: 1 + i18n: + zh-CN: ID + en-US: Identity + - field: valkey_version + type: 1 + i18n: + zh-CN: Valkey服务版本 + en-US: Valkey Version + - field: valkey_git_sha1 + type: 0 + i18n: + zh-CN: Git SHA1 + en-US: Git SHA1 + - field: valkey_git_dirty + type: 0 + i18n: + zh-CN: Valkey服务器代码是否有改动 + en-US: Git Dirty Flag + - field: valkey_build_id + type: 1 + i18n: + zh-CN: Build Id + en-US: Build Id + - field: valkey_mode + type: 1 + i18n: + zh-CN: 运行模式 + en-US: Server Mode + - field: os + type: 1 + i18n: + zh-CN: 操作系统 + en-US: Operating System + - field: arch_bits + type: 0 + i18n: + zh-CN: 架构 + en-US: Architecture Bits + - field: multiplexing_api + type: 1 + i18n: + zh-CN: IO多路复用器API + en-US: Multiplexing API + - field: atomicvar_api + type: 1 + i18n: + zh-CN: 原子操作处理API + en-US: Atomicvar API + - field: gcc_version + type: 1 + i18n: + zh-CN: GCC版本 + en-US: GCC Version + - field: process_id + type: 0 + i18n: + zh-CN: 进程ID + en-US: PID + - field: process_supervised + type: 1 + i18n: + zh-CN: 进程监督机制管理Valkey的方式 + en-US: Process Supervised + - field: run_id + type: 1 + i18n: + zh-CN: Run ID + en-US: Run ID + - field: tcp_port + type: 0 + i18n: + zh-CN: TCP/IP监听端口 + en-US: TCP Port + - field: server_time_usec + type: 0 + i18n: + zh-CN: 服务器时间戳 + en-US: Server Time Usec + - field: uptime_in_seconds + type: 0 + i18n: + zh-CN: 运行时长(秒) + en-US: Uptime(Seconds) + - field: uptime_in_days + type: 0 + i18n: + zh-CN: 运行时长(天) + en-US: Uptime(Days) + - field: hz + type: 0 + i18n: + zh-CN: 事件循环频率 + en-US: hz + - field: configured_hz + type: 0 + i18n: + zh-CN: 配置的事件循环频率 + en-US: Configured hz + - field: lru_clock + type: 0 + i18n: + zh-CN: LRU时钟 + en-US: LRU Clock + - field: executable + type: 1 + i18n: + zh-CN: 服务器执行路径 + en-US: Server's Executable Path + - field: config_file + type: 1 + i18n: + zh-CN: 配置文件路径 + en-US: Config File Path + - field: io_threads_active + type: 0 + i18n: + zh-CN: 活跃IO线程数 + en-US: Active IO Threads + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + # metrics - clients + - name: clients + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 1 + i18n: + zh-CN: 客户端信息 + en-US: Clients + # collect metrics content + fields: + - field: connected_clients + type: 0 + i18n: + zh-CN: 已连接客户端数量 + en-US: Connected Clients + - field: cluster_connections + type: 0 + i18n: + zh-CN: 集群客户端连接数 + en-US: Cluster Connections + - field: maxclients + type: 0 + i18n: + zh-CN: 最大客户端连接数 + en-US: Max Clients + - field: client_recent_max_input_buffer + type: 0 + i18n: + zh-CN: 最近客户端的最大输入缓冲区大小 + en-US: Client Recent Max Input Buffer + - field: client_recent_max_output_buffer + type: 0 + i18n: + zh-CN: 最近客户端的最大输出缓冲区大小 + en-US: Client Recent Max Output Buffer + - field: blocked_clients + type: 0 + i18n: + zh-CN: 阻塞客户端数量 + en-US: Blocked Clients + - field: tracking_clients + type: 0 + i18n: + zh-CN: 正在追踪数据的客户端数量 + en-US: Tracking Clients + - field: clients_in_timeout_table + type: 0 + i18n: + zh-CN: 超时队列中的客户端数量 + en-US: Clients In Timeout Table + protocol: redis + redis: + host: ^_^host^_^ + port: ^_^port^_^ + username: ^_^username^_^ + password: ^_^password^_^ + timeout: ^_^timeout^_^ + # metrics - memory + - name: memory + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 2 + i18n: + zh-CN: 内存信息 + en-US: Memory + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: used_memory + type: 0 + i18n: + zh-CN: 已使用内存(字节) + en-US: Used Memory + - field: used_memory_human + type: 0 + unit: MB + i18n: + zh-CN: 已使用内存 + en-US: Used Memory Human + - field: used_memory_rss + type: 0 + i18n: + zh-CN: 已使用物理内存(字节) + en-US: Used Memory RSS + - field: used_memory_rss_human + type: 0 + unit: MB + i18n: + zh-CN: 已使用物理内存 + en-US: Used Memory RSS Human + - field: used_memory_peak + type: 0 + i18n: + zh-CN: 内存使用最大峰值(字节) + en-US: Used Memory Peak + - field: used_memory_peak_human + type: 0 + unit: MB + i18n: + zh-CN: 内存使用最大值 + en-US: Used Memory Peak Human + - field: used_memory_peak_perc + type: 0 + unit: '%' + i18n: + zh-CN: 最大内存使用率 + en-US: Used Memory Peak Perc + - field: used_memory_overhead + type: 0 + i18n: + zh-CN: 管理数据结构的额外内存使用量 + en-US: Used Memory Overhead + - field: used_memory_startup + type: 0 + i18n: + zh-CN: Valkey服务器启动时使用的内存 + en-US: Used Memory Startup + - field: used_memory_dataset + type: 0 + i18n: + zh-CN: 存储数据占用的内存 + en-US: Used Memory Dataset + - field: used_memory_dataset_perc + type: 0 + unit: '%' + i18n: + zh-CN: 存储数据占用的内存比率 + en-US: Used Memory Dataset Perc + - field: allocator_allocated + type: 0 + i18n: + zh-CN: 内存分配器分配的内存 + en-US: Allocator Allocated + - field: allocator_active + type: 0 + i18n: + zh-CN: 内存分配器激活的内存 + en-US: Allocator Active + - field: allocator_resident + type: 0 + i18n: + zh-CN: 内存分配器加载的内存 + en-US: Allocator Resident + - field: total_system_memory + type: 0 + i18n: + zh-CN: 总系统内存容量(字节) + en-US: Total System Memory + - field: total_system_memory_human + type: 0 + unit: GB + i18n: + zh-CN: 总系统内存容量 + en-US: Total System Memory Human + - field: used_memory_lua + type: 0 + i18n: + zh-CN: LUA脚本占用的内存(字节) + en-US: Used Memory LUA + - field: used_memory_lua_human + type: 0 + unit: KB + i18n: + zh-CN: LUA脚本占用的内存 + en-US: Used Memory LUA Human + - field: used_memory_scripts + type: 0 + i18n: + zh-CN: Valkey缓存的LUA脚本大小(字节) + en-US: Used Memory Scripts + - field: used_memory_scripts_human + type: 0 + unit: KB + i18n: + zh-CN: Valkey缓存的LUA脚本大小 + en-US: Used Memory Scripts Human + - field: number_of_cached_scripts + type: 0 + i18n: + zh-CN: Valkey缓存的LUA脚本数量 + en-US: Number Of Cached Scripts + - field: maxmemory + type: 0 + i18n: + zh-CN: 最大内存限制(字节) + en-US: Max Memory + - field: maxmemory_human + type: 0 + unit: MB + i18n: + zh-CN: 最大内存限制 + en-US: Max Memory Human + - field: maxmemory_policy + type: 1 + i18n: + zh-CN: 内存淘汰策略 + en-US: Max Memory Policy + - field: allocator_frag_ratio + type: 0 + i18n: + zh-CN: 内存分配器中的内存碎片占比 + en-US: Allocator Frag Ratio + - field: allocator_frag_bytes + type: 0 + i18n: + zh-CN: 内存分配器中的内存碎片大小 + en-US: Allocator Frag Bytes + - field: allocator_rss_ratio + type: 0 + i18n: + zh-CN: 内存分配器分配的内存占比 + en-US: Allocator RSS Ratio + - field: allocator_rss_bytes + type: 0 + i18n: + zh-CN: 内存分配器分配的内存大小 + en-US: Allocator RSS Bytes + - field: rss_overhead_ratio + type: 0 + i18n: + zh-CN: 实际内存占比 + en-US: RSS Overhead Ratio + - field: rss_overhead_bytes + type: 0 + i18n: + zh-CN: 实际内存大小 + en-US: RSS Overhead Bytes + - field: mem_fragmentation_ratio + type: 0 + i18n: + zh-CN: 内存碎片率 + en-US: Mem Fragmentation Ratio + - field: mem_fragmentation_bytes + type: 0 + i18n: + zh-CN: 内存碎片大小 + en-US: Mem Fragmentation Bytes + - field: mem_not_counted_for_evict + type: 0 + i18n: + zh-CN: 未计入最大内存限制的内存 + en-US: Mem Not Counted For Evict + - field: mem_replication_backlog + type: 0 + i18n: + zh-CN: 主从同步缓冲区占用的内存(字节) + en-US: Mem Replication Backlog + - field: mem_clients_slaves + type: 0 + i18n: + zh-CN: 从节点占用的内存 + en-US: Mem Clients Slaves + - field: mem_clients_normal + type: 0 + i18n: + zh-CN: 客户端占用的内存 + en-US: Mem Clients Normal + - field: mem_aof_buffer + type: 0 + i18n: + zh-CN: AOF缓冲区占用的内存 + en-US: Mem AOF Buffer + - field: mem_allocator + type: 1 + i18n: + zh-CN: 内存分配器 + en-US: Mem Allocator + - field: active_defrag_running + type: 0 + i18n: + zh-CN: 是否正在整理内存 + en-US: Active Defrag Running + - field: lazyfree_pending_objects + type: 0 + i18n: + zh-CN: 待处理的惰性删除对象数量 + en-US: Lazyfree Pending Objects + - field: lazyfreed_objects + type: 0 + i18n: + zh-CN: 已经执行的惰性删除对象数量 + en-US: Lazyfreed Objects + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - persistence + - name: persistence + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 3 + i18n: + zh-CN: 持久化信息 + en-US: Persistence + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: loading + type: 0 + i18n: + zh-CN: 是否正在加载持久化文件 + en-US: Loading + - field: current_cow_size + type: 0 + i18n: + zh-CN: COW区域内存大小 + en-US: Current COW Size + - field: current_cow_size_age + type: 0 + i18n: + zh-CN: COW区域内存使用时间 + en-US: Current COW Size Age + - field: current_fork_perc + type: 0 + i18n: + zh-CN: COW区域内存使用率 + en-US: Current Fork Perc + - field: current_save_keys_processed + type: 0 + i18n: + zh-CN: 正在处理的保存键数量 + en-US: Current Save Keys Processed + - field: current_save_keys_total + type: 0 + i18n: + zh-CN: 保存键总数量 + en-US: Current Save Keys Total + - field: rdb_changes_since_last_save + type: 0 + i18n: + zh-CN: 自最近一次RDB后的数据改动条数 + en-US: RDB Changes Since Last Save + - field: rdb_bgsave_in_progress + type: 0 + i18n: + zh-CN: 是否正在进行RDB的bgsave命令 + en-US: RDB bgsave In Progress + - field: rdb_last_save_time + type: 0 + i18n: + zh-CN: 最近一次bgsave命令执行时间 + en-US: RDB Last Save Time + - field: rdb_last_bgsave_status + type: 1 + i18n: + zh-CN: 最近一次bgsave命令执行状态 + en-US: RDB Last bgsave Status + - field: rdb_last_bgsave_time_sec + type: 0 + i18n: + zh-CN: 最近一次bgsave命令执行时间(秒) + en-US: RDB Last bgsave Time Sec + - field: rdb_current_bgsave_time_sec + type: 0 + i18n: + zh-CN: 当前bgsave命令执行时间(秒) + en-US: RDB Current bgsave Time Sec + - field: rdb_last_cow_size + type: 0 + i18n: + zh-CN: RDB最近一次COW区域内存大小 + en-US: RDB Last COW Size + - field: aof_enabled + type: 0 + i18n: + zh-CN: 是否开启了AOF + en-US: AOF Enabled + - field: aof_rewrite_in_progress + type: 0 + i18n: + zh-CN: 是否正在进行AOF的rewrite命令 + en-US: AOF rewrite In Progress + - field: aof_rewrite_scheduled + type: 0 + i18n: + zh-CN: 是否在RDB的bgsave结束后执行AOF的rewirte + en-US: AOF rewrite Scheduled + - field: aof_last_rewrite_time_sec + type: 0 + i18n: + zh-CN: 最近一次AOF的rewrite命令执行时间(秒) + en-US: AOF Last rewrite Time Sec + - field: aof_current_rewrite_time_sec + type: 0 + i18n: + zh-CN: 当前rewrite命令执行时间(秒) + en-US: AOF Current rewrite Time Sec + - field: aof_last_bgrewrite_status + type: 1 + i18n: + zh-CN: 最近一次AOF的bgrewrite命令执行状态 + en-US: AOF Last bgrewrite Status + - field: aof_last_write_status + type: 1 + i18n: + zh-CN: 最近一次AOF写磁盘结果 + en-US: AOF Last Write Status + - field: aof_last_cow_size + type: 0 + i18n: + zh-CN: AOF最近一次COW区域内存大小 + en-US: AOF Last Cow Size + - field: module_fork_in_progress + type: 0 + i18n: + zh-CN: 是否正在进行fork操作 + en-US: Module Fork In Progress + - field: module_fork_last_cow_size + type: 0 + i18n: + zh-CN: 最近一次执行fork操作的COW区域内存大小 + en-US: Module Fork Last Cow Size + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - stats + - name: stats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 4 + i18n: + zh-CN: 全局统计信息 + en-US: Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: total_connections_received + type: 0 + i18n: + zh-CN: 已接受的总连接数 + en-US: Total Connections Received + - field: total_commands_processed + type: 0 + i18n: + zh-CN: 执行过的命令总数 + en-US: Total Commands Processed + - field: instantaneous_ops_per_sec + type: 0 + i18n: + zh-CN: 命令处理条数/秒 + en-US: Instantaneous Ops Per Sec + - field: total_net_input_bytes + type: 0 + i18n: + zh-CN: 输入总网络流量(字节) + en-US: Total Net Input Bytes + - field: total_net_output_bytes + type: 0 + i18n: + zh-CN: 输出总网络流量(字节) + en-US: Total Net Output Bytes + - field: instantaneous_input_kbps + type: 0 + i18n: + zh-CN: 输入字节数/秒 + en-US: Instantaneous Input Kbps + - field: instantaneous_output_kbps + type: 0 + i18n: + zh-CN: 输出字节数/秒 + en-US: Instantaneous Output Kbps + - field: rejected_connections + type: 0 + i18n: + zh-CN: 拒绝连接数 + en-US: Rejected Connections + - field: sync_full + type: 0 + i18n: + zh-CN: 主从完全同步成功次数 + en-US: Sync Full + - field: sync_partial_ok + type: 0 + i18n: + zh-CN: 主从部分同步成功次数 + en-US: Sync Partial OK + - field: sync_partial_err + type: 0 + i18n: + zh-CN: 主从部分同步失败次数 + en-US: Sync Partial Error + - field: expired_keys + type: 0 + i18n: + zh-CN: 过期key数量 + en-US: Expired Keys + - field: expired_stale_perc + type: 0 + i18n: + zh-CN: 过期key占比 + en-US: Expired Stale Perc + - field: expired_time_cap_reached_count + type: 0 + i18n: + zh-CN: 过期key清理操作被限制次数 + en-US: Expired Time Cap Reached Count + - field: expire_cycle_cpu_milliseconds + type: 0 + i18n: + zh-CN: 清理过期key消耗的cpu时间(毫秒) + en-US: Expire Cycle CPU Milliseconds + - field: evicted_keys + type: 0 + i18n: + zh-CN: 淘汰key数量 + en-US: Evicted Keys + - field: keyspace_hits + type: 0 + i18n: + zh-CN: key命中成功次数 + en-US: Keyspace Hits + - field: keyspace_misses + type: 0 + i18n: + zh-CN: key命中失败次数 + en-US: Keyspace Misses + - field: pubsub_channels + type: 0 + i18n: + zh-CN: 订阅的频道数量 + en-US: Pubsub Channels + - field: pubsub_patterns + type: 0 + i18n: + zh-CN: 订阅的模式数量 + en-US: Pubsub Patterns + - field: latest_fork_usec + type: 0 + i18n: + zh-CN: 最近一次fork操作消耗时间(微秒) + en-US: Latest Fork Usec + - field: total_forks + type: 0 + i18n: + zh-CN: fork进程总数 + en-US: Total Forks + - field: migrate_cached_sockets + type: 0 + i18n: + zh-CN: 正在进行migrate的目标Valkey个数 + en-US: Migrate Cached Sockets + - field: slave_expires_tracked_keys + type: 0 + i18n: + zh-CN: 主从同步中已过期的key数量 + en-US: Slave Expires Tracked Keys + - field: active_defrag_hits + type: 0 + i18n: + zh-CN: 主动碎片整理命中次数 + en-US: Active Defrag Hits + - field: active_defrag_misses + type: 0 + i18n: + zh-CN: 主动碎片整理未命中次数 + en-US: Active Defrag Misses + - field: active_defrag_key_hits + type: 0 + i18n: + zh-CN: 主动碎片整理key命中次数 + en-US: Active Defrag Key Hits + - field: active_defrag_key_misses + type: 0 + i18n: + zh-CN: 主动碎片整理key未命中次数 + en-US: Active Defrag Key Misses + - field: tracking_total_keys + type: 0 + i18n: + zh-CN: 正在追踪的key数量 + en-US: Tracking Total Keys + - field: tracking_total_items + type: 0 + i18n: + zh-CN: 正在追踪的value数量 + en-US: Tracking Total Items + - field: tracking_total_prefixes + type: 0 + i18n: + zh-CN: 正在追踪的前缀数量 + en-US: Tracking Total Prefixes + - field: unexpected_error_replies + type: 0 + i18n: + zh-CN: 执行命令时发生错误的数量 + en-US: Unexpected Error Replies + - field: total_error_replies + type: 0 + i18n: + zh-CN: 执行命令时发生错误的总数 + en-US: Total Error Replies + - field: dump_payload_sanitizations + type: 0 + i18n: + zh-CN: Dump命令时数据清理的数量 + en-US: Dump Payload Sanitizations + - field: total_reads_processed + type: 0 + i18n: + zh-CN: 执行读操作时处理的请求数量 + en-US: Total Reads Processed + - field: total_writes_processed + type: 0 + i18n: + zh-CN: 执行写操作时处理的请求数量 + en-US: Total Writes Processed + - field: io_threaded_reads_processed + type: 0 + i18n: + zh-CN: 使用线程进行读操作时处理的请求数量 + en-US: IO Threaded Reads Processed + - field: io_threaded_writes_processed + type: 0 + i18n: + zh-CN: 使用线程进行写操作时处理的请求数量 + en-US: IO Threaded Writes Processed + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - replication + - name: replication + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 5 + i18n: + zh-CN: 主从同步信息 + en-US: Replication + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: role + type: 1 + i18n: + zh-CN: 节点角色 + en-US: Role + - field: connected_slaves + type: 0 + i18n: + zh-CN: 已连接的从节点个数 + en-US: Connected Slaves + - field: master_failover_state + type: 1 + i18n: + zh-CN: 主从故障转移状态 + en-US: Master FailOver State + - field: master_replid + type: 1 + i18n: + zh-CN: 主从同步id + en-US: Master Replid + - field: master_replid2 + type: 0 + i18n: + zh-CN: 主从同步id2 + en-US: Master Replid2 + - field: master_repl_offset + type: 0 + i18n: + zh-CN: 主节点偏移量 + en-US: Master Repl Offset + - field: second_repl_offset + type: 0 + i18n: + zh-CN: 接受主从同步的从节点偏移量 + en-US: Second Repl Offset + - field: repl_backlog_active + type: 0 + i18n: + zh-CN: 复制缓冲区状态 + en-US: Repl Backlog Active + - field: repl_backlog_size + type: 0 + i18n: + zh-CN: 复制缓冲区大小(字节) + en-US: Repl Backlog Size + - field: repl_backlog_first_byte_offset + type: 0 + i18n: + zh-CN: 复制缓冲区起始偏移量 + en-US: Repl Backlog First Byte Offset + - field: repl_backlog_histlen + type: 0 + i18n: + zh-CN: 复制缓冲区的有效数据长度 + en-US: Repl Backlog Histlen + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - cpu + - name: cpu + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 6 + i18n: + zh-CN: CPU消耗信息 + en-US: CPU + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: used_cpu_sys + type: 0 + i18n: + zh-CN: Valkey进程使用的CPU时钟总和(内核态) + en-US: Used CPU Sys + - field: used_cpu_user + type: 0 + i18n: + zh-CN: Valkey进程使用的CPU时钟总和(用户态) + en-US: Used CPU User + - field: used_cpu_sys_children + type: 0 + i18n: + zh-CN: 后台进程使用的CPU时钟总和(内核态) + en-US: Used CPU Sys Children + - field: used_cpu_user_children + type: 0 + i18n: + zh-CN: 后台进程使用的CPU时钟总和(用户态) + en-US: Used CPU User Children + - field: used_cpu_sys_main_thread + type: 0 + i18n: + zh-CN: 主进程使用的CPU时钟总和(内核态) + en-US: Used CPU Sys Main Thread + - field: used_cpu_user_main_thread + type: 0 + i18n: + zh-CN: 主进程使用的CPU时钟总和(用户态) + en-US: Used CPU User Main Thread + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - errorstats + - name: errorstats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 8 + i18n: + zh-CN: 错误信息 + en-US: Error Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: errorstat_ERR + type: 1 + i18n: + zh-CN: 执行命令时出错的次数 + en-US: Error Stat Error + - field: errorstat_MISCONF + type: 1 + i18n: + zh-CN: 执行命令时出现misconf错误的次数 + en-US: Error Stat Misconf + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - cluster + - name: cluster + # collect metrics content + priority: 9 + i18n: + zh-CN: 集群信息 + en-US: Cluster + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: cluster_enabled + type: 0 + i18n: + zh-CN: 节点是否开启集群模式 + en-US: Cluster Enabled + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - commandstats + - name: commandstats + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 9 + i18n: + zh-CN: 命令统计信息 + en-US: Command Stats + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: cmdstat_set + type: 1 + i18n: + zh-CN: set + en-US: set + - field: cmdstat_get + type: 1 + i18n: + zh-CN: get + en-US: get + - field: cmdstat_setnx + type: 1 + i18n: + zh-CN: setnx + en-US: setnx + - field: cmdstat_hset + type: 1 + i18n: + zh-CN: hset + en-US: hset + - field: cmdstat_hget + type: 1 + i18n: + zh-CN: hget + en-US: hget + - field: cmdstat_lpush + type: 1 + i18n: + zh-CN: lpush + en-US: lpush + - field: cmdstat_rpush + type: 1 + i18n: + zh-CN: rpush + en-US: rpush + - field: cmdstat_lpop + type: 1 + i18n: + zh-CN: lpop + en-US: lpop + - field: cmdstat_rpop + type: 1 + i18n: + zh-CN: rpop + en-US: rpop + - field: cmdstat_llen + type: 1 + i18n: + zh-CN: llen + en-US: llen + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ + + # metrics - keyspace + - name: keyspace + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 9 + i18n: + zh-CN: 数据库统计信息 + en-US: Keyspace + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: db0 + type: 1 + i18n: + zh-CN: db0 + en-US: db0 + - field: db1 + type: 1 + i18n: + zh-CN: db1 + en-US: db1 + - field: db2 + type: 1 + i18n: + zh-CN: db2 + en-US: db2 + - field: db3 + type: 1 + i18n: + zh-CN: db3 + en-US: db3 + - field: db4 + type: 1 + i18n: + zh-CN: db4 + en-US: db4 + - field: db5 + type: 1 + i18n: + zh-CN: db5 + en-US: db5 + - field: db6 + type: 1 + i18n: + zh-CN: db6 + en-US: db6 + - field: db7 + type: 1 + i18n: + zh-CN: db7 + en-US: db7 + - field: db8 + type: 1 + i18n: + zh-CN: db8 + en-US: db8 + - field: db9 + type: 1 + i18n: + zh-CN: db9 + en-US: db9 + - field: db10 + type: 1 + i18n: + zh-CN: db10 + en-US: db10 + - field: db11 + type: 1 + i18n: + zh-CN: db11 + en-US: db11 + - field: db12 + type: 1 + i18n: + zh-CN: db12 + en-US: db12 + - field: db13 + type: 1 + i18n: + zh-CN: db13 + en-US: db13 + - field: db14 + type: 1 + i18n: + zh-CN: db14 + en-US: db14 + - field: db15 + type: 1 + i18n: + zh-CN: db15 + en-US: db15 + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: redis + # the config content when protocol is redis + redis: + # redis host: ipv4 ipv6 host + host: ^_^host^_^ + # redis port + port: ^_^port^_^ + # username + username: ^_^username^_^ + # password + password: ^_^password^_^ + # timeout unit:ms + timeout: ^_^timeout^_^ diff --git a/manager/src/main/resources/define/app-vastbase.yml b/manager/src/main/resources/define/app-vastbase.yml new file mode 100644 index 00000000000..951615ed95c --- /dev/null +++ b/manager/src/main/resources/define/app-vastbase.yml @@ -0,0 +1,753 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: db +# The monitoring type eg: linux windows tomcat mysql aws... +app: vastbase +# The monitoring i18n name +name: + zh-CN: Vastbase数据库 + en-US: Vastbase DB +# The description and help of this monitoring type +help: + zh-CN: HertzBeat 使用 JDBC 协议 通过配置 SQL 对 Vastbase 数据库的通用性能指标 (basic、state、activity etc) 进行采集监控,支持版本为 Vastbase 9.2.4+。
您可以点击“新建 Vastbase 数据库”并进行配置,或者选择“更多操作”,导入已有配置。 + en-US: HertzBeat uses JDBC Protocol to configure SQL for collecting general metrics of Vastbase database (basic、state、activity etc). Supported version is Vastbase 9.2.4+.
You can click "New Vastbase Database" and configure it, or select "More Action" to import the existing configuration. + zh-TW: HertzBeat 使用 JDBC 協議 通過配置 SQL 對 Vastbase 數據庫的通用性能指標 (basic、state、activity etc)進行采集監控,支持版本爲 Vastbase 9.2.4+。
您可以點擊“新建 Vastbase 數據庫”並進行配置,或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/vastbase + en-US: https://hertzbeat.apache.org/docs/help/vastbase +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true + # field-param field key + - field: port + # name-param field display i18n name + name: + zh-CN: 端口 + en-US: Port + # type-param field type(most mapping the html input type) + type: number + # when type is number, range is required + range: '[0,65535]' + # required-true or false + required: true + # default value + defaultValue: 5432 + - field: timeout + name: + zh-CN: 查询超时时间(ms) + en-US: Query Timeout(ms) + type: number + range: '[400,200000]' + required: false + hide: true + defaultValue: 6000 + - field: database + name: + zh-CN: 数据库名称 + en-US: Database Name + type: text + defaultValue: postgres + required: false + - field: username + name: + zh-CN: 用户名 + en-US: Username + type: text + limit: 50 + required: false + - field: password + name: + zh-CN: 密码 + en-US: Password + type: password + required: false + - field: url + name: + zh-CN: URL + en-US: URL + type: text + required: false + hide: true + +# collect metrics config list +metrics: + # metrics - basic + - name: basic + i18n: + zh-CN: 基本信息 + en-US: Basic Info + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: server_version + type: 1 + label: true + i18n: + zh-CN: 服务器版本 + en-US: Server Version + - field: port + type: 1 + i18n: + zh-CN: 端口 + en-US: Port + - field: server_encoding + type: 1 + i18n: + zh-CN: 服务器编码 + en-US: Server Encoding + - field: data_directory + type: 1 + i18n: + zh-CN: 数据目录 + en-US: Data Directory + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: jdbc + # the config content when protocol is jdbc + jdbc: + # host: ipv4 ipv6 host + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + # database platform name + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + # SQL Query Method:oneRow, multiRow, columns + queryType: columns + # sql + sql: select name, setting as value from pg_settings where name = 'max_connections' or name = 'server_version' or name = 'server_encoding' or name = 'port' or name = 'data_directory'; + # JDBC url + url: ^_^url^_^ + + - name: state + i18n: + zh-CN: 状态信息 + en-US: State Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + - field: blks_read + type: 0 + unit: blocks per second + i18n: + zh-CN: 读取块 + en-US: Blocks Read + - field: blks_hit + type: 0 + unit: blocks per second + i18n: + zh-CN: 命中块 + en-US: Blocks Hit + - field: blk_read_time + type: 0 + unit: ms + i18n: + zh-CN: 读取时间 + en-US: Read Time + - field: blk_write_time + type: 0 + unit: ms + i18n: + zh-CN: 写入时间 + en-US: Write Time + - field: stats_reset + type: 1 + i18n: + zh-CN: 统计重置 + en-US: Stats Reset + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks, blks_read, blks_hit, blk_read_time, blk_write_time, stats_reset from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: activity + i18n: + zh-CN: 活动信息 + en-US: Activity Info + priority: 2 + fields: + - field: running + type: 0 + unit: sbc + i18n: + zh-CN: 运行中 + en-US: Running + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: SELECT count(*) as running FROM pg_stat_activity WHERE NOT pid=pg_backend_pid(); + url: ^_^url^_^ + + - name: resource_config + i18n: + zh-CN: 资源配置 + en-US: Resource Config + priority: 1 + fields: + - field: work_mem + type: 0 + unit: MB + i18n: + zh-CN: 工作内存 + en-US: Work Memory + - field: shared_buffers + type: 0 + unit: MB + i18n: + zh-CN: 共享缓冲区 + en-US: Shared Buffers + - field: autovacuum + type: 1 + i18n: + zh-CN: 自动清理 + en-US: Auto Vacuum + - field: max_connections + type: 0 + i18n: + zh-CN: 最大连接数 + en-US: Max Connections + - field: effective_cache_size + type: 0 + unit: MB + i18n: + zh-CN: 有效缓存大小 + en-US: Effective Cache Size + - field: wal_buffers + type: 0 + unit: MB + i18n: + zh-CN: WAL缓冲区 + en-US: WAL Buffers + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: columns + sql: show all; + url: ^_^url^_^ + + - name: connection + i18n: + zh-CN: 连接信息 + en-US: Connection Info + priority: 1 + fields: + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select count(1) as active from pg_stat_activity; + url: ^_^url^_^ + + - name: connection_state + i18n: + zh-CN: 连接状态 + en-US: Connection State + priority: 1 + fields: + - field: state + type: 1 + label: true + i18n: + zh-CN: 状态 + en-US: State + - field: num + type: 0 + i18n: + zh-CN: 数量 + en-US: Num + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(state, 'other') as state, count(*) as num from pg_stat_activity group by state; + url: ^_^url^_^ + + - name: connection_db + i18n: + zh-CN: 连接数据库 + en-US: Connection Db + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: active + type: 0 + i18n: + zh-CN: 活动连接 + en-US: Active Connection + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select count(*) as active, COALESCE(datname, 'other') as db_name from pg_stat_activity group by datname; + url: ^_^url^_^ + + - name: tuple + i18n: + zh-CN: 元组信息 + en-US: Tuple Info + priority: 1 + fields: + - field: fetched + type: 0 + i18n: + zh-CN: 获取次数 + en-US: Fetched + - field: returned + type: 0 + i18n: + zh-CN: 返回次数 + en-US: Returned + - field: inserted + type: 0 + i18n: + zh-CN: 插入次数 + en-US: Inserted + - field: updated + type: 0 + i18n: + zh-CN: 更新次数 + en-US: Updated + - field: deleted + type: 0 + i18n: + zh-CN: 删除次数 + en-US: Deleted + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select sum(tup_fetched) as fetched, sum(tup_updated) as updated, sum(tup_deleted) as deleted, sum(tup_inserted) as inserted, sum(tup_returned) as returned from pg_stat_database; + url: ^_^url^_^ + + - name: temp_file + i18n: + zh-CN: 临时文件 + en-US: Temp File + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: num + type: 0 + i18n: + zh-CN: 次数 + en-US: Num + - field: size + type: 0 + unit: B + i18n: + zh-CN: 大小 + en-US: Size + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(temp_files) as num, sum(temp_bytes) as size from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: lock + i18n: + zh-CN: 锁信息 + en-US: Lock Info + priority: 1 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: conflicts + type: 0 + unit: times + i18n: + zh-CN: 冲突次数 + en-US: Conflicts + - field: deadlocks + type: 0 + unit: times + i18n: + zh-CN: 死锁次数 + en-US: Deadlocks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: SELECT COALESCE(datname,'shared-object') as db_name, conflicts, deadlocks from pg_stat_database where (datname != 'template1' and datname != 'template0') or datname is null; + url: ^_^url^_^ + + - name: slow_sql + i18n: + zh-CN: 慢查询 + en-US: Slow Sql + priority: 1 + fields: + - field: sql_text + type: 1 + label: true + i18n: + zh-CN: SQL语句 + en-US: SQL Text + - field: calls + type: 0 + i18n: + zh-CN: 调用次数 + en-US: Calls + - field: rows + type: 0 + i18n: + zh-CN: 行数 + en-US: Rows + - field: avg_time + type: 0 + unit: ms + i18n: + zh-CN: 平均时间 + en-US: Avg Time + - field: total_time + type: 0 + unit: ms + i18n: + zh-CN: 总时间 + en-US: Total Time + aliasFields: + - query + - calls + - rows + - total_exec_time + - mean_exec_time + calculates: + - sql_text=query + - avg_time=mean_exec_time + - total_time=total_exec_time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select * from pg_stat_statements; + url: ^_^url^_^ + + - name: transaction + i18n: + zh-CN: 事务信息 + en-US: Transaction Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: commits + type: 0 + unit: times + i18n: + zh-CN: 提交次数 + en-US: Commits + - field: rollbacks + type: 0 + unit: times + i18n: + zh-CN: 回滚次数 + en-US: Rollbacks + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select COALESCE(datname, 'other') as db_name, sum(xact_commit) as commits, sum(xact_rollback) as rollbacks from pg_stat_database group by datname; + url: ^_^url^_^ + + - name: conflicts + i18n: + zh-CN: 冲突信息 + en-US: Conflicts Info + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: tablespace + type: 0 + i18n: + zh-CN: 表空间 + en-US: Tablespace + - field: lock + type: 0 + i18n: + zh-CN: 锁 + en-US: Lock + - field: snapshot + type: 0 + i18n: + zh-CN: 快照 + en-US: Snapshot + - field: bufferpin + type: 0 + i18n: + zh-CN: 缓冲区 + en-US: Bufferpin + - field: deadlock + type: 0 + i18n: + zh-CN: 死锁 + en-US: Deadlock + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, confl_tablespace as tablespace, confl_lock as lock, confl_snapshot as snapshot, confl_bufferpin as bufferpin, confl_deadlock as deadlock from pg_stat_database_conflicts; + url: ^_^url^_^ + + - name: cache_hit_ratio + i18n: + zh-CN: 缓存命中率 + en-US: Cache Hit Ratio + priority: 2 + fields: + - field: db_name + type: 1 + label: true + i18n: + zh-CN: 数据库名称 + en-US: Database Name + - field: ratio + type: 0 + unit: '%' + i18n: + zh-CN: 命中率 + en-US: Hit Ratio + aliasFields: + - blks_hit + - blks_read + - db_name + calculates: + - ratio=(blks_hit + 1) / (blks_read + blks_hit + 1) * 100 + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: multiRow + sql: select datname as db_name, blks_hit, blks_read from pg_stat_database; + url: ^_^url^_^ + + - name: checkpoint + i18n: + zh-CN: Checkpoint信息 + en-US: Checkpoint Info + priority: 2 + fields: + - field: checkpoint_sync_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint同步时间 + en-US: Checkpoint Sync Time + - field: checkpoint_write_time + type: 0 + unit: ms + i18n: + zh-CN: Checkpoint写入时间 + en-US: Checkpoint Write Time + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select checkpoint_sync_time, checkpoint_write_time from pg_stat_bgwriter; + url: ^_^url^_^ + + - name: buffer + i18n: + zh-CN: Buffer信息 + en-US: Buffer Info + priority: 2 + fields: + - field: allocated + type: 0 + i18n: + zh-CN: 已分配 + en-US: Allocated + - field: fsync_calls_by_backend + type: 0 + i18n: + zh-CN: 后端进程直接执行的文件同步调用次数 + en-US: Fsync Calls By Backend + - field: written_directly_by_backend + type: 0 + i18n: + zh-CN: 后台写入到数据文件 + en-US: Written Directly By Backend + - field: written_by_background_writer + type: 0 + i18n: + zh-CN: 后台写入 + en-US: Written By Background Writer + - field: written_during_checkpoints + type: 0 + i18n: + zh-CN: 检查点期间写入 + en-US: Written During Checkpoints + protocol: jdbc + jdbc: + host: ^_^host^_^ + port: ^_^port^_^ + timeout: ^_^timeout^_^ + platform: postgresql + username: ^_^username^_^ + password: ^_^password^_^ + database: ^_^database^_^ + queryType: oneRow + sql: select buffers_alloc as allocated, buffers_backend_fsync as fsync_calls_by_backend, buffers_backend as written_directly_by_backend, buffers_clean as written_by_background_writer, buffers_checkpoint as written_during_checkpoints from pg_stat_bgwriter; + url: ^_^url^_^ diff --git a/manager/src/main/resources/define/app-website.yml b/manager/src/main/resources/define/app-website.yml index b14547b9889..fd19bf25bd5 100644 --- a/manager/src/main/resources/define/app-website.yml +++ b/manager/src/main/resources/define/app-website.yml @@ -197,3 +197,48 @@ metrics: # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule parseType: website keyword: ^_^keyword^_^ + - name: header + i18n: + zh-CN: 请求头 + en-US: Header + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 1 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: Content-Type + type: 1 + i18n: + zh-CN: Content Type + en-US: Content Type + - field: Content-Length + type: 1 + i18n: + zh-CN: 响应内容长度 + en-US: Content Length + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: http + # the config content when protocol is http + http: + # http host: ipv4 ipv6 domain + host: ^_^host^_^ + # http port + port: ^_^port^_^ + # http url + url: ^_^uri^_^ + timeout: ^_^timeout^_^ + # http method: GET POST PUT DELETE PATCH + method: GET + # if enabled https + ssl: ^_^ssl^_^ + authorization: + # http auth type: Basic Auth, Digest Auth, Bearer Token + type: ^_^authType^_^ + basicAuthUsername: ^_^username^_^ + basicAuthPassword: ^_^password^_^ + digestAuthUsername: ^_^username^_^ + digestAuthPassword: ^_^password^_^ + # http response data parse type: default-hertzbeat rule, jsonpath-jsonpath script, website-for website monitoring, prometheus-prometheus exporter rule + parseType: website + keyword: ^_^keyword^_^ diff --git a/manager/src/main/resources/define/app-windows.yml b/manager/src/main/resources/define/app-windows.yml index 4a2669e1196..6e06b2cbb6d 100644 --- a/manager/src/main/resources/define/app-windows.yml +++ b/manager/src/main/resources/define/app-windows.yml @@ -110,29 +110,59 @@ params: metrics: # metrics - system - name: system + i18n: + zh-CN: 系统 + en-US: System # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue priority: 0 fields: - field: name type: 1 + i18n: + zh-CN: 名称 + en-US: Name - field: descr type: 1 + i18n: + zh-CN: 描述 + en-US: Description - field: uptime type: 1 + i18n: + zh-CN: 运行时间 + en-US: Uptime - field: numUsers type: 0 + i18n: + zh-CN: 用户数 + en-US: Number of Users - field: services type: 0 + i18n: + zh-CN: 服务数 + en-US: Number of Services - field: processes type: 0 + i18n: + zh-CN: 进程数 + en-US: Number of Processes - field: responseTime type: 0 + i18n: + zh-CN: 响应时间 + en-US: Response Time unit: ms - field: location type: 1 + i18n: + zh-CN: 位置 + en-US: Location - field: memory type: 0 + i18n: + zh-CN: 内存 + en-US: Memory unit: GB units: - memory=KB->GB @@ -155,28 +185,58 @@ metrics: memory: 1.3.6.1.2.1.25.2.2.0 - name: processes + i18n: + zh-CN: 进程 + en-US: Processes priority: 1 fields: - field: hrSWRunIndex type: 0 + i18n: + zh-CN: 进程 Index + en-US: Process Index - field: hrSWRunName type: 1 + i18n: + zh-CN: 进程名称 + en-US: Process Name label: true - field: hrSWRunID type: 1 + i18n: + zh-CN: 进程 ID + en-US: Process ID - field: hrSWRunPath type: 1 + i18n: + zh-CN: 进程路径 + en-US: Process Path - field: hrSWRunParameters type: 1 + i18n: + zh-CN: 进程参数 + en-US: Process Parameters - field: hrSWRunType type: 0 + i18n: + zh-CN: 进程类型 + en-US: Process Type - field: hrSWRunStatus type: 0 + i18n: + zh-CN: 进程状态 + en-US: Process Status - field: hrSWRunPerfCPU type: 0 + i18n: + zh-CN: 进程占用 CPU + en-US: Process CPU unit: 's' - field: hrSWRunPerfMem type: 0 + i18n: + zh-CN: 进程占用内存 + en-US: Process Memory unit: 'KB' calculates: - hrSWRunPerfCPU = hrSWRunPerfCPU / 100 @@ -200,19 +260,37 @@ metrics: hrSWRunPerfMem: 1.3.6.1.2.1.25.5.1.1.2 - name: services + i18n: + zh-CN: 服务 + en-US: Services priority: 1 fields: - field: svSvcName type: 1 + i18n: + zh-CN: 服务名称 + en-US: Service Name label: true - field: svSvcInstalledState type: 0 + i18n: + zh-CN: 服务安装状态 + en-US: Service Installed State - field: svSvcOperatingState type: 0 + i18n: + zh-CN: 服务运行状态 + en-US: Service Operating State - field: svSvcCanBeUninstalled type: 0 + i18n: + zh-CN: 服务是否可以被卸载 + en-US: Service Can Be Uninstalled - field: svSvcCanBePaused type: 0 + i18n: + zh-CN: 服务是否可以被暂停 + en-US: Service Can Be Paused protocol: snmp snmp: host: ^_^host^_^ @@ -229,17 +307,32 @@ metrics: svSvcCanBePaused: 1.3.6.1.4.1.77.1.2.3.1.5 - name: installed + i18n: + zh-CN: 安装 + en-US: Installed priority: 1 fields: - field: hrSWInstalledIndex type: 0 + i18n: + zh-CN: 安装 Index + en-US: Installed Index - field: hrSWInstalledName type: 1 + i18n: + zh-CN: 安装名称 + en-US: Installed Name label: true - field: hrSWInstalledID type: 1 + i18n: + zh-CN: 安装 ID + en-US: Installed ID - field: hrSWInstalledType type: 0 + i18n: + zh-CN: 安装类型 + en-US: Installed Type protocol: snmp snmp: host: ^_^host^_^ @@ -255,12 +348,21 @@ metrics: hrSWInstalledType: 1.3.6.1.2.1.25.6.3.1.4 - name: cpu + i18n: + zh-CN: CPU + en-US: CPU priority: 1 fields: - field: hrProcessorFrwID type: 1 + i18n: + zh-CN: 处理器 ID + en-US: Processor ID - field: hrProcessorLoad type: 0 + i18n: + zh-CN: 处理器负载 + en-US: Processor Load unit: '%' protocol: snmp snmp: @@ -275,24 +377,45 @@ metrics: hrProcessorLoad: 1.3.6.1.2.1.25.3.3.1.2 - name: storages + i18n: + zh-CN: 存储 + en-US: Storages priority: 1 fields: - field: index type: 0 + i18n: + zh-CN: 存储 Index + en-US: Storage Index - field: descr type: 1 + i18n: + zh-CN: 存储描述 + en-US: Storage Description label: true - field: size + i18n: + zh-CN: 存储大小 + en-US: Storage Size type: 0 unit: MB - field: free type: 0 + i18n: + zh-CN: 存储空闲 + en-US: Storage Free unit: MB - field: used type: 0 + i18n: + zh-CN: 存储占用 + en-US: Storage Used unit: MB - field: usage type: 0 + i18n: + zh-CN: 存储使用率 + en-US: Storage Usage unit: '%' # (Not required) Monitor indicator alias, which maps to the indicator name above. The field used to collect interface data is not directly the final indicator name, and this alias is required for mapping translation aliasFields: @@ -329,16 +452,31 @@ metrics: hrStorageAllocationUnits: 1.3.6.1.2.1.25.2.3.1.4 - name: disk + i18n: + zh-CN: 磁盘 + en-US: Disk priority: 2 fields: - field: hrDiskStorageAccess type: 0 + i18n: + zh-CN: 磁盘存储访问 + en-US: Disk Storage Access - field: hrDiskStorageMedia type: 0 + i18n: + zh-CN: 磁盘存储介质 + en-US: Disk Storage Media - field: hrDiskStorageRemoveble type: 0 + i18n: + zh-CN: 磁盘存储是否可移动 + en-US: Disk Storage Removeble - field: hrDiskStorageCapacity type: 0 + i18n: + zh-CN: 磁盘存储容量 + en-US: Disk Storage Capacity unit: MB units: - hrDiskStorageCapacity=KB->MB @@ -357,10 +495,16 @@ metrics: hrDiskStorageCapacity: 1.3.6.1.2.1.25.3.6.1.4 - name: network + i18n: + zh-CN: 网络 + en-US: Network priority: 3 fields: - field: number type: 1 + i18n: + zh-CN: 编号 + en-US: Number protocol: snmp snmp: host: ^_^host^_^ @@ -372,41 +516,80 @@ metrics: number: 1.3.6.1.2.1.2.1.0 - name: interfaces + i18n: + zh-CN: 接口 + en-US: Interfaces priority: 4 fields: - field: index type: 0 + i18n: + zh-CN: 序号 + en-US: Index - field: descr type: 1 + i18n: + zh-CN: 描述 + en-US: Description label: true - field: mtu type: 0 + i18n: + zh-CN: 最大传输单元 + en-US: MTU unit: 'byte' - field: speed type: 0 + i18n: + zh-CN: 速度 + en-US: Speed unit: 'KB/s' - field: in_octets type: 0 + i18n: + zh-CN: 输入字节数 + en-US: In Octets unit: 'byte' - field: in_discards type: 0 + i18n: + zh-CN: 输入丢弃数 + en-US: In Discards unit: 'package' - field: in_errors type: 0 + i18n: + zh-CN: 输入错误数 + en-US: In Errors unit: 'package' - field: out_octets type: 0 + i18n: + zh-CN: 输出字节数 + en-US: Out Octets unit: 'byte' - field: out_discards type: 0 + i18n: + zh-CN: 输出丢弃数 + en-US: Out Discards unit: 'package' - field: out_errors type: 0 + i18n: + zh-CN: 输出错误数 + en-US: Out Errors unit: 'package' - field: admin_status type: 1 + i18n: + zh-CN: 管理状态 + en-US: Admin Status - field: oper_status type: 1 + i18n: + zh-CN: 运行状态 + en-US: Oper Status aliasFields: - ifIndex - ifDescr @@ -456,15 +639,27 @@ metrics: ifOperStatus: 1.3.6.1.2.1.2.2.1.8 - name: devices + i18n: + zh-CN: 设备 + en-US: Devices priority: 4 fields: - field: index type: 1 + i18n: + zh-CN: 序号 + en-US: Index label: true - field: descr type: 1 + i18n: + zh-CN: 描述 + en-US: Description - field: status type: 1 + i18n: + zh-CN: 状态 + en-US: Status aliasFields: - hrDeviceIndex - hrDeviceDescr diff --git a/manager/src/main/resources/define/app-windows_script.yml b/manager/src/main/resources/define/app-windows_script.yml new file mode 100644 index 00000000000..a13e9e248db --- /dev/null +++ b/manager/src/main/resources/define/app-windows_script.yml @@ -0,0 +1,334 @@ +# 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. + +# The monitoring type category:service-application service monitoring db-database monitoring custom-custom monitoring os-operating system monitoring +category: os +# The monitoring type eg: linux windows tomcat mysql aws... +app: windows_script +# The monitoring i18n name +name: + zh-CN: Windows 命令 + en-US: Windows Script +# The description and help of this monitoring type +help: + zh-CN: Hertzbeat 使用采集器作为 agent 直接运行 CMD 或 Powershell 命令 对 Windows 操作系统的通用性能指标 (系统信息、CPU、内存、磁盘、网卡、文件系统、TOP资源进程等) 进行采集监控。
您可以点击“新建 Linux Script”进行添加。或者选择“更多操作”,导入已有配置。 + en-US: Hertzbeat uses a collector as an agent to directly execute CMD or Powershell commands to collect and monitor general performance metrics of the Windows operating system (system information, CPU, memory, disk, network card, file system, TOP resource processes, etc.).
You can click “Create New Linux Script” to add it. Or select “More Actions” to import an existing configuration. + zh-TW: Hertzbeat 使用采集器作為 agent 直接運行 CMD 或 Powershell 命令 對 Windows 操作系統的通用性能指標 (系統信息、CPU、內存、磁盤、網卡、文件系統、TOP資源進程等) 進行採集監控。
您可以點擊“新建 Linux Script”進行添加。或者選擇“更多操作”,導入已有配置。 +helpLink: + zh-CN: https://hertzbeat.apache.org/zh-cn/docs/help/script + en-US: https://hertzbeat.apache.org/docs/help/script +# Input params define for monitoring(render web ui by the definition) +params: + # field-param field key + - field: host + # name-param field display i18n name + name: + zh-CN: 目标Host + en-US: Target Host + # type-param field type(most mapping the html input type) + type: host + # required-true or false + required: true +# collect metrics config list +metrics: + # metrics - basic, inner monitoring metrics (responseTime - response time) + - name: basic + i18n: + zh-CN: 系统基本信息 + en-US: Basic Info + # metrics scheduling priority(0->127)->(high->low), metrics with the same priority will be scheduled in parallel + # priority 0's metrics is availability metrics, it will be scheduled first, only availability metrics collect success will the scheduling continue + priority: 0 + # collect metrics content + fields: + # field-metric name, type-metric type(0-number,1-string), unit-metric unit('%','ms','MB'), label-whether it is a metrics label field + - field: hostname + type: 1 + label: true + i18n: + zh-CN: 主机名称 + en-US: Host Name + - field: version + type: 1 + i18n: + zh-CN: 操作系统版本 + en-US: System Version + # the protocol used for monitoring, eg: sql, ssh, http, telnet, wmi, snmp, sdk + protocol: script + # the config content when protocol is ssh + script: + # script tool + scriptTool: cmd + # OS charset + charset: GBK + # script working directory + workDirectory: "C:" + # collect script + scriptCommand: + | + @echo %COMPUTERNAME% & for /f "tokens=4 delims=[] " %i in ('ver') do @echo %i + # response data parse type: oneRow, multiRow + parseType: oneRow + + - name: cpu + i18n: + zh-CN: CPU 信息 + en-US: CPU Info + priority: 1 + fields: + - field: info + type: 1 + i18n: + zh-CN: 型号 + en-US: Info + - field: cores + type: 1 + i18n: + zh-CN: 核数 + en-US: Cores + - field: load + type: 1 + unit: '%' + i18n: + zh-CN: 负载 + en-US: Load + - field: interrupt + type: 1 + i18n: + zh-CN: 中断数 + en-US: Interrupt + - field: context_switch + type: 1 + i18n: + zh-CN: 上下文切换 + en-US: Context Switch + - field: usage + type: 1 + unit: '%' + i18n: + zh-CN: 使用率 + en-US: Usage + protocol: script + script: + scriptTool: cmd + charset: GBK + scriptCommand: + | + for /f "tokens=2 delims==" %i in ('wmic cpu get Name /value ^| find "Name"') do @echo %i&&for /f "tokens=2 delims==" %i in ('wmic cpu get NumberOfLogicalProcessors /value ^| find "NumberOfLogicalProcessors"') do @echo %i&&for /f "tokens=2 delims==" %i in ('wmic cpu get loadpercentage /value') do @echo %i&&for /f "skip=2 tokens=2 delims=," %a in ('typeperf "\Processor Information(_Total)\Interrupts/sec" -sc 1') do @echo %a && for /f "skip=2 tokens=2 delims=," %a in ('typeperf "\System\Context Switches/sec" -sc 1') do @echo %a&&for /f "skip=2 tokens=2 delims=," %a in ('typeperf "\Processor(_Total)\% Processor Time" -sc 1') do @echo %a + parseType: oneRow + + - name: memory + i18n: + zh-CN: 内存信息 + en-US: Memory Info + priority: 1 + fields: + - field: totalPhysical + type: 0 + unit: Mb + i18n: + zh-CN: 总物理内存容量 + en-US: Total Physical Memory + - field: freePhysical + type: 0 + unit: Mb + i18n: + zh-CN: 空闲物理内存容量 + en-US: Free Physical Memory + - field: totalVirtual + type: 0 + unit: Mb + i18n: + zh-CN: 总虚拟内存容量 + en-US: Total Virtual Memory + - field: freeVirtual + type: 0 + unit: Mb + i18n: + zh-CN: 空闲虚拟内存容量 + en-US: Free Virtual Memory + units: + - totalPhysical=B->MB + - freePhysical=KB->MB + - totalVirtual=KB->MB + - freeVirtual=KB->MB + protocol: script + script: + scriptTool: cmd + charset: GBK + scriptCommand: + | + for /f "tokens=2 delims==" %i in ('wmic computerSystem get TotalPhysicalMemory /value ^| find "TotalPhysicalMemory"') do @echo %i&&for /f "tokens=2 delims==" %i in ('wmic os get FreePhysicalMemory /value ^| find "FreePhysicalMemory"') do @echo %i&&for /f "tokens=2 delims==" %i in ('wmic os get TotalVirtualMemorySize /value ^| find "TotalVirtualMemorySize"') do @echo %i&&for /f "tokens=2 delims==" %i in ('wmic os get FreeVirtualMemory /value ^| find "FreeVirtualMemory"') do @echo %i + parseType: oneRow + + - name: disk + i18n: + zh-CN: 磁盘信息 + en-US: Disk Info + priority: 1 + fields: + - field: Model + type: 1 + i18n: + zh-CN: 磁盘型号 + en-US: Disk Type + - field: Size + type: 0 + unit: Mb + i18n: + zh-CN: 磁盘大小 + en-US: Disk Size + - field: BytesPerSector + type: 0 + i18n: + zh-CN: 每个扇区的字节数 + en-US: Bytes Per Sector + protocol: script + script: + scriptTool: powershell + charset: GBK + scriptCommand: + | + Write-Host "Model Size BytesPerSector"; + Get-WmiObject -Class Win32_DiskDrive | ForEach-Object { + $model = $_.Model -replace ' ', '_' + $size = [math]::round($_.Size / 1MB, 0) + $bytesPerSector = $_.BytesPerSector + Write-Host "$model $size $bytesPerSector" + } + parseType: multiRow + + - name: disk_free + i18n: + zh-CN: 文件系统 + en-US: Disk Free + priority: 1 + fields: + - field: Caption + type: 1 + i18n: + zh-CN: 盘符 + en-US: Caption + - field: FreeSpace + type: 0 + unit: Mb + i18n: + zh-CN: 可用量 + en-US: FreeSpace + - field: Size + type: 0 + unit: Mb + i18n: + zh-CN: 总量 + en-US: Size + units: + - FreeSpace=B->MB + - Size=B->MB + protocol: script + script: + scriptTool: cmd + charset: GBK + scriptCommand: + | + wmic logicaldisk get size,freespace,caption + parseType: multiRow + + - name: top_cpu_process + i18n: + zh-CN: Top10 CPU 进程 + en-US: Top10 CPU Process + priority: 1 + fields: + - field: name + type: 1 + i18n: + zh-CN: 进程名 + en-US: Name + - field: id + type: 1 + i18n: + zh-CN: 进程 ID + en-US: PID + - field: cpu + type: 0 + unit: 's' + i18n: + zh-CN: CPU 使用时间 + en-US: CPU Usage Time + - field: ws + type: 0 + unit: Mb + i18n: + zh-CN: 内存占用量 + en-US: Memory Usage + protocol: script + script: + scriptTool: powershell + charset: GBK + scriptCommand: + | + Write-Host "name id cpu ws"; + Get-Process | Sort-Object -Property CPU -Descending | Select-Object -First 10 | ForEach-Object { + $name = $_.Name -replace ' ', '_' + $id = $_.Id + $cpu = [math]::round($_.CPU, 0) + $ws = [math]::round($_.WS / 1MB, 0) + Write-Host "$name $id $cpu $ws" + } + parseType: multiRow + + - name: top_mem_process + i18n: + zh-CN: Top10 内存进程 + en-US: Top10 Memory Process + priority: 1 + fields: + - field: name + type: 1 + i18n: + zh-CN: 进程名称 + en-US: Process Name + - field: id + type: 1 + i18n: + zh-CN: 进程 ID + en-US: PID + - field: ws + type: 0 + unit: Mb + i18n: + zh-CN: 内存占用量 + en-US: Memory Usage + - field: cpu + type: 0 + unit: s + i18n: + zh-CN: CPU 占用时间 + en-US: CPU Usage Time + protocol: script + script: + scriptTool: powershell + charset: GBK + scriptCommand: + | + Write-Host "name id ws cpu"; + Get-Process | Sort-Object -Property WS -Descending | Select-Object -First 10 | ForEach-Object { + $name = $_.Name -replace ' ', '_' + $id = $_.Id + $ws = [math]::round($_.WS / 1MB, 0) + $cpu = [math]::round($_.CPU, 0) + Write-Host "$name $id $ws $cpu" + } + parseType: multiRow \ No newline at end of file diff --git a/manager/src/main/resources/sureness.yml b/manager/src/main/resources/sureness.yml index c7253ff88c8..d96f2a331d8 100644 --- a/manager/src/main/resources/sureness.yml +++ b/manager/src/main/resources/sureness.yml @@ -58,6 +58,10 @@ resourceRole: - /api/status/page/**===post===[admin,user] - /api/status/page/**===put===[admin,user] - /api/status/page/**===delete===[admin] + - /api/bulletin/**===get===[admin,user,guest] + - /api/bulletin/**===post===[admin,user] + - /api/bulletin/**===put===[admin,user] + - /api/bulletin/**===delete===[admin] # config the resource restful api that need bypass auth protection # rule: api===method diff --git a/manager/src/main/resources/templates/1-EmailTemplate.html b/manager/src/main/resources/templates/1-EmailTemplate.html index b793521a679..573aa635148 100644 --- a/manager/src/main/resources/templates/1-EmailTemplate.html +++ b/manager/src/main/resources/templates/1-EmailTemplate.html @@ -848,13 +848,7 @@ valign="middle" class="bmeFollowItemText" style="padding-right:10px;font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; text-align: left;"> - -
- tancloud.cn -
-
+ @@ -874,7 +868,7 @@ valign="middle" class="bmeFollowItemText" style="font-family: Arial, Helvetica, sans-serif; font-size: 14px; font-weight: normal; text-align: left;"> -
diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/ManagerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/ManagerTest.java index 14a9a5040cd..4f3fe7eb9bd 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/ManagerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/ManagerTest.java @@ -30,7 +30,7 @@ import org.apache.hertzbeat.alert.service.impl.AlertDefineServiceImpl; import org.apache.hertzbeat.alert.service.impl.AlertServiceImpl; import org.apache.hertzbeat.collector.collect.database.JdbcSpiLoader; -import org.apache.hertzbeat.collector.collect.http.promethus.PrometheusParseCreater; +import org.apache.hertzbeat.collector.collect.http.promethus.PrometheusParseCreator; import org.apache.hertzbeat.collector.collect.strategy.CollectStrategyFactory; import org.apache.hertzbeat.collector.dispatch.CommonDispatcher; import org.apache.hertzbeat.collector.dispatch.DispatchProperties; @@ -56,6 +56,7 @@ /** * Manager Test + * * @version 2.1 */ class ManagerTest extends AbstractSpringIntegrationTest { @@ -83,7 +84,7 @@ void testAutoImport() { assertNotNull(ctx.getBean(WorkerPool.class)); assertNotNull(ctx.getBean(CollectJobService.class)); assertNotNull(ctx.getBean(JdbcSpiLoader.class)); - assertNotNull(ctx.getBean(PrometheusParseCreater.class)); + assertNotNull(ctx.getBean(PrometheusParseCreator.class)); assertNotNull(ctx.getBean(DataSizeConvert.class)); assertNotNull(ctx.getBean(CollectStrategyFactory.class)); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarmTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarmTest.java index 22d94420ac6..9347a6c6493 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarmTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/DispatcherAlarmTest.java @@ -17,23 +17,115 @@ package org.apache.hertzbeat.manager.component.alerter; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.List; +import org.apache.hertzbeat.alert.AlerterWorkerPool; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.common.queue.CommonDataQueue; +import org.apache.hertzbeat.manager.service.NoticeConfigService; +import org.apache.hertzbeat.plugin.runner.PluginRunner; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; /** * Test case for {@link DispatcherAlarm} */ + +@ExtendWith(MockitoExtension.class) class DispatcherAlarmTest { + @Mock + private AlerterWorkerPool workerPool; + + @Mock + private CommonDataQueue dataQueue; + + @Mock + private NoticeConfigService noticeConfigService; + + @Mock + private AlertStoreHandler alertStoreHandler; + + @Mock + private PluginRunner pluginRunner; + + @Mock + private AlertNotifyHandler alertNotifyHandler; + + private DispatcherAlarm dispatcherAlarm; + + private static final int DISPATCH_THREADS = 3; + @BeforeEach void setUp() { + + List alertNotifyHandlerList = List.of(alertNotifyHandler); + dispatcherAlarm = new DispatcherAlarm( + workerPool, + dataQueue, + noticeConfigService, + alertStoreHandler, + alertNotifyHandlerList, + pluginRunner + ); + } + + @Test + void testAfterPropertiesSet() { + + dispatcherAlarm.afterPropertiesSet(); + verify(workerPool, times(DISPATCH_THREADS)).executeJob(any(Runnable.class)); } @Test - void afterPropertiesSet() { + void testSendNoticeMsg() { + + NoticeReceiver receiver = mock(NoticeReceiver.class); + NoticeTemplate noticeTemplate = mock(NoticeTemplate.class); + Alert alert = mock(Alert.class); + + assertTrue(dispatcherAlarm.sendNoticeMsg(receiver, noticeTemplate, alert)); + verify(alertNotifyHandler).send(receiver, noticeTemplate, alert); + } + + @Test + void testSendNoticeMsgReceiverNull() { + + Alert alert = mock(Alert.class); + boolean result = dispatcherAlarm.sendNoticeMsg(null, null, alert); + assertFalse(result); + } + + @Test + void testSendNoticeMsgReceiverTypeNull() { + + NoticeReceiver receiver = mock(NoticeReceiver.class); + Alert alert = mock(Alert.class); + when(receiver.getType()).thenReturn(null); + + boolean result = dispatcherAlarm.sendNoticeMsg(receiver, null, alert); + assertFalse(result); } @Test - void sendNoticeMsg() { + void testSendNoticeMsgNoHandler() { + + NoticeReceiver receiver = mock(NoticeReceiver.class); + Alert alert = mock(Alert.class); + when(receiver.getType()).thenReturn((byte) 2); + + assertFalse(dispatcherAlarm.sendNoticeMsg(receiver, null, alert)); } + } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/WarehouseAutoConfiguration.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/AliYunAlertNotifyHandlerImplTest.java similarity index 75% rename from warehouse/src/main/java/org/apache/hertzbeat/warehouse/WarehouseAutoConfiguration.java rename to manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/AliYunAlertNotifyHandlerImplTest.java index 498e487e1b2..c95776f8c88 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/WarehouseAutoConfiguration.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/AliYunAlertNotifyHandlerImplTest.java @@ -15,14 +15,12 @@ * limitations under the License. */ -package org.apache.hertzbeat.warehouse; +package org.apache.hertzbeat.manager.component.alerter.impl; -import org.springframework.context.annotation.ComponentScan; /** - * WarehouseAutoConfiguration class - * @version 2.1 + * Test case for {@link AliYunAlertNotifyHandlerImpl} */ -@ComponentScan(basePackages = "org.apache.hertzbeat.warehouse") -public class WarehouseAutoConfiguration { + +class AliYunAlertNotifyHandlerImplTest { } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DbAlertStoreHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DbAlertStoreHandlerImplTest.java index f9828ea80ac..566b5746252 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DbAlertStoreHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DbAlertStoreHandlerImplTest.java @@ -17,19 +17,148 @@ package org.apache.hertzbeat.manager.component.alerter.impl; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.HashMap; +import org.apache.hertzbeat.alert.service.AlertService; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.Monitor; +import org.apache.hertzbeat.manager.service.MonitorService; +import org.apache.hertzbeat.manager.support.exception.IgnoreException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; /** * Test case for {@link DbAlertStoreHandlerImpl} */ + +@ExtendWith(MockitoExtension.class) class DbAlertStoreHandlerImplTest { + @Mock + private MonitorService monitorService; + + @Mock + private AlertService alertService; + + @InjectMocks + private DbAlertStoreHandlerImpl dbAlertStoreHandler; + + private Alert alert; + @BeforeEach - void setUp() { + public void setUp() { + + alert = new Alert(); + alert.setTags(new HashMap<>()); + alert.setTarget(CommonConstants.AVAILABILITY); + alert.setStatus(CommonConstants.ALERT_STATUS_CODE_PENDING); + } + + @Test + public void testStoreMonitorNotExist() { + + alert.getTags().put(CommonConstants.TAG_MONITOR_ID, "1"); + when(monitorService.getMonitor(1L)).thenReturn(null); + + dbAlertStoreHandler.store(alert); + + verify(monitorService).getMonitor(1L); + verify(alertService, never()).addAlert(any(Alert.class)); + } + + @Test + public void testStoreMonitorPaused() { + + alert.getTags().put(CommonConstants.TAG_MONITOR_ID, "1"); + + Monitor monitor = new Monitor(); + monitor.setStatus(CommonConstants.MONITOR_PAUSED_CODE); + when(monitorService.getMonitor(1L)).thenReturn(monitor); + + dbAlertStoreHandler.store(alert); + + verify(monitorService).getMonitor(1L); + verify(alertService, never()).addAlert(any(Alert.class)); + } + + @Test + public void testStoreAvailabilityPendingAndMonitorUp() { + + alert.getTags().put(CommonConstants.TAG_MONITOR_ID, "1"); + + Monitor monitor = new Monitor(); + monitor.setId(1L); + monitor.setStatus(CommonConstants.MONITOR_UP_CODE); + when(monitorService.getMonitor(1L)).thenReturn(monitor); + + dbAlertStoreHandler.store(alert); + + verify(monitorService).updateMonitorStatus(1L, CommonConstants.MONITOR_DOWN_CODE); + verify(alertService).addAlert(alert); + } + + @Test + public void testStoreAvailabilityRestoredAndMonitorDown() { + + alert.getTags().put(CommonConstants.TAG_MONITOR_ID, "1"); + alert.setStatus(CommonConstants.ALERT_STATUS_CODE_RESTORED); + + Monitor monitor = new Monitor(); + monitor.setId(1L); + monitor.setStatus(CommonConstants.MONITOR_DOWN_CODE); + when(monitorService.getMonitor(1L)).thenReturn(monitor); + + dbAlertStoreHandler.store(alert); + + verify(monitorService).updateMonitorStatus(1L, CommonConstants.MONITOR_UP_CODE); + verify(alertService).addAlert(alert); + } + + @Test + public void testStoreIgnoreTagExists() { + + alert.getTags().put(CommonConstants.IGNORE, "true"); + + assertThrows(IgnoreException.class, () -> dbAlertStoreHandler.store(alert)); + } + + @Test + public void testStoreNoMonitorId() { + + alert.getTags().remove(CommonConstants.TAG_MONITOR_ID); + dbAlertStoreHandler.store(alert); + + verify(alertService).addAlert(alert); } @Test - void store() { + public void testStoreAddMonitorNameAndHostIfNotPresent() { + + alert.getTags().put(CommonConstants.TAG_MONITOR_ID, "1"); + + Monitor monitor = new Monitor(); + monitor.setId(1L); + monitor.setName("test-monitor"); + monitor.setHost("test-host"); + monitor.setStatus(CommonConstants.MONITOR_UP_CODE); + when(monitorService.getMonitor(1L)).thenReturn(monitor); + + dbAlertStoreHandler.store(alert); + + verify(monitorService).getMonitor(1L); + assertEquals("test-monitor", alert.getTags().get(CommonConstants.TAG_MONITOR_NAME)); + assertEquals("test-host", alert.getTags().get(CommonConstants.TAG_MONITOR_HOST)); + verify(alertService).addAlert(alert); } + } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DingTalkRobotAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DingTalkRobotAlertNotifyHandlerImplTest.java index 0df9e7bc472..8d4bfb25563 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DingTalkRobotAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DingTalkRobotAlertNotifyHandlerImplTest.java @@ -21,13 +21,13 @@ import java.util.HashMap; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link DingTalkRobotAlertNotifyHandlerImpl} @@ -41,7 +41,7 @@ class DingTalkRobotAlertNotifyHandlerImplTest extends AbstractSpringIntegrationT @Test void send() { String ddAccessToken = System.getenv("DD_ACCESS_TOKEN"); - if (!StringUtils.hasText(ddAccessToken)) { + if (StringUtils.isBlank(ddAccessToken)) { log.warn("Please provide environment variables DD_ACCESS_TOKEN"); return; } @@ -52,14 +52,15 @@ void send() { NoticeTemplate noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("dingding"); - noticeTemplate.setContent("#### [${title}]\n" - + "##### **${targetLabel}** : ${target}\n" - + "<#if (monitorId??)>##### **${monitorIdLabel}** : ${monitorId} \n" - + "<#if (monitorName??)>##### **${monitorNameLabel}** : ${monitorName} \n" - + "<#if (monitorHost??)>##### **${monitorHostLabel}** : ${monitorHost} \n" - + "##### **${priorityLabel}** : ${priority}\n" - + "##### **${triggerTimeLabel}** : ${triggerTime}\n" - + "##### **${contentLabel}** : ${content}"); + noticeTemplate.setContent(""" + #### [${title}] + ##### **${targetLabel}** : ${target} + <#if (monitorId??)>##### **${monitorIdLabel}** : ${monitorId} + <#if (monitorName??)>##### **${monitorNameLabel}** : ${monitorName} + <#if (monitorHost??)>##### **${monitorHostLabel}** : ${monitorHost} + ##### **${priorityLabel}** : ${priority} + ##### **${triggerTimeLabel}** : ${triggerTime} + ##### **${contentLabel}** : ${content}"""); Alert alert = new Alert(); alert.setId(1L); alert.setTarget("Mock Target"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DiscordBotAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DiscordBotAlertNotifyHandlerImplTest.java index f3573701496..ff5ca3436db 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DiscordBotAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/DiscordBotAlertNotifyHandlerImplTest.java @@ -20,13 +20,13 @@ import jakarta.annotation.Resource; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link DiscordBotAlertNotifyHandlerImpl} @@ -41,7 +41,7 @@ class DiscordBotAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTest void send() { var discordChannelId = System.getenv("DISCORD_CHANNEL_ID"); var discordBotToken = System.getenv("DISCORD_BOT_TOKEN"); - if (!StringUtils.hasText(discordChannelId) || !StringUtils.hasText(discordBotToken)) { + if (StringUtils.isBlank(discordChannelId) || StringUtils.isBlank(discordBotToken)) { log.warn("Please provide environment variables DISCORD_CHANNEL_ID, DISCORD_BOT_TOKEN"); return; } @@ -53,13 +53,14 @@ void send() { var noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("DiscordBot"); - noticeTemplate.setContent("${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); var alert = new Alert(); alert.setId(1L); alert.setTarget("Mock Target"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImplTest.java index da0171d225f..a4ec5d20a56 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/EmailAlertNotifyHandlerImplTest.java @@ -17,24 +17,93 @@ package org.apache.hertzbeat.manager.component.alerter.impl; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.fasterxml.jackson.databind.ObjectMapper; +import jakarta.mail.internet.MimeMessage; +import java.util.Date; +import java.util.Properties; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.service.MailService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.mail.javamail.JavaMailSenderImpl; +import org.springframework.mail.javamail.MimeMessageHelper; +import org.springframework.test.util.ReflectionTestUtils; /** * Test case for {@link EmailAlertNotifyHandlerImpl} */ + +@ExtendWith(MockitoExtension.class) class EmailAlertNotifyHandlerImplTest { + @Mock + private JavaMailSenderImpl javaMailSender; + + @Mock + private MailService mailService; + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + private JavaMailSenderImpl sender; + + @InjectMocks + private EmailAlertNotifyHandlerImpl emailAlertNotifyHandler; + @BeforeEach - void setUp() { - } + public void setUp() { - @Test - void send() { + ReflectionTestUtils.setField(emailAlertNotifyHandler, "host", "smtp.demo.com"); + ReflectionTestUtils.setField(emailAlertNotifyHandler, "username", "demo"); + ReflectionTestUtils.setField(emailAlertNotifyHandler, "password", "demo"); + ReflectionTestUtils.setField(emailAlertNotifyHandler, "port", 465); + ReflectionTestUtils.setField(emailAlertNotifyHandler, "sslEnable", true); } @Test - void type() { + void testSend() throws Exception { + + NoticeReceiver receiver = new NoticeReceiver(); + receiver.setEmail("receiver@example.com"); + + NoticeTemplate noticeTemplate = new NoticeTemplate(); + Alert alert = Alert.builder().build(); + + MimeMessage mimeMessage = mock(MimeMessage.class); + when(javaMailSender.createMimeMessage()).thenReturn(mimeMessage); + + Properties properties = new Properties(); + when(javaMailSender.getJavaMailProperties()).thenReturn(properties); + + when(mailService.buildAlertHtmlTemplate( + any(Alert.class), + any(NoticeTemplate.class)) + ).thenReturn("HTML Content"); + + emailAlertNotifyHandler.send(receiver, noticeTemplate, alert); + + verify(javaMailSender).send(mimeMessage); + + MimeMessageHelper helper = new MimeMessageHelper(mimeMessage, true, "UTF-8"); + helper.setFrom("demo"); + helper.setTo("receiver@example.com"); + helper.setSubject("Email Alert Notification"); + helper.setSentDate(new Date()); + helper.setText("HTML Content", true); } } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImplTest.java index 3d92ae3adb5..e6bd03da37b 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/FlyBookAlertNotifyHandlerImplTest.java @@ -21,13 +21,13 @@ import java.util.HashMap; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link FlyBookAlertNotifyHandlerImpl} @@ -41,7 +41,7 @@ class FlyBookAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTest { @Test void send() { String flyBookId = System.getenv("FLY_BOOK_ID"); - if (!StringUtils.hasText(flyBookId)) { + if (StringUtils.isBlank(flyBookId)) { log.warn("Please provide environment variables FLY_BOOK_ID"); return; } @@ -52,13 +52,14 @@ void send() { NoticeTemplate noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("FlyBook"); - noticeTemplate.setContent("{targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + {targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); Alert alert = new Alert(); alert.setId(1L); alert.setTarget("Mock Target"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImplTest.java new file mode 100644 index 00000000000..59dff98474d --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/GotifyAlertNotifyHandlerImplTest.java @@ -0,0 +1,141 @@ +/* + * 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.hertzbeat.manager.component.alerter.impl; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoMoreInteractions; +import static org.mockito.Mockito.when; +import java.util.ResourceBundle; +import org.apache.hertzbeat.alert.AlerterProperties; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.test.util.ReflectionTestUtils; +import org.springframework.web.client.RestTemplate; + +/** + * Test case for {@link GotifyAlertNotifyHandlerImpl} + */ + +class GotifyAlertNotifyHandlerImplTest { + + @Mock + private RestTemplate restTemplate; + + @Mock + private ResourceBundle bundle; + + private AlerterProperties alerterProperties; + + private GotifyAlertNotifyHandlerImpl notifyHandler; + + private NoticeTemplate noticeTemplate; + + private NoticeReceiver receiver; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + + noticeTemplate = mock(NoticeTemplate.class); + when(noticeTemplate.getContent()).thenReturn("This is a test notice template."); + + receiver = mock(NoticeReceiver.class); + when(receiver.getAccessToken()).thenReturn("dummyToken"); + + alerterProperties = mock(AlerterProperties.class); + when(alerterProperties.getGotifyWebhookUrl()).thenReturn("http://localhost:8080/gotify/webhook/%s"); + + notifyHandler = new GotifyAlertNotifyHandlerImpl(); + ReflectionTestUtils.setField(notifyHandler, "alerterProperties", alerterProperties); + ReflectionTestUtils.setField(notifyHandler, "restTemplate", restTemplate); + } + + @Test + public void testSendSuccess() throws AlertNoticeException { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class)) + ).thenReturn(new ResponseEntity<>(new CommonRobotNotifyResp(), HttpStatus.OK)); + + assertDoesNotThrow(() -> notifyHandler.send(receiver, noticeTemplate, alert)); + + verify(restTemplate).postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class) + ); + verify(restTemplate, times(1)).postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class) + ); + verifyNoMoreInteractions(bundle, restTemplate); + } + + @Test + public void testSendFailed() { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class)) + ).thenReturn(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR)); + + AlertNoticeException exception = assertThrows( + AlertNoticeException.class, + () -> notifyHandler.send(receiver, noticeTemplate, alert) + ); + + assertEquals("[Gotify Notify Error] Http StatusCode 500 INTERNAL_SERVER_ERROR", exception.getMessage()); + verify(restTemplate).postForEntity(anyString(), any(HttpEntity.class), eq(CommonRobotNotifyResp.class)); + verifyNoMoreInteractions(bundle, restTemplate); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/HuaweiCloudSmnAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/HuaweiCloudSmnAlertNotifyHandlerImplTest.java index ed25968d88e..8b6d697789e 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/HuaweiCloudSmnAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/HuaweiCloudSmnAlertNotifyHandlerImplTest.java @@ -18,13 +18,13 @@ import jakarta.annotation.Resource; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link HuaweiCloudSmnAlertNotifyHandlerImpl} @@ -38,27 +38,27 @@ class HuaweiCloudSmnAlertNotifyHandlerImplTest extends AbstractSpringIntegration @Test void send() throws InterruptedException { var smnProjectId = System.getenv("SMN_PROJECT_ID"); - if (!StringUtils.hasText(smnProjectId)) { + if (StringUtils.isBlank(smnProjectId)) { log.warn("Please provide environment variables SMN_PROJECT_ID"); return; } var smnAk = System.getenv("SMN_AK"); - if (!StringUtils.hasText(smnAk)) { + if (StringUtils.isBlank(smnAk)) { log.warn("Please provide environment variables SMN_AK"); return; } var smnSk = System.getenv("SMN_SK"); - if (!StringUtils.hasText(smnSk)) { + if (StringUtils.isBlank(smnSk)) { log.warn("Please provide environment variables SMN_SK"); return; } var smnRegion = System.getenv("SMN_REGION"); - if (!StringUtils.hasText(smnRegion)) { + if (StringUtils.isBlank(smnRegion)) { log.warn("Please provide environment variables SMN_REGION"); return; } var smnTopicUrn = System.getenv("SMN_TOPIC_URN"); - if (!StringUtils.hasText(smnTopicUrn)) { + if (StringUtils.isBlank(smnTopicUrn)) { log.warn("Please provide environment variables SMN_TOPIC_URN"); return; } @@ -73,14 +73,15 @@ void send() throws InterruptedException { var noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("HuaWeiCloud"); - noticeTemplate.setContent("[${title}]\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + [${title}] + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); var alert = new Alert(); alert.setId(1L); alert.setTarget("Mock Target"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImplTest.java new file mode 100644 index 00000000000..8d73f3eac08 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/ServerChanAlertNotifyHandlerImplTest.java @@ -0,0 +1,143 @@ +/* + * 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.hertzbeat.manager.component.alerter.impl; + +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import org.apache.hertzbeat.alert.AlerterProperties; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpHeaders; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.test.util.ReflectionTestUtils; +import org.springframework.web.client.RestTemplate; + +/** + * test case for {@link ServerChanAlertNotifyHandlerImpl} + */ + +class ServerChanAlertNotifyHandlerImplTest { + + @Mock + private RestTemplate restTemplate; + + @Mock + private HttpHeaders headers; + + private ServerChanAlertNotifyHandlerImpl notifyHandler; + + private NoticeTemplate noticeTemplate; + + private NoticeReceiver receiver; + + private AlerterProperties alerterProperties; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + noticeTemplate = mock(NoticeTemplate.class); + when(noticeTemplate.getContent()).thenReturn("This is a test notice template."); + + receiver = mock(NoticeReceiver.class); + when(receiver.getAccessToken()).thenReturn("dummyToken"); + + alerterProperties = mock(AlerterProperties.class); + when(alerterProperties.getServerChanWebhookUrl()).thenReturn("http://localhost:8080/webhook/%s"); + + notifyHandler = new ServerChanAlertNotifyHandlerImpl(); + ReflectionTestUtils.setField(notifyHandler, "restTemplate", restTemplate); + ReflectionTestUtils.setField(notifyHandler, "alerterProperties", alerterProperties); + } + + @Test + void testSendSuccess() { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + ServerChanAlertNotifyHandlerImpl.ServerChanWebHookDto serverChanWebHookDto = + new ServerChanAlertNotifyHandlerImpl.ServerChanWebHookDto(); + serverChanWebHookDto.setTitle("Test Title"); + serverChanWebHookDto.setDesp("Test Message"); + + ResponseEntity mockResponseEntity = + new ResponseEntity<>(new CommonRobotNotifyResp(), HttpStatus.OK); + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class)) + ).thenReturn(mockResponseEntity); + + notifyHandler.send(receiver, noticeTemplate, alert); + + verify(restTemplate, times(1)).postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class) + ); + } + + @Test + void testSendFailed() { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class)) + ).thenThrow(new RuntimeException("Simulated failure")); + + AlertNoticeException exception = assertThrows( + AlertNoticeException.class, + () -> notifyHandler.send(receiver, noticeTemplate, alert) + ); + assertTrue(exception.getMessage().contains("[ServerChan Notify Error]")); + + verify(restTemplate, times(1)).postForEntity( + anyString(), + any(HttpEntity.class), + eq(CommonRobotNotifyResp.class) + ); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SlackAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SlackAlertNotifyHandlerImplTest.java index d12790e8d66..3261798a26d 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SlackAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SlackAlertNotifyHandlerImplTest.java @@ -20,16 +20,17 @@ import jakarta.annotation.Resource; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link SlackAlertNotifyHandlerImpl} + * * @version 2.1 */ @Slf4j @@ -41,7 +42,7 @@ class SlackAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTest { @Test void send() { var slackWebHook = System.getenv("SLACK_WEB_HOOK"); - if (!StringUtils.hasText(slackWebHook)) { + if (StringUtils.isBlank(slackWebHook)) { log.warn("Please provide environment variables SLACK_WEB_HOOK"); return; } @@ -55,14 +56,15 @@ void send() { var noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("Slack"); - noticeTemplate.setContent("*[${title}]*\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + *[${title}]* + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); var map = Map.of( CommonConstants.TAG_MONITOR_ID, "Mock monitor id", CommonConstants.TAG_MONITOR_NAME, "Mock monitor name", diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java new file mode 100644 index 00000000000..354326e721b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/SmsAlertNotifyHandlerImplTest.java @@ -0,0 +1,121 @@ +/* + * 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.hertzbeat.manager.component.alerter.impl; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.doThrow; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Locale; +import java.util.Map; +import java.util.ResourceBundle; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.service.TencentSmsClient; +import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link SmsAlertNotifyHandlerImpl} + */ + +class SmsAlertNotifyHandlerImplTest { + + + @Mock + private TencentSmsClient tencentSmsClient; + + private SmsAlertNotifyHandlerImpl notifyHandler; + + private NoticeTemplate noticeTemplate; + + private NoticeReceiver receiver; + + private ResourceBundle bundle; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + + noticeTemplate = mock(NoticeTemplate.class); + when(noticeTemplate.getContent()).thenReturn("This is a test notice template."); + + receiver = mock(NoticeReceiver.class); + when(receiver.getPhone()).thenReturn("1234567890"); + + bundle = mock(ResourceBundle.class); + when(bundle.getString(anyString())).thenReturn("High"); + + Locale.setDefault(Locale.ENGLISH); + + notifyHandler = new SmsAlertNotifyHandlerImpl(tencentSmsClient); + } + + @Test + public void testSendSuccess() throws AlertNoticeException { + + Alert alert = Alert.builder() + .content("Alert Content") + .priority((byte) 1) + .target("TestTarget") + .tags(Map.of(CommonConstants.TAG_MONITOR_NAME, "MonitorName")) + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + when(bundle.getString("alerter.priority.1")).thenReturn("High"); + + notifyHandler.send(receiver, noticeTemplate, alert); + + String[] expectedParams = {"MonitorName", "Critical Alert", "Alert Content"}; + verify(tencentSmsClient).sendMessage(expectedParams, new String[]{"1234567890"}); + } + + @Test + public void testSendFailed() { + + Alert alert = Alert.builder() + .content("Alert Content") + .priority((byte) 1) + .target("TestTarget") + .tags(Map.of(CommonConstants.TAG_MONITOR_NAME, "MonitorName")) + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + Mockito.when(bundle.getString("alerter.priority.1")).thenReturn("High"); + + doThrow(new RuntimeException("[Sms Notify Error]")).when(tencentSmsClient).sendMessage(any(), any()); + + Exception exception = Assertions.assertThrows( + AlertNoticeException.class, + () -> notifyHandler.send(receiver, noticeTemplate, alert) + ); + assertEquals("[Sms Notify Error] [Sms Notify Error]", exception.getMessage()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/TelegramBotAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/TelegramBotAlertNotifyHandlerImplTest.java index ec2afb99742..438fdf527a5 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/TelegramBotAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/TelegramBotAlertNotifyHandlerImplTest.java @@ -21,16 +21,17 @@ import java.util.HashMap; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link TelegramBotAlertNotifyHandlerImpl} + * * @version 2.1 */ @Slf4j @@ -43,7 +44,7 @@ class TelegramBotAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTes void send() { String tgBotToken = System.getenv("TG_BOT_TOKEN"); String tgUserId = System.getenv("TG_USER_ID"); - if (!StringUtils.hasText(tgBotToken) || !StringUtils.hasText(tgUserId)) { + if (StringUtils.isBlank(tgBotToken) || StringUtils.isBlank(tgUserId)) { log.warn("Please provide environment variables TG_BOT_TOKEN, TG_USER_ID"); return; } @@ -58,14 +59,15 @@ void send() { NoticeTemplate noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("Telegram"); - noticeTemplate.setContent("[${title}]\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + [${title}] + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); Map map = new HashMap<>(); map.put(CommonConstants.TAG_MONITOR_ID, "Mock monitor id"); map.put(CommonConstants.TAG_MONITOR_NAME, "Mock monitor name"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAppAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAppAlertNotifyHandlerImplTest.java index 13d4d0770f5..642d8f8d5a1 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAppAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeChatAppAlertNotifyHandlerImplTest.java @@ -21,13 +21,13 @@ import java.util.HashMap; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * unit test case for WeChatAppAlertNotifyHandlerImpl @@ -43,7 +43,7 @@ public void send() { String corpId = System.getenv("CORP_ID"); String agentId = System.getenv("AGENT_ID"); String appSecret = System.getenv("APP_SECRET"); - if (!StringUtils.hasText(corpId) || !StringUtils.hasText(agentId) || !StringUtils.hasText(appSecret)) { + if (StringUtils.isBlank(corpId) || StringUtils.isBlank(agentId) || StringUtils.isBlank(appSecret)) { log.warn("Please provide environment variables CORP_ID, TG_USER_ID APP_SECRET"); return; } @@ -56,7 +56,7 @@ public void send() { Alert alert = new Alert(); alert.setId(1L); alert.setTarget("Mock Target"); - NoticeTemplate noticeTemplate=new NoticeTemplate(); + NoticeTemplate noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("WeChatApp"); noticeTemplate.setContent(""); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImplTest.java new file mode 100644 index 00000000000..ad95a826c68 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComAppAlertNotifyHandlerImplTest.java @@ -0,0 +1,133 @@ +/* + * 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.hertzbeat.manager.component.alerter.impl; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.net.URI; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.HttpEntity; +import org.springframework.http.ResponseEntity; +import org.springframework.web.client.RestTemplate; + +/** + * test case for {@link WeComAppAlertNotifyHandlerImpl} + */ + +@ExtendWith(MockitoExtension.class) +class WeComAppAlertNotifyHandlerImplTest { + + @InjectMocks + private WeComAppAlertNotifyHandlerImpl weComAppAlertNotifyHandler; + + @Mock + private RestTemplate restTemplate; + + private NoticeReceiver receiver; + + private NoticeTemplate noticeTemplate; + + private Alert alert; + + @BeforeEach + void setUp() { + + receiver = new NoticeReceiver(); + receiver.setCorpId("testCorpId"); + receiver.setAgentId(1000001); + receiver.setAppSecret("testAppSecret"); + receiver.setUserId("testUserId"); + receiver.setPartyId("testPartyId"); + receiver.setTagId("testTagId"); + + noticeTemplate = mock(NoticeTemplate.class); + when(noticeTemplate.getContent()).thenReturn("This is a test notice template."); + + alert = new Alert(); + alert.setId(1L); + alert.setLastAlarmTime(System.currentTimeMillis()); + alert.setContent("This is a test alert."); + + weComAppAlertNotifyHandler = new WeComAppAlertNotifyHandlerImpl(restTemplate); + } + + @Test + void testSendSuccess() throws AlertNoticeException { + + WeComAppAlertNotifyHandlerImpl.WeChatAppReq tokenResponse = new WeComAppAlertNotifyHandlerImpl.WeChatAppReq(); + tokenResponse.setAccessToken("testAccessToken"); + when(restTemplate.getForEntity( + anyString(), + eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class) + )).thenReturn(ResponseEntity.ok(tokenResponse)); + + WeComAppAlertNotifyHandlerImpl.WeChatAppReq sendResponse = new WeComAppAlertNotifyHandlerImpl.WeChatAppReq(); + sendResponse.setErrCode(0); + sendResponse.setErrMsg("ok"); + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class) + )).thenReturn(ResponseEntity.ok(sendResponse)); + + weComAppAlertNotifyHandler.send(receiver, noticeTemplate, alert); + + verify(restTemplate, times(1)).getForEntity(anyString(), eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class)); + verify(restTemplate, times(1)).postForEntity(anyString(), any(HttpEntity.class), eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class)); + } + + @Test + void testSendFail() { + + WeComAppAlertNotifyHandlerImpl.WeChatAppReq tokenResponse = new WeComAppAlertNotifyHandlerImpl.WeChatAppReq(); + tokenResponse.setErrCode(40013); + tokenResponse.setErrMsg("invalid corpid"); + when(restTemplate.getForEntity( + anyString(), + eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class) + )).thenReturn(ResponseEntity.ok(tokenResponse)); + + Assertions.assertThrows( + AlertNoticeException.class, + () -> weComAppAlertNotifyHandler.send(receiver, noticeTemplate, alert) + ); + + verify(restTemplate, never()).postForEntity( + any(URI.class), + any(HttpEntity.class), + eq(WeComAppAlertNotifyHandlerImpl.WeChatAppReq.class) + ); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComRobotAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComRobotAlertNotifyHandlerImplTest.java index 1fde648e2b5..08de0ed3054 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComRobotAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WeComRobotAlertNotifyHandlerImplTest.java @@ -21,13 +21,13 @@ import java.util.HashMap; import java.util.Map; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.alerter.Alert; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; import org.junit.jupiter.api.Test; -import org.springframework.util.StringUtils; /** * Test case for {@link WeComRobotAlertNotifyHandlerImpl} @@ -41,7 +41,7 @@ class WeComRobotAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTest @Test void send() { String weWorkKey = System.getenv("WE_WORK_KEY"); - if (!StringUtils.hasText(weWorkKey)) { + if (StringUtils.isBlank(weWorkKey)) { log.warn("Please provide environment variables WE_WORK_KEY"); return; } @@ -55,14 +55,15 @@ void send() { NoticeTemplate noticeTemplate = new NoticeTemplate(); noticeTemplate.setId(1L); noticeTemplate.setName("WeWork"); - noticeTemplate.setContent("[${title}]\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "<#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + noticeTemplate.setContent(""" + [${title}] + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + <#if (monitorHost??)>${monitorHostLabel} : ${monitorHost} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); Map map = new HashMap<>(); map.put(CommonConstants.TAG_MONITOR_ID, "Mock monitor id"); map.put(CommonConstants.TAG_MONITOR_NAME, "Mock monitor name"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImplTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImplTest.java index 9a2774c51b9..77c52805597 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImplTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/impl/WebHookAlertNotifyHandlerImplTest.java @@ -17,26 +17,120 @@ package org.apache.hertzbeat.manager.component.alerter.impl; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.verifyNoMoreInteractions; +import static org.mockito.Mockito.when; import lombok.extern.slf4j.Slf4j; -import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; +import org.apache.hertzbeat.common.entity.alerter.Alert; +import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; +import org.apache.hertzbeat.common.entity.manager.NoticeTemplate; +import org.apache.hertzbeat.manager.support.exception.AlertNoticeException; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.http.HttpEntity; +import org.springframework.http.HttpStatus; +import org.springframework.http.ResponseEntity; +import org.springframework.test.util.ReflectionTestUtils; +import org.springframework.web.client.RestTemplate; /** * Test case for {@link WebHookAlertNotifyHandlerImpl} */ + @Slf4j -class WebHookAlertNotifyHandlerImplTest extends AbstractSpringIntegrationTest { +class WebHookAlertNotifyHandlerImplTest { + + @Mock + private RestTemplate restTemplate; + + private WebHookAlertNotifyHandlerImpl notifyHandler; + + private NoticeTemplate noticeTemplate; + + private NoticeReceiver receiver; @BeforeEach - void setUp() { + public void setUp() { + + MockitoAnnotations.openMocks(this); + + noticeTemplate = mock(NoticeTemplate.class); + when(noticeTemplate.getContent()).thenReturn("This is a test notice template."); + + receiver = mock(NoticeReceiver.class); + when(receiver.getHookUrl()).thenReturn("http://localhost:8080/hook/"); + + notifyHandler = new WebHookAlertNotifyHandlerImpl(); + ReflectionTestUtils.setField(notifyHandler, "restTemplate", restTemplate); } @Test - void send() { + public void testSendSuccess() throws AlertNoticeException { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(String.class)) + ).thenReturn(new ResponseEntity<>("", HttpStatus.OK)); + + assertDoesNotThrow(() -> notifyHandler.send(receiver, noticeTemplate, alert)); + + verify(restTemplate).postForEntity( + anyString(), + any(HttpEntity.class), + eq(String.class) + ); + verify(restTemplate, times(1)).postForEntity( + anyString(), + any(HttpEntity.class), + eq(String.class) + ); + verifyNoMoreInteractions(restTemplate); } @Test - void type() { + public void testSendFailed() { + + Alert alert = Alert.builder() + .content("Alert Content") + .lastAlarmTime(System.currentTimeMillis()) + .id(1L) + .build(); + + when(restTemplate.postForEntity( + anyString(), + any(HttpEntity.class), + eq(String.class)) + ).thenReturn(new ResponseEntity<>(HttpStatus.INTERNAL_SERVER_ERROR)); + + AlertNoticeException exception = assertThrows( + AlertNoticeException.class, + () -> notifyHandler.send(receiver, noticeTemplate, alert) + ); + + assertEquals("[WebHook Notify Error] Http StatusCode 500 INTERNAL_SERVER_ERROR", exception.getMessage()); + verify(restTemplate).postForEntity( + anyString(), + any(HttpEntity.class), + eq(String.class)); + verifyNoMoreInteractions(restTemplate); } + } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/listener/TimeZoneListenerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/component/listener/TimeZoneListenerTest.java new file mode 100644 index 00000000000..c2c24a9280b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/component/listener/TimeZoneListenerTest.java @@ -0,0 +1,75 @@ +/* + * 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.hertzbeat.manager.component.listener; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.text.SimpleDateFormat; +import java.util.TimeZone; +import org.apache.hertzbeat.common.support.event.SystemConfigChangeEvent; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link TimeZoneListener} + */ + +@ExtendWith(MockitoExtension.class) +class TimeZoneListenerTest { + + @Mock + private ObjectMapper objectMapper; + + @InjectMocks + private TimeZoneListener timeZoneListener; + + @Mock + private SystemConfigChangeEvent event; + + @BeforeEach + void setUp() { + + ReflectionTestUtils.setField(timeZoneListener, "objectMapper", objectMapper); + } + + @Test + void testOnEvent() { + + when(objectMapper.setTimeZone(any(TimeZone.class))).thenReturn(objectMapper); + when(objectMapper.setDateFormat(any(SimpleDateFormat.class))).thenReturn(objectMapper); + + Object eventSource = new Object(); + when(event.getSource()).thenReturn(eventSource); + + timeZoneListener.onEvent(event); + + SimpleDateFormat expectedDateFormat = new SimpleDateFormat("yyyy-MM-dd'T'HH:mm:ss.SSSX"); + expectedDateFormat.setTimeZone(TimeZone.getDefault()); + + verify(objectMapper).setTimeZone(TimeZone.getDefault()); + verify(objectMapper).setDateFormat(expectedDateFormat); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/AccountControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AccountControllerTest.java index 634c32a4ef3..cb50ea0e18b 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/AccountControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AccountControllerTest.java @@ -20,13 +20,19 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import com.usthe.sureness.util.JsonWebTokenUtil; +import java.util.HashMap; +import java.util.Map; +import javax.naming.AuthenticationException; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.util.JsonUtil; import org.apache.hertzbeat.manager.pojo.dto.LoginDto; +import org.apache.hertzbeat.manager.service.AccountService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; @@ -43,6 +49,8 @@ class AccountControllerTest { @InjectMocks private AccountController accountController; + @Mock + private AccountService accountService; @BeforeEach void setUp() { @@ -59,6 +67,12 @@ void authGetToken() throws Exception { .identifier("admin") .credential("hertzbeat") .build(); + Map resp = new HashMap<>(2); + resp.put("token", "token"); + resp.put("refreshToken", "refreshToken"); + resp.put("role", "roles"); + Mockito.when(accountService.authGetToken(loginDto)).thenReturn(resp); + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/account/auth/form") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(loginDto))) @@ -67,6 +81,7 @@ void authGetToken() throws Exception { .andExpect(jsonPath("$.data.token").exists()) .andReturn(); loginDto.setCredential("wrong_credential"); + Mockito.when(accountService.authGetToken(loginDto)).thenThrow(new AuthenticationException()); this.mockMvc.perform(MockMvcRequestBuilders.post("/api/account/auth/form") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(loginDto))) @@ -76,8 +91,10 @@ void authGetToken() throws Exception { @Test void refreshToken() throws Exception { + String refreshToken = "123456"; + Mockito.when(accountService.refreshToken(refreshToken)).thenThrow(new AuthenticationException()); this.mockMvc.perform(MockMvcRequestBuilders.get("/api/account/auth/refresh/{refreshToken}", - "123456")) + refreshToken)) .andExpect(jsonPath("$.code").value((int) CommonConstants.MONITOR_LOGIN_FAILED_CODE)) .andReturn(); } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/AiControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AiControllerTest.java new file mode 100644 index 00000000000..1ff970887a7 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AiControllerTest.java @@ -0,0 +1,85 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.content; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import org.apache.hertzbeat.manager.config.AiProperties; +import org.apache.hertzbeat.manager.service.ai.AiService; +import org.apache.hertzbeat.manager.service.ai.factory.AiServiceFactoryImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.http.codec.ServerSentEvent; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.setup.MockMvcBuilders; +import reactor.core.publisher.Flux; + +/** + * test case for {@link AiController} + */ + +@ExtendWith(MockitoExtension.class) +class AiControllerTest { + + private MockMvc mockMvc; + + @Mock + private AiServiceFactoryImpl aiServiceFactory; + + @Mock + private AiProperties aiProperties; + + @Mock + private AiService aiService; + + @InjectMocks + private AiController aiController; + + @BeforeEach + public void setup() { + + mockMvc = MockMvcBuilders.standaloneSetup(aiController).build(); + } + + @Test + public void testRequestAi() throws Exception { + + String responseText = "response"; + Flux> responseFlux = Flux.just(ServerSentEvent.builder(responseText).build()); + + when(aiServiceFactory.getAiServiceImplBean(anyString())).thenReturn(aiService); + when(aiService.requestAi(anyString())).thenReturn(responseFlux); + when(aiProperties.getType()).thenReturn("alibabaAi"); + + mockMvc.perform(get("/api/ai/get") + .param("text", "Who are you") + .accept(MediaType.TEXT_EVENT_STREAM)) + .andExpect(status().isOk()) + .andExpect(content().contentType(MediaType.TEXT_EVENT_STREAM_VALUE)) + .andExpect(content().string("data:response\n\n")); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/AppControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AppControllerTest.java index a3f9da2c4d7..01668a72e60 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/AppControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/AppControllerTest.java @@ -239,8 +239,8 @@ void queryAppsHierarchy() throws Exception { // Request interface this.mockMvc.perform(MockMvcRequestBuilders.get("/api/apps/hierarchy", "zh-CN")) - .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - .andExpect(jsonPath("$.data[0].category").value("os")) - .andReturn(); + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.data[0].category").value("os")) + .andReturn(); } } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/BulletinControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/BulletinControllerTest.java new file mode 100644 index 00000000000..2001dcfc06a --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/BulletinControllerTest.java @@ -0,0 +1,185 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doAnswer; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; + +import java.util.ArrayList; +import java.util.List; + +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.manager.bulletin.Bulletin; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinDto; +import org.apache.hertzbeat.common.entity.manager.bulletin.BulletinMetricsData; +import org.apache.hertzbeat.manager.service.BulletinService; +import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.junit.jupiter.MockitoExtension; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; +import org.springframework.test.web.servlet.setup.MockMvcBuilders; + +/** + * Test case for {@link BulletinController} + */ +@ExtendWith(MockitoExtension.class) +class BulletinControllerTest { + private MockMvc mockMvc; + + @InjectMocks + private BulletinController bulletinController; + @Mock + private BulletinService bulletinService; + @Mock + private RealTimeDataReader realTimeDataReader; + + @BeforeEach + void setUp() { + this.mockMvc = MockMvcBuilders.standaloneSetup(bulletinController).build(); + } + + @Test + void testAddNewBulletin() throws Exception { + BulletinDto bulletinDto = new BulletinDto(); + doAnswer(invocation -> { + throw new IllegalArgumentException("Invalid bulletin"); + }).when(bulletinService).validate(bulletinDto); + + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/bulletin") + .contentType("application/json") + .content("{}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)); + + doAnswer(invocation -> { + return null; + }).when(bulletinService).validate(bulletinDto); + doAnswer(invocation -> { + return null; + }).when(bulletinService).addBulletin(bulletinDto); + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/bulletin") + .contentType("application/json") + .content("{}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + void testEditBulletin() throws Exception { + BulletinDto bulletinDto = new BulletinDto(); + doAnswer(invocation -> { + throw new IllegalArgumentException("Invalid bulletin"); + }).when(bulletinService).validate(bulletinDto); + + this.mockMvc.perform(MockMvcRequestBuilders.put("/api/bulletin") + .contentType("application/json") + .content("{}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)); + + doAnswer(invocation -> { + return null; + }).when(bulletinService).validate(bulletinDto); + doAnswer(invocation -> { + return null; + }).when(bulletinService).editBulletin(bulletinDto); + this.mockMvc.perform(MockMvcRequestBuilders.put("/api/bulletin") + .contentType("application/json") + .content("{}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + void testGetBulletinByName() throws Exception { + Mockito.when(bulletinService.getBulletinByName(any(String.class))).thenReturn(null); + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/bulletin/{name}", "test")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + + Mockito.when(bulletinService.getBulletinByName(any(String.class))).thenThrow(new RuntimeException("test")); + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/bulletin/{name}", "test")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)); + } + + @Test + void testGetAllNames() throws Exception { + List names = new ArrayList(); + names.add("one"); + names.add("two"); + Mockito.when(bulletinService.getAllNames()).thenReturn(names); + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/bulletin/names")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.data[0]").value("one")) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + void testDeleteBulletinByName() throws Exception { + Mockito.doNothing().when(bulletinService).deleteBulletinByName(any(List.class)); + this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/bulletin") + .param("names", "one")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + + // will throw exception + Mockito.doThrow(new RuntimeException("test")).when(bulletinService).deleteBulletinByName(any(List.class)); + this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/bulletin") + .param("names", "one")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)); + } + + @Test + void testGetAllMetricsData() throws Exception { + // server is not available + Mockito.when(realTimeDataReader.isServerAvailable()).thenReturn(false); + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/bulletin/metrics") + .param("name", "test") + .param("pageIndex", "0") + .param("pageSize", "10")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)); + + // normal + Bulletin bulletin = new Bulletin(); + BulletinMetricsData data = new BulletinMetricsData(); + data.setName("sample"); + Mockito.when(realTimeDataReader.isServerAvailable()).thenReturn(true); + Mockito.when(bulletinService.getBulletinByName(any(String.class))) + .thenReturn(bulletin); + Mockito.when(bulletinService.buildBulletinMetricsData(any(BulletinMetricsData.BulletinMetricsDataBuilder.class), any(Bulletin.class))) + .thenReturn(data); + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/bulletin/metrics") + .param("name", "test") + .param("pageIndex", "0") + .param("pageSize", "10")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.data.name").value("sample")) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/CollectorControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/CollectorControllerTest.java new file mode 100644 index 00000000000..9882edac1c7 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/CollectorControllerTest.java @@ -0,0 +1,124 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import java.util.ArrayList; +import java.util.List; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.manager.scheduler.netty.ManageServer; +import org.apache.hertzbeat.manager.service.impl.CollectorServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; +import org.springframework.test.web.servlet.setup.MockMvcBuilders; + +/** + * Test case for {@link CollectorController} + */ +@ExtendWith(MockitoExtension.class) +@Slf4j +public class CollectorControllerTest { + + private MockMvc mockMvc; + + @InjectMocks + private CollectorController collectorController; + + @Mock + private CollectorServiceImpl collectorService; + + @Mock + private ManageServer manageServer; + + @BeforeEach + void setUp() { + this.mockMvc = MockMvcBuilders.standaloneSetup(collectorController).build(); + } + + @Test + public void getCollectors() throws Exception { + this.mockMvc.perform(MockMvcRequestBuilders.get( + "/api/collector?name={name}&pageIndex={pageIndex}&pageSize={pageSize}", + "tom", 0, 10)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + @Test + public void onlineCollector() throws Exception { + List collectors = new ArrayList<>(); + collectors.add("demo-collector"); + this.mockMvc.perform(MockMvcRequestBuilders.put( + "/api/collector/online") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(collectors))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + @Test + public void offlineCollector() throws Exception { + List collectors = new ArrayList<>(); + collectors.add("demo-collector"); + this.mockMvc.perform(MockMvcRequestBuilders.put( + "/api/collector/offline") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(collectors))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + + @Test + public void deleteCollector() throws Exception { + List collectors = new ArrayList<>(); + collectors.add("demo-collector"); + this.mockMvc.perform(MockMvcRequestBuilders.delete( + "/api/collector") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(collectors))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + @Test + public void generateCollectorDeployInfo() throws Exception { + this.mockMvc.perform(MockMvcRequestBuilders.post( + "/api/collector/generate/{collector}", + "demo-collector")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/GeneralConfigControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/GeneralConfigControllerTest.java new file mode 100644 index 00000000000..b17005701ac --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/GeneralConfigControllerTest.java @@ -0,0 +1,99 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; +import org.apache.hertzbeat.manager.service.impl.ConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * Test case for {@link GeneralConfigController} + */ + +@ExtendWith(MockitoExtension.class) +class GeneralConfigControllerTest { + + private MockMvc mockMvc; + + @Mock + private ConfigServiceImpl configService; + + @InjectMocks + private GeneralConfigController generalConfigController; + + @BeforeEach + public void setup() { + + mockMvc = standaloneSetup(generalConfigController).build(); + } + + @Test + public void testSaveOrUpdateConfig() throws Exception { + + doNothing().when(configService).saveConfig(anyString(), any()); + + mockMvc.perform(post("/api/config/email") + .contentType(MediaType.APPLICATION_JSON) + .content("{\"key\":\"value\"}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Update config success")); + } + + @Test + public void testGetConfig() throws Exception { + + when(configService.getConfig(anyString())).thenReturn(any()); + + mockMvc.perform(get("/api/config/email") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testUpdateTemplateAppConfig() throws Exception { + + doNothing().when(configService).updateTemplateAppConfig(anyString(), any(TemplateConfig.AppTemplate.class)); + + mockMvc.perform(put("/api/config/template/appName") + .contentType(MediaType.APPLICATION_JSON) + .content("{\"templateKey\":\"templateValue\"}")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/MetricsControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MetricsControllerTest.java new file mode 100644 index 00000000000..0ddba501a1b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MetricsControllerTest.java @@ -0,0 +1,75 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import java.util.HashMap; +import java.util.Map; +import org.apache.hertzbeat.common.queue.impl.InMemoryCommonDataQueue; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * Test case for {@link MetricsController} + */ + +@ExtendWith(MockitoExtension.class) +class MetricsControllerTest { + + private MockMvc mockMvc; + + @Mock + private InMemoryCommonDataQueue commonDataQueue; + + @InjectMocks + private MetricsController metricsController; + + @BeforeEach + public void setup() { + + mockMvc = standaloneSetup(metricsController).build(); + } + + @Test + public void testGetMetricsInfo() throws Exception { + + Map queueInfo = new HashMap<>(); + queueInfo.put("metric1", 100); + queueInfo.put("metric2", 200); + + when(commonDataQueue.getQueueSizeMetricsInfo()).thenReturn(queueInfo); + + mockMvc.perform(get("/api/metrics") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value(0)) + .andExpect(jsonPath("$.data.metric1").value(100)) + .andExpect(jsonPath("$.data.metric2").value(200)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorControllerTest.java index 98253bc8fda..aa1cb95e857 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorControllerTest.java @@ -53,7 +53,7 @@ class MonitorControllerTest { @InjectMocks private MonitorController monitorController; - public MonitorDto DataTest(){ + public MonitorDto dataTest() { Monitor monitor = new Monitor(); monitor.setApp("website"); monitor.setId(87584674384L); @@ -87,10 +87,10 @@ void setUp() { @Test void addNewMonitor() throws Exception { - MonitorDto monitorDto = DataTest(); + MonitorDto monitorDto = dataTest(); this.mockMvc.perform(MockMvcRequestBuilders.post("/api/monitor") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(monitorDto))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(monitorDto))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -99,11 +99,11 @@ void addNewMonitor() throws Exception { @Test void modifyMonitor() throws Exception { - MonitorDto monitorDto = DataTest(); + MonitorDto monitorDto = dataTest(); this.mockMvc.perform(MockMvcRequestBuilders.put("/api/monitor") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(monitorDto))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(monitorDto))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -161,7 +161,7 @@ void deleteMonitor() throws Exception { @Test void detectMonitor() throws Exception { - MonitorDto monitorDto = DataTest(); + MonitorDto monitorDto = dataTest(); this.mockMvc.perform(MockMvcRequestBuilders.post("/api/monitor/detect") .contentType(MediaType.APPLICATION_JSON) @@ -174,7 +174,7 @@ void detectMonitor() throws Exception { @Test void addNewMonitorOptionalMetrics() throws Exception { - MonitorDto monitorDto = DataTest(); + MonitorDto monitorDto = dataTest(); this.mockMvc.perform(MockMvcRequestBuilders.post("/api/monitor/optional") .contentType(MediaType.APPLICATION_JSON) diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorsControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorsControllerTest.java index c8d5bc873fa..5ace90bec71 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorsControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/MonitorsControllerTest.java @@ -17,10 +17,13 @@ package org.apache.hertzbeat.manager.controller; +import static org.mockito.Mockito.doNothing; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import java.util.stream.Collectors; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.util.JsonUtil; import org.apache.hertzbeat.manager.service.impl.MonitorServiceImpl; @@ -29,6 +32,7 @@ import org.junit.jupiter.api.extension.ExtendWith; import org.mockito.InjectMocks; import org.mockito.Mock; +import org.mockito.Mockito; import org.mockito.junit.jupiter.MockitoExtension; import org.springframework.http.MediaType; import org.springframework.test.web.servlet.MockMvc; @@ -58,12 +62,12 @@ void setUp() { void getMonitors() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get( - "/api/monitors?app={app}&ids={ids}&host={host}&id={id}", + "/api/monitors?app={app}&ids={ids}&host={host}&id={id}", "website", - 6565463543L, - "127.0.0.1", - "id" - )) + 6565463543L, + "127.0.0.1", + "id" + )) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -83,8 +87,8 @@ void deleteMonitors() throws Exception { ids.add(6565463543L); this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/monitors") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(ids))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(ids))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -96,8 +100,8 @@ void cancelManageMonitors() throws Exception { ids.add(6565463543L); this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/monitors/manage") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(ids))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(ids))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); @@ -115,4 +119,41 @@ void enableManageMonitors() throws Exception { .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andReturn(); } + + @Test + void export() throws Exception { + List ids = Arrays.asList(6565463543L, 6565463544L); + String type = "JSON"; + + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/monitors/export") + .param("ids", ids.stream().map(String::valueOf).collect(Collectors.joining(","))) + .param("type", type)) + .andExpect(status().isOk()) + .andReturn(); + } + + @Test + void export2() throws Exception { + // Mock the behavior of monitorService.importConfig + doNothing().when(monitorService).importConfig(Mockito.any()); + + // Perform the request and verify the response + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/monitors/import") + .contentType(MediaType.MULTIPART_FORM_DATA) + .param("file", "testFileContent")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value("0")) + .andExpect(jsonPath("$.msg").value("Import success")); + } + + @Test + void duplicateMonitors() throws Exception { + // Mock the behavior of monitorService.copyMonitors + doNothing().when(monitorService).copyMonitors(List.of(6565463543L)); + + // Perform the POST request and verify the response + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/monitors/copy") + .param("ids", "6565463543")) + .andExpect(status().isOk()); + } } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/NoticeConfigControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/NoticeConfigControllerTest.java index 33a775818a5..e011b44784b 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/NoticeConfigControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/NoticeConfigControllerTest.java @@ -17,10 +17,21 @@ package org.apache.hertzbeat.manager.controller; +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import java.util.ArrayList; +import java.util.Arrays; import java.util.List; +import java.util.Optional; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.manager.NoticeReceiver; import org.apache.hertzbeat.common.entity.manager.NoticeRule; @@ -55,7 +66,7 @@ class NoticeConfigControllerTest { private NoticeConfigController noticeConfigController; - public NoticeRule getNoticeRule(){ + public NoticeRule getNoticeRule() { List tags = new ArrayList<>(); TagItem tagItem = new TagItem(); tagItem.setName("key1"); @@ -76,7 +87,7 @@ public NoticeRule getNoticeRule(){ return noticeRule; } - public NoticeReceiver getNoticeReceiver(){ + public NoticeReceiver getNoticeReceiver() { NoticeReceiver noticeReceiver = new NoticeReceiver(); noticeReceiver.setName("tom"); @@ -85,22 +96,22 @@ public NoticeReceiver getNoticeReceiver(){ noticeReceiver.setEmail("2762242004@qq.com"); noticeReceiver.setHookUrl("https://www.tancloud.cn"); noticeReceiver.setType((byte) 5); - return noticeReceiver; } - public NoticeTemplate getNoticeTemplate(){ + public NoticeTemplate getNoticeTemplate() { NoticeTemplate template = new NoticeTemplate(); template.setId(5L); template.setName("Dingding"); - template.setContent("[${title}]\n" - + "${targetLabel} : ${target}\n" - + "<#if (monitorId??)>${monitorIdLabel} : ${monitorId} \n" - + "<#if (monitorName??)>${monitorNameLabel} : ${monitorName} \n" - + "${priorityLabel} : ${priority}\n" - + "${triggerTimeLabel} : ${triggerTime}\n" - + "${contentLabel} : ${content}"); + template.setContent(""" + [${title}] + ${targetLabel} : ${target} + <#if (monitorId??)>${monitorIdLabel} : ${monitorId} + <#if (monitorName??)>${monitorNameLabel} : ${monitorName} + ${priorityLabel} : ${priority} + ${triggerTimeLabel} : ${triggerTime} + ${contentLabel} : ${content}"""); template.setType((byte) 5); return template; @@ -117,7 +128,7 @@ void setUp() { void addNewNoticeReceiver() throws Exception { NoticeReceiver noticeReceiver = getNoticeReceiver(); System.out.println(noticeReceiver); - this.mockMvc.perform(MockMvcRequestBuilders.post("/api/notice/receiver") + this.mockMvc.perform(post("/api/notice/receiver") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeReceiver))) .andExpect(status().isOk()) @@ -130,7 +141,7 @@ void addNewNoticeReceiver() throws Exception { void editNoticeReceiver() throws Exception { NoticeReceiver noticeReceiver = getNoticeReceiver(); System.out.println(noticeReceiver); - this.mockMvc.perform(MockMvcRequestBuilders.put("/api/notice/receiver") + this.mockMvc.perform(put("/api/notice/receiver") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeReceiver))) .andExpect(status().isOk()) @@ -144,19 +155,19 @@ void editNoticeReceiver() throws Exception { void deleteNoticeReceiver() throws Exception { NoticeReceiver noticeReceiver = getNoticeReceiver(); - Mockito.when(noticeConfigService.getReceiverById(7565463543L)) + when(noticeConfigService.getReceiverById(7565463543L)) .thenReturn(noticeReceiver); - Mockito.when(noticeConfigService.getReceiverById(6565463543L)) + when(noticeConfigService.getReceiverById(6565463543L)) .thenReturn(null); - this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/notice/receiver/{id}", 6565463543L)) + this.mockMvc.perform(delete("/api/notice/receiver/{id}", 6565463543L)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("The relevant information of the recipient could not be found, please check whether the parameters are correct")) .andReturn(); - this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/notice/receiver/{id}", 7565463543L)) + this.mockMvc.perform(delete("/api/notice/receiver/{id}", 7565463543L)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("Delete success")) @@ -177,7 +188,7 @@ void getReceivers() throws Exception { @Test void addNewNoticeRule() throws Exception { NoticeRule noticeRule = getNoticeRule(); - this.mockMvc.perform(MockMvcRequestBuilders.post("/api/notice/rule") + this.mockMvc.perform(post("/api/notice/rule") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeRule))) .andExpect(status().isOk()) @@ -189,7 +200,7 @@ void addNewNoticeRule() throws Exception { @Test void editNoticeRule() throws Exception { NoticeRule noticeRule = getNoticeRule(); - this.mockMvc.perform(MockMvcRequestBuilders.put("/api/notice/rule") + this.mockMvc.perform(put("/api/notice/rule") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeRule))) .andExpect(status().isOk()) @@ -202,19 +213,19 @@ void editNoticeRule() throws Exception { void deleteNoticeRule() throws Exception { NoticeRule noticeRule = getNoticeRule(); - Mockito.when(noticeConfigService.getNoticeRulesById(7565463543L)) + when(noticeConfigService.getNoticeRulesById(7565463543L)) .thenReturn(noticeRule); - Mockito.when(noticeConfigService.getNoticeRulesById(6565463543L)) + when(noticeConfigService.getNoticeRulesById(6565463543L)) .thenReturn(null); - this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/notice/rule/{id}", 6565463543L)) + this.mockMvc.perform(delete("/api/notice/rule/{id}", 6565463543L)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("The specified notification rule could not be queried, please check whether the parameters are correct")) .andReturn(); - this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/notice/rule/{id}", 7565463543L)) + this.mockMvc.perform(delete("/api/notice/rule/{id}", 7565463543L)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("Delete success")) @@ -238,10 +249,10 @@ void getRules() throws Exception { @Test void sendTestMsg() throws Exception { NoticeReceiver noticeReceiver = getNoticeReceiver(); - Mockito.when(noticeConfigService.sendTestMsg(noticeReceiver)) + when(noticeConfigService.sendTestMsg(noticeReceiver)) .thenReturn(false); - this.mockMvc.perform(MockMvcRequestBuilders.post("/api/notice/receiver/send-test-msg") + this.mockMvc.perform(post("/api/notice/receiver/send-test-msg") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeReceiver))) .andExpect(status().isOk()) @@ -250,15 +261,109 @@ void sendTestMsg() throws Exception { .andReturn(); - Mockito.when(noticeConfigService.sendTestMsg(noticeReceiver)) + when(noticeConfigService.sendTestMsg(noticeReceiver)) .thenReturn(true); - this.mockMvc.perform(MockMvcRequestBuilders.post("/api/notice/receiver/send-test-msg") + this.mockMvc.perform(post("/api/notice/receiver/send-test-msg") .contentType(MediaType.APPLICATION_JSON) .content(JsonUtil.toJson(noticeReceiver))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - //.andExpect(jsonPath("$.msg").value("Notify service not available, please check config!")) .andReturn(); } + + @Test + void addNewNoticeTemplate() throws Exception { + NoticeTemplate noticeTemplate = getNoticeTemplate(); + doNothing().when(noticeConfigService).addNoticeTemplate(noticeTemplate); + + this.mockMvc.perform(post("/api/notice/template") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(noticeTemplate))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Add success")) + .andReturn(); + + verify(noticeConfigService).addNoticeTemplate(noticeTemplate); + } + + @Test + void editNoticeTemplate() throws Exception { + NoticeTemplate noticeTemplate = getNoticeTemplate(); + doNothing().when(noticeConfigService).editNoticeTemplate(noticeTemplate); + + this.mockMvc.perform(put("/api/notice/template") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(noticeTemplate))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Edit success")) + .andReturn(); + + verify(noticeConfigService).editNoticeTemplate(noticeTemplate); + } + + @Test + void deleteNoticeTemplate_Success() throws Exception { + Long templateId = 1L; + when(noticeConfigService.getNoticeTemplatesById(templateId)).thenReturn(Optional.of(new NoticeTemplate())); + + mockMvc.perform(delete("/api/notice/template/{id}", templateId)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Delete success")); + + Mockito.verify(noticeConfigService, Mockito.times(1)).deleteNoticeTemplate(templateId); + } + + @Test + void deleteNoticeTemplate_NotFound() throws Exception { + Long templateId = 1L; + when(noticeConfigService.getNoticeTemplatesById(templateId)).thenReturn(Optional.empty()); + + mockMvc.perform(delete("/api/notice/template/{id}", templateId)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("The specified notification template could not be queried, please check whether the parameters are correct")); + + Mockito.verify(noticeConfigService, Mockito.never()).deleteNoticeTemplate(templateId); + } + + @Test + void testGetTemplates() throws Exception { + // Mock the service response + NoticeTemplate template1 = new NoticeTemplate(); + template1.setName("Template1"); + NoticeTemplate template2 = new NoticeTemplate(); + template2.setName("Template2"); + List templates = Arrays.asList(template1, template2); + when(noticeConfigService.getNoticeTemplates(any())).thenReturn(templates); + + // Perform the GET request and verify the response + this.mockMvc.perform(get("/api/notice/templates") + .param("name", "Template")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.data[0].name").value("Template1")) + .andExpect(jsonPath("$.data[1].name").value("Template2")); + } + + @Test + void sendTestMsg_Failure() throws Exception { + NoticeReceiver noticeReceiver = getNoticeReceiver(); + when(noticeConfigService.sendTestMsg(noticeReceiver)).thenReturn(false); + + this.mockMvc.perform(post("/api/notice/receiver/send-test-msg") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(noticeReceiver))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) + .andExpect(jsonPath("$.msg").value("Notify service not available, please check config!")) + .andReturn(); + + verify(noticeConfigService, times(1)).sendTestMsg(noticeReceiver); + } + + } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/PluginControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/PluginControllerTest.java index eb3ad88a94e..d2de12ae7d4 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/PluginControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/PluginControllerTest.java @@ -59,29 +59,29 @@ void setUp() { @Test void uploadNewPlugin() throws Exception { MockMultipartFile jarFile = new MockMultipartFile( - "jarFile", - "plugin-test.jar", - "application/java-archive", - "This is the file content".getBytes() + "jarFile", + "plugin-test.jar", + "application/java-archive", + "This is the file content".getBytes() ); this.mockMvc.perform(MockMvcRequestBuilders.multipart("/api/plugin") - .file(jarFile) - .contentType(MediaType.MULTIPART_FORM_DATA) - .param("name", "test-plugin") - .param("enableStatus", "true")) - .andExpect(status().isOk()) - .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - .andExpect(jsonPath("$.msg").value("Add success")) - .andReturn(); + .file(jarFile) + .contentType(MediaType.MULTIPART_FORM_DATA) + .param("name", "test-plugin") + .param("enableStatus", "true")) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Add success")) + .andReturn(); } @Test void getPlugins() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.get("/api/plugin?&search={search}", "test")) - .andExpect(status().isOk()) - .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - .andReturn(); + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); } @Test @@ -90,12 +90,12 @@ void deleteTags() throws Exception { ids.add(6565463543L); this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/plugin") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(ids))) - .andExpect(status().isOk()) - .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - .andExpect(jsonPath("$.msg").value("Delete success")) - .andReturn(); + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(ids))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Delete success")) + .andReturn(); } @Test @@ -105,12 +105,12 @@ void updatePluginStatus() throws Exception { metadata.setEnableStatus(true); this.mockMvc.perform(MockMvcRequestBuilders.put("/api/plugin") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(metadata))) - .andExpect(status().isOk()) - .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) - .andExpect(jsonPath("$.msg").value("Update success")) - .andReturn(); + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(metadata))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Update success")) + .andReturn(); } } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPageControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPageControllerTest.java new file mode 100644 index 00000000000..06c8a0e5eb8 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPageControllerTest.java @@ -0,0 +1,232 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.delete; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.put; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import java.util.Collections; +import java.util.List; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.manager.StatusPageComponent; +import org.apache.hertzbeat.common.entity.manager.StatusPageIncident; +import org.apache.hertzbeat.common.entity.manager.StatusPageOrg; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.manager.service.StatusPageService; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * test case for {@link StatusPageController} + */ + +@ExtendWith(MockitoExtension.class) +class StatusPageControllerTest { + + private MockMvc mockMvc; + + @Mock + private StatusPageService statusPageService; + + @InjectMocks + private StatusPageController statusPageController; + + @BeforeEach + public void setup() { + + mockMvc = standaloneSetup(statusPageController).build(); + } + + @Test + public void testQueryStatusPageOrg() throws Exception { + + StatusPageOrg statusPageOrg = StatusPageOrg.builder().build(); + when(statusPageService.queryStatusPageOrg()).thenReturn(statusPageOrg); + + mockMvc.perform(get("/api/status/page/org") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageOrg_NotFound() throws Exception { + + when(statusPageService.queryStatusPageOrg()).thenReturn(null); + + mockMvc.perform(get("/api/status/page/org") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) + .andExpect(jsonPath("$.msg").value("Status Page Organization Not Found")); + } + + @Test + public void testSaveStatusPageOrg() throws Exception { + + StatusPageOrg statusPageOrg = StatusPageOrg.builder() + .name("Test name") + .home("Test home") + .description("Test description") + .logo("Test logo") + .build(); + when(statusPageService.saveStatusPageOrg(statusPageOrg)).thenReturn(statusPageOrg); + + mockMvc.perform(post("/api/status/page/org") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(statusPageOrg)) + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageComponent() throws Exception { + + List components = Collections.singletonList(new StatusPageComponent()); + when(statusPageService.queryStatusPageComponents()).thenReturn(components); + + mockMvc.perform(get("/api/status/page/component") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testNewStatusPageComponent() throws Exception { + + mockMvc.perform(post("/api/status/page/component") + .contentType(MediaType.APPLICATION_JSON) + .content("{\"name\":\"New Component\"}") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Add success")); + } + + @Test + public void testUpdateStatusPageComponent() throws Exception { + + mockMvc.perform(put("/api/status/page/component") + .contentType(MediaType.APPLICATION_JSON) + .content("{\"name\":\"Updated Component\"}") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Update success")); + } + + @Test + public void testDeleteStatusPageComponent() throws Exception { + + mockMvc.perform(delete("/api/status/page/component/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Delete success")); + } + + @Test + public void testQueryStatusPageComponentById() throws Exception { + + StatusPageComponent component = new StatusPageComponent(); + when(statusPageService.queryStatusPageComponent(1L)).thenReturn(component); + + mockMvc.perform(get("/api/status/page/component/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testNewStatusPageIncident() throws Exception { + + StatusPageIncident statusPageIncident = StatusPageIncident.builder() + .name("New Incident") + .build(); + + mockMvc.perform(post("/api/status/page/incident") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(statusPageIncident)) + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Add success")); + } + + @Test + public void testUpdateStatusPageIncident() throws Exception { + + StatusPageIncident statusPageIncident = StatusPageIncident.builder() + .name("Update Incident") + .build(); + + mockMvc.perform(put("/api/status/page/incident") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(statusPageIncident)) + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testDeleteStatusPageIncident() throws Exception { + + mockMvc.perform(delete("/api/status/page/incident/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Delete success")); + } + + @Test + public void testQueryStatusPageIncidentById() throws Exception { + + StatusPageIncident incident = new StatusPageIncident(); + when(statusPageService.queryStatusPageIncident(1L)).thenReturn(incident); + + mockMvc.perform(get("/api/status/page/incident/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageIncident() throws Exception { + + List incidents = Collections.singletonList(new StatusPageIncident()); + when(statusPageService.queryStatusPageIncidents()).thenReturn(incidents); + + mockMvc.perform(get("/api/status/page/incident") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPagePublicControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPagePublicControllerTest.java new file mode 100644 index 00000000000..e67022f2b64 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/StatusPagePublicControllerTest.java @@ -0,0 +1,122 @@ +/* + * 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.hertzbeat.manager.controller; + +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.get; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import java.util.Collections; +import java.util.List; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.manager.StatusPageIncident; +import org.apache.hertzbeat.common.entity.manager.StatusPageOrg; +import org.apache.hertzbeat.manager.pojo.dto.ComponentStatus; +import org.apache.hertzbeat.manager.service.StatusPageService; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; + +/** + * test case for {@link StatusPagePublicController} + */ + +@ExtendWith(MockitoExtension.class) +class StatusPagePublicControllerTest { + + private MockMvc mockMvc; + + @Mock + private StatusPageService statusPageService; + + @InjectMocks + private StatusPagePublicController statusPagePublicController; + + @BeforeEach + public void setup() { + + mockMvc = standaloneSetup(statusPagePublicController).build(); + } + + @Test + public void testQueryStatusPageOrg() throws Exception { + + StatusPageOrg statusPageOrg = StatusPageOrg.builder().build(); + when(statusPageService.queryStatusPageOrg()).thenReturn(statusPageOrg); + + mockMvc.perform(get("/api/status/page/public/org") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageOrgNotFound() throws Exception { + + when(statusPageService.queryStatusPageOrg()).thenReturn(null); + + mockMvc.perform(get("/api/status/page/public/org") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) + .andExpect(jsonPath("$.msg").value("Status Page Organization Not Found")); + } + + @Test + public void testQueryStatusPageComponent() throws Exception { + + List componentStatusList = Collections.singletonList(new ComponentStatus()); + when(statusPageService.queryComponentsStatus()).thenReturn(componentStatusList); + + mockMvc.perform(get("/api/status/page/public/component") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageComponentById() throws Exception { + + ComponentStatus componentStatus = new ComponentStatus(); + when(statusPageService.queryComponentStatus(1L)).thenReturn(componentStatus); + + mockMvc.perform(get("/api/status/page/public/component/1") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + + @Test + public void testQueryStatusPageIncident() throws Exception { + + List incidents = Collections.singletonList(new StatusPageIncident()); + when(statusPageService.queryStatusPageIncidents()).thenReturn(incidents); + + mockMvc.perform(get("/api/status/page/public/incident") + .accept(MediaType.APPLICATION_JSON)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/SummaryControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/SummaryControllerTest.java index babbfde1fda..4e0753ca80e 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/SummaryControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/SummaryControllerTest.java @@ -51,7 +51,7 @@ class SummaryControllerTest { @BeforeEach - void setUp() { + void setUp() { this.mockMvc = MockMvcBuilders.standaloneSetup(summaryController).build(); } @@ -74,4 +74,4 @@ void appMonitors() throws Exception { .andExpect(jsonPath("$.data.apps[0].app").value("os")) .andReturn(); } -} \ No newline at end of file +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/controller/TagControllerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/controller/TagControllerTest.java index 59b0d4c5c51..3e29badb9be 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/controller/TagControllerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/controller/TagControllerTest.java @@ -71,8 +71,8 @@ void addNewTags() throws Exception { this.mockMvc.perform(MockMvcRequestBuilders.post("/api/tag") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(tags))) + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(tags))) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("Add success")) @@ -110,12 +110,9 @@ void getTags() throws Exception { @Test void deleteTags() throws Exception { - List ids = new ArrayList<>(); - ids.add(6565463543L); - this.mockMvc.perform(MockMvcRequestBuilders.delete("/api/tag") - .contentType(MediaType.APPLICATION_JSON) - .content(JsonUtil.toJson(ids))) + .contentType(MediaType.MULTIPART_FORM_DATA) + .param("ids", "6565463543")) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.msg").value("Delete success")) diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/dao/CollectorDaoTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/dao/CollectorDaoTest.java new file mode 100644 index 00000000000..fab01262500 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/dao/CollectorDaoTest.java @@ -0,0 +1,70 @@ +/* + * 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.hertzbeat.manager.dao; + +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import javax.annotation.Resource; +import org.apache.hertzbeat.common.entity.manager.Collector; +import org.apache.hertzbeat.manager.AbstractSpringIntegrationTest; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.springframework.transaction.annotation.Transactional; + +/** + * Test case for {@link CollectorDao} + */ +@Transactional +public class CollectorDaoTest extends AbstractSpringIntegrationTest { + + @Resource + private CollectorDao collectorDao; + + + @BeforeEach + void setUp() { + Collector creator = Collector.builder() + .id(1L) + .name("test") + .mode("public") + .status((byte) 1) + .ip("192.34.5.43") + .creator("tom") + .build(); + creator = collectorDao.save(creator); + assertNotNull(creator); + } + + @AfterEach + public void deleteAll() { + collectorDao.deleteAll(); + } + + @Test + public void deleteCollectorByName() { + collectorDao.deleteCollectorByName("test"); + } + + @Test + public void findCollectorByName() { + assertTrue(collectorDao.findCollectorByName("test").isPresent()); + } + + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/scheduler/ConsistentHashTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/scheduler/ConsistentHashTest.java index cb2132359b8..3555f8490dc 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/scheduler/ConsistentHashTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/scheduler/ConsistentHashTest.java @@ -17,10 +17,10 @@ package org.apache.hertzbeat.manager.scheduler; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertTrue; -import static org.junit.jupiter.api.Assertions.assertNull; -import static org.junit.jupiter.api.Assertions.assertEquals; import org.apache.hertzbeat.common.util.SnowFlakeIdGenerator; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -45,8 +45,8 @@ void testAddNode() { long jobId2 = SnowFlakeIdGenerator.generateId(); String job3 = "job3"; long jobId3 = SnowFlakeIdGenerator.generateId(); - ConsistentHash.Node node1 = new ConsistentHash.Node("node1", "public","192.168.0.1", System.currentTimeMillis(), (byte) 10); - ConsistentHash.Node node2 = new ConsistentHash.Node("node2", "public","192.168.0.2", System.currentTimeMillis(), (byte) 10); + ConsistentHash.Node node1 = new ConsistentHash.Node("node1", "public", "192.168.0.1", System.currentTimeMillis(), (byte) 10); + ConsistentHash.Node node2 = new ConsistentHash.Node("node2", "public", "192.168.0.2", System.currentTimeMillis(), (byte) 10); consistentHash.addNode(node1); consistentHash.dispatchJob(job1, jobId1); consistentHash.dispatchJob(job2, jobId2); @@ -64,7 +64,7 @@ void testDispatchJob() { long jobId1 = SnowFlakeIdGenerator.generateId(); ConsistentHash.Node res1 = consistentHash.dispatchJob(job1, jobId1); assertNull(res1); - ConsistentHash.Node node1 = new ConsistentHash.Node("node1", "public","192.168.0.1", System.currentTimeMillis(), (byte) 10); + ConsistentHash.Node node1 = new ConsistentHash.Node("node1", "public", "192.168.0.1", System.currentTimeMillis(), (byte) 10); consistentHash.addNode(node1); String job2 = "job2"; long jobId2 = SnowFlakeIdGenerator.generateId(); @@ -97,4 +97,4 @@ void testRemoveNode() { } } - \ No newline at end of file + diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java new file mode 100644 index 00000000000..88fc2c9d64b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AccountServiceTest.java @@ -0,0 +1,152 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import com.usthe.sureness.provider.DefaultAccount; +import com.usthe.sureness.provider.SurenessAccount; +import com.usthe.sureness.provider.SurenessAccountProvider; +import com.usthe.sureness.provider.ducument.DocumentAccountProvider; +import com.usthe.sureness.util.JsonWebTokenUtil; +import com.usthe.sureness.util.Md5Util; +import io.jsonwebtoken.MalformedJwtException; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import javax.naming.AuthenticationException; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.manager.pojo.dto.LoginDto; +import org.apache.hertzbeat.manager.pojo.dto.RefreshTokenResponse; +import org.apache.hertzbeat.manager.service.impl.AccountServiceImpl; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; + +/** + * test case for {@link AccountServiceImpl} + */ + +class AccountServiceTest { + + private AccountServiceImpl accountService; + + private SurenessAccountProvider accountProvider; + + private final String identifier = "admin"; + private final String password = "hertzbeat"; + private final String salt = "salt1"; + private final List roles = List.of("admin"); + + private final String jwt = """ + CyaFv0bwq2Eik0jdrKUtsA6bx3sDJeFV643R + LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 + 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 + dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp + """; + + @BeforeEach + void setUp() { + + accountProvider = mock(DocumentAccountProvider.class); + accountService = new AccountServiceImpl(); + + JsonWebTokenUtil.setDefaultSecretKey(jwt); + } + + @Test + void testAuthGetTokenWithValidAccount() throws AuthenticationException { + + SurenessAccount account = DefaultAccount.builder("app1") + .setPassword(Md5Util.md5(password + salt)) + .setSalt(salt) + .setOwnRoles(roles) + .setDisabledAccount(Boolean.FALSE) + .setExcessiveAttempts(Boolean.FALSE) + .build(); + LoginDto loginDto = LoginDto.builder() + .credential(password) + .identifier(identifier) + .build(); + + when(accountProvider.loadAccount(identifier)).thenReturn(account); + + Map response = accountService.authGetToken(loginDto); + + assertNotNull(response); + assertNotNull(response.get("token")); + assertNotNull(response.get("refreshToken")); + assertNotNull(response.get("role")); + assertEquals(JsonUtil.toJson(roles), response.get("role")); + + } + + @Test + void testAuthGetTokenWithInvalidAccount() { + + String identifier = "user1"; + String password = "wrongPassword"; + LoginDto loginDto = LoginDto.builder() + .credential(password) + .identifier(identifier) + .build(); + + when(accountProvider.loadAccount(identifier)).thenReturn(null); + + Assertions.assertThrows( + AuthenticationException.class, + () -> accountService.authGetToken(loginDto) + ); + } + + @Test + void testRefreshTokenWithValidToken() throws AuthenticationException { + + String userId = "admin"; + String refreshToken = JsonWebTokenUtil.issueJwt(userId, 3600L, Collections.singletonMap("refresh", true)); + + SurenessAccount account = DefaultAccount.builder("app1") + .setPassword(Md5Util.md5(password + salt)) + .setSalt(salt) + .setOwnRoles(roles) + .setDisabledAccount(Boolean.FALSE) + .setExcessiveAttempts(Boolean.FALSE) + .build(); + when(accountProvider.loadAccount(userId)).thenReturn(account); + + RefreshTokenResponse response = accountService.refreshToken(refreshToken); + + assertNotNull(response); + assertNotNull(response.getToken()); + assertNotNull(response.getRefreshToken()); + } + + @Test + void testRefreshTokenWithInvalidToken() { + + String refreshToken = "invalidToken"; + + Assertions.assertThrows( + MalformedJwtException.class, + () -> accountService.refreshToken(refreshToken) + ); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AiServiceFactoryTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AiServiceFactoryTest.java new file mode 100644 index 00000000000..60f5e627d65 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AiServiceFactoryTest.java @@ -0,0 +1,125 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.when; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; +import java.util.Map; +import java.util.function.Function; +import java.util.stream.Collectors; +import org.apache.hertzbeat.common.constants.AiTypeEnum; +import org.apache.hertzbeat.manager.service.ai.AiService; +import org.apache.hertzbeat.manager.service.ai.factory.AiServiceFactoryImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link AiServiceFactoryImpl} + */ + +@ExtendWith(MockitoExtension.class) +class AiServiceFactoryTest { + + @Mock + private List aiService; + + @Mock + private AiService aiService1; + + @Mock + private AiService aiService2; + + @InjectMocks + private AiServiceFactoryImpl aiServiceFactory; + + @BeforeEach + public void setup() { + + when(aiService1.getType()).thenReturn(AiTypeEnum.alibabaAi); + when(aiService2.getType()).thenReturn(AiTypeEnum.zhiPu); + + aiService = Arrays.asList(aiService1, aiService2); + ReflectionTestUtils.setField(aiServiceFactory, "aiService", aiService); + + aiServiceFactory.init(); + } + + @Test + public void testInit() { + + Map expectedMap = aiService.stream() + .collect(Collectors.toMap(AiService::getType, Function.identity())); + + Map actualMap = (Map) ReflectionTestUtils.getField(aiServiceFactory, "aiServiceFactoryMap"); + + assertEquals(expectedMap, actualMap); + } + + @Test + public void testGetAiServiceImplBean_Success() { + + AiService service = aiServiceFactory.getAiServiceImplBean(AiTypeEnum.alibabaAi + ""); + assertNotNull(service); + assertEquals(aiService1, service); + + service = aiServiceFactory.getAiServiceImplBean(AiTypeEnum.zhiPu + ""); + assertNotNull(service); + assertEquals(aiService2, service); + } + + @Test + public void testGetAiServiceImplBeanTypeNotFound() { + + Exception exception = assertThrows( + IllegalArgumentException.class, + () -> aiServiceFactory.getAiServiceImplBean("InvalidType") + ); + + assertTrue(exception.getMessage().contains("The current type is not supported")); + } + + @Test + public void testGetAiServiceImplBeanNoBean() { + + aiServiceFactory.init(); + + when(aiService1.getType()).thenReturn(AiTypeEnum.kimiAi); + List singleServiceList = Collections.singletonList(aiService1); + ReflectionTestUtils.setField(aiServiceFactory, "aiService", singleServiceList); + aiServiceFactory.init(); + + Exception exception = assertThrows( + IllegalArgumentException.class, + () -> aiServiceFactory.getAiServiceImplBean(AiTypeEnum.sparkDesk + "") + ); + + assertTrue(exception.getMessage().contains("No bean for current type found")); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java new file mode 100644 index 00000000000..ff0a5b0f331 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AlibabaAiServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.ai.AlibabaAiServiceImpl; + +/** + * test case for {@link AlibabaAiServiceImpl} + */ + +class AlibabaAiServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AppServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AppServiceTest.java index 4581077ae99..6244d84bbb4 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/AppServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AppServiceTest.java @@ -46,10 +46,10 @@ class AppServiceTest { @Mock private MonitorDao monitorDao; - + @Mock private WarehouseService warehouseService; - + @Mock private ObjectStoreConfigServiceImpl objectStoreConfigService; diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/AvailableAlertDefineInitTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/AvailableAlertDefineInitTest.java new file mode 100644 index 00000000000..002de6b6c53 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/AvailableAlertDefineInitTest.java @@ -0,0 +1,102 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Collections; +import java.util.HashMap; +import java.util.List; +import java.util.Map; +import org.apache.hertzbeat.alert.dao.AlertDefineDao; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.alerter.AlertDefine; +import org.apache.hertzbeat.common.entity.job.Job; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link AvailableAlertDefineInit} + */ + +class AvailableAlertDefineInitTest { + + @Mock + private AlertDefineDao alertDefineDao; + + @Mock + private AppService appService; + + @InjectMocks + private AvailableAlertDefineInit availableAlertDefineInit; + + private Map map; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + map = new HashMap<>(); + map.put("testApp", new Job()); + } + + @Test + void testRunAlertDefineIsEmpty() throws Exception { + + + when(appService.getAllAppDefines()).thenReturn(map); + + when(alertDefineDao.queryAlertDefineByAppAndMetric("testApp", CommonConstants.AVAILABILITY)) + .thenReturn(Collections.emptyList()); + + availableAlertDefineInit.run(); + + verify(alertDefineDao, times(1)).save(any(AlertDefine.class)); + } + + @Test + void testRunAlertDefineExists() throws Exception { + + when(appService.getAllAppDefines()).thenReturn(map); + when(alertDefineDao.queryAlertDefineByAppAndMetric("testApp", CommonConstants.AVAILABILITY)) + .thenReturn(List.of(new AlertDefine())); + availableAlertDefineInit.run(); + + verify(alertDefineDao, never()).save(any(AlertDefine.class)); + } + + @Test + void testRunExceptionHandling() throws Exception { + + when(appService.getAllAppDefines()).thenReturn(map); + when(alertDefineDao.queryAlertDefineByAppAndMetric("testApp", CommonConstants.AVAILABILITY)) + .thenThrow(new RuntimeException("Database error")); + + availableAlertDefineInit.run(); + + verify(alertDefineDao, never()).save(any(AlertDefine.class)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/CollectorServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/CollectorServiceTest.java new file mode 100644 index 00000000000..d98c282015e --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/CollectorServiceTest.java @@ -0,0 +1,81 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.when; +import java.util.ArrayList; +import java.util.List; +import org.apache.hertzbeat.manager.dao.CollectorDao; +import org.apache.hertzbeat.manager.dao.CollectorMonitorBindDao; +import org.apache.hertzbeat.manager.scheduler.ConsistentHash; +import org.apache.hertzbeat.manager.scheduler.netty.ManageServer; +import org.apache.hertzbeat.manager.service.impl.CollectorServiceImpl; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Spy; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.data.domain.Page; +import org.springframework.data.domain.PageRequest; +import org.springframework.data.jpa.domain.Specification; + +/** + * Test case for {@link CollectorService} + */ +@ExtendWith(MockitoExtension.class) +public class CollectorServiceTest { + + @Spy + @InjectMocks + private CollectorServiceImpl collectorService; + + @Mock + private CollectorDao collectorDao; + + @Mock + private ConsistentHash consistentHash; + + @Mock + private CollectorMonitorBindDao collectorMonitorBindDao; + + @Mock + private ManageServer manageServer; + + + @Test + public void getCollectors() { + when(collectorDao.findAll(any(Specification.class), eq(PageRequest.of(1, 1)))).thenReturn(Page.empty()); + assertDoesNotThrow(() -> collectorService.getCollectors("test", 1, 1)); + } + + @Test + public void deleteRegisteredCollector() { + List collectors = new ArrayList<>(); + collectors.add("test"); + collectorService.deleteRegisteredCollector(collectors); + } + + @Test + public void hasCollector() { + collectorService.hasCollector("test"); + } +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ConfigServiceTest.java new file mode 100644 index 00000000000..21b50b58b71 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ConfigServiceTest.java @@ -0,0 +1,106 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.Mockito.any; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.ArrayList; +import java.util.List; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.pojo.dto.EmailNoticeSender; +import org.apache.hertzbeat.manager.pojo.dto.ObjectStoreDTO; +import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; +import org.apache.hertzbeat.manager.service.impl.ConfigServiceImpl; +import org.apache.hertzbeat.manager.service.impl.MailGeneralConfigServiceImpl; +import org.apache.hertzbeat.manager.service.impl.ObjectStoreConfigServiceImpl; +import org.apache.hertzbeat.manager.service.impl.TemplateConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * Test case for {@link ConfigService} + */ +@ExtendWith(MockitoExtension.class) +public class ConfigServiceTest { + + @InjectMocks + private ConfigServiceImpl configService; + @Mock + private ObjectStoreConfigServiceImpl objectStoreConfigService; + @Mock + private TemplateConfigServiceImpl templateConfigService; + @Mock + private MailGeneralConfigServiceImpl mailGeneralConfigService; + + @BeforeEach + public void setUp() { + List generalConfigServices = new ArrayList<>(); + when(objectStoreConfigService.type()).thenReturn(GeneralConfigTypeEnum.oss.name()); + when(templateConfigService.type()).thenReturn(GeneralConfigTypeEnum.template.name()); + when(mailGeneralConfigService.type()).thenReturn(GeneralConfigTypeEnum.email.name()); + generalConfigServices.add(objectStoreConfigService); + generalConfigServices.add(templateConfigService); + generalConfigServices.add(mailGeneralConfigService); + configService = new ConfigServiceImpl(generalConfigServices); + } + + @Test + public void testSaveConfig() { + configService.saveConfig(GeneralConfigTypeEnum.oss.name(), new ObjectStoreDTO<>()); + verify(objectStoreConfigService, times(1)).saveConfig(any(ObjectStoreDTO.class)); + + configService.saveConfig(GeneralConfigTypeEnum.email.name(), new EmailNoticeSender()); + verify(mailGeneralConfigService, times(1)).saveConfig(any(EmailNoticeSender.class)); + } + + @Test + public void testGetConfig() { + ObjectStoreDTO ossConfig = new ObjectStoreDTO<>(); + when(objectStoreConfigService.getConfig()).thenReturn(ossConfig); + assertNotNull(configService.getConfig(GeneralConfigTypeEnum.oss.name())); + + EmailNoticeSender emailNoticeSender = new EmailNoticeSender(); + when(mailGeneralConfigService.getConfig()).thenReturn(emailNoticeSender); + configService.getConfig(GeneralConfigTypeEnum.email.name()); + verify(mailGeneralConfigService, times(1)).getConfig(); + } + + @Test + public void testUpdateTemplateAppConfig() { + TemplateConfig templateConfig = new TemplateConfig(); + when(templateConfigService.getConfig()).thenReturn(templateConfig); + configService.updateTemplateAppConfig("custom", new TemplateConfig.AppTemplate()); + + verify(templateConfigService, times(1)).getConfig(); + verify(templateConfigService, times(1)).saveConfig(templateConfig); + } + + @Test + public void testException() { + assertThrows(IllegalArgumentException.class, () -> configService.saveConfig("test", new ObjectStoreDTO<>())); + assertThrows(IllegalArgumentException.class, () -> configService.getConfig("test2"), "Not supported this config type: test2"); + } +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ExcelImExportServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ExcelImExportServiceTest.java new file mode 100644 index 00000000000..85e931497f5 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ExcelImExportServiceTest.java @@ -0,0 +1,110 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.util.List; +import org.apache.hertzbeat.manager.service.impl.AbstractImExportServiceImpl; +import org.apache.hertzbeat.manager.service.impl.ExcelImExportServiceImpl; +import org.apache.poi.ss.usermodel.Workbook; +import org.apache.poi.ss.usermodel.WorkbookFactory; +import org.apache.poi.xssf.usermodel.XSSFWorkbook; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.MockitoAnnotations; + +/** + * Test case for {@link ExcelImExportServiceImpl} + */ + +class ExcelImExportServiceTest { + + @InjectMocks + private ExcelImExportServiceImpl excelImExportService; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + } + + @Test + public void testParseImport() throws IOException { + + Workbook workbook = new XSSFWorkbook(); + var sheet = workbook.createSheet(); + var headerRow = sheet.createRow(0); + headerRow.createCell(0).setCellValue("name"); + headerRow.createCell(1).setCellValue("app"); + headerRow.createCell(2).setCellValue("host"); + var dataRow = sheet.createRow(1); + dataRow.createCell(0).setCellValue("Monitor1"); + dataRow.createCell(1).setCellValue("App1"); + dataRow.createCell(2).setCellValue("Host1"); + + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + workbook.write(bos); + ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); + + List result = excelImExportService.parseImport(bis); + assertNotNull(result); + assertEquals(1, result.size()); + assertEquals("Monitor1", result.get(0).getMonitor().getName()); + } + + @Test + public void testWriteOs() throws IOException { + + AbstractImExportServiceImpl.MonitorDTO monitorDTO = new AbstractImExportServiceImpl.MonitorDTO(); + monitorDTO.setName("Monitor1"); + monitorDTO.setApp("App1"); + monitorDTO.setHost("Host1"); + monitorDTO.setIntervals(10); + monitorDTO.setStatus((byte) 1); + monitorDTO.setTags(List.of(1L, 2L)); + + AbstractImExportServiceImpl.ParamDTO paramDTO = new AbstractImExportServiceImpl.ParamDTO(); + paramDTO.setField("field1"); + paramDTO.setValue("value1"); + paramDTO.setType((byte) 1); + + AbstractImExportServiceImpl.ExportMonitorDTO exportMonitorDTO = new AbstractImExportServiceImpl.ExportMonitorDTO(); + exportMonitorDTO.setMonitor(monitorDTO); + exportMonitorDTO.setParams(List.of(paramDTO)); + + List monitorList = List.of(exportMonitorDTO); + + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + excelImExportService.writeOs(monitorList, bos); + + ByteArrayInputStream bis = new ByteArrayInputStream(bos.toByteArray()); + Workbook workbook = WorkbookFactory.create(bis); + var sheet = workbook.getSheetAt(0); + var dataRow = sheet.getRow(1); + + assertEquals("Monitor1", dataRow.getCell(0).getStringCellValue()); + assertEquals("App1", dataRow.getCell(1).getStringCellValue()); + assertEquals("Host1", dataRow.getCell(2).getStringCellValue()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/JsonImExportServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/JsonImExportServiceTest.java new file mode 100644 index 00000000000..aed7febab83 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/JsonImExportServiceTest.java @@ -0,0 +1,105 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyList; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.fasterxml.jackson.core.JsonParser; +import com.fasterxml.jackson.core.type.ResolvedType; +import com.fasterxml.jackson.databind.ObjectMapper; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.IOException; +import java.io.OutputStream; +import java.util.List; +import org.apache.hertzbeat.manager.service.impl.AbstractImExportServiceImpl; +import org.apache.hertzbeat.manager.service.impl.JsonImExportServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * Test case for {@link JsonImExportServiceImpl} + */ + +class JsonImExportServiceTest { + + @InjectMocks + private JsonImExportServiceImpl jsonImExportService; + + @Mock + private ObjectMapper objectMapper; + + @BeforeEach + public void setUp() { + + MockitoAnnotations.openMocks(this); + + ReflectionTestUtils.setField(jsonImExportService, "objectMapper", objectMapper); + } + + @Test + void testParseImport() throws IOException { + + String json = "[{}]"; + ByteArrayInputStream bis = new ByteArrayInputStream(json.getBytes()); + + AbstractImExportServiceImpl.MonitorDTO monitorDTO = new AbstractImExportServiceImpl.MonitorDTO(); + + AbstractImExportServiceImpl.ExportMonitorDTO exportMonitorDTO = new AbstractImExportServiceImpl.ExportMonitorDTO(); + exportMonitorDTO.setMonitor(monitorDTO); + + List expectedList = List.of(exportMonitorDTO); + + when(objectMapper.readValue(any(JsonParser.class), any(ResolvedType.class))).thenReturn(expectedList); + + List result = jsonImExportService.parseImport(bis); + assertNull(result); + } + + @Test + public void testWriteOs() throws IOException { + + AbstractImExportServiceImpl.MonitorDTO monitorDTO = new AbstractImExportServiceImpl.MonitorDTO(); + monitorDTO.setName("Monitor1"); + monitorDTO.setApp("App1"); + monitorDTO.setHost("Host1"); + + AbstractImExportServiceImpl.ExportMonitorDTO exportMonitorDTO = new AbstractImExportServiceImpl.ExportMonitorDTO(); + exportMonitorDTO.setMonitor(monitorDTO); + + List monitorList = List.of(exportMonitorDTO); + + doNothing().when(objectMapper).writeValue(any(OutputStream.class), anyList()); + + ByteArrayOutputStream bos = new ByteArrayOutputStream(); + jsonImExportService.writeOs(monitorList, bos); + + verify(objectMapper, times(1)).writeValue(any(OutputStream.class), eq(monitorList)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/AlertNotifyHandlerTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java similarity index 72% rename from manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/AlertNotifyHandlerTest.java rename to manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java index f258c069d70..a747c6f2ad9 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/component/alerter/AlertNotifyHandlerTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/KimiAiServiceTest.java @@ -15,25 +15,14 @@ * limitations under the License. */ -package org.apache.hertzbeat.manager.component.alerter; +package org.apache.hertzbeat.manager.service; -import org.junit.jupiter.api.BeforeEach; -import org.junit.jupiter.api.Test; + +import org.apache.hertzbeat.manager.service.ai.KimiAiServiceImpl; /** - * Test case for {@link AlertNotifyHandler} + * test case for {@link KimiAiServiceImpl} */ -class AlertNotifyHandlerTest { - - @BeforeEach - void setUp() { - } - - @Test - void send() { - } - @Test - void type() { - } +class KimiAiServiceTest { } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java new file mode 100644 index 00000000000..fc652d5de8d --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/MailGeneralConfigServiceTest.java @@ -0,0 +1,68 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.EmailNoticeSender; +import org.apache.hertzbeat.manager.service.impl.MailGeneralConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link MailGeneralConfigServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class MailGeneralConfigServiceTest { + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + private MailGeneralConfigServiceImpl mailGeneralConfigService; + + @BeforeEach + void setUp() { + + mailGeneralConfigService = new MailGeneralConfigServiceImpl(generalConfigDao, objectMapper); + } + + @Test + void testType() { + + assertEquals(GeneralConfigTypeEnum.email.name(), mailGeneralConfigService.type()); + } + + @Test + void testGetTypeReference() { + + TypeReference typeReference = mailGeneralConfigService.getTypeReference(); + + assertEquals(EmailNoticeSender.class, typeReference.getType()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/MonitorServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/MonitorServiceTest.java index 5956619773f..c61aa03a4e5 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/MonitorServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/MonitorServiceTest.java @@ -21,13 +21,13 @@ import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.mockito.Mockito.any; import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.doReturn; import static org.mockito.Mockito.reset; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.when; import java.util.ArrayList; -import java.util.Arrays; import java.util.Collections; import java.util.HashMap; import java.util.HashSet; @@ -652,9 +652,8 @@ void getMonitorDto() { @Test void getMonitors() { - Specification specification = mock(Specification.class); - when(monitorDao.findAll(specification, PageRequest.of(1, 1))).thenReturn(Page.empty()); - assertNotNull(monitorService.getMonitors(specification, PageRequest.of(1, 1))); + doReturn(Page.empty()).when(monitorDao).findAll(any(Specification.class), any(PageRequest.class)); + assertNotNull(monitorService.getMonitors(null, null, null, null, null, "gmtCreate", "desc", 1, 1, null)); } @Test @@ -742,7 +741,7 @@ void addNewMonitorOptionalMetrics() { when(appService.getAppDefine(monitor.getApp())).thenReturn(job); List params = Collections.singletonList(new Param()); - List metrics = Arrays.asList(); + List metrics = List.of(); try { monitorService.addNewMonitorOptionalMetrics(metrics, monitor, params); } catch (MonitorMetricsException e) { @@ -750,7 +749,7 @@ void addNewMonitorOptionalMetrics() { } reset(); when(monitorDao.save(monitor)).thenThrow(RuntimeException.class); - metrics = Arrays.asList("metric-001"); + metrics = List.of("metric-001"); List metricsDefine = new ArrayList<>(); Metrics e = new Metrics(); e.setName("metric-001"); diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/NoticeConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/NoticeConfigServiceTest.java index c595b724237..0f3461403ad 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/NoticeConfigServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/NoticeConfigServiceTest.java @@ -69,23 +69,20 @@ void setUp() { @Test void getNoticeReceivers() { - final Specification specification = mock(Specification.class); - noticeConfigService.getNoticeReceivers(specification); - verify(noticeReceiverDao, times(1)).findAll(specification); + noticeConfigService.getNoticeReceivers(null); + verify(noticeReceiverDao, times(1)).findAll(any(Specification.class)); } @Test void getNoticeTemplates() { - final Specification specification = mock(Specification.class); - noticeConfigService.getNoticeTemplates(specification); - verify(noticeTemplateDao, times(1)).findAll(specification); + noticeConfigService.getNoticeTemplates(null); + verify(noticeTemplateDao, times(1)).findAll(any(Specification.class)); } @Test void getNoticeRules() { - final Specification specification = mock(Specification.class); - noticeConfigService.getNoticeRules(specification); - verify(noticeRuleDao, times(1)).findAll(specification); + noticeConfigService.getNoticeRules(null); + verify(noticeRuleDao, times(1)).findAll(any(Specification.class)); } @Test @@ -205,14 +202,14 @@ void getReceiverFilterRule() { void getReceiverById() { final Long receiverId = 343432325L; noticeConfigService.getReceiverById(receiverId); - verify(noticeReceiverDao, times(1)).getReferenceById(receiverId); + verify(noticeReceiverDao, times(1)).findById(receiverId); } @Test void getNoticeRulesById() { final Long receiverId = 343432325L; noticeConfigService.getNoticeRulesById(receiverId); - verify(noticeRuleDao, times(1)).getReferenceById(receiverId); + verify(noticeRuleDao, times(1)).findById(receiverId); } @Test diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java new file mode 100644 index 00000000000..5371e981cb2 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObjectStoreConfigServiceTest.java @@ -0,0 +1,96 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.pojo.dto.ObjectStoreConfigChangeEvent; +import org.apache.hertzbeat.manager.pojo.dto.ObjectStoreDTO; +import org.apache.hertzbeat.manager.service.impl.ObjectStoreConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.Spy; +import org.springframework.beans.factory.support.DefaultListableBeanFactory; +import org.springframework.context.ApplicationContext; +import org.springframework.test.context.junit.jupiter.SpringExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link ObjectStoreConfigServiceImpl} + */ + +@ExtendWith(SpringExtension.class) +class ObjectStoreConfigServiceTest { + + private final DefaultListableBeanFactory beanFactory = new DefaultListableBeanFactory(); + + @Mock + private ApplicationContext ctx; + + @Spy + private ObjectMapper objectMapper = new ObjectMapper(); + + @InjectMocks + private ObjectStoreConfigServiceImpl objectStoreConfigService; + + @BeforeEach + void setUp() { + + ReflectionTestUtils.setField(objectStoreConfigService, "beanFactory", beanFactory); + ReflectionTestUtils.setField(objectStoreConfigService, "ctx", ctx); + } + + @Test + void testGetType() { + + String type = objectStoreConfigService.type(); + assertEquals(GeneralConfigTypeEnum.oss.name(), type); + } + + @Test + void testHandlerNullConfig() { + + objectStoreConfigService.handler(null); + verify(ctx, never()).publishEvent(any()); + } + + @Test + void testHandlerObsConfig() { + + ObjectStoreDTO config = new ObjectStoreDTO<>(); + config.setType(ObjectStoreDTO.Type.OBS); + ObjectStoreDTO.ObsConfig obsConfig = new ObjectStoreDTO.ObsConfig(); + obsConfig.setAccessKey("access-key"); + obsConfig.setSecretKey("secret-key"); + obsConfig.setEndpoint("endpoint"); + obsConfig.setBucketName("bucket-name"); + config.setConfig(obsConfig); + + objectStoreConfigService.handler(config); + + verify(ctx).publishEvent(any(ObjectStoreConfigChangeEvent.class)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java new file mode 100644 index 00000000000..df6b54ff48a --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ObsObjectStoreServiceTest.java @@ -0,0 +1,145 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyString; +import static org.mockito.ArgumentMatchers.eq; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import com.obs.services.ObsClient; +import com.obs.services.model.ListObjectsRequest; +import com.obs.services.model.ObjectListing; +import com.obs.services.model.ObsObject; +import com.obs.services.model.PutObjectResult; +import java.io.InputStream; +import java.util.List; +import org.apache.hertzbeat.manager.pojo.dto.FileDTO; +import org.apache.hertzbeat.manager.service.impl.ObsObjectStoreServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link ObsObjectStoreServiceImpl} + */ + +class ObsObjectStoreServiceTest { + + @Mock + private ObsClient obsClient; + + private ObsObjectStoreServiceImpl service; + + private final String bucketName = "test-bucket"; + private final String rootPath = "root/path"; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + this.service = new ObsObjectStoreServiceImpl( + obsClient, + bucketName, + rootPath + ); + } + + @Test + void testUpload() { + + String filePath = "file.txt"; + InputStream is = mock(InputStream.class); + var response = mock(PutObjectResult.class); + + when(obsClient.putObject(eq(bucketName), anyString(), eq(is))).thenReturn(response); + when(response.getStatusCode()).thenReturn(200); + + boolean result = service.upload(filePath, is); + + assertTrue(result); + verify(obsClient, times(1)).putObject(eq(bucketName), anyString(), eq(is)); + } + + @Test + void testRemove() { + + String filePath = "file.txt"; + + service.remove(filePath); + + verify(obsClient, times(1)).deleteObject(eq(bucketName), anyString()); + } + + @Test + void testIsExist() { + + String filePath = "file.txt"; + + when(obsClient.doesObjectExist(eq(bucketName), anyString())).thenReturn(true); + + boolean result = service.isExist(filePath); + + assertTrue(result); + verify(obsClient, times(1)).doesObjectExist(eq(bucketName), anyString()); + } + + @Test + void testDownload() { + + String filePath = "file.txt"; + var obsObject = mock(ObsObject.class); + + when(obsClient.getObject(eq(bucketName), anyString())).thenReturn(obsObject); + when(obsObject.getObjectContent()).thenReturn(mock(InputStream.class)); + + FileDTO result = service.download(filePath); + + assertNotNull(result); + assertEquals(filePath, result.getName()); + verify(obsClient, times(1)).getObject(eq(bucketName), anyString()); + } + + @Test + void testList() { + + String dir = "some/dir"; + var listObjectsResponse = mock(ObjectListing.class); + var objectSummary = mock(ObsObject.class); + + when(obsClient.listObjects(any(ListObjectsRequest.class))).thenReturn(listObjectsResponse); + when(listObjectsResponse.getObjects()).thenReturn(List.of(objectSummary)); + when(objectSummary.getObjectKey()).thenReturn("some/dir/file.txt"); + when(objectSummary.getObjectContent()).thenReturn(mock(InputStream.class)); + + List result = service.list(dir); + + assertNotNull(result); + assertFalse(result.isEmpty()); + verify(obsClient, times(1)).listObjects(any(ListObjectsRequest.class)); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java index 238b47b068e..59dc49b2014 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/PluginServiceTest.java @@ -24,12 +24,10 @@ import static org.mockito.ArgumentMatchers.anyLong; import static org.mockito.Mockito.doNothing; import static org.mockito.Mockito.doReturn; -import static org.mockito.Mockito.mock; import static org.mockito.Mockito.spy; import static org.mockito.Mockito.times; import static org.mockito.Mockito.verify; import static org.mockito.Mockito.when; - import java.util.Collections; import java.util.HashSet; import java.util.List; @@ -41,6 +39,7 @@ import org.apache.hertzbeat.common.entity.manager.PluginMetadata; import org.apache.hertzbeat.manager.dao.PluginItemDao; import org.apache.hertzbeat.manager.dao.PluginMetadataDao; +import org.apache.hertzbeat.manager.dao.PluginParamDao; import org.apache.hertzbeat.manager.service.impl.PluginServiceImpl; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; @@ -62,20 +61,24 @@ class PluginServiceTest { @InjectMocks private PluginServiceImpl pluginService; + @Mock private PluginMetadataDao metadataDao; + @Mock + private PluginParamDao pluginParamDao; + @Mock private PluginItemDao itemDao; @BeforeEach void setUp() { - pluginService = new PluginServiceImpl(metadataDao, itemDao); + pluginService = new PluginServiceImpl(metadataDao, itemDao, pluginParamDao); } @Test - void testSavePlugin(){ + void testSavePlugin() { List pluginItems = Collections.singletonList(new PluginItem("org.apache.hertzbear.PluginTest", PluginType.POST_ALERT)); PluginServiceImpl service = spy(pluginService); @@ -113,7 +116,9 @@ void testDeletePlugins() { Set ids = new HashSet<>(Collections.singletonList(1L)); when(metadataDao.findAllById(ids)).thenReturn(Collections.singletonList(plugin)); - doNothing().when(metadataDao).deleteById(anyLong()); + when(metadataDao.findById(anyLong())).thenReturn(Optional.of(plugin)); + when(metadataDao.save(plugin)).thenReturn(plugin); + doNothing().when(metadataDao).deleteById(1L); pluginService.deletePlugins(ids); verify(metadataDao, times(1)).deleteById(1L); @@ -121,13 +126,9 @@ void testDeletePlugins() { @Test void testGetPlugins() { - Specification spec = mock(Specification.class); - PageRequest pageRequest = PageRequest.of(0, 10); Page page = new PageImpl<>(Collections.singletonList(new PluginMetadata())); - when(metadataDao.findAll(any(Specification.class), any(PageRequest.class))).thenReturn(page); - - Page result = pluginService.getPlugins(spec, pageRequest); + Page result = pluginService.getPlugins(null, 0, 10); assertFalse(result.isEmpty()); verify(metadataDao, times(1)).findAll(any(Specification.class), any(PageRequest.class)); } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java new file mode 100644 index 00000000000..c779b6e990b --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SmsGeneralConfigServiceTest.java @@ -0,0 +1,74 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.SmsNoticeSender; +import org.apache.hertzbeat.manager.service.impl.SmsGeneralConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link SmsGeneralConfigServiceImpl} + */ + +class SmsGeneralConfigServiceTest { + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + @InjectMocks + private SmsGeneralConfigServiceImpl service; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + service = new SmsGeneralConfigServiceImpl( + generalConfigDao, + objectMapper + ); + } + + @Test + void testType() { + String result = service.type(); + assertEquals(GeneralConfigTypeEnum.sms.name(), result); + } + + @Test + void testGetTypeReference() { + + TypeReference typeReference = service.getTypeReference(); + assertNotNull(typeReference); + assertEquals(SmsNoticeSender.class, typeReference.getType()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java new file mode 100644 index 00000000000..47d281bd778 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SparkDeskAiServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.ai.SparkDeskAiServiceImpl; + +/** + * test case for {@link SparkDeskAiServiceImpl} + */ + +class SparkDeskAiServiceTest { +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java new file mode 100644 index 00000000000..1766b2789da --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/StatusPageServiceTest.java @@ -0,0 +1,155 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.List; +import org.apache.hertzbeat.common.entity.manager.StatusPageComponent; +import org.apache.hertzbeat.common.entity.manager.StatusPageIncident; +import org.apache.hertzbeat.common.entity.manager.StatusPageOrg; +import org.apache.hertzbeat.manager.component.status.CalculateStatus; +import org.apache.hertzbeat.manager.dao.StatusPageComponentDao; +import org.apache.hertzbeat.manager.dao.StatusPageHistoryDao; +import org.apache.hertzbeat.manager.dao.StatusPageIncidentComponentBindDao; +import org.apache.hertzbeat.manager.dao.StatusPageIncidentDao; +import org.apache.hertzbeat.manager.dao.StatusPageOrgDao; +import org.apache.hertzbeat.manager.service.impl.StatusPageServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.data.domain.Sort; + +/** + * test case for {@link StatusPageServiceImpl} + */ + +class StatusPageServiceTest { + + @Mock + private StatusPageOrgDao statusPageOrgDao; + + @Mock + private StatusPageComponentDao statusPageComponentDao; + + @Mock + private StatusPageHistoryDao statusPageHistoryDao; + + @Mock + private StatusPageIncidentDao statusPageIncidentDao; + + @Mock + private StatusPageIncidentComponentBindDao statusPageIncidentComponentBindDao; + + @Mock + private CalculateStatus calculateStatus; + + @InjectMocks + private StatusPageServiceImpl statusPageService = new StatusPageServiceImpl(statusPageIncidentComponentBindDao); + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + } + + @Test + void testQueryStatusPageOrg() { + + StatusPageOrg expectedOrg = new StatusPageOrg(); + when(statusPageOrgDao.findAll()).thenReturn(List.of(expectedOrg)); + + StatusPageOrg actualOrg = statusPageService.queryStatusPageOrg(); + + assertEquals(expectedOrg, actualOrg); + } + + @Test + void testSaveStatusPageOrg() { + + StatusPageOrg inputOrg = new StatusPageOrg(); + when(statusPageOrgDao.save(inputOrg)).thenReturn(inputOrg); + + StatusPageOrg savedOrg = statusPageService.saveStatusPageOrg(inputOrg); + + assertEquals(inputOrg, savedOrg); + } + + @Test + void testQueryStatusPageComponents() { + + StatusPageComponent component = new StatusPageComponent(); + when(statusPageComponentDao.findAll()).thenReturn(List.of(component)); + + List components = statusPageService.queryStatusPageComponents(); + + assertEquals(1, components.size()); + assertEquals(component, components.get(0)); + } + + @Test + void testSaveStatusPageComponent() { + + StatusPageComponent component = new StatusPageComponent(); + when(statusPageComponentDao.save(component)).thenReturn(component); + + statusPageService.newStatusPageComponent(component); + + verify(statusPageComponentDao, times(1)).save(component); + } + + @Test + void testQueryStatusPageIncidents() { + + StatusPageIncident incident = new StatusPageIncident(); + when(statusPageIncidentDao.findAll(Sort.by(Sort.Direction.DESC, "startTime"))).thenReturn(List.of(incident)); + + List incidents = statusPageService.queryStatusPageIncidents(); + + assertEquals(1, incidents.size()); + assertEquals(incident, incidents.get(0)); + } + + @Test + void testSaveStatusPageIncident() { + + StatusPageIncident incident = new StatusPageIncident(); + when(statusPageIncidentDao.save(incident)).thenReturn(incident); + + statusPageService.newStatusPageIncident(incident); + + verify(statusPageIncidentDao, times(1)).save(incident); + } + + @Test + void testDeleteStatusPageIncident() { + + Long incidentId = 1L; + doNothing().when(statusPageIncidentDao).deleteById(incidentId); + + statusPageService.deleteStatusPageIncident(incidentId); + + verify(statusPageIncidentDao, times(1)).deleteById(incidentId); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java new file mode 100644 index 00000000000..9ce4e17fdbb --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemGeneralConfigServiceTest.java @@ -0,0 +1,72 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.SystemConfig; +import org.apache.hertzbeat.manager.service.impl.SystemGeneralConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link SystemGeneralConfigServiceImpl} + */ + +class SystemGeneralConfigServiceTest { + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + @InjectMocks + private SystemGeneralConfigServiceImpl service; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + service = new SystemGeneralConfigServiceImpl(generalConfigDao, objectMapper); + } + + @Test + void testType() { + + String result = service.type(); + assertEquals(GeneralConfigTypeEnum.system.name(), result); + } + + @Test + void testGetTypeReference() { + + TypeReference typeReference = service.getTypeReference(); + assertNotNull(typeReference); + assertEquals(SystemConfig.class, typeReference.getType()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java new file mode 100644 index 00000000000..d9ece4a9dab --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/SystemSecretServiceTest.java @@ -0,0 +1,67 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import com.fasterxml.jackson.core.type.TypeReference; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.SystemSecret; +import org.apache.hertzbeat.manager.service.impl.SystemSecretServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; + +/** + * test case for {@link SystemSecretServiceImpl} + */ + +class SystemSecretServiceTest { + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + private SystemSecretServiceImpl systemSecretService; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + + this.systemSecretService = new SystemSecretServiceImpl(generalConfigDao, objectMapper); + } + + @Test + void testType() { + + assertEquals(GeneralConfigTypeEnum.secret.name(), systemSecretService.type()); + } + + @Test + void testGetTypeReference() { + + TypeReference typeReference = systemSecretService.getTypeReference(); + assertEquals(SystemSecret.class, typeReference.getType()); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/TagServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/TagServiceTest.java index f8f7bdc73c0..ada1c65956a 100644 --- a/manager/src/test/java/org/apache/hertzbeat/manager/service/TagServiceTest.java +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/TagServiceTest.java @@ -22,11 +22,9 @@ import static org.junit.jupiter.api.Assertions.assertThrows; import static org.mockito.ArgumentMatchers.anyList; import static org.mockito.ArgumentMatchers.anySet; -import static org.mockito.Mockito.doNothing; -import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.any; import static org.mockito.Mockito.reset; import static org.mockito.Mockito.when; - import java.util.Collections; import java.util.HashSet; import java.util.Optional; @@ -78,21 +76,20 @@ void modifyTag() { @Test void getTags() { - Specification specification = mock(Specification.class); - when(tagDao.findAll(specification, PageRequest.of(1, 1))).thenReturn(Page.empty()); - assertNotNull(tagService.getTags(specification, PageRequest.of(1, 1))); + when(tagDao.findAll(any(Specification.class), any(PageRequest.class))).thenReturn(Page.empty()); + assertNotNull(tagService.getTags(null, null, 1, 10)); } @Test void deleteTags() { - doNothing().when(tagDao).deleteTagsByIdIn(anySet()); - when(tagMonitorBindDao.countByTagIdIn(anySet())).thenReturn(0L); assertDoesNotThrow(() -> tagService.deleteTags(new HashSet<>(1))); } @Test void deleteUsingTags() { when(tagMonitorBindDao.countByTagIdIn(anySet())).thenReturn(1L); - assertThrows(CommonException.class,() -> tagService.deleteTags(new HashSet<>(1))); + HashSet set = new HashSet<>(1); + set.add(1L); + assertThrows(CommonException.class, () -> tagService.deleteTags(set)); } } diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/TemplateConfigServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/TemplateConfigServiceTest.java new file mode 100644 index 00000000000..05c014f8c9f --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/TemplateConfigServiceTest.java @@ -0,0 +1,94 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import com.fasterxml.jackson.databind.ObjectMapper; +import org.apache.hertzbeat.common.constants.GeneralConfigTypeEnum; +import org.apache.hertzbeat.manager.dao.GeneralConfigDao; +import org.apache.hertzbeat.manager.pojo.dto.TemplateConfig; +import org.apache.hertzbeat.manager.service.impl.TemplateConfigServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link TemplateConfigServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class TemplateConfigServiceTest { + + @Mock + private GeneralConfigDao generalConfigDao; + + @Mock + private ObjectMapper objectMapper; + + @Mock + private AppService appService; + + @InjectMocks + private TemplateConfigServiceImpl templateConfigServiceImpl; + + @BeforeEach + void setUp() { + + templateConfigServiceImpl = new TemplateConfigServiceImpl(generalConfigDao, objectMapper); + ReflectionTestUtils.setField(templateConfigServiceImpl, "appService", appService); + } + + @Test + void testHandlerValidTemplateConfig() { + + TemplateConfig templateConfig = mock(TemplateConfig.class); + templateConfigServiceImpl.handler(templateConfig); + + verify( + appService, + times(1) + ).updateCustomTemplateConfig(templateConfig); + } + + @Test + void testHandlerNullTemplateConfig() { + + templateConfigServiceImpl.handler(null); + + verify( + appService, + times(0) + ).updateCustomTemplateConfig(any()); + } + + @Test + void testType() { + + String type = templateConfigServiceImpl.type(); + assertEquals(GeneralConfigTypeEnum.template.name(), type); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/YamlImExportServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/YamlImExportServiceTest.java new file mode 100644 index 00000000000..e161e9dd38d --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/YamlImExportServiceTest.java @@ -0,0 +1,117 @@ +/* + * 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.hertzbeat.manager.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import java.io.ByteArrayInputStream; +import java.io.ByteArrayOutputStream; +import java.io.InputStream; +import java.io.OutputStream; +import java.nio.charset.StandardCharsets; +import java.util.Arrays; +import java.util.List; +import org.apache.hertzbeat.manager.service.impl.AbstractImExportServiceImpl; +import org.apache.hertzbeat.manager.service.impl.YamlImExportServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * Test case for {@link YamlImExportServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class YamlImExportServiceTest { + + @InjectMocks + private YamlImExportServiceImpl yamlImExportService; + + @BeforeEach + void setUp() { + + yamlImExportService = new YamlImExportServiceImpl(); + } + + @Test + void testType() { + + assertEquals("YAML", yamlImExportService.type()); + } + + @Test + void testParseImport() { + + String yamlContent = "- id: 1\n name: Monitor1\n- id: 2\n name: Monitor2"; + InputStream is = new ByteArrayInputStream(yamlContent.getBytes(StandardCharsets.UTF_8)); + + List result = yamlImExportService.parseImport(is); + + assertNotNull(result); + assertEquals(2, result.size()); + assertEquals("[{id=1, name=Monitor1}, {id=2, name=Monitor2}]", result.toString()); + } + + @Test + void testParseImportNull() { + + InputStream is = new ByteArrayInputStream("".getBytes(StandardCharsets.UTF_8)); + + List result = yamlImExportService.parseImport(is); + + assertNull(result); + } + + @Test + void testWriteOs() { + + AbstractImExportServiceImpl.ParamDTO paramDTO = new AbstractImExportServiceImpl.ParamDTO(); + paramDTO.setType((byte) 1); + paramDTO.setField("Test"); + paramDTO.setValue("Test"); + AbstractImExportServiceImpl.MonitorDTO monitorDTO = new AbstractImExportServiceImpl.MonitorDTO(); + monitorDTO.setTags(List.of(1L, 2L)); + monitorDTO.setIntervals(1); + monitorDTO.setStatus((byte) 1); + AbstractImExportServiceImpl.ExportMonitorDTO exportMonitorDto1 = new AbstractImExportServiceImpl.ExportMonitorDTO(); + exportMonitorDto1.setParams(List.of(paramDTO)); + exportMonitorDto1.setMonitor(monitorDTO); + exportMonitorDto1.setMetrics(List.of("Test1", "Test2")); + AbstractImExportServiceImpl.ExportMonitorDTO exportMonitorDto2 = new AbstractImExportServiceImpl.ExportMonitorDTO(); + exportMonitorDto2.setParams(List.of(paramDTO)); + exportMonitorDto2.setMonitor(monitorDTO); + exportMonitorDto2.setMetrics(List.of("Test1", "Test2")); + + List monitorList = Arrays.asList( + exportMonitorDto1, + exportMonitorDto2 + ); + OutputStream os = new ByteArrayOutputStream(); + + yamlImExportService.writeOs(monitorList, os); + + String output = os.toString(); + assertTrue(output.contains("metrics:\n - Test1")); + assertTrue(output.contains(" params:\n - &id002\n field: Test")); + } + +} diff --git a/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java b/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java new file mode 100644 index 00000000000..12fb3fd10b4 --- /dev/null +++ b/manager/src/test/java/org/apache/hertzbeat/manager/service/ZhiPuServiceTest.java @@ -0,0 +1,27 @@ +/* + * 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.hertzbeat.manager.service; + +import org.apache.hertzbeat.manager.service.ai.ZhiPuServiceImpl; + +/** + * test case for {@link ZhiPuServiceImpl} + */ + +class ZhiPuServiceTest { +} diff --git a/material/licenses/collector/LICENSE b/material/licenses/collector/LICENSE index 1fbaa5618eb..2620a42bd70 100644 --- a/material/licenses/collector/LICENSE +++ b/material/licenses/collector/LICENSE @@ -324,6 +324,7 @@ The text of each license is the standard Apache 2.0 license. https://mvnrepository.com/artifact/org.springframework/spring-webmvc/6.1.4 Apache-2.0 https://mvnrepository.com/artifact/org.apache.tomcat.embed/tomcat-embed-core/10.1.19 Apache-2.0 https://mvnrepository.com/artifact/com.vesoft/client/3.6.0 Apache-2.0 + https://mvnrepository.com/artifact/com.hivemq/hivemq-mqtt-client/1.3.3 Apache-2.0 ======================================================================== @@ -374,9 +375,9 @@ The text of each license is also included in licenses/LICENSE-[project].txt. https://mvnrepository.com/artifact/jakarta.persistence/jakarta.persistence-api/3.1.0 https://mvnrepository.com/artifact/jakarta.annotation/jakarta.annotation-api/2.1.1 https://mvnrepository.com/artifact/org.aspectj/aspectjweaver/1.9.21 - https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.asm/9.5.0 - https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.core/4.0.2 - https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpa/4.0.2 + https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.asm/9.5.0 + https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.core/4.0.2 + https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpa/4.0.2 https://mvnrepository.com/artifact/org.eclipse.persistence/org.eclipse.persistence.jpa.jpql/4.0.2 diff --git a/plugin/pom.xml b/plugin/pom.xml index 461adca6704..5f365c6907a 100644 --- a/plugin/pom.xml +++ b/plugin/pom.xml @@ -28,8 +28,6 @@ hertzbeat-plugin ${project.artifactId} - 3.2.0 - 3.3.0 @@ -37,8 +35,32 @@ org.apache.hertzbeat hertzbeat-common + provided + + + + org.apache.maven.plugins + maven-assembly-plugin + ${maven-assembly-plugin.version} + + + src/main/resources/assembly/assembly.xml + + + + + make-assembly + package + + single + + + + + + diff --git a/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java b/plugin/src/main/java/org/apache/hertzbeat/plugin/PostAlertPlugin.java similarity index 70% rename from plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java rename to plugin/src/main/java/org/apache/hertzbeat/plugin/PostAlertPlugin.java index 7fca0b75844..feb4e177a67 100644 --- a/plugin/src/main/java/org/apache/hertzbeat/plugin/impl/DemoPluginImpl.java +++ b/plugin/src/main/java/org/apache/hertzbeat/plugin/PostAlertPlugin.java @@ -15,26 +15,19 @@ * limitations under the License. */ -package org.apache.hertzbeat.plugin.impl; +package org.apache.hertzbeat.plugin; -import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.alerter.Alert; -import org.apache.hertzbeat.plugin.Plugin; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; /** - * DemoPlugin + * Post-alarm plug-in */ -@Slf4j -public class DemoPluginImpl implements Plugin { +public interface PostAlertPlugin { /** - * execute when alert + * Supports user-defined parameters */ - @Override - public void alert(Alert alert) { - if (log.isDebugEnabled()) { - log.debug("DemoPluginImpl alert: {}", alert); - } - } + void execute(Alert alert, PluginContext pluginContext); } diff --git a/plugin/src/main/java/org/apache/hertzbeat/plugin/PostCollectPlugin.java b/plugin/src/main/java/org/apache/hertzbeat/plugin/PostCollectPlugin.java new file mode 100644 index 00000000000..c4364ca151f --- /dev/null +++ b/plugin/src/main/java/org/apache/hertzbeat/plugin/PostCollectPlugin.java @@ -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.hertzbeat.plugin; + +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; + +/** + * Post-collect plug-in + */ +public interface PostCollectPlugin { + + /** + * do something after collect + */ + void execute(CollectRep.MetricsData metricsData, PluginContext pluginContext); + +} diff --git a/plugin/src/main/java/org/apache/hertzbeat/plugin/runner/PluginRunner.java b/plugin/src/main/java/org/apache/hertzbeat/plugin/runner/PluginRunner.java new file mode 100644 index 00000000000..7f3e00930c4 --- /dev/null +++ b/plugin/src/main/java/org/apache/hertzbeat/plugin/runner/PluginRunner.java @@ -0,0 +1,46 @@ +/* + * 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.hertzbeat.plugin.runner; + + +import java.util.function.BiConsumer; +import java.util.function.Consumer; +import org.apache.hertzbeat.common.entity.plugin.PluginContext; + +/** + * plugin runner + */ +public interface PluginRunner { + + /** + * execute plugin + * @param clazz plugin class + * @param execute plugin execution logic + * @param plugin type + */ + void pluginExecute(Class clazz, Consumer execute); + + /** + * execute plugin with params + * @param clazz plugin class + * @param execute plugin execution logic + * @param plugin type + */ + void pluginExecute(Class clazz, BiConsumer execute); + +} diff --git a/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.Plugin b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.Plugin index 8da17400556..e69de29bb2d 100644 --- a/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.Plugin +++ b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.Plugin @@ -1 +0,0 @@ -org.apache.hertzbeat.plugin.impl.DemoPluginImpl diff --git a/warehouse/src/main/resources/META-INF/spring.factories b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostAlertPlugin similarity index 86% rename from warehouse/src/main/resources/META-INF/spring.factories rename to plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostAlertPlugin index 2df923ea4c1..b1312a0905c 100644 --- a/warehouse/src/main/resources/META-INF/spring.factories +++ b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostAlertPlugin @@ -1,3 +1,4 @@ +# # 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. @@ -12,6 +13,4 @@ # 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.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.hertzbeat.warehouse.WarehouseAutoConfiguration +# diff --git a/alerter/src/main/resources/META-INF/spring.factories b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostCollectPlugin similarity index 86% rename from alerter/src/main/resources/META-INF/spring.factories rename to plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostCollectPlugin index 13843a7949e..b1312a0905c 100644 --- a/alerter/src/main/resources/META-INF/spring.factories +++ b/plugin/src/main/resources/META-INF/services/org.apache.hertzbeat.plugin.PostCollectPlugin @@ -1,3 +1,4 @@ +# # 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. @@ -12,6 +13,4 @@ # 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.springframework.boot.autoconfigure.EnableAutoConfiguration=\ -org.apache.hertzbeat.alert.config.AlerterAutoConfiguration +# diff --git a/plugin/src/main/resources/assembly/assembly.xml b/plugin/src/main/resources/assembly/assembly.xml new file mode 100644 index 00000000000..2b5008142f7 --- /dev/null +++ b/plugin/src/main/resources/assembly/assembly.xml @@ -0,0 +1,41 @@ + + + jar-with-lib + + jar + + false + + + /lib + false + runtime + + ${project.groupId}:${project.artifactId} + + + + + + ${project.build.outputDirectory} + / + + + diff --git a/plugin/src/main/resources/define/define.yml b/plugin/src/main/resources/define/define.yml new file mode 100644 index 00000000000..25b47f6ad57 --- /dev/null +++ b/plugin/src/main/resources/define/define.yml @@ -0,0 +1,14 @@ +# 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. diff --git a/pom.xml b/pom.xml index 449c1d20e46..1a354117606 100644 --- a/pom.xml +++ b/pom.xml @@ -95,6 +95,9 @@ 17 ${java.version} ${java.version} + 3.2.0 + 3.3.0 + 2.1.1 3.8.1 @@ -139,6 +142,32 @@ 3.2.1 3.10.0 0.8.11 + 2.40.0 + + 4.3.0 + 4.1.1 + 1.4.2 + 2.13.1 + 0.3.0 + 3.6.7 + 4.9.4 + 3.5.2 + 1.4.5 + 2.2.1 + 3.6.0 + 4.0.2 + 1.0.0 + 1.1.0 + 3.1.37 + 3.23.5 + + + 0.13.3 + 2.23 + 3.0.5 + 3.0.0 + 0.7.3 + 8.0.33 @@ -378,7 +407,7 @@ okhttp ${okhttp.version} - + com.github.ben-manes.caffeine caffeine diff --git a/push/pom.xml b/push/pom.xml index 5ae67fece70..d3be8d935b2 100644 --- a/push/pom.xml +++ b/push/pom.xml @@ -27,10 +27,6 @@ hertzbeat-push ${project.artifactId} - - 3.2.0 - 3.3.0 - diff --git a/push/src/main/java/org/apache/hertzbeat/push/config/PushAutoConfiguration.java b/push/src/main/java/org/apache/hertzbeat/push/config/PushAutoConfiguration.java index d087c5adc98..342dfaa42c6 100644 --- a/push/src/main/java/org/apache/hertzbeat/push/config/PushAutoConfiguration.java +++ b/push/src/main/java/org/apache/hertzbeat/push/config/PushAutoConfiguration.java @@ -17,11 +17,18 @@ package org.apache.hertzbeat.push.config; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.springframework.boot.autoconfigure.AutoConfiguration; import org.springframework.context.annotation.ComponentScan; /** * push configuration */ -@ComponentScan(basePackages = "org.apache.hertzbeat.push") + +@AutoConfiguration +@ComponentScan(basePackages = ConfigConstants.PkgConstant.PKG + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.PUSH) public class PushAutoConfiguration { } diff --git a/push/src/main/java/org/apache/hertzbeat/push/service/impl/PushServiceImpl.java b/push/src/main/java/org/apache/hertzbeat/push/service/impl/PushServiceImpl.java index 5cdd981ca96..d3780a3995b 100644 --- a/push/src/main/java/org/apache/hertzbeat/push/service/impl/PushServiceImpl.java +++ b/push/src/main/java/org/apache/hertzbeat/push/service/impl/PushServiceImpl.java @@ -60,7 +60,7 @@ public class PushServiceImpl implements PushService { private static final long deleteBeforeTime = deleteMetricsPeriod / 2; - PushServiceImpl(){ + public PushServiceImpl(){ monitorIdCache = new HashMap<>(); lastPushMetrics = new HashMap<>(); @@ -128,7 +128,7 @@ public PushMetricsDto getPushMetricData(final Long monitorId, final Long time) { lastPushMetrics.put(monitorId, metrics); } catch (Exception e) { - log.error("no metrics found, monitor id: {}, {}, {}", monitorId, e.getMessage(), e); + log.error("no metrics found, monitor id: {}, {}", monitorId, e.getMessage(), e); return pushMetricsDto; } } diff --git a/push/src/test/java/org/apache/hertzbeat/push/controller/PushControllerTest.java b/push/src/test/java/org/apache/hertzbeat/push/controller/PushControllerTest.java new file mode 100644 index 00000000000..03d9f9a61a7 --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/controller/PushControllerTest.java @@ -0,0 +1,93 @@ +/* + * 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.hertzbeat.push.controller; + +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import static org.springframework.test.web.servlet.setup.MockMvcBuilders.standaloneSetup; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.push.PushMetricsDto; +import org.apache.hertzbeat.common.util.JsonUtil; +import org.apache.hertzbeat.push.service.PushService; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.request.MockMvcRequestBuilders; + +/** + * test case for {@link PushController} + */ + +@ExtendWith(MockitoExtension.class) +class PushControllerTest { + + private MockMvc mockMvc; + + @Mock + private PushService pushService; + + @InjectMocks + private PushController pushController; + + private PushMetricsDto mockPushMetricsDto; + + @BeforeEach + void setUp() { + + this.mockMvc = standaloneSetup(this.pushController).build(); + + mockPushMetricsDto = PushMetricsDto.builder().build(); + } + + @Test + void testPushMetrics() throws Exception { + + this.mockMvc.perform(MockMvcRequestBuilders.post("/api/push") + .contentType(MediaType.APPLICATION_JSON) + .content(JsonUtil.toJson(mockPushMetricsDto))) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + + @Test + void testGetMetrics() throws Exception { + + Long id = 6565463543L; + Long time = 6565463543L; + + when(pushService.getPushMetricData(id, time)).thenReturn(mockPushMetricsDto); + + this.mockMvc.perform(MockMvcRequestBuilders.get("/api/push") + .contentType(MediaType.APPLICATION_JSON) + .param("id", id.toString()) + .param("time", time.toString())) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andReturn(); + } + +} diff --git a/push/src/test/java/org/apache/hertzbeat/push/controller/PushGatewayControllerTest.java b/push/src/test/java/org/apache/hertzbeat/push/controller/PushGatewayControllerTest.java new file mode 100644 index 00000000000..c71377e56d8 --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/controller/PushGatewayControllerTest.java @@ -0,0 +1,90 @@ +/* + * 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.hertzbeat.push.controller; + +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.when; +import static org.springframework.test.web.servlet.request.MockMvcRequestBuilders.post; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; +import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; +import java.io.InputStream; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.push.service.PushGatewayService; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.http.MediaType; +import org.springframework.test.web.servlet.MockMvc; +import org.springframework.test.web.servlet.setup.MockMvcBuilders; + +/** + * test case for {@link PushGatewayController} + */ + +@ExtendWith(MockitoExtension.class) +class PushGatewayControllerTest { + + private MockMvc mockMvc; + + @Mock + private PushGatewayService pushGatewayService; + + @InjectMocks + private PushGatewayController gatewayController; + + @BeforeEach + void setUp() { + + mockMvc = MockMvcBuilders.standaloneSetup(gatewayController).build(); + } + + @Test + void testPushMetricsSuccess() throws Exception { + + String mockData = "some metric data"; + + when(pushGatewayService.pushMetricsData(any(InputStream.class))).thenReturn(true); + + mockMvc.perform(post("/api/push/pushgateway") + .contentType(MediaType.APPLICATION_JSON) + .content(mockData)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) + .andExpect(jsonPath("$.msg").value("Push success")); + } + + @Test + void testPushMetricsFailure() throws Exception { + + String mockData = "some metric data"; + + when(pushGatewayService.pushMetricsData(any(InputStream.class))).thenReturn(false); + + mockMvc.perform(post("/api/push/pushgateway") + .contentType(MediaType.APPLICATION_JSON) + .content(mockData)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.msg").value("Push failed")); + } + +} diff --git a/push/src/test/java/org/apache/hertzbeat/push/dao/PushMetricsDaoTest.java b/push/src/test/java/org/apache/hertzbeat/push/dao/PushMetricsDaoTest.java new file mode 100644 index 00000000000..c90a9c7e4da --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/dao/PushMetricsDaoTest.java @@ -0,0 +1,77 @@ +/* + * 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.hertzbeat.push.dao; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +import org.apache.hertzbeat.common.entity.push.PushMetrics; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link PushMetricsDao} + */ + +@ExtendWith(MockitoExtension.class) +public class PushMetricsDaoTest { + @Mock + private PushMetricsDao pushMetricsDao; + + @InjectMocks + private PushMetricsDaoTest pushMetricsDaoTest; + + @BeforeEach + void setUp() { + MockitoAnnotations.openMocks(this); + } + + @Test + void shallFindFirstByMonitorIdOrderByTimeDesc() { + + PushMetrics expectedMetrics = new PushMetrics(); + expectedMetrics.setMonitorId(1L); + expectedMetrics.setTime(System.currentTimeMillis()); + + when(pushMetricsDao.findFirstByMonitorIdOrderByTimeDesc(1L)).thenReturn(expectedMetrics); + + PushMetrics actualMetrics = pushMetricsDao.findFirstByMonitorIdOrderByTimeDesc(1L); + + assertEquals(expectedMetrics, actualMetrics); + verify(pushMetricsDao, times(1)).findFirstByMonitorIdOrderByTimeDesc(1L); + } + + @Test + void shallDeleteAllByTimeBefore() { + + doNothing().when(pushMetricsDao).deleteAllByTimeBefore(anyLong()); + + pushMetricsDao.deleteAllByTimeBefore(1000L); + + verify(pushMetricsDao, times(1)).deleteAllByTimeBefore(1000L); + } +} diff --git a/push/src/test/java/org/apache/hertzbeat/push/dao/PushMonitorDaoTest.java b/push/src/test/java/org/apache/hertzbeat/push/dao/PushMonitorDaoTest.java new file mode 100644 index 00000000000..3681154b161 --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/dao/PushMonitorDaoTest.java @@ -0,0 +1,94 @@ +/* + * 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.hertzbeat.push.dao; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.doNothing; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; + +import java.util.Optional; + +import org.apache.hertzbeat.common.entity.manager.Monitor; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link PushMonitorDao} + */ + +@ExtendWith(MockitoExtension.class) +public class PushMonitorDaoTest { + @Mock + private PushMonitorDao pushMonitorDao; + + @InjectMocks + private PushMonitorDaoTest pushMonitorDaoTest; + + @BeforeEach + void setUp() { + MockitoAnnotations.openMocks(this); + } + + @Test + void shallSaveMonitor() { + + Monitor monitor = new Monitor(); + monitor.setId(1L); + monitor.setName("Test Monitor"); + + when(pushMonitorDao.save(any(Monitor.class))).thenReturn(monitor); + + Monitor savedMonitor = pushMonitorDao.save(monitor); + + assertEquals(monitor, savedMonitor); + verify(pushMonitorDao, times(1)).save(monitor); + } + + @Test + void shallFindById() { + Monitor monitor = new Monitor(); + monitor.setId(1L); + monitor.setName("Test Monitor"); + + when(pushMonitorDao.findById(1L)).thenReturn(Optional.of(monitor)); + + Optional foundMonitor = pushMonitorDao.findById(1L); + + assertTrue(foundMonitor.isPresent()); + assertEquals(monitor, foundMonitor.get()); + verify(pushMonitorDao, times(1)).findById(1L); + } + + @Test + void shallDeleteById() { + doNothing().when(pushMonitorDao).deleteById(1L); + + pushMonitorDao.deleteById(1L); + + verify(pushMonitorDao, times(1)).deleteById(1L); + } +} diff --git a/push/src/test/java/org/apache/hertzbeat/push/service/PushGatewayServiceTest.java b/push/src/test/java/org/apache/hertzbeat/push/service/PushGatewayServiceTest.java new file mode 100644 index 00000000000..c7673f6e8b9 --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/service/PushGatewayServiceTest.java @@ -0,0 +1,104 @@ +/* + * 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.hertzbeat.push.service; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.Mockito.mockStatic; +import static org.mockito.Mockito.times; +import java.io.ByteArrayInputStream; +import java.io.IOException; +import java.io.InputStream; +import java.util.Collections; +import java.util.List; +import org.apache.hertzbeat.common.util.prometheus.Metric; +import org.apache.hertzbeat.common.util.prometheus.PrometheusUtil; +import org.apache.hertzbeat.push.service.impl.PushGatewayServiceImpl; +import org.junit.jupiter.api.AfterEach; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.MockedStatic; +import org.mockito.junit.jupiter.MockitoExtension; + +/** + * test case for {@link PushGatewayServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class PushGatewayServiceTest { + + @InjectMocks + private PushGatewayServiceImpl pushGatewayService; + + private MockedStatic prometheusUtilMock; + + @BeforeEach + void setUp() { + + prometheusUtilMock = mockStatic(PrometheusUtil.class); + } + + @AfterEach + void tearDown() { + + prometheusUtilMock.close(); + } + + @Test + void testPushMetricsDataSuccess() throws IOException { + + String mockData = "some metric data"; + InputStream inputStream = new ByteArrayInputStream(mockData.getBytes()); + List mockMetrics = Collections.singletonList(new Metric()); + + prometheusUtilMock.when( + () -> PrometheusUtil.parseMetrics(any(InputStream.class)) + ).thenReturn(mockMetrics); + + boolean result = pushGatewayService.pushMetricsData(inputStream); + + assertTrue(result); + prometheusUtilMock.verify( + () -> PrometheusUtil.parseMetrics(any(InputStream.class)), + times(1) + ); + } + + @Test + void testPushMetricsDataFailure() throws IOException { + + String mockData = "some metric data"; + InputStream inputStream = new ByteArrayInputStream(mockData.getBytes()); + + prometheusUtilMock.when(() -> PrometheusUtil.parseMetrics(any(InputStream.class))).thenReturn(null); + + boolean result = pushGatewayService.pushMetricsData(inputStream); + + assertFalse(result); + prometheusUtilMock.verify( + () -> PrometheusUtil.parseMetrics(any(InputStream.class)), + times(1) + ); + } + +} diff --git a/push/src/test/java/org/apache/hertzbeat/push/service/PushServiceTest.java b/push/src/test/java/org/apache/hertzbeat/push/service/PushServiceTest.java new file mode 100644 index 00000000000..d5ce5e0ebe5 --- /dev/null +++ b/push/src/test/java/org/apache/hertzbeat/push/service/PushServiceTest.java @@ -0,0 +1,132 @@ +/* + * 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.hertzbeat.push.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.any; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.ArrayList; +import java.util.List; +import java.util.Optional; +import org.apache.hertzbeat.common.entity.manager.Monitor; +import org.apache.hertzbeat.common.entity.push.PushMetrics; +import org.apache.hertzbeat.common.entity.push.PushMetricsDto; +import org.apache.hertzbeat.push.dao.PushMetricsDao; +import org.apache.hertzbeat.push.dao.PushMonitorDao; +import org.apache.hertzbeat.push.service.impl.PushServiceImpl; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; +import org.springframework.test.util.ReflectionTestUtils; + +/** + * test case for {@link PushServiceImpl} + */ + +@ExtendWith(MockitoExtension.class) +class PushServiceTest { + + @Mock + private PushMonitorDao monitorDao; + + @Mock + private PushMetricsDao metricsDao; + + @InjectMocks + private PushServiceImpl pushService; + + @BeforeEach + void setUp() { + + pushService = new PushServiceImpl(); + + ReflectionTestUtils.setField(pushService, "monitorDao", monitorDao); + ReflectionTestUtils.setField(pushService, "metricsDao", metricsDao); + } + + @Test + void testPushMetricsData() { + + PushMetricsDto pushMetricsDto = new PushMetricsDto(); + List metricsList = new ArrayList<>(); + PushMetricsDto.Metrics metrics = new PushMetricsDto.Metrics(); + metrics.setMonitorId(1L); + metricsList.add(metrics); + pushMetricsDto.setMetricsList(metricsList); + + when(monitorDao.findById(anyLong())).thenReturn(Optional.of(new Monitor())); + + pushService.pushMetricsData(pushMetricsDto); + + verify(metricsDao, times(1)).saveAll(any()); + } + + @Test + void testGetPushMetricData() { + + Long monitorId = 1L; + Long time = System.currentTimeMillis(); + PushMetrics pushMetrics = PushMetrics.builder() + .monitorId(monitorId) + .time(time) + .metrics("[{\"key\":\"value\"}]") + .build(); + + when(metricsDao.findFirstByMonitorIdOrderByTimeDesc(monitorId)).thenReturn(pushMetrics); + + PushMetricsDto result = pushService.getPushMetricData(monitorId, time); + + assertEquals(1, result.getMetricsList().size()); + assertEquals(monitorId, result.getMetricsList().get(0).getMonitorId()); + } + + @Test + void testGetPushMetricDataTimeInvalid() { + + Long monitorId = 1L; + Long time = System.currentTimeMillis() + 10000; + PushMetrics pushMetrics = PushMetrics.builder() + .monitorId(monitorId) + .time(System.currentTimeMillis()) + .metrics("[{\"key\":\"value\"}]") + .build(); + + when(metricsDao.findFirstByMonitorIdOrderByTimeDesc(monitorId)).thenReturn(pushMetrics); + + PushMetricsDto result = pushService.getPushMetricData(monitorId, time); + + assertTrue(result.getMetricsList().isEmpty()); + } + + @Test + void testDeletePeriodically() { + + pushService.deletePeriodically(); + verify(metricsDao, times(1)).deleteAllByTimeBefore(anyLong()); + } + +} diff --git a/remoting/pom.xml b/remoting/pom.xml index eeda5bbd3a1..4ecbc815861 100644 --- a/remoting/pom.xml +++ b/remoting/pom.xml @@ -27,10 +27,6 @@ hertzbeat-remoting ${project.artifactId} - - 3.2.0 - 3.3.0 - diff --git a/remoting/src/main/java/org/apache/hertzbeat/remoting/netty/NettyRemotingAbstract.java b/remoting/src/main/java/org/apache/hertzbeat/remoting/netty/NettyRemotingAbstract.java index 09b4dc4f4d2..a9632d7c401 100644 --- a/remoting/src/main/java/org/apache/hertzbeat/remoting/netty/NettyRemotingAbstract.java +++ b/remoting/src/main/java/org/apache/hertzbeat/remoting/netty/NettyRemotingAbstract.java @@ -26,6 +26,7 @@ import java.util.List; import java.util.concurrent.ConcurrentHashMap; import lombok.extern.slf4j.Slf4j; +import org.apache.commons.collections4.CollectionUtils; import org.apache.hertzbeat.common.entity.message.ClusterMsg; import org.apache.hertzbeat.common.util.NetworkUtil; import org.apache.hertzbeat.remoting.RemotingService; @@ -77,7 +78,7 @@ protected void processRequestMsg(ChannelHandlerContext ctx, ClusterMsg.Message r } private void doBeforeRequest(ChannelHandlerContext ctx, ClusterMsg.Message request) { - if (this.nettyHookList == null || this.nettyHookList.isEmpty()) { + if (CollectionUtils.isEmpty(this.nettyHookList)) { return; } for (NettyHook nettyHook : this.nettyHookList) { diff --git a/remoting/src/test/java/org/apache/hertzbeat/remoting/RemotingServiceTest.java b/remoting/src/test/java/org/apache/hertzbeat/remoting/RemotingServiceTest.java index b37e23ff1e5..6b9831e331c 100644 --- a/remoting/src/test/java/org/apache/hertzbeat/remoting/RemotingServiceTest.java +++ b/remoting/src/test/java/org/apache/hertzbeat/remoting/RemotingServiceTest.java @@ -139,9 +139,7 @@ public void testSendMsgSync() { @Test public void testNettyHook() { this.remotingServer.registerHook(Lists.newArrayList( - (ctx, message) -> { - Assertions.assertEquals("hello world", message.getMsg()); - } + (ctx, message) -> Assertions.assertEquals("hello world", message.getMsg()) )); this.remotingServer.registerProcessor(ClusterMsg.MessageType.HEARTBEAT, (ctx, message) -> diff --git a/script/application.yml b/script/application.yml index d5118623c5a..a96a85293fb 100644 --- a/script/application.yml +++ b/script/application.yml @@ -174,7 +174,7 @@ warehouse: alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk diff --git a/script/assembly/server/assembly-docker-compose.xml b/script/assembly/server/assembly-docker-compose.xml index 2ffe576bf5f..b7a58d8ea42 100644 --- a/script/assembly/server/assembly-docker-compose.xml +++ b/script/assembly/server/assembly-docker-compose.xml @@ -35,6 +35,7 @@ http://maven.apache.org/ASSEMBLY/2.0.0 "> conf/** *.yaml *.md + ext-lib/README hertzbeat-mysql-iotdb @@ -45,6 +46,7 @@ http://maven.apache.org/ASSEMBLY/2.0.0 "> conf/** *.yaml *.md + ext-lib/README hertzbeat-mysql-tdengine @@ -55,18 +57,20 @@ http://maven.apache.org/ASSEMBLY/2.0.0 "> conf/** *.yaml *.md + ext-lib/README hertzbeat-mysql-victoria-metrics - ../script/docker-compose/hertzbeat-postgresql-iotdb + ../script/docker-compose/hertzbeat-postgresql-victoria-metrics true conf/** *.yaml *.md + ext-lib/README - hertzbeat-postgresql-iotdb + hertzbeat-postgresql-victoria-metrics ../script/docker-compose diff --git a/script/assembly/server/bin/entrypoint.sh b/script/assembly/server/bin/entrypoint.sh index 4889fa27253..0a9b0b26e41 100644 --- a/script/assembly/server/bin/entrypoint.sh +++ b/script/assembly/server/bin/entrypoint.sh @@ -46,7 +46,11 @@ if [ ! -d $LOGS_DIR ]; then fi # JVM Configuration -JAVA_OPTS=" -Doracle.jdbc.timezoneAsRegion=false" +if [ -z "$JAVA_OPTS" ]; then + JAVA_OPTS=" -Doracle.jdbc.timezoneAsRegion=false" +else + JAVA_OPTS="${JAVA_OPTS} -Doracle.jdbc.timezoneAsRegion=false" +fi # JVM Configuration JAVA_MEM_OPTS=" -server -XX:SurvivorRatio=6 -XX:+UseParallelGC -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=$LOGS_DIR" diff --git a/script/checkstyle/checkstyle.xml b/script/checkstyle/checkstyle.xml index 91a4d9b97a2..c74456031f7 100644 --- a/script/checkstyle/checkstyle.xml +++ b/script/checkstyle/checkstyle.xml @@ -278,7 +278,7 @@ + value="^.*( @author| @date).*" /> @@ -296,15 +296,18 @@ value="Redundant import {0}."/> - + + + <!– This ensures that static imports go first. –> - + --> diff --git a/script/checkstyle/suppressions.xml b/script/checkstyle/suppressions.xml index 2a14e5ce41f..c85d944e3fb 100644 --- a/script/checkstyle/suppressions.xml +++ b/script/checkstyle/suppressions.xml @@ -36,7 +36,4 @@ - - - diff --git a/script/ci/docs/check_file_name.json b/script/ci/docs/check_file_name.json new file mode 100644 index 00000000000..16ca62b61c8 --- /dev/null +++ b/script/ci/docs/check_file_name.json @@ -0,0 +1,8 @@ +{ + "directories": [ + "./home/blog", + "./home/docs", + "./home/i18n/zh-cn/docusaurus-plugin-content-blog", + "./home/i18n/zh-cn/docusaurus-plugin-content-docs/current" + ] +} diff --git a/script/ci/docs/check_file_name.py b/script/ci/docs/check_file_name.py new file mode 100644 index 00000000000..f9c5207d2b1 --- /dev/null +++ b/script/ci/docs/check_file_name.py @@ -0,0 +1,65 @@ +# 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. + +import os +import re +import sys +import json + +def read_config(file_path): + try: + with open(file_path, 'r') as file: + config = json.load(file) + return config.get("directories", []) + except Exception as e: + print(f"Error reading configuration file: {e}") + sys.exit(1) + + +def find_invalid_files(directories): + invalid_files = [] + pattern = re.compile(r'^[_a-z0-9-]+(\.[_a-z0-9-]+)*$') + + for target_dir in directories: + print(f"Checking directory: {target_dir}") + for root, _, files in os.walk(target_dir): + for filename in files: + if not pattern.match(filename): + invalid_files.append(os.path.join(root, filename)) + + if invalid_files: + print("\nError: The following files have invalid names (file names should only contain lowercase letters, numbers, and hyphens):") + for invalid_file in invalid_files: + print(invalid_file) + sys.exit(1) + else: + print("All file names are valid.") + + +if __name__ == "__main__": + # usage: python check_filenames.py config.json + if len(sys.argv) != 2: + print("Usage: python xxx_script.py config.json") + sys.exit(1) + + config_file = sys.argv[1] + directories = read_config(config_file) + if not directories: + print("\nNo directories found in configuration file.") + sys.exit(1) + + find_invalid_files(directories) diff --git a/script/ci/exclude_files.txt b/script/ci/exclude_files.txt new file mode 100644 index 00000000000..174f52f838f --- /dev/null +++ b/script/ci/exclude_files.txt @@ -0,0 +1,44 @@ +./home/versioned_docs/version-v1.5.x/community/how-to-release.md +./home/versioned_docs/version-v1.5.x/start/postgresql-change.md +./home/versioned_docs/version-v1.4.x/start/postgresql-change.md +./home/versioned_docs/version-v1.5.x/introduce.md +./home/versioned_docs/version-v1.4.x/introduce.md +./home/versioned_docs/version-v1.5.x/help/sqlserver.md +./home/versioned_docs/version-v1.4.x/help/sqlserver.md +./home/versioned_docs/version-v1.5.x/help/alert_threshold_expr.md +./home/versioned_docs/version-v1.4.x/help/alert_threshold_expr.md +./home/versioned_docs/version-v1.4.x/others/resource.md +./home/versioned_docs/version-v1.5.x/others/resource.md +./home/docs/community/how-to-release.md +./home/blog/2022-06-01-hertzbeat-v1.0.md +./home/blog/2023-12-11-hertzbeat-v1.4.3.md +./home/blog/2023-11-12-hertzbeat-v1.4.2.md +./home/blog/2024-01-18-hertzbeat-v1.4.4.md +./home/docs/introduce.md +./home/docs/help/sqlserver.md +./home/docs/postgresql-change.md +./home/docs/help/alert_threshold_expr.md +./home/docs/others/resource.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/introduce.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/sqlserver.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/postgresql-change.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/help/alert_threshold_expr.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/others/resource.md +./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-11-12-hertzbeat-v1.4.2.md +./home/i18n/zh-cn/docusaurus-plugin-content-blog/2022-06-01-hertzbeat-v1.0.md +./home/i18n/zh-cn/docusaurus-plugin-content-blog/2023-12-11-hertzbeat-v1.4.3.md +./home/i18n/zh-cn/docusaurus-plugin-content-blog/2024-01-18-hertzbeat-v1.4.4.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/community/how-to-release.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/postgresql-change.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/postgresql-change.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/introduce.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/introduce.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/sqlserver.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/sqlserver.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/help/alert_threshold_expr.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/help/alert_threshold_expr.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/others/resource.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/others/resource.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.5.x/start/tdengine-init.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/version-v1.4.x/start/tdengine-init.md +./home/i18n/zh-cn/docusaurus-plugin-content-docs/current/start/tdengine-init.md diff --git a/e2e/Dockerfile b/script/ci/github-actions/setup-deps/action.yml similarity index 77% rename from e2e/Dockerfile rename to script/ci/github-actions/setup-deps/action.yml index 38398e281cd..e0d39fc280c 100644 --- a/e2e/Dockerfile +++ b/script/ci/github-actions/setup-deps/action.yml @@ -15,9 +15,14 @@ # specific language governing permissions and limitations # under the License. -FROM ghcr.io/linuxsuren/api-testing:v0.0.17 +name: setup-deps +description: Install host system dependencies -WORKDIR /workspace -COPY . . - -CMD [ "/workspace/entrypoint.sh" ] +runs: + using: composite + steps: + - name: Set up JDK 17 + uses: actions/setup-java@v4 + with: + distribution: "zulu" + java-version: 17 diff --git a/script/ci/link_check.json b/script/ci/link_check.json new file mode 100644 index 00000000000..7091f39379f --- /dev/null +++ b/script/ci/link_check.json @@ -0,0 +1,20 @@ +{ + "ignorePatterns": [ + { + "pattern": "^(?!http).*" + }, + { + "pattern": "!\\[.*\\]\\((?!http).*\\)" + } + ], + "timeout": "10s", + "retryOn429": true, + "retryCount": 10, + "fallbackRetryDelay": "1000s", + "aliveStatusCodes": [ + 0, + 200, + 401, + 403 + ] +} diff --git a/script/docker-compose/hertzbeat-mysql-iotdb/README.md b/script/docker-compose/hertzbeat-mysql-iotdb/README.md index e96f7bda2a9..b5b94efcec2 100644 --- a/script/docker-compose/hertzbeat-mysql-iotdb/README.md +++ b/script/docker-compose/hertzbeat-mysql-iotdb/README.md @@ -15,11 +15,11 @@ ##### docker compose deploys hertzbeat and its dependent services 1. Download the hertzbeat-docker-compose installation deployment script file - The script file is located in `script/docker-compose/hertzbeat-mysql-iotdb` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-iotdb) + The script file is located in `script/docker-compose/hertzbeat-mysql-iotdb` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/ hertzbeat-mysql-iotdb) 2. Add MYSQL jdbc driver jar - Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip Copy the jar package to the ext-lib directory. 3. Enter the deployment script docker-compose directory, execute diff --git a/script/docker-compose/hertzbeat-mysql-iotdb/README_CN.md b/script/docker-compose/hertzbeat-mysql-iotdb/README_CN.md index 498c92a1597..9f145fe769b 100644 --- a/script/docker-compose/hertzbeat-mysql-iotdb/README_CN.md +++ b/script/docker-compose/hertzbeat-mysql-iotdb/README_CN.md @@ -17,10 +17,10 @@ ##### docker compose部署hertzbeat及其依赖服务 1. 下载hertzbeat-docker-compose安装部署脚本文件 - 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-iotdb` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-iotdb) + 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-iotdb` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-iotdb) 2. 添加 MYSQL jdbc 驱动 jar - 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip 将此 jar 包拷贝放入 ext-lib 目录下. 3. 进入部署脚本 docker-compose 目录, 执行 diff --git a/script/docker-compose/hertzbeat-mysql-iotdb/conf/application.yml b/script/docker-compose/hertzbeat-mysql-iotdb/conf/application.yml index 436f2d99bd7..e849ffd5035 100644 --- a/script/docker-compose/hertzbeat-mysql-iotdb/conf/application.yml +++ b/script/docker-compose/hertzbeat-mysql-iotdb/conf/application.yml @@ -144,7 +144,7 @@ common: alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk diff --git a/script/docker-compose/hertzbeat-mysql-tdengine/README.md b/script/docker-compose/hertzbeat-mysql-tdengine/README.md index 14b24c20fb8..27c1febaba5 100644 --- a/script/docker-compose/hertzbeat-mysql-tdengine/README.md +++ b/script/docker-compose/hertzbeat-mysql-tdengine/README.md @@ -15,11 +15,11 @@ ##### docker compose deploys hertzbeat and its dependent services 1. Download the hertzbeat-docker-compose installation deployment script file - The script file is located in `script/docker-compose/hertzbeat-mysql-tdengine` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine) + The script file is located in `script/docker-compose/hertzbeat-mysql-tdengine` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine) 2. Add MYSQL jdbc driver jar - Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip Copy the jar package to the ext-lib directory. 3. Enter the deployment script docker-compose directory, execute diff --git a/script/docker-compose/hertzbeat-mysql-tdengine/README_CN.md b/script/docker-compose/hertzbeat-mysql-tdengine/README_CN.md index 4fce7449449..329344585d3 100644 --- a/script/docker-compose/hertzbeat-mysql-tdengine/README_CN.md +++ b/script/docker-compose/hertzbeat-mysql-tdengine/README_CN.md @@ -17,10 +17,10 @@ ##### docker compose部署hertzbeat及其依赖服务 1. 下载hertzbeat-docker-compose安装部署脚本文件 - 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-tdengine` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine) + 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-tdengine` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-tdengine) 2. 添加 MYSQL jdbc 驱动 jar - 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip 将此 jar 包拷贝放入 ext-lib 目录下. 3. 进入部署脚本 docker-compose 目录, 执行 diff --git a/script/docker-compose/hertzbeat-mysql-tdengine/conf/application.yml b/script/docker-compose/hertzbeat-mysql-tdengine/conf/application.yml index c3eaece6453..f44da6164e0 100644 --- a/script/docker-compose/hertzbeat-mysql-tdengine/conf/application.yml +++ b/script/docker-compose/hertzbeat-mysql-tdengine/conf/application.yml @@ -138,7 +138,7 @@ common: alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk diff --git a/script/docker-compose/hertzbeat-mysql-victoria-metrics/README.md b/script/docker-compose/hertzbeat-mysql-victoria-metrics/README.md index 8c22307f333..02a6829ea8f 100644 --- a/script/docker-compose/hertzbeat-mysql-victoria-metrics/README.md +++ b/script/docker-compose/hertzbeat-mysql-victoria-metrics/README.md @@ -15,11 +15,11 @@ ##### docker compose deploys hertzbeat and its dependent services 1. Download the hertzbeat-docker-compose installation deployment script file - The script file is located in `script/docker-compose/hertzbeat-mysql-victoria-metrics` link [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics) + The script file is located in `script/docker-compose/hertzbeat-mysql-victoria-metrics` link [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics) 2. Add MYSQL jdbc driver jar - Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + Download the MYSQL jdbc driver jar package, such as mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip Copy the jar package to the ext-lib directory. 3. Enter the deployment script docker-compose directory, execute diff --git a/script/docker-compose/hertzbeat-mysql-victoria-metrics/README_CN.md b/script/docker-compose/hertzbeat-mysql-victoria-metrics/README_CN.md index 2abef233d7f..6602b34a318 100644 --- a/script/docker-compose/hertzbeat-mysql-victoria-metrics/README_CN.md +++ b/script/docker-compose/hertzbeat-mysql-victoria-metrics/README_CN.md @@ -17,10 +17,10 @@ ##### docker compose部署hertzbeat及其依赖服务 1. 下载hertzbeat-docker-compose安装部署脚本文件 - 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-victoria-metrics` 链接 [script/docker-compose](https://github.com/hertzbeat/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-mysql-victoria-metrics) + 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-mysql-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-mysql-victoria-metrics) 2. 添加 MYSQL jdbc 驱动 jar - 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.26.jar. https://mvnrepository.com/artifact/com.mysql/mysql-connector-j/8.1.0 + 下载 MYSQL jdbc driver jar, 例如 mysql-connector-java-8.0.25.jar. https://dev.mysql.com/get/Downloads/Connector-J/mysql-connector-java-8.0.25.zip 将此 jar 包拷贝放入 ext-lib 目录下. 3. 进入部署脚本 docker-compose 目录, 执行 diff --git a/script/docker-compose/hertzbeat-mysql-victoria-metrics/conf/application.yml b/script/docker-compose/hertzbeat-mysql-victoria-metrics/conf/application.yml index c48a28dae62..b506c55ad08 100644 --- a/script/docker-compose/hertzbeat-mysql-victoria-metrics/conf/application.yml +++ b/script/docker-compose/hertzbeat-mysql-victoria-metrics/conf/application.yml @@ -139,7 +139,7 @@ common: alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk diff --git a/script/docker-compose/hertzbeat-postgresql-victoria-metrics/README_CN.md b/script/docker-compose/hertzbeat-postgresql-victoria-metrics/README_CN.md index 88d6ae2f6f6..f809587e05d 100644 --- a/script/docker-compose/hertzbeat-postgresql-victoria-metrics/README_CN.md +++ b/script/docker-compose/hertzbeat-postgresql-victoria-metrics/README_CN.md @@ -17,7 +17,7 @@ ##### docker compose部署hertzbeat及其依赖服务 1. 下载hertzbeat-docker-compose安装部署脚本文件 - 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-postgre-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgre-victoria-metrics) + 脚本文件位于代码仓库下`script/docker-compose/hertzbeat-postgre-victoria-metrics` 链接 [script/docker-compose](https://github.com/apache/hertzbeat/tree/master/script/docker-compose/hertzbeat-postgresql-victoria-metrics) 2. 进入部署脚本 docker-compose 目录, 执行 diff --git a/script/docker-compose/hertzbeat-postgresql-victoria-metrics/conf/application.yml b/script/docker-compose/hertzbeat-postgresql-victoria-metrics/conf/application.yml index 4a084aa5c46..c4aeefdce27 100644 --- a/script/docker-compose/hertzbeat-postgresql-victoria-metrics/conf/application.yml +++ b/script/docker-compose/hertzbeat-postgresql-victoria-metrics/conf/application.yml @@ -138,7 +138,7 @@ common: alerter: # custom console url - console-url: https://console.tancloud.cn + console-url: https://console.tancloud.io # we work we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= # ding ding talk diff --git a/script/docker/collector/Dockerfile b/script/docker/collector/Dockerfile index ff075dc72b5..6246388014a 100644 --- a/script/docker/collector/Dockerfile +++ b/script/docker/collector/Dockerfile @@ -17,19 +17,18 @@ FROM openjdk:17-slim-buster -ARG VERSION - MAINTAINER Apache HertzBeat "dev@hertzbeat.apache.org" # Install SSH RUN apt-get update && apt-get install -y openssh-server RUN mkdir /var/run/sshd -ADD apache-hertzbeat-collector-${VERSION}-incubating-bin.tar.gz /opt/ +ADD apache-hertzbeat-collector-*-incubating-bin.tar.gz /opt/ +ENV JAVA_OPTS "" ENV TZ=Asia/Shanghai ENV LANG=en_US.UTF-8 -WORKDIR /opt/apache-hertzbeat-collector-${VERSION}-incubating-bin/ +WORKDIR /opt/apache-hertzbeat-collector-*-incubating-bin/ ENTRYPOINT ["./bin/entrypoint.sh"] diff --git a/script/docker/collector/build.sh b/script/docker/collector/build.sh index d5a4515a59d..9bef73f5930 100644 --- a/script/docker/collector/build.sh +++ b/script/docker/collector/build.sh @@ -31,20 +31,20 @@ fi # docker compile context CONTEXT_DIR=`pwd` -COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat-collector:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat-collector:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat-collector:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat-collector:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" # Build Local -#COMMAND="docker build -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION"" +#COMMAND="docker build -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR " echo "$COMMAND" $COMMAND -#docker build -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" +#docker build -t apache/hertzbeat-collector:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR diff --git a/script/docker/server/Dockerfile b/script/docker/server/Dockerfile index 8d04a3ff815..d8137f36772 100644 --- a/script/docker/server/Dockerfile +++ b/script/docker/server/Dockerfile @@ -17,9 +17,6 @@ FROM openjdk:17-slim-buster -# add args version -ARG VERSION - MAINTAINER Apache HertzBeat "dev@hertzbeat.apache.org" # Install SSH And Locales @@ -29,12 +26,12 @@ RUN mkdir /var/run/sshd RUN localedef -c -f UTF-8 -i zh_CN zh_CN.UTF-8 RUN localedef -c -f UTF-8 -i en_US en_US.UTF-8 -ADD apache-hertzbeat-${VERSION}-incubating-bin.tar.gz /opt/ - ENV TZ=Asia/Shanghai ENV LANG=en_US.UTF-8 -RUN mv /opt/apache-hertzbeat-${VERSION}-incubating-bin /opt/hertzbeat +ADD apache-hertzbeat-1.*-incubating-bin.tar.gz /opt/ + +RUN mv /opt/apache-hertzbeat-*-incubating-bin /opt/hertzbeat EXPOSE 1157 1158 22 diff --git a/script/docker/server/build.sh b/script/docker/server/build.sh index 658b0f86cb9..842b8eeb7f1 100755 --- a/script/docker/server/build.sh +++ b/script/docker/server/build.sh @@ -23,29 +23,30 @@ CURRENT_DIR=`pwd` cd ../../../dist # auto detect hertzbeat version VERSION=`ls apache-hertzbeat-*-incubating-docker-compose.tar.gz| awk -F"-" '{print $3}'` -# use the version param -if [ -n "$1" ]; then - VERSION="$1"; -fi # compile context dir CONTEXT_DIR=`pwd` -COMMAND="docker buildx build --platform ${IMAGE_PLATFORM:-linux/arm64,linux/amd64} -t apache/hertzbeat:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push=${IMAGE_PUSH:-true} --load=${IMAGE_LOAD:-false}" +COMMAND="docker buildx build --platform ${IMAGE_PLATFORM:-linux/arm64,linux/amd64} -t apache/hertzbeat:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push=${IMAGE_PUSH:-true} --load=${IMAGE_LOAD:-false}" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat:v$VERSION -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" -#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" --push" +#COMMAND="docker buildx build --platform linux/arm64,linux/amd64 -t quay.io/tancloud/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --push" # Build Local -#COMMAND="docker build -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION"" +#COMMAND="docker build -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR " echo "$COMMAND" $COMMAND -docker tag apache/hertzbeat:v$VERSION apache/hertzbeat -#docker build -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR --build-arg VERSION="$VERSION" +COMMAND="docker tag apache/hertzbeat:v$VERSION apache/hertzbeat:${IMAGE_VERSION:-latest}" + +echo "$COMMAND" + +$COMMAND + +#docker build -t apache/hertzbeat:latest -f $CURRENT_DIR/Dockerfile $CONTEXT_DIR diff --git a/script/helm/hertzbeat-helm-chart b/script/helm/hertzbeat-helm-chart new file mode 160000 index 00000000000..74027a5fdae --- /dev/null +++ b/script/helm/hertzbeat-helm-chart @@ -0,0 +1 @@ +Subproject commit 74027a5fdaed41693842b343789d4e49a57a5771 diff --git a/script/helm/hertzbeat/.helmignore b/script/helm/hertzbeat/.helmignore deleted file mode 100644 index 0e8a0eb36f4..00000000000 --- a/script/helm/hertzbeat/.helmignore +++ /dev/null @@ -1,23 +0,0 @@ -# Patterns to ignore when building packages. -# This supports shell glob matching, relative path matching, and -# negation (prefixed with !). Only one pattern per line. -.DS_Store -# Common VCS dirs -.git/ -.gitignore -.bzr/ -.bzrignore -.hg/ -.hgignore -.svn/ -# Common backup files -*.swp -*.bak -*.tmp -*.orig -*~ -# Various IDEs -.project -.idea/ -*.tmproj -.vscode/ diff --git a/script/helm/hertzbeat/Chart.yaml b/script/helm/hertzbeat/Chart.yaml deleted file mode 100644 index 224c75a5570..00000000000 --- a/script/helm/hertzbeat/Chart.yaml +++ /dev/null @@ -1,38 +0,0 @@ -# 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. - -apiVersion: v2 -name: hertzbeat -description: An open-source, real-time monitoring system with custom monitoring, high performance cluster and agentless capabilities. -type: application -home: https://hertzbeat.apache.org/ -sources: - - https://github.com/apache/hertzbeat - - https://charts.hertzbeat.com -maintainers: - - name: hertzbeat-dev - email: dev@hertzbeat.apache.org -icon: https://raw.githubusercontent.com/apache/hertzbeat/master/home/static/img/hertzbeat-logo.png -# This is the chart version. This version number should be incremented each time you make changes -# to the chart and its templates, including the app version. -# Versions are expected to follow Semantic Versioning (https://semver.org/) -version: 1.6.0 -# This is the version number of the application being deployed. This version number should be -# incremented each time you make changes to the application. Versions are not expected to -# follow Semantic Versioning. They should reflect the version the application is using. -# It is recommended to use it with quotes. -appVersion: "v1.6.0" diff --git a/script/helm/hertzbeat/README.md b/script/helm/hertzbeat/README.md deleted file mode 100644 index 0ebff08af35..00000000000 --- a/script/helm/hertzbeat/README.md +++ /dev/null @@ -1,161 +0,0 @@ -# Helm Chart for Apache HertzBeat (incubating) - -[![Artifact Hub](https://img.shields.io/endpoint?url=https://artifacthub.io/badge/repository/hertzbeat)](https://artifacthub.io/packages/search?repo=hertzbeat) - - - - -## What is Apache HertzBeat (incubating)? - -[Apache HertzBeat](https://github.com/apache/hertzbeat) (incubating) is an easy-to-use, open source, real-time monitoring system with agentless, high performance cluster, prometheus-compatible, offers powerful custom monitoring and status page building capabilities. - -### Features - -* Combines **monitoring, alarm, and notification** features into one platform, and supports monitoring for web service, program, database, cache, os, webserver, middleware, bigdata, cloud-native, network, custom and more. -* Easy to use and agentless, web-based and with one-click monitoring and alerting, zero learning curve. -* Makes protocols such as `Http, Jmx, Ssh, Snmp, Jdbc, Prometheus` configurable, allowing you to collect any metrics by simply configuring the template `YML` file online. Imagine being able to quickly adapt to a new monitoring type like K8s or Docker simply by configuring online with HertzBeat. -* Compatible with the `Prometheus` ecosystem and more, can monitoring what `Prometheus` can monitoring with few clicks on webui. -* High performance, supports horizontal expansion of multi-collector clusters, multi-isolated network monitoring and cloud-edge collaboration. -* Provides flexible alarm threshold rules and timely notifications delivered via `Discord` `Slack` `Telegram` `Email` `Dingtalk` `WeChat` `FeiShu` `Webhook` `SMS` `ServerChan`. -* Provides powerful status page building capabilities, easily communicate the real-time status of your service to users. - - -> HertzBeat's powerful customization, multi-type support, high performance, easy expansion, and low coupling, aims to help developers and teams quickly build their own monitoring system. - -## Helm Chart for HertzBeat - -This [Helm](https://github.com/kubernetes/helm) chart installs [HertzBeat](https://github.com/apache/hertzbeat) in a Kubernetes cluster. Welcome to [contribute](https://github.com/apache/hertzbeat/tree/master/script/helm) to Helm Chart for HertzBeat. - -## Prerequisites - -- Kubernetes cluster 1.20+ -- Helm v3.2.0+ - -## Installation - -### Add Helm repository - -```bash -helm repo add hertzbeat https://charts.hertzbeat.com/ -helm repo update -``` - -### Configure the chart - -The following items can be set via `--set` flag during installation or configured by editing the `values.yaml` directly (need to download the chart first). - -#### Configure how to expose HertzBeat service - -- **Ingress**: The ingress controller must be installed in the Kubernetes cluster. -- **ClusterIP**: Exposes the service on a cluster-internal IP. Choosing this value makes the service only reachable from within the cluster. -- **NodePort**: Exposes the service on each Node’s IP at a static port (the NodePort). You’ll be able to contact the NodePort service, from outside the cluster, by requesting `NodeIP:NodePort`. -- **LoadBalancer**: Exposes the service externally using a cloud provider’s load balancer. - -#### Configure the external URL - -The external URL for HertzBeat core service is used to: - -1. populate the docker/helm commands showed on portal -2. populate the token service URL returned to docker client - -Format: `protocol://domain[:port]`. Usually: - -- if service exposed via `Ingress`, the `domain` should be the value of `expose.ingress.hosts` -- if service exposed via `ClusterIP`, the `domain` should be the value of `expose.clusterIP.name` -- if service exposed via `NodePort`, the `domain` should be the IP address of one Kubernetes node -- if service exposed via `LoadBalancer`, set the `domain` as your own domain name and add a CNAME record to map the domain name to the one you got from the cloud provider - -If HertzBeat is deployed behind the proxy, set it as the URL of proxy. - -#### Configure how to persist data - -- **Disable**: The data does not survive the termination of a pod. -- **Persistent Volume Claim(default)**: A default `StorageClass` is needed in the Kubernetes cluster to dynamically provision the volumes. Specify another StorageClass in the `storageClass` or set `existingClaim` if you already have existing persistent volumes to use. - -#### Configure the other items listed in [configuration](#configuration) section - -### Install the chart - -Install the HertzBeat helm chart with a release name `my-release`: -```bash -helm install hertzbeat hertzbeat/hertzbeat -``` - -## Uninstallation - -To uninstall/delete the `hertzbeat` deployment: -```bash -helm uninstall hertzbeat -``` - -## Configuration - -The following table lists the configurable parameters of the HertzBeat chart and the default values. - -| Parameter | Description | Default | -|---------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------------| -| **Expose** | | | -| `expose.type` | How to expose the service: `Ingress`, `ClusterIP`, `NodePort` or `LoadBalancer`, other values will be ignored and the creation of service will be skipped. | `Ingress` | -| `expose.clusterIP.name` | The name of ClusterIP service | `hertzbeat` | -| `expose.clusterIP.annotations` | The annotations attached to the ClusterIP service | {} | -| `expose.clusterIP.ports.port` | The service port HertzBeat listens on when serving HTTP | `80` | -| `expose.nodePort.name` | The name of NodePort service | `hertzbeat` | -| `expose.nodePort.ports.port` | The service port HertzBeat listens on when serving HTTP | `80` | -| `expose.nodePort.ports.nodePort` | The node port HertzBeat listens on when serving HTTP | `30002` | -| `expose.loadBalancer.IP` | The IP of the loadBalancer. It only works when loadBalancer supports assigning IP | `""` | -| `expose.loadBalancer.ports.port` | The service port HertzBeat listens on when serving HTTP | `80` | -| `expose.loadBalancer.sourceRanges` | List of IP address ranges to assign to loadBalancerSourceRanges | [] | -| **Manager** | | | -| `manager.account.username` | The hertzbeat account username | `admin` | -| `manager.account.password` | The hertzbeat account password | `hertzbeat` | -| `manager.resources` | The [resources] to allocate for container | undefined | -| `manager.nodeSelector` | Node labels for pod assignment | `{}` | -| `manager.tolerations` | Tolerations for pod assignment | `[]` | -| `manager.affinity` | Node/Pod affinities | `{}` | -| `manager.podAnnotations` | Annotations to add to the nginx pod | `{}` | -| **Collector** | | | -| `collector.replicaCount` | The replica count | `1` | -| `collector.autoscaling.enable` | Is enable auto scaling collector replicas | `1` | -| `collector.resources` | The [resources] to allocate for container | undefined | -| `collector.nodeSelector` | Node labels for pod assignment | `{}` | -| `collector.tolerations` | Tolerations for pod assignment | `[]` | -| `collector.affinity` | Node/Pod affinities | `{}` | -| `collector.podAnnotations` | Annotations to add to the nginx pod | `{}` | -| **Database** | | | -| `database.timezone` | The database system timezone | `1` | -| `database.rootPassword` | The database root user password | `1` | -| `database.persistence.enabled` | Enable the data persistence or not | `true` | -| `database.persistence.resourcePolicy` | Setting it to `keep` to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted. Does not affect PVCs created for internal database and redis components. | `keep` | -| `database.persistence.existingClaim` | Use the existing PVC which must be created manually before bound, and specify the `subPath` if the PVC is shared with other components | | -| `database.persistence.storageClass` | Specify the `storageClass` used to provision the volume. Or the default StorageClass will be used (the default). Set it to `-` to disable dynamic provisioning | | -| `database.persistence.subPath` | The sub path used in the volume | | -| `database.persistence.accessMode` | The access mode of the volume | `ReadWriteOnce` | -| `database.persistence.size` | The size of the volume | `5Gi` | -| `database.persistence.annotations` | The annotations of the volume | | -| `database.resources` | The [resources] to allocate for container | undefined | -| `database.nodeSelector` | Node labels for pod assignment | `{}` | -| `database.tolerations` | Tolerations for pod assignment | `[]` | -| `database.affinity` | Node/Pod affinities | `{}` | -| `database.podAnnotations` | Annotations to add to the nginx pod | `{}` | -| **TSDB** | | | -| `tsdb.timezone` | The database system timezone | `1` | -| `tsdb.persistence.enabled` | Enable the data persistence or not | `true` | -| `tsdb.persistence.resourcePolicy` | Setting it to `keep` to avoid removing PVCs during a helm delete operation. Leaving it empty will delete PVCs after the chart deleted. Does not affect PVCs created for internal database and redis components. | `keep` | -| `tsdb.persistence.existingClaim` | Use the existing PVC which must be created manually before bound, and specify the `subPath` if the PVC is shared with other components | | -| `tsdb.persistence.storageClass` | Specify the `storageClass` used to provision the volume. Or the default StorageClass will be used (the default). Set it to `-` to disable dynamic provisioning | | -| `tsdb.persistence.subPath` | The sub path used in the volume | | -| `tsdb.persistence.accessMode` | The access mode of the volume | `ReadWriteOnce` | -| `tsdb.persistence.size` | The size of the volume | `5Gi` | -| `tsdb.persistence.annotations` | The annotations of the volume | | -| `tsdb.resources` | The [resources] to allocate for container | undefined | -| `tsdb.nodeSelector` | Node labels for pod assignment | `{}` | -| `tsdb.tolerations` | Tolerations for pod assignment | `[]` | -| `tsdb.affinity` | Node/Pod affinities | `{}` | -| `tsdb.podAnnotations` | Annotations to add to the nginx pod | `{}` | - - -[resources]: https://kubernetes.io/docs/concepts/configuration/manage-compute-resources-container/ -[hertzbeat]: https://github.com/apache/hertzbeat/ -[artifacthub]: https://artifacthub.io/ -[helm]: https://helm.sh/ - diff --git a/script/helm/hertzbeat/templates/NOTES.txt b/script/helm/hertzbeat/templates/NOTES.txt deleted file mode 100644 index 376794e1b12..00000000000 --- a/script/helm/hertzbeat/templates/NOTES.txt +++ /dev/null @@ -1,22 +0,0 @@ -1. Get the application URL by running these commands: -{{- if (eq .Values.expose.type "Ingress")}} -http{{ if $.Values.expose.ingress.tls.enable }}s{{ end }}://{{ .Values.expose.ingress.host }} - -{{- else if contains "NodePort" .Values.expose.type }} - export NODE_PORT=$(kubectl get --namespace {{ .Release.Namespace }} -o jsonpath="{.spec.ports[0].nodePort}" services {{ include "hertzbeat.fullname" . }}-http) - export NODE_IP=$(kubectl get nodes --namespace {{ .Release.Namespace }} -o jsonpath="{.items[0].status.addresses[0].address}") - echo http://$NODE_IP:$NODE_PORT - -{{- else if contains "LoadBalancer" .Values.expose.type }} - NOTE: It may take a few minutes for the LoadBalancer IP to be available. - You can watch the status of by running 'kubectl get --namespace {{ .Release.Namespace }} svc -w {{ include "hertzbeat.fullname" . }}' - export SERVICE_IP=$(kubectl get svc --namespace {{ .Release.Namespace }} {{ include "hertzbeat.fullname" . }} --template "{{"{{ range (index .status.loadBalancer.ingress 0) }}{{.}}{{ end }}"}}") - echo http://$SERVICE_IP:{{ .Values.expose.loadBalancer.ports.port }} - -{{- else if contains "ClusterIP" .Values.expose.type }} - export POD_NAME=$(kubectl get pods --namespace {{ .Release.Namespace }} -l "app.kubernetes.io/name={{ include "hertzbeat.name" . }},app.kubernetes.io/instance={{ .Release.Name }}" -o jsonpath="{.items[0].metadata.name}") - export CONTAINER_PORT=$(kubectl get pod --namespace {{ .Release.Namespace }} $POD_NAME -o jsonpath="{.spec.containers[0].ports[0].containerPort}") - echo "Visit http://127.0.0.1:8080 to use your application" - kubectl --namespace {{ .Release.Namespace }} port-forward $POD_NAME 8080:$CONTAINER_PORT - -{{- end }} diff --git a/script/helm/hertzbeat/templates/_helpers.tpl b/script/helm/hertzbeat/templates/_helpers.tpl deleted file mode 100644 index 4b64c3a038e..00000000000 --- a/script/helm/hertzbeat/templates/_helpers.tpl +++ /dev/null @@ -1,67 +0,0 @@ -{{/* -Expand the name of the chart. -*/}} -{{- define "hertzbeat.name" -}} -{{- default .Chart.Name | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Create a default fully qualified app name. -We truncate at 63 chars because some Kubernetes name fields are limited to this (by the DNS naming spec). -If release name contains chart name it will be used as a full name. -*/}} -{{- define "hertzbeat.fullname" -}} -{{- $name := default .Chart.Name }} -{{- if contains $name .Release.Name }} -{{- .Release.Name | trunc 63 | trimSuffix "-" }} -{{- else }} -{{- printf "%s-%s" .Release.Name $name | trunc 63 | trimSuffix "-" }} -{{- end }} -{{- end }} - -{{- define "hertzbeat.manager" -}} -{{- printf "%s" (include "hertzbeat.fullname" .) -}} -{{- end -}} - -{{- define "hertzbeat.manager.host" -}} -{{- printf "%s-cluster" (include "hertzbeat.manager" .) -}} -{{- end -}} - -{{- define "hertzbeat.collector" -}} -{{- printf "%s-collector" (include "hertzbeat.fullname" .) -}} -{{- end -}} - -{{- define "hertzbeat.database" -}} -{{- printf "%s-database" (include "hertzbeat.fullname" .) -}} -{{- end -}} - -{{- define "hertzbeat.tsdb" -}} -{{- printf "%s-tsdb" (include "hertzbeat.fullname" .) -}} -{{- end -}} - -{{/* -Create chart name and version as used by the chart label. -*/}} -{{- define "hertzbeat.chart" -}} -{{- printf "%s-%s" .Chart.Name .Chart.Version | replace "+" "_" | trunc 63 | trimSuffix "-" }} -{{- end }} - -{{/* -Common labels -*/}} -{{- define "hertzbeat.labels" -}} -helm.sh/chart: {{ include "hertzbeat.chart" . }} -{{ include "hertzbeat.selectorLabels" . }} -{{- if .Chart.AppVersion }} -app.kubernetes.io/version: {{ .Chart.AppVersion | quote }} -{{- end }} -app.kubernetes.io/managed-by: {{ .Release.Service }} -{{- end }} - -{{/* -Selector labels -*/}} -{{- define "hertzbeat.selectorLabels" -}} -app.kubernetes.io/name: {{ include "hertzbeat.name" . }} -app.kubernetes.io/instance: {{ .Release.Name }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/collector/configmap.yaml b/script/helm/hertzbeat/templates/collector/configmap.yaml deleted file mode 100644 index 94345ab3fdf..00000000000 --- a/script/helm/hertzbeat/templates/collector/configmap.yaml +++ /dev/null @@ -1,60 +0,0 @@ -# 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. - -apiVersion: v1 -kind: ConfigMap -metadata: - name: "{{ include "hertzbeat.collector" . }}" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -data: - IDENTITY: "" - MANAGER_HOST: "{{ include "hertzbeat.manager.host" . }}" - MANAGER_PORT: "1158" - application.yml: |+ - server: - port: 1159 - spring: - application: - name: ${HOSTNAME:@hertzbeat-collector@}${PID} - profiles: - active: cluster - jackson: - default-property-inclusion: ALWAYS - # need to disable spring boot mongodb auto config, or default mongodb connection tried and failed... - autoconfigure: - exclude: org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration - - --- - spring: - config: - activate: - on-profile: cluster - - collector: - dispatch: - entrance: - netty: - enabled: true - identity: ${IDENTITY:} - mode: ${MODE:public} - manager-host: ${MANAGER_HOST:127.0.0.1} - manager-port: ${MANAGER_PORT:1158} - - common: - queue: - type: netty diff --git a/script/helm/hertzbeat/templates/collector/deployment.yaml b/script/helm/hertzbeat/templates/collector/deployment.yaml deleted file mode 100644 index 98954b7f9f4..00000000000 --- a/script/helm/hertzbeat/templates/collector/deployment.yaml +++ /dev/null @@ -1,84 +0,0 @@ -# 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. - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hertzbeat.collector" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: collector -spec: - {{- if not .Values.collector.autoscaling.enabled }} - replicas: {{ .Values.collector.replicaCount }} - {{- end }} - selector: - matchLabels: - {{- include "hertzbeat.selectorLabels" . | nindent 6 }} - component: collector - template: - metadata: - {{- with .Values.collector.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "hertzbeat.selectorLabels" . | nindent 8 }} - component: collector - spec: - securityContext: - {{- toYaml .Values.collector.podSecurityContext | nindent 8 }} - containers: - - name: hertzbeat-collector - securityContext: - {{- toYaml .Values.collector.securityContext | nindent 12 }} - image: "{{ .Values.collector.image.repository }}:{{ .Values.collector.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.collector.image.pullPolicy }} - ports: - - containerPort: 1159 - protocol: TCP - livenessProbe: - tcpSocket: - port: 1159 - readinessProbe: - tcpSocket: - port: 1159 - envFrom: - - configMapRef: - name: "{{ include "hertzbeat.collector" . }}" - volumeMounts: - - mountPath: /opt/hertzbeat-collector/config/application.yml - subPath: application.yml - name: application - resources: - {{- toYaml .Values.collector.resources | nindent 12 }} - volumes: - - name: application - configMap: - name: {{ include "hertzbeat.collector" . }} - {{- with .Values.collector.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.collector.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.collector.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/script/helm/hertzbeat/templates/collector/hpa.yaml b/script/helm/hertzbeat/templates/collector/hpa.yaml deleted file mode 100644 index ee82be3d4af..00000000000 --- a/script/helm/hertzbeat/templates/collector/hpa.yaml +++ /dev/null @@ -1,45 +0,0 @@ -# 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. - -{{- if .Values.collector.autoscaling.enabled }} -apiVersion: autoscaling/v2beta1 -kind: HorizontalPodAutoscaler -metadata: - name: {{ include "hertzbeat.collector" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -spec: - scaleTargetRef: - apiVersion: apps/v1 - kind: Deployment - name: {{ include "hertzbeat.collector" . }} - minReplicas: {{ .Values.collector.autoscaling.minReplicas }} - maxReplicas: {{ .Values.collector.autoscaling.maxReplicas }} - metrics: - {{- if .Values.collector.autoscaling.targetCPUUtilizationPercentage }} - - type: Resource - resource: - name: cpu - targetAverageUtilization: {{ .Values.collector.autoscaling.targetCPUUtilizationPercentage }} - {{- end }} - {{- if .Values.collector.autoscaling.targetMemoryUtilizationPercentage }} - - type: Resource - resource: - name: memory - targetAverageUtilization: {{ .Values.collector.autoscaling.targetMemoryUtilizationPercentage }} - {{- end }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/database/configmap.yaml b/script/helm/hertzbeat/templates/database/configmap.yaml deleted file mode 100644 index 4c9c3e91c43..00000000000 --- a/script/helm/hertzbeat/templates/database/configmap.yaml +++ /dev/null @@ -1,36 +0,0 @@ -# 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. - -apiVersion: v1 -kind: ConfigMap -metadata: - name: "{{ include "hertzbeat.database" . }}" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -data: - TZ: "{{ .Values.database.timezone }}" - POSTGRES_PASSWORD: "{{ .Values.database.rootPassword }}" - POSTGRES_USER: "root" - schema.sql: |+ - CREATE EXTENSION IF NOT EXISTS dblink; - - DO $$ - BEGIN - PERFORM dblink_exec('', 'CREATE DATABASE hertzbeat'); - EXCEPTION WHEN duplicate_database THEN RAISE NOTICE '%, skipping', SQLERRM USING ERRCODE = SQLSTATE; - END - $$; diff --git a/script/helm/hertzbeat/templates/database/pvc.yaml b/script/helm/hertzbeat/templates/database/pvc.yaml deleted file mode 100644 index 69f6ad44937..00000000000 --- a/script/helm/hertzbeat/templates/database/pvc.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# 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. - -{{- if .Values.database.persistence.enabled }} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "hertzbeat.database" . }} - annotations: - {{- range $key, $value := .Values.database.persistence.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- if eq .Values.database.persistence.resourcePolicy "keep" }} - helm.sh/resource-policy: keep - {{- end }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: database -spec: - accessModes: - - {{ .Values.database.persistence.accessMode }} - resources: - requests: - storage: {{ .Values.database.persistence.size }} - {{- if .Values.database.persistence.storageClass }} - {{- if eq "-" .Values.database.persistence.storageClass }} - storageClassName: "" - {{- else }} - storageClassName: {{ .Values.database.persistence.storageClass }} - {{- end }} - {{- end }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/database/service.yaml b/script/helm/hertzbeat/templates/database/service.yaml deleted file mode 100644 index e95d860d24d..00000000000 --- a/script/helm/hertzbeat/templates/database/service.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# 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. - -apiVersion: v1 -kind: Service -metadata: - name: {{ include "hertzbeat.database" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -spec: - type: ClusterIP - ports: - - port: 5432 - targetPort: 5432 - protocol: TCP - selector: - {{- include "hertzbeat.selectorLabels" . | nindent 4 }} - component: database diff --git a/script/helm/hertzbeat/templates/database/statefulset.yaml b/script/helm/hertzbeat/templates/database/statefulset.yaml deleted file mode 100644 index 85d4e9f608c..00000000000 --- a/script/helm/hertzbeat/templates/database/statefulset.yaml +++ /dev/null @@ -1,116 +0,0 @@ -# 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. - -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: {{ include "hertzbeat.database" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: database -spec: - replicas: 1 - serviceName: {{ include "hertzbeat.database" . }} - selector: - matchLabels: - {{- include "hertzbeat.selectorLabels" . | nindent 6 }} - component: database - template: - metadata: - {{- with .Values.database.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "hertzbeat.selectorLabels" . | nindent 8 }} - component: database - spec: - securityContext: - {{- toYaml .Values.database.podSecurityContext | nindent 8 }} - containers: - - name: database - image: {{ .Values.database.image.repository }}:{{ .Values.database.image.tag }} - imagePullPolicy: {{ .Values.database.image.pullPolicy }} - livenessProbe: - tcpSocket: - port: 5432 - initialDelaySeconds: 300 - periodSeconds: 10 - readinessProbe: - tcpSocket: - port: 5432 - initialDelaySeconds: 1 - periodSeconds: 10 - resources: - {{- toYaml .Values.database.resources | nindent 12 }} - envFrom: - - configMapRef: - name: "{{ include "hertzbeat.database" . }}" - volumeMounts: - - name: data - mountPath: /var/lib/postgresql/data - subPath: "" - - mountPath: /docker-entrypoint-initdb.d/schema.sql - subPath: schema.sql - name: schema - volumes: - - name: schema - configMap: - name: {{ include "hertzbeat.database" . }} - {{- if not .Values.database.persistence.enabled }} - - name: data - emptyDir: {} - {{- else }} - - name: data - persistentVolumeClaim: - claimName: {{ .Values.database.persistence.existingClaim | default (include "hertzbeat.database" .) }} - {{- end }} - {{- with .Values.database.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.database.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.database.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} -{{/* {{- if and .Values.database.persistence.enabled (not .Values.database.persistence.existingClaim) }}*/}} -{{/* volumeClaimTemplates:*/}} -{{/* - metadata:*/}} -{{/* name: data*/}} -{{/* labels:*/}} -{{/* {{- include "hertzbeat.labels" . | indent 10 }}*/}} -{{/* annotations:*/}} -{{/* {{- range $key, $value := .Values.database.persistence.annotations }}*/}} -{{/* {{ $key }}: {{ $value | quote }}*/}} -{{/* {{- end }}*/}} -{{/* spec:*/}} -{{/* accessModes: [{{ .Values.database.persistence.accessMode | quote }}]*/}} -{{/* {{- if .Values.database.persistence.storageClass }}*/}} -{{/* {{- if (eq "-" .Values.database.persistence.storageClass) }}*/}} -{{/* storageClassName: ""*/}} -{{/* {{- else }}*/}} -{{/* storageClassName: "{{ .Values.database.persistence.storageClass }}"*/}} -{{/* {{- end }}*/}} -{{/* {{- end }}*/}} -{{/* resources:*/}} -{{/* requests:*/}} -{{/* storage: {{ .Values.database.persistence.size | quote }}*/}} -{{/* {{- end -}}*/}} diff --git a/script/helm/hertzbeat/templates/manager/configmap.yaml b/script/helm/hertzbeat/templates/manager/configmap.yaml deleted file mode 100644 index b7f1fa7be67..00000000000 --- a/script/helm/hertzbeat/templates/manager/configmap.yaml +++ /dev/null @@ -1,300 +0,0 @@ -# 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. - -apiVersion: v1 -kind: ConfigMap -metadata: - name: "{{ include "hertzbeat.manager" . }}" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -data: - application.yml: |+ - server: - port: 1157 - spring: - application: - name: ${HOSTNAME:@hertzbeat@}${PID} - profiles: - active: prod - mvc: - static-path-pattern: /** - jackson: - default-property-inclusion: ALWAYS - web: - resources: - static-locations: - - classpath:/dist/ - - classpath:../dist/ - # need to disable spring boot mongodb auto config, or default mongodb connection tried and failed.. - autoconfigure: - exclude: org.springframework.boot.autoconfigure.mongo.MongoAutoConfiguration, org.springframework.boot.autoconfigure.data.mongo.MongoDataAutoConfiguration - freemarker: - enabled: false - management: - health: - mail: - enabled: off - endpoints: - web: - exposure: - include: - - 'metrics' - - 'health' - - 'env' - enabled-by-default: on - - sureness: - container: jakarta_servlet - auths: - - digest - - basic - - jwt - jwt: - secret: {{ .Values.manager.jwtSecretKey }} - - --- - spring: - config: - activate: - on-profile: prod - - datasource: - driver-class-name: org.postgresql.Driver - username: root - password: {{ .Values.database.rootPassword }} - url: jdbc:postgresql://{{ include "hertzbeat.database" . }}:5432/hertzbeat - hikari: - max-lifetime: 120000 - jpa: - show-sql: false - database-platform: org.eclipse.persistence.platform.database.PostgreSQLPlatform - database: postgresql - properties: - eclipselink: - logging: - level: SEVERE - flyway: - enabled: true - clean-disabled: true - baseline-on-migrate: true - baseline-version: 1 - locations: - - classpath:db/migration/{vendor} - mail: - # Attention: this is mail server address. - # 请注意此为邮件服务器地址:qq邮箱为 smtp.qq.com qq 企业邮箱为 smtp.exmail.qq.com - host: smtp.qq.com - username: tancloud@qq.com - # Attention: this is not email account password, this requires an email authorization code - # 请注意此非邮箱账户密码 此需填写邮箱授权码 - password: your-password - #Attention: Tencent mail smtps 465,smtp 587 - #请注意腾讯邮箱465为smtps,587为smtp - port: 587 - properties: - mail: - smtp: - socketFactoryClass: javax.net.ssl.SSLSocketFactory - ssl: - enable: true - - common: - queue: - # memory or kafka - type: memory - # properties when queue type is kafka - kafka: - servers: 127.0.0.1:9092 - metrics-data-topic: async-metrics-data - alerts-data-topic: async-alerts-data - - warehouse: - store: - # store history metrics data, enable only one below - # 存储历史数据方式, 下方只能enabled启用一种方式 - jpa: - enabled: false - victoria-metrics: - enabled: true - url: http://{{ include "hertzbeat.tsdb" . }}:8428 - username: root - password: root - td-engine: - enabled: false - driver-class-name: com.taosdata.jdbc.rs.RestfulDriver - url: jdbc:TAOS-RS://{{ include "hertzbeat.tsdb" . }}:6041/hertzbeat - username: root - password: taosdata - greptime: - enabled: false - endpoint: localhost:4001 - iot-db: - enabled: false - host: {{ include "hertzbeat.tsdb" . }} - rpc-port: 6667 - username: root - password: root - # org.apache.hertzbeat.warehouse.config.IotDbVersion: V_0_13 || V_1_0 - version: V_1_0 - query-timeout-in-ms: -1 - # 数据存储时间:默认'7776000000'(90天,单位为毫秒,-1代表永不过期) - # data expire time, unit:ms, default '7776000000'(90 days, -1:never expire) - expire-time: '7776000000' - influxdb: - enabled: false - server-url: http://127.0.0.1:8086 - username: root - password: root - expire-time: '30d' - replication: 1 - - # store real-time metrics data, enable only one below - # 存储实时数据方式, 下方只能enabled启用一种方式 - memory: - enabled: true - init-size: 16 - redis: - enabled: false - host: 127.0.0.1 - port: 6379 - password: 123456 - db: 0 - - alerter: - # custom console url - console-url: https://console.tancloud.cn - # we work - we-work-webhook-url: https://qyapi.weixin.qq.com/cgi-bin/webhook/send?key= - # ding ding talk - ding-talk-webhook-url: https://oapi.dingtalk.com/robot/send?access_token= - # fei shu fly book - fly-book-webhook-url: https://open.feishu.cn/open-apis/bot/v2/hook/ - # telegram - telegram-webhook-url: https://api.telegram.org/bot%s/sendMessage - # discord - discord-webhook-url: https://discord.com/api/v9/channels/%s/messages - # server酱 - server-chan-webhook-url: https://sctapi.ftqq.com/%s.send - # gotify - gotify-webhook-url: http://127.0.0.1/message?token=%s - - scheduler: - server: - enabled: true - port: 1158 - - - sureness.yml: |+ - resourceRole: - - /api/account/auth/refresh===post===[admin,user,guest] - - /api/apps/**===get===[admin,user,guest] - - /api/monitor/**===get===[admin,user,guest] - - /api/monitor/**===post===[admin,user] - - /api/monitor/**===put===[admin,user] - - /api/monitor/**===delete==[admin] - - /api/monitors/**===get===[admin,user,guest] - - /api/monitors/**===post===[admin,user] - - /api/monitors/**===put===[admin,user] - - /api/monitors/**===delete===[admin] - - /api/alert/**===get===[admin,user,guest] - - /api/alert/**===post===[admin,user] - - /api/alert/**===put===[admin,user] - - /api/alert/**===delete===[admin] - - /api/alerts/**===get===[admin,user,guest] - - /api/alerts/**===post===[admin,user] - - /api/alerts/**===put===[admin,user] - - /api/alerts/**===delete===[admin] - - /api/notice/**===get===[admin,user,guest] - - /api/notice/**===post===[admin,user] - - /api/notice/**===put===[admin,user] - - /api/notice/**===delete===[admin] - - /api/tag/**===get===[admin,user,guest] - - /api/tag/**===post===[admin,user] - - /api/tag/**===put===[admin,user] - - /api/tag/**===delete===[admin] - - /api/summary/**===get===[admin,user,guest] - - /api/summary/**===post===[admin,user] - - /api/summary/**===put===[admin,user] - - /api/summary/**===delete===[admin] - - /api/collector/**===get===[admin,user,guest] - - /api/collector/**===post===[admin,user] - - /api/collector/**===put===[admin,user] - - /api/collector/**===delete===[admin] - - /api/status/page/**===get===[admin,user,guest] - - /api/status/page/**===post===[admin,user] - - /api/status/page/**===put===[admin,user] - - /api/status/page/**===delete===[admin] - - # config the resource restful api that need bypass auth protection - # rule: api===method - # eg: /api/v1/source3===get means /api/v1/source3===get can be access by anyone, no need auth. - excludedResource: - - /api/alerts/report/**===* - - /api/account/auth/**===* - - /api/i18n/**===get - - /api/apps/hierarchy===get - - /api/push/**===* - - /api/status/page/public/**===* - # web ui resource - - /===get - - /dashboard/**===get - - /monitors/**===get - - /alert/**===get - - /account/**===get - - /setting/**===get - - /passport/**===get - - /status/**===get - - /**/*.html===get - - /**/*.js===get - - /**/*.css===get - - /**/*.ico===get - - /**/*.ttf===get - - /**/*.png===get - - /**/*.gif===get - - /**/*.jpg===get - - /**/*.svg===get - - /**/*.json===get - - /**/*.woff===get - - /**/*.eot===get - # swagger ui resource - - /swagger-resources/**===get - - /v2/api-docs===get - - /v3/api-docs===get - # h2 database - - /h2-console/**===* - - # account info config - # eg: admin has role [admin,user], password is hertzbeat - # eg: tom has role [user], password is hertzbeat - # eg: lili has role [guest], plain password is lili, salt is 123, salted password is 1A676730B0C7F54654B0E09184448289 - account: - - appId: {{ .Values.manager.account.username }} - credential: {{ .Values.manager.account.password }} - role: [admin] - - appId: tom - credential: hertzbeat - role: [user] - - appId: guest - credential: hertzbeat - role: [guest] - - appId: lili - # credential = MD5(password + salt) - # plain password: hertzbeat - # attention: digest authentication does not support salted encrypted password accounts - credential: 94C6B34E7A199A9F9D4E1F208093B489 - salt: 123 - role: [user] diff --git a/script/helm/hertzbeat/templates/manager/deployment.yaml b/script/helm/hertzbeat/templates/manager/deployment.yaml deleted file mode 100644 index 77fd44bb86a..00000000000 --- a/script/helm/hertzbeat/templates/manager/deployment.yaml +++ /dev/null @@ -1,89 +0,0 @@ -# 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. - -apiVersion: apps/v1 -kind: Deployment -metadata: - name: {{ include "hertzbeat.manager" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: manager -spec: - replicas: 1 - selector: - matchLabels: - {{- include "hertzbeat.selectorLabels" . | nindent 6 }} - component: manager - template: - metadata: - {{- with .Values.manager.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "hertzbeat.selectorLabels" . | nindent 8 }} - component: manager - spec: - securityContext: - {{- toYaml .Values.manager.podSecurityContext | nindent 8 }} - containers: - - name: {{ .Chart.Name }} - securityContext: - {{- toYaml .Values.manager.securityContext | nindent 12 }} - image: "{{ .Values.manager.image.repository }}:{{ .Values.manager.image.tag | default .Chart.AppVersion }}" - imagePullPolicy: {{ .Values.manager.image.pullPolicy }} - ports: - - name: http - containerPort: 1157 - protocol: TCP - - name: cluster - containerPort: 1158 - protocol: TCP - livenessProbe: - tcpSocket: - port: 1157 - readinessProbe: - tcpSocket: - port: 1157 - volumeMounts: - - mountPath: /opt/hertzbeat/config/application.yml - subPath: application.yml - name: application - - mountPath: /opt/hertzbeat/config/sureness.yml - subPath: sureness.yml - name: sureness - resources: - {{- toYaml .Values.manager.resources | nindent 12 }} - volumes: - - name: application - configMap: - name: {{ include "hertzbeat.manager" . }} - - name: sureness - configMap: - name: {{ include "hertzbeat.manager" . }} - {{- with .Values.manager.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.manager.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.manager.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/script/helm/hertzbeat/templates/manager/ingress.yaml b/script/helm/hertzbeat/templates/manager/ingress.yaml deleted file mode 100644 index 53aa725e242..00000000000 --- a/script/helm/hertzbeat/templates/manager/ingress.yaml +++ /dev/null @@ -1,48 +0,0 @@ -# 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. - -{{- if .Values.expose.ingress.enabled }} -apiVersion: networking.k8s.io/v1 -kind: Ingress -metadata: - name: "{{ include "hertzbeat.manager" . }}-ingress" - annotations: - {{- toYaml .Values.expose.ingress.annotations | nindent 4 }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -spec: - {{if .Values.expose.ingress.ingressClassName }} - ingressClassName: {{ .Values.expose.ingress.ingressClassName }} - {{end}} - rules: - - host: {{ .Values.expose.ingress.host }} - http: - paths: - - path: / - pathType: Prefix - backend: - service: - name: "{{ include "hertzbeat.manager" . }}-http" - port: - number: 1157 - tls: - {{- if .Values.expose.ingress.tls.enabled }} - - secretName: {{ .Values.expose.ingress.tls.secretName }} - hosts: - - {{ .Values.expose.ingress.host }} - {{- end }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/manager/service-cluster.yaml b/script/helm/hertzbeat/templates/manager/service-cluster.yaml deleted file mode 100644 index 2262cb67ff0..00000000000 --- a/script/helm/hertzbeat/templates/manager/service-cluster.yaml +++ /dev/null @@ -1,33 +0,0 @@ -# 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. - -apiVersion: v1 -kind: Service -metadata: - name: "{{ include "hertzbeat.manager" . }}-cluster" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -spec: - type: ClusterIP - ports: - - port: 1158 - targetPort: 1158 - protocol: TCP - name: cluster - selector: - {{- include "hertzbeat.selectorLabels" . | nindent 4 }} - component: manager diff --git a/script/helm/hertzbeat/templates/manager/service-expose.yaml b/script/helm/hertzbeat/templates/manager/service-expose.yaml deleted file mode 100644 index 6da190153b5..00000000000 --- a/script/helm/hertzbeat/templates/manager/service-expose.yaml +++ /dev/null @@ -1,64 +0,0 @@ -# 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. - -{{- if or (eq .Values.expose.type "ClusterIP") (eq .Values.expose.type "NodePort") (eq .Values.expose.type "LoadBalancer") (eq .Values.expose.type "Ingress") }} -apiVersion: v1 -kind: Service -metadata: - name: "{{ include "hertzbeat.manager" . }}-http" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -{{- if or (eq .Values.expose.type "ClusterIP") (eq .Values.expose.type "Ingress") }} -spec: - type: ClusterIP - ports: - - name: http - port: {{ .Values.expose.clusterIP.ports.port }} - targetPort: 1157 - selector: - {{- include "hertzbeat.selectorLabels" . | nindent 4 }} - component: manager -{{- else if eq .Values.expose.type "NodePort" }} -spec: - type: NodePort - ports: - - port: {{ .Values.expose.nodePort.ports.port }} - targetPort: 1157 - protocol: TCP - name: http - {{- if .Values.expose.nodePort.ports.nodePort }} - nodePort: {{ .Values.expose.nodePort.ports.nodePort }} - {{- end }} - selector: - {{- include "hertzbeat.selectorLabels" . | nindent 4 }} - component: manager -{{- else if eq .Values.expose.type "LoadBalancer" }} -spec: - type: LoadBalancer - {{- with .Values.expose.loadBalancer.sourceRanges }} - loadBalancerSourceRanges: - {{- toYaml . | nindent 4 }} - {{- end }} - {{- if .Values.expose.loadBalancer.ip }} - loadBalancerIP: {{ .Values.expose.loadBalancer.ip }} - {{- end }} - ports: - - name: http - port: {{ .Values.expose.loadBalancer.ports.port }} - targetPort: 1157 -{{- end }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/tsdb/configmap.yaml b/script/helm/hertzbeat/templates/tsdb/configmap.yaml deleted file mode 100644 index a8263dd2a6e..00000000000 --- a/script/helm/hertzbeat/templates/tsdb/configmap.yaml +++ /dev/null @@ -1,25 +0,0 @@ -# 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. - -apiVersion: v1 -kind: ConfigMap -metadata: - name: "{{ include "hertzbeat.tsdb" . }}" - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -data: - TZ: "{{ .Values.database.timezone }}" diff --git a/script/helm/hertzbeat/templates/tsdb/pvc.yaml b/script/helm/hertzbeat/templates/tsdb/pvc.yaml deleted file mode 100644 index 409615122c4..00000000000 --- a/script/helm/hertzbeat/templates/tsdb/pvc.yaml +++ /dev/null @@ -1,46 +0,0 @@ -# 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. - -{{- if .Values.tsdb.persistence.enabled }} -kind: PersistentVolumeClaim -apiVersion: v1 -metadata: - name: {{ template "hertzbeat.tsdb" . }} - annotations: - {{- range $key, $value := .Values.tsdb.persistence.annotations }} - {{ $key }}: {{ $value | quote }} - {{- end }} - {{- if eq .Values.tsdb.persistence.resourcePolicy "keep" }} - helm.sh/resource-policy: keep - {{- end }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: tsdb -spec: - accessModes: - - {{ .Values.tsdb.persistence.accessMode }} - resources: - requests: - storage: {{ .Values.tsdb.persistence.size }} - {{- if .Values.tsdb.persistence.storageClass }} - {{- if eq "-" .Values.tsdb.persistence.storageClass }} - storageClassName: "" - {{- else }} - storageClassName: {{ .Values.tsdb.persistence.storageClass }} - {{- end }} - {{- end }} -{{- end }} diff --git a/script/helm/hertzbeat/templates/tsdb/service.yaml b/script/helm/hertzbeat/templates/tsdb/service.yaml deleted file mode 100644 index 44f992f5655..00000000000 --- a/script/helm/hertzbeat/templates/tsdb/service.yaml +++ /dev/null @@ -1,32 +0,0 @@ -# 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. - -apiVersion: v1 -kind: Service -metadata: - name: {{ include "hertzbeat.tsdb" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} -spec: - type: ClusterIP - ports: - - port: 8428 - targetPort: 8428 - protocol: TCP - selector: - {{- include "hertzbeat.selectorLabels" . | nindent 4 }} - component: tsdb diff --git a/script/helm/hertzbeat/templates/tsdb/statefulset.yaml b/script/helm/hertzbeat/templates/tsdb/statefulset.yaml deleted file mode 100644 index 891ada92e79..00000000000 --- a/script/helm/hertzbeat/templates/tsdb/statefulset.yaml +++ /dev/null @@ -1,87 +0,0 @@ -# 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. - -apiVersion: apps/v1 -kind: StatefulSet -metadata: - name: {{ include "hertzbeat.tsdb" . }} - labels: - {{- include "hertzbeat.labels" . | nindent 4 }} - component: tsdb -spec: - replicas: 1 - serviceName: {{ include "hertzbeat.tsdb" . }} - selector: - matchLabels: - {{- include "hertzbeat.selectorLabels" . | nindent 6 }} - component: tsdb - template: - metadata: - {{- with .Values.tsdb.podAnnotations }} - annotations: - {{- toYaml . | nindent 8 }} - {{- end }} - labels: - {{- include "hertzbeat.selectorLabels" . | nindent 8 }} - component: tsdb - spec: - securityContext: - {{- toYaml .Values.tsdb.podSecurityContext | nindent 8 }} - containers: - - name: tsdb - image: {{ .Values.tsdb.image.repository }}:{{ .Values.tsdb.image.tag }} - imagePullPolicy: {{ .Values.tsdb.image.pullPolicy }} - livenessProbe: - tcpSocket: - port: 8428 - initialDelaySeconds: 300 - periodSeconds: 10 - readinessProbe: - tcpSocket: - port: 8428 - initialDelaySeconds: 1 - periodSeconds: 10 - resources: - {{- toYaml .Values.tsdb.resources | nindent 12 }} - envFrom: - - configMapRef: - name: "{{ include "hertzbeat.tsdb" . }}" - volumeMounts: - - name: data - mountPath: /victoria-metrics-data - subPath: "" - volumes: - {{- if not .Values.tsdb.persistence.enabled }} - - name: data - emptyDir: {} - {{- else }} - - name: data - persistentVolumeClaim: - claimName: {{ .Values.tsdb.persistence.existingClaim | default (include "hertzbeat.tsdb" .) }} - {{- end }} - {{- with .Values.tsdb.nodeSelector }} - nodeSelector: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tsdb.affinity }} - affinity: - {{- toYaml . | nindent 8 }} - {{- end }} - {{- with .Values.tsdb.tolerations }} - tolerations: - {{- toYaml . | nindent 8 }} - {{- end }} diff --git a/script/helm/hertzbeat/values.yaml b/script/helm/hertzbeat/values.yaml deleted file mode 100644 index 49ff4443988..00000000000 --- a/script/helm/hertzbeat/values.yaml +++ /dev/null @@ -1,143 +0,0 @@ -# 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. - -# Default values for hertzbeat. - -manager: - image: - repository: apache/hertzbeat - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - account: - username: "admin" - password: "hertzbeat" - jwtSecretKey: "CyaFv0bwq2Eik0jdrKUtsA6dx3sDJeFV143R - LnfKefTjsIfJLBa2YkhEqEGtcHDTNe4CU6+9 - 8tVt4bisXQ13rbN0oxhUZR73M6EByXIO+SV5 - dKhaX0csgOCTlCxq20yhmUea6H6JIpSE2Rwp" - podAnnotations: { } - podSecurityContext: { } - securityContext: { } - resources: { } - nodeSelector: { } - tolerations: [ ] - affinity: { } - -collector: - image: - repository: apache/hertzbeat-collector - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "" - replicaCount: 1 - autoscaling: - enabled: false - minReplicas: 1 - maxReplicas: 20 - targetCPUUtilizationPercentage: 80 - targetMemoryUtilizationPercentage: 80 - - podAnnotations: { } - podSecurityContext: { } - securityContext: { } - resources: { } - nodeSelector: { } - tolerations: [ ] - affinity: { } - -database: - image: - repository: postgres - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "15" - timezone: "Asia/Shanghai" - rootPassword: "123456" - persistence: - enabled: true - existingClaim: "" - storageClass: "" - subPath: "" - accessMode: ReadWriteOnce - size: 4Gi - annotations: {} - resourcePolicy: "keep" - - podAnnotations: { } - podSecurityContext: { } - securityContext: { } - resources: { } - nodeSelector: { } - tolerations: [ ] - affinity: { } - -tsdb: - image: - repository: victoriametrics/victoria-metrics - pullPolicy: IfNotPresent - # Overrides the image tag whose default is the chart appVersion. - tag: "v1.95.1" - timezone: "Asia/Shanghai" - persistence: - enabled: true - existingClaim: "" - storageClass: "" - subPath: "" - accessMode: ReadWriteOnce - size: 4Gi - annotations: {} - resourcePolicy: "keep" - - podAnnotations: { } - podSecurityContext: { } - securityContext: { } - resources: { } - nodeSelector: { } - tolerations: [ ] - affinity: { } - -# Expose Network -expose: - # Set how to expose the service. Set the type as "ClusterIP","NodePort","LoadBalancer" or "Ingress" - # and fill the information in the corresponding section - type: Ingress - clusterIP: - ports: - # The service port Harbor listens on when serving HTTP - port: 1157 - nodePort: - ports: - # The service port Harbor listens on when serving HTTP - port: 1157 - # The node port Harbor listens on when serving HTTP - nodePort: 31157 - loadBalancer: - # Set the IP if the LoadBalancer supports assigning IP - ip: "" - ports: - # The service port Harbor listens on when serving HTTP - port: 1157 - sourceRanges: [ ] - ingress: - enabled: true - ingressClassName: "" - host: "hertzbeat.domain" - annotations: {} - tls: - enabled: true - secretName: your-tls-secret diff --git a/script/sureness.yml b/script/sureness.yml index c7253ff88c8..cb4024c5a9c 100644 --- a/script/sureness.yml +++ b/script/sureness.yml @@ -58,7 +58,11 @@ resourceRole: - /api/status/page/**===post===[admin,user] - /api/status/page/**===put===[admin,user] - /api/status/page/**===delete===[admin] - + - /api/bulletin/**===get===[admin,user,guest] + - /api/bulletin/**===post===[admin,user] + - /api/bulletin/**===put===[admin,user] + - /api/bulletin/**===delete===[admin] + # config the resource restful api that need bypass auth protection # rule: api===method # eg: /api/v1/source3===get means /api/v1/source3===get can be access by anyone, no need auth. diff --git a/warehouse/pom.xml b/warehouse/pom.xml index 0db9386496d..491b6349a1c 100644 --- a/warehouse/pom.xml +++ b/warehouse/pom.xml @@ -23,15 +23,6 @@ org.apache.hertzbeat 2.0-SNAPSHOT - - 1.0 - 0.13.3 - 2.23 - 3.0.5 - 3.0.0 - 0.7.3 - 8.0.33 - 4.0.0 hertzbeat-warehouse @@ -44,6 +35,12 @@ hertzbeat-common provided + + + org.apache.hertzbeat + hertzbeat-plugin + provided + commons-net diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/config/WarehouseAutoConfiguration.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/config/WarehouseAutoConfiguration.java new file mode 100644 index 00000000000..ff8ef5ca20d --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/config/WarehouseAutoConfiguration.java @@ -0,0 +1,35 @@ +/* + * 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.hertzbeat.warehouse.config; + +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.springframework.boot.autoconfigure.AutoConfiguration; +import org.springframework.context.annotation.ComponentScan; + +/** + * WarehouseAutoConfiguration class + * @version 2.1 + */ + +@AutoConfiguration +@ComponentScan(basePackages = ConfigConstants.PkgConstant.PKG + + SignConstants.DOT + + ConfigConstants.FunctionModuleConstants.WAREHOUSE) +public class WarehouseAutoConfiguration { +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/constants/WarehouseConstants.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/constants/WarehouseConstants.java new file mode 100644 index 00000000000..aee6e4ff95e --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/constants/WarehouseConstants.java @@ -0,0 +1,59 @@ +/* + * 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.hertzbeat.warehouse.constants; + +/** + * Warehouse configuration constants. + */ + +public interface WarehouseConstants { + + String STORE = "store"; + + String REAL_TIME = "real-time"; + + /** + * History database name. + */ + interface HistoryName { + String GREPTIME = "greptime"; + + String INFLUXDB = "influxdb"; + + String IOT_DB = "iot-db"; + + String JPA = "jpa"; + + String TD_ENGINE = "td-engine"; + + String VM = "victoria-metrics"; + + String VM_CLUSTER = "victoria-metrics.cluster"; + } + + /** + * Real-time database name. + */ + interface RealTimeName { + + String REDIS = "redis"; + + String MEMORY = "memory"; + } + +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/controller/MetricsDataController.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/controller/MetricsDataController.java index dd787d6de3a..d95616fe251 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/controller/MetricsDataController.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/controller/MetricsDataController.java @@ -22,22 +22,10 @@ import io.swagger.v3.oas.annotations.Operation; import io.swagger.v3.oas.annotations.Parameter; import io.swagger.v3.oas.annotations.tags.Tag; -import java.util.HashMap; -import java.util.LinkedList; -import java.util.List; -import java.util.Map; -import java.util.Optional; -import java.util.stream.Collectors; -import org.apache.hertzbeat.common.constants.CommonConstants; -import org.apache.hertzbeat.common.entity.dto.Field; import org.apache.hertzbeat.common.entity.dto.Message; import org.apache.hertzbeat.common.entity.dto.MetricsData; import org.apache.hertzbeat.common.entity.dto.MetricsHistoryData; -import org.apache.hertzbeat.common.entity.dto.Value; -import org.apache.hertzbeat.common.entity.dto.ValueRow; -import org.apache.hertzbeat.common.entity.message.CollectRep; -import org.apache.hertzbeat.warehouse.store.history.HistoryDataReader; -import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.apache.hertzbeat.warehouse.service.MetricsDataService; import org.springframework.http.ResponseEntity; import org.springframework.web.bind.annotation.GetMapping; import org.springframework.web.bind.annotation.PathVariable; @@ -55,20 +43,17 @@ public class MetricsDataController { private static final Integer METRIC_FULL_LENGTH = 3; - private final RealTimeDataReader realTimeDataReader; - private final Optional historyDataReader; + private final MetricsDataService metricsDataService; - public MetricsDataController(RealTimeDataReader realTimeDataReader, - Optional historyDataReader) { - this.realTimeDataReader = realTimeDataReader; - this.historyDataReader = historyDataReader; + public MetricsDataController(MetricsDataService metricsDataService) { + this.metricsDataService = metricsDataService; } @GetMapping("/api/warehouse/storage/status") @Operation(summary = "Query Warehouse Storage Server Status", description = "Query the availability status of the storage service under the warehouse") public ResponseEntity> getWarehouseStorageServerStatus() { - - if (historyDataReader.isPresent() && historyDataReader.get().isServerAvailable()) { + Boolean status = metricsDataService.getWarehouseStorageServerStatus(); + if (Boolean.TRUE.equals(status)) { return ResponseEntity.ok(Message.success()); } @@ -83,47 +68,11 @@ public ResponseEntity> getMetricsData( @PathVariable Long monitorId, @Parameter(description = "Metrics Name", example = "cpu") @PathVariable String metrics) { - boolean available = realTimeDataReader.isServerAvailable(); - if (!available) { - return ResponseEntity.ok(Message.fail(FAIL_CODE, "real time store not available")); - } - CollectRep.MetricsData storageData = realTimeDataReader.getCurrentMetricsData(monitorId, metrics); - if (storageData == null) { + MetricsData metricsData = metricsDataService.getMetricsData(monitorId, metrics); + if (metricsData == null){ return ResponseEntity.ok(Message.success("query metrics data is empty")); } - { - MetricsData.MetricsDataBuilder dataBuilder = MetricsData.builder(); - dataBuilder.id(storageData.getId()).app(storageData.getApp()).metrics(storageData.getMetrics()) - .time(storageData.getTime()); - List fields = storageData.getFieldsList().stream().map(tmpField -> - Field.builder().name(tmpField.getName()) - .type(Integer.valueOf(tmpField.getType()).byteValue()) - .label(tmpField.getLabel()) - .unit(tmpField.getUnit()) - .build()) - .collect(Collectors.toList()); - dataBuilder.fields(fields); - List valueRows = new LinkedList<>(); - for (CollectRep.ValueRow valueRow : storageData.getValuesList()) { - Map labels = new HashMap<>(8); - List values = new LinkedList<>(); - for (int i = 0; i < fields.size(); i++) { - Field field = fields.get(i); - String origin = valueRow.getColumns(i); - if (CommonConstants.NULL_VALUE.equals(origin)) { - values.add(new Value()); - } else { - values.add(new Value(origin)); - if (field.getLabel()) { - labels.put(field.getName(), origin); - } - } - } - valueRows.add(ValueRow.builder().labels(labels).values(values).build()); - } - dataBuilder.valueRows(valueRows); - return ResponseEntity.ok(Message.success(dataBuilder.build())); - } + return ResponseEntity.ok(Message.success(metricsData)); } @GetMapping("/api/monitor/{monitorId}/metric/{metricFull}") @@ -140,8 +89,7 @@ public ResponseEntity> getMetricHistoryData( @Parameter(description = "aggregate data calc. off by default; 4-hour window, query limit >1 week", example = "false") @RequestParam(required = false) Boolean interval ) { - - if (historyDataReader.isEmpty() || !historyDataReader.get().isServerAvailable()) { + if (!metricsDataService.getWarehouseStorageServerStatus()) { return ResponseEntity.ok(Message.fail(FAIL_CODE, "time series database not available")); } String[] names = metricFull.split("\\."); @@ -151,19 +99,7 @@ public ResponseEntity> getMetricHistoryData( String app = names[0]; String metrics = names[1]; String metric = names[2]; - if (history == null) { - history = "6h"; - } - Map> instanceValuesMap; - if (interval == null || !interval) { - instanceValuesMap = historyDataReader.get().getHistoryMetricData(monitorId, app, metrics, metric, label, history); - } else { - instanceValuesMap = historyDataReader.get().getHistoryIntervalMetricData(monitorId, app, metrics, metric, label, history); - } - MetricsHistoryData historyData = MetricsHistoryData.builder() - .id(monitorId).metrics(metrics).values(instanceValuesMap) - .field(Field.builder().name(metric).type(CommonConstants.TYPE_NUMBER).build()) - .build(); + MetricsHistoryData historyData = metricsDataService.getMetricHistoryData(monitorId, app, metrics, metric, label, history, interval); return ResponseEntity.ok(Message.success(historyData)); } } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/dao/HistoryDao.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/dao/HistoryDao.java index d00bec8e4ff..7af37dfa939 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/dao/HistoryDao.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/dao/HistoryDao.java @@ -46,7 +46,7 @@ public interface HistoryDao extends JpaRepository, JpaSpecificati */ @Modifying @Transactional(rollbackFor = Exception.class) - @Query(value = "delete from hzb_history limit :delNum", nativeQuery = true) + @Query(value = "DELETE FROM hzb_history WHERE id IN ( SELECT t2.id from (SELECT t1.id FROM hzb_history t1 LIMIT ?1) as t2)", nativeQuery = true) int deleteOlderHistoriesRecord(@Param(value = "delNum") int delNum); /** diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/listener/WareHouseApplicationReadyListener.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/listener/WareHouseApplicationReadyListener.java index ba7501071c7..4ce7887f88c 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/listener/WareHouseApplicationReadyListener.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/listener/WareHouseApplicationReadyListener.java @@ -31,7 +31,7 @@ @Component public class WareHouseApplicationReadyListener { - private Optional historyDataStorage; + private final Optional historyDataStorage; public WareHouseApplicationReadyListener(Optional historyDataStorage) { this.historyDataStorage = historyDataStorage; diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/MetricsDataService.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/MetricsDataService.java new file mode 100644 index 00000000000..c0d7e7788b3 --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/MetricsDataService.java @@ -0,0 +1,54 @@ +/* + * 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.hertzbeat.warehouse.service; + +import org.apache.hertzbeat.common.entity.dto.MetricsData; +import org.apache.hertzbeat.common.entity.dto.MetricsHistoryData; + +/** + * service for metrics data + */ +public interface MetricsDataService { + + /** + * warehouse storage server availability or not + * @return true or false + */ + Boolean getWarehouseStorageServerStatus(); + + /** + * Query Real Time Metrics Data + * @param monitorId Monitor Id + * @param metrics Metrics Name + * @return metrics data + */ + MetricsData getMetricsData(Long monitorId, String metrics); + + /** + * Queries historical data for a specified metric for monitoring + * @param monitorId Monitor Id + * @param app Monitor Type + * @param metrics Metrics Name + * @param metric Metrics Field Name + * @param label Label Filter + * @param history Query Historical Time Period + * @param interval aggregate data calc + * @return metrics history data + */ + MetricsHistoryData getMetricHistoryData(Long monitorId, String app, String metrics, String metric, String label, String history, Boolean interval); +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/MetricsDataServiceImpl.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/MetricsDataServiceImpl.java new file mode 100644 index 00000000000..6c2690a3843 --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/MetricsDataServiceImpl.java @@ -0,0 +1,118 @@ +/* + * 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.hertzbeat.warehouse.service.impl; + +import java.util.HashMap; +import java.util.LinkedList; +import java.util.List; +import java.util.Map; +import java.util.Optional; +import java.util.stream.Collectors; +import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.entity.dto.Field; +import org.apache.hertzbeat.common.entity.dto.MetricsData; +import org.apache.hertzbeat.common.entity.dto.MetricsHistoryData; +import org.apache.hertzbeat.common.entity.dto.Value; +import org.apache.hertzbeat.common.entity.dto.ValueRow; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.support.exception.CommonException; +import org.apache.hertzbeat.warehouse.service.MetricsDataService; +import org.apache.hertzbeat.warehouse.store.history.HistoryDataReader; +import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.springframework.stereotype.Service; + +/** + * Metrics Data Service impl + */ +@Service +public class MetricsDataServiceImpl implements MetricsDataService { + + private final RealTimeDataReader realTimeDataReader; + + private final Optional historyDataReader; + + public MetricsDataServiceImpl(RealTimeDataReader realTimeDataReader, Optional historyDataReader) { + this.realTimeDataReader = realTimeDataReader; + this.historyDataReader = historyDataReader; + } + + @Override + public Boolean getWarehouseStorageServerStatus() { + return historyDataReader.isPresent() && historyDataReader.get().isServerAvailable(); + } + + @Override + public MetricsData getMetricsData(Long monitorId, String metrics) { + boolean available = realTimeDataReader.isServerAvailable(); + if (!available) { + throw new CommonException("real time store not available"); + } + CollectRep.MetricsData storageData = realTimeDataReader.getCurrentMetricsData(monitorId, metrics); + if (storageData == null) { + return null; + } + MetricsData.MetricsDataBuilder dataBuilder = MetricsData.builder(); + dataBuilder.id(storageData.getId()).app(storageData.getApp()).metrics(storageData.getMetrics()) + .time(storageData.getTime()); + List fields = storageData.getFieldsList().stream().map(tmpField -> + Field.builder().name(tmpField.getName()) + .type(Integer.valueOf(tmpField.getType()).byteValue()) + .label(tmpField.getLabel()) + .unit(tmpField.getUnit()) + .build()) + .collect(Collectors.toList()); + dataBuilder.fields(fields); + List valueRows = new LinkedList<>(); + for (CollectRep.ValueRow valueRow : storageData.getValuesList()) { + Map labels = new HashMap<>(8); + List values = new LinkedList<>(); + for (int i = 0; i < fields.size(); i++) { + Field field = fields.get(i); + String origin = valueRow.getColumns(i); + if (CommonConstants.NULL_VALUE.equals(origin)) { + values.add(new Value()); + } else { + values.add(new Value(origin)); + if (field.getLabel()) { + labels.put(field.getName(), origin); + } + } + } + valueRows.add(ValueRow.builder().labels(labels).values(values).build()); + } + dataBuilder.valueRows(valueRows); + return dataBuilder.build(); + } + + @Override + public MetricsHistoryData getMetricHistoryData(Long monitorId, String app, String metrics, String metric, String label, String history, Boolean interval) { + if (history == null) { + history = "6h"; + } + Map> instanceValuesMap; + if (interval == null || !interval) { + instanceValuesMap = historyDataReader.get().getHistoryMetricData(monitorId, app, metrics, metric, label, history); + } else { + instanceValuesMap = historyDataReader.get().getHistoryIntervalMetricData(monitorId, app, metrics, metric, label, history); + } + return MetricsHistoryData.builder() + .id(monitorId).metrics(metrics).values(instanceValuesMap) + .field(Field.builder().name(metric).type(CommonConstants.TYPE_NUMBER).build()) + .build(); + } +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceImpl.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/WarehouseServiceImpl.java similarity index 93% rename from warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceImpl.java rename to warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/WarehouseServiceImpl.java index 570fd7bba6c..b5cbdcefc5e 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceImpl.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/service/impl/WarehouseServiceImpl.java @@ -15,12 +15,13 @@ * limitations under the License. */ -package org.apache.hertzbeat.warehouse.service; +package org.apache.hertzbeat.warehouse.service.impl; import java.util.Collections; import java.util.List; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.service.WarehouseService; import org.apache.hertzbeat.warehouse.store.realtime.AbstractRealTimeDataStorage; import org.springframework.stereotype.Service; diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/DataStorageDispatch.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/DataStorageDispatch.java index 6b4ed8b7083..5d633df3b2d 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/DataStorageDispatch.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/DataStorageDispatch.java @@ -21,6 +21,8 @@ import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.queue.CommonDataQueue; +import org.apache.hertzbeat.plugin.PostCollectPlugin; +import org.apache.hertzbeat.plugin.runner.PluginRunner; import org.apache.hertzbeat.warehouse.WarehouseWorkerPool; import org.apache.hertzbeat.warehouse.store.history.HistoryDataWriter; import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataWriter; @@ -39,14 +41,18 @@ public class DataStorageDispatch { private final RealTimeDataWriter realTimeDataWriter; private final Optional historyDataWriter; + private final PluginRunner pluginRunner; + public DataStorageDispatch(CommonDataQueue commonDataQueue, WarehouseWorkerPool workerPool, Optional historyDataWriter, - RealTimeDataWriter realTimeDataWriter) { + RealTimeDataWriter realTimeDataWriter, + PluginRunner pluginRunner) { this.commonDataQueue = commonDataQueue; this.workerPool = workerPool; this.realTimeDataWriter = realTimeDataWriter; this.historyDataWriter = historyDataWriter; + this.pluginRunner = pluginRunner; startPersistentDataStorage(); startRealTimeDataStorage(); } @@ -61,6 +67,9 @@ private void startRealTimeDataStorage() { continue; } realTimeDataWriter.saveData(metricsData); + pluginRunner.pluginExecute(PostCollectPlugin.class, ((postCollectPlugin, pluginContext) -> postCollectPlugin.execute(metricsData, pluginContext))); + } catch (InterruptedException interruptedException) { + Thread.currentThread().interrupt(); } catch (Exception e) { log.error(e.getMessage(), e); } @@ -78,9 +87,9 @@ protected void startPersistentDataStorage() { if (metricsData == null) { continue; } - if (historyDataWriter.isPresent()) { - historyDataWriter.get().saveData(metricsData); - } + historyDataWriter.ifPresent(dataWriter -> dataWriter.saveData(metricsData)); + } catch (InterruptedException interruptedException) { + Thread.currentThread().interrupt(); } catch (Exception e) { log.error(e.getMessage(), e); } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeDbDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeDbDataStorage.java index aefd45e0942..1e039188f25 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeDbDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeDbDataStorage.java @@ -47,6 +47,7 @@ import java.util.concurrent.TimeUnit; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.dto.Value; import org.apache.hertzbeat.common.entity.message.CollectRep; @@ -57,374 +58,373 @@ /** * GreptimeDB data storage, only supports GreptimeDB version >= v0.5 - * */ @Component @ConditionalOnProperty(prefix = "warehouse.store.greptime", name = "enabled", havingValue = "true") @Slf4j public class GreptimeDbDataStorage extends AbstractHistoryDataStorage { - + private static final String CONSTANT_DB_TTL = "30d"; - + private static final String QUERY_HISTORY_SQL = "SELECT CAST (ts AS Int64) ts, instance, `%s` FROM `%s` WHERE ts >= now() - interval '%s' and monitor_id = %s order by ts desc;"; - + @SuppressWarnings("checkstyle:LineLength") private static final String QUERY_HISTORY_WITH_INSTANCE_SQL = "SELECT CAST (ts AS Int64) ts, instance, `%s` FROM `%s` WHERE ts >= now() - interval '%s' and monitor_id = %s and instance = '%s' order by ts desc;"; - + private static final String QUERY_INSTANCE_SQL = "SELECT DISTINCT instance FROM `%s` WHERE ts >= now() - interval '1 WEEK'"; - + @SuppressWarnings("checkstyle:LineLength") private static final String QUERY_HISTORY_INTERVAL_WITH_INSTANCE_SQL = "SELECT CAST (ts AS Int64) ts, first_value(`%s`) range '4h' first, avg(`%s`) range '4h' avg, min(`%s`) range '4h' min, max(`%s`) range '4h' max FROM `%s` WHERE instance = '%s' AND ts >= now() - interval '%s' ALIGN '4h'"; - + private static final String TABLE_NOT_EXIST = "not found"; - + private static final String CONSTANTS_CREATE_DATABASE = "CREATE DATABASE IF NOT EXISTS `%s` WITH(ttl='%s')"; - + private static final Runnable INSTANCE_EXCEPTION_PRINT = () -> { - if (log.isErrorEnabled()) { - log.error(""" - \t---------------GreptimeDB Init Failed--------------- - \t--------------Please Config GreptimeDB-------------- - t-----------Can Not Use Metric History Now----------- - """); - } + if (log.isErrorEnabled()) { + log.error(""" + \t---------------GreptimeDB Init Failed--------------- + \t--------------Please Config GreptimeDB-------------- + t-----------Can Not Use Metric History Now----------- + """); + } }; - + private HikariDataSource hikariDataSource; - + private GreptimeDB greptimeDb; - + public GreptimeDbDataStorage(GreptimeProperties greptimeProperties) { - if (greptimeProperties == null) { - log.error("init error, please config Warehouse GreptimeDB props in application.yml"); - throw new IllegalArgumentException("please config Warehouse GreptimeDB props"); - } - - serverAvailable = initGreptimeDbClient(greptimeProperties) && initGreptimeDbDataSource(greptimeProperties); + if (greptimeProperties == null) { + log.error("init error, please config Warehouse GreptimeDB props in application.yml"); + throw new IllegalArgumentException("please config Warehouse GreptimeDB props"); + } + + serverAvailable = initGreptimeDbClient(greptimeProperties) && initGreptimeDbDataSource(greptimeProperties); } - + private void initGreptimeDb(final GreptimeProperties greptimeProperties) throws SQLException { - final DriverPropertyInfo[] properties = new Driver().getPropertyInfo(greptimeProperties.url(), null); - final String host = ObjectUtils.requireNonEmpty(properties[0].value); - final String port = ObjectUtils.requireNonEmpty(properties[1].value); - final String dbName = ObjectUtils.requireNonEmpty(properties[2].value); - - String ttl = greptimeProperties.expireTime(); - if (ttl == null || "".equals(ttl.trim())) { - ttl = CONSTANT_DB_TTL; - } - - try (final Connection tempConnection = DriverManager.getConnection("jdbc:mysql://" + host + ":" + port, - greptimeProperties.username(), greptimeProperties.password()); - final PreparedStatement pstmt = tempConnection - .prepareStatement(String.format(CONSTANTS_CREATE_DATABASE, dbName, ttl))) { - log.info("[warehouse greptime] try to create database `{}` if not exists", dbName); - pstmt.execute(); - } + final DriverPropertyInfo[] properties = new Driver().getPropertyInfo(greptimeProperties.url(), null); + final String host = ObjectUtils.requireNonEmpty(properties[0].value); + final String port = ObjectUtils.requireNonEmpty(properties[1].value); + final String dbName = ObjectUtils.requireNonEmpty(properties[2].value); + + String ttl = greptimeProperties.expireTime(); + if (ttl == null || StringUtils.isBlank(ttl.trim())) { + ttl = CONSTANT_DB_TTL; + } + + try (final Connection tempConnection = DriverManager.getConnection("jdbc:mysql://" + host + ":" + port, + greptimeProperties.username(), greptimeProperties.password()); + final PreparedStatement pstmt = tempConnection + .prepareStatement(String.format(CONSTANTS_CREATE_DATABASE, dbName, ttl))) { + log.info("[warehouse greptime] try to create database `{}` if not exists", dbName); + pstmt.execute(); + } } - + private boolean initGreptimeDbClient(GreptimeProperties greptimeProperties) { - String endpoints = greptimeProperties.grpcEndpoints(); - try { - final DriverPropertyInfo[] properties = new Driver().getPropertyInfo(greptimeProperties.url(), null); - final String dbName = ObjectUtils.requireNonEmpty(properties[2].value); - - GreptimeOptions opts = GreptimeOptions.newBuilder(endpoints.split(","), dbName) // - .writeMaxRetries(3) // - .authInfo(new AuthInfo(greptimeProperties.username(), greptimeProperties.password())) - .routeTableRefreshPeriodSeconds(30) // - .build(); - - this.greptimeDb = GreptimeDB.create(opts); - } catch (Exception e) { - log.error("[warehouse greptime] Fail to start GreptimeDB client"); - return false; - } - - return true; + String endpoints = greptimeProperties.grpcEndpoints(); + try { + final DriverPropertyInfo[] properties = new Driver().getPropertyInfo(greptimeProperties.url(), null); + final String dbName = ObjectUtils.requireNonEmpty(properties[2].value); + + GreptimeOptions opts = GreptimeOptions.newBuilder(endpoints.split(","), dbName) // + .writeMaxRetries(3) // + .authInfo(new AuthInfo(greptimeProperties.username(), greptimeProperties.password())) + .routeTableRefreshPeriodSeconds(30) // + .build(); + + this.greptimeDb = GreptimeDB.create(opts); + } catch (Exception e) { + log.error("[warehouse greptime] Fail to start GreptimeDB client"); + return false; + } + + return true; } - + private boolean initGreptimeDbDataSource(final GreptimeProperties greptimeProperties) { - try { - initGreptimeDb(greptimeProperties); - } catch (Exception e) { - if (log.isErrorEnabled()) { - log.error(e.getMessage(), e); - } - - INSTANCE_EXCEPTION_PRINT.run(); - return false; - } - - final HikariConfig config = new HikariConfig(); - // jdbc properties - config.setJdbcUrl(greptimeProperties.url()); - config.setUsername(greptimeProperties.username()); - config.setPassword(greptimeProperties.password()); - config.setDriverClassName(greptimeProperties.driverClassName()); - // minimum number of idle connection - config.setMinimumIdle(10); - // maximum number of connection in the pool - config.setMaximumPoolSize(10); - // maximum wait milliseconds for get connection from pool - config.setConnectionTimeout(30000); - // maximum lifetime for each connection - config.setMaxLifetime(0); - // max idle time for recycle idle connection - config.setIdleTimeout(0); - // validation query - config.setConnectionTestQuery("select 1"); - try { - this.hikariDataSource = new HikariDataSource(config); - } catch (Exception e) { - INSTANCE_EXCEPTION_PRINT.run(); - return false; - } - return true; + try { + initGreptimeDb(greptimeProperties); + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error(e.getMessage(), e); + } + + INSTANCE_EXCEPTION_PRINT.run(); + return false; + } + + final HikariConfig config = new HikariConfig(); + // jdbc properties + config.setJdbcUrl(greptimeProperties.url()); + config.setUsername(greptimeProperties.username()); + config.setPassword(greptimeProperties.password()); + config.setDriverClassName(greptimeProperties.driverClassName()); + // minimum number of idle connection + config.setMinimumIdle(10); + // maximum number of connection in the pool + config.setMaximumPoolSize(10); + // maximum wait milliseconds for get connection from pool + config.setConnectionTimeout(30000); + // maximum lifetime for each connection + config.setMaxLifetime(0); + // max idle time for recycle idle connection + config.setIdleTimeout(0); + // validation query + config.setConnectionTestQuery("select 1"); + try { + this.hikariDataSource = new HikariDataSource(config); + } catch (Exception e) { + INSTANCE_EXCEPTION_PRINT.run(); + return false; + } + return true; } - + @Override public void saveData(CollectRep.MetricsData metricsData) { - if (!isServerAvailable() || metricsData.getCode() != CollectRep.Code.SUCCESS) { - return; - } - if (metricsData.getValuesList().isEmpty()) { - log.info("[warehouse greptime] flush metrics data {} is null, ignore.", metricsData.getId()); - return; - } - String monitorId = String.valueOf(metricsData.getId()); - String tableName = getTableName(metricsData.getApp(), metricsData.getMetrics()); - TableSchema.Builder tableSchemaBuilder = TableSchema.newBuilder(tableName); - - tableSchemaBuilder.addTag("monitor_id", DataType.String) // - .addTag("instance", DataType.String) // - .addTimestamp("ts", DataType.TimestampMillisecond); - - List fieldsList = metricsData.getFieldsList(); - for (CollectRep.Field field : fieldsList) { - // handle field type - if (field.getType() == CommonConstants.TYPE_NUMBER) { - tableSchemaBuilder.addField(field.getName(), DataType.Float64); - } else if (field.getType() == CommonConstants.TYPE_STRING) { - tableSchemaBuilder.addField(field.getName(), DataType.String); - } - } - Table table = Table.from(tableSchemaBuilder.build()); - - try { - long now = System.currentTimeMillis(); - Object[] values = new Object[3 + fieldsList.size()]; - values[0] = monitorId; - values[2] = now; - for (CollectRep.ValueRow valueRow : metricsData.getValuesList()) { - Map labels = new HashMap<>(8); - for (int i = 0; i < fieldsList.size(); i++) { - if (!CommonConstants.NULL_VALUE.equals(valueRow.getColumns(i))) { - CollectRep.Field field = fieldsList.get(i); - if (field.getType() == CommonConstants.TYPE_NUMBER) { - values[3 + i] = Double.parseDouble(valueRow.getColumns(i)); - } else if (field.getType() == CommonConstants.TYPE_STRING) { - values[3 + i] = valueRow.getColumns(i); - } - if (field.getLabel()) { - labels.put(field.getName(), String.valueOf(values[3 + i])); - } - } else { - values[3 + i] = null; - } - } - values[1] = JsonUtil.toJson(labels); - table.addRow(values); - } - - CompletableFuture> writeFuture = greptimeDb.write(table); - try { - Result result = writeFuture.get(10, TimeUnit.SECONDS); - if (result.isOk()) { - log.debug("[warehouse greptime]-Write successful"); - } else { - log.warn("[warehouse greptime]--Write failed: {}", result.getErr()); - } - } catch (Throwable throwable) { - log.error("[warehouse greptime]--Error occurred: {}", throwable.getMessage()); - } - } catch (Exception e) { - log.error("[warehouse greptime]--Error: {}", e.getMessage(), e); - } + if (!isServerAvailable() || metricsData.getCode() != CollectRep.Code.SUCCESS) { + return; + } + if (metricsData.getValuesList().isEmpty()) { + log.info("[warehouse greptime] flush metrics data {} is null, ignore.", metricsData.getId()); + return; + } + String monitorId = String.valueOf(metricsData.getId()); + String tableName = getTableName(metricsData.getApp(), metricsData.getMetrics()); + TableSchema.Builder tableSchemaBuilder = TableSchema.newBuilder(tableName); + + tableSchemaBuilder.addTag("monitor_id", DataType.String) // + .addTag("instance", DataType.String) // + .addTimestamp("ts", DataType.TimestampMillisecond); + + List fieldsList = metricsData.getFieldsList(); + for (CollectRep.Field field : fieldsList) { + // handle field type + if (field.getType() == CommonConstants.TYPE_NUMBER) { + tableSchemaBuilder.addField(field.getName(), DataType.Float64); + } else if (field.getType() == CommonConstants.TYPE_STRING) { + tableSchemaBuilder.addField(field.getName(), DataType.String); + } + } + Table table = Table.from(tableSchemaBuilder.build()); + + try { + long now = System.currentTimeMillis(); + Object[] values = new Object[3 + fieldsList.size()]; + values[0] = monitorId; + values[2] = now; + for (CollectRep.ValueRow valueRow : metricsData.getValuesList()) { + Map labels = new HashMap<>(8); + for (int i = 0; i < fieldsList.size(); i++) { + if (!CommonConstants.NULL_VALUE.equals(valueRow.getColumns(i))) { + CollectRep.Field field = fieldsList.get(i); + if (field.getType() == CommonConstants.TYPE_NUMBER) { + values[3 + i] = Double.parseDouble(valueRow.getColumns(i)); + } else if (field.getType() == CommonConstants.TYPE_STRING) { + values[3 + i] = valueRow.getColumns(i); + } + if (field.getLabel()) { + labels.put(field.getName(), String.valueOf(values[3 + i])); + } + } else { + values[3 + i] = null; + } + } + values[1] = JsonUtil.toJson(labels); + table.addRow(values); + } + + CompletableFuture> writeFuture = greptimeDb.write(table); + try { + Result result = writeFuture.get(10, TimeUnit.SECONDS); + if (result.isOk()) { + log.debug("[warehouse greptime]-Write successful"); + } else { + log.warn("[warehouse greptime]--Write failed: {}", result.getErr()); + } + } catch (Throwable throwable) { + log.error("[warehouse greptime]--Error occurred: {}", throwable.getMessage()); + } + } catch (Exception e) { + log.error("[warehouse greptime]--Error: {}", e.getMessage(), e); + } } - + @Override public Map> getHistoryMetricData(Long monitorId, String app, String metrics, String metric, - String label, String history) { - Map> instanceValuesMap = new HashMap<>(8); - if (!isServerAvailable()) { - INSTANCE_EXCEPTION_PRINT.run(); - return instanceValuesMap; - } - - String table = getTableName(app, metrics); - - String interval = history2interval(history); - String selectSql = label == null ? String.format(QUERY_HISTORY_SQL, metric, table, interval, monitorId) - : String.format(QUERY_HISTORY_WITH_INSTANCE_SQL, metric, table, interval, monitorId, label); - - if (log.isDebugEnabled()) { - log.debug("[warehouse greptime] getHistoryMetricData SQL: {}", selectSql); - } - - try (Connection connection = hikariDataSource.getConnection(); - Statement statement = connection.createStatement(); - ResultSet resultSet = statement.executeQuery(selectSql)) { - while (resultSet.next()) { - long ts = resultSet.getLong(1); - if (ts == 0) { - if (log.isErrorEnabled()) { - log.error("[warehouse greptime] getHistoryMetricData query result timestamp is 0, ignore. {}.", - selectSql); - } - continue; - } - String instanceValue = resultSet.getString(2); - if (instanceValue == null || "".equals(instanceValue)) { - instanceValue = ""; - } - double value = resultSet.getDouble(3); - String strValue = double2decimalString(value); - - List valueList = instanceValuesMap.computeIfAbsent(instanceValue, k -> new LinkedList<>()); - valueList.add(new Value(strValue, ts)); - } - return instanceValuesMap; - } catch (SQLException sqlException) { - String msg = sqlException.getMessage(); - if (msg != null && !msg.contains(TABLE_NOT_EXIST)) { - if (log.isWarnEnabled()) { - log.warn("[warehouse greptime] failed to getHistoryMetricData: " + sqlException.getMessage()); - } - } - } catch (Exception e) { - if (log.isErrorEnabled()) { - log.error("[warehouse greptime] failed to getHistoryMetricData:" + e.getMessage(), e); - } - } - return instanceValuesMap; + String label, String history) { + Map> instanceValuesMap = new HashMap<>(8); + if (!isServerAvailable()) { + INSTANCE_EXCEPTION_PRINT.run(); + return instanceValuesMap; + } + + String table = getTableName(app, metrics); + + String interval = history2interval(history); + String selectSql = label == null ? String.format(QUERY_HISTORY_SQL, metric, table, interval, monitorId) + : String.format(QUERY_HISTORY_WITH_INSTANCE_SQL, metric, table, interval, monitorId, label); + + if (log.isDebugEnabled()) { + log.debug("[warehouse greptime] getHistoryMetricData SQL: {}", selectSql); + } + + try (Connection connection = hikariDataSource.getConnection(); + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(selectSql)) { + while (resultSet.next()) { + long ts = resultSet.getLong(1); + if (ts == 0) { + if (log.isErrorEnabled()) { + log.error("[warehouse greptime] getHistoryMetricData query result timestamp is 0, ignore. {}.", + selectSql); + } + continue; + } + String instanceValue = resultSet.getString(2); + if (instanceValue == null || StringUtils.isBlank(instanceValue)) { + instanceValue = ""; + } + double value = resultSet.getDouble(3); + String strValue = double2decimalString(value); + + List valueList = instanceValuesMap.computeIfAbsent(instanceValue, k -> new LinkedList<>()); + valueList.add(new Value(strValue, ts)); + } + return instanceValuesMap; + } catch (SQLException sqlException) { + String msg = sqlException.getMessage(); + if (msg != null && !msg.contains(TABLE_NOT_EXIST)) { + if (log.isWarnEnabled()) { + log.warn("[warehouse greptime] failed to getHistoryMetricData: {}", sqlException.getMessage()); + } + } + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error("[warehouse greptime] failed to getHistoryMetricData:{}", e.getMessage(), e); + } + } + return instanceValuesMap; } - + private String getTableName(String app, String metrics) { - return app + "_" + metrics; + return app + "_" + metrics; } - + @Override public Map> getHistoryIntervalMetricData(Long monitorId, String app, String metrics, - String metric, String label, String history) { - if (!isServerAvailable()) { - INSTANCE_EXCEPTION_PRINT.run(); - return Collections.emptyMap(); - } - String table = getTableName(app, metrics); - List instances = new LinkedList<>(); - if (label != null && !"".equals(label)) { - instances.add(label); - } - if (instances.isEmpty()) { - String selectSql = String.format(QUERY_INSTANCE_SQL, table); - if (log.isDebugEnabled()) { - log.debug("[warehouse greptime] getHistoryIntervalMetricData sql: {}", selectSql); - } - - try (Connection connection = hikariDataSource.getConnection(); - Statement statement = connection.createStatement(); - ResultSet resultSet = statement.executeQuery(selectSql)) { - while (resultSet.next()) { - String instanceValue = resultSet.getString(1); - if (instanceValue == null || "".equals(instanceValue)) { - instances.add("''"); - } else { - instances.add(instanceValue); - } - } - } catch (Exception e) { - if (log.isErrorEnabled()) { - log.error("[warehouse greptime] failed to query instances" + e.getMessage(), e); - } - } - } - - Map> instanceValuesMap = new HashMap<>(instances.size()); - for (String instanceValue : instances) { - String selectSql = String.format(QUERY_HISTORY_INTERVAL_WITH_INSTANCE_SQL, metric, metric, metric, metric, - table, instanceValue, history2interval(history)); - - if (log.isDebugEnabled()) { - log.debug("[warehouse greptime] getHistoryIntervalMetricData sql: {}", selectSql); - } - - List values = instanceValuesMap.computeIfAbsent(instanceValue, k -> new LinkedList<>()); - try (Connection connection = hikariDataSource.getConnection(); - Statement statement = connection.createStatement(); - ResultSet resultSet = statement.executeQuery(selectSql);) { - while (resultSet.next()) { - long ts = resultSet.getLong(1); - if (ts == 0) { - if (log.isErrorEnabled()) { - log.error( - "[warehouse greptime] getHistoryIntervalMetricData query result timestamp is 0, ignore. {}.", - selectSql); - } - continue; - } - double origin = resultSet.getDouble(2); - String originStr = double2decimalString(origin); - double avg = resultSet.getDouble(3); - String avgStr = double2decimalString(avg); - double min = resultSet.getDouble(4); - String minStr = double2decimalString(min); - double max = resultSet.getDouble(5); - String maxStr = double2decimalString(max); - Value value = Value.builder().origin(originStr).mean(avgStr).min(minStr).max(maxStr).time(ts) - .build(); - values.add(value); - } - resultSet.close(); - } catch (Exception e) { - if (log.isErrorEnabled()) { - log.error("[warehouse greptime] failed to getHistoryIntervalMetricData: " + e.getMessage(), e); - } - } - } - return instanceValuesMap; + String metric, String label, String history) { + if (!isServerAvailable()) { + INSTANCE_EXCEPTION_PRINT.run(); + return Collections.emptyMap(); + } + String table = getTableName(app, metrics); + List instances = new LinkedList<>(); + if (label != null && !StringUtils.isBlank(label)) { + instances.add(label); + } + if (instances.isEmpty()) { + String selectSql = String.format(QUERY_INSTANCE_SQL, table); + if (log.isDebugEnabled()) { + log.debug("[warehouse greptime] getHistoryIntervalMetricData sql: {}", selectSql); + } + + try (Connection connection = hikariDataSource.getConnection(); + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(selectSql)) { + while (resultSet.next()) { + String instanceValue = resultSet.getString(1); + if (instanceValue == null || StringUtils.isBlank(instanceValue)) { + instances.add("''"); + } else { + instances.add(instanceValue); + } + } + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error("[warehouse greptime] failed to query instances{}", e.getMessage(), e); + } + } + } + + Map> instanceValuesMap = new HashMap<>(instances.size()); + for (String instanceValue : instances) { + String selectSql = String.format(QUERY_HISTORY_INTERVAL_WITH_INSTANCE_SQL, metric, metric, metric, metric, + table, instanceValue, history2interval(history)); + + if (log.isDebugEnabled()) { + log.debug("[warehouse greptime] getHistoryIntervalMetricData sql: {}", selectSql); + } + + List values = instanceValuesMap.computeIfAbsent(instanceValue, k -> new LinkedList<>()); + try (Connection connection = hikariDataSource.getConnection(); + Statement statement = connection.createStatement(); + ResultSet resultSet = statement.executeQuery(selectSql)) { + while (resultSet.next()) { + long ts = resultSet.getLong(1); + if (ts == 0) { + if (log.isErrorEnabled()) { + log.error( + "[warehouse greptime] getHistoryIntervalMetricData query result timestamp is 0, ignore. {}.", + selectSql); + } + continue; + } + double origin = resultSet.getDouble(2); + String originStr = double2decimalString(origin); + double avg = resultSet.getDouble(3); + String avgStr = double2decimalString(avg); + double min = resultSet.getDouble(4); + String minStr = double2decimalString(min); + double max = resultSet.getDouble(5); + String maxStr = double2decimalString(max); + Value value = Value.builder().origin(originStr).mean(avgStr).min(minStr).max(maxStr).time(ts) + .build(); + values.add(value); + } + resultSet.close(); + } catch (Exception e) { + if (log.isErrorEnabled()) { + log.error("[warehouse greptime] failed to getHistoryIntervalMetricData: {}", e.getMessage(), e); + } + } + } + return instanceValuesMap; } - + // TODO(dennis): we can remove it when // https://github.com/GreptimeTeam/greptimedb/issues/4168 is fixed. // default 6h-6 hours: s-seconds, M-minutes, h-hours, d-days, w-weeks private String history2interval(String history) { - if (history == null) { - return null; - } - history = history.trim().toLowerCase(); - - // Be careful, the order matters. - return history.replaceAll("d", " day") // - .replaceAll("s", " second") // - .replaceAll("w", " week") // - .replaceAll("h", " hour")// - .replaceAll("m", " minute"); + if (history == null) { + return null; + } + history = history.trim().toLowerCase(); + + // Be careful, the order matters. + return history.replaceAll("d", " day") // + .replaceAll("s", " second") // + .replaceAll("w", " week") // + .replaceAll("h", " hour")// + .replaceAll("m", " minute"); } - + private String double2decimalString(double d) { - return BigDecimal.valueOf(d).setScale(4, RoundingMode.HALF_UP).stripTrailingZeros().toPlainString(); + return BigDecimal.valueOf(d).setScale(4, RoundingMode.HALF_UP).stripTrailingZeros().toPlainString(); } - + @Override public void destroy() { - if (this.greptimeDb != null) { - this.greptimeDb.shutdownGracefully(); - this.greptimeDb = null; - } - if (this.hikariDataSource != null) { - this.hikariDataSource.close(); - hikariDataSource = null; - } + if (this.greptimeDb != null) { + this.greptimeDb.shutdownGracefully(); + this.greptimeDb = null; + } + if (this.hikariDataSource != null) { + this.hikariDataSource.close(); + hikariDataSource = null; + } } } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeProperties.java index bd02be75c92..8b9bcf2619a 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/greptime/GreptimeProperties.java @@ -17,13 +17,21 @@ package org.apache.hertzbeat.warehouse.store.history.greptime; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; /** * GrepTimeDB configuration information */ -@ConfigurationProperties(prefix = "warehouse.store.greptime") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.GREPTIME) public record GreptimeProperties(@DefaultValue("false") boolean enabled, @DefaultValue("127.0.0.1:4001") String grpcEndpoints, @DefaultValue("jdbc:mysql://127.0.0.1:4002/hertzbeat?connectionTimeZone=Asia/Shanghai&forceConnectionTimeZoneToSession=true") String url, diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java index 65aded4adc6..85a21f3f0f4 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbDataStorage.java @@ -35,8 +35,10 @@ import javax.net.ssl.TrustManager; import javax.net.ssl.X509TrustManager; import lombok.extern.slf4j.Slf4j; +import okhttp3.ConnectionPool; import okhttp3.OkHttpClient; import org.apache.hertzbeat.common.constants.CommonConstants; +import org.apache.hertzbeat.common.constants.NetworkConstants; import org.apache.hertzbeat.common.entity.dto.Value; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.common.util.JsonUtil; @@ -83,14 +85,18 @@ public InfluxdbDataStorage(InfluxdbProperties influxdbProperties) { } public void initInfluxDb(InfluxdbProperties influxdbProperties) { - OkHttpClient.Builder client = new OkHttpClient.Builder() - .connectTimeout(10, TimeUnit.SECONDS) - .writeTimeout(10, TimeUnit.SECONDS) - .readTimeout(10, TimeUnit.SECONDS) - .retryOnConnectionFailure(true); - client.sslSocketFactory(defaultSslSocketFactory(), defaultTrustManager()); - client.hostnameVerifier(noopHostnameVerifier()); + var client = new OkHttpClient.Builder() + .readTimeout(NetworkConstants.HttpClientConstants.READ_TIME_OUT, TimeUnit.SECONDS) + .writeTimeout(NetworkConstants.HttpClientConstants.WRITE_TIME_OUT, TimeUnit.SECONDS) + .connectTimeout(NetworkConstants.HttpClientConstants.CONNECT_TIME_OUT, TimeUnit.SECONDS) + .connectionPool(new ConnectionPool( + NetworkConstants.HttpClientConstants.MAX_IDLE_CONNECTIONS, + NetworkConstants.HttpClientConstants.KEEP_ALIVE_TIMEOUT, + TimeUnit.SECONDS) + ).sslSocketFactory(defaultSslSocketFactory(), defaultTrustManager()) + .hostnameVerifier(noopHostnameVerifier()) + .retryOnConnectionFailure(true); this.influxDb = InfluxDBFactory.connect(influxdbProperties.serverUrl(), influxdbProperties.username(), influxdbProperties.password(), client); // Close it if your application is terminating, or you are not using it anymore. diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbProperties.java index 0e78e356b86..de9d749b1ca 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/influxdb/InfluxdbProperties.java @@ -17,13 +17,21 @@ package org.apache.hertzbeat.warehouse.store.history.influxdb; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; /** * Influxdb configuration information */ -@ConfigurationProperties(prefix = "warehouse.store.influxdb") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.INFLUXDB) public record InfluxdbProperties(@DefaultValue("false") boolean enabled, String serverUrl, String username, diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbDataStorage.java index 777a0a7d30c..29727c34d25 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbDataStorage.java @@ -55,7 +55,7 @@ public class IotDbDataStorage extends AbstractHistoryDataStorage { private static final String NEVER_EXPIRE = "-1"; /** - * storage group (存储组) + * storage group */ private static final String STORAGE_GROUP = "root.hertzbeat"; @@ -107,16 +107,16 @@ private boolean initIotDbSession(IotDbProperties properties) { boolean available = checkConnection(); if (!available) { log.error("IotDB session pool init error with check connection"); - return available; + return false; } available = this.createDatabase(); if (!available) { log.error("IotDB session pool init error with create database"); - return available; + return false; } this.initTtl(properties.expireTime()); log.info("IotDB session pool init success"); - return available; + return true; } private boolean checkConnection() { @@ -248,9 +248,12 @@ public Map> getHistoryMetricData(Long monitorId, String app, String label, String history) { Map> instanceValuesMap = new HashMap<>(8); if (!isServerAvailable()) { - log.error("\n\t---------------IotDb Init Failed---------------\n" - + "\t--------------Please Config IotDb--------------\n" - + "\t----------Can Not Use Metric History Now----------\n"); + log.error(""" + + \t---------------IotDb Init Failed--------------- + \t--------------Please Config IotDb-------------- + \t----------Can Not Use Metric History Now---------- + """); return instanceValuesMap; } String deviceId = getDeviceId(app, metrics, monitorId, label, true); @@ -309,9 +312,12 @@ public Map> getHistoryIntervalMetricData(Long monitorId, Str String metric, String label, String history) { Map> instanceValuesMap = new HashMap<>(8); if (!isServerAvailable()) { - log.error("\n\t---------------IotDb Init Failed---------------\n" - + "\t--------------Please Config IotDb--------------\n" - + "\t----------Can Not Use Metric History Now----------\n"); + log.error(""" + + \t---------------IotDb Init Failed--------------- + \t--------------Please Config IotDb-------------- + \t----------Can Not Use Metric History Now---------- + """); return instanceValuesMap; } String deviceId = getDeviceId(app, metrics, monitorId, label, true); @@ -379,9 +385,9 @@ private void handleHistoryIntervalSelect(String selectSql, String instance, } /** - * 获取deviceId下的所有设备 + * Query all devices by deviceId * - * @param deviceId 设备/实体 + * @param deviceId deviceId */ private List queryAllDevices(String deviceId) { String showDevicesSql = String.format(SHOW_DEVICES, deviceId + ".*"); @@ -406,10 +412,9 @@ private List queryAllDevices(String deviceId) { } /** - * gets the device ID - * 有instanceId的使用 ${group}.${app}.${metrics}.${monitor}.${labels} 的方式 - * 否则使用 ${group}.${app}.${metrics}.${monitor} 的方式 - * 查询时可以通过 ${group}.${app}.${metrics}.${monitor}.* 的方式获取所有instance数据 + * use ${group}.${app}.${metrics}.${monitor}.${labels} to get device id if there is a way to get instanceId + * otherwise use ${group}.${app}.${metrics}.${monitor} + * Use ${group}.${app}.${metrics}.${monitor}.* to get all instance data when you tend to query */ private String getDeviceId(String app, String metrics, Long monitorId, String labels, boolean useQuote) { String deviceId = STORAGE_GROUP + "." diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbProperties.java index 9d1188b690d..9e7293e39ce 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/iotdb/IotDbProperties.java @@ -19,11 +19,12 @@ import java.time.ZoneId; import java.util.List; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; - - /** * IotDB configuration information * @param enabled Whether the iotDB data store is enabled @@ -34,7 +35,12 @@ * Note: Why use String instead of Long here? Currently, IoTDB's set ttl only supports milliseconds as the unit. * Other units may be added later. In order to be compatible with the future, the String type is used. */ -@ConfigurationProperties(prefix = "warehouse.store.iot-db") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.IOT_DB) public record IotDbProperties(@DefaultValue("false") boolean enabled, @DefaultValue("127.0.0.1") String host, @DefaultValue("6667") Integer rpcPort, diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaDatabaseDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaDatabaseDataStorage.java index 786ea2d8728..9ab515754c2 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaDatabaseDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaDatabaseDataStorage.java @@ -146,34 +146,22 @@ public void saveData(CollectRep.MetricsData metricsData) { if (CommonConstants.NULL_VALUE.equals(columnValue)) { switch (fieldType) { - case CommonConstants.TYPE_NUMBER -> { - historyBuilder.metricType(CommonConstants.TYPE_NUMBER) - .dou(null); - } - case CommonConstants.TYPE_STRING -> { - historyBuilder.metricType(CommonConstants.TYPE_STRING) - .str(null); - } - case CommonConstants.TYPE_TIME -> { - historyBuilder.metricType(CommonConstants.TYPE_TIME) - .int32(null); - } + case CommonConstants.TYPE_NUMBER -> historyBuilder.metricType(CommonConstants.TYPE_NUMBER) + .dou(null); + case CommonConstants.TYPE_STRING -> historyBuilder.metricType(CommonConstants.TYPE_STRING) + .str(null); + case CommonConstants.TYPE_TIME -> historyBuilder.metricType(CommonConstants.TYPE_TIME) + .int32(null); default -> historyBuilder.metricType(CommonConstants.TYPE_NUMBER); } } else { switch (fieldType) { - case CommonConstants.TYPE_NUMBER -> { - historyBuilder.metricType(CommonConstants.TYPE_NUMBER) - .dou(Double.parseDouble(columnValue)); - } - case CommonConstants.TYPE_STRING -> { - historyBuilder.metricType(CommonConstants.TYPE_STRING) - .str(formatStrValue(columnValue)); - } - case CommonConstants.TYPE_TIME -> { - historyBuilder.metricType(CommonConstants.TYPE_TIME) - .int32(Integer.parseInt(columnValue)); - } + case CommonConstants.TYPE_NUMBER -> historyBuilder.metricType(CommonConstants.TYPE_NUMBER) + .dou(Double.parseDouble(columnValue)); + case CommonConstants.TYPE_STRING -> historyBuilder.metricType(CommonConstants.TYPE_STRING) + .str(formatStrValue(columnValue)); + case CommonConstants.TYPE_TIME -> historyBuilder.metricType(CommonConstants.TYPE_TIME) + .int32(Integer.parseInt(columnValue)); default -> historyBuilder.metricType(CommonConstants.TYPE_NUMBER) .dou(Double.parseDouble(columnValue)); } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaProperties.java index 3b3d7a3b4eb..ab04a7ea50a 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/jpa/JpaProperties.java @@ -17,6 +17,9 @@ package org.apache.hertzbeat.warehouse.store.history.jpa; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; @@ -26,7 +29,12 @@ * @param expireTime save data expire time(ms) * @param maxHistoryRecordNum The maximum number of history records retained */ -@ConfigurationProperties(prefix = "warehouse.store.jpa") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.JPA) public record JpaProperties(@DefaultValue("true") boolean enabled, @DefaultValue("1h") String expireTime, @DefaultValue("20000") Integer maxHistoryRecordNum) { diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineDataStorage.java index 7f9c896a2bd..8a16182b1ce 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineDataStorage.java @@ -37,6 +37,7 @@ import java.util.regex.Pattern; import lombok.extern.slf4j.Slf4j; import org.apache.commons.lang3.ObjectUtils; +import org.apache.commons.lang3.StringUtils; import org.apache.hertzbeat.common.constants.CommonConstants; import org.apache.hertzbeat.common.entity.dto.Value; import org.apache.hertzbeat.common.entity.message.CollectRep; @@ -100,9 +101,9 @@ public TdEngineDataStorage(TdEngineProperties tdEngineProperties) { } /** - * {@code TdEngine} 初始化数据库 + * {@code TdEngine} init TdEngineDatabase * - * @param tdEngineProperties {@link TdEngineProperties} 对象实例 + * @param tdEngineProperties {@link TdEngineProperties} */ private void initTdEngineDatabase(final TdEngineProperties tdEngineProperties) throws SQLException { final Properties parseResultProperties = com.taosdata.jdbc.utils.StringUtils.parseUrl(tdEngineProperties.url(), null); @@ -337,7 +338,7 @@ public Map> getHistoryMetricData(Long monitorId, String app, continue; } String instanceValue = resultSet.getString(2); - if (instanceValue == null || "".equals(instanceValue)) { + if (instanceValue == null || StringUtils.isBlank(instanceValue)) { instanceValue = ""; } double value = resultSet.getDouble(3); @@ -376,7 +377,7 @@ public Map> getHistoryIntervalMetricData(Long monitorId, Str instances.add(label); } if (instances.isEmpty()) { - // 若未指定instance,需查询当前指标数据前1周有多少个instance + // need to confirm that how many instances of current metrics one week ago String queryInstanceSql = String.format(QUERY_INSTANCE_SQL, table); Connection connection = null; try { @@ -385,7 +386,7 @@ public Map> getHistoryIntervalMetricData(Long monitorId, Str ResultSet resultSet = statement.executeQuery(queryInstanceSql); while (resultSet.next()) { String instanceValue = resultSet.getString(1); - if (instanceValue == null || "".equals(instanceValue)) { + if (instanceValue == null || StringUtils.isBlank(instanceValue)) { instances.add("''"); } else { instances.add(instanceValue); diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineProperties.java index d364d86b4c6..631b8271a22 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/tdengine/TdEngineProperties.java @@ -17,6 +17,9 @@ package org.apache.hertzbeat.warehouse.store.history.tdengine; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; @@ -29,7 +32,12 @@ * @param password tdengine password * @param tableStrColumnDefineMaxLength auto create table's string column define max length : NCHAR(200) */ -@ConfigurationProperties(prefix = "warehouse.store.td-engine") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.TD_ENGINE) public record TdEngineProperties(@DefaultValue("false") boolean enabled, @DefaultValue("jdbc:TAOS-RS://localhost:6041/demo") String url, @DefaultValue("com.taosdata.jdbc.rs.RestfulDriver") String driverClassName, diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterDataStorage.java index cd25dd1f748..18b1c57d409 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterDataStorage.java @@ -274,9 +274,12 @@ public Map> getHistoryMetricData(Long monitorId, String app, public Map> getHistoryIntervalMetricData(Long monitorId, String app, String metrics, String metric, String label, String history) { if (!serverAvailable) { - log.error("\n\t---------------VictoriaMetrics Init Failed---------------\n" - + "\t--------------Please Config VictoriaMetrics--------------\n" - + "\t----------Can Not Use Metric History Now----------\n"); + log.error(""" + + \t---------------VictoriaMetrics Init Failed--------------- + \t--------------Please Config VictoriaMetrics-------------- + \t----------Can Not Use Metric History Now---------- + """); return Collections.emptyMap(); } long endTime = ZonedDateTime.now().toEpochSecond(); diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterProperties.java index a89fead34b7..6d02492d545 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsClusterProperties.java @@ -17,12 +17,20 @@ package org.apache.hertzbeat.warehouse.store.history.vm; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; /** * Victoriametrics configuration information */ -@ConfigurationProperties(prefix = "warehouse.store.victoria-metrics.cluster") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.VM_CLUSTER) public record VictoriaMetricsClusterProperties( VictoriaMetricsInsertProperties insert, VictoriaMetricsSelectProperties select diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsDataStorage.java index 6a687fa2982..01757f266d2 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsDataStorage.java @@ -17,7 +17,6 @@ package org.apache.hertzbeat.warehouse.store.history.vm; -import com.fasterxml.jackson.databind.JsonNode; import java.math.BigDecimal; import java.math.RoundingMode; import java.net.URI; @@ -103,13 +102,21 @@ public VictoriaMetricsDataStorage(VictoriaMetricsProperties victoriaMetricsPrope private boolean checkVictoriaMetricsDatasourceAvailable() { // check server status try { - String result = restTemplate.getForObject(victoriaMetricsProp.url() + STATUS_PATH, String.class); - - JsonNode jsonNode = JsonUtil.fromJson(result); - if (jsonNode != null && STATUS_SUCCESS.equalsIgnoreCase(jsonNode.get(STATUS).asText())) { + HttpHeaders headers = new HttpHeaders(); + if (StringUtils.hasText(victoriaMetricsProp.username()) + && StringUtils.hasText(victoriaMetricsProp.password())) { + String authStr = victoriaMetricsProp.username() + ":" + victoriaMetricsProp.password(); + String encodedAuth = new String(Base64.encodeBase64(authStr.getBytes(StandardCharsets.UTF_8)), StandardCharsets.UTF_8); + headers.add(HttpHeaders.AUTHORIZATION, BASIC + " " + encodedAuth); + } + HttpEntity httpEntity = new HttpEntity<>(headers); + ResponseEntity responseEntity = restTemplate.exchange(victoriaMetricsProp.url() + STATUS_PATH, + HttpMethod.GET, httpEntity, String.class); + if (responseEntity.getStatusCode().is2xxSuccessful()) { + log.info("check victoria metrics server status success."); return true; } - log.error("check victoria metrics server status not success: {}.", result); + log.error("check victoria metrics server status not success: {}.", responseEntity.getBody()); } catch (Exception e) { log.error("check victoria metrics server status error: {}.", e.getMessage()); } @@ -274,9 +281,12 @@ public Map> getHistoryMetricData(Long monitorId, String app, public Map> getHistoryIntervalMetricData(Long monitorId, String app, String metrics, String metric, String label, String history) { if (!serverAvailable) { - log.error("\n\t---------------VictoriaMetrics Init Failed---------------\n" - + "\t--------------Please Config VictoriaMetrics--------------\n" - + "\t----------Can Not Use Metric History Now----------\n"); + log.error(""" + + \t---------------VictoriaMetrics Init Failed--------------- + \t--------------Please Config VictoriaMetrics-------------- + \t----------Can Not Use Metric History Now---------- + """); return Collections.emptyMap(); } long endTime = ZonedDateTime.now().toEpochSecond(); diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsProperties.java index 563458511db..4b87b1cd6ff 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/history/vm/VictoriaMetricsProperties.java @@ -17,13 +17,21 @@ package org.apache.hertzbeat.warehouse.store.history.vm; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; /** - * Victoriametrics configuration information + * Victoria metrics configuration information. */ -@ConfigurationProperties(prefix = "warehouse.store.victoria-metrics") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.STORE + + SignConstants.DOT + + WarehouseConstants.HistoryName.VM) public record VictoriaMetricsProperties(@DefaultValue("false") boolean enabled, @DefaultValue("http://localhost:8428") String url, String username, diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/AbstractRealTimeDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/AbstractRealTimeDataStorage.java index 04eb33b33ad..3959f06b01c 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/AbstractRealTimeDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/AbstractRealTimeDataStorage.java @@ -26,7 +26,7 @@ @Slf4j public abstract class AbstractRealTimeDataStorage implements RealTimeDataReader, RealTimeDataWriter, DisposableBean { - protected boolean serverAvailable; + protected volatile boolean serverAvailable; /** * @return data Whether the storage is available diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryDataStorage.java index 9f28bcf782d..4d7ecba7c0a 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryDataStorage.java @@ -32,7 +32,7 @@ * Store and collect real-time data - memory */ @Component -@ConditionalOnProperty(prefix = "warehouse.store.memory", name = "enabled", havingValue = "true", matchIfMissing = true) +@ConditionalOnProperty(prefix = "warehouse.real-time.memory", name = "enabled", havingValue = "true", matchIfMissing = true) @Slf4j public class MemoryDataStorage extends AbstractRealTimeDataStorage { @@ -72,10 +72,6 @@ public void saveData(CollectRep.MetricsData metricsData) { if (metricsData.getCode() != CollectRep.Code.SUCCESS) { return; } - if (metricsData.getValuesList().isEmpty()) { - log.debug("[warehouse memory] memory flush metrics data {} is null, ignore.", metricsData.getId()); - return; - } Map metricsDataMap = monitorMetricsDataMap.computeIfAbsent(monitorId, key -> new ConcurrentHashMap<>(METRICS_SIZE)); metricsDataMap.put(metrics, metricsData); } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryProperties.java index 8e5dd7acd7a..612255f6a11 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/memory/MemoryProperties.java @@ -17,6 +17,9 @@ package org.apache.hertzbeat.warehouse.store.realtime.memory; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; @@ -25,7 +28,12 @@ * @param enabled Whether memory data storage is enabled * @param initSize Memory storage map initialization size */ -@ConfigurationProperties(prefix = "warehouse.store.memory") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.REAL_TIME + + SignConstants.DOT + + WarehouseConstants.RealTimeName.MEMORY) public record MemoryProperties(@DefaultValue("true") boolean enabled, @DefaultValue("1024") Integer initSize) { } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisDataStorage.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisDataStorage.java index b9a08953dd7..8122c882ea7 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisDataStorage.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisDataStorage.java @@ -17,19 +17,13 @@ package org.apache.hertzbeat.warehouse.store.realtime.redis; -import io.lettuce.core.RedisClient; -import io.lettuce.core.RedisURI; -import io.lettuce.core.api.StatefulRedisConnection; -import io.lettuce.core.api.async.RedisAsyncCommands; -import io.lettuce.core.api.sync.RedisCommands; -import java.time.Duration; -import java.time.temporal.ChronoUnit; import java.util.ArrayList; import java.util.List; import java.util.Map; import lombok.extern.slf4j.Slf4j; import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.warehouse.store.realtime.AbstractRealTimeDataStorage; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.RedisCommandDelegate; import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; import org.springframework.context.annotation.Primary; import org.springframework.lang.NonNull; @@ -40,35 +34,26 @@ */ @Primary @Component -@ConditionalOnProperty(prefix = "warehouse.store.redis", name = "enabled", havingValue = "true") +@ConditionalOnProperty(prefix = "warehouse.real-time.redis", name = "enabled", havingValue = "true") @Slf4j public class RedisDataStorage extends AbstractRealTimeDataStorage { - private RedisClient redisClient; - private final Integer db; - private StatefulRedisConnection connection; + private final RedisCommandDelegate redisCommandDelegate; public RedisDataStorage(RedisProperties redisProperties) { - this.serverAvailable = initRedisClient(redisProperties); - this.db = getRedisSelectDb(redisProperties); - } - - private Integer getRedisSelectDb(RedisProperties redisProperties){ - return redisProperties.db(); + final RedisCommandDelegate delegate = RedisCommandDelegate.getInstance(); + this.serverAvailable = delegate.initRedisClient(redisProperties); + this.redisCommandDelegate = delegate; } @Override public CollectRep.MetricsData getCurrentMetricsData(@NonNull Long monitorId, @NonNull String metric) { - RedisCommands commands = connection.sync(); - commands.select(db); - return commands.hget(String.valueOf(monitorId), metric); + return redisCommandDelegate.operate().hget(String.valueOf(monitorId), metric); } @Override public List getCurrentMetricsData(@NonNull Long monitorId) { - RedisCommands commands = connection.sync(); - commands.select(db); - Map metricsDataMap = commands.hgetall(String.valueOf(monitorId)); + Map metricsDataMap = redisCommandDelegate.operate().hgetAll(String.valueOf(monitorId)); return new ArrayList<>(metricsDataMap.values()); } @@ -79,51 +64,18 @@ public void saveData(CollectRep.MetricsData metricsData) { if (metricsData.getCode() != CollectRep.Code.SUCCESS || !isServerAvailable()) { return; } - if (metricsData.getValuesList().isEmpty()) { - log.info("[warehouse redis] redis flush metrics data {} - {} is null, ignore.", key, hashKey); - return; - } - RedisAsyncCommands commands = connection.async(); - commands.select(db); - commands.hset(key, hashKey, metricsData).thenAccept(response -> { + + redisCommandDelegate.operate().hset(key, hashKey, metricsData, future -> future.thenAccept(response -> { if (response) { log.debug("[warehouse] redis add new data {}:{}.", key, hashKey); } else { log.debug("[warehouse] redis replace data {}:{}.", key, hashKey); } - }); - } - - private boolean initRedisClient(RedisProperties redisProperties) { - if (redisProperties == null) { - log.error("init error, please config Warehouse redis props in application.yml"); - return false; - } - RedisProperties redisProp = redisProperties; - RedisURI.Builder uriBuilder = RedisURI.builder() - .withHost(redisProp.host()) - .withPort(redisProp.port()) - .withTimeout(Duration.of(10, ChronoUnit.SECONDS)); - if (redisProp.password() != null && !"".equals(redisProp.password())) { - uriBuilder.withPassword(redisProp.password().toCharArray()); - } - try { - redisClient = RedisClient.create(uriBuilder.build()); - connection = redisClient.connect(new MetricsDataRedisCodec()); - return true; - } catch (Exception e) { - log.error("init redis error {}", e.getMessage(), e); - } - return false; + })); } @Override - public void destroy() { - if (connection != null) { - connection.close(); - } - if (redisClient != null) { - redisClient.shutdown(); - } + public void destroy() throws Exception { + redisCommandDelegate.destroy(); } } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisProperties.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisProperties.java index 5263c178408..3497c2ee630 100644 --- a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisProperties.java +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/RedisProperties.java @@ -17,16 +17,25 @@ package org.apache.hertzbeat.warehouse.store.realtime.redis; +import org.apache.hertzbeat.common.constants.ConfigConstants; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.warehouse.constants.WarehouseConstants; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.boot.context.properties.bind.DefaultValue; /** * Redis configuration information */ -@ConfigurationProperties(prefix = "warehouse.store.redis") + +@ConfigurationProperties(prefix = ConfigConstants.FunctionModuleConstants.WAREHOUSE + + SignConstants.DOT + + WarehouseConstants.REAL_TIME + + SignConstants.DOT + + WarehouseConstants.RealTimeName.REDIS) public record RedisProperties(@DefaultValue("false") boolean enabled, - @DefaultValue("127.0.0.1") String host, - @DefaultValue("6379") Integer port, + @DefaultValue("single") String mode, + @DefaultValue("127.0.0.1:6379") String address, + String masterName, String password, @DefaultValue("0") Integer db) { } diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisClientOperation.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisClientOperation.java new file mode 100644 index 00000000000..f3091a14efa --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisClientOperation.java @@ -0,0 +1,37 @@ +/* + * 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.hertzbeat.warehouse.store.realtime.redis.client; + +import io.lettuce.core.RedisFuture; +import io.lettuce.core.codec.RedisCodec; +import java.util.Map; +import java.util.function.Consumer; +import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisProperties; + +/** + * Redis Client Operation + */ +public interface RedisClientOperation extends AutoCloseable { + RedisClientOperation connect(RedisProperties redisProperties, RedisCodec redisCodec); + + V hget(K key, K field); + + Map hgetAll(K key); + + void hset(K key, K field, V value, Consumer> redisFutureConsumer); +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisCommandDelegate.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisCommandDelegate.java new file mode 100644 index 00000000000..f2aa5983d27 --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/RedisCommandDelegate.java @@ -0,0 +1,75 @@ +/* + * 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.hertzbeat.warehouse.store.realtime.redis.client; + +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.store.realtime.redis.MetricsDataRedisCodec; +import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisProperties; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.impl.RedisClusterClientImpl; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.impl.RedisSentinelClientImpl; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.impl.RedisSimpleClientImpl; + +/** + * Redis command delegate + */ +@Slf4j +public class RedisCommandDelegate { + private static final String SINGLE_MODE = "single"; + private static final String SENTINEL_MODE = "sentinel"; + private static final String CLUSTER_MODE = "cluster"; + private static final RedisCommandDelegate INSTANCE = new RedisCommandDelegate(); + private RedisClientOperation operation; + + public static RedisCommandDelegate getInstance() { + return INSTANCE; + } + + public RedisClientOperation operate() { + return operation; + } + + public void destroy() throws Exception { + operation.close(); + } + + public boolean initRedisClient(RedisProperties redisProperties) { + if (redisProperties == null) { + log.error("init error, please config Warehouse redis props in application.yml"); + return false; + } + + try { + operation = switch (redisProperties.mode()) { + case SINGLE_MODE -> new RedisSimpleClientImpl().connect(redisProperties, new MetricsDataRedisCodec()); + case SENTINEL_MODE -> new RedisSentinelClientImpl().connect(redisProperties, new MetricsDataRedisCodec()); + case CLUSTER_MODE -> new RedisClusterClientImpl().connect(redisProperties, new MetricsDataRedisCodec()); + default -> throw new UnsupportedOperationException("Incorrect redis mode: " + redisProperties.mode()); + }; + + return true; + } catch (Exception e) { + log.error("init redis error {}", e.getMessage(), e); + } + + return false; + } + + private RedisCommandDelegate() { + } +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisClusterClientImpl.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisClusterClientImpl.java new file mode 100644 index 00000000000..350a4111a9d --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisClusterClientImpl.java @@ -0,0 +1,95 @@ +/* + * 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.hertzbeat.warehouse.store.realtime.redis.client.impl; + +import io.lettuce.core.RedisFuture; +import io.lettuce.core.RedisURI; +import io.lettuce.core.cluster.RedisClusterClient; +import io.lettuce.core.cluster.api.StatefulRedisClusterConnection; +import io.lettuce.core.codec.RedisCodec; +import java.time.Duration; +import java.time.temporal.ChronoUnit; +import java.util.HashSet; +import java.util.Map; +import java.util.Objects; +import java.util.Set; +import java.util.function.Consumer; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisProperties; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.RedisClientOperation; + +/** + * Redis Client for cluster mode + */ +public class RedisClusterClientImpl implements RedisClientOperation { + private RedisClusterClient redisClusterClient; + private StatefulRedisClusterConnection connection; + + @Override + public RedisClientOperation connect(RedisProperties redisProperties, + RedisCodec redisCodec) { + final String[] clusterAddress = redisProperties.address().split(SignConstants.COMMA); + Set clusterUri = new HashSet<>(); + for (String address : clusterAddress) { + final String[] split = address.split(SignConstants.DOUBLE_MARK); + RedisURI.Builder uriBuilder = RedisURI.builder() + .withHost(split[0]) + .withPort(Integer.parseInt(split[1])) + .withTimeout(Duration.of(10, ChronoUnit.SECONDS)); + if (StringUtils.isNotBlank(redisProperties.password())) { + uriBuilder.withPassword(redisProperties.password().toCharArray()); + } + + clusterUri.add(uriBuilder.build()); + } + + redisClusterClient = RedisClusterClient.create(clusterUri); + connection = redisClusterClient.connect(redisCodec); + return this; + } + + @Override + public CollectRep.MetricsData hget(String key, String field) { + return connection.sync().hget(key, field); + } + + @Override + public Map hgetAll(String key) { + return connection.sync().hgetall(key); + } + + @Override + public void hset(String key, String field, CollectRep.MetricsData value, Consumer> redisFutureConsumer) { + final RedisFuture redisFuture = connection.async().hset(key, field, value); + if (Objects.nonNull(redisFutureConsumer)) { + redisFutureConsumer.accept(redisFuture); + } + } + + @Override + public void close() throws Exception { + if (Objects.nonNull(connection)) { + connection.close(); + } + if (Objects.nonNull(redisClusterClient)) { + redisClusterClient.close(); + } + } +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSentinelClientImpl.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSentinelClientImpl.java new file mode 100644 index 00000000000..64f3c02ebb9 --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSentinelClientImpl.java @@ -0,0 +1,117 @@ +/* + * 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.hertzbeat.warehouse.store.realtime.redis.client.impl; + +import io.lettuce.core.RedisClient; +import io.lettuce.core.RedisFuture; +import io.lettuce.core.RedisURI; +import io.lettuce.core.api.StatefulRedisConnection; +import io.lettuce.core.codec.RedisCodec; +import io.lettuce.core.sentinel.api.StatefulRedisSentinelConnection; +import java.net.InetSocketAddress; +import java.net.SocketAddress; +import java.time.Duration; +import java.time.temporal.ChronoUnit; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.store.realtime.redis.MetricsDataRedisCodec; +import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisProperties; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.RedisClientOperation; + +/** + * Redis Client for sentinel mode + */ +public class RedisSentinelClientImpl implements RedisClientOperation { + private RedisClient sentinelRedisClient; + private StatefulRedisSentinelConnection sentinelConnection; + private RedisClient masterRedisClient; + private StatefulRedisConnection masterConnection; + + @Override + public RedisClientOperation connect(RedisProperties redisProperties, + RedisCodec redisCodec) { + final String[] address = redisProperties.address().split(SignConstants.DOUBLE_MARK); + + RedisURI.Builder uriBuilder = RedisURI.builder() + .withHost(address[0]) + .withPort(Integer.parseInt(address[1])) + .withTimeout(Duration.of(10, ChronoUnit.SECONDS)); + if (StringUtils.isNotBlank(redisProperties.password())) { + uriBuilder.withPassword(redisProperties.password().toCharArray()); + } + + sentinelRedisClient = RedisClient.create(uriBuilder.build()); + sentinelConnection = sentinelRedisClient.connectSentinel(); + final SocketAddress masterSocketAddress = sentinelConnection.sync().getMasterAddrByName(redisProperties.masterName()); + if (masterSocketAddress instanceof InetSocketAddress masterAddress) { + RedisURI.Builder masterUriBuilder = RedisURI.builder() + .withHost(masterAddress.getHostName()) + .withPort(masterAddress.getPort()) + .withTimeout(Duration.of(10, ChronoUnit.SECONDS)) + .withDatabase(redisProperties.db()); + if (StringUtils.isNotBlank(redisProperties.password())) { + masterUriBuilder.withPassword(redisProperties.password().toCharArray()); + } + + masterRedisClient = RedisClient.create(masterUriBuilder.build()); + masterConnection = masterRedisClient.connect(new MetricsDataRedisCodec()); + } else { + throw new UnsupportedOperationException("Incorrect type of SocketAddress, connect redis sentinel failed..."); + } + + return this; + } + + @Override + public CollectRep.MetricsData hget(String key, String field) { + return masterConnection.sync().hget(key, field); + } + + @Override + public Map hgetAll(String key) { + return masterConnection.sync().hgetall(key); + } + + @Override + public void hset(String key, String field, CollectRep.MetricsData value, Consumer> redisFutureConsumer) { + final RedisFuture redisFuture = masterConnection.async().hset(key, field, value); + if (Objects.nonNull(redisFutureConsumer)) { + redisFutureConsumer.accept(redisFuture); + } + } + + @Override + public void close() throws Exception { + if (Objects.nonNull(masterConnection)) { + masterConnection.close(); + } + if (Objects.nonNull(masterRedisClient)) { + masterRedisClient.close(); + } + if (Objects.nonNull(sentinelConnection)) { + sentinelConnection.close(); + } + if (Objects.nonNull(sentinelRedisClient)) { + sentinelRedisClient.close(); + } + } +} diff --git a/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSimpleClientImpl.java b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSimpleClientImpl.java new file mode 100644 index 00000000000..6b0b7760fa6 --- /dev/null +++ b/warehouse/src/main/java/org/apache/hertzbeat/warehouse/store/realtime/redis/client/impl/RedisSimpleClientImpl.java @@ -0,0 +1,90 @@ +/* + * 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.hertzbeat.warehouse.store.realtime.redis.client.impl; + +import io.lettuce.core.RedisClient; +import io.lettuce.core.RedisFuture; +import io.lettuce.core.RedisURI; +import io.lettuce.core.api.StatefulRedisConnection; +import io.lettuce.core.codec.RedisCodec; +import java.time.Duration; +import java.time.temporal.ChronoUnit; +import java.util.Map; +import java.util.Objects; +import java.util.function.Consumer; +import org.apache.commons.lang3.StringUtils; +import org.apache.hertzbeat.common.constants.SignConstants; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.store.realtime.redis.MetricsDataRedisCodec; +import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisProperties; +import org.apache.hertzbeat.warehouse.store.realtime.redis.client.RedisClientOperation; + +/** + * Redis Client + */ +public class RedisSimpleClientImpl implements RedisClientOperation { + private RedisClient redisClient; + private StatefulRedisConnection connection; + + @Override + public RedisClientOperation connect(RedisProperties redisProperties, + RedisCodec redisCodec) { + final String[] address = redisProperties.address().split(SignConstants.DOUBLE_MARK); + + RedisURI.Builder uriBuilder = RedisURI.builder() + .withHost(address[0]) + .withPort(Integer.parseInt(address[1])) + .withTimeout(Duration.of(10, ChronoUnit.SECONDS)) + .withDatabase(redisProperties.db()); + if (StringUtils.isNotBlank(redisProperties.password())) { + uriBuilder.withPassword(redisProperties.password().toCharArray()); + } + + redisClient = RedisClient.create(uriBuilder.build()); + connection = redisClient.connect(new MetricsDataRedisCodec()); + return this; + } + + @Override + public CollectRep.MetricsData hget(String key, String field) { + return connection.sync().hget(key, field); + } + + @Override + public Map hgetAll(String key) { + return connection.sync().hgetall(key); + } + + @Override + public void hset(String key, String field, CollectRep.MetricsData value, Consumer> redisFutureConsumer) { + final RedisFuture redisFuture = connection.async().hset(key, field, value); + if (Objects.nonNull(redisFutureConsumer)) { + redisFutureConsumer.accept(redisFuture); + } + } + + @Override + public void close() throws Exception { + if (Objects.nonNull(connection)) { + connection.close(); + } + if (Objects.nonNull(redisClient)) { + redisClient.close(); + } + } +} diff --git a/warehouse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports b/warehouse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports index 97c492ff37f..e9d621619dd 100644 --- a/warehouse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports +++ b/warehouse/src/main/resources/META-INF/spring/org.springframework.boot.autoconfigure.AutoConfiguration.imports @@ -13,4 +13,4 @@ # See the License for the specific language governing permissions and # limitations under the License. -org.apache.hertzbeat.warehouse.WarehouseAutoConfiguration \ No newline at end of file +org.apache.hertzbeat.warehouse.config.WarehouseAutoConfiguration diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/controller/MetricsDataControllerTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/controller/MetricsDataControllerTest.java index 995986b5e54..28e06555106 100644 --- a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/controller/MetricsDataControllerTest.java +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/controller/MetricsDataControllerTest.java @@ -25,16 +25,11 @@ import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.jsonPath; import static org.springframework.test.web.servlet.result.MockMvcResultMatchers.status; import jakarta.servlet.ServletException; -import java.util.ArrayList; -import java.util.HashMap; -import java.util.List; -import java.util.Map; -import java.util.Optional; import org.apache.hertzbeat.common.constants.CommonConstants; -import org.apache.hertzbeat.common.entity.dto.Value; -import org.apache.hertzbeat.common.entity.message.CollectRep; -import org.apache.hertzbeat.warehouse.store.history.HistoryDataReader; -import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.apache.hertzbeat.common.entity.dto.Field; +import org.apache.hertzbeat.common.entity.dto.MetricsData; +import org.apache.hertzbeat.common.entity.dto.MetricsHistoryData; +import org.apache.hertzbeat.warehouse.service.MetricsDataService; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; @@ -59,27 +54,24 @@ class MetricsDataControllerTest { MetricsDataController metricsDataController; @Mock - HistoryDataReader historyDataReader; - - @Mock - RealTimeDataReader realTimeDataReader; + MetricsDataService metricsDataService; @BeforeEach void setUp() { - metricsDataController = new MetricsDataController(realTimeDataReader, Optional.of(historyDataReader)); + metricsDataController = new MetricsDataController(metricsDataService); this.mockMvc = MockMvcBuilders.standaloneSetup(metricsDataController).build(); } @Test void getWarehouseStorageServerStatus() throws Exception { - when(historyDataReader.isServerAvailable()).thenReturn(true); + when(metricsDataService.getWarehouseStorageServerStatus()).thenReturn(true); this.mockMvc.perform(MockMvcRequestBuilders.get("/api/warehouse/storage/status")) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) .andExpect(jsonPath("$.data").isEmpty()) .andExpect(jsonPath("$.msg").isEmpty()) .andReturn(); - when(historyDataReader.isServerAvailable()).thenReturn(false); + when(metricsDataService.getWarehouseStorageServerStatus()).thenReturn(false); this.mockMvc.perform(MockMvcRequestBuilders.get("/api/warehouse/storage/status")) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) @@ -95,8 +87,7 @@ void getMetricsData() throws Exception { final long time = System.currentTimeMillis(); final String getUrl = "/api/monitor/" + monitorId + "/metrics/" + metric; - when(realTimeDataReader.getCurrentMetricsData(eq(monitorId), eq(metric))).thenReturn(null); - when(realTimeDataReader.isServerAvailable()).thenReturn(true); + when(metricsDataService.getMetricsData(eq(monitorId), eq(metric))).thenReturn(null); this.mockMvc.perform(MockMvcRequestBuilders.get(getUrl)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) @@ -104,14 +95,14 @@ void getMetricsData() throws Exception { .andExpect(jsonPath("$.data").isEmpty()) .andReturn(); - CollectRep.MetricsData metricsData = CollectRep.MetricsData.newBuilder() - .setId(monitorId) - .setApp(app) - .setMetrics(metric) - .setTime(time) + MetricsData metricsData = MetricsData.builder() + .id(monitorId) + .app(app) + .metrics(metric) + .time(time) .build(); - when(realTimeDataReader.getCurrentMetricsData(eq(monitorId), eq(metric))).thenReturn(metricsData); - when(realTimeDataReader.isServerAvailable()).thenReturn(true); + + when(metricsDataService.getMetricsData(eq(monitorId), eq(metric))).thenReturn(metricsData); this.mockMvc.perform(MockMvcRequestBuilders.get(getUrl)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) @@ -126,25 +117,24 @@ void getMetricsData() throws Exception { @Test void getMetricHistoryData() throws Exception { final long monitorId = 343254354; + final String app = "linux"; final String metrics = "cpu"; final String metric = "usage"; - final String app = "testapp"; final String metricFull = "linux.cpu.usage"; final String metricFullFail = "linux.usage"; - final String instance = "disk2"; + final String label = "disk2"; final String history = "6h"; - final String interval = "false"; + final Boolean interval = false; final String getUrl = "/api/monitor/" + monitorId + "/metric/" + metricFull; final String getUrlFail = "/api/monitor/" + monitorId + "/metric/" + metricFullFail; MultiValueMap params = new LinkedMultiValueMap<>(); params.add("monitorId", String.valueOf(monitorId)); - params.add("metricFull", metricFull); - params.add("instance", instance); + params.add("label", label); params.add("history", history); - params.add("interval", interval); + params.add("interval", String.valueOf(interval)); - when(historyDataReader.isServerAvailable()).thenReturn(false); + when(metricsDataService.getWarehouseStorageServerStatus()).thenReturn(false); this.mockMvc.perform(MockMvcRequestBuilders.get(getUrl).params(params)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) @@ -152,23 +142,22 @@ void getMetricHistoryData() throws Exception { .andExpect(jsonPath("$.data").isEmpty()) .andReturn(); - when(historyDataReader.isServerAvailable()).thenReturn(true); - ServletException exception = assertThrows(ServletException.class, () -> { - this.mockMvc.perform(MockMvcRequestBuilders.get(getUrlFail).params(params)) - .andExpect(status().isOk()) - .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) - .andExpect(jsonPath("$.data").isEmpty()) - .andReturn(); - }); + when(metricsDataService.getWarehouseStorageServerStatus()).thenReturn(true); + ServletException exception = assertThrows(ServletException.class, () -> this.mockMvc.perform(MockMvcRequestBuilders.get(getUrlFail).params(params)) + .andExpect(status().isOk()) + .andExpect(jsonPath("$.code").value((int) CommonConstants.FAIL_CODE)) + .andExpect(jsonPath("$.data").isEmpty()) + .andReturn()); assertTrue(exception.getMessage().contains("IllegalArgumentException")); - final Map> instanceValuesMap = new HashMap<>(); - List list = new ArrayList<>(); - instanceValuesMap.put(metric, list); - when(historyDataReader.isServerAvailable()).thenReturn(true); - lenient().when(historyDataReader.getHistoryMetricData(eq(monitorId), eq(app), eq(metrics), eq(metric), - eq(instance), eq(history))) - .thenReturn(instanceValuesMap); + MetricsHistoryData metricsHistoryData = MetricsHistoryData.builder() + .id(monitorId) + .metrics(metrics) + .field(Field.builder().name(metric).type(CommonConstants.TYPE_NUMBER).build()) + .build(); + when(metricsDataService.getWarehouseStorageServerStatus()).thenReturn(true); + lenient().when(metricsDataService.getMetricHistoryData(eq(monitorId), eq(app), eq(metrics), eq(metric), eq(label), eq(history), eq(interval))) + .thenReturn(metricsHistoryData); this.mockMvc.perform(MockMvcRequestBuilders.get(getUrl).params(params)) .andExpect(status().isOk()) .andExpect(jsonPath("$.code").value((int) CommonConstants.SUCCESS_CODE)) diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/MetricsDataServiceTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/MetricsDataServiceTest.java new file mode 100644 index 00000000000..8e96e72cc8f --- /dev/null +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/MetricsDataServiceTest.java @@ -0,0 +1,118 @@ +/* + * 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.hertzbeat.warehouse.service; + +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.eq; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.ArrayList; +import java.util.HashMap; +import java.util.Optional; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.common.support.exception.CommonException; +import org.apache.hertzbeat.warehouse.service.impl.MetricsDataServiceImpl; +import org.apache.hertzbeat.warehouse.store.history.HistoryDataReader; +import org.apache.hertzbeat.warehouse.store.realtime.RealTimeDataReader; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.junit.jupiter.MockitoExtension; + + +/** + * Test case for {@link MetricsDataService} + */ + +@ExtendWith(MockitoExtension.class) +public class MetricsDataServiceTest { + + @InjectMocks + private MetricsDataServiceImpl metricsDataService; + + @Mock + private RealTimeDataReader realTimeDataReader; + + @Mock + private HistoryDataReader historyDataReader; + + @BeforeEach + public void setUp() { + metricsDataService = new MetricsDataServiceImpl(realTimeDataReader, Optional.of(historyDataReader)); + } + + @Test + public void testGetWarehouseStorageServerStatus() { + when(historyDataReader.isServerAvailable()).thenReturn(false); + assertFalse(metricsDataService.getWarehouseStorageServerStatus()); + + when(historyDataReader.isServerAvailable()).thenReturn(true); + assertTrue(metricsDataService.getWarehouseStorageServerStatus()); + } + + @Test + public void testGetMetricsData() { + Long monitorId = 1L; + String metrics = "disk"; + + when(realTimeDataReader.isServerAvailable()).thenReturn(false); + assertThrows(CommonException.class, () -> metricsDataService.getMetricsData(monitorId, metrics), "real time store not available"); + + + when(realTimeDataReader.isServerAvailable()).thenReturn(true); + when(realTimeDataReader.getCurrentMetricsData(eq(monitorId), eq(metrics))).thenReturn(null); + assertNull(metricsDataService.getMetricsData(monitorId, metrics)); + + CollectRep.MetricsData storageData = CollectRep.MetricsData.newBuilder() + .setId(monitorId) + .setMetrics(metrics) + .addAllFields(new ArrayList<>()) + .addAllValues(new ArrayList<>()) + .build(); + when(realTimeDataReader.isServerAvailable()).thenReturn(true); + when(realTimeDataReader.getCurrentMetricsData(eq(monitorId), eq(metrics))).thenReturn(storageData); + assertNotNull(metricsDataService.getMetricsData(monitorId, metrics)); + } + + @Test + public void testGetMetricHistoryData() { + Long monitorId = 1L; + String app = "linux"; + String metrics = "disk"; + String metric = "used"; + String label = "label"; + String history = "6h"; + Boolean intervalFalse = false; + Boolean intervalTrue = true; + + when(historyDataReader.getHistoryMetricData(eq(monitorId), eq(app), eq(metrics), eq(metric), eq(label), eq(history))).thenReturn(new HashMap<>()); + assertNotNull(metricsDataService.getMetricHistoryData(monitorId, app, metrics, metric, label, history, intervalFalse)); + verify(historyDataReader, times(1)).getHistoryMetricData(eq(monitorId), eq(app), eq(metrics), eq(metric), eq(label), eq(history)); + + when(historyDataReader.getHistoryIntervalMetricData(eq(monitorId), eq(app), eq(metrics), eq(metric), eq(label), eq(history))).thenReturn(new HashMap<>()); + assertNotNull(metricsDataService.getMetricHistoryData(monitorId, app, metrics, metric, label, history, intervalTrue)); + verify(historyDataReader, times(1)).getHistoryIntervalMetricData(eq(monitorId), eq(app), eq(metrics), eq(metric), eq(label), eq(history)); + } +} diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceTest.java new file mode 100644 index 00000000000..bf7e4ddd059 --- /dev/null +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/service/WarehouseServiceTest.java @@ -0,0 +1,85 @@ +/* + * 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.hertzbeat.warehouse.service; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.ArgumentMatchers.anyLong; +import static org.mockito.Mockito.never; +import static org.mockito.Mockito.verify; +import static org.mockito.Mockito.when; +import java.util.Collections; +import java.util.List; +import org.apache.hertzbeat.common.entity.message.CollectRep; +import org.apache.hertzbeat.warehouse.service.impl.WarehouseServiceImpl; +import org.apache.hertzbeat.warehouse.store.realtime.AbstractRealTimeDataStorage; +import org.junit.jupiter.api.BeforeEach; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ExtendWith; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; +import org.springframework.test.context.junit.jupiter.SpringExtension; + +/** + * test case for {@link WarehouseServiceImpl} + */ + +@ExtendWith(SpringExtension.class) +class WarehouseServiceTest { + + @Mock + private AbstractRealTimeDataStorage realTimeDataStorage; + + @InjectMocks + private WarehouseServiceImpl warehouseService; + + @BeforeEach + void setUp() { + + MockitoAnnotations.openMocks(this); + } + + @Test + void testQueryMonitorMetricsData() { + + Long monitorId = 1L; + List expectedData = Collections.emptyList(); + + when(realTimeDataStorage.isServerAvailable()).thenReturn(true); + when(realTimeDataStorage.getCurrentMetricsData(monitorId)).thenReturn(expectedData); + + List result = warehouseService.queryMonitorMetricsData(monitorId); + + assertEquals(expectedData, result); + verify(realTimeDataStorage, never()).isServerAvailable(); + } + + @Test + void testQueryMonitorMetricsDataNotAvailable() { + + Long monitorId = 1L; + + when(realTimeDataStorage.isServerAvailable()).thenReturn(false); + + List result = warehouseService.queryMonitorMetricsData(monitorId); + + assertTrue(result.isEmpty()); + verify(realTimeDataStorage, never()).getCurrentMetricsData(anyLong()); + } +} diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MemoryDataStorageTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MemoryDataStorageTest.java index da0e1f4dfc1..c7af3b019d7 100644 --- a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MemoryDataStorageTest.java +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MemoryDataStorageTest.java @@ -17,24 +17,106 @@ package org.apache.hertzbeat.warehouse.store; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNull; +import static org.junit.jupiter.api.Assertions.assertTrue; +import static org.mockito.Mockito.mock; +import static org.mockito.Mockito.when; +import java.util.List; +import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.warehouse.store.realtime.memory.MemoryDataStorage; +import org.apache.hertzbeat.warehouse.store.realtime.memory.MemoryProperties; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.InjectMocks; +import org.mockito.Mock; +import org.mockito.MockitoAnnotations; /** * Test case for {@link MemoryDataStorage} */ + class MemoryDataStorageTest { + @Mock + private MemoryProperties memoryProperties; + + @InjectMocks + private MemoryDataStorage memoryDataStorage; + @BeforeEach void setUp() { + + MockitoAnnotations.openMocks(this); + + when(memoryProperties.initSize()).thenReturn(null); + memoryDataStorage = new MemoryDataStorage(memoryProperties); + } + + @Test + void testGetCurrentMetricsDataByMetric() { + + Long monitorId = 1L; + String metric = "cpuUsage"; + CollectRep.MetricsData metricsData = mock(CollectRep.MetricsData.class); + + memoryDataStorage.saveData(metricsData); + + CollectRep.MetricsData result = memoryDataStorage.getCurrentMetricsData(monitorId, metric); + + assertNull(result); + } + + @Test + void testGetCurrentMetricsData() { + + Long monitorId = 1L; + CollectRep.MetricsData metricsData1 = mock(CollectRep.MetricsData.class); + CollectRep.MetricsData metricsData2 = mock(CollectRep.MetricsData.class); + + when(metricsData1.getId()).thenReturn(monitorId); + when(metricsData1.getMetrics()).thenReturn("cpuUsage"); + when(metricsData1.getCode()).thenReturn(CollectRep.Code.SUCCESS); + + when(metricsData2.getId()).thenReturn(monitorId); + when(metricsData2.getMetrics()).thenReturn("memoryUsage"); + when(metricsData2.getCode()).thenReturn(CollectRep.Code.SUCCESS); + + memoryDataStorage.saveData(metricsData1); + memoryDataStorage.saveData(metricsData2); + + List result = memoryDataStorage.getCurrentMetricsData(monitorId); + + assertEquals(2, result.size()); + assertTrue(result.contains(metricsData1)); + assertTrue(result.contains(metricsData2)); } @Test - void getCurrentMetricsData() { + void testSaveDataFailure() { + + CollectRep.MetricsData metricsData = mock(CollectRep.MetricsData.class); + when(metricsData.getCode()).thenReturn(CollectRep.Code.FAIL); + + memoryDataStorage.saveData(metricsData); + + List result = memoryDataStorage.getCurrentMetricsData(metricsData.getId()); + assertTrue(result.isEmpty()); } @Test - void destroy() { + void testDestroy() { + + CollectRep.MetricsData metricsData = mock(CollectRep.MetricsData.class); + when(metricsData.getId()).thenReturn(1L); + when(metricsData.getMetrics()).thenReturn("cpuUsage"); + when(metricsData.getCode()).thenReturn(CollectRep.Code.SUCCESS); + + memoryDataStorage.saveData(metricsData); + memoryDataStorage.destroy(); + + List result = memoryDataStorage.getCurrentMetricsData(1L); + assertTrue(result.isEmpty()); } + } diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MetricsDataRedisCodecTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MetricsDataRedisCodecTest.java index b42fe9dff68..8e09600f40c 100644 --- a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MetricsDataRedisCodecTest.java +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/MetricsDataRedisCodecTest.java @@ -17,32 +17,85 @@ package org.apache.hertzbeat.warehouse.store; +import static org.junit.jupiter.api.Assertions.assertArrayEquals; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.fail; +import java.nio.ByteBuffer; +import java.nio.charset.StandardCharsets; +import lombok.extern.slf4j.Slf4j; +import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.warehouse.store.realtime.redis.MetricsDataRedisCodec; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.Mockito; /** * Test case for {@link MetricsDataRedisCodec} */ + +@Slf4j class MetricsDataRedisCodecTest { + private MetricsDataRedisCodec codec; + @BeforeEach void setUp() { + + codec = new MetricsDataRedisCodec(); } @Test - void decodeKey() { + void testEncodeKey() { + + String key = "testKey"; + ByteBuffer encodedKey = codec.encodeKey(key); + String decodedKey = StandardCharsets.UTF_8.decode(encodedKey).toString(); + + assertEquals(key, decodedKey); } @Test - void decodeValue() { + void testDecodeKey() { + + String key = "testKey"; + ByteBuffer buffer = ByteBuffer.wrap(key.getBytes(StandardCharsets.UTF_8)); + String decodedKey = codec.decodeKey(buffer); + + assertEquals(key, decodedKey); } @Test - void encodeKey() { + void testEncodeValue() { + + CollectRep.MetricsData metricsData = Mockito.mock(CollectRep.MetricsData.class); + byte[] bytes = new byte[]{1, 2, 3}; + Mockito.when(metricsData.toByteArray()).thenReturn(bytes); + + ByteBuffer encodedValue = codec.encodeValue(metricsData); + assertArrayEquals(bytes, encodedValue.array()); } @Test - void encodeValue() { + void testDecodeValue() { + + CollectRep.MetricsData metricsData = Mockito.mock(CollectRep.MetricsData.class); + byte[] bytes = new byte[]{1, 2, 3}; + + ByteBuffer buffer = ByteBuffer.wrap(bytes); + + try { + Mockito.mockStatic(CollectRep.MetricsData.class); + Mockito.when(CollectRep.MetricsData.parseFrom(buffer)).thenReturn(metricsData); + + CollectRep.MetricsData decodedValue = codec.decodeValue(buffer); + + assertEquals(metricsData, decodedValue); + } catch (Exception e) { + log.error(e.getMessage()); + fail("Exception thrown during decodeValue test"); + } finally { + Mockito.clearAllCaches(); + } } + } diff --git a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/RedisDataStorageTest.java b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/RedisDataStorageTest.java index 163a26ccd4d..1042d7e6a42 100644 --- a/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/RedisDataStorageTest.java +++ b/warehouse/src/test/java/org/apache/hertzbeat/warehouse/store/RedisDataStorageTest.java @@ -17,24 +17,69 @@ package org.apache.hertzbeat.warehouse.store; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertNotNull; +import static org.mockito.Mockito.times; +import static org.mockito.Mockito.verify; +import com.google.common.collect.Lists; +import java.util.List; +import org.apache.hertzbeat.common.entity.message.CollectRep; import org.apache.hertzbeat.warehouse.store.realtime.redis.RedisDataStorage; import org.junit.jupiter.api.BeforeEach; import org.junit.jupiter.api.Test; +import org.mockito.Mock; +import org.mockito.Mockito; +import org.mockito.MockitoAnnotations; /** * Test case for {@link RedisDataStorage} */ class RedisDataStorageTest { + @Mock + private RedisDataStorage redisDataStorage; @BeforeEach void setUp() { + MockitoAnnotations.openMocks(this); } @Test - void getCurrentMetricsData() { + void testGetCurrentMetricsData() { + Long monitorId = 1L; + String metric = "testMetric"; + CollectRep.MetricsData expectedMetricsData = CollectRep.MetricsData.newBuilder().setMetrics(metric).setId(monitorId).build(); + Mockito.doReturn(expectedMetricsData).when(redisDataStorage).getCurrentMetricsData(monitorId, metric); + + CollectRep.MetricsData actualMetricsData = redisDataStorage.getCurrentMetricsData(monitorId, metric); + + assertNotNull(actualMetricsData); + assertEquals(expectedMetricsData, actualMetricsData); + + verify(redisDataStorage, times(1)).getCurrentMetricsData(monitorId, metric); + } + + @Test + void testGetCurrentMetricsDataByMonitorId() { + Long monitorId = 1L; + String metric = "testMetric"; + CollectRep.MetricsData expectedMetricsData = CollectRep.MetricsData.newBuilder().setMetrics(metric).setId(monitorId).build(); + Mockito.doReturn(Lists.newArrayList(expectedMetricsData)).when(redisDataStorage).getCurrentMetricsData(monitorId); + + List actualMetricsData = redisDataStorage.getCurrentMetricsData(monitorId); + + assertNotNull(actualMetricsData); + assertEquals(expectedMetricsData, actualMetricsData.get(0)); + + verify(redisDataStorage, times(1)).getCurrentMetricsData(monitorId); } @Test - void destroy() { + void testSaveData() { + long monitorId = 1L; + String metric = "testMetric"; + CollectRep.MetricsData expectedMetricsData = CollectRep.MetricsData.newBuilder().setMetrics(metric).setId(monitorId).build(); + redisDataStorage.saveData(expectedMetricsData); + + verify(redisDataStorage, times(1)).saveData(expectedMetricsData); } } diff --git a/web-app/README.md b/web-app/README.md index 8a0e7b0a75b..a1f66311f38 100644 --- a/web-app/README.md +++ b/web-app/README.md @@ -11,21 +11,21 @@ 2. Install yarn if not existed `npm install -g yarn` 3. Execute `yarn install` or `yarn install --registry=https://registry.npmmirror.com` in `web-app` 4. Install angular-cli : `yarn global add @angular/cli@15` or `yarn global add @angular/cli@15 --registry=https://registry.npmmirror.com` -5. Start After Backend Server Available : `ng serve --open` +5. Start After Backend Server Available : `yarn start` ### Build HertzBeat Install Package 1. Execute command in web-app -```ng build --configuration production``` + ```ng build --configuration production``` 2. Execute command in root -```mvn clean install``` + ```mvn clean install``` -The HertzBeat install package will at `manager/target/hertzbeat-{version}.tar.gz` + The HertzBeat install package will at `manager/target/hertzbeat-{version}.tar.gz` 3. Execute command in collector -```mvn clean package -Pcluster``` + ```mvn clean package -Pcluster``` diff --git a/web-app/package.json b/web-app/package.json index 8df6a7640ae..a08f9148ecf 100644 --- a/web-app/package.json +++ b/web-app/package.json @@ -56,6 +56,7 @@ "@delon/mock": "17.3.1", "@delon/theme": "17.3.1", "@delon/util": "17.3.1", + "@kerwin612/ngx-query-builder": "0.6.4", "ajv": "8.12.0", "ajv-formats": "2.1.1", "angular-tag-cloud-module": "17.0.1", @@ -88,9 +89,9 @@ "@types/node": "20.12.11", "@typescript-eslint/eslint-plugin": "7.8.0", "@typescript-eslint/parser": "7.8.0", - "eslint": "8.51.0", + "eslint": "8.56.0", "eslint-config-prettier": "8.6.0", - "eslint-plugin-deprecation": "1.3.3", + "eslint-plugin-deprecation": "^3.0.0", "eslint-plugin-import": "2.26.0", "eslint-plugin-jsdoc": "48.2.5", "eslint-plugin-prefer-arrow": "1.2.3", diff --git a/web-app/src/app/app.component.ts b/web-app/src/app/app.component.ts index cb1d008b9db..4f75cfae024 100644 --- a/web-app/src/app/app.component.ts +++ b/web-app/src/app/app.component.ts @@ -6,6 +6,8 @@ import { environment } from '@env/environment'; import { NzModalService } from 'ng-zorro-antd/modal'; import { VERSION as VERSION_ZORRO } from 'ng-zorro-antd/version'; +import { ThemeService } from './service/theme.service'; + @Component({ selector: 'app-root', template: ` ` @@ -17,6 +19,7 @@ export class AppComponent implements OnInit { private router: Router, private titleSrv: TitleService, private modalSrv: NzModalService, + private themeService: ThemeService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService ) { renderer.setAttribute(el.nativeElement, 'ng-alain-version', VERSION_ALAIN.full); @@ -46,5 +49,10 @@ export class AppComponent implements OnInit { this.modalSrv.closeAll(); } }); + // set theme + const storedTheme = localStorage.getItem('theme'); + if (storedTheme) { + this.themeService.changeTheme(storedTheme); + } } } diff --git a/web-app/src/app/core/interceptor/default.interceptor.ts b/web-app/src/app/core/interceptor/default.interceptor.ts index cc37c6cee77..ecf42b14cd5 100644 --- a/web-app/src/app/core/interceptor/default.interceptor.ts +++ b/web-app/src/app/core/interceptor/default.interceptor.ts @@ -38,7 +38,7 @@ const CODE_MESSAGE: { [key: number]: string } = { @Injectable() export class DefaultInterceptor implements HttpInterceptor { private notified = false; - // 是否正在刷新TOKEN过程 + // Whether token is refreshing private refreshToking = false; private refreshToken$: BehaviorSubject = new BehaviorSubject(null); @@ -70,7 +70,7 @@ export class DefaultInterceptor implements HttpInterceptor { } /** - * 刷新 Token 请求 + * refresh Token request */ private refreshTokenRequest(): Observable> { const refreshToken = this.storageSvc.getRefreshToken(); @@ -83,12 +83,13 @@ export class DefaultInterceptor implements HttpInterceptor { // #region 刷新Token方式一:使用 401 重新刷新 Token private tryRefreshToken(ev: HttpResponseBase, req: HttpRequest, next: HttpHandler): Observable { - // 1、若请求为刷新Token请求,表示来自刷新Token可以直接跳转登录页 + // 1, redirect to login page if this request is used for refreshing token if ([`/account/auth/refresh`].some(url => req.url.includes(url))) { this.toLogin(); return throwError(ev); } - // 2、如果 `refreshToking` 为 `true` 表示已经在请求刷新 Token 中,后续所有请求转入等待状态,直至结果返回后再重新发起请求 + // 2, if `refreshToking` is true, means that the refreshing token request is in progress + // All requests will be suspended and wait for the refreshing token request to complete if (this.refreshToking) { return this.refreshToken$.pipe( filter(v => !!v), @@ -96,12 +97,12 @@ export class DefaultInterceptor implements HttpInterceptor { switchMap(() => next.handle(this.reAttachToken(req))) ); } - // 3、尝试调用刷新 Token + // 3、try refreshing Token this.refreshToking = true; this.refreshToken$.next(null); return this.refreshTokenRequest().pipe( switchMap(res => { - // 判断刷新TOKEN是否正确 + // Check whether the TOKEN is correct this.refreshToking = false; if (res.code === 0 && res.data != undefined) { let token = res.data.token; @@ -109,9 +110,8 @@ export class DefaultInterceptor implements HttpInterceptor { if (token != undefined) { this.storageSvc.storageAuthorizationToken(token); this.storageSvc.storageRefreshToken(refreshToken); - // 通知后续请求继续执行 + // notifies subsequent requests to continue this.refreshToken$.next(token); - // 重新发起请求 return next.handle(this.reAttachToken(req)); } else { console.warn(`flush new token failed. ${res.msg}`); @@ -123,7 +123,7 @@ export class DefaultInterceptor implements HttpInterceptor { } }), catchError(err => { - // token 刷新失败 + // refreshing token is failed, redirect to login page console.warn(`flush new token failed. ${err.msg}`); this.refreshToking = false; this.toLogin(); @@ -176,7 +176,7 @@ export class DefaultInterceptor implements HttpInterceptor { } }), catchError((err: HttpErrorResponse) => { - // 处理失败响应,处理token过期自动刷新 + // handle failed response and token expired switch (err.status) { case 401: return this.tryRefreshToken(err, newReq, next); diff --git a/web-app/src/app/layout/basic/widgets/notify.component.ts b/web-app/src/app/layout/basic/widgets/notify.component.ts index f9357df3142..ed1feced5c5 100644 --- a/web-app/src/app/layout/basic/widgets/notify.component.ts +++ b/web-app/src/app/layout/basic/widgets/notify.component.ts @@ -58,7 +58,7 @@ import { AlertService } from '../../../service/alert.service'; - {{ item.title }} + {{ item.title }} @if (item.extra) {
{{ item.extra }} @@ -164,6 +164,7 @@ export class HeaderNotifyComponent implements OnInit { alerts.forEach(alert => { let item = { id: alert.id, + monitorId: alert.tags?.monitorId, avatar: '/assets/img/notification.svg', title: `${alert.tags?.monitorName}--${this.i18nSvc.fanyi(`alert.priority.${alert.priority}`)}`, datetime: new Date(alert.lastAlarmTime).toLocaleString(), @@ -244,4 +245,9 @@ export class HeaderNotifyComponent implements OnInit { this.popoverVisible = false; this.router.navigateByUrl(`/alert/center`); } + + gotoDetail(monitorId: number): void { + this.popoverVisible = false; + this.router.navigateByUrl(`/monitors/${monitorId}`); + } } diff --git a/web-app/src/app/layout/basic/widgets/search.component.ts b/web-app/src/app/layout/basic/widgets/search.component.ts index 0e72cdcb2b9..a1b7c2a9f2f 100644 --- a/web-app/src/app/layout/basic/widgets/search.component.ts +++ b/web-app/src/app/layout/basic/widgets/search.component.ts @@ -94,7 +94,7 @@ export class HeaderSearchComponent implements AfterViewInit, OnDestroy { }) ) .subscribe(value => { - // 远程加载搜索数据 + // Remote loading of search data let searchMonitors$ = this.monitorSvc.searchMonitors(undefined, undefined, value, 9, 0, 10).subscribe( message => { this.loading = false; diff --git a/web-app/src/app/layout/passport/passport.component.ts b/web-app/src/app/layout/passport/passport.component.ts index 86638d33774..4a0c6428f2c 100644 --- a/web-app/src/app/layout/passport/passport.component.ts +++ b/web-app/src/app/layout/passport/passport.component.ts @@ -12,12 +12,6 @@ import { CONSTANTS } from '../../shared/constants'; }) export class LayoutPassportComponent implements OnInit { version = CONSTANTS.VERSION; - links = [ - { - title: this.i18nSvc.fanyi('app.passport.welcome'), - href: 'https://console.tancloud.cn' - } - ]; currentYear = new Date().getFullYear(); diff --git a/web-app/src/app/pojo/Alert.ts b/web-app/src/app/pojo/Alert.ts index e9ae0cc32f2..b342ce8e79f 100644 --- a/web-app/src/app/pojo/Alert.ts +++ b/web-app/src/app/pojo/Alert.ts @@ -22,9 +22,9 @@ export class Alert { target!: string; monitorId!: number; monitorName!: string; - // 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 + // alert level -- 0:high-emergency-red 1:medium-critical-orange 2:low-warning-yellow priority: number = 2; - // 告警状态: 0-正常告警(待处理) 1-阈值触发但未达到告警次数 2-恢复告警 3-已处理 + // alert status-- 0-to be processed 1-not reached the threshold 2-recover 3-processed status!: number; content!: string; // alarm times diff --git a/web-app/src/app/pojo/AlertDefine.ts b/web-app/src/app/pojo/AlertDefine.ts index 2dea7aa8e82..e86ff19b773 100644 --- a/web-app/src/app/pojo/AlertDefine.ts +++ b/web-app/src/app/pojo/AlertDefine.ts @@ -27,7 +27,7 @@ export class AlertDefine { field!: string; preset: boolean = true; expr!: string; - // 告警级别 0:高-emergency-紧急告警-红色 1:中-critical-严重告警-橙色 2:低-warning-警告告警-黄色 + // alert level -- 0:high-emergency-red 1:medium-critical-orange 2:low-warning-yellow priority: number = 2; times: number = 3; tags!: TagItem[]; diff --git a/web-app/src/app/pojo/AlibabaSmsConfig.ts b/web-app/src/app/pojo/AlibabaSmsConfig.ts new file mode 100644 index 00000000000..4f072c57180 --- /dev/null +++ b/web-app/src/app/pojo/AlibabaSmsConfig.ts @@ -0,0 +1,26 @@ +/* + * 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. + */ + +export class AlibabaSmsConfig { + secretId!: string; + secretKey!: string; + signName!: string; + appId!: string; + templateId!: string; +} diff --git a/web-app/src/app/pojo/BulletinDefine.ts b/web-app/src/app/pojo/BulletinDefine.ts new file mode 100644 index 00000000000..0c414957775 --- /dev/null +++ b/web-app/src/app/pojo/BulletinDefine.ts @@ -0,0 +1,28 @@ +/* + * 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. + */ + +import { Fields } from './Fields'; + +export class BulletinDefine { + id!: number; + name!: string; + monitorIds!: number[]; + app!: string; + fields: Fields = {}; +} diff --git a/web-app/src/app/pojo/EmailNoticeSender.ts b/web-app/src/app/pojo/EmailNoticeSender.ts index 8d88df03631..9d4ffea8197 100644 --- a/web-app/src/app/pojo/EmailNoticeSender.ts +++ b/web-app/src/app/pojo/EmailNoticeSender.ts @@ -24,6 +24,7 @@ export class EmailNoticeSender { emailUsername!: string; emailPassword!: string; emailSsl: boolean = true; + emailStarttls: boolean = false; enable!: boolean; creator!: string; modifier!: string; diff --git a/web-app/src/app/pojo/Fields.ts b/web-app/src/app/pojo/Fields.ts new file mode 100644 index 00000000000..19c5160c324 --- /dev/null +++ b/web-app/src/app/pojo/Fields.ts @@ -0,0 +1,22 @@ +/* + * 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. + */ + +export interface Fields { + [key: string]: string[]; +} diff --git a/web-app/src/app/pojo/NoticeReceiver.ts b/web-app/src/app/pojo/NoticeReceiver.ts index 26c7bfadad1..5c7a8d38ff2 100644 --- a/web-app/src/app/pojo/NoticeReceiver.ts +++ b/web-app/src/app/pojo/NoticeReceiver.ts @@ -20,8 +20,8 @@ export class NoticeReceiver { id!: number; name!: string; - // 通知信息方式: 0-手机短信 1-邮箱 2-webhook 3-微信公众号 4-企业微信机器人 5-钉钉机器人 6-飞书机器人 - // 7-Telegram机器人 8-SlackWebHook 9-Discord机器人 10-企业微信应用消息 11-华为云SMN 12-Server酱 13-Gotify + // notification mode: 0-sms 1-email 2-webhook 3-wechat public account 4-work wechat robot 5-Dingding robot 6-Feishu robot + // 7-Telegram robot 8-SlackWebHook 9-Discord robot 10-work wechat app message 11-Huawei cloud SMN 12-ServerChan 13-Gotify type: number = 1; phone!: string; email!: string; diff --git a/web-app/src/app/pojo/NoticeRule.ts b/web-app/src/app/pojo/NoticeRule.ts index 94d82fd3a13..65585b7cc74 100644 --- a/web-app/src/app/pojo/NoticeRule.ts +++ b/web-app/src/app/pojo/NoticeRule.ts @@ -25,9 +25,9 @@ export class NoticeRule { templateId!: number | null; templateName!: string | null; enable: boolean = true; - // 是否转发所有 + // forward all or not filterAll: boolean = true; - // 告警级别过滤 + // filter alert level priorities!: number[]; tags!: TagItem[]; days!: number[]; diff --git a/web-app/src/app/pojo/NoticeTemplate.ts b/web-app/src/app/pojo/NoticeTemplate.ts index 55c461d1173..6a9fbb0671b 100644 --- a/web-app/src/app/pojo/NoticeTemplate.ts +++ b/web-app/src/app/pojo/NoticeTemplate.ts @@ -20,8 +20,8 @@ export class NoticeTemplate { id!: number; name!: string; - // 通知信息方式: 0-手机短信 1-邮箱 2-webhook 3-微信公众号 4-企业微信机器人 5-钉钉机器人 6-飞书机器人 - // 7-Telegram机器人 8-SlackWebHook 9-Discord机器人 10-企业微信应用消息 11-华为云SMN + // notification mode: 0-sms 1-email 2-webhook 3-wechat public account 4-work wechat robot 5-Dingding robot 6-Feishu robot + // 7-Telegram robot 8-SlackWebHook 9-Discord robot 10-work wechat app message 11-Huawei cloud SMN 12-ServerChan 13-Gotify type!: number; preset!: boolean; creator!: string; diff --git a/web-app/src/app/pojo/ObjectStore.ts b/web-app/src/app/pojo/ObjectStore.ts index d8faed5ed85..0fc00c8eb86 100644 --- a/web-app/src/app/pojo/ObjectStore.ts +++ b/web-app/src/app/pojo/ObjectStore.ts @@ -25,12 +25,17 @@ export class ObjectStore { export enum ObjectStoreType { /** - * 本地文件 + * Local file */ FILE = 'FILE', /** - * 华为云OBS + * Local database + */ + DATABASE = 'DATABASE', + + /** + * Huawei cloud OBS */ OBS = 'OBS' } diff --git a/web-app/src/app/pojo/Page.ts b/web-app/src/app/pojo/Page.ts index 0e1d4feef85..3afce48f677 100644 --- a/web-app/src/app/pojo/Page.ts +++ b/web-app/src/app/pojo/Page.ts @@ -19,14 +19,12 @@ export class Page { content!: T[]; - // 集合总页数 totalPages!: number; - // 集合总数 totalElements!: number; - // 查询的pageSize + // page size size!: number; - // 查询的pageIndex,从0开始 + // page index, start from 0 number!: number; - // 当前页的集合数量 + // the number of elements in this page numberOfElements!: number; } diff --git a/web-app/src/app/pojo/Param.ts b/web-app/src/app/pojo/Param.ts index 1914f3bc8b1..77667514d6f 100644 --- a/web-app/src/app/pojo/Param.ts +++ b/web-app/src/app/pojo/Param.ts @@ -22,6 +22,5 @@ export class Param { field!: string; type: number | undefined; paramValue: any; - // 是否显示 display: boolean = true; } diff --git a/web-app/src/app/pojo/ParamDefine.ts b/web-app/src/app/pojo/ParamDefine.ts index 8d6cde09da7..b70d473f2a3 100644 --- a/web-app/src/app/pojo/ParamDefine.ts +++ b/web-app/src/app/pojo/ParamDefine.ts @@ -28,12 +28,11 @@ export class ParamDefine { placeholder!: string; range: string | undefined; limit: number | undefined; - //'[{"label":"GET请求","value":"GET"},{"label":"PUT请求","value":"PUT"}]' options!: any[]; - // 当type为key-value时有效,表示别名描述 + // key alias. This param is valid when the type is key-value keyAlias!: string; valueAlias!: string; - // 此参数是否隐藏 即默认不显示, 在高级设置区显示 + // whether the param is hidden, default is false hide: boolean = false; // Map of dependent params depend: Map> | undefined; diff --git a/web-app/src/app/pojo/SmsNoticeSender.ts b/web-app/src/app/pojo/SmsNoticeSender.ts new file mode 100644 index 00000000000..ffb58105322 --- /dev/null +++ b/web-app/src/app/pojo/SmsNoticeSender.ts @@ -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. + */ + +import { AlibabaSmsConfig } from './AlibabaSmsConfig'; +import { TencentSmsConfig } from './TencentSmsConfig'; + +export class SmsNoticeSender { + id!: number; + type!: string; + tencent!: TencentSmsConfig; + alibaba!: AlibabaSmsConfig; + enable!: boolean; + creator!: string; + modifier!: string; + gmtCreate!: number; + gmtUpdate!: number; +} diff --git a/web-app/src/app/pojo/Tag.ts b/web-app/src/app/pojo/Tag.ts index 98b97b9871a..cda0cadfa1a 100644 --- a/web-app/src/app/pojo/Tag.ts +++ b/web-app/src/app/pojo/Tag.ts @@ -23,7 +23,7 @@ export class Tag { tagValue!: string; color: string = this.getRandomColor(); description!: string; - // 标记类型 0:监控自动生成(monitorId,monitorName) 1: 用户生成 2: 系统预置 + // tag type -- 0:auto-generated by system(monitorId,monitorName) 1: user generate 2: system preset type!: number; creator!: string; modifier!: string; diff --git a/web-app/src/app/pojo/TencentSmsConfig.ts b/web-app/src/app/pojo/TencentSmsConfig.ts new file mode 100644 index 00000000000..c91b24fe945 --- /dev/null +++ b/web-app/src/app/pojo/TencentSmsConfig.ts @@ -0,0 +1,26 @@ +/* + * 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. + */ + +export class TencentSmsConfig { + secretId!: string; + secretKey!: string; + signName!: string; + appId!: string; + templateId!: string; +} diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.html b/web-app/src/app/routes/alert/alert-center/alert-center.component.html index 84203ac8ba3..16b4381e6ea 100644 --- a/web-app/src/app/routes/alert/alert-center/alert-center.component.html +++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.html @@ -54,8 +54,8 @@ class="mobile-hide" nzAllowClear [nzPlaceHolder]="'alert.center.filter-priority' | i18n" - (ngModelChange)="loadAlertsTable()" [(ngModel)]="filterPriority" + (ngModelChange)="loadAlertsTable()" > @@ -66,8 +66,8 @@ class="mobile-hide" nzAllowClear [nzPlaceHolder]="'alert.center.filter-status' | i18n" - (ngModelChange)="loadAlertsTable()" [(ngModel)]="filterStatus" + (ngModelChange)="loadAlertsTable()" > @@ -79,7 +79,7 @@ class="mobile-hide" [placeholder]="'alert.center.search' | i18n" [(value)]="filterContent" - (valueChange)="loadAlertsTable()" + (keydown.enter)="loadAlertsTable()" /> diff --git a/web-app/src/app/routes/alert/alert-center/alert-center.component.ts b/web-app/src/app/routes/alert/alert-center/alert-center.component.ts index 18ddd785ccb..713dc9d8841 100644 --- a/web-app/src/app/routes/alert/alert-center/alert-center.component.ts +++ b/web-app/src/app/routes/alert/alert-center/alert-center.component.ts @@ -47,7 +47,6 @@ export class AlertCenterComponent implements OnInit { alerts!: Alert[]; tableLoading: boolean = false; checkedAlertIds = new Set(); - // 搜索过滤相关属性 filterStatus: number = 9; filterPriority: number = 9; filterContent: string | undefined; @@ -274,7 +273,7 @@ export class AlertCenterComponent implements OnInit { ); } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -296,7 +295,7 @@ export class AlertCenterComponent implements OnInit { this.pageSize = pageSize; this.loadAlertsTable(); } - // end: 列表多选分页逻辑 + // end: List multiple choice paging sliceTagName(tag: Tag): string { if (tag.tagValue != undefined && tag.tagValue.trim() != '') { diff --git a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html index a7a86cc73c3..30390c00070 100644 --- a/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html +++ b/web-app/src/app/routes/alert/alert-converge/alert-converge.component.html @@ -131,7 +131,7 @@ {{ 'common.total' | i18n }} {{ total }} - + lastPage ? lastPage : this.pageIndex; } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -190,9 +191,9 @@ export class AlertConvergeComponent implements OnInit { } } /** - * 分页回调 + * Paging callback * - * @param params 页码信息 + * @param params page info */ onTablePageChange(params: NzTableQueryParams) { const { pageSize, pageIndex, sort, filter } = params; @@ -200,9 +201,9 @@ export class AlertConvergeComponent implements OnInit { this.pageSize = pageSize; this.loadAlertConvergeTable(); } - // end: 列表多选逻辑 + // end: List multiple choice paging - // start 新增修改告警静默 model + // start -- new or update alert-converge model isManageModalVisible = false; isManageModalOkLoading = false; isManageModalAdd = true; @@ -211,15 +212,6 @@ export class AlertConvergeComponent implements OnInit { tagsOption: any[] = []; matchTags: string[] = []; convergeDates!: Date[]; - dayCheckOptions = [ - { label: this.i18nSvc.fanyi('common.week.7'), value: 7, checked: true }, - { label: this.i18nSvc.fanyi('common.week.1'), value: 1, checked: true }, - { label: this.i18nSvc.fanyi('common.week.2'), value: 2, checked: true }, - { label: this.i18nSvc.fanyi('common.week.3'), value: 3, checked: true }, - { label: this.i18nSvc.fanyi('common.week.4'), value: 4, checked: true }, - { label: this.i18nSvc.fanyi('common.week.5'), value: 5, checked: true }, - { label: this.i18nSvc.fanyi('common.week.6'), value: 6, checked: true } - ]; onNewAlertConverge() { this.converge = new AlertConverge(); @@ -283,6 +275,15 @@ export class AlertConvergeComponent implements OnInit { ); } onManageModalOk() { + if (this.ruleForm?.invalid) { + Object.values(this.ruleForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); + return; + } this.converge.tags = []; this.matchTags.forEach(tag => { let tmp: string[] = tag.split(':'); diff --git a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html index 2ab27968dcb..49b46c2c56d 100644 --- a/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html +++ b/web-app/src/app/routes/alert/alert-notice/alert-notice.component.html @@ -364,7 +364,7 @@ - +
- +
- + - + @@ -176,7 +177,7 @@ {{ 'common.total' | i18n }} {{ total }} - + - - + + {{ 'alert.setting.rule' | i18n }} @@ -223,197 +224,167 @@ {{ 'alert.setting.rule.switch-expr.1' | i18n }} -
- - + + + + + + + {{ item.value }} : + {{ + item.value == item.label + ? i == 0 + ? ('alert.setting.target.tip' | i18n) + : ('alert.setting.target.other' | i18n) + : item.label + }} + + + {{ item.type === 0 ? ('alert.setting.number' | i18n) : ('alert.setting.string' | i18n) }} + + + + + {{ 'alert.setting.operator' | i18n }} : equals(str1,str2), contains(str1,str2), exists(keyName), matches(str,regex), ==, + <, <=, >, >=, !=, ( ), +, -, &&, || + + + + + + + + + + + + + - - - - - - - - {{ item.value }} : - {{ - item.value == item.label - ? i == 0 - ? ('alert.setting.target.tip' | i18n) - : ('alert.setting.target.other' | i18n) - : item.label - }} - - - {{ item.type === 0 ? ('alert.setting.number' | i18n) : ('alert.setting.string' | i18n) }} - - - - - {{ 'alert.setting.operator' | i18n }} : equals(str1,str2), contains(str1,str2), exists(keyName), matches(str,regex), - ==, <, <=, >, >=, !=, ( ), +, -, &&, || - - - - - -
-
-
-
- - - {{ item.label ? item.label : item.value }} - - {{ - item.type === 0 - ? ('alert.setting.number' | i18n) - : item.type === 3 - ? ('alert.setting.time' | i18n) - : ('alert.setting.string' | i18n) - }} - - - {{ item.unit }} - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + - - -
-
-
+ {{ field.name ? field.name : field.value }} + + {{ + field.type === 0 + ? ('alert.setting.number' | i18n) + : field.type === 3 + ? ('alert.setting.time' | i18n) + : ('alert.setting.string' | i18n) + }} + + + {{ field.unit }} + + + + + + + + + + + + +
- + {{ 'monitor.availability' | i18n }} @@ -495,16 +466,20 @@ - + + {{ 'tag.bind' | i18n }} + + + + {{ 'alert.setting.default' | i18n }} @@ -538,7 +513,7 @@
- + - + p { + margin: 0!important; + color: #ff4d4f !important; + } + } + + .ruleset { + min-width: 400px; + overflow-x: auto; + padding: 6px 8px; + } + + .rule { + display: flex; + gap: 10px; + min-width: 300px; + overflow-x: auto; + padding: 6px 8px; + border: 1px solid #CCC; + + .q-rule-content { + flex: 1; + display: flex; + flex-wrap: wrap; + gap: 10px; + } + + .q-rule-actions { + flex-shrink: 0; + } + } +} diff --git a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts index 84303f31d6e..cfcb9326d96 100644 --- a/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts +++ b/web-app/src/app/routes/alert/alert-setting/alert-setting.component.ts @@ -17,9 +17,11 @@ * under the License. */ -import { Component, Inject, OnInit } from '@angular/core'; +import { Component, Inject, OnInit, ViewChild } from '@angular/core'; +import { AbstractControl, FormBuilder, FormControl, NgForm, ValidationErrors } from '@angular/forms'; import { I18NService } from '@core'; import { ALAIN_I18N_TOKEN } from '@delon/theme'; +import { Rule, RuleSet, QueryBuilderConfig, QueryBuilderClassNames } from '@kerwin612/ngx-query-builder'; import { NzCascaderFilter } from 'ng-zorro-antd/cascader'; import { ModalButtonOptions, NzModalService } from 'ng-zorro-antd/modal'; import { NzNotificationService } from 'ng-zorro-antd/notification'; @@ -33,19 +35,16 @@ import { AlertDefine } from '../../../pojo/AlertDefine'; import { AlertDefineBind } from '../../../pojo/AlertDefineBind'; import { Message } from '../../../pojo/Message'; import { Monitor } from '../../../pojo/Monitor'; -import { TagItem } from '../../../pojo/NoticeRule'; -import { Tag } from '../../../pojo/Tag'; import { AlertDefineService } from '../../../service/alert-define.service'; import { AppDefineService } from '../../../service/app-define.service'; import { MonitorService } from '../../../service/monitor.service'; -import { TagService } from '../../../service/tag.service'; const AVAILABILITY = 'availability'; @Component({ selector: 'app-alert-setting', templateUrl: './alert-setting.component.html', - styles: [] + styleUrls: ['./alert-setting.component.less'] }) export class AlertSettingComponent implements OnInit { constructor( @@ -54,9 +53,12 @@ export class AlertSettingComponent implements OnInit { private appDefineSvc: AppDefineService, private monitorSvc: MonitorService, private alertDefineSvc: AlertDefineService, - private tagSvc: TagService, - @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService - ) {} + @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService, + private formBuilder: FormBuilder + ) { + this.qbFormCtrl = this.formBuilder.control(this.qbData, this.qbValidator); + } + @ViewChild('defineForm', { static: false }) defineForm!: NgForm; search!: string; pageIndex: number = 1; pageSize: number = 8; @@ -72,9 +74,34 @@ export class AlertSettingComponent implements OnInit { switchExportTypeModalFooter: ModalButtonOptions[] = [ { label: this.i18nSvc.fanyi('common.button.cancel'), type: 'default', onClick: () => (this.isSwitchExportTypeModalVisible = false) } ]; + qbClassNames: QueryBuilderClassNames = { + row: 'row', + tree: 'tree', + rule: 'br-4 rule', + ruleSet: 'br-4 ruleset', + invalidRuleSet: 'br-4 ruleset-invalid' + }; + qbConfig: QueryBuilderConfig = { + levelLimit: 3, + rulesLimit: 5, + fields: {}, + getInputType: () => 'custom' + }; + qbData: RuleSet = { + condition: 'and', + rules: [] + }; + qbValidator = (control: AbstractControl): ValidationErrors | null => { + if (!control.value || !control.value.rules || control.value.rules.length === 0) { + return { required: true }; + } + return null; + }; + qbFormCtrl: FormControl; + ngOnInit(): void { this.loadAlertDefineTable(); - // 查询监控层级 + // query monitoring hierarchy const getHierarchy$ = this.appDefineSvc .getAppHierarchy(this.i18nSvc.defaultLang) .pipe( @@ -137,6 +164,7 @@ export class AlertSettingComponent implements OnInit { onNewAlertDefine() { this.define = new AlertDefine(); this.define.tags = []; + this.resetQbDataDefault(); this.isManageModalAdd = true; this.isManageModalVisible = true; this.isManageModalOkLoading = false; @@ -150,21 +178,6 @@ export class AlertSettingComponent implements OnInit { this.editAlertDefine(alertDefineId); } - onEditAlertDefine() { - // 编辑时只能选中一个 - if (this.checkedDefineIds == null || this.checkedDefineIds.size === 0) { - this.notifySvc.warning(this.i18nSvc.fanyi('common.notify.no-select-edit'), ''); - return; - } - if (this.checkedDefineIds.size > 1) { - this.notifySvc.warning(this.i18nSvc.fanyi('common.notify.one-select-edit'), ''); - return; - } - let alertDefineId = 0; - this.checkedDefineIds.forEach(item => (alertDefineId = item)); - this.editAlertDefine(alertDefineId); - } - updateAlertDefine(alertDefine: AlertDefine) { this.tableLoading = true; const updateDefine$ = this.alertDefineSvc @@ -193,8 +206,9 @@ export class AlertSettingComponent implements OnInit { } editAlertDefine(alertDefineId: number) { + if (this.isLoadingEdit !== -1) return; + this.isLoadingEdit = alertDefineId; this.isManageModalAdd = false; - this.isManageModalVisible = true; this.isManageModalOkLoading = false; // 查询告警定义信息 const getDefine$ = this.alertDefineSvc @@ -202,6 +216,8 @@ export class AlertSettingComponent implements OnInit { .pipe( finalize(() => { getDefine$.unsubscribe(); + this.isLoadingEdit = -1; + this.isManageModalVisible = true; }) ) .subscribe( @@ -359,7 +375,7 @@ export class AlertSettingComponent implements OnInit { } } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -376,9 +392,9 @@ export class AlertSettingComponent implements OnInit { } } /** - * 分页回调 + * Paging callback * - * @param params 页码信息 + * @param params page info */ onTablePageChange(params: NzTableQueryParams) { const { pageSize, pageIndex, sort, filter } = params; @@ -386,24 +402,198 @@ export class AlertSettingComponent implements OnInit { this.pageSize = pageSize; this.loadAlertDefineTable(); } - // end: 列表多选逻辑 + // end: List multiple choice paging - // start 新增修改告警定义model + // start -- new or update alert definition model + isLoadingEdit = -1; isManageModalVisible = false; isManageModalOkLoading = false; isManageModalAdd = true; define: AlertDefine = new AlertDefine(); cascadeValues: string[] = []; currentMetrics: any[] = []; - alertRules: any[] = [{}]; isExpr = false; + + private getOperatorsByType(type: number): string[] { + if (type === 0 || type === 3) { + return ['>', '<', '==', '!=', '<=', '>=', 'exists', '!exists']; + } else if (type === 1) { + return ['equals', '!equals', 'contains', '!contains', 'matches', '!matches', 'exists', '!exists']; + } + return []; + } + + private rule2expr(rule: Rule): string { + if (rule.operator == 'exists' || rule.operator == '!exists') { + return `${rule.operator}(${rule.field})`; + } + const fieldObject = this.qbConfig.fields[rule.field]; + if (parseInt(fieldObject.type) === 1) { + return `${rule.operator}(${rule.field},"${rule.value}")`; + } + return `(${rule.field} ${rule.operator} ${rule.value})`; + } + + private ruleset2expr(ruleset: RuleSet): string { + if (ruleset.rules.length === 0) { + return ''; + } + return `(${ruleset.rules + .map((rule: any) => (!!(rule as RuleSet).rules ? this.ruleset2expr(rule as RuleSet) : this.rule2expr(rule as Rule))) + .filter((s: any) => !!s) + .join(` ${ruleset.condition} `)})`; + } + + private parseRule1(str: string): any { + if (str.startsWith('(')) { + let start = str.indexOf('('); + let operatorPrefix = str.indexOf(' '); + let fieldString = str.substring(start + 1, operatorPrefix); + if (fieldString.indexOf('(') === -1 && fieldString.indexOf(')') === -1 && fieldString.indexOf('!') === -1) { + let operatorSuffix = fieldString.length + 2 + str.substring(operatorPrefix + 1).indexOf(' '); + return { + rst: { + field: fieldString.trim(), + operator: str.substring(operatorPrefix, operatorSuffix).trim(), + value: str.substring(operatorSuffix + 1, str.indexOf(')')).trim() + }, + pos: str.indexOf(')') + 1 + }; + } + } + return { + pos: 0 + }; + } + + private parseRule2(str: string): any { + if (str.startsWith('exists') || str.startsWith('!exists')) { + let start = str.indexOf('('); + let end = str.indexOf(')'); + return { + rst: { + field: str.substring(start + 1, end).trim(), + operator: str.substring(0, start).trim() + }, + pos: end + 1 + }; + } + return { + pos: 0 + }; + } + + private parseRule3(str: string): any { + if ( + str.startsWith('matches') || + str.startsWith('!matches') || + str.startsWith('contains') || + str.startsWith('!contains') || + str.startsWith('equals') || + str.startsWith('!equals') + ) { + let start = str.indexOf('('); + let end = str.indexOf(')'); + let comma = str.indexOf(','); + return { + rst: { + field: str.substring(start + 1, comma).trim(), + operator: str.substring(0, start).trim(), + value: str.substring(comma + 2, end - 1).trim() // remove double quotes + }, + pos: end + 1 + }; + } + return { + pos: 0 + }; + } + + private filterEmptyRules(ruleset: RuleSet): RuleSet | Rule { + if (ruleset.rules.length === 1 && (ruleset.rules[0] as RuleSet).rules) { + return ruleset.rules[0]; + } else { + return ruleset; + } + } + + private expr2ruleset(expr: string): RuleSet { + let ruleset = { rules: [] as any[], condition: 'and' }; + let current = ruleset; + let stack: any[] = []; + for (let i = 0, j = expr.length; i < j; ) { + if (expr[i] === '(' && this.parseRule1(expr.substring(i)).pos === 0) { + stack.push(current); + current = { rules: [] as any[], condition: 'and' }; + i++; + } else if (expr[i] === 'a' && expr[i + 1] === 'n' && expr[i + 2] === 'd') { + current.condition = 'and'; + i += 3; + } else if (expr[i] === 'o' && expr[i + 1] === 'r') { + current.condition = 'or'; + i += 2; + } else if (expr[i] === ')') { + let parent = stack.pop(); + parent.rules.push(this.filterEmptyRules(current)); + current = parent; + i++; + } else { + let rule = this.parseRule1(expr.substring(i)); + if (rule.pos) { + current.rules.push(rule.rst); + i += rule.pos; + continue; + } + rule = this.parseRule2(expr.substring(i)); + if (rule.pos) { + current.rules.push(rule.rst); + i += rule.pos; + continue; + } + rule = this.parseRule3(expr.substring(i)); + if (rule.pos) { + current.rules.push(rule.rst); + i += rule.pos; + continue; + } + i++; + } + } + return this.filterEmptyRules(ruleset) as RuleSet; + } + + getOperatorLabelByType = (operator: string) => { + switch (operator) { + case 'equals': + return 'alert.setting.rule.operator.str-equals'; + case '!equals': + return 'alert.setting.rule.operator.str-no-equals'; + case 'contains': + return 'alert.setting.rule.operator.str-contains'; + case '!contains': + return 'alert.setting.rule.operator.str-no-contains'; + case 'matches': + return 'alert.setting.rule.operator.str-matches'; + case '!matches': + return 'alert.setting.rule.operator.str-no-matches'; + case 'exists': + return 'alert.setting.rule.operator.exists'; + case '!exists': + return 'alert.setting.rule.operator.no-exists'; + default: + return operator; + } + }; + caseInsensitiveFilter: NzCascaderFilter = (i, p) => { return p.some(o => { const label = o.label; return !!label && label.toLowerCase().indexOf(i.toLowerCase()) !== -1; }); }; + cascadeOnChange(values: string[]): void { + this.resetQbDataDefault(); if (values == null || values.length != 3) { return; } @@ -413,14 +603,19 @@ export class AlertSettingComponent implements OnInit { if (metrics.value == values[1]) { this.currentMetrics = []; if (metrics.children) { + let fields: any = {}; metrics.children.forEach(item => { this.currentMetrics.push(item); + fields[item.value] = { name: item.label, type: item.type, unit: item.unit, operators: this.getOperatorsByType(item.type) }; }); - this.currentMetrics.push({ + let fixedItem = { value: 'system_value_row_count', type: 0, label: this.i18nSvc.fanyi('alert.setting.target.system_value_row_count') - }); + }; + this.currentMetrics.push(fixedItem); + fields[fixedItem.value] = { name: fixedItem.label, type: fixedItem.type, operators: this.getOperatorsByType(fixedItem.type) }; + this.qbConfig = { ...this.qbConfig, fields }; } } }); @@ -430,47 +625,13 @@ export class AlertSettingComponent implements OnInit { switchAlertRuleShow() { if (this.isExpr) { - let expr = this.calculateAlertRuleExpr(); + let expr = this.ruleset2expr(this.qbData); if (expr != '') { this.define.expr = expr; } } } - onAddNewAlertRule() { - this.alertRules.push({}); - } - - onRemoveAlertRule(index: number) { - this.alertRules.splice(index, 1); - } - - calculateAlertRuleExpr() { - let rules = this.alertRules.filter(rule => rule.metric != undefined && rule.operator != undefined); - let index = 0; - let expr = ''; - rules.forEach(rule => { - let ruleStr = ''; - if (rule.operator == 'exists' || rule.operator == '!exists') { - ruleStr = `${rule.operator}(${rule.metric.value})`; - } else { - if (rule.metric.type === 0 || rule.metric.type === 3) { - ruleStr = `${rule.metric.value} ${rule.operator} ${rule.value} `; - } else if (rule.metric.type === 1) { - ruleStr = `${rule.operator}(${rule.metric.value},"${rule.value}")`; - } - } - if (ruleStr != '') { - expr = expr + ruleStr; - } - if (index != rules.length - 1) { - expr = `${expr} && `; - } - index++; - }); - return expr; - } - renderAlertRuleExpr(expr: string) { if (expr == undefined || expr == '') { return; @@ -479,77 +640,59 @@ export class AlertSettingComponent implements OnInit { this.isExpr = true; return; } - this.alertRules = []; try { - let exprArr: string[] = expr.split('&&'); - for (let index in exprArr) { - let exprStr = exprArr[index].trim(); - const twoParamExpressionArr = ['equals', '!equals', 'contains', '!contains', 'matches', '!matches']; - const oneParamExpressionArr = ['exists', '!exists']; - let findIndexInTowParamExpression = twoParamExpressionArr.findIndex(value => exprStr.startsWith(value)); - let findIndexInOneParamExpression = oneParamExpressionArr.findIndex(value => exprStr.startsWith(value)); - if (findIndexInTowParamExpression >= 0) { - let tmp = exprStr.substring(exprStr.indexOf('(') + 1, exprStr.length - 1); - let tmpArr = tmp.split(','); - if (tmpArr.length == 2) { - let metric = this.currentMetrics.find(item => item.value == tmpArr[0].trim()); - let value = tmpArr[1].substring(1, tmpArr[1].length - 1); - let rule = { metric: metric, operator: twoParamExpressionArr[findIndexInTowParamExpression], value: value }; - this.alertRules.push(rule); - } - } else if (findIndexInOneParamExpression >= 0) { - let tmp = exprStr.substring(exprStr.indexOf('(') + 1, exprStr.length - 1); - if (tmp != '' && tmp != null) { - let metric = this.currentMetrics.find(item => item.value == tmp.trim()); - let rule = { metric: metric, operator: oneParamExpressionArr[findIndexInOneParamExpression] }; - this.alertRules.push(rule); - } - } else { - let values = exprStr.trim().split(' '); - if (values.length == 3 && values[2].trim() != '' && !Number.isNaN(parseFloat(values[2].trim()))) { - let metric = this.currentMetrics.find(item => item.value == values[0].trim()); - let rule = { metric: metric, operator: values[1].trim(), value: values[2].trim() }; - this.alertRules.push(rule); - } - } - } - if (this.alertRules.length != exprArr.length) { - this.alertRules = [{}]; - this.isExpr = true; - return; - } + this.resetQbData(this.expr2ruleset(expr)); + this.isExpr = false; } catch (e) { console.error(e); this.isExpr = true; - this.alertRules = [{}]; + this.resetQbDataDefault(); return; } - if (this.alertRules.length == 0) { - this.alertRules = [{}]; - this.isExpr = true; - } } onManageModalCancel() { + this.cascadeValues = []; this.isExpr = false; + this.resetQbDataDefault(); this.isManageModalVisible = false; } + resetQbData(qbData: RuleSet) { + this.qbFormCtrl.reset((this.qbData = qbData)); + } + + resetQbDataDefault() { + this.resetQbData({ condition: 'and', rules: [] }); + } + resetManageModalData() { this.cascadeValues = []; - this.alertRules = [{}]; this.isExpr = false; + this.resetQbDataDefault(); this.isManageModalVisible = false; } onManageModalOk() { + if (this.cascadeValues.length == 3) { + this.defineForm.form.addControl('ruleset', this.qbFormCtrl); + } + if (this.defineForm?.invalid) { + Object.values(this.defineForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); + return; + } this.isManageModalOkLoading = true; this.define.app = this.cascadeValues[0]; this.define.metric = this.cascadeValues[1]; if (this.cascadeValues.length == 3) { this.define.field = this.cascadeValues[2]; if (!this.isExpr) { - let expr = this.calculateAlertRuleExpr(); + let expr = this.ruleset2expr(this.qbData); if (expr != '') { this.define.expr = expr; } @@ -570,6 +713,7 @@ export class AlertSettingComponent implements OnInit { .subscribe( message => { if (message.code === 0) { + this.cascadeValues = []; this.isManageModalVisible = false; this.notifySvc.success(this.i18nSvc.fanyi('common.notify.new-success'), ''); this.loadAlertDefineTable(); @@ -594,6 +738,7 @@ export class AlertSettingComponent implements OnInit { .subscribe( message => { if (message.code === 0) { + this.cascadeValues = []; this.isManageModalVisible = false; this.notifySvc.success(this.i18nSvc.fanyi('common.notify.edit-success'), ''); this.loadAlertDefineTable(); @@ -607,10 +752,9 @@ export class AlertSettingComponent implements OnInit { ); } } + // end -- new or update alert definition model - // end 新增修改告警定义model - - // start 告警定义与监控关联model + // start -- associate alert definition and monitoring model isConnectModalVisible = false; isConnectModalOkLoading = false; transferData: TransferItem[] = []; @@ -713,30 +857,5 @@ export class AlertSettingComponent implements OnInit { } }); } - // end 告警定义与监控关联model - //查询告警阈值 - onFilterSearchAlertDefinesByName() { - this.tableLoading = true; - let filter$ = this.alertDefineSvc.getAlertDefines(this.search, this.pageIndex - 1, this.pageSize).subscribe( - message => { - filter$.unsubscribe(); - this.tableLoading = false; - this.checkedAll = false; - this.checkedDefineIds.clear(); - if (message.code === 0) { - let page = message.data; - this.defines = page.content; - this.pageIndex = page.number + 1; - this.total = page.totalElements; - } else { - console.warn(message.msg); - } - }, - error => { - this.tableLoading = false; - filter$.unsubscribe(); - console.error(error.msg); - } - ); - } + // end -- associate alert definition and monitoring model } diff --git a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html index 728c9e8b26a..6c7d3d5294b 100755 --- a/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html +++ b/web-app/src/app/routes/alert/alert-silence/alert-silence.component.html @@ -140,7 +140,7 @@ {{ 'common.total' | i18n }} {{ total }} - + lastPage ? lastPage : this.pageIndex; } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -190,9 +191,9 @@ export class AlertSilenceComponent implements OnInit { } } /** - * 分页回调 + * Paging callback * - * @param params 页码信息 + * @param params page info */ onTablePageChange(params: NzTableQueryParams) { const { pageSize, pageIndex, sort, filter } = params; @@ -200,9 +201,9 @@ export class AlertSilenceComponent implements OnInit { this.pageSize = pageSize; this.loadAlertSilenceTable(); } - // end: 列表多选逻辑 + // end: List multiple choice paging - // start 新增修改告警静默 model + // start -- new or update alert silence model isManageModalVisible = false; isManageModalOkLoading = false; isManageModalAdd = true; @@ -291,6 +292,15 @@ export class AlertSilenceComponent implements OnInit { ); } onManageModalOk() { + if (this.ruleForm?.invalid) { + Object.values(this.ruleForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); + return; + } this.silence.tags = []; this.matchTags.forEach(tag => { let tmp: string[] = tag.split(':'); diff --git a/web-app/src/app/routes/alert/alert.module.ts b/web-app/src/app/routes/alert/alert.module.ts index 1bd3cdc57e5..072f495fe9e 100644 --- a/web-app/src/app/routes/alert/alert.module.ts +++ b/web-app/src/app/routes/alert/alert.module.ts @@ -18,6 +18,7 @@ */ import { NgModule, Type } from '@angular/core'; +import { QueryBuilderModule } from '@kerwin612/ngx-query-builder'; import { SharedModule } from '@shared'; import { NzBadgeModule } from 'ng-zorro-antd/badge'; import { NzBreadCrumbModule } from 'ng-zorro-antd/breadcrumb'; @@ -64,7 +65,8 @@ const COMPONENTS: Array> = [ NzTimePickerModule, NzDatePickerModule, NzBadgeModule, - NzUploadModule + NzUploadModule, + QueryBuilderModule ], declarations: COMPONENTS }) diff --git a/web-app/src/app/routes/bulletin/bulletin.component.html b/web-app/src/app/routes/bulletin/bulletin.component.html new file mode 100644 index 00000000000..23ba9c5bb93 --- /dev/null +++ b/web-app/src/app/routes/bulletin/bulletin.component.html @@ -0,0 +1,237 @@ + + + + + + + + + + + + + + + + + + + + + + + + App + Host + + + {{ metric }} + + + + + + + + {{ field }} + + + + + + + + + {{ content.monitorName }} + {{ content.host }} + + + + + + No Data Available + + + {{ item.value }} + {{ item.unit }} + + + + + + + + + + + + + + + +
+
+ + {{ 'bulletin.name' | i18n }} + + + + + + + {{ 'bulletin.monitor.type' | i18n }} + + + + + + + + + + + {{ 'bulletin.monitor.name' | i18n }} + + + + + + + + + + + {{ 'bulletin.monitor.metrics' | i18n }} + + + + + + + {{ node.title }} + + + + + + + +
+
+
+ + + +
+
+ + {{ 'bulletin.name' | i18n }} + + + + + + +
+
+
diff --git a/web-app/src/app/routes/bulletin/bulletin.component.less b/web-app/src/app/routes/bulletin/bulletin.component.less new file mode 100644 index 00000000000..0b13dcbfc01 --- /dev/null +++ b/web-app/src/app/routes/bulletin/bulletin.component.less @@ -0,0 +1,17 @@ +@table-padding: 8px; +.table { + width: 100%; + table-layout: auto; + + th { + white-space: nowrap; + padding: @table-padding; + text-align: center; + } + + td { + white-space: nowrap; + padding: @table-padding; + text-align: center; + } +} diff --git a/web-app/src/app/shared/components/form-item/form-item.component.spec.ts b/web-app/src/app/routes/bulletin/bulletin.component.spec.ts similarity index 80% rename from web-app/src/app/shared/components/form-item/form-item.component.spec.ts rename to web-app/src/app/routes/bulletin/bulletin.component.spec.ts index 581e39d34ec..5e1fc104026 100644 --- a/web-app/src/app/shared/components/form-item/form-item.component.spec.ts +++ b/web-app/src/app/routes/bulletin/bulletin.component.spec.ts @@ -19,20 +19,20 @@ import { ComponentFixture, TestBed } from '@angular/core/testing'; -import { FormItemComponent } from './form-item.component'; +import { BulletinComponent } from './bulletin.component'; -describe('FormItemComponent', () => { - let component: FormItemComponent; - let fixture: ComponentFixture; +describe('BulletinComponent', () => { + let component: BulletinComponent; + let fixture: ComponentFixture; beforeEach(async () => { await TestBed.configureTestingModule({ - declarations: [FormItemComponent] + declarations: [BulletinComponent] }).compileComponents(); }); beforeEach(() => { - fixture = TestBed.createComponent(FormItemComponent); + fixture = TestBed.createComponent(BulletinComponent); component = fixture.componentInstance; fixture.detectChanges(); }); diff --git a/web-app/src/app/routes/bulletin/bulletin.component.ts b/web-app/src/app/routes/bulletin/bulletin.component.ts new file mode 100644 index 00000000000..f48f6ec9e35 --- /dev/null +++ b/web-app/src/app/routes/bulletin/bulletin.component.ts @@ -0,0 +1,509 @@ +/* + * 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. + */ + +import { Component, Inject, OnInit } from '@angular/core'; +import { I18NService } from '@core'; +import { ALAIN_I18N_TOKEN } from '@delon/theme'; +import { NzModalService } from 'ng-zorro-antd/modal'; +import { NzNotificationService } from 'ng-zorro-antd/notification'; +import { NzTableQueryParams } from 'ng-zorro-antd/table'; +import { TransferChange } from 'ng-zorro-antd/transfer'; +import { NzFormatEmitEvent, NzTreeNode, NzTreeNodeOptions } from 'ng-zorro-antd/tree'; +import { finalize } from 'rxjs/operators'; + +import { BulletinDefine } from '../../pojo/BulletinDefine'; +import { Fields } from '../../pojo/Fields'; +import { Monitor } from '../../pojo/Monitor'; +import { AppDefineService } from '../../service/app-define.service'; +import { BulletinDefineService } from '../../service/bulletin-define.service'; +import { MonitorService } from '../../service/monitor.service'; + +@Component({ + selector: 'app-bulletin', + templateUrl: './bulletin.component.html', + styleUrls: ['./bulletin.component.less'] +}) +export class BulletinComponent implements OnInit { + constructor( + private modal: NzModalService, + private notifySvc: NzNotificationService, + private appDefineSvc: AppDefineService, + private monitorSvc: MonitorService, + private bulletinDefineSvc: BulletinDefineService, + @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService + ) {} + search!: string; + tabs!: string[]; + metricsData!: any; + tableLoading: boolean = true; + bulletinName!: string; + deleteBulletinNames: string[] = []; + isAppListLoading = false; + isMonitorListLoading = false; + treeNodes!: NzTreeNodeOptions[]; + hierarchies: NzTreeNodeOptions[] = []; + appMap = new Map(); + appEntries: Array<{ value: any; key: string }> = []; + checkedNodeList: NzTreeNode[] = []; + monitors: Monitor[] = []; + metrics = new Set(); + tempMetrics = new Set(); + fields: Fields = {}; + pageIndex: number = 1; + pageSize: number = 8; + total: number = 0; + + ngOnInit() { + this.loadTabs(); + } + + sync() { + this.loadData(this.pageIndex - 1, this.pageSize); + } + + onNewBulletinDefine() { + this.resetManageModalData(); + this.isManageModalAdd = true; + this.isManageModalVisible = true; + this.isManageModalOkLoading = false; + } + + onEditBulletinDefine() { + if (this.currentDefine) { + this.define = this.currentDefine; + this.onAppChange(this.define.app); + // this.tempMetrics.add(...this.define.fields.keys()); + this.isManageModalAdd = false; + this.isManageModalVisible = true; + this.isManageModalOkLoading = false; + } + } + + deleteBulletinDefines(defineNames: string[]) { + if (defineNames == null || defineNames.length == 0) { + this.notifySvc.warning(this.i18nSvc.fanyi('common.notify.no-select-delete'), ''); + return; + } + const deleteDefines$ = this.bulletinDefineSvc.deleteBulletinDefines(defineNames).subscribe( + message => { + deleteDefines$.unsubscribe(); + if (message.code === 0) { + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.delete-success'), ''); + this.loadTabs(); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.delete-fail'), message.msg); + } + }, + error => { + deleteDefines$.unsubscribe(); + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.delete-fail'), error.msg); + } + ); + } + + isManageModalVisible = false; + isManageModalOkLoading = false; + isManageModalAdd = true; + define: BulletinDefine = new BulletinDefine(); + currentDefine!: BulletinDefine | null; + + onManageModalCancel() { + this.isManageModalVisible = false; + } + + resetManageModalData() { + this.define = new BulletinDefine(); + this.define.monitorIds = []; + this.hierarchies = []; + this.treeNodes = []; + } + + onManageModalOk() { + this.isManageModalOkLoading = true; + this.define.fields = this.fields; + if (this.isManageModalAdd) { + const modalOk$ = this.bulletinDefineSvc + .newBulletinDefine(this.define) + .pipe( + finalize(() => { + modalOk$.unsubscribe(); + this.isManageModalOkLoading = false; + }) + ) + .subscribe( + message => { + if (message.code === 0) { + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.new-success'), ''); + this.isManageModalVisible = false; + this.resetManageModalData(); + this.loadTabs(); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.new-fail'), message.msg); + } + }, + error => { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.new-fail'), error.msg); + } + ); + } else { + const modalOk$ = this.bulletinDefineSvc + .editBulletinDefine(this.define) + .pipe( + finalize(() => { + modalOk$.unsubscribe(); + this.isManageModalOkLoading = false; + }) + ) + .subscribe( + message => { + if (message.code === 0) { + this.isManageModalVisible = false; + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.edit-success'), ''); + this.loadData(this.pageIndex - 1, this.pageSize); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.edit-fail'), message.msg); + } + }, + error => { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.edit-fail'), error.msg); + } + ); + } + } + + onSearchAppDefines(): void { + this.appDefineSvc + .getAppDefines(this.i18nSvc.defaultLang) + .pipe() + .subscribe( + message => { + if (message.code === 0) { + this.appMap = message.data; + this.appEntries = Object.entries(this.appMap).map(([key, value]) => ({ key, value })); + if (this.appEntries != null) { + this.isAppListLoading = true; + } + } else { + console.warn(message.msg); + } + }, + error => { + console.warn(error.msg); + } + ); + } + + onSearchMonitorsByApp(app: string): void { + this.monitorSvc + .getMonitorsByApp(app) + .pipe() + .subscribe( + message => { + if (message.code === 0) { + this.monitors = message.data; + if (this.monitors != null) { + this.isMonitorListLoading = true; + } + } else { + console.warn(message.msg); + } + }, + error => { + console.warn(error.msg); + } + ); + } + + onAppChange(app: string): void { + if (app) { + this.onSearchMonitorsByApp(app); + this.onSearchTreeNodes(app); + } else { + this.hierarchies = []; + this.treeNodes = []; + } + } + + onSearchTreeNodes(app: string): void { + this.appDefineSvc + .getAppHierarchyByName(this.i18nSvc.defaultLang, app) + .pipe() + .subscribe( + message => { + if (message.code === 0) { + this.hierarchies = this.transformToTransferItems(message.data); + this.treeNodes = this.generateTree(this.hierarchies); + } else { + console.warn(message.msg); + } + }, + error => { + console.warn(error.msg); + } + ); + } + + transformToTransferItems(data: any[]): NzTreeNodeOptions[] { + const result: NzTreeNodeOptions[] = []; + let currentId = 1; + + const traverse = (nodes: any[], parentKey: string | null = null, parentId: number | null = null) => { + nodes.forEach(node => { + const key = parentKey ? `${parentKey}` : node.value; + const isRootNode = parentId === null; + const item: NzTreeNodeOptions = { + id: currentId++, + key, + value: node.value, + title: node.label, + isLeaf: node.isLeaf, + parentId, + disabled: isRootNode + }; + result.push(item); + + if (node.children) { + traverse(node.children, key, item.id); + } + }); + }; + + if (data[0] && data[0].children) { + data = data[0].children; + traverse(data); + } + + return result; + } + + private generateTree(arr: NzTreeNodeOptions[]): NzTreeNodeOptions[] { + const tree: NzTreeNodeOptions[] = []; + const treeNodes: any = {}; + let leftElem: NzTreeNodeOptions; + let rightElem: NzTreeNodeOptions; + + for (let i = 0, len = arr.length; i < len; i++) { + leftElem = arr[i]; + treeNodes[leftElem.id] = { ...leftElem }; + treeNodes[leftElem.id].children = []; + } + + for (const id in treeNodes) { + if (treeNodes.hasOwnProperty(id)) { + rightElem = treeNodes[id]; + if (rightElem.parentId) { + treeNodes[rightElem.parentId].children.push(rightElem); + } else { + tree.push(rightElem); + } + } + } + return tree; + } + + treeCheckBoxChange(event: NzFormatEmitEvent, onItemSelect: (item: NzTreeNodeOptions) => void): void { + this.checkBoxChange(event.node!, onItemSelect); + } + + checkBoxChange(node: NzTreeNode, onItemSelect: (item: NzTreeNodeOptions) => void): void { + if (node.isDisabled) { + return; + } + + if (node.isChecked) { + this.checkedNodeList.push(node); + } else { + const idx = this.checkedNodeList.indexOf(node); + if (idx !== -1) { + this.checkedNodeList.splice(idx, 1); + } + } + const item = this.hierarchies.find(w => w.id === node.origin.id); + onItemSelect(item!); + } + + transferChange(ret: TransferChange): void { + // add + if (ret.to === 'right') { + this.checkedNodeList.forEach(node => { + node.isDisabled = true; + node.isChecked = true; + this.tempMetrics.add(node.key); + + if (!this.fields[node.key]) { + this.fields[node.key] = []; + } + if (!this.fields[node.key].includes(node.origin.value)) { + this.fields[node.key].push(node.origin.value); + } + }); + } + // delete + else if (ret.to === 'left') { + this.checkedNodeList.forEach(node => { + node.isDisabled = false; + node.isChecked = false; + this.tempMetrics.delete(node.key); + + if (this.fields[node.key]) { + const index = this.fields[node.key].indexOf(node.origin.value); + if (index > -1) { + this.fields[node.key].splice(index, 1); + } + // 如果该 key 下的数组为空,则删除该 key + if (this.fields[node.key].length === 0) { + delete this.fields[node.key]; + } + } + }); + } + } + + loadTabs() { + const allNames$ = this.bulletinDefineSvc.getAllNames().subscribe( + message => { + allNames$.unsubscribe(); + if (message.code === 0) { + this.tabs = message.data; + if (this.tabs != null) { + this.bulletinName = this.tabs[0]; + } + this.loadData(this.pageIndex - 1, this.pageSize); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.get-fail'), message.msg); + } + }, + error => { + allNames$.unsubscribe(); + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.get-fail'), error.msg); + } + ); + } + + loadData(page: number, size: number) { + this.tableLoading = true; + this.metricsData = []; + this.currentDefine = null; + this.metrics = new Set(); + if (this.bulletinName != null) { + const defineData$ = this.bulletinDefineSvc.getBulletinDefine(this.bulletinName).subscribe( + message => { + if (message.code === 0) { + this.currentDefine = message.data; + + const metricData$ = this.bulletinDefineSvc.getMonitorMetricsData(this.bulletinName, page, size).subscribe( + message => { + metricData$.unsubscribe(); + if (message.code === 0 && message.data) { + (this.metricsData = message.data.content).forEach((item: any) => { + item.metrics.forEach((metric: any) => { + this.metrics.add(metric.name); + }); + }); + } else if (message.code !== 0) { + this.notifySvc.warning(`${message.msg}`, ''); + console.info(`${message.msg}`); + } + this.tableLoading = false; + }, + error => { + console.error(error.msg); + metricData$.unsubscribe(); + this.tableLoading = false; + } + ); + } else { + this.notifySvc.warning(`${message.msg}`, ''); + console.info(`${message.msg}`); + } + }, + error => { + console.error(error.msg); + defineData$.unsubscribe(); + this.tableLoading = false; + } + ); + } + this.tableLoading = false; + } + + getKeys(metricName: string): string[] { + const result = new Set(); + this.metricsData.forEach((item: any) => { + item.metrics.forEach((metric: any) => { + if (metric.name === metricName) { + metric.fields.forEach((fieldGroup: any) => { + fieldGroup.forEach((field: any) => { + result.add(field.key); + }); + }); + } + }); + }); + return Array.from(result); + } + + onTablePageChange(params: NzTableQueryParams): void { + const { pageSize, pageIndex } = params; + + if (pageIndex !== this.pageIndex || pageSize !== this.pageSize) { + this.pageIndex = pageIndex; + this.pageSize = pageSize; + this.loadData(pageIndex - 1, pageSize); + } + } + + isBatchDeleteModalVisible: boolean = false; + isBatchDeleteModalOkLoading: boolean = false; + + onDeleteBulletinDefines() { + this.modal.confirm({ + nzTitle: this.i18nSvc.fanyi('common.confirm.delete'), + nzOkText: this.i18nSvc.fanyi('common.button.ok'), + nzCancelText: this.i18nSvc.fanyi('common.button.cancel'), + nzOkDanger: true, + nzOkType: 'primary', + nzClosable: false, + nzOnOk: () => this.deleteBulletinDefines([this.bulletinName]) + }); + } + + onBatchDeleteBulletinDefines() { + this.isBatchDeleteModalVisible = true; + } + + onBatchDeleteModalCancel() { + this.isBatchDeleteModalVisible = false; + } + + onBatchDeleteModalOk() { + this.deleteBulletinDefines(this.deleteBulletinNames); + this.isBatchDeleteModalOkLoading = false; + this.isBatchDeleteModalVisible = false; + } + + protected readonly Array = Array; + + onTabChange($event: number) { + this.bulletinName = this.tabs[$event]; + this.metricsData = []; + this.loadData(this.pageIndex - 1, this.pageSize); + console.log(this.metricsData); + } +} diff --git a/web-app/src/app/routes/dashboard/dashboard.component.html b/web-app/src/app/routes/dashboard/dashboard.component.html index f5ca85ae1d8..ccbf4c627a8 100644 --- a/web-app/src/app/routes/dashboard/dashboard.component.html +++ b/web-app/src/app/routes/dashboard/dashboard.component.html @@ -328,55 +328,63 @@
- - - - -
- - {{ - item.collector.status == 0 ? ('monitor.collector.status.online' | i18n) : ('monitor.collector.status.offline' | i18n) - }} - -
-
- -
- - {{ item.pinMonitorNum + item.dispatchMonitorNum }} - -
- {{ 'collector.pinned' | i18n }}: {{ item.pinMonitorNum }} - {{ 'collector.dispatched' | i18n }}: {{ item.dispatchMonitorNum }} -
-
- -
- {{ - (item.collector.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss')?.trim() - }} -
-
- -
- {{ item.collector.ip }} -
-
- -
- {{ item.collector.name }} -
-
-
-
+ {{ 'collector' | i18n }} : {{ item.collector.name }} + + + + + + + + + + +
+ + {{ item.collector.status == 0 ? ('monitor.collector.status.online' | i18n) : ('monitor.collector.status.offline' | i18n) }} + +
+
+ +
+ + {{ item.pinMonitorNum + item.dispatchMonitorNum }} + +
+ {{ 'collector.pinned' | i18n }}: {{ item.pinMonitorNum }} + {{ 'collector.dispatched' | i18n }}: {{ item.dispatchMonitorNum }} +
+
+ +
+ {{ + (item.collector.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss')?.trim() + }} +
+
+ +
+ {{ item.collector.ip }} +
+
+ +
+ {{ item.collector.name }} +
+
diff --git a/web-app/src/app/routes/dashboard/dashboard.component.less b/web-app/src/app/routes/dashboard/dashboard.component.less index 1d2eadd30b7..9f3455d7ee4 100644 --- a/web-app/src/app/routes/dashboard/dashboard.component.less +++ b/web-app/src/app/routes/dashboard/dashboard.component.less @@ -22,10 +22,7 @@ } } .ant-card-head-title { - padding-top: 6px; - padding-right: 0; - padding-bottom: 6px; - padding-left: 0; + padding: 6px 0px; } .ant-card-head { min-height: 24px; @@ -34,10 +31,7 @@ font-size: 12px; } .ant-card-body { - padding-top: 24px; - padding-right: 24px; - padding-bottom: 6px; - padding-left: 24px; + padding: 24px 24px 6px 24px; } .ant-timeline-item { padding-bottom: 10px; @@ -63,6 +57,11 @@ } } } + .collectors { + .ant-card-body { + padding: 6px; + } + } } [data-theme='dark'] { diff --git a/web-app/src/app/routes/dashboard/dashboard.component.ts b/web-app/src/app/routes/dashboard/dashboard.component.ts index 08f72c9d8a8..5cb78117396 100644 --- a/web-app/src/app/routes/dashboard/dashboard.component.ts +++ b/web-app/src/app/routes/dashboard/dashboard.component.ts @@ -117,7 +117,7 @@ export class DashboardComponent implements OnInit, OnDestroy { this.router.navigate(['/monitors'], { queryParams: { tag: data.text } }); } - // start 大类别数量信息 + // start -- quantitative information summary appCountService: AppCount = new AppCount(); appCountOs: AppCount = new AppCount(); appCountDb: AppCount = new AppCount(); @@ -159,7 +159,7 @@ export class DashboardComponent implements OnInit, OnDestroy { ] }; - // start 数量全局概览 + // start -- quantity overall overview interval$!: any; appsCountLoading: boolean = true; appsCountTableData: any[] = []; @@ -171,8 +171,9 @@ export class DashboardComponent implements OnInit, OnDestroy { // collector list collectorsLoading: boolean = false; collectors!: CollectorSummary[]; + collectorsTabSelectedIndex = 0; - // 告警列表 + // alert list alerts!: Alert[]; alertContentLoading: boolean = false; @@ -309,7 +310,7 @@ export class DashboardComponent implements OnInit, OnDestroy { data: [ { value: 0, - // 设置单个柱子的样式 + // Set the style of the individual columns itemStyle: { color: '#ffb72b', shadowColor: '#91cc75' @@ -417,9 +418,9 @@ export class DashboardComponent implements OnInit, OnDestroy { apps.forEach(app => { let appName = this.i18nSvc.fanyi(`monitor.app.${app.app}`); this.appsCountTableData.push({ - // 自定义属性 + // custom attribute app: app.app, - // 默认属性 + // default attribute name: appName, value: app.size }); @@ -554,13 +555,13 @@ export class DashboardComponent implements OnInit, OnDestroy { } } - // start 告警分布 + // start -- alarm distribution alertsEChartOption!: EChartsOption; alertsTheme!: EChartsOption; alertsEchartsInstance!: any; alertsLoading: boolean = true; - // start 告警处理率 + // start -- alarm processing rate alertsDealEChartOption!: EChartsOption; alertsDealTheme!: EChartsOption; alertsDealEchartsInstance!: any; diff --git a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts index 400bc662efc..2c8fd5ee2b0 100644 --- a/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts +++ b/web-app/src/app/routes/monitor/monitor-data-chart/monitor-data-chart.component.ts @@ -51,8 +51,9 @@ export class MonitorDataChartComponent implements OnInit { lineHistoryTheme!: EChartsOption; loading: boolean = true; echartsInstance!: any; - // 查询历史数据时间段 默认最近6小时 + // Default historical data period is last 6 hours timePeriod: string = '6h'; + constructor(private monitorSvc: MonitorService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService) {} ngOnInit(): void { @@ -228,7 +229,7 @@ export class MonitorDataChartComponent implements OnInit { if (isInterval == undefined) { isInterval = false; } - // 读取指标历史数据 + // load historical metrics data this.loading = true; let metricData$ = this.monitorSvc .getMonitorMetricHistoryData(this.monitorId, this.app, this.metrics, this.metric, this.timePeriod, isInterval) diff --git a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html index 019ef5535a2..5817a3fecdc 100644 --- a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html +++ b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.html @@ -17,152 +17,159 @@ ~ under the License. --> - -
-
-

ID

-

{{ monitorId }}

-
-
-

{{ 'monitors.detail.name' | i18n }}

-

{{ monitor.name }}

-
-
-

HOST

-

{{ monitor.host }}

-
-
-

{{ 'monitors.detail.port' | i18n }}

-

{{ port }}

-
-
-

{{ 'monitors.detail.description' | i18n }}

-

{{ monitor.description }}

-
-
-

{{ 'monitors.detail.status' | i18n }}

-
- - - {{ 'monitor.status.paused' | i18n }} - - - - {{ 'monitor.status.up' | i18n }} - - - - {{ 'monitor.status.down' | i18n }} - + + + + +
+
+

ID

+

{{ monitorId }}

+
+
+

{{ 'monitors.detail.name' | i18n }}

+

{{ monitor.name }}

+
+
+

HOST

+

{{ monitor.host }}

+
+
+

{{ 'monitors.detail.port' | i18n }}

+

{{ port }}

+
+
+

{{ 'monitors.detail.description' | i18n }}

+

{{ monitor.description }}

+
+
+

{{ 'monitors.detail.status' | i18n }}

+
+ + + {{ 'monitor.status.paused' | i18n }} + + + + {{ 'monitor.status.up' | i18n }} + + + + {{ 'monitor.status.down' | i18n }} + +
+
+
+

{{ 'monitor.intervals' | i18n }}

+

{{ monitor.intervals }}s

+
+
+

{{ 'common.new-time' | i18n }}

+

{{ monitor.gmtCreate | date : 'YYYY-MM-dd HH:mm:ss' }}

+
+
+

{{ 'common.edit-time' | i18n }}

+

{{ monitor.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss' }}

-
-

{{ 'monitor.intervals' | i18n }}

-

{{ monitor.intervals }}s

-
-
-

{{ 'common.new-time' | i18n }}

-

{{ monitor.gmtCreate | date : 'YYYY-MM-dd HH:mm:ss' }}

-
-
-

{{ 'common.edit-time' | i18n }}

-

{{ monitor.gmtUpdate | date : 'YYYY-MM-dd HH:mm:ss' }}

-
-
- - - - - {{ 'monitor.app.' + app + '.metrics.' + metrics + '.metric.' + field.name | i18nElse : field.name }} - - - - - - - {{ value.origin }} - {{ 'monitors.detail.value.null' | i18n }} - {{ fields[i].unit }} - - - - - - - - {{ 'common.name' | i18n }} - {{ 'common.value' | i18n }} - - - - - - {{ 'monitor.app.' + app + '.metrics.' + metrics + '.metric.' + field.name | i18nElse : field.name }} - - {{ rowValues[i].origin }} - {{ 'monitors.detail.value.null' | i18n }} - {{ field.unit }} - - - - - + + + + + {{ 'monitor.app.' + app + '.metrics.' + metrics + '.metric.' + field.name | i18nElse : field.name }} + + + + + + + + + {{ value.origin }} + {{ 'monitors.detail.value.null' | i18n }} + {{ fields[i].unit }} + + + + + + + + + {{ 'common.name' | i18n }} + {{ 'common.value' | i18n }} + + + + + + {{ 'monitor.app.' + app + '.metrics.' + metrics + '.metric.' + field.name | i18nElse : field.name }} + + {{ rowValues[i].origin }} + {{ 'monitors.detail.value.null' | i18n }} + {{ field.unit }} + + + + + +

@@ -175,10 +182,41 @@ -

- - - {{ 'monitors.collect.time' | i18n }}: {{ time | _date : 'HH:mm:ss' }} - +
+
+ + + {{ 'monitors.collect.time' | i18n }}: {{ time | _date : 'HH:mm:ss' }} + +
+
+ +
+
+ + + +
+ +
+
+ + + {{ ('monitors.collect.time.tip' | i18n) + ': ' + (time | _date : 'yyyy-MM-dd HH:mm:ss') }} + +
+
+
+ + + diff --git a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.less b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.less index 7cc3fe6fafd..5f1d96d10e5 100644 --- a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.less +++ b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.less @@ -4,9 +4,9 @@ p { word-break: break-all; } -// angular 修改第三方子组件样式 -// :host 表示选择当前的组件## -// ::ng-deep 可以忽略中间className的嵌套层级关系。直接找到你要修改的className## +// angular modify the style of a third-party subcomponent +// :host indicates that the current component is selected## +// ::ng-deep The nested hierarchy of the middle className can be ignored. Find the className you want to modify directly## :host ::ng-deep { .ant-card-head-title { padding: 16px 0 4px 0; @@ -14,4 +14,7 @@ p { .ant-table-body { overflow-y: auto!important; } + .ant-card { + margin-bottom: inherit; + } } diff --git a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.ts b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.ts index d416c5c3df2..a2a66783670 100644 --- a/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.ts +++ b/web-app/src/app/routes/monitor/monitor-data-table/monitor-data-table.component.ts @@ -36,7 +36,8 @@ export class MonitorDataTableComponent implements OnInit { set monitorId(monitorId: number) { this._monitorId = monitorId; if (this._monitorId && this.metrics) { - // 需将monitorId作为输入参数的最后一个 这样在执行loadData时其它入参才有值 + // Make sure the monitorId is the last input parameter + // So that other input parameters are filled in before loadData is executed this.loadData(); } } @@ -52,6 +53,7 @@ export class MonitorDataTableComponent implements OnInit { @Input() height: string = '100%'; + showModal!: boolean; time!: any; fields!: any[]; valueRows!: any[]; @@ -68,7 +70,7 @@ export class MonitorDataTableComponent implements OnInit { loadData() { this.loading = true; - // 读取实时指标数据 + // Read real-time metrics data let metricData$ = this.monitorSvc .getMonitorMetricsData(this.monitorId, this.metrics) .pipe(finalize(() => (this.loading = false))) diff --git a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.less b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.less index e216479b966..c7cc8f28d18 100644 --- a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.less +++ b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.less @@ -43,6 +43,3 @@ p { width: calc(50% - 4px); } } -.lists > .card { - height: 400px; -} diff --git a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.ts b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.ts index 228557ecbb0..103b72b794a 100644 --- a/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.ts +++ b/web-app/src/app/routes/monitor/monitor-detail/monitor-detail.component.ts @@ -69,13 +69,13 @@ export class MonitorDetailComponent implements OnInit, OnDestroy { this.isSpinning = true; this.showBasic = false; this.whichTabIndex = 1; - // 检测历史数据服务是否可用 + // detect if historical data service is available const detectStatus$ = this.monitorSvc .getWarehouseStorageServerStatus() .pipe( switchMap((message: Message) => { if (message.code == 0) { - // 查询过滤出此监控下可计算聚合的数字指标 + // Filter the numerical metrics that can be aggregated under this monitor if (this.app == 'push') { return this.appDefineSvc.getPushDefine(this.monitorId); } else if (this.app == 'prometheus') { @@ -84,7 +84,7 @@ export class MonitorDetailComponent implements OnInit, OnDestroy { return this.appDefineSvc.getAppDefine(this.app); } } else { - // 不提供历史图表服务 + // historical data service is unavailable return throwError(message.msg); } }) @@ -143,7 +143,6 @@ export class MonitorDetailComponent implements OnInit, OnDestroy { this.monitor = message.data.monitor; this.app = this.monitor?.app; let params: Param[] = message.data.params; - // 取出端口信息 params.forEach(param => { if (param.field === 'port') { this.port = Number(param.paramValue); diff --git a/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.html b/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.html index 922964404f9..40cb5f49c99 100644 --- a/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.html +++ b/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.html @@ -35,6 +35,7 @@ [paramDefines]="paramDefines" [advancedParams]="advancedParams" [advancedParamDefines]="advancedParamDefines" + [paramValueMap]="paramValueMap" [collector]="collector" [collectors]="collectors" (formCancel)="onCancel()" diff --git a/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.ts b/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.ts index 72ff1bebe18..86733985511 100644 --- a/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.ts +++ b/web-app/src/app/routes/monitor/monitor-edit/monitor-edit.component.ts @@ -57,7 +57,7 @@ export class MonitorEditComponent implements OnInit { params!: Param[]; advancedParamDefines!: ParamDefine[]; advancedParams!: Param[]; - paramValueMap = new Map(); + paramValueMap!: Map; monitor = new Monitor(); collectors!: Collector[]; collector: string = ''; @@ -72,20 +72,22 @@ export class MonitorEditComponent implements OnInit { this.isSpinning = true; let id = paramMap.get('monitorId'); this.monitor.id = Number(id); - // 查询监控信息 + // query monitor by id return this.monitorSvc.getMonitor(this.monitor.id); }) ) .pipe( switchMap((message: Message) => { if (message.code === 0) { + let paramValueMap = new Map(); this.monitor = message.data.monitor; this.collector = message.data.collector == null ? '' : message.data.collector; this.titleSvc.setTitleByI18n(`monitor.app.${this.monitor.app}`); if (message.data.params != null) { message.data.params.forEach((item: Param) => { - this.paramValueMap.set(item.field, item); + paramValueMap.set(item.field, item); }); + this.paramValueMap = paramValueMap; } this.detected = false; if (this.monitor.tags == undefined) { @@ -102,10 +104,10 @@ export class MonitorEditComponent implements OnInit { .pipe( switchMap(message => { if (message.code === 0) { - this.params = []; - this.advancedParams = []; - this.paramDefines = []; - this.advancedParamDefines = []; + let params: Param[] = []; + let advancedParams: Param[] = []; + let paramDefines: ParamDefine[] = []; + let advancedParamDefines: ParamDefine[] = []; message.data.forEach(define => { let param = this.paramValueMap.get(define.field); if (param === undefined) { @@ -144,11 +146,11 @@ export class MonitorEditComponent implements OnInit { } define.name = this.i18nSvc.fanyi(`monitor.app.${this.monitor.app}.param.${define.field}`); if (define.hide) { - this.advancedParams.push(param); - this.advancedParamDefines.push(define); + advancedParams.push(param); + advancedParamDefines.push(define); } else { - this.params.push(param); - this.paramDefines.push(define); + params.push(param); + paramDefines.push(define); } if ( define.field == 'host' && @@ -158,8 +160,10 @@ export class MonitorEditComponent implements OnInit { this.hostName = define.name; } }); - this.onPageInit(); - this.detectDepend(); + this.params = [...params]; + this.advancedParams = [...advancedParams]; + this.paramDefines = [...paramDefines]; + this.advancedParamDefines = [...advancedParamDefines]; } else { console.warn(message.msg); } @@ -182,53 +186,11 @@ export class MonitorEditComponent implements OnInit { ); } - onPageInit() { - this.paramDefines.forEach((paramDefine, index) => { - this.params[index].display = true; - }); - this.advancedParamDefines.forEach((advancedParamDefine, index) => { - this.advancedParams[index].display = true; - }); - } - - detectDepend() { - this.paramDefines.forEach((paramDefine, index) => { - if (paramDefine.type == 'radio') { - this.onDependChanged(this.paramValueMap.get(paramDefine.field)?.paramValue, paramDefine.field); - } - }); - } - - onDependChanged(dependValue: string, dependField: string) { - this.paramDefines.forEach((paramDefine, index) => { - if (paramDefine.depend) { - let fieldValues = new Map(Object.entries(paramDefine.depend)).get(dependField); - if (fieldValues) { - this.params[index].display = false; - if (fieldValues.map(String).includes(dependValue)) { - this.params[index].display = true; - } - } - } - }); - this.advancedParamDefines.forEach((advancedParamDefine, index) => { - if (advancedParamDefine.depend) { - let fieldValues = new Map(Object.entries(advancedParamDefine.depend)).get(dependField); - if (fieldValues) { - this.advancedParams[index].display = false; - if (fieldValues.map(String).includes(dependValue)) { - this.advancedParams[index].display = true; - } - } - } - }); - } - onSubmit(info: any) { let addMonitor = { detected: this.detected, monitor: info.monitor, - collector: this.collector, + collector: info.collector, params: info.params.concat(info.advancedParams) }; if (this.detected) { @@ -258,7 +220,7 @@ export class MonitorEditComponent implements OnInit { let detectMonitor = { detected: this.detected, monitor: info.monitor, - collector: this.collector, + collector: info.collector, params: info.params.concat(info.advancedParams) }; this.spinningTip = this.i18nSvc.fanyi('monitors.spinning-tip.detecting'); diff --git a/web-app/src/app/routes/monitor/monitor-form/monitor-form.component.html b/web-app/src/app/routes/monitor/monitor-form/monitor-form.component.html index c44f49a3e4c..c96cf1197a3 100644 --- a/web-app/src/app/routes/monitor/monitor-form/monitor-form.component.html +++ b/web-app/src/app/routes/monitor/monitor-form/monitor-form.component.html @@ -20,49 +20,60 @@
- + + {{ hostName ? hostName : ('monitor.host' | i18n) }} + + + + - + + {{ 'monitor.name' | i18n }} + + + + - + + {{ paramDefine.name }} + + + + - + - - - - - - - - - -
diff --git a/web-app/src/app/routes/passport/login/login.component.ts b/web-app/src/app/routes/passport/login/login.component.ts index df9d47aed3d..b4d62a32887 100644 --- a/web-app/src/app/routes/passport/login/login.component.ts +++ b/web-app/src/app/routes/passport/login/login.component.ts @@ -119,8 +119,8 @@ export class UserLoginComponent implements OnDestroy { } } - // 默认配置中对所有HTTP请求都会强制 [校验](https://ng-alain.com/auth/getting-started) 用户 Token - // 然一般来说登录请求不需要校验,因此可以在请求URL加上:`/login?_allow_anonymous=true` 表示不触发用户 Token 校验 + // the default configuration will verify user token by force for all http requests(https://ng-alain.com/auth/getting-started) + // Typically login request does not need to trigger user Token verification, so we can add `_allow_anonymous=true` in the request URL this.loading = true; this.cdr.detectChanges(); this.http @@ -141,9 +141,9 @@ export class UserLoginComponent implements OnDestroy { this.cdr.detectChanges(); return; } - // 清空路由复用信息 + // clear route multiplexing this.reuseTabService.clear(); - // 设置用户Token信息 + // set up user Token this.storageSvc.storageAuthorizationToken(message.data.token); this.storageSvc.storageRefreshToken(message.data.refreshToken); let user: User = { @@ -153,7 +153,7 @@ export class UserLoginComponent implements OnDestroy { role: message.data.role }; this.settingsService.setUser(user); - // 重新获取 StartupService 内容,我们始终认为应用信息一般都会受当前用户授权范围而影响 + // Regain StartupService info, app info is normally affected by the current user authorization scope this.startupSrv.load().subscribe(() => { let url = this.tokenService.referrer!.url || '/'; if (url.includes('/passport')) { diff --git a/web-app/src/app/routes/routes-routing.module.ts b/web-app/src/app/routes/routes-routing.module.ts index b8a87eb0f3d..f4f86a0b956 100644 --- a/web-app/src/app/routes/routes-routing.module.ts +++ b/web-app/src/app/routes/routes-routing.module.ts @@ -6,6 +6,7 @@ import { DetectAuthGuard } from '../core/guard/detect-auth-guard'; import { LayoutBasicComponent } from '../layout/basic/basic.component'; import { LayoutBlankComponent } from '../layout/blank/blank.component'; import { LayoutPassportComponent } from '../layout/passport/passport.component'; +import { BulletinComponent } from './bulletin/bulletin.component'; import { DashboardComponent } from './dashboard/dashboard.component'; import { UserLockComponent } from './passport/lock/lock.component'; import { UserLoginComponent } from './passport/login/login.component'; @@ -19,6 +20,7 @@ const routes: Routes = [ children: [ { path: '', redirectTo: 'dashboard', pathMatch: 'full' }, { path: 'dashboard', component: DashboardComponent, data: { titleI18n: 'menu.dashboard' } }, + { path: 'bulletin', component: BulletinComponent, data: { titleI18n: 'menu.dashboard' } }, { path: 'exception', loadChildren: () => import('./exception/exception.module').then(m => m.ExceptionModule) }, { path: 'monitors', loadChildren: () => import('./monitor/monitor.module').then(m => m.MonitorModule) }, { path: 'alert', loadChildren: () => import('./alert/alert.module').then(m => m.AlertModule) }, diff --git a/web-app/src/app/routes/routes.module.ts b/web-app/src/app/routes/routes.module.ts index 0d45cb6401e..37999b486b5 100644 --- a/web-app/src/app/routes/routes.module.ts +++ b/web-app/src/app/routes/routes.module.ts @@ -1,24 +1,32 @@ +import { CommonModule } from '@angular/common'; import { NgModule, Type } from '@angular/core'; // eslint-disable-next-line import/order import { SharedModule } from '@shared'; import { TagCloudComponent } from 'angular-tag-cloud-module'; +import { NzCascaderModule } from 'ng-zorro-antd/cascader'; import { NzCollapseModule } from 'ng-zorro-antd/collapse'; import { NzDividerModule } from 'ng-zorro-antd/divider'; import { NzListModule } from 'ng-zorro-antd/list'; +import { NzRadioModule } from 'ng-zorro-antd/radio'; +import { NzSwitchComponent } from 'ng-zorro-antd/switch'; import { NzTagModule } from 'ng-zorro-antd/tag'; import { NzTimelineModule } from 'ng-zorro-antd/timeline'; +import { NzTransferModule } from 'ng-zorro-antd/transfer'; +import { NzTreeComponent } from 'ng-zorro-antd/tree'; +import { NzUploadModule } from 'ng-zorro-antd/upload'; import { NgxEchartsModule } from 'ngx-echarts'; import { SlickCarouselModule } from 'ngx-slick-carousel'; import { LayoutModule } from '../layout/layout.module'; +import { BulletinComponent } from './bulletin/bulletin.component'; import { DashboardComponent } from './dashboard/dashboard.component'; import { UserLockComponent } from './passport/lock/lock.component'; import { UserLoginComponent } from './passport/login/login.component'; import { RouteRoutingModule } from './routes-routing.module'; import { StatusPublicComponent } from './status-public/status-public.component'; -const COMPONENTS: Array> = [DashboardComponent, UserLoginComponent, UserLockComponent, StatusPublicComponent]; +const COMPONENTS: Array> = [DashboardComponent, UserLoginComponent, UserLockComponent, StatusPublicComponent, BulletinComponent]; @NgModule({ imports: [ @@ -32,7 +40,14 @@ const COMPONENTS: Array> = [DashboardComponent, UserLoginComponent, U NzDividerModule, LayoutModule, NzCollapseModule, - NzListModule + NzListModule, + CommonModule, + NzRadioModule, + NzUploadModule, + NzCascaderModule, + NzTransferModule, + NzSwitchComponent, + NzTreeComponent ], declarations: COMPONENTS }) diff --git a/web-app/src/app/routes/setting/collector/collector.component.html b/web-app/src/app/routes/setting/collector/collector.component.html index b2db37b778b..c2cce31c70a 100644 --- a/web-app/src/app/routes/setting/collector/collector.component.html +++ b/web-app/src/app/routes/setting/collector/collector.component.html @@ -181,13 +181,12 @@ [nzTitle]="'collector.deploy' | i18n" (nzOnCancel)="onDeployCollectorClose()" nzMaskClosable="false" - [nzFooter]="null" nzWidth="45%" [nzOkLoading]="isDeployCollectorModalOkLoading" >
- + {{ 'collector.name' | i18n }} -
- -
-
-
+ +
{{ 'collector.deploy.identity' | i18n }}
@@ -261,12 +249,21 @@ [nzEditorOption]="{ language: 'yaml', theme: 'vs-dark', folding: true }" >
- -
- -
+
+ + +
diff --git a/web-app/src/app/routes/setting/collector/collector.component.ts b/web-app/src/app/routes/setting/collector/collector.component.ts index c4257d8245d..d047f8db36d 100644 --- a/web-app/src/app/routes/setting/collector/collector.component.ts +++ b/web-app/src/app/routes/setting/collector/collector.component.ts @@ -17,7 +17,8 @@ * under the License. */ -import { Component, Inject, OnInit } from '@angular/core'; +import { Component, Inject, OnInit, ViewChild } from '@angular/core'; +import { NgForm } from '@angular/forms'; import { I18NService } from '@core'; import { ALAIN_I18N_TOKEN } from '@delon/theme'; import { NzMessageService } from 'ng-zorro-antd/message'; @@ -42,13 +43,14 @@ export class CollectorComponent implements OnInit { @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService ) {} + @ViewChild('deployForm', { static: false }) deployForm: NgForm | undefined; pageIndex: number = 1; pageSize: number = 8; total: number = 0; collectors!: CollectorSummary[]; tableLoading: boolean = false; checkedCollectors = new Set(); - // 搜索过滤相关属性 + // used for filtering collector name search: string | undefined; ngOnInit(): void { @@ -243,7 +245,7 @@ export class CollectorComponent implements OnInit { ); } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -265,7 +267,7 @@ export class CollectorComponent implements OnInit { this.pageSize = pageSize; this.loadCollectorsTable(); } - // end: 列表多选分页逻辑 + // end: List multiple choice paging // start deploy collector model isDeployCollectorModalVisible = false; @@ -286,7 +288,13 @@ export class CollectorComponent implements OnInit { } onDeployCollectorModalOk() { - if (this.collector == '' || this.collector == undefined) { + if (this.deployForm?.invalid) { + Object.values(this.deployForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); return; } this.isDeployCollectorModalOkLoading = true; diff --git a/web-app/src/app/routes/setting/plugins/plugin.component.html b/web-app/src/app/routes/setting/plugins/plugin.component.html index 3eec55b2462..4bf3bffd295 100644 --- a/web-app/src/app/routes/setting/plugins/plugin.component.html +++ b/web-app/src/app/routes/setting/plugins/plugin.component.html @@ -92,6 +92,9 @@
+
+ + +
+
+ + + {{ paramDefine.name }} + + + + + +
+
+
diff --git a/web-app/src/app/routes/setting/plugins/plugin.component.ts b/web-app/src/app/routes/setting/plugins/plugin.component.ts index b07239abb8f..142a7533f49 100644 --- a/web-app/src/app/routes/setting/plugins/plugin.component.ts +++ b/web-app/src/app/routes/setting/plugins/plugin.component.ts @@ -27,6 +27,7 @@ import { NzTableQueryParams } from 'ng-zorro-antd/table'; import { NzUploadFile } from 'ng-zorro-antd/upload'; import { finalize } from 'rxjs/operators'; +import { ParamDefine } from '../../../pojo/ParamDefine'; import { Plugin } from '../../../pojo/Plugin'; import { PluginService } from '../../../service/plugin.service'; @@ -47,8 +48,10 @@ export class SettingPluginsComponent implements OnInit { jarFile: [null, [Validators.required]], enableStatus: [true, [Validators.required]] }); + this.lang = this.i18nSvc.defaultLang; } + lang: string; pageIndex: number = 1; pageSize: number = 8; total: number = 0; @@ -76,6 +79,13 @@ export class SettingPluginsComponent implements OnInit { return false; }; + fileRemove = (): boolean => { + this.pluginForm.patchValue({ + jarFile: null + }); + return true; + }; + loadPluginsTable() { this.tableLoading = true; let pluginsInit$ = this.pluginService.loadPlugins(this.search, 1, this.pageIndex - 1, this.pageSize).subscribe( @@ -186,7 +196,7 @@ export class SettingPluginsComponent implements OnInit { this.pageIndex = this.pageIndex > lastPage ? lastPage : this.pageIndex; } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { @@ -232,17 +242,24 @@ export class SettingPluginsComponent implements OnInit { formData.append('name', this.pluginForm.get('name')?.value); formData.append('jarFile', this.fileList[0] as any); formData.append('enableStatus', this.pluginForm.get('enableStatus')?.value); - this.pluginService.uploadPlugin(formData).subscribe((message: any) => { - if (message.code === 0) { - this.isManageModalVisible = false; - this.resetForm(); - this.notifySvc.success(this.i18nSvc.fanyi('common.notify.new-success'), ''); - this.loadPluginsTable(); - } else { - this.notifySvc.error(this.i18nSvc.fanyi('common.notify.new-fail'), message.msg); - } - this.isManageModalOkLoading = false; - }); + const uploadPlugin$ = this.pluginService + .uploadPlugin(formData) + .pipe( + finalize(() => { + uploadPlugin$.unsubscribe(); + this.isManageModalOkLoading = false; + }) + ) + .subscribe((message: any) => { + if (message.code === 0) { + this.isManageModalVisible = false; + this.resetForm(); + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.new-success'), ''); + this.loadPluginsTable(); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.new-fail'), message.msg); + } + }); } else { Object.values(this.pluginForm.controls).forEach(control => { if (control.invalid) { @@ -250,6 +267,7 @@ export class SettingPluginsComponent implements OnInit { control.updateValueAndValidity({ onlySelf: true }); } }); + this.isManageModalOkLoading = false; } } @@ -260,4 +278,63 @@ export class SettingPluginsComponent implements OnInit { }); this.fileList = []; } + + params: any = {}; + paramDefines!: ParamDefine[]; + isEditPluginParamDefineModalVisible = false; + + onEditPluginParamDefine(pluginId: number) { + const getPluginParamDefine$ = this.pluginService + .getPluginParamDefine(pluginId) + .pipe( + finalize(() => { + getPluginParamDefine$.unsubscribe(); + }) + ) + .subscribe((message: any) => { + if (message.code === 0) { + this.paramDefines = message.data.paramDefines.map((i: any) => { + this.params[i.field] = { + pluginMetadataId: pluginId, + // Parameter type 0: number 1: string 2: encrypted string 3: json string mapped by map + type: i.type === 'number' ? 0 : i.type === 'text' || i.type === 'string' ? 1 : i.type === 'json' ? 3 : 2, + field: i.field, + paramValue: this.getParamValue(message.data.pluginParams, i.field) + }; + i.name = i.name[this.lang]; + return i; + }); + this.isEditPluginParamDefineModalVisible = true; + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.edit-fail'), message.msg); + } + }); + } + + onEditPluginParamDefineModalCancel() { + this.isEditPluginParamDefineModalVisible = false; + } + + onEditPluginParamDefineModalOk() { + const savePluginParamDefine$ = this.pluginService + .savePluginParamDefine(Object.values(this.params)) + .pipe( + finalize(() => { + savePluginParamDefine$.unsubscribe(); + }) + ) + .subscribe((message: any) => { + if (message.code === 0) { + this.isEditPluginParamDefineModalVisible = false; + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.edit-success'), ''); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.edit-fail'), message.msg); + } + }); + } + + getParamValue(pluginParams: any[], field: string) { + const pluginParam = (pluginParams || []).filter((i: any) => i.field === field); + return pluginParam.length > 0 ? pluginParam[0].paramValue : null; + } } diff --git a/web-app/src/app/routes/setting/settings/message-server/message-server.component.html b/web-app/src/app/routes/setting/settings/message-server/message-server.component.html index 4fd77b216b1..dc23399183b 100644 --- a/web-app/src/app/routes/setting/settings/message-server/message-server.component.html +++ b/web-app/src/app/routes/setting/settings/message-server/message-server.component.html @@ -33,20 +33,39 @@
{{ 'alert.notice.sender.mail.ssl' | i18n }}: {{ emailSender.emailSsl ? ('common.yes' | i18n) : ('common.no' | i18n) }}
+ {{ 'alert.notice.sender.mail.starttls' | i18n }}: {{ emailSender.emailStarttls ? ('common.yes' | i18n) : ('common.no' | i18n) }} +
{{ 'alert.notice.sender.mail.enable' | i18n }}: {{ emailSender.enable ? ('common.yes' | i18n) : ('common.no' | i18n) }} - - - - {{ 'common.button.setting' | i18n }} - + + + {{ 'common.button.setting' | i18n }} - - - - + + + {{ 'alert.notice.sender.sms.type' | i18n }}: {{ 'alert.notice.sender.sms.type.' + smsNoticeSender.type | i18n }} +
+ + {{ 'alert.notice.sender.sms.tencent.secretId' | i18n }}: {{ smsNoticeSender.tencent.secretId }} +
+
+ + {{ 'alert.notice.sender.sms.tencent.secretKey' | i18n }}: {{ smsNoticeSender.tencent.secretKey }} +
+
+ + {{ 'alert.notice.sender.sms.tencent.signName' | i18n }}: {{ smsNoticeSender.tencent.signName }} +
+
+ + {{ 'alert.notice.sender.sms.tencent.appId' | i18n }}: {{ smsNoticeSender.tencent.appId }} +
+
+ + {{ 'alert.notice.sender.sms.tencent.templateId' | i18n }}: {{ smsNoticeSender.tencent.templateId }} +
@@ -80,25 +99,103 @@ {{ 'alert.notice.sender.mail.username' | i18n }} - + {{ 'alert.notice.sender.mail.password' | i18n }} - + {{ 'alert.notice.sender.mail.ssl' | i18n }} - + + + + + {{ 'alert.notice.sender.mail.starttls' | i18n }} + + {{ 'alert.notice.sender.enable' | i18n }} - + + + + +
+ + + + +
+
+ + {{ 'alert.notice.sender.sms.type' | i18n }} + + + + + + + + + + {{ + 'alert.notice.sender.sms.tencent.secretId' | i18n + }} + + + + + + {{ + 'alert.notice.sender.sms.tencent.secretKey' | i18n + }} + + + + + + {{ + 'alert.notice.sender.sms.tencent.signName' | i18n + }} + + + + + + {{ 'alert.notice.sender.sms.tencent.appId' | i18n }} + + + + + + {{ + 'alert.notice.sender.sms.tencent.templateId' | i18n + }} + + + + + + + + {{ 'alert.notice.sender.enable' | i18n }} + +
diff --git a/web-app/src/app/routes/setting/settings/message-server/message-server.component.ts b/web-app/src/app/routes/setting/settings/message-server/message-server.component.ts index 49cbfaaedf2..b919d1a2b63 100644 --- a/web-app/src/app/routes/setting/settings/message-server/message-server.component.ts +++ b/web-app/src/app/routes/setting/settings/message-server/message-server.component.ts @@ -17,12 +17,16 @@ * under the License. */ -import { ChangeDetectorRef, Component, Inject, OnInit } from '@angular/core'; +import { Component, Inject, OnInit, ViewChild } from '@angular/core'; +import { NgForm } from '@angular/forms'; import { I18NService } from '@core'; import { ALAIN_I18N_TOKEN } from '@delon/theme'; import { NzMessageService } from 'ng-zorro-antd/message'; import { NzNotificationService } from 'ng-zorro-antd/notification'; import { finalize } from 'rxjs/operators'; +import { AlibabaSmsConfig } from 'src/app/pojo/AlibabaSmsConfig'; +import { SmsNoticeSender } from 'src/app/pojo/SmsNoticeSender'; +import { TencentSmsConfig } from 'src/app/pojo/TencentSmsConfig'; import { EmailNoticeSender } from '../../../../pojo/EmailNoticeSender'; import { GeneralConfigService } from '../../../../service/general-config.service'; @@ -36,22 +40,25 @@ export class MessageServerComponent implements OnInit { constructor( public msg: NzMessageService, private notifySvc: NzNotificationService, - private cdr: ChangeDetectorRef, private noticeSenderSvc: GeneralConfigService, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService ) {} - senders!: EmailNoticeSender[]; + @ViewChild('senderForm', { static: false }) senderForm: NgForm | undefined; senderServerLoading: boolean = true; loading: boolean = false; isEmailServerModalVisible: boolean = false; + isSmsServerModalVisible: boolean = false; + smsType: string = 'tencent'; emailSender = new EmailNoticeSender(); + smsNoticeSender = new SmsNoticeSender(); ngOnInit(): void { - this.loadSenderServer(); + this.loadEmailSenderServer(); + this.loadSmsSenderServer(); } - loadSenderServer() { + loadEmailSenderServer() { this.senderServerLoading = true; let senderInit$ = this.noticeSenderSvc.getGeneralConfig('email').subscribe( message => { @@ -84,6 +91,15 @@ export class MessageServerComponent implements OnInit { } onSaveEmailServer() { + if (this.senderForm?.invalid) { + Object.values(this.senderForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); + return; + } const modalOk$ = this.noticeSenderSvc .saveGeneralConfig(this.emailSender, 'email') .pipe( @@ -107,4 +123,91 @@ export class MessageServerComponent implements OnInit { } ); } + + loadSmsSenderServer() { + this.senderServerLoading = true; + let senderInit$ = this.noticeSenderSvc.getGeneralConfig('sms').subscribe( + message => { + this.senderServerLoading = false; + if (message.code === 0) { + if (message.data) { + this.smsNoticeSender = message.data; + this.smsType = message.data.type; + } else { + this.smsNoticeSender = new SmsNoticeSender(); + this.smsNoticeSender.type = 'tencent'; + this.smsNoticeSender.tencent = new TencentSmsConfig(); + } + } else { + console.warn(message.msg); + } + senderInit$.unsubscribe(); + }, + error => { + console.error(error.msg); + this.senderServerLoading = false; + senderInit$.unsubscribe(); + } + ); + } + + onConfigSmsServer() { + this.isSmsServerModalVisible = true; + } + + onCancelSmsServer() { + this.isSmsServerModalVisible = false; + } + + onSmsTypeChange(value: string) { + if (value === 'tencent') { + // tencent sms sender + this.smsType = 'tencent'; + this.smsNoticeSender.type = 'tencent'; + } else if (value === 'alibaba') { + // alibaba sms sender + this.smsType = 'alibaba'; + this.smsNoticeSender.type = 'alibaba'; + } + } + + onSaveSmsServer() { + if (this.senderForm?.invalid) { + Object.values(this.senderForm.controls).forEach(control => { + if (control.invalid) { + control.markAsDirty(); + control.updateValueAndValidity({ onlySelf: true }); + } + }); + return; + } + if (this.smsNoticeSender.type === 'tencent') { + this.smsNoticeSender.alibaba = new AlibabaSmsConfig(); + } + if (this.smsNoticeSender.type === 'alibaba') { + this.smsNoticeSender.tencent = new TencentSmsConfig(); + } + const modalOk$ = this.noticeSenderSvc + .saveGeneralConfig(this.smsNoticeSender, 'sms') + .pipe( + finalize(() => { + modalOk$.unsubscribe(); + this.senderServerLoading = false; + }) + ) + .subscribe( + message => { + if (message.code === 0) { + this.isSmsServerModalVisible = false; + this.notifySvc.success(this.i18nSvc.fanyi('common.notify.apply-success'), ''); + } else { + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.apply-fail'), message.msg); + } + }, + error => { + this.isSmsServerModalVisible = false; + this.notifySvc.error(this.i18nSvc.fanyi('common.notify.apply-fail'), error.msg); + } + ); + } } diff --git a/web-app/src/app/routes/setting/settings/object-store/object-store.component.html b/web-app/src/app/routes/setting/settings/object-store/object-store.component.html index 741fe310126..7b7a629ddaa 100644 --- a/web-app/src/app/routes/setting/settings/object-store/object-store.component.html +++ b/web-app/src/app/routes/setting/settings/object-store/object-store.component.html @@ -31,6 +31,7 @@ (ngModelChange)="onChange()" > + diff --git a/web-app/src/app/routes/setting/settings/system-config/system-config.component.ts b/web-app/src/app/routes/setting/settings/system-config/system-config.component.ts index 16aec313486..9f435e3d2a3 100644 --- a/web-app/src/app/routes/setting/settings/system-config/system-config.component.ts +++ b/web-app/src/app/routes/setting/settings/system-config/system-config.component.ts @@ -26,6 +26,7 @@ import { finalize } from 'rxjs/operators'; import { SystemConfig } from '../../../../pojo/SystemConfig'; import { GeneralConfigService } from '../../../../service/general-config.service'; +import { ThemeService } from '../../../../service/theme.service'; @Component({ selector: 'app-system-config', @@ -38,6 +39,7 @@ export class SystemConfigComponent implements OnInit { private notifySvc: NzNotificationService, private configService: GeneralConfigService, private settings: SettingsService, + private themeService: ThemeService, @Inject(DOCUMENT) private doc: any, @Inject(ALAIN_I18N_TOKEN) private i18nSvc: I18NService ) {} @@ -56,7 +58,7 @@ export class SystemConfigComponent implements OnInit { if (message.code === 0) { if (message.data) { this.config = message.data; - this.changeTheme(this.config.theme); // 刷新后更新主题 + this.changeTheme(this.config.theme); // update theme after config is loaded } else { this.config = new SystemConfig(); } @@ -103,22 +105,8 @@ export class SystemConfigComponent implements OnInit { } ); } + changeTheme(theme: string): void { - const style = this.doc.createElement('link'); - style.type = 'text/css'; - style.rel = 'stylesheet'; - if (theme == 'dark') { - style.id = 'dark-theme'; - style.href = 'assets/style.dark.css'; - } else if (theme == 'compact') { - style.id = 'compact-theme'; - style.href = 'assets/style.compact.css'; - } else { - const dom = document.getElementById('dark-theme'); - if (dom) { - dom.remove(); - } - } - this.doc.body.append(style); + this.themeService.changeTheme(theme); } } diff --git a/web-app/src/app/routes/setting/status/status.component.html b/web-app/src/app/routes/setting/status/status.component.html index 51733fa5564..ef0132a97cb 100644 --- a/web-app/src/app/routes/setting/status/status.component.html +++ b/web-app/src/app/routes/setting/status/status.component.html @@ -318,7 +318,7 @@ - + {{ 'common.total' | i18n }} {{ total }} - + (); - // 搜索过滤相关属性 + // used for filtering tag name or tag value search: string | undefined; ngOnInit(): void { @@ -143,7 +143,7 @@ export class SettingTagsComponent implements OnInit { this.pageIndex = this.pageIndex > lastPage ? lastPage : this.pageIndex; } - // begin: 列表多选分页逻辑 + // begin: List multiple choice paging checkedAll: boolean = false; onAllChecked(checked: boolean) { if (checked) { @@ -165,7 +165,7 @@ export class SettingTagsComponent implements OnInit { this.pageSize = pageSize; this.loadTagsTable(); } - // end: 列表多选分页逻辑 + // end: List multiple choice paging // start 新增修改Tag model isManageModalVisible = false; diff --git a/web-app/src/app/service/alert-converge.service.ts b/web-app/src/app/service/alert-converge.service.ts index f0ef0a4684e..45aaff2e60f 100644 --- a/web-app/src/app/service/alert-converge.service.ts +++ b/web-app/src/app/service/alert-converge.service.ts @@ -49,8 +49,8 @@ export class AlertConvergeService { public deleteAlertConverges(convergeIds: Set): Observable> { let httpParams = new HttpParams(); convergeIds.forEach(convergeId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', convergeId); }); const options = { params: httpParams }; @@ -60,7 +60,7 @@ export class AlertConvergeService { public getAlertConverges(search: string, pageIndex: number, pageSize: number): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ sort: 'id', diff --git a/web-app/src/app/service/alert-define.service.ts b/web-app/src/app/service/alert-define.service.ts index 522368e7d58..d602eca2d38 100644 --- a/web-app/src/app/service/alert-define.service.ts +++ b/web-app/src/app/service/alert-define.service.ts @@ -59,8 +59,8 @@ export class AlertDefineService { public deleteAlertDefines(alertDefineIds: Set): Observable> { let httpParams = new HttpParams(); alertDefineIds.forEach(alertDefineId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', alertDefineId); }); const options = { params: httpParams }; @@ -70,7 +70,7 @@ export class AlertDefineService { public getAlertDefines(search: string | undefined, pageIndex: number, pageSize: number): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ sort: 'id', @@ -88,8 +88,8 @@ export class AlertDefineService { public exportAlertDefines(defineIds: Set, type: string): Observable> { let httpParams = new HttpParams(); defineIds.forEach(defineId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', defineId); }); httpParams = httpParams.append('type', type); diff --git a/web-app/src/app/service/alert-silence.service.ts b/web-app/src/app/service/alert-silence.service.ts index c420eb76813..035968c73f1 100644 --- a/web-app/src/app/service/alert-silence.service.ts +++ b/web-app/src/app/service/alert-silence.service.ts @@ -49,8 +49,8 @@ export class AlertSilenceService { public deleteAlertSilences(silenceIds: Set): Observable> { let httpParams = new HttpParams(); silenceIds.forEach(silenceId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', silenceId); }); const options = { params: httpParams }; @@ -60,7 +60,7 @@ export class AlertSilenceService { public getAlertSilences(search: string, pageIndex: number, pageSize: number): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ sort: 'id', diff --git a/web-app/src/app/service/alert.service.ts b/web-app/src/app/service/alert.service.ts index e65e644a703..248b632750d 100644 --- a/web-app/src/app/service/alert.service.ts +++ b/web-app/src/app/service/alert.service.ts @@ -45,7 +45,7 @@ export class AlertService { ): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ sort: 'id', @@ -69,8 +69,8 @@ export class AlertService { public deleteAlerts(alertIds: Set): Observable> { let httpParams = new HttpParams(); alertIds.forEach(alertId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', alertId); }); const options = { params: httpParams }; @@ -84,8 +84,8 @@ export class AlertService { public applyAlertsStatus(alertIds: Set, status: number): Observable> { let httpParams = new HttpParams(); alertIds.forEach(alertId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', alertId); }); const options = { params: httpParams }; diff --git a/web-app/src/app/service/app-define.service.ts b/web-app/src/app/service/app-define.service.ts index a68a1998a38..a832fd40d2e 100644 --- a/web-app/src/app/service/app-define.service.ts +++ b/web-app/src/app/service/app-define.service.ts @@ -97,4 +97,22 @@ export class AppDefineService { const options = { params: httpParams }; return this.http.get>(app_hierarchy, options); } + + public getAppHierarchyByName(lang: string | undefined, app: string): Observable> { + if (lang == undefined) { + lang = 'en_US'; + } + let httpParams = new HttpParams().append('lang', lang); + const options = { params: httpParams }; + return this.http.get>(`${app_hierarchy}/${app}`, options); + } + + public getAppDefines(lang: string | undefined): Observable> { + if (lang == undefined) { + lang = 'en_US'; + } + let httpParams = new HttpParams().append('lang', lang); + const options = { params: httpParams }; + return this.http.get>(`/apps/defines`, options); + } } diff --git a/web-app/src/app/service/bulletin-define.service.ts b/web-app/src/app/service/bulletin-define.service.ts new file mode 100644 index 00000000000..cd92c4c53eb --- /dev/null +++ b/web-app/src/app/service/bulletin-define.service.ts @@ -0,0 +1,87 @@ +/* + * 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. + */ + +import { HttpClient, HttpParams } from '@angular/common/http'; +import { Injectable } from '@angular/core'; +import { Observable } from 'rxjs'; + +import { BulletinDefine } from '../pojo/BulletinDefine'; +import { Message } from '../pojo/Message'; +import { Monitor } from '../pojo/Monitor'; +import { Page } from '../pojo/Page'; + +const bulletin_define_uri = '/bulletin'; + +@Injectable({ + providedIn: 'root' +}) +export class BulletinDefineService { + constructor(private http: HttpClient) {} + + public newBulletinDefine(body: BulletinDefine) { + return this.http.post>(bulletin_define_uri, body); + } + + public editBulletinDefine(body: BulletinDefine) { + return this.http.put>(bulletin_define_uri, body); + } + + public getBulletinDefine(name: string) { + return this.http.get>(`${bulletin_define_uri}/${name}`); + } + + public deleteBulletinDefines(names: string[]): Observable> { + let params = new HttpParams(); + names.forEach(name => { + params = params.append('names', name); + }); + + return this.http.delete>(bulletin_define_uri, { params }); + } + + public getMonitorMetricsData( + name: string, + pageIndex: number, + pageSize: number, + sortField?: string | null, + sortOrder?: string | null + ): Observable>> { + pageIndex = pageIndex ? pageIndex : 0; + pageSize = pageSize ? pageSize : 8; + // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + let httpParams = new HttpParams(); + httpParams = httpParams.appendAll({ + name: name, + pageIndex: pageIndex, + pageSize: pageSize + }); + if (sortField != null && sortOrder != null) { + httpParams = httpParams.appendAll({ + sort: sortField, + order: sortOrder == 'ascend' ? 'asc' : 'desc' + }); + } + const options = { params: httpParams }; + return this.http.get>(`${bulletin_define_uri}/metrics`, options); + } + + public getAllNames(): Observable> { + return this.http.get>(`${bulletin_define_uri}/names`); + } +} diff --git a/web-app/src/app/service/collector.service.ts b/web-app/src/app/service/collector.service.ts index 6344c8d1618..67a31ea503a 100644 --- a/web-app/src/app/service/collector.service.ts +++ b/web-app/src/app/service/collector.service.ts @@ -40,7 +40,7 @@ export class CollectorService { public queryCollectors(search: string | undefined, pageIndex: number, pageSize: number): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ pageIndex: pageIndex, @@ -56,32 +56,30 @@ export class CollectorService { public goOnlineCollector(collectors: Set): Observable> { let httpParams = new HttpParams(); collectors.forEach(collector => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('collectors', collector); }); const options = { params: httpParams }; - // 修复上下线接口调用异常问题 miki return this.http.put>(`${collector_uri}/online`, null, options); } public goOfflineCollector(collectors: Set): Observable> { let httpParams = new HttpParams(); collectors.forEach(collector => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('collectors', collector); }); const options = { params: httpParams }; - // 修复上下线接口调用异常问题 miki return this.http.put>(`${collector_uri}/offline`, null, options); } public deleteCollector(collectors: Set): Observable> { let httpParams = new HttpParams(); collectors.forEach(collector => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('collectors', collector); }); const options = { params: httpParams }; diff --git a/web-app/src/app/service/monitor.service.ts b/web-app/src/app/service/monitor.service.ts index e61c9b4e5f6..ba215cb514c 100644 --- a/web-app/src/app/service/monitor.service.ts +++ b/web-app/src/app/service/monitor.service.ts @@ -47,6 +47,10 @@ export class MonitorService { return this.http.put>(monitor_uri, body); } + public getMonitorByApp(app: string): Observable> { + return this.http.get>(`${monitor_uri}/metric/${app}`); + } + public deleteMonitor(monitorId: number): Observable> { return this.http.delete>(`${monitor_uri}/${monitorId}`); } @@ -54,8 +58,8 @@ export class MonitorService { public deleteMonitors(monitorIds: Set): Observable> { let httpParams = new HttpParams(); monitorIds.forEach(monitorId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', monitorId); }); const options = { params: httpParams }; @@ -65,8 +69,8 @@ export class MonitorService { public exportMonitors(monitorIds: Set, type: string): Observable> { let httpParams = new HttpParams(); monitorIds.forEach(monitorId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', monitorId); }); httpParams = httpParams.append('type', type); @@ -80,8 +84,8 @@ export class MonitorService { public cancelManageMonitors(monitorIds: Set): Observable> { let httpParams = new HttpParams(); monitorIds.forEach(monitorId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', monitorId); httpParams = httpParams.append('type', 'JSON'); }); @@ -110,38 +114,6 @@ export class MonitorService { return this.http.get>(`${monitors_uri}/${app}`); } - public getMonitors( - app: string | undefined, - tag: string | undefined, - pageIndex: number, - pageSize: number, - sortField?: string | null, - sortOrder?: string | null - ): Observable>> { - pageIndex = pageIndex ? pageIndex : 0; - pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 - let httpParams = new HttpParams(); - httpParams = httpParams.appendAll({ - pageIndex: pageIndex, - pageSize: pageSize - }); - if (app != undefined) { - httpParams = httpParams.append('app', app.trim()); - } - if (tag != undefined) { - httpParams = httpParams.append('tag', tag); - } - if (sortField != null && sortOrder != null) { - httpParams = httpParams.appendAll({ - sort: sortField, - order: sortOrder == 'ascend' ? 'asc' : 'desc' - }); - } - const options = { params: httpParams }; - return this.http.get>>(monitors_uri, options); - } - public searchMonitors( app: string | undefined, tag: string | undefined, @@ -154,7 +126,7 @@ export class MonitorService { ): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ pageIndex: pageIndex, diff --git a/web-app/src/app/service/plugin.service.ts b/web-app/src/app/service/plugin.service.ts index 88c858e4c47..1b34ed5cb50 100644 --- a/web-app/src/app/service/plugin.service.ts +++ b/web-app/src/app/service/plugin.service.ts @@ -42,7 +42,7 @@ export class PluginService { ): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ pageIndex: pageIndex, @@ -64,20 +64,6 @@ export class PluginService { return this.http.put>(plugin_uri, body); } - public newTags(body: Tag[]): Observable> { - return this.http.post>(plugin_uri, body); - } - - public newTag(body: Tag): Observable> { - const tags = []; - tags.push(body); - return this.http.post>(plugin_uri, tags); - } - - public editTag(body: Tag): Observable> { - return this.http.put>(plugin_uri, body); - } - public deletePlugins(pluginIds: Set): Observable> { let httpParams = new HttpParams(); pluginIds.forEach(pluginId => { @@ -86,4 +72,17 @@ export class PluginService { const options = { params: httpParams }; return this.http.delete>(plugin_uri, options); } + + public getPluginParamDefine(pluginId: number): Observable> { + let httpParams = new HttpParams(); + httpParams = httpParams.appendAll({ + pluginMetadataId: pluginId + }); + const options = { params: httpParams }; + return this.http.get>(`${plugin_uri}/params/define`, options); + } + + public savePluginParamDefine(body: any): Observable> { + return this.http.post>(`${plugin_uri}/params`, body); + } } diff --git a/web-app/src/app/service/tag.service.ts b/web-app/src/app/service/tag.service.ts index 1591f2abcfe..5a9eca865c4 100644 --- a/web-app/src/app/service/tag.service.ts +++ b/web-app/src/app/service/tag.service.ts @@ -41,7 +41,7 @@ export class TagService { ): Observable>> { pageIndex = pageIndex ? pageIndex : 0; pageSize = pageSize ? pageSize : 8; - // 注意HttpParams是不可变对象 需要保存set后返回的对象为最新对象 + // HttpParams is unmodifiable, so we need to save the return value of append/set let httpParams = new HttpParams(); httpParams = httpParams.appendAll({ pageIndex: pageIndex, @@ -74,8 +74,8 @@ export class TagService { public deleteTags(tagIds: Set): Observable> { let httpParams = new HttpParams(); tagIds.forEach(tagId => { - // 注意HttpParams是不可变对象 需要保存append后返回的对象为最新对象 - // append方法可以叠加同一key, set方法会把key之前的值覆盖只留一个key-value + // HttpParams is unmodifiable, so we need to save the return value of append/set + // Method append can append same key, set will replace the previous value httpParams = httpParams.append('ids', tagId); }); const options = { params: httpParams }; diff --git a/web-app/src/app/service/theme.service.ts b/web-app/src/app/service/theme.service.ts new file mode 100644 index 00000000000..1201831066c --- /dev/null +++ b/web-app/src/app/service/theme.service.ts @@ -0,0 +1,77 @@ +/* + * 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. + */ + +import { DOCUMENT } from '@angular/common'; +import { Inject, Injectable } from '@angular/core'; + +@Injectable({ + providedIn: 'root' +}) +export class ThemeService { + private readonly themeKey = 'theme'; + + constructor(@Inject(DOCUMENT) private doc: any) {} + + setTheme(theme: string): void { + localStorage.setItem(this.themeKey, theme); + } + + getTheme(): string | null { + return localStorage.getItem(this.themeKey); + } + + clearTheme(): void { + localStorage.removeItem(this.themeKey); + } + + changeTheme(theme: string): void { + const style = this.doc.createElement('link'); + style.type = 'text/css'; + style.rel = 'stylesheet'; + + if (theme === 'dark') { + style.id = 'dark-theme'; + style.href = 'assets/style.dark.css'; + } else if (theme === 'compact') { + style.id = 'compact-theme'; + style.href = 'assets/style.compact.css'; + } else { + const darkDom = this.doc.getElementById('dark-theme'); + if (darkDom) darkDom.remove(); + + const compactDom = this.doc.getElementById('compact-theme'); + if (compactDom) compactDom.remove(); + + this.clearTheme(); + + return; + } + + this.setTheme(theme); + + // remove old theme + const existingLink = this.doc.getElementById(style.id); + if (existingLink) { + existingLink.remove(); + } + + // add new theme + this.doc.body.appendChild(style); + } +} diff --git a/web-app/src/app/shared/components/form-field/form-field.component.html b/web-app/src/app/shared/components/form-field/form-field.component.html new file mode 100644 index 00000000000..8b61e8141d4 --- /dev/null +++ b/web-app/src/app/shared/components/form-field/form-field.component.html @@ -0,0 +1,171 @@ + + + + + + + + + + + + + + + + + + + + + + + + {{ 'monitor.collector.system.default' | i18n }} + {{ 'collector.mode.public' | i18n }} + + + {{ + item.status == 0 ? ('monitor.collector.status.online' | i18n) : ('monitor.collector.status.offline' | i18n) + }} + + {{ item.name }} + {{ item.ip }} + + {{ item.mode == 'private' ? ('collector.mode.private' | i18n) : ('collector.mode.public' | i18n) }} + + + + + {{ selected.nzLabel }} + + + + + + + {{ 'common.time.unit.second' | i18n }} + + + + + + + diff --git a/web-app/src/app/shared/components/form-item/form-item.component.less b/web-app/src/app/shared/components/form-field/form-field.component.less similarity index 100% rename from web-app/src/app/shared/components/form-item/form-item.component.less rename to web-app/src/app/shared/components/form-field/form-field.component.less diff --git a/web-app/src/app/shared/components/form-field/form-field.component.spec.ts b/web-app/src/app/shared/components/form-field/form-field.component.spec.ts new file mode 100644 index 00000000000..971578a9d5b --- /dev/null +++ b/web-app/src/app/shared/components/form-field/form-field.component.spec.ts @@ -0,0 +1,43 @@ +/* + * 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. + */ + +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { FormFieldComponent } from './form-field.component'; + +describe('FormFieldComponent', () => { + let component: FormFieldComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [FormFieldComponent] + }).compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(FormFieldComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/web-app/src/app/shared/components/form-field/form-field.component.ts b/web-app/src/app/shared/components/form-field/form-field.component.ts new file mode 100644 index 00000000000..35da45aacb0 --- /dev/null +++ b/web-app/src/app/shared/components/form-field/form-field.component.ts @@ -0,0 +1,81 @@ +/* + * 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. + */ + +import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { AbstractControl, ControlValueAccessor, NG_VALIDATORS, NG_VALUE_ACCESSOR, ValidationErrors, Validator } from '@angular/forms'; + +@Component({ + selector: 'app-form-field', + templateUrl: './form-field.component.html', + styleUrls: ['./form-field.component.less'], + providers: [ + { + provide: NG_VALUE_ACCESSOR, + multi: true, + useExisting: FormFieldComponent + }, + { + provide: NG_VALIDATORS, + multi: true, + useExisting: FormFieldComponent + } + ] +}) +export class FormFieldComponent implements ControlValueAccessor, Validator { + constructor() {} + @Input() item!: any; + @Input() extra: any = {}; + + value: any; + validateStatus!: string; + + _onChange: Function = () => {}; + _onTouched: Function = () => {}; + + writeValue(value: any): void { + this.value = value; + } + + registerOnChange(fn: Function): void { + this._onChange = fn; + } + + registerOnTouched(fn: Function): void { + this._onTouched = fn; + } + + validate(control: AbstractControl): ValidationErrors | null { + // if (!(control.dirty) && !(control.touched)) return null; + let { value } = control; + if (this.item.required && (value === null || value === undefined || value === '')) { + this.validateStatus = 'error'; + return { + required: { + valid: false + } + }; + } + this.validateStatus = ''; + return null; + } + + onChange(value: any) { + this._onChange(value); + } +} diff --git a/web-app/src/app/shared/components/form-item/form-item.component.html b/web-app/src/app/shared/components/form-item/form-item.component.html deleted file mode 100644 index 934d6286dac..00000000000 --- a/web-app/src/app/shared/components/form-item/form-item.component.html +++ /dev/null @@ -1,286 +0,0 @@ - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - - - {{ item.name }} - - - - - {{ 'monitor.collector.system.default' | i18n }} - {{ 'collector.mode.public' | i18n }} - - - {{ - item.status == 0 ? ('monitor.collector.status.online' | i18n) : ('monitor.collector.status.offline' | i18n) - }} - - {{ item.name }} - {{ item.ip }} - - {{ item.mode == 'private' ? ('collector.mode.private' | i18n) : ('collector.mode.public' | i18n) }} - - - - - {{ selected.nzLabel }} - - - - - - {{ item.name }} - - - - - {{ 'common.time.unit.second' | i18n }} - - - - - {{ item.name }} - - - - {{ sliceTagName(tag) }} - - - - - {{ 'tag.new' | i18n }} - - - - - - - {{ item.name }} - - - - - - - - - - -
- - - - - - - - - - - - - {{ 'tag' | i18n }} - - - - - - - {{ data.name }} - - {{ data.name + ':' + data.tagValue }} - - - - - -
-
diff --git a/web-app/src/app/shared/components/tags-select/tags-select.component.html b/web-app/src/app/shared/components/tags-select/tags-select.component.html new file mode 100644 index 00000000000..ff8b3f7c58e --- /dev/null +++ b/web-app/src/app/shared/components/tags-select/tags-select.component.html @@ -0,0 +1,78 @@ + + + + + {{ sliceTagName(tag) }} + + + + + {{ 'tag.new' | i18n }} + + + + + +
+ + + + + + + + + + + + + {{ 'tag' | i18n }} + + + + + + + {{ data.name }} + + {{ data.name + ':' + data.tagValue }} + + + + + +
+
diff --git a/web-app/src/app/shared/components/tags-select/tags-select.component.less b/web-app/src/app/shared/components/tags-select/tags-select.component.less new file mode 100644 index 00000000000..98753eadd09 --- /dev/null +++ b/web-app/src/app/shared/components/tags-select/tags-select.component.less @@ -0,0 +1,4 @@ +:host { + ::ng-deep { + } +} diff --git a/web-app/src/app/shared/components/tags-select/tags-select.component.spec.ts b/web-app/src/app/shared/components/tags-select/tags-select.component.spec.ts new file mode 100644 index 00000000000..41d89a3bfdb --- /dev/null +++ b/web-app/src/app/shared/components/tags-select/tags-select.component.spec.ts @@ -0,0 +1,43 @@ +/* + * 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. + */ + +import { ComponentFixture, TestBed } from '@angular/core/testing'; + +import { TagsSelectComponent } from './tags-select.component'; + +describe('TagsSelectComponent', () => { + let component: TagsSelectComponent; + let fixture: ComponentFixture; + + beforeEach(async () => { + await TestBed.configureTestingModule({ + declarations: [TagsSelectComponent] + }).compileComponents(); + }); + + beforeEach(() => { + fixture = TestBed.createComponent(TagsSelectComponent); + component = fixture.componentInstance; + fixture.detectChanges(); + }); + + it('should create', () => { + expect(component).toBeTruthy(); + }); +}); diff --git a/web-app/src/app/shared/components/form-item/form-item.component.ts b/web-app/src/app/shared/components/tags-select/tags-select.component.ts similarity index 75% rename from web-app/src/app/shared/components/form-item/form-item.component.ts rename to web-app/src/app/shared/components/tags-select/tags-select.component.ts index 18fbe33e830..3ed1c72a8d6 100644 --- a/web-app/src/app/shared/components/form-item/form-item.component.ts +++ b/web-app/src/app/shared/components/tags-select/tags-select.component.ts @@ -17,23 +17,31 @@ * under the License. */ -import { Component, EventEmitter, Input, Output } from '@angular/core'; +import { Component, EventEmitter, Input, Output, forwardRef } from '@angular/core'; +import { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms'; import { TagItem } from '../../../pojo/NoticeRule'; import { Tag } from '../../../pojo/Tag'; import { TagService } from '../../../service/tag.service'; @Component({ - selector: 'app-form-item', - templateUrl: './form-item.component.html', - styleUrls: ['./form-item.component.less'] + selector: 'app-tags-select', + templateUrl: './tags-select.component.html', + styleUrls: ['./tags-select.component.less'], + providers: [ + { + provide: NG_VALUE_ACCESSOR, + useExisting: forwardRef(() => TagsSelectComponent), + multi: true + } + ] }) -export class FormItemComponent { +export class TagsSelectComponent implements ControlValueAccessor { constructor(private tagSvc: TagService) {} - @Input() item!: any; + @Input() value!: any; - @Input() extra: any = {}; - @Output() readonly valueChange = new EventEmitter(); + @Input() mode!: 'default' | 'closeable' | 'checkable'; + @Output() readonly valueChange = new EventEmitter(); isManageModalVisible = false; isManageModalOkLoading = false; @@ -43,6 +51,26 @@ export class FormItemComponent { tagSearch!: string; tags!: Tag[]; + _onChange = (_: any) => {}; + _onTouched = () => {}; + + onChange(inputValue: any) { + this.valueChange.emit(inputValue); + this._onChange(inputValue); + } + + writeValue(value: any): void { + this.value = value; + } + + registerOnChange(fn: any): void { + this._onChange = fn; + } + + registerOnTouched(fn: any): void { + this._onTouched = fn; + } + loadTagsTable() { this.tagTableLoading = true; let tagsReq$ = this.tagSvc.loadTags(this.tagSearch, 1, 0, 1000).subscribe( @@ -65,10 +93,6 @@ export class FormItemComponent { ); } - onChange(value: any) { - this.valueChange.emit(value); - } - onRemoveTag(tag: TagItem) { if (this.value != undefined) { this.onChange(this.value.filter((item: TagItem) => item !== tag)); diff --git a/web-app/src/app/shared/shared.module.ts b/web-app/src/app/shared/shared.module.ts index 4091bc6b49a..bea3cd89d07 100644 --- a/web-app/src/app/shared/shared.module.ts +++ b/web-app/src/app/shared/shared.module.ts @@ -11,12 +11,13 @@ import { NzRadioComponent, NzRadioGroupComponent } from 'ng-zorro-antd/radio'; import { NzSwitchComponent } from 'ng-zorro-antd/switch'; import { NzTagModule } from 'ng-zorro-antd/tag'; -import { FormItemComponent } from './components/form-item/form-item.component'; +import { FormFieldComponent } from './components/form-field/form-field.component'; import { HelpMessageShowComponent } from './components/help-message-show/help-message-show.component'; import { KeyValueInputComponent } from './components/key-value-input/key-value-input.component'; import { MetricsFieldInputComponent } from './components/metrics-field-input/metrics-field-input.component'; import { MonitorSelectMenuComponent } from './components/monitor-select-menu/monitor-select-menu.component'; import { MultiFuncInputComponent } from './components/multi-func-input/multi-func-input.component'; +import { TagsSelectComponent } from './components/tags-select/tags-select.component'; import { ToolbarComponent } from './components/toolbar/toolbar.component'; import { ElapsedTimePipe } from './pipe/elapsed-time.pipe'; import { I18nElsePipe } from './pipe/i18n-else.pipe'; @@ -28,10 +29,11 @@ const ThirdModules: Array> = []; const COMPONENTS: Array> = [ KeyValueInputComponent, MultiFuncInputComponent, + TagsSelectComponent, HelpMessageShowComponent, MetricsFieldInputComponent, ToolbarComponent, - FormItemComponent, + FormFieldComponent, MonitorSelectMenuComponent ]; const DIRECTIVES: Array> = [TimezonePipe, I18nElsePipe, ElapsedTimePipe]; diff --git a/web-app/src/app/shared/utils/common-util.ts b/web-app/src/app/shared/utils/common-util.ts index ebba047a5f6..7b7ca16bcc4 100644 --- a/web-app/src/app/shared/utils/common-util.ts +++ b/web-app/src/app/shared/utils/common-util.ts @@ -43,3 +43,122 @@ export function findDeepestSelected(nodes: any): any { } return deepestSelectedNode; } + +export function generateReadableRandomString(): string { + const adjectives = [ + 'quick', + 'bright', + 'calm', + 'brave', + 'cool', + 'eager', + 'fancy', + 'gentle', + 'happy', + 'jolly', + 'kind', + 'lively', + 'merry', + 'nice', + 'proud', + 'witty', + 'zesty', + 'nifty', + 'quirky', + 'unique', + 'vivid', + 'zany', + 'zealous', + 'yummy', + 'agile', + 'bold', + 'daring', + 'fearless', + 'gleeful', + 'humble', + 'jumpy', + 'keen', + 'loyal', + 'majestic', + 'noble', + 'playful', + 'radiant', + 'spirited', + 'tenacious', + 'vibrant', + 'wise', + 'youthful', + 'zippy', + 'serene', + 'bubbly', + 'dreamy', + 'fierce', + 'graceful' + ]; + + const nouns = [ + 'fox', + 'lion', + 'eagle', + 'shark', + 'whale', + 'falcon', + 'panda', + 'tiger', + 'wolf', + 'otter', + 'lynx', + 'moose', + 'dolphin', + 'bear', + 'hawk', + 'zebra', + 'giraffe', + 'koala', + 'lemur', + 'lemming', + 'cheetah', + 'dragon', + 'owl', + 'rhino', + 'stingray', + 'jaguar', + 'panther', + 'elk', + 'ocelot', + 'beaver', + 'walrus', + 'gazelle', + 'coyote', + 'vulture', + 'iguana', + 'porcupine', + 'raccoon', + 'sloth', + 'armadillo', + 'chameleon', + 'kestrel', + 'weasel', + 'hedgehog' + ]; + + const digits = '23456789'; + const chars = 'ABCDEFGHJKLMNPQRSTUVWXYZabcdefghjklmnpqrstuvwxyz'; + + // Randomly select an adjective and a noun + let adjective = adjectives[Math.floor(Math.random() * adjectives.length)]; + let noun = nouns[Math.floor(Math.random() * nouns.length)]; + + // Randomly generate a sequence of numbers and characters + const randomDigits = Array.from({ length: 2 }, () => digits.charAt(Math.floor(Math.random() * digits.length))).join(''); + + const randomChars = Array.from({ length: 2 }, () => chars.charAt(Math.floor(Math.random() * chars.length))).join(''); + adjective = capitalizeFirstLetter(adjective); + noun = capitalizeFirstLetter(noun); + // Combine the parts to form the final string + return `${adjective}_${noun}_${randomDigits}${randomChars}`; +} + +function capitalizeFirstLetter(word: string): string { + return word.charAt(0).toUpperCase() + word.slice(1); +} diff --git a/web-app/src/assets/app-data.json b/web-app/src/assets/app-data.json index 294d9922ff6..200d52c126f 100644 --- a/web-app/src/assets/app-data.json +++ b/web-app/src/assets/app-data.json @@ -36,6 +36,12 @@ "icon": "anticon-laptop", "link": "/monitors" }, + { + "text": "Bulletin", + "i18n": "menu.monitor.bulletin", + "icon": "anticon-book", + "link": "/bulletin" + }, { "text": "Define", "i18n": "menu.advanced.define", diff --git a/web-app/src/assets/i18n/en-US.json b/web-app/src/assets/i18n/en-US.json index 9869a02dd19..48d9529cdb2 100644 --- a/web-app/src/assets/i18n/en-US.json +++ b/web-app/src/assets/i18n/en-US.json @@ -10,6 +10,7 @@ "monitor": { "": "Monitoring", "center": "Monitor Center", + "bulletin": "Bulletin", "service": "Service Monitor", "db": "DB Monitor", "os": "OS Monitor", @@ -43,6 +44,20 @@ "silence": "Alarm Silence", "dispatch": "Notification" }, + "bulletin": { + "new": "Add New Bulletin Item", + "edit": "Edit Bulletin Item", + "delete": "Delete Bulletin Item", + "batch.delete": "Batch delete Bulletin Items", + "name": "Bulletin Name", + "name.placeholder": "Please enter a custom bulletin name", + "monitor.type": "Monitor Type", + "monitor.name": "Monitor Task Name", + "monitor.metrics": "Monitor Metrics", + "help.message.content": "Custom Monitoring Bulletin", + "help.content": "Custom monitoring bulletin, displaying selected metrics of a specific monitor in table form", + "help.link": "https://hertzbeat.apache.org/docs/help/bulletin" + }, "advanced": { "": "Advanced", "collector": "Collector Cluster", @@ -130,6 +145,20 @@ "2": "Warning" } }, + "bulletin": { + "new": "Add New Bulletin Item", + "edit": "Edit Bulletin Item", + "delete": "Delete Bulletin Item", + "batch.delete": "Batch delete Bulletin Item", + "name": "Bulletin Name", + "name.placeholder": "Please enter a custom bulletin name", + "monitor.type": "Monitor Type", + "monitor.name": "Monitor Task Name", + "monitor.metrics": "Monitor Metrics", + "help.message.content": "Custom Monitoring Bulletin", + "help.content": "Custom monitoring bulletin, displaying selected metrics of a specific monitor in table form", + "help.link": "" + }, "question.link": "https://hertzbeat.apache.org/docs/help/issue/", "alert.setting.new": "New Threshold Rule", "alert.setting.edit": "Edit Threshold Rule", @@ -237,15 +266,15 @@ "alert.center.confirm.mark-no-batch": "Please confirm whether to mark Pending in batch!", "alert.center.confirm.mark-no": "Please confirm whether to mark Pending!", "alert.help.notice": "Notification is used to config the receiver of alarm message and receiving method. The alarm message will be sent to the receiver by specified way(support email, discord, webhook etc). Click here to see configuration steps..
Notice Template” is message content structure template. The built-in template is used by default or you can customize the template to customize the message notification structure.
Note⚠\uFE0F: After configuring the “Receiver”, you also need to config the“Notice Policy”to specify which messages are sent to which receivers. Click here to see potential issues.", - "alert.help.notice.link":"https://hertzbeat.apache.org/docs/help/alert_email", + "alert.help.notice.link": "https://hertzbeat.apache.org/docs/help/alert_email", "alert.help.converge": "Alarm Converge supports deduplication and convergence of repeated alarm messages within a specified time period.
Click \"New Converge Strategy\" and configure the time period to avoiding a large number of repetitive alarms that may numb the receiver's alarm.", - "alert.help.converge.link":"https://hertzbeat.apache.org", + "alert.help.converge.link": "https://hertzbeat.apache.org", "alert.help.center": "Alarm Center is the notification processing center for all triggered alarm messages, including alarms triggered by system internal thresholds and alarm information accessed through third-party external alarm channels.
Hertzbeat support batch operations such as alarm query, mark processing, unprocessed, alarm deletion and clearing.", - "alert.help.center.link":"https://hertzbeat.apache.org/docs/help/guide", + "alert.help.center.link": "https://hertzbeat.apache.org/docs/help/guide", "alert.help.setting": "Threshold Rules are used for metrics alarm threshold rule management. Click the \"New Threshold\" to configure the alarm threshold for monitoring metrics. Hertzbeat will trigger alarms based on the threshold and metrics data.
Note⚠\uFE0F: The alarm message that has been triggered can be checked in [Alter Center], and you can also set the notification method and personnel in [Notification].", - "alert.help.setting.link":"https://hertzbeat.apache.org/docs/help/alert_threshold", + "alert.help.setting.link": "https://hertzbeat.apache.org/docs/help/alert_threshold", "alert.help.silence": "Alarm Silence management is used when you don’t want to be disturbed during system maintenance or on nights weekend.
Click \"New Silence Strategy\" and configure the time period to block messages so you would not get disturbed during breaks.", - "alert.help.silence.link":"https://hertzbeat.apache.org/docs", + "alert.help.silence.link": "https://hertzbeat.apache.org/docs", "alert.notice.template": "Notice Template", "alert.notice.template.new": "New Template", "alert.notice.template.edit": "Edit Template", @@ -334,7 +363,16 @@ "alert.notice.sender.mail.password": "Email Password", "alert.notice.sender.mail.port": "Email Port", "alert.notice.sender.mail.ssl": "Enable SSL", + "alert.notice.sender.mail.starttls": "Enable STARTTLS", "alert.notice.sender.mail.enable": "Enable Email Configuration", + "alert.notice.sender.sms.type": "Sms Type", + "alert.notice.sender.sms.type.tencent": "Tencent Sms", + "alert.notice.sender.sms.type.alibaba": "Alibaba Sms", + "alert.notice.sender.sms.tencent.secretId": "Tencent Sms SecretId", + "alert.notice.sender.sms.tencent.secretKey": "Tencent Sms SecretKey", + "alert.notice.sender.sms.tencent.signName": "Tencent Sms SignName", + "alert.notice.sender.sms.tencent.appId": "Tencent Sms AppId", + "alert.notice.sender.sms.tencent.templateId": "Tencent Sms TemplateId", "alert.export.switch-type": "Please select the export file format!", "alert.export.use-type": "Export rules in {{type}} file format", "dashboard.alerts.title": "Recently Alarms List", @@ -505,7 +543,8 @@ "app.lock.placeholder": "Enter Any To Unlock", "app.passport.desc": "An Open Source Real-Time Monitoring System", "app.passport.intro-1": "Open Source、Distributed", - "app.passport.intro-2": "Real-Time Monitoring", "app.login.message-need-identifier": "Please enter your username", + "app.passport.intro-2": "Real-Time Monitoring", + "app.login.message-need-identifier": "Please enter your username", "app.login.message-need-credential": "Please enter password", "app.login.message-invalid-credentials": "Invalid username or password", "app.login.need-change-password": "Please update the initial default password in time!", @@ -541,7 +580,9 @@ "plugin.jar.file": "Jar File", "plugin.delete": "Delete Plugin", "plugin.type.POST_ALERT": "POST ALERT", + "plugin.type.POST_COLLECT": "POST COLLECT", "plugin.search": "Search plugins", + "plugin.edit": "Edit plugin", "define.help": "The monitor templates define each monitoring type, parameter variable, metrics info, collection protocol, etc. You can select an existing monitoring template from the drop-down menu then make modifications according to your own needs. The bottom-left area is the compare area and the bottom-right area is the editing place.
You can also click \"New Monitor Type\" to custom define an new type. Currently supported protocols include HTTP, JDBC, SSH, JMX, SNMP. Monitor Templates.", "define.help.link": "https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-point/", "define.save-apply": "Save And Apply", @@ -574,6 +615,7 @@ "settings.object-store": "File Server Configuration", "settings.object-store.type": "File Server Provider", "settings.object-store.type.file": "Local file (default)", + "settings.object-store.type.database": "Local database", "settings.object-store.type.obs": "HUAWEI CLOUD OBS", "settings.object-store.obs.accessKey": "AccessKey", "settings.object-store.obs.accessKey.placeholder": "Access Key ID of HUAWEI CLOUD", @@ -612,7 +654,7 @@ "collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : Set the main HertzBeat service address for connection", "collector.deploy.docker.help.4": "# -e MODE=public : Set the running mode(public or private), public cluster or private cloud-edge.", "collector.deploy.docker.help.5": "# --name hertzbeat-collector: Name the container name hertzbeat-collector", - "collector.deploy.docker.help.6": "# apache/hertzbeat-collector: Use the HertzBeat official application image source, or use quay.io/tancloud/hertzbeat-collector to replace it", + "collector.deploy.docker.help.6": "# apache/hertzbeat-collector: Official application image source, or use quay.io/tancloud/hertzbeat-collector when timeout", "collector.deploy.package": "Deploy via Package", "collector.deploy.package.github": "Download From Github", "collector.deploy.package.gitee": "Download From Gitee", @@ -712,7 +754,7 @@ "status.component.state.1": "Abnormal", "status.component.state.2": "Unknown", "status.component.notify.need-org": "Please config your organization information first!", - "status.help": "Quickly build a powerful status page based on HertzBeat to easily communicate the real-time status of your services to users. For example, the status page provided by Github https://www.githubstatus.com.
Supports linkage and synchronization of status page component status and monitoring status, fault event maintenance and management mechanism, etc. Improve your transparency, professionalism and user trust, and reduce communication costs." , + "status.help": "Quickly build a powerful status page based on HertzBeat to easily communicate the real-time status of your services to users. For example, the status page provided by Github https://www.githubstatus.com.
Supports linkage and synchronization of status page component status and monitoring status, fault event maintenance and management mechanism, etc. Improve your transparency, professionalism and user trust, and reduce communication costs.", "status.help.link": "https://hertzbeat.apache.org/docs/help/status", "validation.email.required": "Please enter your email!", "validation.email.wrong-format": "The email address is in the wrong format!", diff --git a/web-app/src/assets/i18n/zh-CN.json b/web-app/src/assets/i18n/zh-CN.json index 37db596648b..303fab11bd7 100644 --- a/web-app/src/assets/i18n/zh-CN.json +++ b/web-app/src/assets/i18n/zh-CN.json @@ -10,6 +10,7 @@ "monitor": { "": "监控", "center": "监控中心", + "bulletin": "自定义看板", "service": "应用服务监控", "db": "数据库监控", "os": "操作系统监控", @@ -130,6 +131,20 @@ "2": "警告告警" } }, + "bulletin": { + "new": "新增看板项", + "edit": "编辑看板项", + "delete": "删除看板项", + "batch.delete": "批量删除看板项", + "name": "看板名称", + "name.placeholder": "请输入自定义看板名称", + "monitor.type": "监控类型", + "monitor.name": "监控任务名称", + "monitor.metrics": "监控指标", + "help.message.content": "自定义监控看板", + "help.content": "自定义监控看板,以表格形式展示某种监控的自选指标", + "help.link": "https://hertzbeat.apache.org/zh-cn/docs/help/bulletin" + }, "question.link": "https://hertzbeat.apache.org/zh-cn/docs/help/issue", "alert.setting.new": "新增阈值规则", "alert.setting.edit": "编辑阈值规则", @@ -335,7 +350,16 @@ "alert.notice.sender.mail.password": "邮箱密码", "alert.notice.sender.mail.port": "邮箱端口", "alert.notice.sender.mail.ssl": "是否启用SSL", + "alert.notice.sender.mail.starttls": "是否启用STARTTLS", "alert.notice.sender.mail.enable": "是否启用邮箱配置", + "alert.notice.sender.sms.type": "短信类型", + "alert.notice.sender.sms.type.tencent": "腾讯短信", + "alert.notice.sender.sms.type.alibaba": "阿里短信", + "alert.notice.sender.sms.tencent.secretId": "腾讯短信SecretId", + "alert.notice.sender.sms.tencent.secretKey": "腾讯短信SecretKey", + "alert.notice.sender.sms.tencent.signName": "腾讯短信SignName", + "alert.notice.sender.sms.tencent.appId": "腾讯短信AppId", + "alert.notice.sender.sms.tencent.templateId": "腾讯短信TemplateId", "alert.export.switch-type": "请选择导出文件格式!", "alert.export.use-type": "以 {{type}} 文件格式导出阈值规则", "dashboard.alerts.title": "最近告警列表", @@ -501,7 +525,6 @@ "app.lock": "解除锁定", "app.lock.placeholder": "输入任意解锁", "app.passport.desc": "易用友好的开源实时监控系统", - "app.passport.welcome": "点击探索 TanCloud 监控云服务", "app.passport.intro-1": "开源、高性能、分布式的", "app.passport.intro-2": "实时监控", "app.login.message-need-identifier": "请输入用户名", @@ -540,7 +563,9 @@ "plugin.delete": "刪除插件", "plugin.type": "插件类型", "plugin.type.POST_ALERT": "告警后", + "plugin.type.POST_COLLECT": "采集后", "plugin.search": "搜索插件", + "plugin.edit": "编辑插件", "define.help": "监控模版定义每一个监控类型,类型的参数变量,指标信息,采集协议等。您可根据需求在下拉菜单中选择已有监控模板修改。左下区域为对照区,右下区域为编辑区。
您也可以点击“新增监控类型”来自定义新的的监控类型,目前支持 HTTP 协议JDBC协议SSH协议 JMX 协议 SNMP 协议点击查看监控模板。\n", "define.help.link": "https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-point/", "define.save-apply": "保存并应用", @@ -559,8 +584,8 @@ "settings.server": "消息服务配置", "settings.server.email": "邮件服务器", "settings.server.email.setting": "配置邮件服务器", - "settings.server.sms": "短信服务器", - "settings.server.sms.setting": "配置短信服务器", + "settings.server.sms": "短信配置", + "settings.server.sms.setting": "配置短信参数", "settings.system-config": "系统配置", "settings.system-config.locale": "系统语言", "settings.system-config.locale.zh_CN": "简体中文(zh_CN)", @@ -575,6 +600,7 @@ "settings.object-store": "文件服务配置", "settings.object-store.type": "文件服务提供商", "settings.object-store.type.file": "本地文件(默认)", + "settings.object-store.type.database": "本地数据库", "settings.object-store.type.obs": "华为云OBS", "settings.object-store.obs.accessKey": "AccessKey", "settings.object-store.obs.accessKey.placeholder": "华为云的AccessKeyId", @@ -613,7 +639,7 @@ "collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : 设置连接的主HertzBeat服务地址", "collector.deploy.docker.help.4": "# -e MODE=public : 配置运行模式(public or private), 公共集群模式或私有云边模式", "collector.deploy.docker.help.5": "# --name hertzbeat-collector : 命名容器名称 hertzbeat-collector", - "collector.deploy.docker.help.6": "# apache/hertzbeat-collector : 使用HertzBeat官方应用镜像源,也可若使用quay.io/tancloud/hertzbeat-collector替换", + "collector.deploy.docker.help.6": "# apache/hertzbeat-collector : 官方应用镜像源,超时可替换为 quay.io/tancloud/hertzbeat-collector", "collector.deploy.package": "通过 安装包 方式部署", "collector.deploy.package.github": "下载安装包-Github", "collector.deploy.package.gitee": "下载安装包-Gitee", diff --git a/web-app/src/assets/i18n/zh-TW.json b/web-app/src/assets/i18n/zh-TW.json index 7ebb6c00b6e..9783be18aec 100644 --- a/web-app/src/assets/i18n/zh-TW.json +++ b/web-app/src/assets/i18n/zh-TW.json @@ -10,6 +10,7 @@ "monitor": { "": "監控", "center": "監控中心", + "bulletin": "自定義看板", "service": "應用服務監控", "db": "數據庫監控", "os": "操作系統監控", @@ -43,6 +44,20 @@ "silence": "告警靜默", "dispatch": "消息通知" }, + "bulletin": { + "new": "新增看板項", + "edit": "編輯看板項", + "delete": "刪除看板項", + "batch.delete": "批量刪除看板項", + "name": "看板名稱", + "name.placeholder": "請輸入自定義看板名稱", + "monitor.type": "監控類型", + "monitor.name": "監控任務名稱", + "monitor.metrics": "監控指標", + "help.message.content": "自定義監控看板", + "help.content": "自定義監控看板,以表格形式展示某種監控的自選指標", + "help.link": "" + }, "advanced": { "": "高级", "collector": "採集集群", @@ -130,6 +145,20 @@ "2": "警告告警" } }, + "bulletin": { + "new": "新增看板項", + "edit": "編輯看板項", + "delete": "刪除看板項", + "batch.delete": "批量刪除看板項", + "name": "看板名稱", + "name.placeholder": "請輸入自定義看板名稱", + "monitor.type": "監控類型", + "monitor.name": "監控任務名稱", + "monitor.metrics": "監控指標", + "help.message.content": "自定義監控看板", + "help.content": "自定義監控看板,以表格形式展示某種監控的自選指標", + "help.link": "https://hertzbeat.apache.org/docs/help/bulletin" + }, "alert.setting.new": "新增阈值規則", "alert.setting.edit": "編輯阈值規則", "alert.setting.delete": "刪除阈值規則", @@ -236,15 +265,15 @@ "alert.center.confirm.mark-no-batch": "請確認是否批量標記未處理!", "alert.center.confirm.mark-no": "請確認是否標記未處理!", "alert.help.notice": "消息通知用于配置告警通知的接收对象以及接收方式,使被阈值觸發的告警信息,通過指定方式通知到接收对象(支持郵箱、釘釘、微信,Webhook等),點擊查看具體配置步驟
通知模版是不同通知方式對應的消息內容結構模版,默認使用內置模版或者您可以自定義模版來自定義消息通知結構。
注意⚠\uFE0F:配置“通知媒介後”,您還需要配置“通知策略”來指定哪些消息發給哪些接收对象,點擊查看可能遇見的問題。", - "alert.help.notice.link":"https://hertzbeat.apache.org/zh-cn/docs/help/alert_email", + "alert.help.notice.link": "https://hertzbeat.apache.org/zh-cn/docs/help/alert_email", "alert.help.converge": "告警收斂支持對指定時間段內的相同重複告警消息進行去重收斂。您可以點擊”新增收斂策略“,並進行配置。
當阈值規則觸發告警後,會進入到告警收斂,告警收斂會根據收斂規則對重複告警收斂,以避免大量重複告警消息導致接收風暴。", - "alert.help.converge.link":"https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E6%94%B6%E6%95%9B", + "alert.help.converge.link": "https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E6%94%B6%E6%95%9B", "alert.help.center": "告警中心是所有已觸發告警消息的通知處理中心,包括系統內部阈值觸發的告警和第三方外部告警渠道接入的告警信息。
通過告警中心我們可以對告警消息進行查詢,標記處理,告警標記未處理,告警刪除清空等批量操作。", - "alert.help.center.link":"https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E4%B8%AD%E5%BF%83", + "alert.help.center.link": "https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E4%B8%AD%E5%BF%83", "alert.help.setting": "阈值規則用于監控指標告警阈值規則管理,點擊“新增阈值”對監控指標進行告警阈值配置,系統將根據配置和采集指標數據計算觸發告警。您也可以根據需要修改已有配置,如需進行阈值關聯監控,請先關閉全局默認。
注意⚠\uFE0F: 配置完畢後,被阈值觸發的告警可以在【告警中心】中查看,您也可以在【消息通知】中設置告警消息的通知方式以及通知人員。", - "alert.help.setting.link":"https://hertzbeat.apache.org/zh-cn/docs/help/alert_threshold", + "alert.help.setting.link": "https://hertzbeat.apache.org/zh-cn/docs/help/alert_threshold", "alert.help.silence": "告警靜默管理用于您在系統維護期間或夜晚周末不想受到告警打擾時,可以點擊”新增靜默策略“,設置指定時間段內屏蔽告警通知。
告警靜默規則支持壹次性時間段或周期性時間段,支持標簽匹配和告警級別匹配部分告警。", - "alert.help.silence.link":"https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E9%9D%99%E9%BB%98", + "alert.help.silence.link": "https://hertzbeat.apache.org/zh-cn/docs/#%E5%91%8A%E8%AD%A6%E9%9D%99%E9%BB%98", "alert.notice.template": "通知模板", "alert.notice.template.new": "新增通知模板", "alert.notice.template.edit": "編輯通知模板", @@ -334,7 +363,16 @@ "alert.notice.sender.mail.password": "郵件密碼", "alert.notice.sender.mail.port": "郵件端口", "alert.notice.sender.mail.ssl": "是否啟用SSL", + "alert.notice.sender.mail.starttls": "是否啟用STARTTLS", "alert.notice.sender.mail.enable": "啟用郵件設定", + "alert.notice.sender.sms.type": "騰訊類型", + "alert.notice.sender.sms.type.tencent": "騰訊短訊", + "alert.notice.sender.sms.type.alibaba": "阿裏短訊", + "alert.notice.sender.sms.tencent.secretId": "騰訊短訊SecretId", + "alert.notice.sender.sms.tencent.secretKey": "騰訊短訊SecretKey", + "alert.notice.sender.sms.tencent.signName": "騰訊短訊SignName", + "alert.notice.sender.sms.tencent.appId": "騰訊短訊AppId", + "alert.notice.sender.sms.tencent.templateId": "騰訊短訊TemplateId", "alert.export.switch-type": "請選擇導出文件格式!", "alert.export.use-type": "以 {{type}} 文件格式導出阈值規則", "dashboard.alerts.title": "最近告警列表", @@ -500,7 +538,6 @@ "app.lock": "解除鎖定", "app.lock.placeholder": "輸入任意解鎖", "app.passport.desc": "易用友好的開源實時監控系統", - "app.passport.welcome": "點選探索 TanCloud 監控雲端服務", "app.passport.intro-1": "開源、高效能、分散式的", "app.passport.intro-2": "即時監控", "app.login.message-need-identifier": "請輸入用戶名", @@ -539,7 +576,9 @@ "plugin.jar.file": "Jar包", "plugin.delete": "刪除插件", "plugin.type.POST_ALERT": "告警後", + "plugin.type.POST_COLLECT": "採集後", "plugin.search": "搜尋插件", + "plugin.edit": "編輯插件", "define.help": "監控模版定義每一個監控類型,類型的參數變量,指標信息,採集協議等。您可根據需求在下拉功能表中選擇已有監控模版進行修改。右下區域為編輯區,左下區域為對照區。
您也可以點擊“新增監控類型”來自定義新的的監控類型,現支持 HTTP協議JDBC協定SSH協定 JMX協定 SNMP協定點擊查看監控範本。", "define.help.link": "https://hertzbeat.apache.org/zh-cn/docs/advanced/extend-point/", "define.save-apply": "保存並應用", @@ -556,8 +595,8 @@ "settings.server": "消息服務配置", "settings.server.email": "郵件服務器", "settings.server.email.setting": "配置郵件服務器", - "settings.server.sms": "短信服務器", - "settings.server.sms.setting": "配置短信服務器", + "settings.server.sms": "短信配置", + "settings.server.sms.setting": "配置短信參數", "settings.system-config": "系統配置", "settings.system-config.locale": "系統語言", "settings.system-config.locale.zh_CN": "簡體中文(zh_CN)", @@ -572,6 +611,7 @@ "settings.object-store": "文件服務配置", "settings.object-store.type": "文件服務提供商", "settings.object-store.type.file": "本地文件(默認)", + "settings.object-store.type.database": "本地數據庫", "settings.object-store.type.obs": "華為雲OBS", "settings.object-store.obs.accessKey": "AccessKey", "settings.object-store.obs.accessKey.placeholder": "華為雲的AccessKeyId", @@ -610,7 +650,7 @@ "collector.deploy.docker.help.3": "# -e MANAGER_HOST=127.0.0.1 : 設置連接的主HertzBeat服務地址", "collector.deploy.docker.help.4": "# -e MODE=public : 設定運作模式(public or private), 公有叢集模式或私有雲邊模式", "collector.deploy.docker.help.5": "# --name hertzbeat-collector : 命名容器名稱 hertzbeat-collector", - "collector.deploy.docker.help.6": "# apache/hertzbeat-collector : 使用HertzBeat官方應用鏡像源,也可若使用quay.io/tancloud/hertzbeat-collector替換", + "collector.deploy.docker.help.6": "# apache/hertzbeat-collector : 官方應用鏡像源,超时可替换为 quay.io/tancloud/hertzbeat-collector", "collector.deploy.package": "通過 安裝包 方式部署", "collector.deploy.package.github": "下載安裝包-Github", "collector.deploy.package.gitee": "下載安裝包-Gitee", diff --git a/web-app/src/styles/theme.less b/web-app/src/styles/theme.less index dd773ad1e39..a89412c966f 100644 --- a/web-app/src/styles/theme.less +++ b/web-app/src/styles/theme.less @@ -84,7 +84,7 @@ flex: auto; min-width: 0; min-height: 0; - overflow-x: auto; + overflow: hidden; } .hoverClass { diff --git a/web-app/yarn.lock b/web-app/yarn.lock index 7c650b077d2..2d1a6b2e380 100644 --- a/web-app/yarn.lock +++ b/web-app/yarn.lock @@ -1,12052 +1,12113 @@ -# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. -# yarn lockfile v1 - - -"@ampproject/remapping@2.3.0", "@ampproject/remapping@^2.2.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" - integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.24" - -"@angular-devkit/architect@0.1703.8": - version "0.1703.8" - resolved "https://registry.yarnpkg.com/@angular-devkit/architect/-/architect-0.1703.8.tgz#2b4f26d9e32ac013931631876b4a7a6926657ad3" - integrity sha512-lKxwG4/QABXZvJpqeSIn/kAwnY6MM9HdHZUV+o5o3UiTi+vO8rZApG4CCaITH3Bxebm7Nam7Xbk8RuukC5rq6g== - dependencies: - "@angular-devkit/core" "17.3.8" - rxjs "7.8.1" - -"@angular-devkit/build-angular@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@angular-devkit/build-angular/-/build-angular-17.3.8.tgz#a19f05909551f79b95711235b1141f83f96fd558" - integrity sha512-ixsdXggWaFRP7Jvxd0AMukImnePuGflT9Yy7NJ9/y0cL/k//S/3RnkQv5i411KzN+7D4RIbNkRGGTYeqH24zlg== - dependencies: - "@ampproject/remapping" "2.3.0" - "@angular-devkit/architect" "0.1703.8" - "@angular-devkit/build-webpack" "0.1703.8" - "@angular-devkit/core" "17.3.8" - "@babel/core" "7.24.0" - "@babel/generator" "7.23.6" - "@babel/helper-annotate-as-pure" "7.22.5" - "@babel/helper-split-export-declaration" "7.22.6" - "@babel/plugin-transform-async-generator-functions" "7.23.9" - "@babel/plugin-transform-async-to-generator" "7.23.3" - "@babel/plugin-transform-runtime" "7.24.0" - "@babel/preset-env" "7.24.0" - "@babel/runtime" "7.24.0" - "@discoveryjs/json-ext" "0.5.7" - "@ngtools/webpack" "17.3.8" - "@vitejs/plugin-basic-ssl" "1.1.0" - ansi-colors "4.1.3" - autoprefixer "10.4.18" - babel-loader "9.1.3" - babel-plugin-istanbul "6.1.1" - browserslist "^4.21.5" - copy-webpack-plugin "11.0.0" - critters "0.0.22" - css-loader "6.10.0" - esbuild-wasm "0.20.1" - fast-glob "3.3.2" - http-proxy-middleware "2.0.6" - https-proxy-agent "7.0.4" - inquirer "9.2.15" - jsonc-parser "3.2.1" - karma-source-map-support "1.4.0" - less "4.2.0" - less-loader "11.1.0" - license-webpack-plugin "4.0.2" - loader-utils "3.2.1" - magic-string "0.30.8" - mini-css-extract-plugin "2.8.1" - mrmime "2.0.0" - open "8.4.2" - ora "5.4.1" - parse5-html-rewriting-stream "7.0.0" - picomatch "4.0.1" - piscina "4.4.0" - postcss "8.4.35" - postcss-loader "8.1.1" - resolve-url-loader "5.0.0" - rxjs "7.8.1" - sass "1.71.1" - sass-loader "14.1.1" - semver "7.6.0" - source-map-loader "5.0.0" - source-map-support "0.5.21" - terser "5.29.1" - tree-kill "1.2.2" - tslib "2.6.2" - undici "6.11.1" - vite "5.1.7" - watchpack "2.4.0" - webpack "5.90.3" - webpack-dev-middleware "6.1.2" - webpack-dev-server "4.15.1" - webpack-merge "5.10.0" - webpack-subresource-integrity "5.1.0" - optionalDependencies: - esbuild "0.20.1" - -"@angular-devkit/build-webpack@0.1703.8": - version "0.1703.8" - resolved "https://registry.yarnpkg.com/@angular-devkit/build-webpack/-/build-webpack-0.1703.8.tgz#d157a5790d5045dd9c312936c3907bd3a184bbfc" - integrity sha512-9u6fl8VVOxcLOEMzrUeaybSvi9hSLSRucHnybneYrabsgreDo32tuy/4G8p6YAHQjpWEj9jvF9Um13ertdni5Q== - dependencies: - "@angular-devkit/architect" "0.1703.8" - rxjs "7.8.1" - -"@angular-devkit/core@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-17.3.8.tgz#8679cacf84cf79764f027811020e235ab32016d2" - integrity sha512-Q8q0voCGudbdCgJ7lXdnyaxKHbNQBARH68zPQV72WT8NWy+Gw/tys870i6L58NWbBaCJEUcIj/kb6KoakSRu+Q== - dependencies: - ajv "8.12.0" - ajv-formats "2.1.1" - jsonc-parser "3.2.1" - picomatch "4.0.1" - rxjs "7.8.1" - source-map "0.7.4" - -"@angular-devkit/schematics@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-17.3.8.tgz#f853eb21682aadfb6667e090b5b509fc95ce8442" - integrity sha512-QRVEYpIfgkprNHc916JlPuNbLzOgrm9DZalHasnLUz4P6g7pR21olb8YCyM2OTJjombNhya9ZpckcADU5Qyvlg== - dependencies: - "@angular-devkit/core" "17.3.8" - jsonc-parser "3.2.1" - magic-string "0.30.8" - ora "5.4.1" - rxjs "7.8.1" - -"@angular-eslint/builder@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/builder/-/builder-17.5.2.tgz#6117970311f578f44ca391d8c321554720468f9a" - integrity sha512-bvegxJuocWeHdvISPfCXeLQPSjrMCEVzxXPg16JJKksKWSeRA1JnbXnfnb7eoLdq1+riMHKqbH6Fs4rORAvUiA== - dependencies: - "@nx/devkit" "^17.2.8 || ^18.0.0 || ^19.0.0" - nx "^17.2.8 || ^18.0.0 || ^19.0.0" - -"@angular-eslint/bundled-angular-compiler@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-17.5.2.tgz#853e3b6d7be4b4adb39cbaf4f6fba34e032095d3" - integrity sha512-K4hVnMyI98faMJmsA4EOBkD0tapDjWV5gy0j/wJ2uSL46d3JgZPZNJSO1zStf/b3kT4gLOlQ/ulWFiUf1DxgIw== - -"@angular-eslint/eslint-plugin-template@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-17.5.2.tgz#77de90e10fb1606e51bb86e981851d0e6f7cdecc" - integrity sha512-6sxVwrJ7yElZxcjxHSA0Ujs29bCD/cMubd9n6TDFI9e3v+ktpoMW4Nv/TCHv0OuYatIOZ7bcJxi38cAO8Vhfhw== - dependencies: - "@angular-eslint/bundled-angular-compiler" "17.5.2" - "@angular-eslint/utils" "17.5.2" - "@typescript-eslint/type-utils" "7.11.0" - "@typescript-eslint/utils" "7.11.0" - aria-query "5.3.0" - axobject-query "4.0.0" - -"@angular-eslint/eslint-plugin@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/eslint-plugin/-/eslint-plugin-17.5.2.tgz#aac043b59ae27b2e0821b1f9d9e9f4ed52a24309" - integrity sha512-kzPALKyT5XIEbgoNmY/hEZWdMWKTX56Pap9fVLJSC/b+Nd+MXc7TNly2s0XoC0Ru1/kMiVzbmSGPheu/rw+9aA== - dependencies: - "@angular-eslint/bundled-angular-compiler" "17.5.2" - "@angular-eslint/utils" "17.5.2" - "@typescript-eslint/utils" "7.11.0" - -"@angular-eslint/schematics@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/schematics/-/schematics-17.5.2.tgz#99161737d48faa061e8613404bf4e94a54f4c9e0" - integrity sha512-HcvqrBEJfYMTc+fZ6YdRkb+9YcXsy2XSv59Yhd0bBqZ4ZdM4QuuVFxWlLNvhV6TF1DtO24CzpN4OyE+AO5EWBA== - dependencies: - "@angular-eslint/eslint-plugin" "17.5.2" - "@angular-eslint/eslint-plugin-template" "17.5.2" - "@nx/devkit" "^17.2.8 || ^18.0.0 || ^19.0.0" - ignore "5.3.1" - nx "^17.2.8 || ^18.0.0 || ^19.0.0" - strip-json-comments "3.1.1" - tmp "0.2.3" - -"@angular-eslint/template-parser@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/template-parser/-/template-parser-17.5.2.tgz#0306e6f49cd70a155e5dcfb33a245fefa7e474e9" - integrity sha512-46emLElmnIUzW0bpEpSf0u05ofRVUwlfttDOMLedhi700peUKbB9Y6iyz3GzAtQCMklBbJC9nR87LQRH9aSlog== - dependencies: - "@angular-eslint/bundled-angular-compiler" "17.5.2" - eslint-scope "^8.0.0" - -"@angular-eslint/utils@17.5.2": - version "17.5.2" - resolved "https://registry.yarnpkg.com/@angular-eslint/utils/-/utils-17.5.2.tgz#2cf447b17c655ba32112b8a710685447a08c90f9" - integrity sha512-bTMPFqtoetBJsYR/xqREEOCy/CdsKGf2gZkRdH73gG6pOpskWt8J/PbRcMZsC349paV4HFixByVm89inqA0TNg== - dependencies: - "@angular-eslint/bundled-angular-compiler" "17.5.2" - "@typescript-eslint/utils" "7.11.0" - -"@angular/animations@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-17.3.10.tgz#f62a728f078a586da27a36c931abb59fc7beb14e" - integrity sha512-9fR5snTuG4aM2K54TG/6DXcKXMDKZMovZhjQOxO8l68/oqn6fKrHs8DLzckFs0XGRZ+2OyURH8WggFm1Z828rA== - dependencies: - tslib "^2.3.0" - -"@angular/cdk@^17.0.0": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-17.3.10.tgz#4a3bab529cd65bb19cb89c89b3548dcc534d1a44" - integrity sha512-b1qktT2c1TTTe5nTji/kFAVW92fULK0YhYAvJ+BjZTPKu2FniZNe8o4qqQ0pUuvtMu+ZQxp/QqFYoidIVCjScg== - dependencies: - tslib "^2.3.0" - optionalDependencies: - parse5 "^7.1.2" - -"@angular/cdk@^17.2.0": - version "17.3.7" - resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-17.3.7.tgz#1d613214405ab61bba6ac2db715759e3a2c59951" - integrity sha512-aFEh8tzKFOwini6aNEp57S54Ocp9T7YIJfBVMESptu2TCPdMTlJ1HJTg5XS8NcQO+vwi9cFPGVwGF1frOx4LXA== - dependencies: - tslib "^2.3.0" - optionalDependencies: - parse5 "^7.1.2" - -"@angular/cli@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@angular/cli/-/cli-17.3.8.tgz#3673fd5dd4fbc96a6ed57c4e871ac5a92d5702c7" - integrity sha512-X5ZOQ6ZTKVHjhIsfl32ZRqbs+FUoeHLbT7x4fh2Os/8ObDDwrUcCJPqxe2b2RB5E2d0vepYigknHeLE7gwzlNQ== - dependencies: - "@angular-devkit/architect" "0.1703.8" - "@angular-devkit/core" "17.3.8" - "@angular-devkit/schematics" "17.3.8" - "@schematics/angular" "17.3.8" - "@yarnpkg/lockfile" "1.1.0" - ansi-colors "4.1.3" - ini "4.1.2" - inquirer "9.2.15" - jsonc-parser "3.2.1" - npm-package-arg "11.0.1" - npm-pick-manifest "9.0.0" - open "8.4.2" - ora "5.4.1" - pacote "17.0.6" - resolve "1.22.8" - semver "7.6.0" - symbol-observable "4.0.0" - yargs "17.7.2" - -"@angular/common@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/common/-/common-17.3.10.tgz#bd395d94678eba5c4ea42c6bafd8f3151c8c5dc7" - integrity sha512-6SfD21M3LujymmZsZQIxAsV8Bj5u6He6ImZ+p2rr7FAhFxpVJyKldK8LCmJcFsBD4srpQcxEZ0iDxXvg+0ihAw== - dependencies: - tslib "^2.3.0" - -"@angular/compiler-cli@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-17.3.10.tgz#84a7ee6ac0ab9e924132589a788abfd656f671a6" - integrity sha512-85SBphqRj3szac3FbeYgEZ+I6WaAlo5h7JX06BdjOLLiaoIwlFhLeAuG+jVekseV+95grFUxIsCMphWHi2e6hQ== - dependencies: - "@babel/core" "7.23.9" - "@jridgewell/sourcemap-codec" "^1.4.14" - chokidar "^3.0.0" - convert-source-map "^1.5.1" - reflect-metadata "^0.2.0" - semver "^7.0.0" - tslib "^2.3.0" - yargs "^17.2.1" - -"@angular/compiler@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-17.3.10.tgz#345bcdc4db45893fd0eca900181230c67499bd1d" - integrity sha512-6Ce4siHyF0fCZBDm/cz+blJByGDu1/hbPkQVGmk5HGZTmCUeKkgyjoM6bZr7ssAsyGDRwxBh2SGHO4Ce31vuPA== - dependencies: - tslib "^2.3.0" - -"@angular/core@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/core/-/core-17.3.10.tgz#129cd916e718c668b84db1cd25d227fa1cf2645a" - integrity sha512-ocEKu7X0yFCOvgJn1uZy76qjhsjKvULrO1k/BuIX0nwhp61DTGYTvCqKmwCBLM8/gvcKYH5vMKMHoQKtiSGE0A== - dependencies: - tslib "^2.3.0" - -"@angular/forms@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-17.3.10.tgz#9559ac2eb9411236375b7517c7ef9d3251c8e3c3" - integrity sha512-0VZWSXDi2M3DAGJlpdV3lo73Yo/73GPRqmfTOrvIoUIenFg5Dz6oNGzvt/1aRkRn6HKccjix6iMpH91EN65pWA== - dependencies: - tslib "^2.3.0" - -"@angular/language-service@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-17.3.10.tgz#935d0bcfc078fcabf685669b5d8a83229cf0b46f" - integrity sha512-6y0yEnjuKGCnH+YxmZZUC/KEb2ZuB5z7y0AOj4PwOladMWSwHv71x1rz5MokBVBf7ZTeN2w89f9jSWBzSz+fPw== - -"@angular/platform-browser-dynamic@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-17.3.10.tgz#00fa7a90919f63e314ad1d687645e5a148084698" - integrity sha512-TW6G4+isdHM2ssQTRTobeAKtR2516pJ25BSwRb+9+Jw/ZAEYOOi+KQyofIFYQccaUjb3+LpjRcaZbtZ9m/Ispg== - dependencies: - tslib "^2.3.0" - -"@angular/platform-browser@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-17.3.10.tgz#7c513920fa8dbf52d0f70920101aad6ec71019d4" - integrity sha512-LEhBDOKm2A7nRmZqsafVp6OinRDG1OYZBSqjnT1jZ+f0CRRFIXz6aJ0TMPoU6vq9SLRJ7vrGD9P/eBf2hW00NQ== - dependencies: - tslib "^2.3.0" - -"@angular/router@17.3.10": - version "17.3.10" - resolved "https://registry.yarnpkg.com/@angular/router/-/router-17.3.10.tgz#4cbea96eb5a11ef011a4e4e31cecb7c3c72d8fce" - integrity sha512-HlZlR9BOLoEKGOSMjmL5EfYL7F7PeDifbFi0dYWNcrG8zFrVKFklB1cuBdJhfPZgYhDEoGms/EToD71tg5wliA== - dependencies: - tslib "^2.3.0" - -"@ant-design/colors@^7.0.0": - version "7.0.2" - resolved "https://registry.yarnpkg.com/@ant-design/colors/-/colors-7.0.2.tgz#c5c753a467ce8d86ba7ca4736d2c01f599bb5492" - integrity sha512-7KJkhTiPiLHSu+LmMJnehfJ6242OCxSlR3xHVBecYxnMW8MS/878NXct1GqYARyL59fyeFdKRxXTfvR9SnDgJg== - dependencies: - "@ctrl/tinycolor" "^3.6.1" - -"@ant-design/icons-angular@^17.0.0": - version "17.0.0" - resolved "https://registry.yarnpkg.com/@ant-design/icons-angular/-/icons-angular-17.0.0.tgz#5e072f4be7fa0bcef1498be735de8b54ada23620" - integrity sha512-MNEh3UbkSl6gkdb5MQRNHEuWI1DnU1dME9zSymnWCipEXN7MB0mcYHSfyYTqKL1j45ftp6l1UnsLvhokRYyhXA== - dependencies: - "@ant-design/colors" "^7.0.0" - tslib "^2.0.0" - -"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.2": - version "7.24.2" - resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.2.tgz#718b4b19841809a58b29b68cde80bc5e1aa6d9ae" - integrity sha512-y5+tLQyV8pg3fsiln67BVLD1P13Eg4lh5RW9mF0zUuvLrv9uIQ4MCL+CRT+FTsBlBjcIan6PGsLcBN0m3ClUyQ== - dependencies: - "@babel/highlight" "^7.24.2" - picocolors "^1.0.0" - -"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.5": - version "7.24.4" - resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.4.tgz#6f102372e9094f25d908ca0d34fc74c74606059a" - integrity sha512-vg8Gih2MLK+kOkHJp4gBEIkyaIi00jgWot2D9QOmmfLC8jINSOzmCLta6Bvz/JSBCqnegV0L80jhxkol5GWNfQ== - -"@babel/core@7.23.9": - version "7.23.9" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.9.tgz#b028820718000f267870822fec434820e9b1e4d1" - integrity sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.23.5" - "@babel/generator" "^7.23.6" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.23.9" - "@babel/parser" "^7.23.9" - "@babel/template" "^7.23.9" - "@babel/traverse" "^7.23.9" - "@babel/types" "^7.23.9" - convert-source-map "^2.0.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.3" - semver "^6.3.1" - -"@babel/core@7.24.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.0.tgz#56cbda6b185ae9d9bed369816a8f4423c5f2ff1b" - integrity sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.23.5" - "@babel/generator" "^7.23.6" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helpers" "^7.24.0" - "@babel/parser" "^7.24.0" - "@babel/template" "^7.24.0" - "@babel/traverse" "^7.24.0" - "@babel/types" "^7.24.0" - convert-source-map "^2.0.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.3" - semver "^6.3.1" - -"@babel/core@>=7.2.2", "@babel/core@^7.12.3": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.5.tgz#15ab5b98e101972d171aeef92ac70d8d6718f06a" - integrity sha512-tVQRucExLQ02Boi4vdPp49svNGcfL2GhdTCT9aldhXgCJVAI21EtRfBettiuLUwce/7r6bFdgs6JFkcdTiFttA== - dependencies: - "@ampproject/remapping" "^2.2.0" - "@babel/code-frame" "^7.24.2" - "@babel/generator" "^7.24.5" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-module-transforms" "^7.24.5" - "@babel/helpers" "^7.24.5" - "@babel/parser" "^7.24.5" - "@babel/template" "^7.24.0" - "@babel/traverse" "^7.24.5" - "@babel/types" "^7.24.5" - convert-source-map "^2.0.0" - debug "^4.1.0" - gensync "^1.0.0-beta.2" - json5 "^2.2.3" - semver "^6.3.1" - -"@babel/generator@7.23.6": - version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e" - integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw== - dependencies: - "@babel/types" "^7.23.6" - "@jridgewell/gen-mapping" "^0.3.2" - "@jridgewell/trace-mapping" "^0.3.17" - jsesc "^2.5.1" - -"@babel/generator@^7.23.6", "@babel/generator@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.5.tgz#e5afc068f932f05616b66713e28d0f04e99daeb3" - integrity sha512-x32i4hEXvr+iI0NEoEfDKzlemF8AmtOP8CcrRaEcpzysWuoEb1KknpcvMsHKPONoKZiDuItklgWhB18xEhr9PA== - dependencies: - "@babel/types" "^7.24.5" - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - jsesc "^2.5.1" - -"@babel/helper-annotate-as-pure@7.22.5", "@babel/helper-annotate-as-pure@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" - integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-builder-binary-assignment-operator-visitor@^7.22.15": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.22.15.tgz#5426b109cf3ad47b91120f8328d8ab1be8b0b956" - integrity sha512-QkBXwGgaoC2GtGZRoma6kv7Szfv06khvhFav67ZExau2RaXzy8MpHSMO2PNoP2XtmQphJQRHFfg77Bq731Yizw== - dependencies: - "@babel/types" "^7.22.15" - -"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6": - version "7.23.6" - resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.23.6.tgz#4d79069b16cbcf1461289eccfbbd81501ae39991" - integrity sha512-9JB548GZoQVmzrFgp8o7KxdgkTGm6xs9DW0o/Pim72UDjzr5ObUQ6ZzYPqA+g9OTS2bBQoctLJrky0RDCAWRgQ== - dependencies: - "@babel/compat-data" "^7.23.5" - "@babel/helper-validator-option" "^7.23.5" - browserslist "^4.22.2" - lru-cache "^5.1.1" - semver "^6.3.1" - -"@babel/helper-create-class-features-plugin@^7.24.1", "@babel/helper-create-class-features-plugin@^7.24.4", "@babel/helper-create-class-features-plugin@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.5.tgz#7d19da92c7e0cd8d11c09af2ce1b8e7512a6e723" - integrity sha512-uRc4Cv8UQWnE4NXlYTIIdM7wfFkOqlFztcC/gVXDKohKoVB3OyonfelUBaJzSwpBntZ2KYGF/9S7asCHsXwW6g== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-function-name" "^7.23.0" - "@babel/helper-member-expression-to-functions" "^7.24.5" - "@babel/helper-optimise-call-expression" "^7.22.5" - "@babel/helper-replace-supers" "^7.24.1" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.24.5" - semver "^6.3.1" - -"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.22.15", "@babel/helper-create-regexp-features-plugin@^7.22.5": - version "7.22.15" - resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.22.15.tgz#5ee90093914ea09639b01c711db0d6775e558be1" - integrity sha512-29FkPLFjn4TPEa3RE7GpW+qbE8tlsu3jntNYNfcGsc49LphF1PQIiD+vMZ1z1xVOKt+93khA9tc2JBs3kBjA7w== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - regexpu-core "^5.3.1" - semver "^6.3.1" - -"@babel/helper-define-polyfill-provider@^0.5.0": - version "0.5.0" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.5.0.tgz#465805b7361f461e86c680f1de21eaf88c25901b" - integrity sha512-NovQquuQLAQ5HuyjCz7WQP9MjRj7dx++yspwiyUiGl9ZyadHRSql1HZh5ogRd8W8w6YM6EQ/NTB8rgjLt5W65Q== - dependencies: - "@babel/helper-compilation-targets" "^7.22.6" - "@babel/helper-plugin-utils" "^7.22.5" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - -"@babel/helper-define-polyfill-provider@^0.6.2": - version "0.6.2" - resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" - integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== - dependencies: - "@babel/helper-compilation-targets" "^7.22.6" - "@babel/helper-plugin-utils" "^7.22.5" - debug "^4.1.1" - lodash.debounce "^4.0.8" - resolve "^1.14.2" - -"@babel/helper-environment-visitor@^7.22.20": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.22.20.tgz#96159db61d34a29dba454c959f5ae4a649ba9167" - integrity sha512-zfedSIzFhat/gFhWfHtgWvlec0nqB9YEIVrpuwjruLlXfUSnA8cJB0miHKwqDnQ7d32aKo2xt88/xZptwxbfhA== - -"@babel/helper-function-name@^7.23.0": - version "7.23.0" - resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.23.0.tgz#1f9a3cdbd5b2698a670c30d2735f9af95ed52759" - integrity sha512-OErEqsrxjZTJciZ4Oo+eoZqeW9UIiOcuYKRJA4ZAgV9myA+pOXhhmpfNCKjEH/auVfEYVFJ6y1Tc4r0eIApqiw== - dependencies: - "@babel/template" "^7.22.15" - "@babel/types" "^7.23.0" - -"@babel/helper-hoist-variables@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.22.5.tgz#c01a007dac05c085914e8fb652b339db50d823bb" - integrity sha512-wGjk9QZVzvknA6yKIUURb8zY3grXCcOZt+/7Wcy8O2uctxhplmUPkOdlgoNhmdVee2c92JXbf1xpMtVNbfoxRw== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-member-expression-to-functions@^7.23.0", "@babel/helper-member-expression-to-functions@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.5.tgz#5981e131d5c7003c7d1fa1ad49e86c9b097ec475" - integrity sha512-4owRteeihKWKamtqg4JmWSsEZU445xpFRXPEwp44HbgbxdWlUV1b4Agg4lkA806Lil5XM/e+FJyS0vj5T6vmcA== - dependencies: - "@babel/types" "^7.24.5" - -"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.24.1", "@babel/helper-module-imports@^7.24.3": - version "7.24.3" - resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.3.tgz#6ac476e6d168c7c23ff3ba3cf4f7841d46ac8128" - integrity sha512-viKb0F9f2s0BCS22QSF308z/+1YWKV/76mwt61NBzS5izMzDPwdq1pTrzf+Li3npBWX9KdQbkeCt1jSAM7lZqg== - dependencies: - "@babel/types" "^7.24.0" - -"@babel/helper-module-transforms@^7.23.3", "@babel/helper-module-transforms@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.5.tgz#ea6c5e33f7b262a0ae762fd5986355c45f54a545" - integrity sha512-9GxeY8c2d2mdQUP1Dye0ks3VDyIMS98kt/llQ2nUId8IsWqTF0l1LkSX0/uP7l7MCDrzXS009Hyhe2gzTiGW8A== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-module-imports" "^7.24.3" - "@babel/helper-simple-access" "^7.24.5" - "@babel/helper-split-export-declaration" "^7.24.5" - "@babel/helper-validator-identifier" "^7.24.5" - -"@babel/helper-optimise-call-expression@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.22.5.tgz#f21531a9ccbff644fdd156b4077c16ff0c3f609e" - integrity sha512-HBwaojN0xFRx4yIvpwGqxiV2tUfl7401jlok564NgB9EHS1y6QT17FmKWm4ztqjeVdXLuC4fSvHc5ePpQjoTbw== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.24.5", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.5.tgz#a924607dd254a65695e5bd209b98b902b3b2f11a" - integrity sha512-xjNLDopRzW2o6ba0gKbkZq5YWEBaK3PCyTOY1K2P/O07LGMhMqlMXPxwN4S5/RhWuCobT8z0jrlKGlYmeR1OhQ== - -"@babel/helper-remap-async-to-generator@^7.22.20": - version "7.22.20" - resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.22.20.tgz#7b68e1cb4fa964d2996fd063723fb48eca8498e0" - integrity sha512-pBGyV4uBqOns+0UvhsTO8qgl8hO89PmiDYv+/COyp1aeMcmfrfruz+/nCMFiYyFF/Knn0yfrC85ZzNFjembFTw== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-wrap-function" "^7.22.20" - -"@babel/helper-replace-supers@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.1.tgz#7085bd19d4a0b7ed8f405c1ed73ccb70f323abc1" - integrity sha512-QCR1UqC9BzG5vZl8BMicmZ28RuUBnHhAMddD8yHFHDRH9lLTZ9uUPehX8ctVPT8l0TKblJidqcgUUKGVrePleQ== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-member-expression-to-functions" "^7.23.0" - "@babel/helper-optimise-call-expression" "^7.22.5" - -"@babel/helper-simple-access@^7.22.5", "@babel/helper-simple-access@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.5.tgz#50da5b72f58c16b07fbd992810be6049478e85ba" - integrity sha512-uH3Hmf5q5n7n8mz7arjUlDOCbttY/DW4DYhE6FUsjKJ/oYC1kQQUvwEQWxRwUpX9qQKRXeqLwWxrqilMrf32sQ== - dependencies: - "@babel/types" "^7.24.5" - -"@babel/helper-skip-transparent-expression-wrappers@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.22.5.tgz#007f15240b5751c537c40e77abb4e89eeaaa8847" - integrity sha512-tK14r66JZKiC43p8Ki33yLBVJKlQDFoA8GYN67lWCDCqoL6EMMSuM9b+Iff2jHaM/RRFYl7K+iiru7hbRqNx8Q== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-split-export-declaration@7.22.6": - version "7.22.6" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" - integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== - dependencies: - "@babel/types" "^7.22.5" - -"@babel/helper-split-export-declaration@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.5.tgz#b9a67f06a46b0b339323617c8c6213b9055a78b6" - integrity sha512-5CHncttXohrHk8GWOFCcCl4oRD9fKosWlIRgWm4ql9VYioKm52Mk2xsmoohvm7f3JoiLSM5ZgJuRaf5QZZYd3Q== - dependencies: - "@babel/types" "^7.24.5" - -"@babel/helper-string-parser@^7.24.1": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.1.tgz#f99c36d3593db9540705d0739a1f10b5e20c696e" - integrity sha512-2ofRCjnnA9y+wk8b9IAREroeUP02KHp431N2mhKniy2yKIDKpbrHv9eXwm8cBeWQYcJmzv5qKCu65P47eCF7CQ== - -"@babel/helper-validator-identifier@^7.22.20", "@babel/helper-validator-identifier@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.5.tgz#918b1a7fa23056603506370089bd990d8720db62" - integrity sha512-3q93SSKX2TWCG30M2G2kwaKeTYgEUp5Snjuj8qm729SObL6nbtUldAi37qbxkD5gg3xnBio+f9nqpSepGZMvxA== - -"@babel/helper-validator-option@^7.23.5": - version "7.23.5" - resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.23.5.tgz#907a3fbd4523426285365d1206c423c4c5520307" - integrity sha512-85ttAOMLsr53VgXkTbkx8oA6YTfT4q7/HzXSLEYmjcSTJPMPQtvq1BD79Byep5xMUYbGRzEpDsjUf3dyp54IKw== - -"@babel/helper-wrap-function@^7.22.20": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.5.tgz#335f934c0962e2c1ed1fb9d79e06a56115067c09" - integrity sha512-/xxzuNvgRl4/HLNKvnFwdhdgN3cpLxgLROeLDl83Yx0AJ1SGvq1ak0OszTOjDfiB8Vx03eJbeDWh9r+jCCWttw== - dependencies: - "@babel/helper-function-name" "^7.23.0" - "@babel/template" "^7.24.0" - "@babel/types" "^7.24.5" - -"@babel/helpers@^7.23.9", "@babel/helpers@^7.24.0", "@babel/helpers@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.5.tgz#fedeb87eeafa62b621160402181ad8585a22a40a" - integrity sha512-CiQmBMMpMQHwM5m01YnrM6imUG1ebgYJ+fAIW4FZe6m4qHTPaRHti+R8cggAwkdz4oXhtO4/K9JWlh+8hIfR2Q== - dependencies: - "@babel/template" "^7.24.0" - "@babel/traverse" "^7.24.5" - "@babel/types" "^7.24.5" - -"@babel/highlight@^7.24.2": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.5.tgz#bc0613f98e1dd0720e99b2a9ee3760194a704b6e" - integrity sha512-8lLmua6AVh/8SLJRRVD6V8p73Hir9w5mJrhE+IPpILG31KKlI9iz5zmBYKcWPS59qSfgP9RaSBQSHHE81WKuEw== - dependencies: - "@babel/helper-validator-identifier" "^7.24.5" - chalk "^2.4.2" - js-tokens "^4.0.0" - picocolors "^1.0.0" - -"@babel/parser@^7.14.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.0", "@babel/parser@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.5.tgz#4a4d5ab4315579e5398a82dcf636ca80c3392790" - integrity sha512-EOv5IK8arwh3LI47dz1b0tKUb/1uhHAnHJOrjgtQMIpu1uXd9mlFrJg9IUgGUgZ41Ch0K8REPTYpO7B76b4vJg== - -"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.1.tgz#b645d9ba8c2bc5b7af50f0fe949f9edbeb07c8cf" - integrity sha512-y4HqEnkelJIOQGd+3g1bTeKsA5c6qM7eOn7VggGVbBc0y8MLSKHacwcIE2PplNlQSj0PqS9rrXL/nkPVK+kUNg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.1.tgz#da8261f2697f0f41b0855b91d3a20a1fbfd271d3" - integrity sha512-Hj791Ii4ci8HqnaKHAlLNs+zaLXb0EzSDhiAWp5VNlyvCNymYfacs64pxTxbH1znW/NcArSmwpmG9IKE/TUVVQ== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/plugin-transform-optional-chaining" "^7.24.1" - -"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.23.7": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.1.tgz#1181d9685984c91d657b8ddf14f0487a6bab2988" - integrity sha512-m9m/fXsXLiHfwdgydIFnpk+7jlVbnvlK5B2EKiPdLUb6WX654ZaaEWJUjk8TftRbZpK0XibovlLWX4KIZhV6jw== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": - version "7.21.0-placeholder-for-preset-env.2" - resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" - integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== - -"@babel/plugin-syntax-async-generators@^7.8.4": - version "7.8.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" - integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-class-properties@^7.12.13": - version "7.12.13" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" - integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== - dependencies: - "@babel/helper-plugin-utils" "^7.12.13" - -"@babel/plugin-syntax-class-static-block@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" - integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-dynamic-import@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" - integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-export-namespace-from@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" - integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.3" - -"@babel/plugin-syntax-import-assertions@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.1.tgz#db3aad724153a00eaac115a3fb898de544e34971" - integrity sha512-IuwnI5XnuF189t91XbxmXeCDz3qs6iDRO7GJ++wcfgeXNs/8FmIlKcpDSXNVyuLQxlwvskmI3Ct73wUODkJBlQ== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-syntax-import-attributes@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.1.tgz#c66b966c63b714c4eec508fcf5763b1f2d381093" - integrity sha512-zhQTMH0X2nVLnb04tz+s7AMuasX8U0FnpE+nHTOhSOINjWMnopoZTxtIKsd45n4GQ/HIZLyfIpoul8e2m0DnRA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-syntax-import-meta@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" - integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-json-strings@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" - integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" - integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" - integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-numeric-separator@^7.10.4": - version "7.10.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" - integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== - dependencies: - "@babel/helper-plugin-utils" "^7.10.4" - -"@babel/plugin-syntax-object-rest-spread@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" - integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-catch-binding@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" - integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-optional-chaining@^7.8.3": - version "7.8.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" - integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== - dependencies: - "@babel/helper-plugin-utils" "^7.8.0" - -"@babel/plugin-syntax-private-property-in-object@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" - integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-top-level-await@^7.14.5": - version "7.14.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" - integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== - dependencies: - "@babel/helper-plugin-utils" "^7.14.5" - -"@babel/plugin-syntax-unicode-sets-regex@^7.18.6": - version "7.18.6" - resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" - integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.18.6" - "@babel/helper-plugin-utils" "^7.18.6" - -"@babel/plugin-transform-arrow-functions@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.1.tgz#2bf263617060c9cc45bcdbf492b8cc805082bf27" - integrity sha512-ngT/3NkRhsaep9ck9uj2Xhv9+xB1zShY3tM3g6om4xxCELwCDN4g4Aq5dRn48+0hasAql7s2hdBOysCfNpr4fw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-async-generator-functions@7.23.9": - version "7.23.9" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.9.tgz#9adaeb66fc9634a586c5df139c6240d41ed801ce" - integrity sha512-8Q3veQEDGe14dTYuwagbRtwxQDnytyg1JFu4/HwEMETeofocrB0U0ejBJIXoeG/t2oXZ8kzCyI0ZZfbT80VFNQ== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-remap-async-to-generator" "^7.22.20" - "@babel/plugin-syntax-async-generators" "^7.8.4" - -"@babel/plugin-transform-async-generator-functions@^7.23.9": - version "7.24.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.3.tgz#8fa7ae481b100768cc9842c8617808c5352b8b89" - integrity sha512-Qe26CMYVjpQxJ8zxM1340JFNjZaF+ISWpr1Kt/jGo+ZTUzKkfw/pphEWbRCb+lmSM6k/TOgfYLvmbHkUQ0asIg== - dependencies: - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-remap-async-to-generator" "^7.22.20" - "@babel/plugin-syntax-async-generators" "^7.8.4" - -"@babel/plugin-transform-async-to-generator@7.23.3": - version "7.23.3" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz#d1f513c7a8a506d43f47df2bf25f9254b0b051fa" - integrity sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw== - dependencies: - "@babel/helper-module-imports" "^7.22.15" - "@babel/helper-plugin-utils" "^7.22.5" - "@babel/helper-remap-async-to-generator" "^7.22.20" - -"@babel/plugin-transform-async-to-generator@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.1.tgz#0e220703b89f2216800ce7b1c53cb0cf521c37f4" - integrity sha512-AawPptitRXp1y0n4ilKcGbRYWfbbzFWz2NqNu7dacYDtFtz0CMjG64b3LQsb3KIgnf4/obcUL78hfaOS7iCUfw== - dependencies: - "@babel/helper-module-imports" "^7.24.1" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-remap-async-to-generator" "^7.22.20" - -"@babel/plugin-transform-block-scoped-functions@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.1.tgz#1c94799e20fcd5c4d4589523bbc57b7692979380" - integrity sha512-TWWC18OShZutrv9C6mye1xwtam+uNi2bnTOCBUd5sZxyHOiWbU6ztSROofIMrK84uweEZC219POICK/sTYwfgg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-block-scoping@^7.23.4": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.5.tgz#89574191397f85661d6f748d4b89ee4d9ee69a2a" - integrity sha512-sMfBc3OxghjC95BkYrYocHL3NaOplrcaunblzwXhGmlPwpmfsxr4vK+mBBt49r+S240vahmv+kUxkeKgs+haCw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.5" - -"@babel/plugin-transform-class-properties@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.1.tgz#bcbf1aef6ba6085cfddec9fc8d58871cf011fc29" - integrity sha512-OMLCXi0NqvJfORTaPQBwqLXHhb93wkBKZ4aNwMl6WtehO7ar+cmp+89iPEQPqxAnxsOKTaMcs3POz3rKayJ72g== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.1" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-class-static-block@^7.23.4": - version "7.24.4" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.4.tgz#1a4653c0cf8ac46441ec406dece6e9bc590356a4" - integrity sha512-B8q7Pz870Hz/q9UgP8InNpY01CSLDSCyqX7zcRuv3FcPl87A2G17lASroHWaCtbdIcbYzOZ7kWmXFKbijMSmFg== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.4" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - -"@babel/plugin-transform-classes@^7.23.8": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.5.tgz#05e04a09df49a46348299a0e24bfd7e901129339" - integrity sha512-gWkLP25DFj2dwe9Ck8uwMOpko4YsqyfZJrOmqqcegeDYEbp7rmn4U6UQZNj08UF6MaX39XenSpKRCvpDRBtZ7Q== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-function-name" "^7.23.0" - "@babel/helper-plugin-utils" "^7.24.5" - "@babel/helper-replace-supers" "^7.24.1" - "@babel/helper-split-export-declaration" "^7.24.5" - globals "^11.1.0" - -"@babel/plugin-transform-computed-properties@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.1.tgz#bc7e787f8e021eccfb677af5f13c29a9934ed8a7" - integrity sha512-5pJGVIUfJpOS+pAqBQd+QMaTD2vCL/HcePooON6pDpHgRp4gNRmzyHTPIkXntwKsq3ayUFVfJaIKPw2pOkOcTw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/template" "^7.24.0" - -"@babel/plugin-transform-destructuring@^7.23.3": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.5.tgz#80843ee6a520f7362686d1a97a7b53544ede453c" - integrity sha512-SZuuLyfxvsm+Ah57I/i1HVjveBENYK9ue8MJ7qkc7ndoNjqquJiElzA7f5yaAXjyW2hKojosOTAQQRX50bPSVg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.5" - -"@babel/plugin-transform-dotall-regex@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.1.tgz#d56913d2f12795cc9930801b84c6f8c47513ac13" - integrity sha512-p7uUxgSoZwZ2lPNMzUkqCts3xlp8n+o05ikjy7gbtFJSt9gdU88jAmtfmOxHM14noQXBxfgzf2yRWECiNVhTCw== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-duplicate-keys@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.1.tgz#5347a797fe82b8d09749d10e9f5b83665adbca88" - integrity sha512-msyzuUnvsjsaSaocV6L7ErfNsa5nDWL1XKNnDePLgmz+WdU4w/J8+AxBMrWfi9m4IxfL5sZQKUPQKDQeeAT6lA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-dynamic-import@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.1.tgz#2a5a49959201970dd09a5fca856cb651e44439dd" - integrity sha512-av2gdSTyXcJVdI+8aFZsCAtR29xJt0S5tas+Ef8NvBNmD1a+N/3ecMLeMBgfcK+xzsjdLDT6oHt+DFPyeqUbDA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - -"@babel/plugin-transform-exponentiation-operator@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.1.tgz#6650ebeb5bd5c012d5f5f90a26613a08162e8ba4" - integrity sha512-U1yX13dVBSwS23DEAqU+Z/PkwE9/m7QQy8Y9/+Tdb8UWYaGNDYwTLi19wqIAiROr8sXVum9A/rtiH5H0boUcTw== - dependencies: - "@babel/helper-builder-binary-assignment-operator-visitor" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-export-namespace-from@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.1.tgz#f033541fc036e3efb2dcb58eedafd4f6b8078acd" - integrity sha512-Ft38m/KFOyzKw2UaJFkWG9QnHPG/Q/2SkOrRk4pNBPg5IPZ+dOxcmkK5IyuBcxiNPyyYowPGUReyBvrvZs7IlQ== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - -"@babel/plugin-transform-for-of@^7.23.6": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.1.tgz#67448446b67ab6c091360ce3717e7d3a59e202fd" - integrity sha512-OxBdcnF04bpdQdR3i4giHZNZQn7cm8RQKcSwA17wAAqEELo1ZOwp5FFgeptWUQXFyT9kwHo10aqqauYkRZPCAg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - -"@babel/plugin-transform-function-name@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.1.tgz#8cba6f7730626cc4dfe4ca2fa516215a0592b361" - integrity sha512-BXmDZpPlh7jwicKArQASrj8n22/w6iymRnvHYYd2zO30DbE277JO20/7yXJT3QxDPtiQiOxQBbZH4TpivNXIxA== - dependencies: - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-function-name" "^7.23.0" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-json-strings@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.1.tgz#08e6369b62ab3e8a7b61089151b161180c8299f7" - integrity sha512-U7RMFmRvoasscrIFy5xA4gIp8iWnWubnKkKuUGJjsuOH7GfbMkB+XZzeslx2kLdEGdOJDamEmCqOks6e8nv8DQ== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-json-strings" "^7.8.3" - -"@babel/plugin-transform-literals@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.1.tgz#0a1982297af83e6b3c94972686067df588c5c096" - integrity sha512-zn9pwz8U7nCqOYIiBaOxoQOtYmMODXTJnkxG4AtX8fPmnCRYWBOHD0qcpwS9e2VDSp1zNJYpdnFMIKb8jmwu6g== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-logical-assignment-operators@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.1.tgz#719d8aded1aa94b8fb34e3a785ae8518e24cfa40" - integrity sha512-OhN6J4Bpz+hIBqItTeWJujDOfNP+unqv/NJgyhlpSqgBTPm37KkMmZV6SYcOj+pnDbdcl1qRGV/ZiIjX9Iy34w== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - -"@babel/plugin-transform-member-expression-literals@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.1.tgz#896d23601c92f437af8b01371ad34beb75df4489" - integrity sha512-4ojai0KysTWXzHseJKa1XPNXKRbuUrhkOPY4rEGeR+7ChlJVKxFa3H3Bz+7tWaGKgJAXUWKOGmltN+u9B3+CVg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-modules-amd@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.1.tgz#b6d829ed15258536977e9c7cc6437814871ffa39" - integrity sha512-lAxNHi4HVtjnHd5Rxg3D5t99Xm6H7b04hUS7EHIXcUl2EV4yl1gWdqZrNzXnSrHveL9qMdbODlLF55mvgjAfaQ== - dependencies: - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-modules-commonjs@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.1.tgz#e71ba1d0d69e049a22bf90b3867e263823d3f1b9" - integrity sha512-szog8fFTUxBfw0b98gEWPaEqF42ZUD/T3bkynW/wtgx2p/XCP55WEsb+VosKceRSd6njipdZvNogqdtI4Q0chw== - dependencies: - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-simple-access" "^7.22.5" - -"@babel/plugin-transform-modules-systemjs@^7.23.9": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.1.tgz#2b9625a3d4e445babac9788daec39094e6b11e3e" - integrity sha512-mqQ3Zh9vFO1Tpmlt8QPnbwGHzNz3lpNEMxQb1kAemn/erstyqw1r9KeOlOfo3y6xAnFEcOv2tSyrXfmMk+/YZA== - dependencies: - "@babel/helper-hoist-variables" "^7.22.5" - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-validator-identifier" "^7.22.20" - -"@babel/plugin-transform-modules-umd@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.1.tgz#69220c66653a19cf2c0872b9c762b9a48b8bebef" - integrity sha512-tuA3lpPj+5ITfcCluy6nWonSL7RvaG0AOTeAuvXqEKS34lnLzXpDb0dcP6K8jD0zWZFNDVly90AGFJPnm4fOYg== - dependencies: - "@babel/helper-module-transforms" "^7.23.3" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5": - version "7.22.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.22.5.tgz#67fe18ee8ce02d57c855185e27e3dc959b2e991f" - integrity sha512-YgLLKmS3aUBhHaxp5hi1WJTgOUb/NCuDHzGT9z9WTt3YG+CPRhJs6nprbStx6DnWM4dh6gt7SU3sZodbZ08adQ== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.5" - "@babel/helper-plugin-utils" "^7.22.5" - -"@babel/plugin-transform-new-target@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.1.tgz#29c59988fa3d0157de1c871a28cd83096363cc34" - integrity sha512-/rurytBM34hYy0HKZQyA0nHbQgQNFm4Q/BOc9Hflxi2X3twRof7NaE5W46j4kQitm7SvACVRXsa6N/tSZxvPug== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-nullish-coalescing-operator@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.1.tgz#0cd494bb97cb07d428bd651632cb9d4140513988" - integrity sha512-iQ+caew8wRrhCikO5DrUYx0mrmdhkaELgFa+7baMcVuhxIkN7oxt06CZ51D65ugIb1UWRQ8oQe+HXAVM6qHFjw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - -"@babel/plugin-transform-numeric-separator@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.1.tgz#5bc019ce5b3435c1cadf37215e55e433d674d4e8" - integrity sha512-7GAsGlK4cNL2OExJH1DzmDeKnRv/LXq0eLUSvudrehVA5Rgg4bIrqEUW29FbKMBRT0ztSqisv7kjP+XIC4ZMNw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - -"@babel/plugin-transform-object-rest-spread@^7.24.0": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.5.tgz#f91bbcb092ff957c54b4091c86bda8372f0b10ef" - integrity sha512-7EauQHszLGM3ay7a161tTQH7fj+3vVM/gThlz5HpFtnygTxjrlvoeq7MPVA1Vy9Q555OB8SnAOsMkLShNkkrHA== - dependencies: - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-plugin-utils" "^7.24.5" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-transform-parameters" "^7.24.5" - -"@babel/plugin-transform-object-super@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.1.tgz#e71d6ab13483cca89ed95a474f542bbfc20a0520" - integrity sha512-oKJqR3TeI5hSLRxudMjFQ9re9fBVUU0GICqM3J1mi8MqlhVr6hC/ZN4ttAyMuQR6EZZIY6h/exe5swqGNNIkWQ== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-replace-supers" "^7.24.1" - -"@babel/plugin-transform-optional-catch-binding@^7.23.4": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.1.tgz#92a3d0efe847ba722f1a4508669b23134669e2da" - integrity sha512-oBTH7oURV4Y+3EUrf6cWn1OHio3qG/PVwO5J03iSJmBg6m2EhKjkAu/xuaXaYwWW9miYtvbWv4LNf0AmR43LUA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - -"@babel/plugin-transform-optional-chaining@^7.23.4", "@babel/plugin-transform-optional-chaining@^7.24.1": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.5.tgz#a6334bebd7f9dd3df37447880d0bd64b778e600f" - integrity sha512-xWCkmwKT+ihmA6l7SSTpk8e4qQl/274iNbSKRRS8mpqFR32ksy36+a+LWY8OXCCEefF8WFlnOHVsaDI2231wBg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.5" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - -"@babel/plugin-transform-parameters@^7.23.3", "@babel/plugin-transform-parameters@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.5.tgz#5c3b23f3a6b8fed090f9b98f2926896d3153cc62" - integrity sha512-9Co00MqZ2aoky+4j2jhofErthm6QVLKbpQrvz20c3CH9KQCLHyNB+t2ya4/UrRpQGR+Wrwjg9foopoeSdnHOkA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.5" - -"@babel/plugin-transform-private-methods@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.1.tgz#a0faa1ae87eff077e1e47a5ec81c3aef383dc15a" - integrity sha512-tGvisebwBO5em4PaYNqt4fkw56K2VALsAbAakY0FjTYqJp7gfdrgr7YX76Or8/cpik0W6+tj3rZ0uHU9Oil4tw== - dependencies: - "@babel/helper-create-class-features-plugin" "^7.24.1" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-private-property-in-object@^7.23.4": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.5.tgz#f5d1fcad36e30c960134cb479f1ca98a5b06eda5" - integrity sha512-JM4MHZqnWR04jPMujQDTBVRnqxpLLpx2tkn7iPn+Hmsc0Gnb79yvRWOkvqFOx3Z7P7VxiRIR22c4eGSNj87OBQ== - dependencies: - "@babel/helper-annotate-as-pure" "^7.22.5" - "@babel/helper-create-class-features-plugin" "^7.24.5" - "@babel/helper-plugin-utils" "^7.24.5" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - -"@babel/plugin-transform-property-literals@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.1.tgz#d6a9aeab96f03749f4eebeb0b6ea8e90ec958825" - integrity sha512-LetvD7CrHmEx0G442gOomRr66d7q8HzzGGr4PMHGr+5YIm6++Yke+jxj246rpvsbyhJwCLxcTn6zW1P1BSenqA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-regenerator@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.1.tgz#625b7545bae52363bdc1fbbdc7252b5046409c8c" - integrity sha512-sJwZBCzIBE4t+5Q4IGLaaun5ExVMRY0lYwos/jNecjMrVCygCdph3IKv0tkP5Fc87e/1+bebAmEAGBfnRD+cnw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - regenerator-transform "^0.15.2" - -"@babel/plugin-transform-reserved-words@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.1.tgz#8de729f5ecbaaf5cf83b67de13bad38a21be57c1" - integrity sha512-JAclqStUfIwKN15HrsQADFgeZt+wexNQ0uLhuqvqAUFoqPMjEcFCYZBhq0LUdz6dZK/mD+rErhW71fbx8RYElg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-runtime@7.24.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.0.tgz#e308fe27d08b74027d42547081eefaf4f2ffbcc9" - integrity sha512-zc0GA5IitLKJrSfXlXmp8KDqLrnGECK7YRfQBmEKg1NmBOQ7e+KuclBEKJgzifQeUYLdNiAw4B4bjyvzWVLiSA== - dependencies: - "@babel/helper-module-imports" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - babel-plugin-polyfill-corejs2 "^0.4.8" - babel-plugin-polyfill-corejs3 "^0.9.0" - babel-plugin-polyfill-regenerator "^0.5.5" - semver "^6.3.1" - -"@babel/plugin-transform-shorthand-properties@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.1.tgz#ba9a09144cf55d35ec6b93a32253becad8ee5b55" - integrity sha512-LyjVB1nsJ6gTTUKRjRWx9C1s9hE7dLfP/knKdrfeH9UPtAGjYGgxIbFfx7xyLIEWs7Xe1Gnf8EWiUqfjLhInZA== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-spread@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.1.tgz#a1acf9152cbf690e4da0ba10790b3ac7d2b2b391" - integrity sha512-KjmcIM+fxgY+KxPVbjelJC6hrH1CgtPmTvdXAfn3/a9CnWGSTY7nH4zm5+cjmWJybdcPSsD0++QssDsjcpe47g== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-skip-transparent-expression-wrappers" "^7.22.5" - -"@babel/plugin-transform-sticky-regex@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.1.tgz#f03e672912c6e203ed8d6e0271d9c2113dc031b9" - integrity sha512-9v0f1bRXgPVcPrngOQvLXeGNNVLc8UjMVfebo9ka0WF3/7+aVUHmaJVT3sa0XCzEFioPfPHZiOcYG9qOsH63cw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-template-literals@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.1.tgz#15e2166873a30d8617e3e2ccadb86643d327aab7" - integrity sha512-WRkhROsNzriarqECASCNu/nojeXCDTE/F2HmRgOzi7NGvyfYGq1NEjKBK3ckLfRgGc6/lPAqP0vDOSw3YtG34g== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-typeof-symbol@^7.23.3": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.5.tgz#703cace5ef74155fb5eecab63cbfc39bdd25fe12" - integrity sha512-UTGnhYVZtTAjdwOTzT+sCyXmTn8AhaxOS/MjG9REclZ6ULHWF9KoCZur0HSGU7hk8PdBFKKbYe6+gqdXWz84Jg== - dependencies: - "@babel/helper-plugin-utils" "^7.24.5" - -"@babel/plugin-transform-unicode-escapes@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.1.tgz#fb3fa16676549ac7c7449db9b342614985c2a3a4" - integrity sha512-RlkVIcWT4TLI96zM660S877E7beKlQw7Ig+wqkKBiWfj0zH5Q4h50q6er4wzZKRNSYpfo6ILJ+hrJAGSX2qcNw== - dependencies: - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-unicode-property-regex@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.1.tgz#56704fd4d99da81e5e9f0c0c93cabd91dbc4889e" - integrity sha512-Ss4VvlfYV5huWApFsF8/Sq0oXnGO+jB+rijFEFugTd3cwSObUSnUi88djgR5528Csl0uKlrI331kRqe56Ov2Ng== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-unicode-regex@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.1.tgz#57c3c191d68f998ac46b708380c1ce4d13536385" - integrity sha512-2A/94wgZgxfTsiLaQ2E36XAOdcZmGAaEEgVmxQWwZXWkGhvoHbaqXcKnU8zny4ycpu3vNqg0L/PcCiYtHtA13g== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/plugin-transform-unicode-sets-regex@^7.23.3": - version "7.24.1" - resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.1.tgz#c1ea175b02afcffc9cf57a9c4658326625165b7f" - integrity sha512-fqj4WuzzS+ukpgerpAoOnMfQXwUHFxXUZUE84oL2Kao2N8uSlvcpnAidKASgsNgzZHBsHWvcm8s9FPWUhAb8fA== - dependencies: - "@babel/helper-create-regexp-features-plugin" "^7.22.15" - "@babel/helper-plugin-utils" "^7.24.0" - -"@babel/preset-env@7.24.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.0.tgz#11536a7f4b977294f0bdfad780f01a8ac8e183fc" - integrity sha512-ZxPEzV9IgvGn73iK0E6VB9/95Nd7aMFpbE0l8KQFDG70cOV9IxRP7Y2FUPmlK0v6ImlLqYX50iuZ3ZTVhOF2lA== - dependencies: - "@babel/compat-data" "^7.23.5" - "@babel/helper-compilation-targets" "^7.23.6" - "@babel/helper-plugin-utils" "^7.24.0" - "@babel/helper-validator-option" "^7.23.5" - "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3" - "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.23.3" - "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.23.7" - "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" - "@babel/plugin-syntax-async-generators" "^7.8.4" - "@babel/plugin-syntax-class-properties" "^7.12.13" - "@babel/plugin-syntax-class-static-block" "^7.14.5" - "@babel/plugin-syntax-dynamic-import" "^7.8.3" - "@babel/plugin-syntax-export-namespace-from" "^7.8.3" - "@babel/plugin-syntax-import-assertions" "^7.23.3" - "@babel/plugin-syntax-import-attributes" "^7.23.3" - "@babel/plugin-syntax-import-meta" "^7.10.4" - "@babel/plugin-syntax-json-strings" "^7.8.3" - "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" - "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" - "@babel/plugin-syntax-numeric-separator" "^7.10.4" - "@babel/plugin-syntax-object-rest-spread" "^7.8.3" - "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" - "@babel/plugin-syntax-optional-chaining" "^7.8.3" - "@babel/plugin-syntax-private-property-in-object" "^7.14.5" - "@babel/plugin-syntax-top-level-await" "^7.14.5" - "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" - "@babel/plugin-transform-arrow-functions" "^7.23.3" - "@babel/plugin-transform-async-generator-functions" "^7.23.9" - "@babel/plugin-transform-async-to-generator" "^7.23.3" - "@babel/plugin-transform-block-scoped-functions" "^7.23.3" - "@babel/plugin-transform-block-scoping" "^7.23.4" - "@babel/plugin-transform-class-properties" "^7.23.3" - "@babel/plugin-transform-class-static-block" "^7.23.4" - "@babel/plugin-transform-classes" "^7.23.8" - "@babel/plugin-transform-computed-properties" "^7.23.3" - "@babel/plugin-transform-destructuring" "^7.23.3" - "@babel/plugin-transform-dotall-regex" "^7.23.3" - "@babel/plugin-transform-duplicate-keys" "^7.23.3" - "@babel/plugin-transform-dynamic-import" "^7.23.4" - "@babel/plugin-transform-exponentiation-operator" "^7.23.3" - "@babel/plugin-transform-export-namespace-from" "^7.23.4" - "@babel/plugin-transform-for-of" "^7.23.6" - "@babel/plugin-transform-function-name" "^7.23.3" - "@babel/plugin-transform-json-strings" "^7.23.4" - "@babel/plugin-transform-literals" "^7.23.3" - "@babel/plugin-transform-logical-assignment-operators" "^7.23.4" - "@babel/plugin-transform-member-expression-literals" "^7.23.3" - "@babel/plugin-transform-modules-amd" "^7.23.3" - "@babel/plugin-transform-modules-commonjs" "^7.23.3" - "@babel/plugin-transform-modules-systemjs" "^7.23.9" - "@babel/plugin-transform-modules-umd" "^7.23.3" - "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" - "@babel/plugin-transform-new-target" "^7.23.3" - "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.4" - "@babel/plugin-transform-numeric-separator" "^7.23.4" - "@babel/plugin-transform-object-rest-spread" "^7.24.0" - "@babel/plugin-transform-object-super" "^7.23.3" - "@babel/plugin-transform-optional-catch-binding" "^7.23.4" - "@babel/plugin-transform-optional-chaining" "^7.23.4" - "@babel/plugin-transform-parameters" "^7.23.3" - "@babel/plugin-transform-private-methods" "^7.23.3" - "@babel/plugin-transform-private-property-in-object" "^7.23.4" - "@babel/plugin-transform-property-literals" "^7.23.3" - "@babel/plugin-transform-regenerator" "^7.23.3" - "@babel/plugin-transform-reserved-words" "^7.23.3" - "@babel/plugin-transform-shorthand-properties" "^7.23.3" - "@babel/plugin-transform-spread" "^7.23.3" - "@babel/plugin-transform-sticky-regex" "^7.23.3" - "@babel/plugin-transform-template-literals" "^7.23.3" - "@babel/plugin-transform-typeof-symbol" "^7.23.3" - "@babel/plugin-transform-unicode-escapes" "^7.23.3" - "@babel/plugin-transform-unicode-property-regex" "^7.23.3" - "@babel/plugin-transform-unicode-regex" "^7.23.3" - "@babel/plugin-transform-unicode-sets-regex" "^7.23.3" - "@babel/preset-modules" "0.1.6-no-external-plugins" - babel-plugin-polyfill-corejs2 "^0.4.8" - babel-plugin-polyfill-corejs3 "^0.9.0" - babel-plugin-polyfill-regenerator "^0.5.5" - core-js-compat "^3.31.0" - semver "^6.3.1" - -"@babel/preset-modules@0.1.6-no-external-plugins": - version "0.1.6-no-external-plugins" - resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" - integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@babel/types" "^7.4.4" - esutils "^2.0.2" - -"@babel/regjsgen@^0.8.0": - version "0.8.0" - resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" - integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== - -"@babel/runtime@7.24.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e" - integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw== - dependencies: - regenerator-runtime "^0.14.0" - -"@babel/runtime@^7.21.0", "@babel/runtime@^7.8.4": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.5.tgz#230946857c053a36ccc66e1dd03b17dd0c4ed02c" - integrity sha512-Nms86NXrsaeU9vbBJKni6gXiEXZ4CVpYVzEjDH9Sb8vmZ3UljyA1GSOJl/6LGPO8EHLuSF9H+IxNXHPX8QHJ4g== - dependencies: - regenerator-runtime "^0.14.0" - -"@babel/template@^7.22.15", "@babel/template@^7.23.9", "@babel/template@^7.24.0": - version "7.24.0" - resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.0.tgz#c6a524aa93a4a05d66aaf31654258fae69d87d50" - integrity sha512-Bkf2q8lMB0AFpX0NFEqSbx1OkTHf0f+0j82mkw+ZpzBnkk7e9Ql0891vlfgi+kHwOk8tQjiQHpqh4LaSa0fKEA== - dependencies: - "@babel/code-frame" "^7.23.5" - "@babel/parser" "^7.24.0" - "@babel/types" "^7.24.0" - -"@babel/traverse@^7.23.9", "@babel/traverse@^7.24.0", "@babel/traverse@^7.24.5": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.5.tgz#972aa0bc45f16983bf64aa1f877b2dd0eea7e6f8" - integrity sha512-7aaBLeDQ4zYcUFDUD41lJc1fG8+5IU9DaNSJAgal866FGvmD5EbWQgnEC6kO1gGLsX0esNkfnJSndbTXA3r7UA== - dependencies: - "@babel/code-frame" "^7.24.2" - "@babel/generator" "^7.24.5" - "@babel/helper-environment-visitor" "^7.22.20" - "@babel/helper-function-name" "^7.23.0" - "@babel/helper-hoist-variables" "^7.22.5" - "@babel/helper-split-export-declaration" "^7.24.5" - "@babel/parser" "^7.24.5" - "@babel/types" "^7.24.5" - debug "^4.3.1" - globals "^11.1.0" - -"@babel/types@^7.22.15", "@babel/types@^7.22.5", "@babel/types@^7.23.0", "@babel/types@^7.23.6", "@babel/types@^7.23.9", "@babel/types@^7.24.0", "@babel/types@^7.24.5", "@babel/types@^7.4.4": - version "7.24.5" - resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.5.tgz#7661930afc638a5383eb0c4aee59b74f38db84d7" - integrity sha512-6mQNsaLeXTw0nxYUYu+NSa4Hx4BlF1x1x8/PMFbiR+GBSr+2DkECc69b8hgy2frEodNcvPffeH8YfWd3LI6jhQ== - dependencies: - "@babel/helper-string-parser" "^7.24.1" - "@babel/helper-validator-identifier" "^7.24.5" - to-fast-properties "^2.0.0" - -"@colors/colors@1.5.0": - version "1.5.0" - resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" - integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== - -"@cspotcode/source-map-support@^0.8.0": - version "0.8.1" - resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" - integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== - dependencies: - "@jridgewell/trace-mapping" "0.3.9" - -"@csstools/selector-specificity@^2.0.2": - version "2.2.0" - resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz#2cbcf822bf3764c9658c4d2e568bd0c0cb748016" - integrity sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw== - -"@ctrl/tinycolor@^3.6.1": - version "3.6.1" - resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31" - integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA== - -"@delon/abc@17.0.5": - version "17.0.5" - resolved "https://registry.yarnpkg.com/@delon/abc/-/abc-17.0.5.tgz#f4eea83b563f8bcc3adc57b49726ea5f7e663531" - integrity sha512-TdQMYFZ3dBC85eH/7vZGBRsL12uP0zD5lkYEdFhCiMSnnuIdQDosufv3oScFU7yHKriDc87IdXcA+wYobzlbag== - dependencies: - "@delon/acl" "^17.0.5" - "@delon/theme" "^17.0.5" - "@delon/util" "^17.0.5" - "@github/hotkey" "^2.3.0" - file-saver "^2.0.5" - isutf8 "^4.0.0" - jszip "^3.10.1" - ngx-countdown "^17.0.0" - plyr "^3.7.8" - tslib "^2.3.0" - xlsx "^0.18.5" - -"@delon/abc@^17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/abc/-/abc-17.3.1.tgz#ed15e054dfb16694892c065dcea6815185e3a621" - integrity sha512-Gh0IwSQVFA5cgrKvGMNEupj6He2ywk3luHz9ORRa4a81+SZpvvrebIba38f9Y5ZqPovUh4PLvrK2AfqGFpPfAQ== - dependencies: - "@delon/acl" "^17.3.1" - "@delon/theme" "^17.3.1" - "@delon/util" "^17.3.1" - "@github/hotkey" "^2.3.1" - file-saver "^2.0.5" - isutf8 "^4.0.0" - jszip "^3.10.1" - ngx-countdown "^17.1.1" - plyr "^3.7.8" - tslib "^2.3.0" - xlsx "^0.18.5" - -"@delon/acl@17.3.1", "@delon/acl@^17.0.5", "@delon/acl@^17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/acl/-/acl-17.3.1.tgz#e4320fbcb18850d4ee560f1037394bbe7e7e7d1c" - integrity sha512-iiw7eCwvkG5TTJMBKAD6mHDNIYgpGLiut7nKOinybyhwWWjev5okJceZyAI1QAZx0xYSfA9BPTfkq4vrjO0HIA== - dependencies: - "@delon/util" "^17.3.1" - tslib "^2.3.0" - -"@delon/auth@17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/auth/-/auth-17.3.1.tgz#9b02fed76c5e53d5ffe8918149913d37514d3c53" - integrity sha512-rOhelX3Bcydyr9RfCvDTqBTrKJpWO+ufQto5SS6tMRG3Snsp1tfLMau9oNkwq1lwS60SvlFq6ipxG6KTuWkb8A== - dependencies: - "@delon/util" "^17.3.1" - tslib "^2.3.0" - -"@delon/cache@17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/cache/-/cache-17.3.1.tgz#3d717bafe68aa62c3bb57dddaeace05f9530fe64" - integrity sha512-vsrWHH+ndWQ9vk04GazeKTQj0+EHk5c9LlSGtRHgrD7lLwwtWAOnrr6YOp0Z0UAOAR6WFGZmDGq37gWlZu9GxA== - dependencies: - "@delon/util" "^17.3.1" - tslib "^2.3.0" - -"@delon/form@17.3.1", "@delon/form@^17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/form/-/form-17.3.1.tgz#84cc30479c83e8ab50be5e01a830edf2640867ef" - integrity sha512-cCP0HLsiQjexy4nHfu8i86X/CT7mFMIdvkDsURXXDsSygiN56IdTFkzItEIcSVveL9tEK9zay0xiLNlOykG4RQ== - dependencies: - "@delon/acl" "^17.3.1" - "@delon/theme" "^17.3.1" - "@delon/util" "^17.3.1" - ajv "^8.12.0" - ajv-formats "^2.1.1" - tslib "^2.3.0" - -"@delon/mock@17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/mock/-/mock-17.3.1.tgz#5db851dc8353e6d2cfbcbd04547aada2a55aa7f2" - integrity sha512-MAR+jc6cncpRtZ/z7l14gz+SGKs7uVkoGcrCHIzC36Sxs2q4PudxyfxvDVPGqAlkR2TDbSdjVPbO1QfZg6gdMw== - dependencies: - "@delon/util" "^17.3.1" - "@types/mockjs" "^1.0.10" - mockjs "^1.1.0" - tslib "^2.3.0" - -"@delon/testing@17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/testing/-/testing-17.3.1.tgz#51f975c25ce3a2358317028f2a4f7d79eb243c9f" - integrity sha512-TrYlHWNHQClFPMDragmYTz39iP+K4aLd4szUSuEBax/OB9Q3ejX18GQoqe0ox0A7kawVaMsyTNRIuJT1Xe4zpQ== - dependencies: - tslib "^2.3.0" - -"@delon/theme@17.3.1", "@delon/theme@^17.0.5", "@delon/theme@^17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/theme/-/theme-17.3.1.tgz#f17a6f8962d36630d27a3612d9e75b4042473b53" - integrity sha512-0pSuy13uhVfL/jOlIgY+onmZ89KYk9/NmtdRcuZ+nWfnlKh7Zj1BOtn6bShikbkGEzI3+EIzhOZAwgsMoBLSxg== - dependencies: - "@delon/abc" "^17.3.1" - "@delon/acl" "^17.3.1" - "@delon/form" "^17.3.1" - "@delon/util" "^17.3.1" - ng-zorro-antd "^17.3.0" - tslib "^2.3.0" - -"@delon/util@17.3.1", "@delon/util@^17.0.5", "@delon/util@^17.3.1": - version "17.3.1" - resolved "https://registry.yarnpkg.com/@delon/util/-/util-17.3.1.tgz#6185292831bd3e6c2076a5b4cfb53361e203f46d" - integrity sha512-4dXkfWNu4jE6e9mFYCOy1Fnr1DJubHGsWniFPg7zPRY44EC1IfQWNzKe2GB6WHxLZBU7I6UUeg0lBAYXrG+ctg== - dependencies: - extend "^3.0.2" - tslib "^2.3.0" - -"@discoveryjs/json-ext@0.5.7": - version "0.5.7" - resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" - integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== - -"@es-joy/jsdoccomment@~0.43.0": - version "0.43.0" - resolved "https://registry.npmmirror.com/@es-joy/jsdoccomment/-/jsdoccomment-0.43.0.tgz#35c295cadd0a939d1a3a6cd1548f66ec76d38870" - integrity sha512-Q1CnsQrytI3TlCB1IVWXWeqUIPGVEKGaE7IbVdt13Nq/3i0JESAkQQERrfiQkmlpijl+++qyqPgaS31Bvc1jRQ== - dependencies: - "@types/eslint" "^8.56.5" - "@types/estree" "^1.0.5" - "@typescript-eslint/types" "^7.2.0" - comment-parser "1.4.1" - esquery "^1.5.0" - jsdoc-type-pratt-parser "~4.0.0" - -"@esbuild/aix-ppc64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" - integrity sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA== - -"@esbuild/aix-ppc64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.20.1.tgz#eafa8775019b3650a77e8310ba4dbd17ca7af6d5" - integrity sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA== - -"@esbuild/android-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" - integrity sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA== - -"@esbuild/android-arm64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.20.1.tgz#68791afa389550736f682c15b963a4f37ec2f5f6" - integrity sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A== - -"@esbuild/android-arm@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" - integrity sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w== - -"@esbuild/android-arm@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.20.1.tgz#38c91d8ee8d5196f7fbbdf4f0061415dde3a473a" - integrity sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw== - -"@esbuild/android-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" - integrity sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew== - -"@esbuild/android-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.20.1.tgz#93f6190ce997b313669c20edbf3645fc6c8d8f22" - integrity sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA== - -"@esbuild/darwin-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" - integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== - -"@esbuild/darwin-arm64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.20.1.tgz#0d391f2e81fda833fe609182cc2fbb65e03a3c46" - integrity sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA== - -"@esbuild/darwin-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" - integrity sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A== - -"@esbuild/darwin-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.20.1.tgz#92504077424584684862f483a2242cfde4055ba2" - integrity sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA== - -"@esbuild/freebsd-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" - integrity sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA== - -"@esbuild/freebsd-arm64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.1.tgz#a1646fa6ba87029c67ac8a102bb34384b9290774" - integrity sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw== - -"@esbuild/freebsd-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" - integrity sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg== - -"@esbuild/freebsd-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.20.1.tgz#41c9243ab2b3254ea7fb512f71ffdb341562e951" - integrity sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg== - -"@esbuild/linux-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" - integrity sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA== - -"@esbuild/linux-arm64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.20.1.tgz#f3c1e1269fbc9eedd9591a5bdd32bf707a883156" - integrity sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w== - -"@esbuild/linux-arm@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" - integrity sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w== - -"@esbuild/linux-arm@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.20.1.tgz#4503ca7001a8ee99589c072801ce9d7540717a21" - integrity sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw== - -"@esbuild/linux-ia32@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" - integrity sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA== - -"@esbuild/linux-ia32@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.20.1.tgz#98c474e3e0cbb5bcbdd8561a6e65d18f5767ce48" - integrity sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw== - -"@esbuild/linux-loong64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" - integrity sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA== - -"@esbuild/linux-loong64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.20.1.tgz#a8097d28d14b9165c725fe58fc438f80decd2f33" - integrity sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA== - -"@esbuild/linux-mips64el@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" - integrity sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w== - -"@esbuild/linux-mips64el@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.20.1.tgz#c44f6f0d7d017c41ad3bb15bfdb69b690656b5ea" - integrity sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA== - -"@esbuild/linux-ppc64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" - integrity sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg== - -"@esbuild/linux-ppc64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.20.1.tgz#0765a55389a99237b3c84227948c6e47eba96f0d" - integrity sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw== - -"@esbuild/linux-riscv64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" - integrity sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg== - -"@esbuild/linux-riscv64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.20.1.tgz#e4153b032288e3095ddf4c8be07893781b309a7e" - integrity sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg== - -"@esbuild/linux-s390x@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" - integrity sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg== - -"@esbuild/linux-s390x@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.20.1.tgz#b9ab8af6e4b73b26d63c1c426d7669a5d53eb5a7" - integrity sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ== - -"@esbuild/linux-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" - integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== - -"@esbuild/linux-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.20.1.tgz#0b25da17ac38c3e11cdd06ca3691d4d6bef2755f" - integrity sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA== - -"@esbuild/netbsd-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" - integrity sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA== - -"@esbuild/netbsd-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.20.1.tgz#3148e48406cd0d4f7ba1e0bf3f4d77d548c98407" - integrity sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg== - -"@esbuild/openbsd-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" - integrity sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw== - -"@esbuild/openbsd-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.20.1.tgz#7b73e852986a9750192626d377ac96ac2b749b76" - integrity sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw== - -"@esbuild/sunos-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" - integrity sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA== - -"@esbuild/sunos-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.20.1.tgz#402a441cdac2eee98d8be378c7bc23e00c1861c5" - integrity sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q== - -"@esbuild/win32-arm64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" - integrity sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A== - -"@esbuild/win32-arm64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.20.1.tgz#36c4e311085806a6a0c5fc54d1ac4d7b27e94d7b" - integrity sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A== - -"@esbuild/win32-ia32@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" - integrity sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ== - -"@esbuild/win32-ia32@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.20.1.tgz#0cf933be3fb9dc58b45d149559fe03e9e22b54fe" - integrity sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw== - -"@esbuild/win32-x64@0.19.12": - version "0.19.12" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz#c57c8afbb4054a3ab8317591a0b7320360b444ae" - integrity sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA== - -"@esbuild/win32-x64@0.20.1": - version "0.20.1" - resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.20.1.tgz#77583b6ea54cee7c1410ebbd54051b6a3fcbd8ba" - integrity sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA== - -"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": - version "4.4.0" - resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" - integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== - dependencies: - eslint-visitor-keys "^3.3.0" - -"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1": - version "4.10.0" - resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.10.0.tgz#548f6de556857c8bb73bbee70c35dc82a2e74d63" - integrity sha512-Cu96Sd2By9mCNTx2iyKOmq10v22jUVQv0lQnlGNy16oE9589yE+QADPbrMGCkA51cKZSg3Pu/aTJVTGfL/qjUA== - -"@eslint/eslintrc@^2.1.2": - version "2.1.4" - resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" - integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== - dependencies: - ajv "^6.12.4" - debug "^4.3.2" - espree "^9.6.0" - globals "^13.19.0" - ignore "^5.2.0" - import-fresh "^3.2.1" - js-yaml "^4.1.0" - minimatch "^3.1.2" - strip-json-comments "^3.1.1" - -"@eslint/js@8.51.0": - version "8.51.0" - resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.51.0.tgz#6d419c240cfb2b66da37df230f7e7eef801c32fa" - integrity sha512-HxjQ8Qn+4SI3/AFv6sOrDB+g6PpUTDwSJiQqOrnneEk8L71161srI9gjzzZvYVbzHiVg/BvcH95+cK/zfIt4pg== - -"@exodus/schemasafe@^1.0.0-rc.2": - version "1.3.0" - resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.3.0.tgz#731656abe21e8e769a7f70a4d833e6312fe59b7f" - integrity sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw== - -"@github/hotkey@^2.3.0", "@github/hotkey@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@github/hotkey/-/hotkey-2.3.1.tgz#366011806be0fe5742c13f28eb6790da4422b997" - integrity sha512-+aEUEKAsJnnZElLKW5vdXJ9o7g0PXDGN9w54kDm4BorHyQiUVXRLcaDbBS41T62iyO+tqlCO1NuQrYbrbS8Z2Q== - -"@humanwhocodes/config-array@^0.11.11": - version "0.11.14" - resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" - integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== - dependencies: - "@humanwhocodes/object-schema" "^2.0.2" - debug "^4.3.1" - minimatch "^3.0.5" - -"@humanwhocodes/module-importer@^1.0.1": - version "1.0.1" - resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" - integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== - -"@humanwhocodes/object-schema@^2.0.2": - version "2.0.3" - resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" - integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== - -"@isaacs/cliui@^8.0.2": - version "8.0.2" - resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" - integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== - dependencies: - string-width "^5.1.2" - string-width-cjs "npm:string-width@^4.2.0" - strip-ansi "^7.0.1" - strip-ansi-cjs "npm:strip-ansi@^6.0.1" - wrap-ansi "^8.1.0" - wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" - -"@istanbuljs/load-nyc-config@^1.0.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" - integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== - dependencies: - camelcase "^5.3.1" - find-up "^4.1.0" - get-package-type "^0.1.0" - js-yaml "^3.13.1" - resolve-from "^5.0.0" - -"@istanbuljs/schema@^0.1.2": - version "0.1.3" - resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" - integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== - -"@jest/schemas@^29.6.3": - version "29.6.3" - resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" - integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== - dependencies: - "@sinclair/typebox" "^0.27.8" - -"@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5": - version "0.3.5" - resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" - integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== - dependencies: - "@jridgewell/set-array" "^1.2.1" - "@jridgewell/sourcemap-codec" "^1.4.10" - "@jridgewell/trace-mapping" "^0.3.24" - -"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" - integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== - -"@jridgewell/set-array@^1.2.1": - version "1.2.1" - resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" - integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== - -"@jridgewell/source-map@^0.3.3": - version "0.3.6" - resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.6.tgz#9d71ca886e32502eb9362c9a74a46787c36df81a" - integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== - dependencies: - "@jridgewell/gen-mapping" "^0.3.5" - "@jridgewell/trace-mapping" "^0.3.25" - -"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15": - version "1.4.15" - resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.15.tgz#d7c6e6755c78567a951e04ab52ef0fd26de59f32" - integrity sha512-eF2rxCRulEKXHTRiDrDy6erMYWqNw4LPdQ8UQA4huuxaQsVeRPFl2oM8oDGxMFhJUWZf9McpLtJasDDZb/Bpeg== - -"@jridgewell/trace-mapping@0.3.9": - version "0.3.9" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" - integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== - dependencies: - "@jridgewell/resolve-uri" "^3.0.3" - "@jridgewell/sourcemap-codec" "^1.4.10" - -"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.20", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": - version "0.3.25" - resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" - integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== - dependencies: - "@jridgewell/resolve-uri" "^3.1.0" - "@jridgewell/sourcemap-codec" "^1.4.14" - -"@leichtgewicht/ip-codec@^2.0.1": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz#4fc56c15c580b9adb7dc3c333a134e540b44bfb1" - integrity sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw== - -"@ljharb/through@^2.3.12": - version "2.3.13" - resolved "https://registry.yarnpkg.com/@ljharb/through/-/through-2.3.13.tgz#b7e4766e0b65aa82e529be945ab078de79874edc" - integrity sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ== - dependencies: - call-bind "^1.0.7" - -"@mrmlnc/readdir-enhanced@^2.2.1": - version "2.2.1" - resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" - integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== - dependencies: - call-me-maybe "^1.0.1" - glob-to-regexp "^0.3.0" - -"@ngtools/webpack@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@ngtools/webpack/-/webpack-17.3.8.tgz#96c0f99055910dd21438d7697d625fdeb7261015" - integrity sha512-CjSVVa/9fzMpEDQP01SC4colKCbZwj7vUq0H2bivp8jVsmd21x9Fu0gDBH0Y9NdfAIm4eGZvmiZKMII3vIOaYQ== - -"@nodelib/fs.scandir@2.1.5": - version "2.1.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" - integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== - dependencies: - "@nodelib/fs.stat" "2.0.5" - run-parallel "^1.1.9" - -"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": - version "2.0.5" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" - integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== - -"@nodelib/fs.stat@^1.1.2": - version "1.1.3" - resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" - integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== - -"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": - version "1.2.8" - resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" - integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== - dependencies: - "@nodelib/fs.scandir" "2.1.5" - fastq "^1.6.0" - -"@npmcli/agent@^2.0.0": - version "2.2.2" - resolved "https://registry.yarnpkg.com/@npmcli/agent/-/agent-2.2.2.tgz#967604918e62f620a648c7975461c9c9e74fc5d5" - integrity sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og== - dependencies: - agent-base "^7.1.0" - http-proxy-agent "^7.0.0" - https-proxy-agent "^7.0.1" - lru-cache "^10.0.1" - socks-proxy-agent "^8.0.3" - -"@npmcli/fs@^3.1.0": - version "3.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-3.1.0.tgz#233d43a25a91d68c3a863ba0da6a3f00924a173e" - integrity sha512-7kZUAaLscfgbwBQRbvdMYaZOWyMEcPTH/tJjnyAWJ/dvvs9Ef+CERx/qJb9GExJpl1qipaDGn7KqHnFGGixd0w== - dependencies: - semver "^7.3.5" - -"@npmcli/git@^5.0.0": - version "5.0.7" - resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-5.0.7.tgz#7ff675e33b4dc0b0adb1f0c4aa302109efc06463" - integrity sha512-WaOVvto604d5IpdCRV2KjQu8PzkfE96d50CQGKgywXh2GxXmDeUO5EWcBC4V57uFyrNqx83+MewuJh3WTR3xPA== - dependencies: - "@npmcli/promise-spawn" "^7.0.0" - lru-cache "^10.0.1" - npm-pick-manifest "^9.0.0" - proc-log "^4.0.0" - promise-inflight "^1.0.1" - promise-retry "^2.0.1" - semver "^7.3.5" - which "^4.0.0" - -"@npmcli/installed-package-contents@^2.0.1": - version "2.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/installed-package-contents/-/installed-package-contents-2.1.0.tgz#63048e5f6e40947a3a88dcbcb4fd9b76fdd37c17" - integrity sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w== - dependencies: - npm-bundled "^3.0.0" - npm-normalize-package-bin "^3.0.0" - -"@npmcli/node-gyp@^3.0.0": - version "3.0.0" - resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz#101b2d0490ef1aa20ed460e4c0813f0db560545a" - integrity sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA== - -"@npmcli/package-json@^5.0.0": - version "5.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.1.0.tgz#10d117b5fb175acc14c70901a151c52deffc843e" - integrity sha512-1aL4TuVrLS9sf8quCLerU3H9J4vtCtgu8VauYozrmEyU57i/EdKleCnsQ7vpnABIH6c9mnTxcH5sFkO3BlV8wQ== - dependencies: - "@npmcli/git" "^5.0.0" - glob "^10.2.2" - hosted-git-info "^7.0.0" - json-parse-even-better-errors "^3.0.0" - normalize-package-data "^6.0.0" - proc-log "^4.0.0" - semver "^7.5.3" - -"@npmcli/promise-spawn@^7.0.0": - version "7.0.2" - resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz#1d53d34ffeb5d151bfa8ec661bcccda8bbdfd532" - integrity sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ== - dependencies: - which "^4.0.0" - -"@npmcli/redact@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@npmcli/redact/-/redact-1.1.0.tgz#78e53a6a34f013543a73827a07ebdc3a6f10454b" - integrity sha512-PfnWuOkQgu7gCbnSsAisaX7hKOdZ4wSAhAzH3/ph5dSGau52kCRrMMGbiSQLwyTZpgldkZ49b0brkOr1AzGBHQ== - -"@npmcli/run-script@^7.0.0": - version "7.0.4" - resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-7.0.4.tgz#9f29aaf4bfcf57f7de2a9e28d1ef091d14b2e6eb" - integrity sha512-9ApYM/3+rBt9V80aYg6tZfzj3UWdiYyCt7gJUD1VJKvWF5nwKDSICXbYIQbspFTq6TOpbsEtIC0LArB8d9PFmg== - dependencies: - "@npmcli/node-gyp" "^3.0.0" - "@npmcli/package-json" "^5.0.0" - "@npmcli/promise-spawn" "^7.0.0" - node-gyp "^10.0.0" - which "^4.0.0" - -"@nrwl/devkit@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-19.0.6.tgz#16936356f7a19b7fb23b91c71a671354fa607ac2" - integrity sha512-pXJwwQ4j4RXNqGfpz3h9O+bgDrwDpnhG/MuDOYvQLnxQtdMacfWIgMb+rhuSsN1T0cmKphWHKtgNEkSwyunRnQ== - dependencies: - "@nx/devkit" "19.0.6" - -"@nrwl/tao@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-19.0.6.tgz#d98c6d64a3ea02def416c9ccf52ef9c3c836f623" - integrity sha512-rMuX7QWimlBCFwA+a2Qn4+DDqjpfxg6m4rodjVkqe5mb8Q+EAW1Eoqw9dyhYmqBeje6Cdylkg3LsOl2IBjkFQA== - dependencies: - nx "19.0.6" - tslib "^2.3.0" - -"@nx/devkit@19.0.6", "@nx/devkit@^17.2.8 || ^18.0.0 || ^19.0.0": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-19.0.6.tgz#5a8bdbbc275c1576a9f8225d70559815fb5c2871" - integrity sha512-NszY8/YV1QpaPE+c4R/IQK4nq5+k4bBaDQB3+EGm4nWZcBzURx57yaAdP4lIEvG2T+5jsepsYTyMHSmQPHhJ6Q== - dependencies: - "@nrwl/devkit" "19.0.6" - ejs "^3.1.7" - enquirer "~2.3.6" - ignore "^5.0.4" - minimatch "9.0.3" - semver "^7.5.3" - tmp "~0.2.1" - tslib "^2.3.0" - yargs-parser "21.1.1" - -"@nx/nx-darwin-arm64@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.0.6.tgz#99037bd8e51f0ed165f5fb23eb195c9aa655830a" - integrity sha512-tC0yJDFo7zfRKUR1CtwIpcGbaSqRVH+l82XnmJYP7YT/NnR1TZMVh/KM17jx4Jjyny/dWEp+qyqG9txgZxCG8g== - -"@nx/nx-darwin-x64@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-19.0.6.tgz#d99cd1b6dd69bfc168b52bfea35c3604edfe2c93" - integrity sha512-JEl0lE2+hOwA5rjgXxqXDTskfWQU7LwuusarpZ5JuQFDVGFZPnhXZbBXaRKru8tPAJ4rJvPAV4Sh+xYM+opx4A== - -"@nx/nx-freebsd-x64@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.0.6.tgz#e335706fc4ecd54dc34ebaded5e4759e7bde364b" - integrity sha512-Bg0p+Zygp25K0Lq5UiIQSY9FvqNsZm0XzZ3BU5guj5YCkBKABtRGgMArm8NJTxJ090EYmSAM+A+40oNroXGTFQ== - -"@nx/nx-linux-arm-gnueabihf@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.0.6.tgz#24f6415119a6f2a293a18b16252d3c5acb6ee4dd" - integrity sha512-8P54dFDPSwew+ZL+U4L3ERNjtBUkfBbJ7RCtwfVhFpNzTTi4Icy1Nw6UVUu/HUF6aJeDR/Wz+BYV3NyMkWys7w== - -"@nx/nx-linux-arm64-gnu@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.0.6.tgz#04fbdf78506268075be89c5d96f1c8e458ed7af6" - integrity sha512-zKHC/MB1RQHpI2nw7AxyILN6qnofjpS6JA9ZtjVx3lkDS112PJuA/81Ffftdt5ubAOziczRA08xbQF73PprW8Q== - -"@nx/nx-linux-arm64-musl@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.0.6.tgz#194539330cf4fe5bbaa99ca34e611810e2ac4edd" - integrity sha512-BvmIBxsSnljOcUaiYSLZM2ePYcp8t/18q0hHgEPuXdEs0QBy46cleCXVy2ffqHJi20wWpC1hER0ByOGIMui1XQ== - -"@nx/nx-linux-x64-gnu@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.0.6.tgz#4d229fce3cfc59f5f7bd9002f2e75e2f7b33ec76" - integrity sha512-evpG6HTqFlAhFatdW0ueZpoH2Y1mHnk7cEojcNO1+aVflSGzndmdwO0ovUX4VKVutn0bK0PYt/v4/HR1+2XamA== - -"@nx/nx-linux-x64-musl@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.0.6.tgz#f9b9642b97ac71ffd8c5a14592e06c354a21a55b" - integrity sha512-HEXq/85Eb6jlnxGLEwlyROp0/MkTfpmdUmyIr0lIf0RijDdAOL8MGdzrD21dcde2cUVUkBuTs2OQt6sB28hoTQ== - -"@nx/nx-win32-arm64-msvc@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.0.6.tgz#4d25255fe082e8f290732378661ddaefdb9f6d67" - integrity sha512-FS3oz2WRWoyxAxegQ/kJyR4qPLh0se6WOmG9bXttc16/n9a0b8trh6mzG2LPxP5/mxMdbJsRcOsphShHcIR9+A== - -"@nx/nx-win32-x64-msvc@19.0.6": - version "19.0.6" - resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.0.6.tgz#bce2c93be34b9a82d1619b0b437666f3f7dded5e" - integrity sha512-BGNAXvNvxzNqqjHb0Kba5m27Z6xYdMqnPGusAx3GYfEGzSe+K06yMQpTUxjQ4oKAQQrVJYq9Eyyf3lWrqmyeCg== - -"@pkgjs/parseargs@^0.11.0": - version "0.11.0" - resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" - integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== - -"@rollup/rollup-android-arm-eabi@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.17.2.tgz#1a32112822660ee104c5dd3a7c595e26100d4c2d" - integrity sha512-NM0jFxY8bB8QLkoKxIQeObCaDlJKewVlIEkuyYKm5An1tdVZ966w2+MPQ2l8LBZLjR+SgyV+nRkTIunzOYBMLQ== - -"@rollup/rollup-android-arm64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.17.2.tgz#5aeef206d65ff4db423f3a93f71af91b28662c5b" - integrity sha512-yeX/Usk7daNIVwkq2uGoq2BYJKZY1JfyLTaHO/jaiSwi/lsf8fTFoQW/n6IdAsx5tx+iotu2zCJwz8MxI6D/Bw== - -"@rollup/rollup-darwin-arm64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.17.2.tgz#6b66aaf003c70454c292cd5f0236ebdc6ffbdf1a" - integrity sha512-kcMLpE6uCwls023+kknm71ug7MZOrtXo+y5p/tsg6jltpDtgQY1Eq5sGfHcQfb+lfuKwhBmEURDga9N0ol4YPw== - -"@rollup/rollup-darwin-x64@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.17.2.tgz#f64fc51ed12b19f883131ccbcea59fc68cbd6c0b" - integrity sha512-AtKwD0VEx0zWkL0ZjixEkp5tbNLzX+FCqGG1SvOu993HnSz4qDI6S4kGzubrEJAljpVkhRSlg5bzpV//E6ysTQ== - -"@rollup/rollup-linux-arm-gnueabihf@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.17.2.tgz#1a7641111be67c10111f7122d1e375d1226cbf14" - integrity sha512-3reX2fUHqN7sffBNqmEyMQVj/CKhIHZd4y631duy0hZqI8Qoqf6lTtmAKvJFYa6bhU95B1D0WgzHkmTg33In0A== - -"@rollup/rollup-linux-arm-musleabihf@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.17.2.tgz#c93fd632923e0fee25aacd2ae414288d0b7455bb" - integrity sha512-uSqpsp91mheRgw96xtyAGP9FW5ChctTFEoXP0r5FAzj/3ZRv3Uxjtc7taRQSaQM/q85KEKjKsZuiZM3GyUivRg== - -"@rollup/rollup-linux-arm64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.17.2.tgz#fa531425dd21d058a630947527b4612d9d0b4a4a" - integrity sha512-EMMPHkiCRtE8Wdk3Qhtciq6BndLtstqZIroHiiGzB3C5LDJmIZcSzVtLRbwuXuUft1Cnv+9fxuDtDxz3k3EW2A== - -"@rollup/rollup-linux-arm64-musl@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.17.2.tgz#8acc16f095ceea5854caf7b07e73f7d1802ac5af" - integrity sha512-NMPylUUZ1i0z/xJUIx6VUhISZDRT+uTWpBcjdv0/zkp7b/bQDF+NfnfdzuTiB1G6HTodgoFa93hp0O1xl+/UbA== - -"@rollup/rollup-linux-powerpc64le-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.17.2.tgz#94e69a8499b5cf368911b83a44bb230782aeb571" - integrity sha512-T19My13y8uYXPw/L/k0JYaX1fJKFT/PWdXiHr8mTbXWxjVF1t+8Xl31DgBBvEKclw+1b00Chg0hxE2O7bTG7GQ== - -"@rollup/rollup-linux-riscv64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.17.2.tgz#7ef1c781c7e59e85a6ce261cc95d7f1e0b56db0f" - integrity sha512-BOaNfthf3X3fOWAB+IJ9kxTgPmMqPPH5f5k2DcCsRrBIbWnaJCgX2ll77dV1TdSy9SaXTR5iDXRL8n7AnoP5cg== - -"@rollup/rollup-linux-s390x-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.17.2.tgz#f15775841c3232fca9b78cd25a7a0512c694b354" - integrity sha512-W0UP/x7bnn3xN2eYMql2T/+wpASLE5SjObXILTMPUBDB/Fg/FxC+gX4nvCfPBCbNhz51C+HcqQp2qQ4u25ok6g== - -"@rollup/rollup-linux-x64-gnu@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.17.2.tgz#b521d271798d037ad70c9f85dd97d25f8a52e811" - integrity sha512-Hy7pLwByUOuyaFC6mAr7m+oMC+V7qyifzs/nW2OJfC8H4hbCzOX07Ov0VFk/zP3kBsELWNFi7rJtgbKYsav9QQ== - -"@rollup/rollup-linux-x64-musl@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.17.2.tgz#9254019cc4baac35800991315d133cc9fd1bf385" - integrity sha512-h1+yTWeYbRdAyJ/jMiVw0l6fOOm/0D1vNLui9iPuqgRGnXA0u21gAqOyB5iHjlM9MMfNOm9RHCQ7zLIzT0x11Q== - -"@rollup/rollup-win32-arm64-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.17.2.tgz#27f65a89f6f52ee9426ec11e3571038e4671790f" - integrity sha512-tmdtXMfKAjy5+IQsVtDiCfqbynAQE/TQRpWdVataHmhMb9DCoJxp9vLcCBjEQWMiUYxO1QprH/HbY9ragCEFLA== - -"@rollup/rollup-win32-ia32-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.17.2.tgz#a2fbf8246ed0bb014f078ca34ae6b377a90cb411" - integrity sha512-7II/QCSTAHuE5vdZaQEwJq2ZACkBpQDOmQsE6D6XUbnBHW8IAhm4eTufL6msLJorzrHDFv3CF8oCA/hSIRuZeQ== - -"@rollup/rollup-win32-x64-msvc@4.17.2": - version "4.17.2" - resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.17.2.tgz#5a2d08b81e8064b34242d5cc9973ef8dd1e60503" - integrity sha512-TGGO7v7qOq4CYmSBVEYpI1Y5xDuCEnbVC5Vth8mOsW0gDSzxNrVERPc790IGHsrT2dQSimgMr9Ub3Y1Jci5/8w== - -"@schematics/angular@17.3.8": - version "17.3.8" - resolved "https://registry.yarnpkg.com/@schematics/angular/-/angular-17.3.8.tgz#0b4adf9d05b22176b99ad8e311a274c102d74822" - integrity sha512-2g4OmSyE9YGq50Uj7fNI26P/TSAFJ7ZuirwTF2O7Xc4XRQ29/tYIIqhezpNlTb6rlYblcQuMcUZBrMfWJHcqJw== - dependencies: - "@angular-devkit/core" "17.3.8" - "@angular-devkit/schematics" "17.3.8" - jsonc-parser "3.2.1" - -"@sigstore/bundle@^2.3.0", "@sigstore/bundle@^2.3.1": - version "2.3.1" - resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-2.3.1.tgz#f6cdc67c8400e58ca27f0ef495b27a9327512073" - integrity sha512-eqV17lO3EIFqCWK3969Rz+J8MYrRZKw9IBHpSo6DEcEX2c+uzDFOgHE9f2MnyDpfs48LFO4hXmk9KhQ74JzU1g== - dependencies: - "@sigstore/protobuf-specs" "^0.3.1" - -"@sigstore/core@^1.0.0", "@sigstore/core@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@sigstore/core/-/core-1.1.0.tgz#5583d8f7ffe599fa0a89f2bf289301a5af262380" - integrity sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg== - -"@sigstore/protobuf-specs@^0.3.0", "@sigstore/protobuf-specs@^0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.3.1.tgz#7095819fa7c5743efde48a858c37b30fab190a09" - integrity sha512-aIL8Z9NsMr3C64jyQzE0XlkEyBLpgEJJFDHLVVStkFV5Q3Il/r/YtY6NJWKQ4cy4AE7spP1IX5Jq7VCAxHHMfQ== - -"@sigstore/sign@^2.3.0": - version "2.3.0" - resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-2.3.0.tgz#c35e10a3d707e0c69a29bd9f93fa2bdc6275817c" - integrity sha512-tsAyV6FC3R3pHmKS880IXcDJuiFJiKITO1jxR1qbplcsBkZLBmjrEw5GbC7ikD6f5RU1hr7WnmxB/2kKc1qUWQ== - dependencies: - "@sigstore/bundle" "^2.3.0" - "@sigstore/core" "^1.0.0" - "@sigstore/protobuf-specs" "^0.3.1" - make-fetch-happen "^13.0.0" - -"@sigstore/tuf@^2.3.1": - version "2.3.2" - resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-2.3.2.tgz#e9c5bffc2a5f3434f87195902d7f9cd7f48c70fa" - integrity sha512-mwbY1VrEGU4CO55t+Kl6I7WZzIl+ysSzEYdA1Nv/FTrl2bkeaPXo5PnWZAVfcY2zSdhOpsUTJW67/M2zHXGn5w== - dependencies: - "@sigstore/protobuf-specs" "^0.3.0" - tuf-js "^2.2.0" - -"@sigstore/verify@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@sigstore/verify/-/verify-1.2.0.tgz#48549186305d8a5e471a3a304cf4cb3e0c99dde7" - integrity sha512-hQF60nc9yab+Csi4AyoAmilGNfpXT+EXdBgFkP9OgPwIBPwyqVf7JAWPtmqrrrneTmAT6ojv7OlH1f6Ix5BG4Q== - dependencies: - "@sigstore/bundle" "^2.3.1" - "@sigstore/core" "^1.1.0" - "@sigstore/protobuf-specs" "^0.3.1" - -"@sinclair/typebox@^0.27.8": - version "0.27.8" - resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" - integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== - -"@socket.io/component-emitter@~3.1.0": - version "3.1.2" - resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz#821f8442f4175d8f0467b9daf26e3a18e2d02af2" - integrity sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA== - -"@tsconfig/node10@^1.0.7": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" - integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== - -"@tsconfig/node12@^1.0.7": - version "1.0.11" - resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" - integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== - -"@tsconfig/node14@^1.0.0": - version "1.0.3" - resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" - integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== - -"@tsconfig/node16@^1.0.2": - version "1.0.4" - resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" - integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== - -"@tufjs/canonical-json@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz#a52f61a3d7374833fca945b2549bc30a2dd40d0a" - integrity sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA== - -"@tufjs/models@2.0.0": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-2.0.0.tgz#c7ab241cf11dd29deb213d6817dabb8c99ce0863" - integrity sha512-c8nj8BaOExmZKO2DXhDfegyhSGcG9E/mPN3U13L+/PsoWm1uaGiHHjxqSHQiasDBQwDA3aHuw9+9spYAP1qvvg== - dependencies: - "@tufjs/canonical-json" "2.0.0" - minimatch "^9.0.3" - -"@types/body-parser@*": - version "1.19.5" - resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4" - integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg== - dependencies: - "@types/connect" "*" - "@types/node" "*" - -"@types/bonjour@^3.5.9": - version "3.5.13" - resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.13.tgz#adf90ce1a105e81dd1f9c61fdc5afda1bfb92956" - integrity sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ== - dependencies: - "@types/node" "*" - -"@types/connect-history-api-fallback@^1.3.5": - version "1.5.4" - resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3" - integrity sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw== - dependencies: - "@types/express-serve-static-core" "*" - "@types/node" "*" - -"@types/connect@*": - version "3.4.38" - resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858" - integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug== - dependencies: - "@types/node" "*" - -"@types/cookie@^0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.4.1.tgz#bfd02c1f2224567676c1545199f87c3a861d878d" - integrity sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q== - -"@types/cors@^2.8.12": - version "2.8.17" - resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.17.tgz#5d718a5e494a8166f569d986794e49c48b216b2b" - integrity sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA== - dependencies: - "@types/node" "*" - -"@types/eslint-scope@^3.7.3": - version "3.7.7" - resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" - integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== - dependencies: - "@types/eslint" "*" - "@types/estree" "*" - -"@types/eslint@*", "@types/eslint@^8.56.5": - version "8.56.10" - resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.10.tgz#eb2370a73bf04a901eeba8f22595c7ee0f7eb58d" - integrity sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ== - dependencies: - "@types/estree" "*" - "@types/json-schema" "*" - -"@types/estree@*", "@types/estree@1.0.5", "@types/estree@^1.0.5": - version "1.0.5" - resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" - integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== - -"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.33": - version "4.19.0" - resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.0.tgz#3ae8ab3767d98d0b682cda063c3339e1e86ccfaa" - integrity sha512-bGyep3JqPCRry1wq+O5n7oiBgGWmeIJXPjXXCo8EK0u8duZGSYar7cGqd3ML2JUsLGeB7fmc06KYo9fLGWqPvQ== - dependencies: - "@types/node" "*" - "@types/qs" "*" - "@types/range-parser" "*" - "@types/send" "*" - -"@types/express@*", "@types/express@^4.17.13": - version "4.17.21" - resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.21.tgz#c26d4a151e60efe0084b23dc3369ebc631ed192d" - integrity sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ== - dependencies: - "@types/body-parser" "*" - "@types/express-serve-static-core" "^4.17.33" - "@types/qs" "*" - "@types/serve-static" "*" - -"@types/glob@^7.1.1": - version "7.2.0" - resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" - integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== - dependencies: - "@types/minimatch" "*" - "@types/node" "*" - -"@types/http-errors@*": - version "2.0.4" - resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-2.0.4.tgz#7eb47726c391b7345a6ec35ad7f4de469cf5ba4f" - integrity sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA== - -"@types/http-proxy@^1.17.8": - version "1.17.14" - resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.14.tgz#57f8ccaa1c1c3780644f8a94f9c6b5000b5e2eec" - integrity sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w== - dependencies: - "@types/node" "*" - -"@types/jasmine@*", "@types/jasmine@5.1.4": - version "5.1.4" - resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-5.1.4.tgz#0de3f6ca753e10d1600ce1864ae42cfd47cf9924" - integrity sha512-px7OMFO/ncXxixDe1zR13V1iycqWae0MxTaw62RpFlksUi5QuNWgQJFkTQjIOvrmutJbI7Fp2Y2N1F6D2R4G6w== - -"@types/jasminewd2@2.0.13": - version "2.0.13" - resolved "https://registry.yarnpkg.com/@types/jasminewd2/-/jasminewd2-2.0.13.tgz#0b60c1fcd06277ea97efbbad5a02e0c1a4a8996a" - integrity sha512-aJ3wj8tXMpBrzQ5ghIaqMisD8C3FIrcO6sDKHqFbuqAsI7yOxj0fA7MrRCPLZHIVUjERIwsMmGn/vB0UQ9u0Hg== - dependencies: - "@types/jasmine" "*" - -"@types/json-schema@*", "@types/json-schema@^7.0.15", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": - version "7.0.15" - resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" - integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== - -"@types/json5@^0.0.29": - version "0.0.29" - resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" - integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== - -"@types/mime@^1": - version "1.3.5" - resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" - integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== - -"@types/minimatch@*": - version "5.1.2" - resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca" - integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== - -"@types/minimist@^1.2.0": - version "1.2.5" - resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" - integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== - -"@types/mockjs@^1.0.10": - version "1.0.10" - resolved "https://registry.yarnpkg.com/@types/mockjs/-/mockjs-1.0.10.tgz#535e4bdc7c0e4658fc4b3696029d45ee6b053c8a" - integrity sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g== - -"@types/node-forge@^1.3.0": - version "1.3.11" - resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-1.3.11.tgz#0972ea538ddb0f4d9c2fa0ec5db5724773a604da" - integrity sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ== - dependencies: - "@types/node" "*" - -"@types/node@*", "@types/node@>=10.0.0": - version "20.12.8" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.8.tgz#35897bf2bfe3469847ab04634636de09552e8256" - integrity sha512-NU0rJLJnshZWdE/097cdCBbyW1h4hEg0xpovcoAQYHl8dnEyp/NAOiE45pvc+Bd1Dt+2r94v2eGFpQJ4R7g+2w== - dependencies: - undici-types "~5.26.4" - -"@types/node@20.12.11": - version "20.12.11" - resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.11.tgz#c4ef00d3507000d17690643278a60dc55a9dc9be" - integrity sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw== - dependencies: - undici-types "~5.26.4" - -"@types/normalize-package-data@^2.4.0": - version "2.4.4" - resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901" - integrity sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA== - -"@types/parse-json@^4.0.0": - version "4.0.2" - resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239" - integrity sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw== - -"@types/q@^0.0.32": - version "0.0.32" - resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5" - integrity sha512-qYi3YV9inU/REEfxwVcGZzbS3KG/Xs90lv0Pr+lDtuVjBPGd1A+eciXzVSaRvLify132BfcvhvEjeVahrUl0Ug== - -"@types/qs@*": - version "6.9.15" - resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.15.tgz#adde8a060ec9c305a82de1babc1056e73bd64dce" - integrity sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg== - -"@types/range-parser@*": - version "1.2.7" - resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" - integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== - -"@types/retry@0.12.0": - version "0.12.0" - resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d" - integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA== - -"@types/selenium-webdriver@^3.0.0": - version "3.0.26" - resolved "https://registry.yarnpkg.com/@types/selenium-webdriver/-/selenium-webdriver-3.0.26.tgz#fc7d87d580affa2e52685b2e881bc201819a5836" - integrity sha512-dyIGFKXfUFiwkMfNGn1+F6b80ZjR3uSYv1j6xVJSDlft5waZ2cwkHW4e7zNzvq7hiEackcgvBpmnXZrI1GltPg== - -"@types/semver@^7.3.12", "@types/semver@^7.5.8": - version "7.5.8" - resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e" - integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ== - -"@types/send@*": - version "0.17.4" - resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.4.tgz#6619cd24e7270793702e4e6a4b958a9010cfc57a" - integrity sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA== - dependencies: - "@types/mime" "^1" - "@types/node" "*" - -"@types/serve-index@^1.9.1": - version "1.9.4" - resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.4.tgz#e6ae13d5053cb06ed36392110b4f9a49ac4ec898" - integrity sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug== - dependencies: - "@types/express" "*" - -"@types/serve-static@*", "@types/serve-static@^1.13.10": - version "1.15.7" - resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.7.tgz#22174bbd74fb97fe303109738e9b5c2f3064f714" - integrity sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw== - dependencies: - "@types/http-errors" "*" - "@types/node" "*" - "@types/send" "*" - -"@types/sockjs@^0.3.33": - version "0.3.36" - resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.36.tgz#ce322cf07bcc119d4cbf7f88954f3a3bd0f67535" - integrity sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q== - dependencies: - "@types/node" "*" - -"@types/swagger-schema-official@2.0.22": - version "2.0.22" - resolved "https://registry.yarnpkg.com/@types/swagger-schema-official/-/swagger-schema-official-2.0.22.tgz#f7e06168e6994574dfd86928ac04b196870ab043" - integrity sha512-7yQiX6MWSFSvc/1wW5smJMZTZ4fHOd+hqLr3qr/HONDxHEa2bnYAsOcGBOEqFIjd4yetwMOdEDdeW+udRAQnHA== - -"@types/swagger-schema-official@^2.0.15": - version "2.0.25" - resolved "https://registry.yarnpkg.com/@types/swagger-schema-official/-/swagger-schema-official-2.0.25.tgz#c8073914004d0a9c5412aeaf458d96e34c504840" - integrity sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg== - -"@types/unist@*", "@types/unist@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.2.tgz#6dd61e43ef60b34086287f83683a5c1b2dc53d20" - integrity sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ== - -"@types/unist@^2.0.0": - version "2.0.10" - resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.10.tgz#04ffa7f406ab628f7f7e97ca23e290cd8ab15efc" - integrity sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA== - -"@types/vfile-message@*": - version "2.0.0" - resolved "https://registry.yarnpkg.com/@types/vfile-message/-/vfile-message-2.0.0.tgz#690e46af0fdfc1f9faae00cd049cc888957927d5" - integrity sha512-GpTIuDpb9u4zIO165fUy9+fXcULdD8HFRNli04GehoMVbeNq7D6OBnqSmg3lxZnC+UvgUhEWKxdKiwYUkGltIw== - dependencies: - vfile-message "*" - -"@types/vfile@^3.0.0": - version "3.0.2" - resolved "https://registry.yarnpkg.com/@types/vfile/-/vfile-3.0.2.tgz#19c18cd232df11ce6fa6ad80259bc86c366b09b9" - integrity sha512-b3nLFGaGkJ9rzOcuXRfHkZMdjsawuDD0ENL9fzTophtBg8FJHSGbH7daXkEpcwy3v7Xol3pAvsmlYyFhR4pqJw== - dependencies: - "@types/node" "*" - "@types/unist" "*" - "@types/vfile-message" "*" - -"@types/ws@^8.5.5": - version "8.5.10" - resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.10.tgz#4acfb517970853fa6574a3a6886791d04a396787" - integrity sha512-vmQSUcfalpIq0R9q7uTo2lXs6eGIpt9wtnLdMv9LVpIjCA/+ufZRozlVoVelIYixx1ugCBKDhn89vnsEGOCx9A== - dependencies: - "@types/node" "*" - -"@typescript-eslint/eslint-plugin@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz#c78e309fe967cb4de05b85cdc876fb95f8e01b6f" - integrity sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg== - dependencies: - "@eslint-community/regexpp" "^4.10.0" - "@typescript-eslint/scope-manager" "7.8.0" - "@typescript-eslint/type-utils" "7.8.0" - "@typescript-eslint/utils" "7.8.0" - "@typescript-eslint/visitor-keys" "7.8.0" - debug "^4.3.4" - graphemer "^1.4.0" - ignore "^5.3.1" - natural-compare "^1.4.0" - semver "^7.6.0" - ts-api-utils "^1.3.0" - -"@typescript-eslint/experimental-utils@^5.0.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/experimental-utils/-/experimental-utils-5.62.0.tgz#14559bf73383a308026b427a4a6129bae2146741" - integrity sha512-RTXpeB3eMkpoclG3ZHft6vG/Z30azNHuqY6wKPBHlVMZFuEvrtlEDe8gMqDb+SO+9hjC/pLekeSCryf9vMZlCw== - dependencies: - "@typescript-eslint/utils" "5.62.0" - -"@typescript-eslint/parser@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.8.0.tgz#1e1db30c8ab832caffee5f37e677dbcb9357ddc8" - integrity sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ== - dependencies: - "@typescript-eslint/scope-manager" "7.8.0" - "@typescript-eslint/types" "7.8.0" - "@typescript-eslint/typescript-estree" "7.8.0" - "@typescript-eslint/visitor-keys" "7.8.0" - debug "^4.3.4" - -"@typescript-eslint/scope-manager@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-5.62.0.tgz#d9457ccc6a0b8d6b37d0eb252a23022478c5460c" - integrity sha512-VXuvVvZeQCQb5Zgf4HAxc04q5j+WrNAtNh9OwCsCgpKqESMTu3tF/jhZ3xG6T4NZwWl65Bg8KuS2uEvhSfLl0w== - dependencies: - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/visitor-keys" "5.62.0" - -"@typescript-eslint/scope-manager@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.11.0.tgz#cf5619b01de62a226a59add15a02bde457335d1d" - integrity sha512-27tGdVEiutD4POirLZX4YzT180vevUURJl4wJGmm6TrQoiYwuxTIY98PBp6L2oN+JQxzE0URvYlzJaBHIekXAw== - dependencies: - "@typescript-eslint/types" "7.11.0" - "@typescript-eslint/visitor-keys" "7.11.0" - -"@typescript-eslint/scope-manager@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz#bb19096d11ec6b87fb6640d921df19b813e02047" - integrity sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g== - dependencies: - "@typescript-eslint/types" "7.8.0" - "@typescript-eslint/visitor-keys" "7.8.0" - -"@typescript-eslint/type-utils@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.11.0.tgz#ac216697d649084fedf4a910347b9642bd0ff099" - integrity sha512-WmppUEgYy+y1NTseNMJ6mCFxt03/7jTOy08bcg7bxJJdsM4nuhnchyBbE8vryveaJUf62noH7LodPSo5Z0WUCg== - dependencies: - "@typescript-eslint/typescript-estree" "7.11.0" - "@typescript-eslint/utils" "7.11.0" - debug "^4.3.4" - ts-api-utils "^1.3.0" - -"@typescript-eslint/type-utils@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.8.0.tgz#9de166f182a6e4d1c5da76e94880e91831e3e26f" - integrity sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A== - dependencies: - "@typescript-eslint/typescript-estree" "7.8.0" - "@typescript-eslint/utils" "7.8.0" - debug "^4.3.4" - ts-api-utils "^1.3.0" - -"@typescript-eslint/types@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-5.62.0.tgz#258607e60effa309f067608931c3df6fed41fd2f" - integrity sha512-87NVngcbVXUahrRTqIK27gD2t5Cu1yuCXxbLcFtCzZGlfyVWWh8mLHkoxzjsB6DDNnvdL+fW8MiwPEJyGJQDgQ== - -"@typescript-eslint/types@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.11.0.tgz#5e9702a5e8b424b7fc690e338d359939257d6722" - integrity sha512-MPEsDRZTyCiXkD4vd3zywDCifi7tatc4K37KqTprCvaXptP7Xlpdw0NR2hRJTetG5TxbWDB79Ys4kLmHliEo/w== - -"@typescript-eslint/types@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.8.0.tgz#1fd2577b3ad883b769546e2d1ef379f929a7091d" - integrity sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw== - -"@typescript-eslint/types@^7.2.0": - version "7.9.0" - resolved "https://registry.npmmirror.com/@typescript-eslint/types/-/types-7.9.0.tgz#b58e485e4bfba055659c7e683ad4f5f0821ae2ec" - integrity sha512-oZQD9HEWQanl9UfsbGVcZ2cGaR0YT5476xfWE0oE5kQa2sNK2frxOlkeacLOTh9po4AlUT5rtkGyYM5kew0z5w== - -"@typescript-eslint/typescript-estree@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-5.62.0.tgz#7d17794b77fabcac615d6a48fb143330d962eb9b" - integrity sha512-CmcQ6uY7b9y694lKdRB8FEel7JbU/40iSAPomu++SjLMntB+2Leay2LO6i8VnJk58MtE9/nQSFIH6jpyRWyYzA== - dependencies: - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/visitor-keys" "5.62.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - semver "^7.3.7" - tsutils "^3.21.0" - -"@typescript-eslint/typescript-estree@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.11.0.tgz#7cbc569bc7336c3a494ceaf8204fdee5d5dbb7fa" - integrity sha512-cxkhZ2C/iyi3/6U9EPc5y+a6csqHItndvN/CzbNXTNrsC3/ASoYQZEt9uMaEp+xFNjasqQyszp5TumAVKKvJeQ== - dependencies: - "@typescript-eslint/types" "7.11.0" - "@typescript-eslint/visitor-keys" "7.11.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - minimatch "^9.0.4" - semver "^7.6.0" - ts-api-utils "^1.3.0" - -"@typescript-eslint/typescript-estree@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz#b028a9226860b66e623c1ee55cc2464b95d2987c" - integrity sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg== - dependencies: - "@typescript-eslint/types" "7.8.0" - "@typescript-eslint/visitor-keys" "7.8.0" - debug "^4.3.4" - globby "^11.1.0" - is-glob "^4.0.3" - minimatch "^9.0.4" - semver "^7.6.0" - ts-api-utils "^1.3.0" - -"@typescript-eslint/utils@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-5.62.0.tgz#141e809c71636e4a75daa39faed2fb5f4b10df86" - integrity sha512-n8oxjeb5aIbPFEtmQxQYOLI0i9n5ySBEY/ZEHHZqKQSFnxio1rv6dthascc9dLuwrL0RC5mPCxB7vnAVGAYWAQ== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@types/json-schema" "^7.0.9" - "@types/semver" "^7.3.12" - "@typescript-eslint/scope-manager" "5.62.0" - "@typescript-eslint/types" "5.62.0" - "@typescript-eslint/typescript-estree" "5.62.0" - eslint-scope "^5.1.1" - semver "^7.3.7" - -"@typescript-eslint/utils@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.11.0.tgz#524f047f2209959424c3ef689b0d83b3bc09919c" - integrity sha512-xlAWwPleNRHwF37AhrZurOxA1wyXowW4PqVXZVUNCLjB48CqdPJoJWkrpH2nij9Q3Lb7rtWindtoXwxjxlKKCA== - dependencies: - "@eslint-community/eslint-utils" "^4.4.0" - "@typescript-eslint/scope-manager" "7.11.0" - "@typescript-eslint/types" "7.11.0" - "@typescript-eslint/typescript-estree" "7.11.0" - -"@typescript-eslint/utils@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.8.0.tgz#57a79f9c0c0740ead2f622e444cfaeeb9fd047cd" - integrity sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ== - dependencies: - "@eslint-community/eslint-utils" "^4.4.0" - "@types/json-schema" "^7.0.15" - "@types/semver" "^7.5.8" - "@typescript-eslint/scope-manager" "7.8.0" - "@typescript-eslint/types" "7.8.0" - "@typescript-eslint/typescript-estree" "7.8.0" - semver "^7.6.0" - -"@typescript-eslint/visitor-keys@5.62.0": - version "5.62.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-5.62.0.tgz#2174011917ce582875954ffe2f6912d5931e353e" - integrity sha512-07ny+LHRzQXepkGg6w0mFY41fVUNBrL2Roj/++7V1txKugfjm/Ci/qSND03r2RhlJhJYMcTn9AhhSSqQp0Ysyw== - dependencies: - "@typescript-eslint/types" "5.62.0" - eslint-visitor-keys "^3.3.0" - -"@typescript-eslint/visitor-keys@7.11.0": - version "7.11.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.11.0.tgz#2c50cd292e67645eec05ac0830757071b4a4d597" - integrity sha512-7syYk4MzjxTEk0g/w3iqtgxnFQspDJfn6QKD36xMuuhTzjcxY7F8EmBLnALjVyaOF1/bVocu3bS/2/F7rXrveQ== - dependencies: - "@typescript-eslint/types" "7.11.0" - eslint-visitor-keys "^3.4.3" - -"@typescript-eslint/visitor-keys@7.8.0": - version "7.8.0" - resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz#7285aab991da8bee411a42edbd5db760d22fdd91" - integrity sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA== - dependencies: - "@typescript-eslint/types" "7.8.0" - eslint-visitor-keys "^3.4.3" - -"@vitejs/plugin-basic-ssl@1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.1.0.tgz#8b840305a6b48e8764803435ec0c716fa27d3802" - integrity sha512-wO4Dk/rm8u7RNhOf95ZzcEmC9rYOncYgvq4z3duaJrCgjN8BxAnDVyndanfcJZ0O6XZzHz6Q0hTimxTg8Y9g/A== - -"@webassemblyjs/ast@1.12.1", "@webassemblyjs/ast@^1.11.5": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.12.1.tgz#bb16a0e8b1914f979f45864c23819cc3e3f0d4bb" - integrity sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg== - dependencies: - "@webassemblyjs/helper-numbers" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - -"@webassemblyjs/floating-point-hex-parser@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz#dacbcb95aff135c8260f77fa3b4c5fea600a6431" - integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw== - -"@webassemblyjs/helper-api-error@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz#6132f68c4acd59dcd141c44b18cbebbd9f2fa768" - integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q== - -"@webassemblyjs/helper-buffer@1.12.1": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz#6df20d272ea5439bf20ab3492b7fb70e9bfcb3f6" - integrity sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw== - -"@webassemblyjs/helper-numbers@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz#cbce5e7e0c1bd32cf4905ae444ef64cea919f1b5" - integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g== - dependencies: - "@webassemblyjs/floating-point-hex-parser" "1.11.6" - "@webassemblyjs/helper-api-error" "1.11.6" - "@xtuc/long" "4.2.2" - -"@webassemblyjs/helper-wasm-bytecode@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz#bb2ebdb3b83aa26d9baad4c46d4315283acd51e9" - integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA== - -"@webassemblyjs/helper-wasm-section@1.12.1": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz#3da623233ae1a60409b509a52ade9bc22a37f7bf" - integrity sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/wasm-gen" "1.12.1" - -"@webassemblyjs/ieee754@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz#bb665c91d0b14fffceb0e38298c329af043c6e3a" - integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg== - dependencies: - "@xtuc/ieee754" "^1.2.0" - -"@webassemblyjs/leb128@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.6.tgz#70e60e5e82f9ac81118bc25381a0b283893240d7" - integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ== - dependencies: - "@xtuc/long" "4.2.2" - -"@webassemblyjs/utf8@1.11.6": - version "1.11.6" - resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.6.tgz#90f8bc34c561595fe156603be7253cdbcd0fab5a" - integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA== - -"@webassemblyjs/wasm-edit@^1.11.5": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz#9f9f3ff52a14c980939be0ef9d5df9ebc678ae3b" - integrity sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/helper-wasm-section" "1.12.1" - "@webassemblyjs/wasm-gen" "1.12.1" - "@webassemblyjs/wasm-opt" "1.12.1" - "@webassemblyjs/wasm-parser" "1.12.1" - "@webassemblyjs/wast-printer" "1.12.1" - -"@webassemblyjs/wasm-gen@1.12.1": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz#a6520601da1b5700448273666a71ad0a45d78547" - integrity sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wasm-opt@1.12.1": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz#9e6e81475dfcfb62dab574ac2dda38226c232bc5" - integrity sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-buffer" "1.12.1" - "@webassemblyjs/wasm-gen" "1.12.1" - "@webassemblyjs/wasm-parser" "1.12.1" - -"@webassemblyjs/wasm-parser@1.12.1", "@webassemblyjs/wasm-parser@^1.11.5": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz#c47acb90e6f083391e3fa61d113650eea1e95937" - integrity sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@webassemblyjs/helper-api-error" "1.11.6" - "@webassemblyjs/helper-wasm-bytecode" "1.11.6" - "@webassemblyjs/ieee754" "1.11.6" - "@webassemblyjs/leb128" "1.11.6" - "@webassemblyjs/utf8" "1.11.6" - -"@webassemblyjs/wast-printer@1.12.1": - version "1.12.1" - resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz#bcecf661d7d1abdaf989d8341a4833e33e2b31ac" - integrity sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA== - dependencies: - "@webassemblyjs/ast" "1.12.1" - "@xtuc/long" "4.2.2" - -"@xtuc/ieee754@^1.2.0": - version "1.2.0" - resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" - integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== - -"@xtuc/long@4.2.2": - version "4.2.2" - resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" - integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== - -"@yarnpkg/lockfile@1.1.0", "@yarnpkg/lockfile@^1.1.0": - version "1.1.0" - resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" - integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== - -"@yarnpkg/parsers@3.0.0-rc.46": - version "3.0.0-rc.46" - resolved "https://registry.yarnpkg.com/@yarnpkg/parsers/-/parsers-3.0.0-rc.46.tgz#03f8363111efc0ea670e53b0282cd3ef62de4e01" - integrity sha512-aiATs7pSutzda/rq8fnuPwTglyVwjM22bNnK2ZgjrpAjQHSSl3lztd2f9evst1W/qnC58DRz7T7QndUDumAR4Q== - dependencies: - js-yaml "^3.10.0" - tslib "^2.4.0" - -abbrev@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf" - integrity sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ== - -accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8: - version "1.3.8" - resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" - integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== - dependencies: - mime-types "~2.1.34" - negotiator "0.6.3" - -acorn-import-assertions@^1.9.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" - integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== - -acorn-jsx@^5.3.2: - version "5.3.2" - resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" - integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== - -acorn-walk@^8.1.1: - version "8.3.2" - resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.2.tgz#7703af9415f1b6db9315d6895503862e231d34aa" - integrity sha512-cjkyv4OtNCIeqhHrfS81QWXoCBPExR/J62oyEqepVw8WaQeSqpW2uhuLPh1m9eWhDuOo/jUXVTlifvesOWp/4A== - -acorn@^8.4.1, acorn@^8.7.1, acorn@^8.8.2, acorn@^8.9.0: - version "8.11.3" - resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.11.3.tgz#71e0b14e13a4ec160724b38fb7b0f233b1b81d7a" - integrity sha512-Y9rRfJG5jcKOE0CLisYbojUjIrIEE7AGMzA/Sm4BslANhbS+cDMpgBdcPT91oJ7OuJ9hYJBx59RjbhxVnrF8Xg== - -adjust-sourcemap-loader@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz#fc4a0fd080f7d10471f30a7320f25560ade28c99" - integrity sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A== - dependencies: - loader-utils "^2.0.0" - regex-parser "^2.2.11" - -adler-32@~1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/adler-32/-/adler-32-1.3.1.tgz#1dbf0b36dda0012189a32b3679061932df1821e2" - integrity sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A== - -adm-zip@^0.5.2: - version "0.5.12" - resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.5.12.tgz#87786328e91d54b37358d8a50f954c4cd73ba60b" - integrity sha512-6TVU49mK6KZb4qG6xWaaM4C7sA/sgUMLy/JYMOzkcp3BvVLpW0fXDFQiIzAuxFCt/2+xD7fNIiPFAoLZPhVNLQ== - -agent-base@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" - integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== - dependencies: - es6-promisify "^5.0.0" - -agent-base@^7.0.2, agent-base@^7.1.0, agent-base@^7.1.1: - version "7.1.1" - resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.1.tgz#bdbded7dfb096b751a2a087eeeb9664725b2e317" - integrity sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA== - dependencies: - debug "^4.3.4" - -aggregate-error@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" - integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== - dependencies: - clean-stack "^2.0.0" - indent-string "^4.0.0" - -ajv-formats@2.1.1, ajv-formats@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" - integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== - dependencies: - ajv "^8.0.0" - -ajv-keywords@^3.5.2: - version "3.5.2" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" - integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== - -ajv-keywords@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" - integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== - dependencies: - fast-deep-equal "^3.1.3" - -ajv@8.12.0: - version "8.12.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" - integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== - dependencies: - fast-deep-equal "^3.1.1" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.2.2" - -ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: - version "6.12.6" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" - integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== - dependencies: - fast-deep-equal "^3.1.1" - fast-json-stable-stringify "^2.0.0" - json-schema-traverse "^0.4.1" - uri-js "^4.2.2" - -ajv@^8.0.0, ajv@^8.0.1, ajv@^8.12.0, ajv@^8.9.0: - version "8.13.0" - resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.13.0.tgz#a3939eaec9fb80d217ddf0c3376948c023f28c91" - integrity sha512-PRA911Blj99jR5RMeTunVbNXMF6Lp4vZXnk5GQjcnUWUTsrXtekg/pnmFFI2u/I36Y/2bITGS30GZCXei6uNkA== - dependencies: - fast-deep-equal "^3.1.3" - json-schema-traverse "^1.0.0" - require-from-string "^2.0.2" - uri-js "^4.4.1" - -amdefine@>=0.0.4: - version "1.0.1" - resolved "https://registry.yarnpkg.com/amdefine/-/amdefine-1.0.1.tgz#4a5282ac164729e93619bcfd3ad151f817ce91f5" - integrity sha512-S2Hw0TtNkMJhIabBwIojKL9YHO5T0n5eNqWJ7Lrlel/zDbftQpxpapi8tZs3X1HWa+u+QeydGmzzNU0m09+Rcg== - -angular-tag-cloud-module@17.0.1: - version "17.0.1" - resolved "https://registry.yarnpkg.com/angular-tag-cloud-module/-/angular-tag-cloud-module-17.0.1.tgz#44370f90f0fa01c6f4eda48cbd94f3b135b4858c" - integrity sha512-9r34krgnLhfZZWRis0Sl4VPKm0x9MGkw7bBBPSKfd5R4URizBfn2Wac0NXn1dtmavJwfqqSyq/oFJFpPS8/IUg== - dependencies: - tslib "^2.3.0" - -ansi-colors@4.1.3, ansi-colors@^4.1.1: - version "4.1.3" - resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" - integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== - -ansi-escapes@^4.3.2: - version "4.3.2" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" - integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== - dependencies: - type-fest "^0.21.3" - -ansi-escapes@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-5.0.0.tgz#b6a0caf0eef0c41af190e9a749e0c00ec04bb2a6" - integrity sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA== - dependencies: - type-fest "^1.0.2" - -ansi-html-community@^0.0.8: - version "0.0.8" - resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" - integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== - -ansi-regex@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" - integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA== - -ansi-regex@^4.1.0: - version "4.1.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" - integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== - -ansi-regex@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" - integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== - -ansi-regex@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" - integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== - -ansi-styles@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" - integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA== - -ansi-styles@^3.2.0, ansi-styles@^3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" - integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== - dependencies: - color-convert "^1.9.0" - -ansi-styles@^4.0.0, ansi-styles@^4.1.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" - integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== - dependencies: - color-convert "^2.0.1" - -ansi-styles@^5.0.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" - integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== - -ansi-styles@^6.0.0, ansi-styles@^6.1.0: - version "6.2.1" - resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" - integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== - -anymatch@~3.1.2: - version "3.1.3" - resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" - integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== - dependencies: - normalize-path "^3.0.0" - picomatch "^2.0.4" - -are-docs-informative@^0.0.2: - version "0.0.2" - resolved "https://registry.npmmirror.com/are-docs-informative/-/are-docs-informative-0.0.2.tgz#387f0e93f5d45280373d387a59d34c96db321963" - integrity sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig== - -arg@^4.1.0: - version "4.1.3" - resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" - integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== - -argparse@^1.0.7: - version "1.0.10" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" - integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== - dependencies: - sprintf-js "~1.0.2" - -argparse@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" - integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== - -aria-query@5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" - integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== - dependencies: - dequal "^2.0.3" - -arr-diff@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" - integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== - -arr-flatten@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" - integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== - -arr-union@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" - integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== - -array-buffer-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" - integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== - dependencies: - call-bind "^1.0.5" - is-array-buffer "^3.0.4" - -array-find-index@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" - integrity sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw== - -array-flatten@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" - integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== - -array-includes@^3.1.4: - version "3.1.8" - resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" - integrity sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.2" - es-object-atoms "^1.0.0" - get-intrinsic "^1.2.4" - is-string "^1.0.7" - -array-union@^1.0.1, array-union@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" - integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== - dependencies: - array-uniq "^1.0.1" - -array-union@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" - integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== - -array-uniq@^1.0.1: - version "1.0.3" - resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" - integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== - -array-unique@^0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" - integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== - -array.prototype.flat@^1.2.5: - version "1.3.2" - resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" - integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== - dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - es-shim-unscopables "^1.0.0" - -arraybuffer.prototype.slice@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" - integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== - dependencies: - array-buffer-byte-length "^1.0.1" - call-bind "^1.0.5" - define-properties "^1.2.1" - es-abstract "^1.22.3" - es-errors "^1.2.1" - get-intrinsic "^1.2.3" - is-array-buffer "^3.0.4" - is-shared-array-buffer "^1.0.2" - -arrify@^1.0.0, arrify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" - integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== - -asn1@~0.2.3: - version "0.2.6" - resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" - integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== - dependencies: - safer-buffer "~2.1.0" - -assert-plus@1.0.0, assert-plus@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" - integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== - -assign-symbols@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" - integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== - -astral-regex@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" - integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== - -astral-regex@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" - integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== - -async@^3.2.3: - version "3.2.5" - resolved "https://registry.yarnpkg.com/async/-/async-3.2.5.tgz#ebd52a8fdaf7a2289a24df399f8d8485c8a46b66" - integrity sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg== - -asynckit@^0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" - integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== - -atob@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" - integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== - -autoprefixer@10.4.18: - version "10.4.18" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.18.tgz#fcb171a3b017be7cb5d8b7a825f5aacbf2045163" - integrity sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g== - dependencies: - browserslist "^4.23.0" - caniuse-lite "^1.0.30001591" - fraction.js "^4.3.7" - normalize-range "^0.1.2" - picocolors "^1.0.0" - postcss-value-parser "^4.2.0" - -autoprefixer@^9.0.0: - version "9.8.8" - resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.8.tgz#fd4bd4595385fa6f06599de749a4d5f7a474957a" - integrity sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA== - dependencies: - browserslist "^4.12.0" - caniuse-lite "^1.0.30001109" - normalize-range "^0.1.2" - num2fraction "^1.2.2" - picocolors "^0.2.1" - postcss "^7.0.32" - postcss-value-parser "^4.1.0" - -available-typed-arrays@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" - integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== - dependencies: - possible-typed-array-names "^1.0.0" - -aws-sign2@~0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" - integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== - -aws4@^1.8.0: - version "1.12.0" - resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.12.0.tgz#ce1c9d143389679e253b314241ea9aa5cec980d3" - integrity sha512-NmWvPnx0F1SfrQbYwOi7OeaNGokp9XhzNioJ/CSBs8Qa4vxug81mhJEAVZwxXuBmYB5KDRfMq/F3RR0BIU7sWg== - -axios@^1.6.0: - version "1.6.8" - resolved "https://registry.yarnpkg.com/axios/-/axios-1.6.8.tgz#66d294951f5d988a00e87a0ffb955316a619ea66" - integrity sha512-v/ZHtJDU39mDpyBoFVkETcd/uNdxrWRrg3bKpOKzXFA6Bvqopts6ALSMU3y6ijYxbw2B+wPrIv46egTzJXCLGQ== - dependencies: - follow-redirects "^1.15.6" - form-data "^4.0.0" - proxy-from-env "^1.1.0" - -axobject-query@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.0.0.tgz#04a4c90dce33cc5d606c76d6216e3b250ff70dab" - integrity sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw== - dependencies: - dequal "^2.0.3" - -babel-loader@9.1.3: - version "9.1.3" - resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-9.1.3.tgz#3d0e01b4e69760cc694ee306fe16d358aa1c6f9a" - integrity sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw== - dependencies: - find-cache-dir "^4.0.0" - schema-utils "^4.0.0" - -babel-plugin-istanbul@6.1.1: - version "6.1.1" - resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" - integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== - dependencies: - "@babel/helper-plugin-utils" "^7.0.0" - "@istanbuljs/load-nyc-config" "^1.0.0" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-instrument "^5.0.4" - test-exclude "^6.0.0" - -babel-plugin-polyfill-corejs2@^0.4.8: - version "0.4.11" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz#30320dfe3ffe1a336c15afdcdafd6fd615b25e33" - integrity sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q== - dependencies: - "@babel/compat-data" "^7.22.6" - "@babel/helper-define-polyfill-provider" "^0.6.2" - semver "^6.3.1" - -babel-plugin-polyfill-corejs3@^0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.9.0.tgz#9eea32349d94556c2ad3ab9b82ebb27d4bf04a81" - integrity sha512-7nZPG1uzK2Ymhy/NbaOWTg3uibM2BmGASS4vHS4szRZAIR8R6GwA/xAujpdrXU5iyklrimWnLWU+BLF9suPTqg== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.5.0" - core-js-compat "^3.34.0" - -babel-plugin-polyfill-regenerator@^0.5.5: - version "0.5.5" - resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.5.tgz#8b0c8fc6434239e5d7b8a9d1f832bb2b0310f06a" - integrity sha512-OJGYZlhLqBh2DDHeqAxWB1XIvr49CxiJ2gIt61/PU55CQK4Z58OzMqjDe1zwQdQk+rBYsRc+1rJmdajM3gimHg== - dependencies: - "@babel/helper-define-polyfill-provider" "^0.5.0" - -bail@^1.0.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.5.tgz#b6fa133404a392cbc1f8c4bf63f5953351e7a776" - integrity sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ== - -balanced-match@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" - integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== - -balanced-match@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-2.0.0.tgz#dc70f920d78db8b858535795867bf48f820633d9" - integrity sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA== - -base64-js@^1.3.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" - integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== - -base64id@2.0.0, base64id@~2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/base64id/-/base64id-2.0.0.tgz#2770ac6bc47d312af97a8bf9a634342e0cd25cb6" - integrity sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog== - -base@^0.11.1: - version "0.11.2" - resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" - integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== - dependencies: - cache-base "^1.0.1" - class-utils "^0.3.5" - component-emitter "^1.2.1" - define-property "^1.0.0" - isobject "^3.0.1" - mixin-deep "^1.2.0" - pascalcase "^0.1.1" - -batch@0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" - integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== - -bcrypt-pbkdf@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" - integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== - dependencies: - tweetnacl "^0.14.3" - -big.js@^5.2.2: - version "5.2.2" - resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" - integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== - -binary-extensions@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" - integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== - -bl@^4.0.3, bl@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" - integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== - dependencies: - buffer "^5.5.0" - inherits "^2.0.4" - readable-stream "^3.4.0" - -blocking-proxy@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/blocking-proxy/-/blocking-proxy-1.0.1.tgz#81d6fd1fe13a4c0d6957df7f91b75e98dac40cb2" - integrity sha512-KE8NFMZr3mN2E0HcvCgRtX7DjhiIQrwle+nSVJVC/yqFb9+xznHl2ZcoBp2L9qzkI4t4cBFJ1efXF8Dwi132RA== - dependencies: - minimist "^1.2.0" - -body-parser@1.20.2, body-parser@^1.19.0: - version "1.20.2" - resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd" - integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== - dependencies: - bytes "3.1.2" - content-type "~1.0.5" - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - http-errors "2.0.0" - iconv-lite "0.4.24" - on-finished "2.4.1" - qs "6.11.0" - raw-body "2.5.2" - type-is "~1.6.18" - unpipe "1.0.0" - -bonjour-service@^1.0.11: - version "1.2.1" - resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.2.1.tgz#eb41b3085183df3321da1264719fbada12478d02" - integrity sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw== - dependencies: - fast-deep-equal "^3.1.3" - multicast-dns "^7.2.5" - -boolbase@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" - integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== - -brace-expansion@^1.1.7: - version "1.1.11" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" - integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== - dependencies: - balanced-match "^1.0.0" - concat-map "0.0.1" - -brace-expansion@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" - integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== - dependencies: - balanced-match "^1.0.0" - -braces@^2.3.1: - version "2.3.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" - integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== - dependencies: - arr-flatten "^1.1.0" - array-unique "^0.3.2" - extend-shallow "^2.0.1" - fill-range "^4.0.0" - isobject "^3.0.1" - repeat-element "^1.1.2" - snapdragon "^0.8.1" - snapdragon-node "^2.0.1" - split-string "^3.0.2" - to-regex "^3.0.1" - -braces@^3.0.2, braces@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.2.tgz#3454e1a462ee8d599e236df336cd9ea4f8afe107" - integrity sha512-b8um+L1RzM3WDSzvhm6gIz1yfTbBt6YTlcEKAvsmqCZZFw46z626lVj9j1yEPW33H5H+lBQpZMP1k8l+78Ha0A== - dependencies: - fill-range "^7.0.1" - -browserslist@^4.12.0, browserslist@^4.21.10, browserslist@^4.21.5, browserslist@^4.22.2, browserslist@^4.23.0: - version "4.23.0" - resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.0.tgz#8f3acc2bbe73af7213399430890f86c63a5674ab" - integrity sha512-QW8HiM1shhT2GuzkvklfjcKDiWFXHOeFCIA/huJPwHsslwcydgk7X+z2zXpEijP98UCY7HbubZt5J2Zgvf0CaQ== - dependencies: - caniuse-lite "^1.0.30001587" - electron-to-chromium "^1.4.668" - node-releases "^2.0.14" - update-browserslist-db "^1.0.13" - -browserstack@^1.5.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/browserstack/-/browserstack-1.6.1.tgz#e051f9733ec3b507659f395c7a4765a1b1e358b3" - integrity sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw== - dependencies: - https-proxy-agent "^2.2.1" - -btoa@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/btoa/-/btoa-1.2.1.tgz#01a9909f8b2c93f6bf680ba26131eb30f7fa3d73" - integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== - -buffer-from@^1.0.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" - integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== - -buffer@^5.5.0: - version "5.7.1" - resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" - integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== - dependencies: - base64-js "^1.3.1" - ieee754 "^1.1.13" - -builtin-modules@^3.3.0: - version "3.3.0" - resolved "https://registry.npmmirror.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" - integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== - -builtins@^5.0.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/builtins/-/builtins-5.1.0.tgz#6d85eeb360c4ebc166c3fdef922a15aa7316a5e8" - integrity sha512-SW9lzGTLvWTP1AY8xeAMZimqDrIaSdLQUcVr9DMef51niJ022Ri87SwRRKYm4A6iHfkPaiVUu/Duw2Wc4J7kKg== - dependencies: - semver "^7.0.0" - -bytes@3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" - integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== - -bytes@3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" - integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== - -cacache@^18.0.0: - version "18.0.3" - resolved "https://registry.yarnpkg.com/cacache/-/cacache-18.0.3.tgz#864e2c18414e1e141ae8763f31e46c2cb96d1b21" - integrity sha512-qXCd4rh6I07cnDqh8V48/94Tc/WSfj+o3Gn6NZ0aZovS255bUx8O13uKxRFd2eWG0xgsco7+YItQNPaa5E85hg== - dependencies: - "@npmcli/fs" "^3.1.0" - fs-minipass "^3.0.0" - glob "^10.2.2" - lru-cache "^10.0.1" - minipass "^7.0.3" - minipass-collect "^2.0.1" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - p-map "^4.0.0" - ssri "^10.0.0" - tar "^6.1.11" - unique-filename "^3.0.0" - -cache-base@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" - integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== - dependencies: - collection-visit "^1.0.0" - component-emitter "^1.2.1" - get-value "^2.0.6" - has-value "^1.0.0" - isobject "^3.0.1" - set-value "^2.0.0" - to-object-path "^0.3.0" - union-value "^1.0.0" - unset-value "^1.0.0" - -call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" - integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - set-function-length "^1.2.1" - -call-me-maybe@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" - integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== - -caller-callsite@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" - integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== - dependencies: - callsites "^2.0.0" - -caller-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" - integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== - dependencies: - caller-callsite "^2.0.0" - -callsites@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" - integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== - -callsites@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" - integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== - -camelcase-keys@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" - integrity sha512-Ej37YKYbFUI8QiYlvj9YHb6/Z60dZyPJW0Cs8sFilMbd2lP0bw3ylAq9yJkK4lcTA2dID5fG8LjmJYbO7kWb7Q== - dependencies: - camelcase "^4.1.0" - map-obj "^2.0.0" - quick-lru "^1.0.0" - -camelcase-keys@^6.2.2: - version "6.2.2" - resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" - integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== - dependencies: - camelcase "^5.3.1" - map-obj "^4.0.0" - quick-lru "^4.0.1" - -camelcase@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" - integrity sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw== - -camelcase@^5.0.0, camelcase@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" - integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== - -caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001587, caniuse-lite@^1.0.30001591: - version "1.0.30001616" - resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001616.tgz#4342712750d35f71ebba9fcac65e2cf8870013c3" - integrity sha512-RHVYKov7IcdNjVHJFNY/78RdG4oGVjbayxv8u5IO74Wv7Hlq4PnJE6mo/OjFijjVFNy5ijnCt6H3IIo4t+wfEw== - -caseless@~0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" - integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== - -ccount@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" - integrity sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg== - -cfb@~1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.2.2.tgz#94e687628c700e5155436dac05f74e08df23bc44" - integrity sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA== - dependencies: - adler-32 "~1.3.0" - crc-32 "~1.2.0" - -chalk@5.3.0, chalk@^5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" - integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== - -chalk@^1.1.1, chalk@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" - integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A== - dependencies: - ansi-styles "^2.2.1" - escape-string-regexp "^1.0.2" - has-ansi "^2.0.0" - strip-ansi "^3.0.0" - supports-color "^2.0.0" - -chalk@^2.0.1, chalk@^2.4.1, chalk@^2.4.2: - version "2.4.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" - integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== - dependencies: - ansi-styles "^3.2.1" - escape-string-regexp "^1.0.5" - supports-color "^5.3.0" - -chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: - version "4.1.2" - resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" - integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== - dependencies: - ansi-styles "^4.1.0" - supports-color "^7.1.0" - -character-entities-html4@^1.0.0: - version "1.1.4" - resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.4.tgz#0e64b0a3753ddbf1fdc044c5fd01d0199a02e125" - integrity sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g== - -character-entities-legacy@^1.0.0: - version "1.1.4" - resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1" - integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA== - -character-entities@^1.0.0: - version "1.2.4" - resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b" - integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw== - -character-reference-invalid@^1.0.0: - version "1.1.4" - resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" - integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== - -chardet@^0.7.0: - version "0.7.0" - resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" - integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== - -"chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.5.1, chokidar@^3.5.3: - version "3.6.0" - resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" - integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== - dependencies: - anymatch "~3.1.2" - braces "~3.0.2" - glob-parent "~5.1.2" - is-binary-path "~2.1.0" - is-glob "~4.0.1" - normalize-path "~3.0.0" - readdirp "~3.6.0" - optionalDependencies: - fsevents "~2.3.2" - -chownr@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" - integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== - -chrome-trace-event@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.3.tgz#1015eced4741e15d06664a957dbbf50d041e26ac" - integrity sha512-p3KULyQg4S7NIHixdwbGX+nFHkoBiA4YQmyWtjb8XngSKV124nJmRysgAeujbUVb15vh+RvFUfCPqU7rXk+hZg== - -class-utils@^0.3.5: - version "0.3.6" - resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" - integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== - dependencies: - arr-union "^3.1.0" - define-property "^0.2.5" - isobject "^3.0.0" - static-extend "^0.1.1" - -clean-css@^3.0.1: - version "3.4.28" - resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-3.4.28.tgz#bf1945e82fc808f55695e6ddeaec01400efd03ff" - integrity sha512-aTWyttSdI2mYi07kWqHi24NUU9YlELFKGOAgFzZjDN1064DMAOy2FBuoyGmkKRlXkbpXd0EVHmiVkbKhKoirTw== - dependencies: - commander "2.8.x" - source-map "0.4.x" - -clean-stack@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" - integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== - -cli-cursor@3.1.0, cli-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" - integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== - dependencies: - restore-cursor "^3.1.0" - -cli-cursor@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-4.0.0.tgz#3cecfe3734bf4fe02a8361cbdc0f6fe28c6a57ea" - integrity sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg== - dependencies: - restore-cursor "^4.0.0" - -cli-spinners@2.6.1: - version "2.6.1" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" - integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== - -cli-spinners@^2.5.0: - version "2.9.2" - resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" - integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== - -cli-truncate@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-3.1.0.tgz#3f23ab12535e3d73e839bb43e73c9de487db1389" - integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== - dependencies: - slice-ansi "^5.0.0" - string-width "^5.0.0" - -cli-width@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5" - integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ== - -cliui@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" - integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^6.2.0" - -cliui@^7.0.2: - version "7.0.4" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" - integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.0" - wrap-ansi "^7.0.0" - -cliui@^8.0.1: - version "8.0.1" - resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" - integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== - dependencies: - string-width "^4.2.0" - strip-ansi "^6.0.1" - wrap-ansi "^7.0.0" - -clone-deep@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" - integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== - dependencies: - is-plain-object "^2.0.4" - kind-of "^6.0.2" - shallow-clone "^3.0.0" - -clone-regexp@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.1.tgz#051805cd33173375d82118fc0918606da39fd60f" - integrity sha512-Fcij9IwRW27XedRIJnSOEupS7RVcXtObJXbcUOX93UCLqqOdRpkvzKywOOSizmEK/Is3S/RHX9dLdfo6R1Q1mw== - dependencies: - is-regexp "^1.0.0" - is-supported-regexp-flag "^1.0.0" - -clone@^1.0.2: - version "1.0.4" - resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" - integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== - -codepage@~1.15.0: - version "1.15.0" - resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.15.0.tgz#2e00519024b39424ec66eeb3ec07227e692618ab" - integrity sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA== - -collapse-white-space@^1.0.2: - version "1.0.6" - resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.6.tgz#e63629c0016665792060dbbeb79c42239d2c5287" - integrity sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ== - -collection-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" - integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== - dependencies: - map-visit "^1.0.0" - object-visit "^1.0.0" - -color-convert@^1.9.0: - version "1.9.3" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" - integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== - dependencies: - color-name "1.1.3" - -color-convert@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" - integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== - dependencies: - color-name "~1.1.4" - -color-name@1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" - integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== - -color-name@~1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" - integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== - -colord@^2.9.3: - version "2.9.3" - resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43" - integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw== - -colorette@^2.0.10, colorette@^2.0.20: - version "2.0.20" - resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" - integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== - -colors@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" - integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== - -combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: - version "1.0.8" - resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" - integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== - dependencies: - delayed-stream "~1.0.0" - -commander@*: - version "12.0.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-12.0.0.tgz#b929db6df8546080adfd004ab215ed48cf6f2592" - integrity sha512-MwVNWlYjDTtOjX5PiD7o5pK0UrFU/OYgcJfjjK4RaHZETNtjJqrZa9Y9ds88+A+f+d5lv+561eZ+yCKoS3gbAA== - -commander@11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/commander/-/commander-11.0.0.tgz#43e19c25dbedc8256203538e8d7e9346877a6f67" - integrity sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ== - -commander@2.8.x: - version "2.8.1" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.8.1.tgz#06be367febfda0c330aa1e2a072d3dc9762425d4" - integrity sha512-+pJLBFVk+9ZZdlAOB5WuIElVPPth47hILFkmGym57aq8kwxsowvByvB0DHs1vQAhyMZzdcpTtF0VDKGkSDR4ZQ== - dependencies: - graceful-readlink ">= 1.0.0" - -commander@^2.20.0: - version "2.20.3" - resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" - integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== - -comment-parser@1.4.1: - version "1.4.1" - resolved "https://registry.npmmirror.com/comment-parser/-/comment-parser-1.4.1.tgz#bdafead37961ac079be11eb7ec65c4d021eaf9cc" - integrity sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg== - -common-path-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" - integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== - -component-emitter@^1.2.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.1.tgz#ef1d5796f7d93f135ee6fb684340b26403c97d17" - integrity sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ== - -compressible@~2.0.16: - version "2.0.18" - resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" - integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== - dependencies: - mime-db ">= 1.43.0 < 2" - -compression@^1.7.4: - version "1.7.4" - resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" - integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== - dependencies: - accepts "~1.3.5" - bytes "3.0.0" - compressible "~2.0.16" - debug "2.6.9" - on-headers "~1.0.2" - safe-buffer "5.1.2" - vary "~1.1.2" - -concat-map@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" - integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== - -connect-history-api-fallback@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" - integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== - -connect@^3.7.0: - version "3.7.0" - resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" - integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== - dependencies: - debug "2.6.9" - finalhandler "1.1.2" - parseurl "~1.3.3" - utils-merge "1.0.1" - -content-disposition@0.5.4: - version "0.5.4" - resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" - integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== - dependencies: - safe-buffer "5.2.1" - -content-type@~1.0.4, content-type@~1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" - integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== - -convert-source-map@^1.5.1, convert-source-map@^1.7.0: - version "1.9.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" - integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== - -convert-source-map@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" - integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== - -cookie-signature@1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" - integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== - -cookie@0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" - integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== - -cookie@~0.4.1: - version "0.4.2" - resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" - integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== - -copy-anything@^2.0.1: - version "2.0.6" - resolved "https://registry.yarnpkg.com/copy-anything/-/copy-anything-2.0.6.tgz#092454ea9584a7b7ad5573062b2a87f5900fc480" - integrity sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw== - dependencies: - is-what "^3.14.1" - -copy-descriptor@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" - integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== - -copy-webpack-plugin@11.0.0: - version "11.0.0" - resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz#96d4dbdb5f73d02dd72d0528d1958721ab72e04a" - integrity sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ== - dependencies: - fast-glob "^3.2.11" - glob-parent "^6.0.1" - globby "^13.1.1" - normalize-path "^3.0.0" - schema-utils "^4.0.0" - serialize-javascript "^6.0.0" - -core-js-compat@^3.31.0, core-js-compat@^3.34.0: - version "3.37.0" - resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.0.tgz#d9570e544163779bb4dff1031c7972f44918dc73" - integrity sha512-vYq4L+T8aS5UuFg4UwDhc7YNRWVeVZwltad9C/jV3R2LgVOpS9BDr7l/WL6BN0dbV3k1XejPTHqqEzJgsa0frA== - dependencies: - browserslist "^4.23.0" - -core-js@^3.26.1: - version "3.37.0" - resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.37.0.tgz#d8dde58e91d156b2547c19d8a4efd5c7f6c426bb" - integrity sha512-fu5vHevQ8ZG4og+LXug8ulUtVxjOcEYvifJr7L5Bfq9GOztVqsKd9/59hUk2ZSbCrS3BqUr3EpaYGIYzq7g3Ug== - -core-util-is@1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" - integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== - -core-util-is@~1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" - integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== - -cors@~2.8.5: - version "2.8.5" - resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" - integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== - dependencies: - object-assign "^4" - vary "^1" - -cosmiconfig@7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" - integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cosmiconfig@^5.0.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" - integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== - dependencies: - import-fresh "^2.0.0" - is-directory "^0.3.1" - js-yaml "^3.13.1" - parse-json "^4.0.0" - -cosmiconfig@^7.1.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" - integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== - dependencies: - "@types/parse-json" "^4.0.0" - import-fresh "^3.2.1" - parse-json "^5.0.0" - path-type "^4.0.0" - yaml "^1.10.0" - -cosmiconfig@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-9.0.0.tgz#34c3fc58287b915f3ae905ab6dc3de258b55ad9d" - integrity sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg== - dependencies: - env-paths "^2.2.1" - import-fresh "^3.3.0" - js-yaml "^4.1.0" - parse-json "^5.2.0" - -crc-32@~1.2.0, crc-32@~1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" - integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== - -create-require@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" - integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== - -critters@0.0.22: - version "0.0.22" - resolved "https://registry.yarnpkg.com/critters/-/critters-0.0.22.tgz#ce76b1cbc70078c89d23725646357e3850236dae" - integrity sha512-NU7DEcQZM2Dy8XTKFHxtdnIM/drE312j2T4PCVaSUcS0oBeyT/NImpRw/Ap0zOr/1SE7SgPK9tGPg1WK/sVakw== - dependencies: - chalk "^4.1.0" - css-select "^5.1.0" - dom-serializer "^2.0.0" - domhandler "^5.0.2" - htmlparser2 "^8.0.2" - postcss "^8.4.23" - postcss-media-query-parser "^0.2.3" - -cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: - version "7.0.3" - resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" - integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== - dependencies: - path-key "^3.1.0" - shebang-command "^2.0.0" - which "^2.0.1" - -css-functions-list@^3.1.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/css-functions-list/-/css-functions-list-3.2.2.tgz#9a54c6dd8416ed25c1079cd88234e927526c1922" - integrity sha512-c+N0v6wbKVxTu5gOBBFkr9BEdBWaqqjQeiJ8QvSRIJOf+UxlJh930m8e6/WNeODIK0mYLFkoONrnj16i2EcvfQ== - -css-loader@6.10.0: - version "6.10.0" - resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.10.0.tgz#7c172b270ec7b833951b52c348861206b184a4b7" - integrity sha512-LTSA/jWbwdMlk+rhmElbDR2vbtQoTBPr7fkJE+mxrHj+7ru0hUmHafDRzWIjIHTwpitWVaqY2/UWGRca3yUgRw== - dependencies: - icss-utils "^5.1.0" - postcss "^8.4.33" - postcss-modules-extract-imports "^3.0.0" - postcss-modules-local-by-default "^4.0.4" - postcss-modules-scope "^3.1.1" - postcss-modules-values "^4.0.0" - postcss-value-parser "^4.2.0" - semver "^7.5.4" - -css-select@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6" - integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg== - dependencies: - boolbase "^1.0.0" - css-what "^6.1.0" - domhandler "^5.0.2" - domutils "^3.0.1" - nth-check "^2.0.1" - -css-what@^6.1.0: - version "6.1.0" - resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" - integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== - -cssesc@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" - integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== - -currently-unhandled@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" - integrity sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng== - dependencies: - array-find-index "^1.0.1" - -custom-event-polyfill@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/custom-event-polyfill/-/custom-event-polyfill-1.0.7.tgz#9bc993ddda937c1a30ccd335614c6c58c4f87aee" - integrity sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w== - -custom-event@~1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/custom-event/-/custom-event-1.0.1.tgz#5d02a46850adf1b4a317946a3928fccb5bfd0425" - integrity sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg== - -dashdash@^1.12.0: - version "1.14.1" - resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" - integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== - dependencies: - assert-plus "^1.0.0" - -data-uri-to-buffer@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" - integrity sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A== - -data-view-buffer@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.1.tgz#8ea6326efec17a2e42620696e671d7d5a8bc66b2" - integrity sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -data-view-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz#90721ca95ff280677eb793749fce1011347669e2" - integrity sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -data-view-byte-offset@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz#5e0bbfb4828ed2d1b9b400cd8a7d119bca0ff18a" - integrity sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-data-view "^1.0.1" - -date-fns@^2.16.1: - version "2.30.0" - resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" - integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== - dependencies: - "@babel/runtime" "^7.21.0" - -date-format@^4.0.14: - version "4.0.14" - resolved "https://registry.yarnpkg.com/date-format/-/date-format-4.0.14.tgz#7a8e584434fb169a521c8b7aa481f355810d9400" - integrity sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg== - -debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: - version "2.6.9" - resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" - integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== - dependencies: - ms "2.0.0" - -debug@4, debug@4.3.4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@~4.3.1, debug@~4.3.2, debug@~4.3.4: - version "4.3.4" - resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" - integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== - dependencies: - ms "2.1.2" - -debug@^3.1.0, debug@^3.2.7: - version "3.2.7" - resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" - integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== - dependencies: - ms "^2.1.1" - -decamelize-keys@^1.0.0, decamelize-keys@^1.1.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" - integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== - dependencies: - decamelize "^1.1.0" - map-obj "^1.0.0" - -decamelize@^1.1.0, decamelize@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" - integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== - -decode-uri-component@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" - integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== - -deep-is@^0.1.3: - version "0.1.4" - resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" - integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== - -default-gateway@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" - integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== - dependencies: - execa "^5.0.0" - -defaults@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" - integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== - dependencies: - clone "^1.0.2" - -define-data-property@^1.0.1, define-data-property@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" - integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== - dependencies: - es-define-property "^1.0.0" - es-errors "^1.3.0" - gopd "^1.0.1" - -define-lazy-prop@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" - integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== - -define-properties@^1.2.0, define-properties@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" - integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== - dependencies: - define-data-property "^1.0.1" - has-property-descriptors "^1.0.0" - object-keys "^1.1.1" - -define-property@^0.2.5: - version "0.2.5" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" - integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== - dependencies: - is-descriptor "^0.1.0" - -define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" - integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== - dependencies: - is-descriptor "^1.0.0" - -define-property@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" - integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== - dependencies: - is-descriptor "^1.0.2" - isobject "^3.0.1" - -del@^2.2.0: - version "2.2.2" - resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" - integrity sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ== - dependencies: - globby "^5.0.0" - is-path-cwd "^1.0.0" - is-path-in-cwd "^1.0.0" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - rimraf "^2.2.8" - -delayed-stream@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" - integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== - -depd@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" - integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== - -depd@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" - integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== - -dequal@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" - integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== - -destroy@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" - integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== - -detect-node@^2.0.4: - version "2.1.0" - resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1" - integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== - -di@^0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/di/-/di-0.0.1.tgz#806649326ceaa7caa3306d75d985ea2748ba913c" - integrity sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA== - -didyoumean@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" - integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== - -diff-sequences@^29.6.3: - version "29.6.3" - resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" - integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== - -diff@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" - integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== - -dir-glob@^2.2.2: - version "2.2.2" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" - integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== - dependencies: - path-type "^3.0.0" - -dir-glob@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" - integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== - dependencies: - path-type "^4.0.0" - -dns-packet@^5.2.2: - version "5.6.1" - resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.6.1.tgz#ae888ad425a9d1478a0674256ab866de1012cf2f" - integrity sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw== - dependencies: - "@leichtgewicht/ip-codec" "^2.0.1" - -doctrine@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" - integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== - dependencies: - esutils "^2.0.2" - -doctrine@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" - integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== - dependencies: - esutils "^2.0.2" - -dom-serialize@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/dom-serialize/-/dom-serialize-2.2.1.tgz#562ae8999f44be5ea3076f5419dcd59eb43ac95b" - integrity sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ== - dependencies: - custom-event "~1.0.0" - ent "~2.2.0" - extend "^3.0.0" - void-elements "^2.0.0" - -dom-serializer@0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" - integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== - dependencies: - domelementtype "^2.0.1" - entities "^2.0.0" - -dom-serializer@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53" - integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg== - dependencies: - domelementtype "^2.3.0" - domhandler "^5.0.2" - entities "^4.2.0" - -domelementtype@1, domelementtype@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" - integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== - -domelementtype@^2.0.1, domelementtype@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" - integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== - -domhandler@^2.3.0: - version "2.4.2" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" - integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== - dependencies: - domelementtype "1" - -domhandler@^5.0.2, domhandler@^5.0.3: - version "5.0.3" - resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31" - integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w== - dependencies: - domelementtype "^2.3.0" - -domutils@^1.5.1: - version "1.7.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" - integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== - dependencies: - dom-serializer "0" - domelementtype "1" - -domutils@^3.0.1: - version "3.1.0" - resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e" - integrity sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA== - dependencies: - dom-serializer "^2.0.0" - domelementtype "^2.3.0" - domhandler "^5.0.3" - -dot-prop@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" - integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== - dependencies: - is-obj "^2.0.0" - -dotenv-expand@~10.0.0: - version "10.0.0" - resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-10.0.0.tgz#12605d00fb0af6d0a592e6558585784032e4ef37" - integrity sha512-GopVGCpVS1UKH75VKHGuQFqS1Gusej0z4FyQkPdwjil2gNIv+LNsqBlboOzpJFZKVT95GkCyWJbBSdFEFUWI2A== - -dotenv@~16.3.1: - version "16.3.2" - resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.3.2.tgz#3cb611ce5a63002dbabf7c281bc331f69d28f03f" - integrity sha512-HTlk5nmhkm8F6JcdXvHIzaorzCoziNQT9mGxLPVXW8wJF1TiGSL60ZGB4gHWabHOaMmWmhvk2/lPHfnBiT78AQ== - -duplexer@^0.1.1, duplexer@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" - integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== - -eastasianwidth@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" - integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== - -ecc-jsbn@~0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" - integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== - dependencies: - jsbn "~0.1.0" - safer-buffer "^2.1.0" - -echarts@5.4.3: - version "5.4.3" - resolved "https://registry.yarnpkg.com/echarts/-/echarts-5.4.3.tgz#f5522ef24419164903eedcfd2b506c6fc91fb20c" - integrity sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA== - dependencies: - tslib "2.3.0" - zrender "5.4.4" - -ee-first@1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" - integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== - -ejs@^3.1.5, ejs@^3.1.7: - version "3.1.10" - resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" - integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== - dependencies: - jake "^10.8.5" - -electron-to-chromium@^1.4.668: - version "1.4.756" - resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.756.tgz#7b872ed8c8c5bee571be771730225d6d2a37fe45" - integrity sha512-RJKZ9+vEBMeiPAvKNWyZjuYyUqMndcP1f335oHqn3BEQbs2NFtVrnK5+6Xg5wSM9TknNNpWghGDUCKGYF+xWXw== - -emoji-regex@^7.0.1: - version "7.0.3" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" - integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== - -emoji-regex@^8.0.0: - version "8.0.0" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" - integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== - -emoji-regex@^9.2.2: - version "9.2.2" - resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" - integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== - -emojis-list@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" - integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== - -encodeurl@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" - integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== - -encoding@^0.1.13: - version "0.1.13" - resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" - integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== - dependencies: - iconv-lite "^0.6.2" - -end-of-stream@^1.4.1: - version "1.4.4" - resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" - integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== - dependencies: - once "^1.4.0" - -engine.io-parser@~5.2.1: - version "5.2.2" - resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-5.2.2.tgz#37b48e2d23116919a3453738c5720455e64e1c49" - integrity sha512-RcyUFKA93/CXH20l4SoVvzZfrSDMOTUS3bWVpTt2FuFP+XYrL8i8oonHP7WInRyVHXh0n/ORtoeiE1os+8qkSw== - -engine.io@~6.5.2: - version "6.5.4" - resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-6.5.4.tgz#6822debf324e781add2254e912f8568508850cdc" - integrity sha512-KdVSDKhVKyOi+r5uEabrDLZw2qXStVvCsEB/LN3mw4WFi6Gx50jTyuxYVCwAAC0U46FdnzP/ScKRBTXb/NiEOg== - dependencies: - "@types/cookie" "^0.4.1" - "@types/cors" "^2.8.12" - "@types/node" ">=10.0.0" - accepts "~1.3.4" - base64id "2.0.0" - cookie "~0.4.1" - cors "~2.8.5" - debug "~4.3.1" - engine.io-parser "~5.2.1" - ws "~8.11.0" - -enhanced-resolve@^5.15.0: - version "5.16.0" - resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.16.0.tgz#65ec88778083056cb32487faa9aef82ed0864787" - integrity sha512-O+QWCviPNSSLAD9Ucn8Awv+poAkqn3T1XY5/N7kR7rQO9yfSGWkYZDwpJ+iKF7B8rxaQKWngSqACpgzeapSyoA== - dependencies: - graceful-fs "^4.2.4" - tapable "^2.2.0" - -enquirer@~2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" - integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== - dependencies: - ansi-colors "^4.1.1" - -ent@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.0.tgz#e964219325a21d05f44466a2f686ed6ce5f5dd1d" - integrity sha512-GHrMyVZQWvTIdDtpiEXdHZnFQKzeO09apj8Cbl4pKWy4i0Oprcq17usfDt5aO63swf0JOeMWjWQE/LzgSRuWpA== - -entities@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" - integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== - -entities@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" - integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== - -entities@^4.2.0, entities@^4.3.0, entities@^4.4.0: - version "4.5.0" - resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" - integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== - -env-paths@^2.2.0, env-paths@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" - integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== - -err-code@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" - integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== - -errno@^0.1.1: - version "0.1.8" - resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" - integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A== - dependencies: - prr "~1.0.1" - -error-ex@^1.3.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" - integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== - dependencies: - is-arrayish "^0.2.1" - -es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.23.0, es-abstract@^1.23.2: - version "1.23.3" - resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.3.tgz#8f0c5a35cd215312573c5a27c87dfd6c881a0aa0" - integrity sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A== - dependencies: - array-buffer-byte-length "^1.0.1" - arraybuffer.prototype.slice "^1.0.3" - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - data-view-buffer "^1.0.1" - data-view-byte-length "^1.0.1" - data-view-byte-offset "^1.0.0" - es-define-property "^1.0.0" - es-errors "^1.3.0" - es-object-atoms "^1.0.0" - es-set-tostringtag "^2.0.3" - es-to-primitive "^1.2.1" - function.prototype.name "^1.1.6" - get-intrinsic "^1.2.4" - get-symbol-description "^1.0.2" - globalthis "^1.0.3" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - has-proto "^1.0.3" - has-symbols "^1.0.3" - hasown "^2.0.2" - internal-slot "^1.0.7" - is-array-buffer "^3.0.4" - is-callable "^1.2.7" - is-data-view "^1.0.1" - is-negative-zero "^2.0.3" - is-regex "^1.1.4" - is-shared-array-buffer "^1.0.3" - is-string "^1.0.7" - is-typed-array "^1.1.13" - is-weakref "^1.0.2" - object-inspect "^1.13.1" - object-keys "^1.1.1" - object.assign "^4.1.5" - regexp.prototype.flags "^1.5.2" - safe-array-concat "^1.1.2" - safe-regex-test "^1.0.3" - string.prototype.trim "^1.2.9" - string.prototype.trimend "^1.0.8" - string.prototype.trimstart "^1.0.8" - typed-array-buffer "^1.0.2" - typed-array-byte-length "^1.0.1" - typed-array-byte-offset "^1.0.2" - typed-array-length "^1.0.6" - unbox-primitive "^1.0.2" - which-typed-array "^1.1.15" - -es-define-property@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" - integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== - dependencies: - get-intrinsic "^1.2.4" - -es-errors@^1.2.1, es-errors@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" - integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== - -es-module-lexer@^1.2.1: - version "1.5.2" - resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.2.tgz#00b423304f2500ac59359cc9b6844951f372d497" - integrity sha512-l60ETUTmLqbVbVHv1J4/qj+M8nq7AwMzEcg3kmJDt9dCNrTk+yHcYFf/Kw75pMDwd9mPcIGCG5LcS20SxYRzFA== - -es-object-atoms@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" - integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== - dependencies: - es-errors "^1.3.0" - -es-set-tostringtag@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" - integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== - dependencies: - get-intrinsic "^1.2.4" - has-tostringtag "^1.0.2" - hasown "^2.0.1" - -es-shim-unscopables@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" - integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== - dependencies: - hasown "^2.0.0" - -es-to-primitive@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" - integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== - dependencies: - is-callable "^1.1.4" - is-date-object "^1.0.1" - is-symbol "^1.0.2" - -es6-promise@^3.2.1: - version "3.3.1" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" - integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== - -es6-promise@^4.0.3: - version "4.2.8" - resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" - integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== - -es6-promisify@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" - integrity sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ== - dependencies: - es6-promise "^4.0.3" - -esbuild-wasm@0.20.1: - version "0.20.1" - resolved "https://registry.yarnpkg.com/esbuild-wasm/-/esbuild-wasm-0.20.1.tgz#fdc14b95e3e16ec8e082dd641edb96140c1723f7" - integrity sha512-6v/WJubRsjxBbQdz6izgvx7LsVFvVaGmSdwrFHmEzoVgfXL89hkKPoQHsnVI2ngOkcBUQT9kmAM1hVL1k/Av4A== - -esbuild@0.20.1: - version "0.20.1" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.20.1.tgz#1e4cbb380ad1959db7609cb9573ee77257724a3e" - integrity sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA== - optionalDependencies: - "@esbuild/aix-ppc64" "0.20.1" - "@esbuild/android-arm" "0.20.1" - "@esbuild/android-arm64" "0.20.1" - "@esbuild/android-x64" "0.20.1" - "@esbuild/darwin-arm64" "0.20.1" - "@esbuild/darwin-x64" "0.20.1" - "@esbuild/freebsd-arm64" "0.20.1" - "@esbuild/freebsd-x64" "0.20.1" - "@esbuild/linux-arm" "0.20.1" - "@esbuild/linux-arm64" "0.20.1" - "@esbuild/linux-ia32" "0.20.1" - "@esbuild/linux-loong64" "0.20.1" - "@esbuild/linux-mips64el" "0.20.1" - "@esbuild/linux-ppc64" "0.20.1" - "@esbuild/linux-riscv64" "0.20.1" - "@esbuild/linux-s390x" "0.20.1" - "@esbuild/linux-x64" "0.20.1" - "@esbuild/netbsd-x64" "0.20.1" - "@esbuild/openbsd-x64" "0.20.1" - "@esbuild/sunos-x64" "0.20.1" - "@esbuild/win32-arm64" "0.20.1" - "@esbuild/win32-ia32" "0.20.1" - "@esbuild/win32-x64" "0.20.1" - -esbuild@^0.19.3: - version "0.19.12" - resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04" - integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg== - optionalDependencies: - "@esbuild/aix-ppc64" "0.19.12" - "@esbuild/android-arm" "0.19.12" - "@esbuild/android-arm64" "0.19.12" - "@esbuild/android-x64" "0.19.12" - "@esbuild/darwin-arm64" "0.19.12" - "@esbuild/darwin-x64" "0.19.12" - "@esbuild/freebsd-arm64" "0.19.12" - "@esbuild/freebsd-x64" "0.19.12" - "@esbuild/linux-arm" "0.19.12" - "@esbuild/linux-arm64" "0.19.12" - "@esbuild/linux-ia32" "0.19.12" - "@esbuild/linux-loong64" "0.19.12" - "@esbuild/linux-mips64el" "0.19.12" - "@esbuild/linux-ppc64" "0.19.12" - "@esbuild/linux-riscv64" "0.19.12" - "@esbuild/linux-s390x" "0.19.12" - "@esbuild/linux-x64" "0.19.12" - "@esbuild/netbsd-x64" "0.19.12" - "@esbuild/openbsd-x64" "0.19.12" - "@esbuild/sunos-x64" "0.19.12" - "@esbuild/win32-arm64" "0.19.12" - "@esbuild/win32-ia32" "0.19.12" - "@esbuild/win32-x64" "0.19.12" - -escalade@^3.1.1, escalade@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" - integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== - -escape-html@^1.0.3, escape-html@~1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" - integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== - -escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" - integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== - -escape-string-regexp@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" - integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== - -eslint-config-prettier@8.6.0: - version "8.6.0" - resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz#dec1d29ab728f4fa63061774e1672ac4e363d207" - integrity sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA== - -eslint-import-resolver-node@^0.3.6: - version "0.3.9" - resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" - integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== - dependencies: - debug "^3.2.7" - is-core-module "^2.13.0" - resolve "^1.22.4" - -eslint-module-utils@^2.7.3: - version "2.8.1" - resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz#52f2404300c3bd33deece9d7372fb337cc1d7c34" - integrity sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q== - dependencies: - debug "^3.2.7" - -eslint-plugin-deprecation@1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-1.3.3.tgz#065b5d36ff220afe139f2b19af57454a13464731" - integrity sha512-Bbkv6ZN2cCthVXz/oZKPwsSY5S/CbgTLRG4Q2s2gpPpgNsT0uJ0dB5oLNiWzFYY8AgKX4ULxXFG1l/rDav9QFA== - dependencies: - "@typescript-eslint/experimental-utils" "^5.0.0" - tslib "^2.3.1" - tsutils "^3.21.0" - -eslint-plugin-import@2.26.0: - version "2.26.0" - resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" - integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== - dependencies: - array-includes "^3.1.4" - array.prototype.flat "^1.2.5" - debug "^2.6.9" - doctrine "^2.1.0" - eslint-import-resolver-node "^0.3.6" - eslint-module-utils "^2.7.3" - has "^1.0.3" - is-core-module "^2.8.1" - is-glob "^4.0.3" - minimatch "^3.1.2" - object.values "^1.1.5" - resolve "^1.22.0" - tsconfig-paths "^3.14.1" - -eslint-plugin-jsdoc@48.2.5: - version "48.2.5" - resolved "https://registry.npmmirror.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.2.5.tgz#66ec712632852faa15065a094342786858f13c49" - integrity sha512-ZeTfKV474W1N9niWfawpwsXGu+ZoMXu4417eBROX31d7ZuOk8zyG66SO77DpJ2+A9Wa2scw/jRqBPnnQo7VbcQ== - dependencies: - "@es-joy/jsdoccomment" "~0.43.0" - are-docs-informative "^0.0.2" - comment-parser "1.4.1" - debug "^4.3.4" - escape-string-regexp "^4.0.0" - esquery "^1.5.0" - is-builtin-module "^3.2.1" - semver "^7.6.1" - spdx-expression-parse "^4.0.0" - -eslint-plugin-prefer-arrow@1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz#e7fbb3fa4cd84ff1015b9c51ad86550e55041041" - integrity sha512-J9I5PKCOJretVuiZRGvPQxCbllxGAV/viI20JO3LYblAodofBxyMnZAJ+WGeClHgANnSJberTNoFWWjrWKBuXQ== - -eslint-plugin-prettier@4.2.1: - version "4.2.1" - resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" - integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== - dependencies: - prettier-linter-helpers "^1.0.0" - -eslint-scope@5.1.1, eslint-scope@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" - integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== - dependencies: - esrecurse "^4.3.0" - estraverse "^4.1.1" - -eslint-scope@^7.2.2: - version "7.2.2" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" - integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-scope@^8.0.0: - version "8.0.1" - resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.0.1.tgz#a9601e4b81a0b9171657c343fb13111688963cfc" - integrity sha512-pL8XjgP4ZOmmwfFE8mEhSxA7ZY4C+LWyqjQ3o4yWkkmD0qcMT9kkW3zWHOczhWcjTSgqycYAgwSlXvZltv65og== - dependencies: - esrecurse "^4.3.0" - estraverse "^5.2.0" - -eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: - version "3.4.3" - resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" - integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== - -eslint@8.51.0: - version "8.51.0" - resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.51.0.tgz#4a82dae60d209ac89a5cff1604fea978ba4950f3" - integrity sha512-2WuxRZBrlwnXi+/vFSJyjMqrNjtJqiasMzehF0shoLaW7DzS3/9Yvrmq5JiT66+pNjiX4UBnLDiKHcWAr/OInA== - dependencies: - "@eslint-community/eslint-utils" "^4.2.0" - "@eslint-community/regexpp" "^4.6.1" - "@eslint/eslintrc" "^2.1.2" - "@eslint/js" "8.51.0" - "@humanwhocodes/config-array" "^0.11.11" - "@humanwhocodes/module-importer" "^1.0.1" - "@nodelib/fs.walk" "^1.2.8" - ajv "^6.12.4" - chalk "^4.0.0" - cross-spawn "^7.0.2" - debug "^4.3.2" - doctrine "^3.0.0" - escape-string-regexp "^4.0.0" - eslint-scope "^7.2.2" - eslint-visitor-keys "^3.4.3" - espree "^9.6.1" - esquery "^1.4.2" - esutils "^2.0.2" - fast-deep-equal "^3.1.3" - file-entry-cache "^6.0.1" - find-up "^5.0.0" - glob-parent "^6.0.2" - globals "^13.19.0" - graphemer "^1.4.0" - ignore "^5.2.0" - imurmurhash "^0.1.4" - is-glob "^4.0.0" - is-path-inside "^3.0.3" - js-yaml "^4.1.0" - json-stable-stringify-without-jsonify "^1.0.1" - levn "^0.4.1" - lodash.merge "^4.6.2" - minimatch "^3.1.2" - natural-compare "^1.4.0" - optionator "^0.9.3" - strip-ansi "^6.0.1" - text-table "^0.2.0" - -espree@^9.6.0, espree@^9.6.1: - version "9.6.1" - resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" - integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== - dependencies: - acorn "^8.9.0" - acorn-jsx "^5.3.2" - eslint-visitor-keys "^3.4.1" - -esprima@^4.0.0: - version "4.0.1" - resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" - integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== - -esquery@^1.4.2, esquery@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.5.0.tgz#6ce17738de8577694edd7361c57182ac8cb0db0b" - integrity sha512-YQLXUplAwJgCydQ78IMJywZCceoqk1oH01OERdSAJc/7U2AylwjhSCLDEtqwg811idIS/9fIU5GjG73IgjKMVg== - dependencies: - estraverse "^5.1.0" - -esrecurse@^4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" - integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== - dependencies: - estraverse "^5.2.0" - -estraverse@^4.1.1: - version "4.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" - integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== - -estraverse@^5.1.0, estraverse@^5.2.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" - integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== - -esutils@^2.0.2: - version "2.0.3" - resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" - integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== - -eta@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/eta/-/eta-2.2.0.tgz#eb8b5f8c4e8b6306561a455e62cd7492fe3a9b8a" - integrity sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g== - -etag@~1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" - integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== - -eventemitter3@^4.0.0: - version "4.0.7" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" - integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== - -eventemitter3@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" - integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== - -events@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" - integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== - -execa@7.2.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/execa/-/execa-7.2.0.tgz#657e75ba984f42a70f38928cedc87d6f2d4fe4e9" - integrity sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.1" - human-signals "^4.3.0" - is-stream "^3.0.0" - merge-stream "^2.0.0" - npm-run-path "^5.1.0" - onetime "^6.0.0" - signal-exit "^3.0.7" - strip-final-newline "^3.0.0" - -execa@^5.0.0: - version "5.1.1" - resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" - integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== - dependencies: - cross-spawn "^7.0.3" - get-stream "^6.0.0" - human-signals "^2.1.0" - is-stream "^2.0.0" - merge-stream "^2.0.0" - npm-run-path "^4.0.1" - onetime "^5.1.2" - signal-exit "^3.0.3" - strip-final-newline "^2.0.0" - -execall@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73" - integrity sha512-/J0Q8CvOvlAdpvhfkD/WnTQ4H1eU0exze2nFGPj/RSC7jpQ0NkKe2r28T5eMkhEEs+fzepMZNy1kVRKNlC04nQ== - dependencies: - clone-regexp "^1.0.0" - -exit@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" - integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== - -expand-brackets@^2.1.4: - version "2.1.4" - resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" - integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== - dependencies: - debug "^2.3.3" - define-property "^0.2.5" - extend-shallow "^2.0.1" - posix-character-classes "^0.1.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -exponential-backoff@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6" - integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw== - -express@^4.17.3: - version "4.19.2" - resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465" - integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q== - dependencies: - accepts "~1.3.8" - array-flatten "1.1.1" - body-parser "1.20.2" - content-disposition "0.5.4" - content-type "~1.0.4" - cookie "0.6.0" - cookie-signature "1.0.6" - debug "2.6.9" - depd "2.0.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - finalhandler "1.2.0" - fresh "0.5.2" - http-errors "2.0.0" - merge-descriptors "1.0.1" - methods "~1.1.2" - on-finished "2.4.1" - parseurl "~1.3.3" - path-to-regexp "0.1.7" - proxy-addr "~2.0.7" - qs "6.11.0" - range-parser "~1.2.1" - safe-buffer "5.2.1" - send "0.18.0" - serve-static "1.15.0" - setprototypeof "1.2.0" - statuses "2.0.1" - type-is "~1.6.18" - utils-merge "1.0.1" - vary "~1.1.2" - -extend-shallow@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" - integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== - dependencies: - is-extendable "^0.1.0" - -extend-shallow@^3.0.0, extend-shallow@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" - integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== - dependencies: - assign-symbols "^1.0.0" - is-extendable "^1.0.1" - -extend@^3.0.0, extend@^3.0.2, extend@~3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" - integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== - -external-editor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" - integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== - dependencies: - chardet "^0.7.0" - iconv-lite "^0.4.24" - tmp "^0.0.33" - -extglob@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" - integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== - dependencies: - array-unique "^0.3.2" - define-property "^1.0.0" - expand-brackets "^2.1.4" - extend-shallow "^2.0.1" - fragment-cache "^0.2.1" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -extsprintf@1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" - integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== - -extsprintf@^1.2.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" - integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== - -fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: - version "3.1.3" - resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" - integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== - -fast-diff@^1.1.2: - version "1.3.0" - resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" - integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== - -fast-glob@3.3.2, fast-glob@^3.2.11, fast-glob@^3.2.12, fast-glob@^3.2.9, fast-glob@^3.3.0: - version "3.3.2" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" - integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== - dependencies: - "@nodelib/fs.stat" "^2.0.2" - "@nodelib/fs.walk" "^1.2.3" - glob-parent "^5.1.2" - merge2 "^1.3.0" - micromatch "^4.0.4" - -fast-glob@^2.2.6: - version "2.2.7" - resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" - integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== - dependencies: - "@mrmlnc/readdir-enhanced" "^2.2.1" - "@nodelib/fs.stat" "^1.1.2" - glob-parent "^3.1.0" - is-glob "^4.0.0" - merge2 "^1.2.3" - micromatch "^3.1.10" - -fast-json-stable-stringify@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" - integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== - -fast-levenshtein@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" - integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== - -fast-safe-stringify@^2.0.7: - version "2.1.1" - resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" - integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== - -fastest-levenshtein@^1.0.16: - version "1.0.16" - resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5" - integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== - -fastq@^1.6.0: - version "1.17.1" - resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" - integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== - dependencies: - reusify "^1.0.4" - -faye-websocket@^0.11.3: - version "0.11.4" - resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da" - integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== - dependencies: - websocket-driver ">=0.5.1" - -fetch-blob@^3.1.2, fetch-blob@^3.1.4: - version "3.2.0" - resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" - integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== - dependencies: - node-domexception "^1.0.0" - web-streams-polyfill "^3.0.3" - -figures@3.2.0, figures@^3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" - integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== - dependencies: - escape-string-regexp "^1.0.5" - -file-entry-cache@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-4.0.0.tgz#633567d15364aefe0b299e1e217735e8f3a9f6e8" - integrity sha512-AVSwsnbV8vH/UVbvgEhf3saVQXORNv0ZzSkvkhQIaia5Tia+JhGTaa/ePUSVoPHQyGayQNmYfkzFi3WZV5zcpA== - dependencies: - flat-cache "^2.0.1" - -file-entry-cache@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" - integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== - dependencies: - flat-cache "^3.0.4" - -file-saver@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38" - integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA== - -filelist@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" - integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== - dependencies: - minimatch "^5.0.1" - -fill-range@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" - integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== - dependencies: - extend-shallow "^2.0.1" - is-number "^3.0.0" - repeat-string "^1.6.1" - to-regex-range "^2.1.0" - -fill-range@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.0.1.tgz#1919a6a7c75fe38b2c7c77e5198535da9acdda40" - integrity sha512-qOo9F+dMUmC2Lcb4BbVvnKJxTPjCm+RRpe4gDuGrzkL7mEVl/djYSu2OdQ2Pa302N4oqkSg9ir6jaLWJ2USVpQ== - dependencies: - to-regex-range "^5.0.1" - -finalhandler@1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" - integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "~2.3.0" - parseurl "~1.3.3" - statuses "~1.5.0" - unpipe "~1.0.0" - -finalhandler@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" - integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== - dependencies: - debug "2.6.9" - encodeurl "~1.0.2" - escape-html "~1.0.3" - on-finished "2.4.1" - parseurl "~1.3.3" - statuses "2.0.1" - unpipe "~1.0.0" - -find-cache-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-4.0.0.tgz#a30ee0448f81a3990708f6453633c733e2f6eec2" - integrity sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg== - dependencies: - common-path-prefix "^3.0.0" - pkg-dir "^7.0.0" - -find-up@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" - integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== - dependencies: - locate-path "^2.0.0" - -find-up@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" - integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== - dependencies: - locate-path "^5.0.0" - path-exists "^4.0.0" - -find-up@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" - integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== - dependencies: - locate-path "^6.0.0" - path-exists "^4.0.0" - -find-up@^6.3.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/find-up/-/find-up-6.3.0.tgz#2abab3d3280b2dc7ac10199ef324c4e002c8c790" - integrity sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw== - dependencies: - locate-path "^7.1.0" - path-exists "^5.0.0" - -flat-cache@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" - integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== - dependencies: - flatted "^2.0.0" - rimraf "2.6.3" - write "1.0.3" - -flat-cache@^3.0.4: - version "3.2.0" - resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" - integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== - dependencies: - flatted "^3.2.9" - keyv "^4.5.3" - rimraf "^3.0.2" - -flat@^5.0.2: - version "5.0.2" - resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" - integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== - -flatted@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" - integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== - -flatted@^3.2.7, flatted@^3.2.9: - version "3.3.1" - resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" - integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== - -follow-redirects@^1.0.0, follow-redirects@^1.15.6: - version "1.15.6" - resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" - integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== - -for-each@^0.3.3: - version "0.3.3" - resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" - integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== - dependencies: - is-callable "^1.1.3" - -for-in@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" - integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== - -foreground-child@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.1.1.tgz#1d173e776d75d2772fed08efe4a0de1ea1b12d0d" - integrity sha512-TMKDUnIte6bfb5nWv7V/caI169OHgvwjb7V4WkeUvbQQdjr5rWKqHFiKWb/fcOwB+CzBT+qbWjvj+DVwRskpIg== - dependencies: - cross-spawn "^7.0.0" - signal-exit "^4.0.1" - -forever-agent@~0.6.1: - version "0.6.1" - resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" - integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== - -form-data@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" - integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.8" - mime-types "^2.1.12" - -form-data@~2.3.2: - version "2.3.3" - resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" - integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== - dependencies: - asynckit "^0.4.0" - combined-stream "^1.0.6" - mime-types "^2.1.12" - -formdata-polyfill@^4.0.10: - version "4.0.10" - resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" - integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== - dependencies: - fetch-blob "^3.1.2" - -forwarded@0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" - integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== - -frac@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b" - integrity sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA== - -fraction.js@^4.3.7: - version "4.3.7" - resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" - integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== - -fragment-cache@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" - integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== - dependencies: - map-cache "^0.2.2" - -fresh@0.5.2: - version "0.5.2" - resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" - integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== - -fs-constants@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" - integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== - -fs-extra@^11.1.0: - version "11.2.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b" - integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^6.0.1" - universalify "^2.0.0" - -fs-extra@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" - integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== - dependencies: - graceful-fs "^4.2.0" - jsonfile "^4.0.0" - universalify "^0.1.0" - -fs-minipass@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" - integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== - dependencies: - minipass "^3.0.0" - -fs-minipass@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-3.0.3.tgz#79a85981c4dc120065e96f62086bf6f9dc26cc54" - integrity sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw== - dependencies: - minipass "^7.0.3" - -fs-monkey@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.6.tgz#8ead082953e88d992cf3ff844faa907b26756da2" - integrity sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg== - -fs.realpath@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" - integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== - -fsevents@~2.3.2, fsevents@~2.3.3: - version "2.3.3" - resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" - integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== - -function-bind@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" - integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== - -function.prototype.name@^1.1.6: - version "1.1.6" - resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" - integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== - dependencies: - call-bind "^1.0.2" - define-properties "^1.2.0" - es-abstract "^1.22.1" - functions-have-names "^1.2.3" - -functions-have-names@^1.2.3: - version "1.2.3" - resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" - integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== - -gensync@^1.0.0-beta.2: - version "1.0.0-beta.2" - resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" - integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== - -get-caller-file@^2.0.1, get-caller-file@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" - integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== - -get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" - integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== - dependencies: - es-errors "^1.3.0" - function-bind "^1.1.2" - has-proto "^1.0.1" - has-symbols "^1.0.3" - hasown "^2.0.0" - -get-package-type@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" - integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== - -get-stdin@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" - integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== - -get-stream@^6.0.0, get-stream@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" - integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== - -get-symbol-description@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" - integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== - dependencies: - call-bind "^1.0.5" - es-errors "^1.3.0" - get-intrinsic "^1.2.4" - -get-value@^2.0.3, get-value@^2.0.6: - version "2.0.6" - resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" - integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== - -getpass@^0.1.1: - version "0.1.7" - resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" - integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== - dependencies: - assert-plus "^1.0.0" - -glob-parent@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" - integrity sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA== - dependencies: - is-glob "^3.1.0" - path-dirname "^1.0.0" - -glob-parent@^5.1.2, glob-parent@~5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" - integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== - dependencies: - is-glob "^4.0.1" - -glob-parent@^6.0.1, glob-parent@^6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" - integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== - dependencies: - is-glob "^4.0.3" - -glob-to-regexp@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" - integrity sha512-Iozmtbqv0noj0uDDqoL0zNq0VBEfK2YFoMAZoxJe4cwphvLR+JskfF30QhXHOR4m3KrE6NLRYw+U9MRXvifyig== - -glob-to-regexp@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" - integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== - -glob@^10.2.2, glob@^10.3.10: - version "10.3.12" - resolved "https://registry.yarnpkg.com/glob/-/glob-10.3.12.tgz#3a65c363c2e9998d220338e88a5f6ac97302960b" - integrity sha512-TCNv8vJ+xz4QiqTpfOJA7HvYv+tNIRHKfUWw/q+v2jdgN4ebz+KY9tGx5J4rHP0o84mNP+ApH66HRX8us3Khqg== - dependencies: - foreground-child "^3.1.0" - jackspeak "^2.3.6" - minimatch "^9.0.1" - minipass "^7.0.4" - path-scurry "^1.10.2" - -glob@^7.0.3, glob@^7.0.6, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: - version "7.2.3" - resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" - integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== - dependencies: - fs.realpath "^1.0.0" - inflight "^1.0.4" - inherits "2" - minimatch "^3.1.1" - once "^1.3.0" - path-is-absolute "^1.0.0" - -global-modules@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" - integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== - dependencies: - global-prefix "^3.0.0" - -global-prefix@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" - integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== - dependencies: - ini "^1.3.5" - kind-of "^6.0.2" - which "^1.3.1" - -globals@^11.1.0: - version "11.12.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" - integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== - -globals@^13.19.0: - version "13.24.0" - resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" - integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== - dependencies: - type-fest "^0.20.2" - -globalthis@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236" - integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== - dependencies: - define-properties "^1.2.1" - gopd "^1.0.1" - -globby@^11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" - integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== - dependencies: - array-union "^2.1.0" - dir-glob "^3.0.1" - fast-glob "^3.2.9" - ignore "^5.2.0" - merge2 "^1.4.1" - slash "^3.0.0" - -globby@^13.1.1: - version "13.2.2" - resolved "https://registry.yarnpkg.com/globby/-/globby-13.2.2.tgz#63b90b1bf68619c2135475cbd4e71e66aa090592" - integrity sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w== - dependencies: - dir-glob "^3.0.1" - fast-glob "^3.3.0" - ignore "^5.2.4" - merge2 "^1.4.1" - slash "^4.0.0" - -globby@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" - integrity sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ== - dependencies: - array-union "^1.0.1" - arrify "^1.0.0" - glob "^7.0.3" - object-assign "^4.0.1" - pify "^2.0.0" - pinkie-promise "^2.0.0" - -globby@^9.0.0: - version "9.2.0" - resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d" - integrity sha512-ollPHROa5mcxDEkwg6bPt3QbEf4pDQSNtd6JPL1YvOvAo/7/0VAm9TccUeoTmarjPw4pfUthSCqcyfNB1I3ZSg== - dependencies: - "@types/glob" "^7.1.1" - array-union "^1.0.2" - dir-glob "^2.2.2" - fast-glob "^2.2.6" - glob "^7.1.3" - ignore "^4.0.3" - pify "^4.0.1" - slash "^2.0.0" - -globjoin@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/globjoin/-/globjoin-0.1.4.tgz#2f4494ac8919e3767c5cbb691e9f463324285d43" - integrity sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg== - -gonzales-pe@^4.2.3: - version "4.3.0" - resolved "https://registry.yarnpkg.com/gonzales-pe/-/gonzales-pe-4.3.0.tgz#fe9dec5f3c557eead09ff868c65826be54d067b3" - integrity sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ== - dependencies: - minimist "^1.2.5" - -gopd@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" - integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== - dependencies: - get-intrinsic "^1.1.3" - -graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: - version "4.2.11" - resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" - integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== - -"graceful-readlink@>= 1.0.0": - version "1.0.1" - resolved "https://registry.yarnpkg.com/graceful-readlink/-/graceful-readlink-1.0.1.tgz#4cafad76bc62f02fa039b2f94e9a3dd3a391a725" - integrity sha512-8tLu60LgxF6XpdbK8OW3FA+IfTNBn1ZHGHKF4KQbEeSkajYw5PlYJcKluntgegDPTg8UkHjpet1T82vk6TQ68w== - -graphemer@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" - integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== - -gzip-size@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" - integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== - dependencies: - duplexer "^0.1.2" - -handle-thing@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e" - integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== - -har-schema@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" - integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== - -har-validator@~5.1.3: - version "5.1.5" - resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" - integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== - dependencies: - ajv "^6.12.3" - har-schema "^2.0.0" - -hard-rejection@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" - integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== - -has-ansi@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" - integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg== - dependencies: - ansi-regex "^2.0.0" - -has-bigints@^1.0.1, has-bigints@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" - integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== - -has-flag@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" - integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== - -has-flag@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" - integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== - -has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" - integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== - dependencies: - es-define-property "^1.0.0" - -has-proto@^1.0.1, has-proto@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" - integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== - -has-symbols@^1.0.2, has-symbols@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" - integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== - -has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" - integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== - dependencies: - has-symbols "^1.0.3" - -has-value@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" - integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== - dependencies: - get-value "^2.0.3" - has-values "^0.1.4" - isobject "^2.0.0" - -has-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" - integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== - dependencies: - get-value "^2.0.6" - has-values "^1.0.0" - isobject "^3.0.0" - -has-values@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" - integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== - -has-values@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" - integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== - dependencies: - is-number "^3.0.0" - kind-of "^4.0.0" - -has@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" - integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== - -hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" - integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== - dependencies: - function-bind "^1.1.2" - -hosted-git-info@^2.1.4: - version "2.8.9" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" - integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== - -hosted-git-info@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" - integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== - dependencies: - lru-cache "^6.0.0" - -hosted-git-info@^7.0.0: - version "7.0.2" - resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.2.tgz#9b751acac097757667f30114607ef7b661ff4f17" - integrity sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w== - dependencies: - lru-cache "^10.0.1" - -hpack.js@^2.1.6: - version "2.1.6" - resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" - integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ== - dependencies: - inherits "^2.0.1" - obuf "^1.0.0" - readable-stream "^2.0.1" - wbuf "^1.1.0" - -html-entities@^2.3.2: - version "2.5.2" - resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.5.2.tgz#201a3cf95d3a15be7099521620d19dfb4f65359f" - integrity sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA== - -html-escaper@^2.0.0: - version "2.0.2" - resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" - integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== - -html-tags@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-2.0.0.tgz#10b30a386085f43cede353cc8fa7cb0deeea668b" - integrity sha512-+Il6N8cCo2wB/Vd3gqy/8TZhTD3QvcVeQLCnZiGkGCH3JP28IgGAY41giccp2W4R3jfyJPAP318FQTa1yU7K7g== - -html-tags@^3.2.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.3.1.tgz#a04026a18c882e4bba8a01a3d39cfe465d40b5ce" - integrity sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ== - -htmlparser2@^3.10.0: - version "3.10.1" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" - integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== - dependencies: - domelementtype "^1.3.1" - domhandler "^2.3.0" - domutils "^1.5.1" - entities "^1.1.1" - inherits "^2.0.1" - readable-stream "^3.1.1" - -htmlparser2@^8.0.2: - version "8.0.2" - resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-8.0.2.tgz#f002151705b383e62433b5cf466f5b716edaec21" - integrity sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA== - dependencies: - domelementtype "^2.3.0" - domhandler "^5.0.3" - domutils "^3.0.1" - entities "^4.4.0" - -http-cache-semantics@^4.1.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" - integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== - -http-deceiver@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" - integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw== - -http-errors@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" - integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== - dependencies: - depd "2.0.0" - inherits "2.0.4" - setprototypeof "1.2.0" - statuses "2.0.1" - toidentifier "1.0.1" - -http-errors@~1.6.2: - version "1.6.3" - resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" - integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== - dependencies: - depd "~1.1.2" - inherits "2.0.3" - setprototypeof "1.1.0" - statuses ">= 1.4.0 < 2" - -http-parser-js@>=0.5.1: - version "0.5.8" - resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3" - integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== - -http-proxy-agent@^7.0.0: - version "7.0.2" - resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" - integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== - dependencies: - agent-base "^7.1.0" - debug "^4.3.4" - -http-proxy-middleware@2.0.6, http-proxy-middleware@^2.0.3: - version "2.0.6" - resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" - integrity sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw== - dependencies: - "@types/http-proxy" "^1.17.8" - http-proxy "^1.18.1" - is-glob "^4.0.1" - is-plain-obj "^3.0.0" - micromatch "^4.0.2" - -http-proxy@^1.18.1: - version "1.18.1" - resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" - integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== - dependencies: - eventemitter3 "^4.0.0" - follow-redirects "^1.0.0" - requires-port "^1.0.0" - -http-signature@~1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" - integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== - dependencies: - assert-plus "^1.0.0" - jsprim "^1.2.2" - sshpk "^1.7.0" - -http2-client@^1.2.5: - version "1.3.5" - resolved "https://registry.yarnpkg.com/http2-client/-/http2-client-1.3.5.tgz#20c9dc909e3cc98284dd20af2432c524086df181" - integrity sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA== - -https-proxy-agent@7.0.4, https-proxy-agent@^7.0.1: - version "7.0.4" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz#8e97b841a029ad8ddc8731f26595bad868cb4168" - integrity sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg== - dependencies: - agent-base "^7.0.2" - debug "4" - -https-proxy-agent@^2.2.1: - version "2.2.4" - resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" - integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== - dependencies: - agent-base "^4.3.0" - debug "^3.1.0" - -human-signals@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" - integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== - -human-signals@^4.3.0: - version "4.3.1" - resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" - integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== - -husky@7.0.4: - version "7.0.4" - resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" - integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== - -iconv-lite@0.4.24, iconv-lite@^0.4.24: - version "0.4.24" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" - integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== - dependencies: - safer-buffer ">= 2.1.2 < 3" - -iconv-lite@^0.6.2, iconv-lite@^0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" - integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== - dependencies: - safer-buffer ">= 2.1.2 < 3.0.0" - -icss-utils@^5.0.0, icss-utils@^5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" - integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== - -ieee754@^1.1.13: - version "1.2.1" - resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" - integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== - -ignore-walk@^6.0.4: - version "6.0.5" - resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.5.tgz#ef8d61eab7da169078723d1f82833b36e200b0dd" - integrity sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A== - dependencies: - minimatch "^9.0.0" - -ignore@5.3.1, ignore@^5.0.4, ignore@^5.2.0, ignore@^5.2.1, ignore@^5.2.4, ignore@^5.3.1: - version "5.3.1" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" - integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== - -ignore@^4.0.3: - version "4.0.6" - resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" - integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== - -image-size@~0.5.0: - version "0.5.5" - resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c" - integrity sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ== - -immediate@~3.0.5: - version "3.0.6" - resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" - integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== - -immutable@^4.0.0: - version "4.3.5" - resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.5.tgz#f8b436e66d59f99760dc577f5c99a4fd2a5cc5a0" - integrity sha512-8eabxkth9gZatlwl5TBuJnCsoTADlL6ftEr7A4qgdaTsPyreilDSnUk57SO+jfKcNtxPa22U5KK6DSeAYhpBJw== - -import-fresh@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" - integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== - dependencies: - caller-path "^2.0.0" - resolve-from "^3.0.0" - -import-fresh@^3.2.1, import-fresh@^3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" - integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== - dependencies: - parent-module "^1.0.0" - resolve-from "^4.0.0" - -import-lazy@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-3.1.0.tgz#891279202c8a2280fdbd6674dbd8da1a1dfc67cc" - integrity sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ== - -import-lazy@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" - integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== - -imurmurhash@^0.1.4: - version "0.1.4" - resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" - integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== - -indent-string@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" - integrity sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ== - -indent-string@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" - integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== - -indexes-of@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" - integrity sha512-bup+4tap3Hympa+JBJUG7XuOsdNQ6fxt0MHyXMKuLBKn0OqsTfvUxkUrroEX1+B2VsSHvCjiIcZVxRtYa4nllA== - -inflight@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" - integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== - dependencies: - once "^1.3.0" - wrappy "1" - -inherits@2, inherits@2.0.4, inherits@^2.0.0, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" - integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== - -inherits@2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" - integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== - -ini@4.1.2: - version "4.1.2" - resolved "https://registry.yarnpkg.com/ini/-/ini-4.1.2.tgz#7f646dbd9caea595e61f88ef60bfff8b01f8130a" - integrity sha512-AMB1mvwR1pyBFY/nSevUX6y8nJWS63/SzUKD3JyQn97s4xgIdgQPT75IRouIiBAN4yLQBUShNYVW0+UG25daCw== - -ini@^1.3.4, ini@^1.3.5: - version "1.3.8" - resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" - integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== - -inquirer@9.2.15: - version "9.2.15" - resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.2.15.tgz#2135a36190a6e5c92f5d205e0af1fea36b9d3492" - integrity sha512-vI2w4zl/mDluHt9YEQ/543VTCwPKWiHzKtm9dM2V0NdFcqEexDAjUHzO1oA60HRNaVifGXXM1tRRNluLVHa0Kg== - dependencies: - "@ljharb/through" "^2.3.12" - ansi-escapes "^4.3.2" - chalk "^5.3.0" - cli-cursor "^3.1.0" - cli-width "^4.1.0" - external-editor "^3.1.0" - figures "^3.2.0" - lodash "^4.17.21" - mute-stream "1.0.0" - ora "^5.4.1" - run-async "^3.0.0" - rxjs "^7.8.1" - string-width "^4.2.3" - strip-ansi "^6.0.1" - wrap-ansi "^6.2.0" - -internal-slot@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" - integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== - dependencies: - es-errors "^1.3.0" - hasown "^2.0.0" - side-channel "^1.0.4" - -ip-address@^9.0.5: - version "9.0.5" - resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" - integrity sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g== - dependencies: - jsbn "1.1.0" - sprintf-js "^1.1.3" - -ipaddr.js@1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" - integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== - -ipaddr.js@^2.0.1: - version "2.2.0" - resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.2.0.tgz#d33fa7bac284f4de7af949638c9d68157c6b92e8" - integrity sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA== - -is-accessor-descriptor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz#3223b10628354644b86260db29b3e693f5ceedd4" - integrity sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA== - dependencies: - hasown "^2.0.0" - -is-alphabetical@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" - integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg== - -is-alphanumeric@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz#4a9cef71daf4c001c1d81d63d140cf53fd6889f4" - integrity sha512-ZmRL7++ZkcMOfDuWZuMJyIVLr2keE1o/DeNWh1EmgqGhUcV+9BIVsx0BcSBOHTZqzjs4+dISzr2KAeBEWGgXeA== - -is-alphanumerical@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf" - integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A== - dependencies: - is-alphabetical "^1.0.0" - is-decimal "^1.0.0" - -is-array-buffer@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" - integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== - dependencies: - call-bind "^1.0.2" - get-intrinsic "^1.2.1" - -is-arrayish@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" - integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== - -is-bigint@^1.0.1: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" - integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== - dependencies: - has-bigints "^1.0.1" - -is-binary-path@~2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" - integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== - dependencies: - binary-extensions "^2.0.0" - -is-boolean-object@^1.1.0: - version "1.1.2" - resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" - integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-buffer@^1.1.5: - version "1.1.6" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" - integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== - -is-buffer@^2.0.0: - version "2.0.5" - resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" - integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== - -is-builtin-module@^3.2.1: - version "3.2.1" - resolved "https://registry.npmmirror.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169" - integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A== - dependencies: - builtin-modules "^3.3.0" - -is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: - version "1.2.7" - resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" - integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== - -is-core-module@^2.13.0, is-core-module@^2.5.0, is-core-module@^2.8.1: - version "2.13.1" - resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.13.1.tgz#ad0d7532c6fea9da1ebdc82742d74525c6273384" - integrity sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw== - dependencies: - hasown "^2.0.0" - -is-data-descriptor@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz#2109164426166d32ea38c405c1e0945d9e6a4eeb" - integrity sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw== - dependencies: - hasown "^2.0.0" - -is-data-view@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.1.tgz#4b4d3a511b70f3dc26d42c03ca9ca515d847759f" - integrity sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w== - dependencies: - is-typed-array "^1.1.13" - -is-date-object@^1.0.1: - version "1.0.5" - resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" - integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== - dependencies: - has-tostringtag "^1.0.0" - -is-decimal@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" - integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== - -is-descriptor@^0.1.0: - version "0.1.7" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.7.tgz#2727eb61fd789dcd5bdf0ed4569f551d2fe3be33" - integrity sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg== - dependencies: - is-accessor-descriptor "^1.0.1" - is-data-descriptor "^1.0.1" - -is-descriptor@^1.0.0, is-descriptor@^1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.3.tgz#92d27cb3cd311c4977a4db47df457234a13cb306" - integrity sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw== - dependencies: - is-accessor-descriptor "^1.0.1" - is-data-descriptor "^1.0.1" - -is-directory@^0.3.1: - version "0.3.1" - resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" - integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== - -is-docker@^2.0.0, is-docker@^2.1.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" - integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== - -is-extendable@^0.1.0, is-extendable@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" - integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== - -is-extendable@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" - integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== - dependencies: - is-plain-object "^2.0.4" - -is-extglob@^2.1.0, is-extglob@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" - integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== - -is-fullwidth-code-point@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" - integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== - -is-fullwidth-code-point@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" - integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== - -is-fullwidth-code-point@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz#fae3167c729e7463f8461ce512b080a49268aa88" - integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== - -is-glob@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" - integrity sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw== - dependencies: - is-extglob "^2.1.0" - -is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: - version "4.0.3" - resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" - integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== - dependencies: - is-extglob "^2.1.1" - -is-hexadecimal@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" - integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== - -is-interactive@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" - integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== - -is-lambda@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" - integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== - -is-negative-zero@^2.0.3: - version "2.0.3" - resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" - integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== - -is-number-object@^1.0.4: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" - integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== - dependencies: - has-tostringtag "^1.0.0" - -is-number@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" - integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== - dependencies: - kind-of "^3.0.2" - -is-number@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" - integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== - -is-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" - integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== - -is-path-cwd@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" - integrity sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw== - -is-path-in-cwd@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz#5ac48b345ef675339bd6c7a48a912110b241cf52" - integrity sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ== - dependencies: - is-path-inside "^1.0.0" - -is-path-inside@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" - integrity sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g== - dependencies: - path-is-inside "^1.0.1" - -is-path-inside@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" - integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== - -is-plain-obj@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" - integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== - -is-plain-obj@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" - integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== - -is-plain-object@^2.0.3, is-plain-object@^2.0.4: - version "2.0.4" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" - integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== - dependencies: - isobject "^3.0.1" - -is-plain-object@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" - integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== - -is-regex@^1.1.4: - version "1.1.4" - resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" - integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== - dependencies: - call-bind "^1.0.2" - has-tostringtag "^1.0.0" - -is-regexp@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" - integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== - -is-shared-array-buffer@^1.0.2, is-shared-array-buffer@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz#1237f1cba059cdb62431d378dcc37d9680181688" - integrity sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg== - dependencies: - call-bind "^1.0.7" - -is-stream@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" - integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== - -is-stream@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" - integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== - -is-string@^1.0.5, is-string@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" - integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== - dependencies: - has-tostringtag "^1.0.0" - -is-supported-regexp-flag@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz#21ee16518d2c1dd3edd3e9a0d57e50207ac364ca" - integrity sha512-3vcJecUUrpgCqc/ca0aWeNu64UGgxcvO60K/Fkr1N6RSvfGCTU60UKN68JDmKokgba0rFFJs12EnzOQa14ubKQ== - -is-symbol@^1.0.2, is-symbol@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" - integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== - dependencies: - has-symbols "^1.0.2" - -is-typed-array@^1.1.13: - version "1.1.13" - resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" - integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== - dependencies: - which-typed-array "^1.1.14" - -is-typedarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" - integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== - -is-unicode-supported@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" - integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== - -is-weakref@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" - integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== - dependencies: - call-bind "^1.0.2" - -is-what@^3.14.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.14.1.tgz#e1222f46ddda85dead0fd1c9df131760e77755c1" - integrity sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA== - -is-whitespace-character@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz#0858edd94a95594c7c9dd0b5c174ec6e45ee4aa7" - integrity sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w== - -is-windows@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" - integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== - -is-word-character@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/is-word-character/-/is-word-character-1.0.4.tgz#ce0e73216f98599060592f62ff31354ddbeb0230" - integrity sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA== - -is-wsl@^2.1.1, is-wsl@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" - integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== - dependencies: - is-docker "^2.0.0" - -isarray@1.0.0, isarray@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" - integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== - -isarray@^2.0.5: - version "2.0.5" - resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" - integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== - -isbinaryfile@^4.0.8: - version "4.0.10" - resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" - integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== - -isexe@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" - integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== - -isexe@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.1.tgz#4a407e2bd78ddfb14bea0c27c6f7072dde775f0d" - integrity sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ== - -isobject@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" - integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== - dependencies: - isarray "1.0.0" - -isobject@^3.0.0, isobject@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" - integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== - -isstream@~0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" - integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== - -istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" - integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== - -istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" - integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== - dependencies: - "@babel/core" "^7.12.3" - "@babel/parser" "^7.14.7" - "@istanbuljs/schema" "^0.1.2" - istanbul-lib-coverage "^3.2.0" - semver "^6.3.0" - -istanbul-lib-report@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" - integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== - dependencies: - istanbul-lib-coverage "^3.0.0" - make-dir "^4.0.0" - supports-color "^7.1.0" - -istanbul-lib-source-maps@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" - integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== - dependencies: - debug "^4.1.1" - istanbul-lib-coverage "^3.0.0" - source-map "^0.6.1" - -istanbul-reports@^3.0.5: - version "3.1.7" - resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" - integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== - dependencies: - html-escaper "^2.0.0" - istanbul-lib-report "^3.0.0" - -isutf8@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/isutf8/-/isutf8-4.0.0.tgz#8b0061a96cf896faff3f086d7efa4ae93be8a872" - integrity sha512-mJtsQGFfAphKdVuRitEpc0eon4v5fuaB6v9ZJIrLnIyybh02sIIwJ2RQbLMp6UICVCfquezllupZIVcqzGzCPg== - -jackspeak@^2.3.6: - version "2.3.6" - resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-2.3.6.tgz#647ecc472238aee4b06ac0e461acc21a8c505ca8" - integrity sha512-N3yCS/NegsOBokc8GAdM8UcmfsKiSS8cipheD/nivzr700H+nsMOxJjQnvwOcRYVuFkdH0wGUvW2WbXGmrZGbQ== - dependencies: - "@isaacs/cliui" "^8.0.2" - optionalDependencies: - "@pkgjs/parseargs" "^0.11.0" - -jake@^10.8.5: - version "10.9.1" - resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.1.tgz#8dc96b7fcc41cb19aa502af506da4e1d56f5e62b" - integrity sha512-61btcOHNnLnsOdtLgA5efqQWjnSi/vow5HbI7HMdKKWqvrKR1bLK3BPlJn9gcSaP2ewuamUSMB5XEy76KUIS2w== - dependencies: - async "^3.2.3" - chalk "^4.0.2" - filelist "^1.0.4" - minimatch "^3.1.2" - -jasmine-core@4.3.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-4.3.0.tgz#aee841fbe7373c2586ed8d8d48f5cc4a88be8390" - integrity sha512-qybtBUesniQdW6n+QIHMng2vDOHscIC/dEXjW+JzO9+LoAZMb03RCUC5xFOv/btSKPm1xL42fn+RjlU4oB42Lg== - -jasmine-core@^4.1.0: - version "4.6.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-4.6.0.tgz#6884fc3d5b66bf293e422751eed6d6da217c38f5" - integrity sha512-O236+gd0ZXS8YAjFx8xKaJ94/erqUliEkJTDedyE7iHvv4ZVqi+q+8acJxu05/WJDKm512EUNn809In37nWlAQ== - -jasmine-core@~2.8.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.8.0.tgz#bcc979ae1f9fd05701e45e52e65d3a5d63f1a24e" - integrity sha512-SNkOkS+/jMZvLhuSx1fjhcNWUC/KG6oVyFUGkSBEr9n1axSNduWU8GlI7suaHXr4yxjet6KjrUZxUTE5WzzWwQ== - -jasmine-spec-reporter@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-7.0.0.tgz#94b939448e63d4e2bd01668142389f20f0a8ea49" - integrity sha512-OtC7JRasiTcjsaCBPtMO0Tl8glCejM4J4/dNuOJdA8lBjz4PmWjYQ6pzb0uzpBNAWJMDudYuj9OdXJWqM2QTJg== - dependencies: - colors "1.4.0" - -jasmine@2.8.0: - version "2.8.0" - resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.8.0.tgz#6b089c0a11576b1f16df11b80146d91d4e8b8a3e" - integrity sha512-KbdGQTf5jbZgltoHs31XGiChAPumMSY64OZMWLNYnEnMfG5uwGBhffePwuskexjT+/Jea/gU3qAU8344hNohSw== - dependencies: - exit "^0.1.2" - glob "^7.0.6" - jasmine-core "~2.8.0" - -jasminewd2@^2.1.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/jasminewd2/-/jasminewd2-2.2.0.tgz#e37cf0b17f199cce23bea71b2039395246b4ec4e" - integrity sha512-Rn0nZe4rfDhzA63Al3ZGh0E+JTmM6ESZYXJGKuqKGZObsAB9fwXPD03GjtIEvJBDOhN94T5MzbwZSqzFHSQPzg== - -jest-diff@^29.4.1: - version "29.7.0" - resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" - integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== - dependencies: - chalk "^4.0.0" - diff-sequences "^29.6.3" - jest-get-type "^29.6.3" - pretty-format "^29.7.0" - -jest-get-type@^29.6.3: - version "29.6.3" - resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" - integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== - -jest-worker@^27.4.5: - version "27.5.1" - resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" - integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== - dependencies: - "@types/node" "*" - merge-stream "^2.0.0" - supports-color "^8.0.0" - -jiti@^1.20.0: - version "1.21.0" - resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.0.tgz#7c97f8fe045724e136a397f7340475244156105d" - integrity sha512-gFqAIbuKyyso/3G2qhiO2OM6shY6EPP/R0+mkDbyspxKazh8BXDC5FiFsUjlczgdNz/vfra0da2y+aHrusLG/Q== - -jquery@3.7.1: - version "3.7.1" - resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.7.1.tgz#083ef98927c9a6a74d05a6af02806566d16274de" - integrity sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg== - -js-tokens@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" - integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== - -js-yaml@4.1.0, js-yaml@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" - integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== - dependencies: - argparse "^2.0.1" - -js-yaml@^3.10.0, js-yaml@^3.13.1: - version "3.14.1" - resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" - integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== - dependencies: - argparse "^1.0.7" - esprima "^4.0.0" - -"js-yaml@npm:@zkochan/js-yaml@0.0.7": - version "0.0.7" - resolved "https://registry.yarnpkg.com/@zkochan/js-yaml/-/js-yaml-0.0.7.tgz#4b0cb785220d7c28ce0ec4d0804deb5d821eae89" - integrity sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ== - dependencies: - argparse "^2.0.1" - -jsbn@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" - integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== - -jsbn@~0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" - integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== - -jsdoc-type-pratt-parser@~4.0.0: - version "4.0.0" - resolved "https://registry.npmmirror.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz#136f0571a99c184d84ec84662c45c29ceff71114" - integrity sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ== - -jsesc@^2.5.1: - version "2.5.2" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" - integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== - -jsesc@~0.5.0: - version "0.5.0" - resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" - integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== - -json-buffer@3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" - integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== - -json-parse-better-errors@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" - integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== - -json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" - integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== - -json-parse-even-better-errors@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz#b43d35e89c0f3be6b5fbbe9dc6c82467b30c28da" - integrity sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ== - -json-schema-traverse@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" - integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== - -json-schema-traverse@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" - integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== - -json-schema@0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" - integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== - -json-stable-stringify-without-jsonify@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" - integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== - -json-stringify-safe@~5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" - integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== - -json5@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" - integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== - dependencies: - minimist "^1.2.0" - -json5@^2.1.2, json5@^2.2.2, json5@^2.2.3: - version "2.2.3" - resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" - integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== - -jsonc-parser@3.2.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" - integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== - -jsonc-parser@3.2.1, jsonc-parser@^3.2.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" - integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== - -jsonfile@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" - integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== - optionalDependencies: - graceful-fs "^4.1.6" - -jsonfile@^6.0.1: - version "6.1.0" - resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" - integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== - dependencies: - universalify "^2.0.0" - optionalDependencies: - graceful-fs "^4.1.6" - -jsonparse@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" - integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== - -jsprim@^1.2.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" - integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== - dependencies: - assert-plus "1.0.0" - extsprintf "1.3.0" - json-schema "0.4.0" - verror "1.10.0" - -jszip@^3.1.3, jszip@^3.10.1: - version "3.10.1" - resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2" - integrity sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g== - dependencies: - lie "~3.3.0" - pako "~1.0.2" - readable-stream "~2.3.6" - setimmediate "^1.0.5" - -karma-chrome-launcher@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-3.1.1.tgz#baca9cc071b1562a1db241827257bfe5cab597ea" - integrity sha512-hsIglcq1vtboGPAN+DGCISCFOxW+ZVnIqhDQcCMqqCp+4dmJ0Qpq5QAjkbA0X2L9Mi6OBkHi2Srrbmm7pUKkzQ== - dependencies: - which "^1.2.1" - -karma-coverage@2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/karma-coverage/-/karma-coverage-2.2.1.tgz#e1cc074f93ace9dc4fb7e7aeca7135879c2e358c" - integrity sha512-yj7hbequkQP2qOSb20GuNSIyE//PgJWHwC2IydLE6XRtsnaflv+/OSGNssPjobYUlhVVagy99TQpqUt3vAUG7A== - dependencies: - istanbul-lib-coverage "^3.2.0" - istanbul-lib-instrument "^5.1.0" - istanbul-lib-report "^3.0.0" - istanbul-lib-source-maps "^4.0.1" - istanbul-reports "^3.0.5" - minimatch "^3.0.4" - -karma-jasmine-html-reporter@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-2.0.0.tgz#76c26ce40e217dc36a630fbcd7b31c3462948bf2" - integrity sha512-SB8HNNiazAHXM1vGEzf8/tSyEhkfxuDdhYdPBX2Mwgzt0OuF2gicApQ+uvXLID/gXyJQgvrM9+1/2SxZFUUDIA== - -karma-jasmine@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-5.1.0.tgz#3af4558a6502fa16856a0f346ec2193d4b884b2f" - integrity sha512-i/zQLFrfEpRyQoJF9fsCdTMOF5c2dK7C7OmsuKg2D0YSsuZSfQDiLuaiktbuio6F2wiCsZSnSnieIQ0ant/uzQ== - dependencies: - jasmine-core "^4.1.0" - -karma-source-map-support@1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz#58526ceccf7e8730e56effd97a4de8d712ac0d6b" - integrity sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A== - dependencies: - source-map-support "^0.5.5" - -karma@6.4.2: - version "6.4.2" - resolved "https://registry.yarnpkg.com/karma/-/karma-6.4.2.tgz#a983f874cee6f35990c4b2dcc3d274653714de8e" - integrity sha512-C6SU/53LB31BEgRg+omznBEMY4SjHU3ricV6zBcAe1EeILKkeScr+fZXtaI5WyDbkVowJxxAI6h73NcFPmXolQ== - dependencies: - "@colors/colors" "1.5.0" - body-parser "^1.19.0" - braces "^3.0.2" - chokidar "^3.5.1" - connect "^3.7.0" - di "^0.0.1" - dom-serialize "^2.2.1" - glob "^7.1.7" - graceful-fs "^4.2.6" - http-proxy "^1.18.1" - isbinaryfile "^4.0.8" - lodash "^4.17.21" - log4js "^6.4.1" - mime "^2.5.2" - minimatch "^3.0.4" - mkdirp "^0.5.5" - qjobs "^1.2.0" - range-parser "^1.2.1" - rimraf "^3.0.2" - socket.io "^4.4.1" - source-map "^0.6.1" - tmp "^0.2.1" - ua-parser-js "^0.7.30" - yargs "^16.1.1" - -keyv@^4.5.3: - version "4.5.4" - resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" - integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== - dependencies: - json-buffer "3.0.1" - -kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: - version "3.2.2" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" - integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== - dependencies: - is-buffer "^1.1.5" - -kind-of@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" - integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== - dependencies: - is-buffer "^1.1.5" - -kind-of@^6.0.2, kind-of@^6.0.3: - version "6.0.3" - resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" - integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== - -klona@^2.0.4: - version "2.0.6" - resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.6.tgz#85bffbf819c03b2f53270412420a4555ef882e22" - integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA== - -known-css-properties@^0.11.0: - version "0.11.0" - resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.11.0.tgz#0da784f115ea77c76b81536d7052e90ee6c86a8a" - integrity sha512-bEZlJzXo5V/ApNNa5z375mJC6Nrz4vG43UgcSCrg2OHC+yuB6j0iDSrY7RQ/+PRofFB03wNIIt9iXIVLr4wc7w== - -known-css-properties@^0.26.0: - version "0.26.0" - resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.26.0.tgz#008295115abddc045a9f4ed7e2a84dc8b3a77649" - integrity sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg== - -launch-editor@^2.6.0: - version "2.6.1" - resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.6.1.tgz#f259c9ef95cbc9425620bbbd14b468fcdb4ffe3c" - integrity sha512-eB/uXmFVpY4zezmGp5XtU21kwo7GBbKB+EQ+UZeWtGb9yAM5xt/Evk+lYH3eRNAtId+ej4u7TYPFZ07w4s7rRw== - dependencies: - picocolors "^1.0.0" - shell-quote "^1.8.1" - -less-loader@11.1.0: - version "11.1.0" - resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-11.1.0.tgz#a452384259bdf8e4f6d5fdcc39543609e6313f82" - integrity sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug== - dependencies: - klona "^2.0.4" - -less-plugin-clean-css@^1.5.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/less-plugin-clean-css/-/less-plugin-clean-css-1.5.1.tgz#cc57af7aa3398957e56decebe63cb60c23429703" - integrity sha512-Pc68AFHAEJO3aAoRvnUTW5iAiAv6y+TQsWLTTwVNqjiDno6xCvxz1AtfQl7Y0MZSpHPalFajM1EU4RB5UVINpw== - dependencies: - clean-css "^3.0.1" - -less-vars-to-js@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/less-vars-to-js/-/less-vars-to-js-1.3.0.tgz#c322cf43a3c8fc3fab655da3e51a14c1499ab571" - integrity sha512-xeiLLn/IMCGtdyCkYQnW8UuzoW2oYMCKg9boZRaGI58fLz5r90bNJDlqGzmVt/1Uqk75/DxIVtQSNCMkE5fRZQ== - dependencies: - strip-json-comments "^2.0.1" - -less@4.2.0, less@^4.1.3: - version "4.2.0" - resolved "https://registry.yarnpkg.com/less/-/less-4.2.0.tgz#cbefbfaa14a4cd388e2099b2b51f956e1465c450" - integrity sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA== - dependencies: - copy-anything "^2.0.1" - parse-node-version "^1.0.1" - tslib "^2.3.0" - optionalDependencies: - errno "^0.1.1" - graceful-fs "^4.1.2" - image-size "~0.5.0" - make-dir "^2.1.0" - mime "^1.4.1" - needle "^3.1.0" - source-map "~0.6.0" - -leven@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" - integrity sha512-nvVPLpIHUxCUoRLrFqTgSxXJ614d8AgQoWl7zPe/2VadE8+1dpU3LBhowRuBAcuwruWtOdD8oYC9jDNJjXDPyA== - -levn@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" - integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== - dependencies: - prelude-ls "^1.2.1" - type-check "~0.4.0" - -license-webpack-plugin@4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz#1e18442ed20b754b82f1adeff42249b81d11aec6" - integrity sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw== - dependencies: - webpack-sources "^3.0.0" - -lie@~3.3.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" - integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ== - dependencies: - immediate "~3.0.5" - -lilconfig@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" - integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== - -lines-and-columns@^1.1.6: - version "1.2.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" - integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== - -lines-and-columns@~2.0.3: - version "2.0.4" - resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-2.0.4.tgz#d00318855905d2660d8c0822e3f5a4715855fc42" - integrity sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A== - -lint-staged@13.3.0: - version "13.3.0" - resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-13.3.0.tgz#7965d72a8d6a6c932f85e9c13ccf3596782d28a5" - integrity sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ== - dependencies: - chalk "5.3.0" - commander "11.0.0" - debug "4.3.4" - execa "7.2.0" - lilconfig "2.1.0" - listr2 "6.6.1" - micromatch "4.0.5" - pidtree "0.6.0" - string-argv "0.3.2" - yaml "2.3.1" - -listr2@6.6.1: - version "6.6.1" - resolved "https://registry.yarnpkg.com/listr2/-/listr2-6.6.1.tgz#08b2329e7e8ba6298481464937099f4a2cd7f95d" - integrity sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg== - dependencies: - cli-truncate "^3.1.0" - colorette "^2.0.20" - eventemitter3 "^5.0.1" - log-update "^5.0.1" - rfdc "^1.3.0" - wrap-ansi "^8.1.0" - -load-json-file@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" - integrity sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw== - dependencies: - graceful-fs "^4.1.2" - parse-json "^4.0.0" - pify "^3.0.0" - strip-bom "^3.0.0" - -loader-runner@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" - integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== - -loader-utils@3.2.1: - version "3.2.1" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.1.tgz#4fb104b599daafd82ef3e1a41fb9265f87e1f576" - integrity sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw== - -loader-utils@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c" - integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== - dependencies: - big.js "^5.2.2" - emojis-list "^3.0.0" - json5 "^2.1.2" - -loadjs@^4.2.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/loadjs/-/loadjs-4.3.0.tgz#38c578cbb2e08835aa4407bd4ac6507dd1f7ed10" - integrity sha512-vNX4ZZLJBeDEOBvdr2v/F+0aN5oMuPu7JTqrMwp+DtgK+AryOlpy6Xtm2/HpNr+azEa828oQjOtWsB6iDtSfSQ== - -locate-path@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" - integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== - dependencies: - p-locate "^2.0.0" - path-exists "^3.0.0" - -locate-path@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" - integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== - dependencies: - p-locate "^4.1.0" - -locate-path@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" - integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== - dependencies: - p-locate "^5.0.0" - -locate-path@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-7.2.0.tgz#69cb1779bd90b35ab1e771e1f2f89a202c2a8a8a" - integrity sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA== - dependencies: - p-locate "^6.0.0" - -lodash.debounce@^4.0.8: - version "4.0.8" - resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" - integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== - -lodash.merge@^4.6.2: - version "4.6.2" - resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" - integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== - -lodash.truncate@^4.4.2: - version "4.4.2" - resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" - integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== - -lodash@4.17.21, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4: - version "4.17.21" - resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" - integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== - -log-symbols@^2.0.0, log-symbols@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" - integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== - dependencies: - chalk "^2.0.1" - -log-symbols@^4.0.0, log-symbols@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" - integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== - dependencies: - chalk "^4.1.0" - is-unicode-supported "^0.1.0" - -log-update@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/log-update/-/log-update-5.0.1.tgz#9e928bf70cb183c1f0c9e91d9e6b7115d597ce09" - integrity sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw== - dependencies: - ansi-escapes "^5.0.0" - cli-cursor "^4.0.0" - slice-ansi "^5.0.0" - strip-ansi "^7.0.1" - wrap-ansi "^8.0.1" - -log4js@^6.4.1: - version "6.9.1" - resolved "https://registry.yarnpkg.com/log4js/-/log4js-6.9.1.tgz#aba5a3ff4e7872ae34f8b4c533706753709e38b6" - integrity sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g== - dependencies: - date-format "^4.0.14" - debug "^4.3.4" - flatted "^3.2.7" - rfdc "^1.3.0" - streamroller "^3.1.5" - -longest-streak@^2.0.1: - version "2.0.4" - resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" - integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== - -loud-rejection@^1.0.0: - version "1.6.0" - resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" - integrity sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ== - dependencies: - currently-unhandled "^0.4.1" - signal-exit "^3.0.0" - -lru-cache@^10.0.1, lru-cache@^10.2.0: - version "10.2.2" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.2.2.tgz#48206bc114c1252940c41b25b41af5b545aca878" - integrity sha512-9hp3Vp2/hFQUiIwKo8XCeFVnrg8Pk3TYNPIR7tJADKi5YfcF7vEaK7avFHTlSy3kOKYaJQaalfEo6YuXdceBOQ== - -lru-cache@^5.1.1: - version "5.1.1" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" - integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== - dependencies: - yallist "^3.0.2" - -lru-cache@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" - integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== - dependencies: - yallist "^4.0.0" - -magic-string@0.30.8: - version "0.30.8" - resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.8.tgz#14e8624246d2bedba70d5462aa99ac9681844613" - integrity sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ== - dependencies: - "@jridgewell/sourcemap-codec" "^1.4.15" - -make-dir@3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" - integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== - dependencies: - semver "^6.0.0" - -make-dir@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" - integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== - dependencies: - pify "^4.0.1" - semver "^5.6.0" - -make-dir@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" - integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== - dependencies: - semver "^7.5.3" - -make-error@^1.1.1: - version "1.3.6" - resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" - integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== - -make-fetch-happen@^13.0.0: - version "13.0.1" - resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz#273ba2f78f45e1f3a6dca91cede87d9fa4821e36" - integrity sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA== - dependencies: - "@npmcli/agent" "^2.0.0" - cacache "^18.0.0" - http-cache-semantics "^4.1.1" - is-lambda "^1.0.1" - minipass "^7.0.2" - minipass-fetch "^3.0.0" - minipass-flush "^1.0.5" - minipass-pipeline "^1.2.4" - negotiator "^0.6.3" - proc-log "^4.2.0" - promise-retry "^2.0.1" - ssri "^10.0.0" - -map-cache@^0.2.2: - version "0.2.2" - resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" - integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== - -map-obj@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" - integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== - -map-obj@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" - integrity sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ== - -map-obj@^4.0.0: - version "4.3.0" - resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" - integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== - -map-visit@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" - integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== - dependencies: - object-visit "^1.0.0" - -markdown-escapes@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.4.tgz#c95415ef451499d7602b91095f3c8e8975f78535" - integrity sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg== - -markdown-table@^1.1.0: - version "1.1.3" - resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60" - integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q== - -mathml-tag-names@^2.0.1, mathml-tag-names@^2.1.3: - version "2.1.3" - resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz#4ddadd67308e780cf16a47685878ee27b736a0a3" - integrity sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg== - -mdast-util-compact@^1.0.0: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.4.tgz#d531bb7667b5123abf20859be086c4d06c894593" - integrity sha512-3YDMQHI5vRiS2uygEFYaqckibpJtKq5Sj2c8JioeOQBU6INpKbdWzfyLqFFnDwEcEnRFIdMsguzs5pC1Jp4Isg== - dependencies: - unist-util-visit "^1.1.0" - -media-typer@0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" - integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== - -memfs@^3.4.12, memfs@^3.4.3: - version "3.6.0" - resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.6.0.tgz#d7a2110f86f79dd950a8b6df6d57bc984aa185f6" - integrity sha512-EGowvkkgbMcIChjMTMkESFDbZeSh8xZ7kNSF0hAiAN4Jh6jgHCRS0Ga/+C8y6Au+oqpezRHCfPsmJ2+DwAgiwQ== - dependencies: - fs-monkey "^1.0.4" - -meow@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-5.0.0.tgz#dfc73d63a9afc714a5e371760eb5c88b91078aa4" - integrity sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig== - dependencies: - camelcase-keys "^4.0.0" - decamelize-keys "^1.0.0" - loud-rejection "^1.0.0" - minimist-options "^3.0.1" - normalize-package-data "^2.3.4" - read-pkg-up "^3.0.0" - redent "^2.0.0" - trim-newlines "^2.0.0" - yargs-parser "^10.0.0" - -meow@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/meow/-/meow-9.0.0.tgz#cd9510bc5cac9dee7d03c73ee1f9ad959f4ea364" - integrity sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ== - dependencies: - "@types/minimist" "^1.2.0" - camelcase-keys "^6.2.2" - decamelize "^1.2.0" - decamelize-keys "^1.1.0" - hard-rejection "^2.1.0" - minimist-options "4.1.0" - normalize-package-data "^3.0.0" - read-pkg-up "^7.0.1" - redent "^3.0.0" - trim-newlines "^3.0.0" - type-fest "^0.18.0" - yargs-parser "^20.2.3" - -merge-descriptors@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" - integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== - -merge-stream@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" - integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== - -merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" - integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== - -methods@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" - integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== - -micromatch@4.0.5, micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: - version "4.0.5" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" - integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== - dependencies: - braces "^3.0.2" - picomatch "^2.3.1" - -micromatch@^3.1.10: - version "3.1.10" - resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" - integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - braces "^2.3.1" - define-property "^2.0.2" - extend-shallow "^3.0.2" - extglob "^2.0.4" - fragment-cache "^0.2.1" - kind-of "^6.0.2" - nanomatch "^1.2.9" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.2" - -mime-db@1.52.0, "mime-db@>= 1.43.0 < 2": - version "1.52.0" - resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" - integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== - -mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: - version "2.1.35" - resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" - integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== - dependencies: - mime-db "1.52.0" - -mime@1.6.0, mime@^1.4.1: - version "1.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" - integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== - -mime@^2.5.2: - version "2.6.0" - resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" - integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== - -mimic-fn@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" - integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== - -mimic-fn@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" - integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== - -min-indent@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" - integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== - -mini-css-extract-plugin@2.8.1: - version "2.8.1" - resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-2.8.1.tgz#75245f3f30ce3a56dbdd478084df6fe475f02dc7" - integrity sha512-/1HDlyFRxWIZPI1ZpgqlZ8jMw/1Dp/dl3P0L1jtZ+zVcHqwPhGwaJwKL00WVgfnBy6PWCde9W65or7IIETImuA== - dependencies: - schema-utils "^4.0.0" - tapable "^2.2.1" - -minimalistic-assert@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" - integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== - -minimatch@9.0.3: - version "9.0.3" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" - integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: - version "3.1.2" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" - integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== - dependencies: - brace-expansion "^1.1.7" - -minimatch@^5.0.1: - version "5.1.6" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" - integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== - dependencies: - brace-expansion "^2.0.1" - -minimatch@^9.0.0, minimatch@^9.0.1, minimatch@^9.0.3, minimatch@^9.0.4: - version "9.0.4" - resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.4.tgz#8e49c731d1749cbec05050ee5145147b32496a51" - integrity sha512-KqWh+VchfxcMNRAJjj2tnsSJdNbHsVgnkBhTNrW7AjVo6OvLtxw8zfT9oLw1JSohlFzJ8jCoTgaoXvJ+kHt6fw== - dependencies: - brace-expansion "^2.0.1" - -minimist-options@4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" - integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - kind-of "^6.0.3" - -minimist-options@^3.0.1: - version "3.0.2" - resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" - integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== - dependencies: - arrify "^1.0.1" - is-plain-obj "^1.1.0" - -minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: - version "1.2.8" - resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" - integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== - -minipass-collect@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-2.0.1.tgz#1621bc77e12258a12c60d34e2276ec5c20680863" - integrity sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw== - dependencies: - minipass "^7.0.3" - -minipass-fetch@^3.0.0: - version "3.0.5" - resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-3.0.5.tgz#f0f97e40580affc4a35cc4a1349f05ae36cb1e4c" - integrity sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg== - dependencies: - minipass "^7.0.3" - minipass-sized "^1.0.3" - minizlib "^2.1.2" - optionalDependencies: - encoding "^0.1.13" - -minipass-flush@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/minipass-flush/-/minipass-flush-1.0.5.tgz#82e7135d7e89a50ffe64610a787953c4c4cbb373" - integrity sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw== - dependencies: - minipass "^3.0.0" - -minipass-json-stream@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz#7edbb92588fbfc2ff1db2fc10397acb7b6b44aa7" - integrity sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg== - dependencies: - jsonparse "^1.3.1" - minipass "^3.0.0" - -minipass-pipeline@^1.2.4: - version "1.2.4" - resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz#68472f79711c084657c067c5c6ad93cddea8214c" - integrity sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A== - dependencies: - minipass "^3.0.0" - -minipass-sized@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/minipass-sized/-/minipass-sized-1.0.3.tgz#70ee5a7c5052070afacfbc22977ea79def353b70" - integrity sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g== - dependencies: - minipass "^3.0.0" - -minipass@^3.0.0: - version "3.3.6" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" - integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== - dependencies: - yallist "^4.0.0" - -minipass@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" - integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== - -"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.2, minipass@^7.0.3, minipass@^7.0.4: - version "7.1.0" - resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.0.tgz#b545f84af94e567386770159302ca113469c80b8" - integrity sha512-oGZRv2OT1lO2UF1zUcwdTb3wqUwI0kBGTgt/T7OdSj6M6N5m3o5uPf0AIW6lVxGGoiWUR7e2AwTE+xiwK8WQig== - -minizlib@^2.1.1, minizlib@^2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" - integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== - dependencies: - minipass "^3.0.0" - yallist "^4.0.0" - -mixin-deep@^1.2.0: - version "1.3.2" - resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" - integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== - dependencies: - for-in "^1.0.2" - is-extendable "^1.0.1" - -mkdirp@^0.5.1, mkdirp@^0.5.5: - version "0.5.6" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" - integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== - dependencies: - minimist "^1.2.6" - -mkdirp@^1.0.3: - version "1.0.4" - resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" - integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== - -mockjs@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/mockjs/-/mockjs-1.1.0.tgz#e6a0c378e91906dbaff20911cc0273b3c7d75b06" - integrity sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ== - dependencies: - commander "*" - -monaco-editor@0.36.1: - version "0.36.1" - resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.36.1.tgz#aad528c815605307473a1634612946921d8079b5" - integrity sha512-/CaclMHKQ3A6rnzBzOADfwdSJ25BFoFT0Emxsc4zYVyav5SkK9iA6lEtIeuN/oRYbwPgviJT+t3l+sjFa28jYg== - -mrmime@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-2.0.0.tgz#151082a6e06e59a9a39b46b3e14d5cfe92b3abb4" - integrity sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw== - -ms@2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" - integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== - -ms@2.1.2: - version "2.1.2" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" - integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== - -ms@2.1.3, ms@^2.1.1: - version "2.1.3" - resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" - integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== - -multicast-dns@^7.2.5: - version "7.2.5" - resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced" - integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== - dependencies: - dns-packet "^5.2.2" - thunky "^1.0.2" - -mute-stream@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-1.0.0.tgz#e31bd9fe62f0aed23520aa4324ea6671531e013e" - integrity sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA== - -nanoid@3.3.4: - version "3.3.4" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" - integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== - -nanoid@^3.3.7: - version "3.3.7" - resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" - integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== - -nanomatch@^1.2.9: - version "1.2.13" - resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" - integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== - dependencies: - arr-diff "^4.0.0" - array-unique "^0.3.2" - define-property "^2.0.2" - extend-shallow "^3.0.2" - fragment-cache "^0.2.1" - is-windows "^1.0.2" - kind-of "^6.0.2" - object.pick "^1.3.0" - regex-not "^1.0.0" - snapdragon "^0.8.1" - to-regex "^3.0.1" - -natural-compare@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" - integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== - -needle@^3.1.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/needle/-/needle-3.3.1.tgz#63f75aec580c2e77e209f3f324e2cdf3d29bd049" - integrity sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q== - dependencies: - iconv-lite "^0.6.3" - sax "^1.2.4" - -negotiator@0.6.3, negotiator@^0.6.3: - version "0.6.3" - resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" - integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== - -neo-async@^2.6.2: - version "2.6.2" - resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" - integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== - -ng-alain-plugin-theme@^16.0.2: - version "16.0.2" - resolved "https://registry.yarnpkg.com/ng-alain-plugin-theme/-/ng-alain-plugin-theme-16.0.2.tgz#9cc1c9bf49289ff2a8eb3232b62fd5167b7bb639" - integrity sha512-8PsBnym4+qigDkQBbUbNjpCPpZC2vfStPORIpz6k8qV+2BkfJOxxqgGxqGey8p/f5JJ+SKFU+szFyGikdb6New== - dependencies: - jsonc-parser "^3.2.0" - less "^4.1.3" - less-plugin-clean-css "^1.5.1" - less-vars-to-js "^1.3.0" - meow "^9.0.0" - postcss "^8.4.18" - postcss-less "^6.0.0" - -ng-alain-sts@^0.0.2: - version "0.0.2" - resolved "https://registry.yarnpkg.com/ng-alain-sts/-/ng-alain-sts-0.0.2.tgz#d8294ab940f50d2bfc668a885869d7dcf85dae08" - integrity sha512-ZvNLFY75lGCuXIQZKKnKQ9bopKh3FLnSY7xUtvS1ga4m+hLiex2P7dat5bpJyEogA9l8s5Utrj+lNZjQ34Ed0Q== - dependencies: - "@types/swagger-schema-official" "^2.0.15" - extend "^3.0.2" - meow "^5.0.0" - -ng-alain@17.3.1: - version "17.3.1" - resolved "https://registry.yarnpkg.com/ng-alain/-/ng-alain-17.3.1.tgz#68ba6b7fba5156de84c47db8845d49929c732e0c" - integrity sha512-C+JthG3QYijeEcXq4iQzfpvdcueZndccbqQwzXyCvyNPPS1Y9gP/u0+EYRaU3AKRR6L1Nem0IXVlChH0xzfIRg== - dependencies: - "@angular/cdk" "^17.2.0" - ng-alain-plugin-theme "^16.0.2" - ng-alain-sts "^0.0.2" - swagger-typescript-api "^12.0.4" - -ng-zorro-antd@17.4.1: - version "17.4.1" - resolved "https://registry.yarnpkg.com/ng-zorro-antd/-/ng-zorro-antd-17.4.1.tgz#af7b35dae00c8de6dcc3eacc6cc6c338236a6ec5" - integrity sha512-KsMYFlRBFPK5FPPoaYIS/uzQ4400WFMLcA9/1LmYZcSgmeINlCvgfiitNcOVLsRyQYlpdIQyOo9z5Ue2SS9ypg== - dependencies: - "@angular/cdk" "^17.0.0" - "@ant-design/icons-angular" "^17.0.0" - date-fns "^2.16.1" - tslib "^2.3.0" - -ng-zorro-antd@^17.3.0: - version "17.4.0" - resolved "https://registry.yarnpkg.com/ng-zorro-antd/-/ng-zorro-antd-17.4.0.tgz#d52888f92f07fc8f350ed71eb768db294442efe4" - integrity sha512-jlYfhIjWVwOJnwcvk27AuBnyzmXh8NA/OwdoU4AjfHN/8OBFnnoAsHQ7Qkh/IOgmshfvbNmeEjFgIdeSkX0vDg== - dependencies: - "@angular/cdk" "^17.0.0" - "@ant-design/icons-angular" "^17.0.0" - date-fns "^2.16.1" - tslib "^2.3.0" - -ngx-color-picker@16.0.0: - version "16.0.0" - resolved "https://registry.yarnpkg.com/ngx-color-picker/-/ngx-color-picker-16.0.0.tgz#b962588644fbb67bbbcffaf3252ed340884cdfe7" - integrity sha512-Dk2FvcbebD6STZSVzkI5oFHOlTrrNC5bOHh+YVaFgaWuWrVUdVIJm68ocUvTgr/qxTEJjrfcnRnS4wi7BJ2hKg== - dependencies: - tslib "^2.3.0" - -ngx-countdown@^17.0.0, ngx-countdown@^17.1.1: - version "17.1.1" - resolved "https://registry.yarnpkg.com/ngx-countdown/-/ngx-countdown-17.1.1.tgz#46a9a0d1d83b44c1dac3373f0af25f91b87ed725" - integrity sha512-ItZokeKc3QAYxLIZ96eD2mI6IZ5oEmKzFLIx94wjrLfZER1XRxUu+agHc+CnNmWEOmPWNn4ZtA5AUSawAcWZNQ== - dependencies: - tslib "^2.3.0" - -ngx-echarts@17.2.0: - version "17.2.0" - resolved "https://registry.yarnpkg.com/ngx-echarts/-/ngx-echarts-17.2.0.tgz#df56d8822e45f4a2d487a08cee6717dcd0e883e1" - integrity sha512-i3XDE9d53zmJH4bp8RQ/271oPlhBkczO1M3VtWk8nCXdxQq9qx8UckjWEQ7oV1AbSDLGK5sRiFu5EaY5hvdWPA== - dependencies: - tslib "^2.3.0" - -ngx-slick-carousel@17.0.0: - version "17.0.0" - resolved "https://registry.yarnpkg.com/ngx-slick-carousel/-/ngx-slick-carousel-17.0.0.tgz#3123f44a05f6608d69434ce92138fc52759508e6" - integrity sha512-4GS13vjbfEUzQR6St9tq9ms69ODSxkPR0HhXJ97YhDlOlbirk9wHxnSKNneutitlKIt9G/MCrIV4u0L3wiC8rQ== - dependencies: - tslib "^2.3.0" - -nice-napi@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/nice-napi/-/nice-napi-1.0.2.tgz#dc0ab5a1eac20ce548802fc5686eaa6bc654927b" - integrity sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA== - dependencies: - node-addon-api "^3.0.0" - node-gyp-build "^4.2.2" - -node-addon-api@^3.0.0: - version "3.2.1" - resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161" - integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A== - -node-domexception@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" - integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== - -node-emoji@1.11.0: - version "1.11.0" - resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" - integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A== - dependencies: - lodash "^4.17.21" - -node-fetch-h2@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz#c6188325f9bd3d834020bf0f2d6dc17ced2241ac" - integrity sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg== - dependencies: - http2-client "^1.2.5" - -node-fetch@2.7.0, node-fetch@^2.6.1: - version "2.7.0" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" - integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== - dependencies: - whatwg-url "^5.0.0" - -node-fetch@^3.2.10: - version "3.3.2" - resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" - integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== - dependencies: - data-uri-to-buffer "^4.0.0" - fetch-blob "^3.1.4" - formdata-polyfill "^4.0.10" - -node-forge@^1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" - integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== - -node-gyp-build@^4.2.2: - version "4.8.1" - resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5" - integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw== - -node-gyp@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-10.1.0.tgz#75e6f223f2acb4026866c26a2ead6aab75a8ca7e" - integrity sha512-B4J5M1cABxPc5PwfjhbV5hoy2DP9p8lFXASnEN6hugXOa61416tnTZ29x9sSwAd0o99XNIcpvDDy1swAExsVKA== - dependencies: - env-paths "^2.2.0" - exponential-backoff "^3.1.1" - glob "^10.3.10" - graceful-fs "^4.2.6" - make-fetch-happen "^13.0.0" - nopt "^7.0.0" - proc-log "^3.0.0" - semver "^7.3.5" - tar "^6.1.2" - which "^4.0.0" - -node-machine-id@1.1.12: - version "1.1.12" - resolved "https://registry.yarnpkg.com/node-machine-id/-/node-machine-id-1.1.12.tgz#37904eee1e59b320bb9c5d6c0a59f3b469cb6267" - integrity sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ== - -node-readfiles@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/node-readfiles/-/node-readfiles-0.2.0.tgz#dbbd4af12134e2e635c245ef93ffcf6f60673a5d" - integrity sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA== - dependencies: - es6-promise "^3.2.1" - -node-releases@^2.0.14: - version "2.0.14" - resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.14.tgz#2ffb053bceb8b2be8495ece1ab6ce600c4461b0b" - integrity sha512-y10wOWt8yZpqXmOgRo77WaHEmhYQYGNA6y421PKsKYWEK8aW+cqAphborZDhqfyKrbZEN92CN1X2KbafY2s7Yw== - -nopt@^7.0.0: - version "7.2.1" - resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7" - integrity sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w== - dependencies: - abbrev "^2.0.0" - -normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" - integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== - dependencies: - hosted-git-info "^2.1.4" - resolve "^1.10.0" - semver "2 || 3 || 4 || 5" - validate-npm-package-license "^3.0.1" - -normalize-package-data@^3.0.0: - version "3.0.3" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.3.tgz#dbcc3e2da59509a0983422884cd172eefdfa525e" - integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== - dependencies: - hosted-git-info "^4.0.1" - is-core-module "^2.5.0" - semver "^7.3.4" - validate-npm-package-license "^3.0.1" - -normalize-package-data@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-6.0.1.tgz#fa69e9452210f0fabf4d79ee08d0c2870c51ed88" - integrity sha512-6rvCfeRW+OEZagAB4lMLSNuTNYZWLVtKccK79VSTf//yTY5VOCgcpH80O+bZK8Neps7pUnd5G+QlMg1yV/2iZQ== - dependencies: - hosted-git-info "^7.0.0" - is-core-module "^2.8.1" - semver "^7.3.5" - validate-npm-package-license "^3.0.4" - -normalize-path@^3.0.0, normalize-path@~3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" - integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== - -normalize-range@^0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" - integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== - -normalize-selector@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/normalize-selector/-/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03" - integrity sha512-dxvWdI8gw6eAvk9BlPffgEoGfM7AdijoCwOEJge3e3ulT2XLgmU7KvvxprOaCu05Q1uGRHmOhHe1r6emZoKyFw== - -npm-bundled@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-3.0.0.tgz#7e8e2f8bb26b794265028491be60321a25a39db7" - integrity sha512-Vq0eyEQy+elFpzsKjMss9kxqb9tG3YHg4dsyWuUENuzvSUWe1TCnW/vV9FkhvBk/brEDoDiVd+M1Btosa6ImdQ== - dependencies: - npm-normalize-package-bin "^3.0.0" - -npm-install-checks@^6.0.0: - version "6.3.0" - resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-6.3.0.tgz#046552d8920e801fa9f919cad569545d60e826fe" - integrity sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw== - dependencies: - semver "^7.1.1" - -npm-normalize-package-bin@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz#25447e32a9a7de1f51362c61a559233b89947832" - integrity sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ== - -npm-package-arg@11.0.1: - version "11.0.1" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.1.tgz#f208b0022c29240a1c532a449bdde3f0a4708ebc" - integrity sha512-M7s1BD4NxdAvBKUPqqRW957Xwcl/4Zvo8Aj+ANrzvIPzGJZElrH7Z//rSaec2ORcND6FHHLnZeY8qgTpXDMFQQ== - dependencies: - hosted-git-info "^7.0.0" - proc-log "^3.0.0" - semver "^7.3.5" - validate-npm-package-name "^5.0.0" - -npm-package-arg@^11.0.0: - version "11.0.2" - resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.2.tgz#1ef8006c4a9e9204ddde403035f7ff7d718251ca" - integrity sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw== - dependencies: - hosted-git-info "^7.0.0" - proc-log "^4.0.0" - semver "^7.3.5" - validate-npm-package-name "^5.0.0" - -npm-packlist@^8.0.0: - version "8.0.2" - resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-8.0.2.tgz#5b8d1d906d96d21c85ebbeed2cf54147477c8478" - integrity sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA== - dependencies: - ignore-walk "^6.0.4" - -npm-pick-manifest@9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.0.0.tgz#f87a4c134504a2c7931f2bb8733126e3c3bb7e8f" - integrity sha512-VfvRSs/b6n9ol4Qb+bDwNGUXutpy76x6MARw/XssevE0TnctIKcmklJZM5Z7nqs5z5aW+0S63pgCNbpkUNNXBg== - dependencies: - npm-install-checks "^6.0.0" - npm-normalize-package-bin "^3.0.0" - npm-package-arg "^11.0.0" - semver "^7.3.5" - -npm-pick-manifest@^9.0.0: - version "9.0.1" - resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.0.1.tgz#c90658bd726fe5bca9d2869f3e99359b8fcda046" - integrity sha512-Udm1f0l2nXb3wxDpKjfohwgdFUSV50UVwzEIpDXVsbDMXVIEF81a/i0UhuQbhrPMMmdiq3+YMFLFIRVLs3hxQw== - dependencies: - npm-install-checks "^6.0.0" - npm-normalize-package-bin "^3.0.0" - npm-package-arg "^11.0.0" - semver "^7.3.5" - -npm-registry-fetch@^16.0.0: - version "16.2.1" - resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-16.2.1.tgz#c367df2d770f915da069ff19fd31762f4bca3ef1" - integrity sha512-8l+7jxhim55S85fjiDGJ1rZXBWGtRLi1OSb4Z3BPLObPuIaeKRlPRiYMSHU4/81ck3t71Z+UwDDl47gcpmfQQA== - dependencies: - "@npmcli/redact" "^1.1.0" - make-fetch-happen "^13.0.0" - minipass "^7.0.2" - minipass-fetch "^3.0.0" - minipass-json-stream "^1.0.1" - minizlib "^2.1.2" - npm-package-arg "^11.0.0" - proc-log "^4.0.0" - -npm-run-path@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" - integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== - dependencies: - path-key "^3.0.0" - -npm-run-path@^5.1.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.3.0.tgz#e23353d0ebb9317f174e93417e4a4d82d0249e9f" - integrity sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ== - dependencies: - path-key "^4.0.0" - -nth-check@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" - integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== - dependencies: - boolbase "^1.0.0" - -num2fraction@^1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" - integrity sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg== - -nx@19.0.6, "nx@^17.2.8 || ^18.0.0 || ^19.0.0": - version "19.0.6" - resolved "https://registry.yarnpkg.com/nx/-/nx-19.0.6.tgz#d23abdd250ac884e5ee823293790b2cecca396b6" - integrity sha512-wz3WafhZNkQbobUtaGj4rCP0Tz8wqeYqnWVa4aZhkOJE+MrPyRNbugLEynqDmJDSsMGt5+DlX/nmyiZ6G8u4MA== - dependencies: - "@nrwl/tao" "19.0.6" - "@yarnpkg/lockfile" "^1.1.0" - "@yarnpkg/parsers" "3.0.0-rc.46" - axios "^1.6.0" - chalk "^4.1.0" - cli-cursor "3.1.0" - cli-spinners "2.6.1" - cliui "^8.0.1" - dotenv "~16.3.1" - dotenv-expand "~10.0.0" - enquirer "~2.3.6" - figures "3.2.0" - flat "^5.0.2" - fs-extra "^11.1.0" - ignore "^5.0.4" - jest-diff "^29.4.1" - js-yaml "npm:@zkochan/js-yaml@0.0.7" - jsonc-parser "3.2.0" - lines-and-columns "~2.0.3" - minimatch "9.0.3" - node-machine-id "1.1.12" - npm-run-path "^4.0.1" - open "^8.4.0" - ora "5.3.0" - semver "^7.5.3" - string-width "^4.2.3" - strong-log-transformer "^2.1.0" - tar-stream "~2.2.0" - tmp "~0.2.1" - tsconfig-paths "^4.1.2" - tslib "^2.3.0" - yargs "^17.6.2" - yargs-parser "21.1.1" - optionalDependencies: - "@nx/nx-darwin-arm64" "19.0.6" - "@nx/nx-darwin-x64" "19.0.6" - "@nx/nx-freebsd-x64" "19.0.6" - "@nx/nx-linux-arm-gnueabihf" "19.0.6" - "@nx/nx-linux-arm64-gnu" "19.0.6" - "@nx/nx-linux-arm64-musl" "19.0.6" - "@nx/nx-linux-x64-gnu" "19.0.6" - "@nx/nx-linux-x64-musl" "19.0.6" - "@nx/nx-win32-arm64-msvc" "19.0.6" - "@nx/nx-win32-x64-msvc" "19.0.6" - -oas-kit-common@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/oas-kit-common/-/oas-kit-common-1.0.8.tgz#6d8cacf6e9097967a4c7ea8bcbcbd77018e1f535" - integrity sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ== - dependencies: - fast-safe-stringify "^2.0.7" - -oas-linter@^3.2.2: - version "3.2.2" - resolved "https://registry.yarnpkg.com/oas-linter/-/oas-linter-3.2.2.tgz#ab6a33736313490659035ca6802dc4b35d48aa1e" - integrity sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ== - dependencies: - "@exodus/schemasafe" "^1.0.0-rc.2" - should "^13.2.1" - yaml "^1.10.0" - -oas-resolver@^2.5.6: - version "2.5.6" - resolved "https://registry.yarnpkg.com/oas-resolver/-/oas-resolver-2.5.6.tgz#10430569cb7daca56115c915e611ebc5515c561b" - integrity sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ== - dependencies: - node-fetch-h2 "^2.3.0" - oas-kit-common "^1.0.8" - reftools "^1.1.9" - yaml "^1.10.0" - yargs "^17.0.1" - -oas-schema-walker@^1.1.5: - version "1.1.5" - resolved "https://registry.yarnpkg.com/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz#74c3cd47b70ff8e0b19adada14455b5d3ac38a22" - integrity sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ== - -oas-validator@^5.0.8: - version "5.0.8" - resolved "https://registry.yarnpkg.com/oas-validator/-/oas-validator-5.0.8.tgz#387e90df7cafa2d3ffc83b5fb976052b87e73c28" - integrity sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw== - dependencies: - call-me-maybe "^1.0.1" - oas-kit-common "^1.0.8" - oas-linter "^3.2.2" - oas-resolver "^2.5.6" - oas-schema-walker "^1.1.5" - reftools "^1.1.9" - should "^13.2.1" - yaml "^1.10.0" - -oauth-sign@~0.9.0: - version "0.9.0" - resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" - integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== - -object-assign@^4, object-assign@^4.0.1: - version "4.1.1" - resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" - integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== - -object-copy@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" - integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== - dependencies: - copy-descriptor "^0.1.0" - define-property "^0.2.5" - kind-of "^3.0.3" - -object-inspect@^1.13.1: - version "1.13.1" - resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.1.tgz#b96c6109324ccfef6b12216a956ca4dc2ff94bc2" - integrity sha512-5qoj1RUiKOMsCCNLV1CBiPYE10sziTsnmNxkAI/rZhiD63CF7IqdFGC/XzjWjpSgLf0LxXX3bDFIh0E18f6UhQ== - -object-keys@^1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" - integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== - -object-visit@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" - integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== - dependencies: - isobject "^3.0.0" - -object.assign@^4.1.5: - version "4.1.5" - resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" - integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== - dependencies: - call-bind "^1.0.5" - define-properties "^1.2.1" - has-symbols "^1.0.3" - object-keys "^1.1.1" - -object.pick@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" - integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== - dependencies: - isobject "^3.0.1" - -object.values@^1.1.5: - version "1.2.0" - resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.2.0.tgz#65405a9d92cee68ac2d303002e0b8470a4d9ab1b" - integrity sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -obuf@^1.0.0, obuf@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" - integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== - -on-finished@2.4.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" - integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== - dependencies: - ee-first "1.1.1" - -on-finished@~2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" - integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== - dependencies: - ee-first "1.1.1" - -on-headers@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" - integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== - -once@^1.3.0, once@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" - integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== - dependencies: - wrappy "1" - -onetime@^5.1.0, onetime@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" - integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== - dependencies: - mimic-fn "^2.1.0" - -onetime@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" - integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== - dependencies: - mimic-fn "^4.0.0" - -open@8.4.2, open@^8.0.9, open@^8.4.0: - version "8.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" - integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== - dependencies: - define-lazy-prop "^2.0.0" - is-docker "^2.1.1" - is-wsl "^2.2.0" - -open@^7.3.1: - version "7.4.2" - resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" - integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== - dependencies: - is-docker "^2.0.0" - is-wsl "^2.1.1" - -optionator@^0.9.3: - version "0.9.4" - resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" - integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== - dependencies: - deep-is "^0.1.3" - fast-levenshtein "^2.0.6" - levn "^0.4.1" - prelude-ls "^1.2.1" - type-check "^0.4.0" - word-wrap "^1.2.5" - -ora@5.3.0: - version "5.3.0" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.3.0.tgz#fb832899d3a1372fe71c8b2c534bbfe74961bb6f" - integrity sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g== - dependencies: - bl "^4.0.3" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - log-symbols "^4.0.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - -ora@5.4.1, ora@^5.4.1: - version "5.4.1" - resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" - integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== - dependencies: - bl "^4.1.0" - chalk "^4.1.0" - cli-cursor "^3.1.0" - cli-spinners "^2.5.0" - is-interactive "^1.0.0" - is-unicode-supported "^0.1.0" - log-symbols "^4.1.0" - strip-ansi "^6.0.0" - wcwidth "^1.0.1" - -os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" - integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== - -p-limit@^1.1.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" - integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== - dependencies: - p-try "^1.0.0" - -p-limit@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" - integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== - dependencies: - p-try "^2.0.0" - -p-limit@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" - integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== - dependencies: - yocto-queue "^0.1.0" - -p-limit@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-4.0.0.tgz#914af6544ed32bfa54670b061cafcbd04984b644" - integrity sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ== - dependencies: - yocto-queue "^1.0.0" - -p-locate@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" - integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== - dependencies: - p-limit "^1.1.0" - -p-locate@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" - integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== - dependencies: - p-limit "^2.2.0" - -p-locate@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" - integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== - dependencies: - p-limit "^3.0.2" - -p-locate@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-6.0.0.tgz#3da9a49d4934b901089dca3302fa65dc5a05c04f" - integrity sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw== - dependencies: - p-limit "^4.0.0" - -p-map@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" - integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== - dependencies: - aggregate-error "^3.0.0" - -p-retry@^4.5.0: - version "4.6.2" - resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-4.6.2.tgz#9baae7184057edd4e17231cee04264106e092a16" - integrity sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ== - dependencies: - "@types/retry" "0.12.0" - retry "^0.13.1" - -p-try@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" - integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== - -p-try@^2.0.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" - integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== - -pacote@17.0.6: - version "17.0.6" - resolved "https://registry.yarnpkg.com/pacote/-/pacote-17.0.6.tgz#874bb59cda5d44ab784d0b6530fcb4a7d9b76a60" - integrity sha512-cJKrW21VRE8vVTRskJo78c/RCvwJCn1f4qgfxL4w77SOWrTCRcmfkYHlHtS0gqpgjv3zhXflRtgsrUCX5xwNnQ== - dependencies: - "@npmcli/git" "^5.0.0" - "@npmcli/installed-package-contents" "^2.0.1" - "@npmcli/promise-spawn" "^7.0.0" - "@npmcli/run-script" "^7.0.0" - cacache "^18.0.0" - fs-minipass "^3.0.0" - minipass "^7.0.2" - npm-package-arg "^11.0.0" - npm-packlist "^8.0.0" - npm-pick-manifest "^9.0.0" - npm-registry-fetch "^16.0.0" - proc-log "^3.0.0" - promise-retry "^2.0.1" - read-package-json "^7.0.0" - read-package-json-fast "^3.0.0" - sigstore "^2.2.0" - ssri "^10.0.0" - tar "^6.1.11" - -pako@~1.0.2: - version "1.0.11" - resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" - integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== - -parent-module@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" - integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== - dependencies: - callsites "^3.0.0" - -parse-entities@^1.0.2, parse-entities@^1.1.0: - version "1.2.2" - resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.2.2.tgz#c31bf0f653b6661354f8973559cb86dd1d5edf50" - integrity sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg== - dependencies: - character-entities "^1.0.0" - character-entities-legacy "^1.0.0" - character-reference-invalid "^1.0.0" - is-alphanumerical "^1.0.0" - is-decimal "^1.0.0" - is-hexadecimal "^1.0.0" - -parse-json@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" - integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== - dependencies: - error-ex "^1.3.1" - json-parse-better-errors "^1.0.1" - -parse-json@^5.0.0, parse-json@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" - integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== - dependencies: - "@babel/code-frame" "^7.0.0" - error-ex "^1.3.1" - json-parse-even-better-errors "^2.3.0" - lines-and-columns "^1.1.6" - -parse-node-version@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b" - integrity sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA== - -parse5-html-rewriting-stream@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-7.0.0.tgz#e376d3e762d2950ccbb6bb59823fc1d7e9fdac36" - integrity sha512-mazCyGWkmCRWDI15Zp+UiCqMp/0dgEmkZRvhlsqqKYr4SsVm/TvnSpD9fCvqCA2zoWJcfRym846ejWBBHRiYEg== - dependencies: - entities "^4.3.0" - parse5 "^7.0.0" - parse5-sax-parser "^7.0.0" - -parse5-sax-parser@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz#4c05064254f0488676aca75fb39ca069ec96dee5" - integrity sha512-5A+v2SNsq8T6/mG3ahcz8ZtQ0OUFTatxPbeidoMB7tkJSGDY3tdfl4MHovtLQHkEn5CGxijNWRQHhRQ6IRpXKg== - dependencies: - parse5 "^7.0.0" - -parse5@^7.0.0, parse5@^7.1.2: - version "7.1.2" - resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32" - integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw== - dependencies: - entities "^4.4.0" - -parseurl@~1.3.2, parseurl@~1.3.3: - version "1.3.3" - resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" - integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== - -pascalcase@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" - integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== - -path-dirname@^1.0.0: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" - integrity sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q== - -path-exists@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" - integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== - -path-exists@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" - integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== - -path-exists@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-5.0.0.tgz#a6aad9489200b21fab31e49cf09277e5116fb9e7" - integrity sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ== - -path-is-absolute@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" - integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== - -path-is-inside@^1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" - integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w== - -path-key@^3.0.0, path-key@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" - integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== - -path-key@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" - integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== - -path-parse@^1.0.7: - version "1.0.7" - resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" - integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== - -path-scurry@^1.10.2: - version "1.10.2" - resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.10.2.tgz#8f6357eb1239d5fa1da8b9f70e9c080675458ba7" - integrity sha512-7xTavNy5RQXnsjANvVvMkEjvloOinkAjv/Z6Ildz9v2RinZ4SBKTWFOVRbaF8p0vpHnyjV/UwNDdKuUv6M5qcA== - dependencies: - lru-cache "^10.2.0" - minipass "^5.0.0 || ^6.0.2 || ^7.0.0" - -path-to-regexp@0.1.7: - version "0.1.7" - resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" - integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== - -path-type@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" - integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== - dependencies: - pify "^3.0.0" - -path-type@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" - integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== - -performance-now@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" - integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== - -picocolors@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" - integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== - -picocolors@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.0.tgz#cb5bdc74ff3f51892236eaf79d68bc44564ab81c" - integrity sha512-1fygroTLlHu66zi26VoTDv8yRgm0Fccecssto+MhsZ0D/DGW2sm8E8AjW7NU5VVTRt5GxbeZ5qBuJr+HyLYkjQ== - -picomatch@4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.1.tgz#68c26c8837399e5819edce48590412ea07f17a07" - integrity sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg== - -picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" - integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== - -pidtree@0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" - integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== - -pify@^2.0.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" - integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== - -pify@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" - integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== - -pify@^4.0.0, pify@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" - integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== - -pinkie-promise@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" - integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== - dependencies: - pinkie "^2.0.0" - -pinkie@^2.0.0: - version "2.0.4" - resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" - integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== - -piscina@4.4.0: - version "4.4.0" - resolved "https://registry.yarnpkg.com/piscina/-/piscina-4.4.0.tgz#e3af8e5721d8fad08c6ccaf8a64f9f42279efbb5" - integrity sha512-+AQduEJefrOApE4bV7KRmp3N2JnnyErlVqq4P/jmko4FPz9Z877BCccl/iB3FdrWSUkvbGV9Kan/KllJgat3Vg== - optionalDependencies: - nice-napi "^1.0.2" - -pkg-dir@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-7.0.0.tgz#8f0c08d6df4476756c5ff29b3282d0bab7517d11" - integrity sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA== - dependencies: - find-up "^6.3.0" - -plyr@^3.7.8: - version "3.7.8" - resolved "https://registry.yarnpkg.com/plyr/-/plyr-3.7.8.tgz#b79bccc23687705b5d9a283b2a88c124bf7471ed" - integrity sha512-yG/EHDobwbB/uP+4Bm6eUpJ93f8xxHjjk2dYcD1Oqpe1EcuQl5tzzw9Oq+uVAzd2lkM11qZfydSiyIpiB8pgdA== - dependencies: - core-js "^3.26.1" - custom-event-polyfill "^1.0.7" - loadjs "^4.2.0" - rangetouch "^2.0.1" - url-polyfill "^1.1.12" - -posix-character-classes@^0.1.0: - version "0.1.1" - resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" - integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== - -possible-typed-array-names@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" - integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== - -postcss-html@^0.36.0: - version "0.36.0" - resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-0.36.0.tgz#b40913f94eaacc2453fd30a1327ad6ee1f88b204" - integrity sha512-HeiOxGcuwID0AFsNAL0ox3mW6MHH5cstWN1Z3Y+n6H+g12ih7LHdYxWwEA/QmrebctLjo79xz9ouK3MroHwOJw== - dependencies: - htmlparser2 "^3.10.0" - -postcss-jsx@^0.36.0: - version "0.36.4" - resolved "https://registry.yarnpkg.com/postcss-jsx/-/postcss-jsx-0.36.4.tgz#37a68f300a39e5748d547f19a747b3257240bd50" - integrity sha512-jwO/7qWUvYuWYnpOb0+4bIIgJt7003pgU3P6nETBLaOyBXuTD55ho21xnals5nBrlpTIFodyd3/jBi6UO3dHvA== - dependencies: - "@babel/core" ">=7.2.2" - -postcss-less@^3.1.0: - version "3.1.4" - resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-3.1.4.tgz#369f58642b5928ef898ffbc1a6e93c958304c5ad" - integrity sha512-7TvleQWNM2QLcHqvudt3VYjULVB49uiW6XzEUFmvwHzvsOEF5MwBrIXZDJQvJNFGjJQTzSzZnDoCJ8h/ljyGXA== - dependencies: - postcss "^7.0.14" - -postcss-less@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-6.0.0.tgz#463b34c60f53b648c237f569aeb2e09149d85af4" - integrity sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg== - -postcss-loader@8.1.1: - version "8.1.1" - resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-8.1.1.tgz#2822589e7522927344954acb55bbf26e8b195dfe" - integrity sha512-0IeqyAsG6tYiDRCYKQJLAmgQr47DX6N7sFSWvQxt6AcupX8DIdmykuk/o/tx0Lze3ErGHJEp5OSRxrelC6+NdQ== - dependencies: - cosmiconfig "^9.0.0" - jiti "^1.20.0" - semver "^7.5.4" - -postcss-markdown@^0.36.0: - version "0.36.0" - resolved "https://registry.yarnpkg.com/postcss-markdown/-/postcss-markdown-0.36.0.tgz#7f22849ae0e3db18820b7b0d5e7833f13a447560" - integrity sha512-rl7fs1r/LNSB2bWRhyZ+lM/0bwKv9fhl38/06gF6mKMo/NPnp55+K1dSTosSVjFZc0e1ppBlu+WT91ba0PMBfQ== - dependencies: - remark "^10.0.1" - unist-util-find-all-after "^1.0.2" - -postcss-media-query-parser@^0.2.3: - version "0.2.3" - resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" - integrity sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig== - -postcss-modules-extract-imports@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz#b4497cb85a9c0c4b5aabeb759bb25e8d89f15002" - integrity sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q== - -postcss-modules-local-by-default@^4.0.4: - version "4.0.5" - resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.5.tgz#f1b9bd757a8edf4d8556e8d0f4f894260e3df78f" - integrity sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw== - dependencies: - icss-utils "^5.0.0" - postcss-selector-parser "^6.0.2" - postcss-value-parser "^4.1.0" - -postcss-modules-scope@^3.1.1: - version "3.2.0" - resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz#a43d28289a169ce2c15c00c4e64c0858e43457d5" - integrity sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ== - dependencies: - postcss-selector-parser "^6.0.4" - -postcss-modules-values@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c" - integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== - dependencies: - icss-utils "^5.0.0" - -postcss-reporter@^6.0.0: - version "6.0.1" - resolved "https://registry.yarnpkg.com/postcss-reporter/-/postcss-reporter-6.0.1.tgz#7c055120060a97c8837b4e48215661aafb74245f" - integrity sha512-LpmQjfRWyabc+fRygxZjpRxfhRf9u/fdlKf4VHG4TSPbV2XNsuISzYW1KL+1aQzx53CAppa1bKG4APIB/DOXXw== - dependencies: - chalk "^2.4.1" - lodash "^4.17.11" - log-symbols "^2.2.0" - postcss "^7.0.7" - -postcss-resolve-nested-selector@^0.1.1: - version "0.1.1" - resolved "https://registry.yarnpkg.com/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz#29ccbc7c37dedfac304e9fff0bf1596b3f6a0e4e" - integrity sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw== - -postcss-safe-parser@^4.0.0: - version "4.0.2" - resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-4.0.2.tgz#a6d4e48f0f37d9f7c11b2a581bf00f8ba4870b96" - integrity sha512-Uw6ekxSWNLCPesSv/cmqf2bY/77z11O7jZGPax3ycZMFU/oi2DMH9i89AdHc1tRwFg/arFoEwX0IS3LCUxJh1g== - dependencies: - postcss "^7.0.26" - -postcss-safe-parser@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1" - integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== - -postcss-sass@^0.3.5: - version "0.3.5" - resolved "https://registry.yarnpkg.com/postcss-sass/-/postcss-sass-0.3.5.tgz#6d3e39f101a53d2efa091f953493116d32beb68c" - integrity sha512-B5z2Kob4xBxFjcufFnhQ2HqJQ2y/Zs/ic5EZbCywCkxKd756Q40cIQ/veRDwSrw1BF6+4wUgmpm0sBASqVi65A== - dependencies: - gonzales-pe "^4.2.3" - postcss "^7.0.1" - -postcss-scss@^2.0.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-2.1.1.tgz#ec3a75fa29a55e016b90bf3269026c53c1d2b383" - integrity sha512-jQmGnj0hSGLd9RscFw9LyuSVAa5Bl1/KBPqG1NQw9w8ND55nY4ZEsdlVuYJvLPpV+y0nwTV5v/4rHPzZRihQbA== - dependencies: - postcss "^7.0.6" - -postcss-selector-parser@^3.1.0: - version "3.1.2" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270" - integrity sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA== - dependencies: - dot-prop "^5.2.0" - indexes-of "^1.0.1" - uniq "^1.0.1" - -postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4: - version "6.0.16" - resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.0.16.tgz#3b88b9f5c5abd989ef4e2fc9ec8eedd34b20fb04" - integrity sha512-A0RVJrX+IUkVZbW3ClroRWurercFhieevHB38sr2+l9eUClMqome3LmEmnhlNy+5Mr2EYN6B2Kaw9wYdd+VHiw== - dependencies: - cssesc "^3.0.0" - util-deprecate "^1.0.2" - -postcss-sorting@^4.1.0: - version "4.1.0" - resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-4.1.0.tgz#a107f0bf3852977fa64e4442bc340c88d5aacdb3" - integrity sha512-r4T2oQd1giURJdHQ/RMb72dKZCuLOdWx2B/XhXN1Y1ZdnwXsKH896Qz6vD4tFy9xSjpKNYhlZoJmWyhH/7JUQw== - dependencies: - lodash "^4.17.4" - postcss "^7.0.0" - -postcss-sorting@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-7.0.1.tgz#923b5268451cf2d93ebf8835e17a6537757049a5" - integrity sha512-iLBFYz6VRYyLJEJsBJ8M3TCqNcckVzz4wFounSc5Oez35ogE/X+aoC5fFu103Ot7NyvjU3/xqIXn93Gp3kJk4g== - -postcss-syntax@^0.36.2: - version "0.36.2" - resolved "https://registry.yarnpkg.com/postcss-syntax/-/postcss-syntax-0.36.2.tgz#f08578c7d95834574e5593a82dfbfa8afae3b51c" - integrity sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w== - -postcss-value-parser@^3.3.0: - version "3.3.1" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" - integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== - -postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" - integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== - -postcss@8.4.35: - version "8.4.35" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.35.tgz#60997775689ce09011edf083a549cea44aabe2f7" - integrity sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA== - dependencies: - nanoid "^3.3.7" - picocolors "^1.0.0" - source-map-js "^1.0.2" - -postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.13, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.6, postcss@^7.0.7: - version "7.0.39" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309" - integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA== - dependencies: - picocolors "^0.2.1" - source-map "^0.6.1" - -postcss@^8.2.14, postcss@^8.3.11, postcss@^8.4.18, postcss@^8.4.19, postcss@^8.4.23, postcss@^8.4.33, postcss@^8.4.35: - version "8.4.38" - resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.38.tgz#b387d533baf2054288e337066d81c6bee9db9e0e" - integrity sha512-Wglpdk03BSfXkHoQa3b/oulrotAkwrlLDRSOb9D0bN86FdRyE9lppSp33aHNPgBa0JKCoB+drFLZkQoRRYae5A== - dependencies: - nanoid "^3.3.7" - picocolors "^1.0.0" - source-map-js "^1.2.0" - -prelude-ls@^1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" - integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== - -prettier-linter-helpers@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" - integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== - dependencies: - fast-diff "^1.1.2" - -prettier@2.7.1: - version "2.7.1" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" - integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== - -prettier@2.8.8: - version "2.8.8" - resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" - integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== - -pretty-format@^29.7.0: - version "29.7.0" - resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" - integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== - dependencies: - "@jest/schemas" "^29.6.3" - ansi-styles "^5.0.0" - react-is "^18.0.0" - -proc-log@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8" - integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A== - -proc-log@^4.0.0, proc-log@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-4.2.0.tgz#b6f461e4026e75fdfe228b265e9f7a00779d7034" - integrity sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA== - -process-nextick-args@~2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" - integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== - -promise-inflight@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" - integrity sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g== - -promise-retry@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22" - integrity sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g== - dependencies: - err-code "^2.0.2" - retry "^0.12.0" - -protractor@7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/protractor/-/protractor-7.0.0.tgz#c3e263608bd72e2c2dc802b11a772711a4792d03" - integrity sha512-UqkFjivi4GcvUQYzqGYNe0mLzfn5jiLmO8w9nMhQoJRLhy2grJonpga2IWhI6yJO30LibWXJJtA4MOIZD2GgZw== - dependencies: - "@types/q" "^0.0.32" - "@types/selenium-webdriver" "^3.0.0" - blocking-proxy "^1.0.0" - browserstack "^1.5.1" - chalk "^1.1.3" - glob "^7.0.3" - jasmine "2.8.0" - jasminewd2 "^2.1.0" - q "1.4.1" - saucelabs "^1.5.0" - selenium-webdriver "3.6.0" - source-map-support "~0.4.0" - webdriver-js-extender "2.1.0" - webdriver-manager "^12.1.7" - yargs "^15.3.1" - -proxy-addr@~2.0.7: - version "2.0.7" - resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" - integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== - dependencies: - forwarded "0.2.0" - ipaddr.js "1.9.1" - -proxy-from-env@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" - integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== - -prr@~1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" - integrity sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw== - -psl@^1.1.28: - version "1.9.0" - resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" - integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== - -punycode@^2.1.0, punycode@^2.1.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" - integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== - -q@1.4.1: - version "1.4.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" - integrity sha512-/CdEdaw49VZVmyIDGUQKDDT53c7qBkO6g5CefWz91Ae+l4+cRtcDYwMTXh6me4O8TMldeGHG3N2Bl84V78Ywbg== - -q@^1.4.1: - version "1.5.1" - resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" - integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== - -qjobs@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/qjobs/-/qjobs-1.2.0.tgz#c45e9c61800bd087ef88d7e256423bdd49e5d071" - integrity sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg== - -qs@6.11.0: - version "6.11.0" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" - integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== - dependencies: - side-channel "^1.0.4" - -qs@~6.5.2: - version "6.5.3" - resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" - integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== - -queue-microtask@^1.2.2: - version "1.2.3" - resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" - integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== - -quick-lru@^1.0.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" - integrity sha512-tRS7sTgyxMXtLum8L65daJnHUhfDUgboRdcWW2bR9vBfrj2+O5HSMbQOJfJJjIVSPFqbBCF37FpwWXGitDc5tA== - -quick-lru@^4.0.1: - version "4.0.1" - resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" - integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== - -randombytes@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" - integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== - dependencies: - safe-buffer "^5.1.0" - -range-parser@^1.2.1, range-parser@~1.2.1: - version "1.2.1" - resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" - integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== - -rangetouch@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/rangetouch/-/rangetouch-2.0.1.tgz#c01105110fd3afca2adcb1a580692837d883cb70" - integrity sha512-sln+pNSc8NGaHoLzwNBssFSf/rSYkqeBXzX1AtJlkJiUaVSJSbRAWJk+4omsXkN+EJalzkZhWQ3th1m0FpR5xA== - -raw-body@2.5.2: - version "2.5.2" - resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" - integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== - dependencies: - bytes "3.1.2" - http-errors "2.0.0" - iconv-lite "0.4.24" - unpipe "1.0.0" - -react-is@^18.0.0: - version "18.3.1" - resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" - integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== - -read-package-json-fast@^3.0.0: - version "3.0.2" - resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz#394908a9725dc7a5f14e70c8e7556dff1d2b1049" - integrity sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw== - dependencies: - json-parse-even-better-errors "^3.0.0" - npm-normalize-package-bin "^3.0.0" - -read-package-json@^7.0.0: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-7.0.1.tgz#8b5f6aab97a796cfb436516ade24c011d10964a9" - integrity sha512-8PcDiZ8DXUjLf687Ol4BR8Bpm2umR7vhoZOzNRt+uxD9GpBh/K+CAAALVIiYFknmvlmyg7hM7BSNUXPaCCqd0Q== - dependencies: - glob "^10.2.2" - json-parse-even-better-errors "^3.0.0" - normalize-package-data "^6.0.0" - npm-normalize-package-bin "^3.0.0" - -read-pkg-up@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" - integrity sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw== - dependencies: - find-up "^2.0.0" - read-pkg "^3.0.0" - -read-pkg-up@^7.0.1: - version "7.0.1" - resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" - integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== - dependencies: - find-up "^4.1.0" - read-pkg "^5.2.0" - type-fest "^0.8.1" - -read-pkg@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" - integrity sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA== - dependencies: - load-json-file "^4.0.0" - normalize-package-data "^2.3.2" - path-type "^3.0.0" - -read-pkg@^5.2.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" - integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== - dependencies: - "@types/normalize-package-data" "^2.4.0" - normalize-package-data "^2.5.0" - parse-json "^5.0.0" - type-fest "^0.6.0" - -readable-stream@^2.0.1, readable-stream@~2.3.6: - version "2.3.8" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" - integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== - dependencies: - core-util-is "~1.0.0" - inherits "~2.0.3" - isarray "~1.0.0" - process-nextick-args "~2.0.0" - safe-buffer "~5.1.1" - string_decoder "~1.1.1" - util-deprecate "~1.0.1" - -readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0: - version "3.6.2" - resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" - integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== - dependencies: - inherits "^2.0.3" - string_decoder "^1.1.1" - util-deprecate "^1.0.1" - -readdirp@~3.6.0: - version "3.6.0" - resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" - integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== - dependencies: - picomatch "^2.2.1" - -redent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" - integrity sha512-XNwrTx77JQCEMXTeb8movBKuK75MgH0RZkujNuDKCezemx/voapl9i2gCSi8WWm8+ox5ycJi1gxF22fR7c0Ciw== - dependencies: - indent-string "^3.0.0" - strip-indent "^2.0.0" - -redent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" - integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== - dependencies: - indent-string "^4.0.0" - strip-indent "^3.0.0" - -reflect-metadata@^0.2.0: - version "0.2.2" - resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.2.2.tgz#400c845b6cba87a21f2c65c4aeb158f4fa4d9c5b" - integrity sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q== - -reftools@^1.1.9: - version "1.1.9" - resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" - integrity sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w== - -regenerate-unicode-properties@^10.1.0: - version "10.1.1" - resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz#6b0e05489d9076b04c436f318d9b067bba459480" - integrity sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q== - dependencies: - regenerate "^1.4.2" - -regenerate@^1.4.2: - version "1.4.2" - resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" - integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== - -regenerator-runtime@^0.14.0: - version "0.14.1" - resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" - integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== - -regenerator-transform@^0.15.2: - version "0.15.2" - resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" - integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== - dependencies: - "@babel/runtime" "^7.8.4" - -regex-not@^1.0.0, regex-not@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" - integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== - dependencies: - extend-shallow "^3.0.2" - safe-regex "^1.1.0" - -regex-parser@^2.2.11: - version "2.3.0" - resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.3.0.tgz#4bb61461b1a19b8b913f3960364bb57887f920ee" - integrity sha512-TVILVSz2jY5D47F4mA4MppkBrafEaiUWJO/TcZHEIuI13AqoZMkK1WMA4Om1YkYbTx+9Ki1/tSUXbceyr9saRg== - -regexp.prototype.flags@^1.5.2: - version "1.5.2" - resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" - integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== - dependencies: - call-bind "^1.0.6" - define-properties "^1.2.1" - es-errors "^1.3.0" - set-function-name "^2.0.1" - -regexpu-core@^5.3.1: - version "5.3.2" - resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" - integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ== - dependencies: - "@babel/regjsgen" "^0.8.0" - regenerate "^1.4.2" - regenerate-unicode-properties "^10.1.0" - regjsparser "^0.9.1" - unicode-match-property-ecmascript "^2.0.0" - unicode-match-property-value-ecmascript "^2.1.0" - -regjsparser@^0.9.1: - version "0.9.1" - resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" - integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== - dependencies: - jsesc "~0.5.0" - -remark-parse@^6.0.0: - version "6.0.3" - resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-6.0.3.tgz#c99131052809da482108413f87b0ee7f52180a3a" - integrity sha512-QbDXWN4HfKTUC0hHa4teU463KclLAnwpn/FBn87j9cKYJWWawbiLgMfP2Q4XwhxxuuuOxHlw+pSN0OKuJwyVvg== - dependencies: - collapse-white-space "^1.0.2" - is-alphabetical "^1.0.0" - is-decimal "^1.0.0" - is-whitespace-character "^1.0.0" - is-word-character "^1.0.0" - markdown-escapes "^1.0.0" - parse-entities "^1.1.0" - repeat-string "^1.5.4" - state-toggle "^1.0.0" - trim "0.0.1" - trim-trailing-lines "^1.0.0" - unherit "^1.0.4" - unist-util-remove-position "^1.0.0" - vfile-location "^2.0.0" - xtend "^4.0.1" - -remark-stringify@^6.0.0: - version "6.0.4" - resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-6.0.4.tgz#16ac229d4d1593249018663c7bddf28aafc4e088" - integrity sha512-eRWGdEPMVudijE/psbIDNcnJLRVx3xhfuEsTDGgH4GsFF91dVhw5nhmnBppafJ7+NWINW6C7ZwWbi30ImJzqWg== - dependencies: - ccount "^1.0.0" - is-alphanumeric "^1.0.0" - is-decimal "^1.0.0" - is-whitespace-character "^1.0.0" - longest-streak "^2.0.1" - markdown-escapes "^1.0.0" - markdown-table "^1.1.0" - mdast-util-compact "^1.0.0" - parse-entities "^1.0.2" - repeat-string "^1.5.4" - state-toggle "^1.0.0" - stringify-entities "^1.0.1" - unherit "^1.0.4" - xtend "^4.0.1" - -remark@^10.0.1: - version "10.0.1" - resolved "https://registry.yarnpkg.com/remark/-/remark-10.0.1.tgz#3058076dc41781bf505d8978c291485fe47667df" - integrity sha512-E6lMuoLIy2TyiokHprMjcWNJ5UxfGQjaMSMhV+f4idM625UjjK4j798+gPs5mfjzDE6vL0oFKVeZM6gZVSVrzQ== - dependencies: - remark-parse "^6.0.0" - remark-stringify "^6.0.0" - unified "^7.0.0" - -repeat-element@^1.1.2: - version "1.1.4" - resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" - integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== - -repeat-string@^1.5.4, repeat-string@^1.6.1: - version "1.6.1" - resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" - integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== - -replace-ext@1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" - integrity sha512-vuNYXC7gG7IeVNBC1xUllqCcZKRbJoSPOBhnTEcAIiKCsbuef6zO3F0Rve3isPMMoNoQRWjQwbAgAjHUHniyEA== - -request@^2.87.0: - version "2.88.2" - resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" - integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== - dependencies: - aws-sign2 "~0.7.0" - aws4 "^1.8.0" - caseless "~0.12.0" - combined-stream "~1.0.6" - extend "~3.0.2" - forever-agent "~0.6.1" - form-data "~2.3.2" - har-validator "~5.1.3" - http-signature "~1.2.0" - is-typedarray "~1.0.0" - isstream "~0.1.2" - json-stringify-safe "~5.0.1" - mime-types "~2.1.19" - oauth-sign "~0.9.0" - performance-now "^2.1.0" - qs "~6.5.2" - safe-buffer "^5.1.2" - tough-cookie "~2.5.0" - tunnel-agent "^0.6.0" - uuid "^3.3.2" - -require-directory@^2.1.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" - integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== - -require-from-string@^2.0.2: - version "2.0.2" - resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" - integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== - -require-main-filename@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" - integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== - -requires-port@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" - integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== - -resolve-from@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" - integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== - -resolve-from@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" - integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== - -resolve-from@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" - integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== - -resolve-url-loader@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz#ee3142fb1f1e0d9db9524d539cfa166e9314f795" - integrity sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg== - dependencies: - adjust-sourcemap-loader "^4.0.0" - convert-source-map "^1.7.0" - loader-utils "^2.0.0" - postcss "^8.2.14" - source-map "0.6.1" - -resolve-url@^0.2.1: - version "0.2.1" - resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" - integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== - -resolve@1.22.8, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.22.0, resolve@^1.22.4: - version "1.22.8" - resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" - integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== - dependencies: - is-core-module "^2.13.0" - path-parse "^1.0.7" - supports-preserve-symlinks-flag "^1.0.0" - -restore-cursor@^3.1.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" - integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - -restore-cursor@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-4.0.0.tgz#519560a4318975096def6e609d44100edaa4ccb9" - integrity sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg== - dependencies: - onetime "^5.1.0" - signal-exit "^3.0.2" - -ret@~0.1.10: - version "0.1.15" - resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" - integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== - -retry@^0.12.0: - version "0.12.0" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" - integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== - -retry@^0.13.1: - version "0.13.1" - resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" - integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== - -reusify@^1.0.4: - version "1.0.4" - resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" - integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== - -rfdc@^1.3.0: - version "1.3.1" - resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.3.1.tgz#2b6d4df52dffe8bb346992a10ea9451f24373a8f" - integrity sha512-r5a3l5HzYlIC68TpmYKlxWjmOP6wiPJ1vWv2HeLhNsRZMrCkxeqxiHlQ21oXmQ4F3SiryXBHhAD7JZqvOJjFmg== - -rimraf@2.6.3, rimraf@~2.6.2: - version "2.6.3" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" - integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== - dependencies: - glob "^7.1.3" - -rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.5.4: - version "2.7.1" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" - integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== - dependencies: - glob "^7.1.3" - -rimraf@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" - integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== - dependencies: - glob "^7.1.3" - -rollup@^4.2.0: - version "4.17.2" - resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.17.2.tgz#26d1785d0144122277fdb20ab3a24729ae68301f" - integrity sha512-/9ClTJPByC0U4zNLowV1tMBe8yMEAxewtR3cUNX5BoEpGH3dQEWpJLr6CLp0fPdYRF/fzVOgvDb1zXuakwF5kQ== - dependencies: - "@types/estree" "1.0.5" - optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.17.2" - "@rollup/rollup-android-arm64" "4.17.2" - "@rollup/rollup-darwin-arm64" "4.17.2" - "@rollup/rollup-darwin-x64" "4.17.2" - "@rollup/rollup-linux-arm-gnueabihf" "4.17.2" - "@rollup/rollup-linux-arm-musleabihf" "4.17.2" - "@rollup/rollup-linux-arm64-gnu" "4.17.2" - "@rollup/rollup-linux-arm64-musl" "4.17.2" - "@rollup/rollup-linux-powerpc64le-gnu" "4.17.2" - "@rollup/rollup-linux-riscv64-gnu" "4.17.2" - "@rollup/rollup-linux-s390x-gnu" "4.17.2" - "@rollup/rollup-linux-x64-gnu" "4.17.2" - "@rollup/rollup-linux-x64-musl" "4.17.2" - "@rollup/rollup-win32-arm64-msvc" "4.17.2" - "@rollup/rollup-win32-ia32-msvc" "4.17.2" - "@rollup/rollup-win32-x64-msvc" "4.17.2" - fsevents "~2.3.2" - -run-async@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/run-async/-/run-async-3.0.0.tgz#42a432f6d76c689522058984384df28be379daad" - integrity sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q== - -run-parallel@^1.1.9: - version "1.2.0" - resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" - integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== - dependencies: - queue-microtask "^1.2.2" - -rxjs@7.8.1, rxjs@^7.8.1: - version "7.8.1" - resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" - integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== - dependencies: - tslib "^2.1.0" - -safe-array-concat@^1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb" - integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q== - dependencies: - call-bind "^1.0.7" - get-intrinsic "^1.2.4" - has-symbols "^1.0.3" - isarray "^2.0.5" - -safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: - version "5.1.2" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" - integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== - -safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: - version "5.2.1" - resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" - integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== - -safe-regex-test@^1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" - integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== - dependencies: - call-bind "^1.0.6" - es-errors "^1.3.0" - is-regex "^1.1.4" - -safe-regex@^1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" - integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== - dependencies: - ret "~0.1.10" - -"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" - integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== - -sass-loader@14.1.1: - version "14.1.1" - resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-14.1.1.tgz#2c9d2277c5b1c5fe789cd0570c046d8ad23cb7ca" - integrity sha512-QX8AasDg75monlybel38BZ49JP5Z+uSKfKwF2rO7S74BywaRmGQMUBw9dtkS+ekyM/QnP+NOrRYq8ABMZ9G8jw== - dependencies: - neo-async "^2.6.2" - -sass@1.71.1: - version "1.71.1" - resolved "https://registry.yarnpkg.com/sass/-/sass-1.71.1.tgz#dfb09c63ce63f89353777bbd4a88c0a38386ee54" - integrity sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg== - dependencies: - chokidar ">=3.0.0 <4.0.0" - immutable "^4.0.0" - source-map-js ">=0.6.2 <2.0.0" - -saucelabs@^1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/saucelabs/-/saucelabs-1.5.0.tgz#9405a73c360d449b232839919a86c396d379fd9d" - integrity sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ== - dependencies: - https-proxy-agent "^2.2.1" - -sax@>=0.6.0, sax@^1.2.4: - version "1.3.0" - resolved "https://registry.yarnpkg.com/sax/-/sax-1.3.0.tgz#a5dbe77db3be05c9d1ee7785dbd3ea9de51593d0" - integrity sha512-0s+oAmw9zLl1V1cS9BtZN7JAd0cW5e0QH4W3LWEK6a4LaLEA2OTpGYWDY+6XasBLtz6wkm3u1xRw95mRuJ59WA== - -schema-utils@^3.1.1, schema-utils@^3.2.0: - version "3.3.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" - integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== - dependencies: - "@types/json-schema" "^7.0.8" - ajv "^6.12.5" - ajv-keywords "^3.5.2" - -schema-utils@^4.0.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b" - integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw== - dependencies: - "@types/json-schema" "^7.0.9" - ajv "^8.9.0" - ajv-formats "^2.1.1" - ajv-keywords "^5.1.0" - -screenfull@6.0.2: - version "6.0.2" - resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-6.0.2.tgz#3dbe4b8c4f8f49fb8e33caa8f69d0bca730ab238" - integrity sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw== - -select-hose@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" - integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg== - -selenium-webdriver@3.6.0, selenium-webdriver@^3.0.1: - version "3.6.0" - resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz#2ba87a1662c020b8988c981ae62cb2a01298eafc" - integrity sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q== - dependencies: - jszip "^3.1.3" - rimraf "^2.5.4" - tmp "0.0.30" - xml2js "^0.4.17" - -selfsigned@^2.1.1: - version "2.4.1" - resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.4.1.tgz#560d90565442a3ed35b674034cec4e95dceb4ae0" - integrity sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q== - dependencies: - "@types/node-forge" "^1.3.0" - node-forge "^1" - -"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.6.0: - version "5.7.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" - integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== - -semver@7.6.0, semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5, semver@^7.3.7, semver@^7.5.3, semver@^7.5.4: - version "7.6.0" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" - integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== - dependencies: - lru-cache "^6.0.0" - -semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: - version "6.3.1" - resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" - integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== - -semver@^7.6.0, semver@^7.6.1: - version "7.6.2" - resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.2.tgz#1e3b34759f896e8f14d6134732ce798aeb0c6e13" - integrity sha512-FNAIBWCx9qcRhoHcgcJ0gvU7SN1lYU2ZXuSfl04bSC5OpvDHFyJCjdNHomPXxjQlCBU67YW64PzY7/VIEH7F2w== - -send@0.18.0: - version "0.18.0" - resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" - integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== - dependencies: - debug "2.6.9" - depd "2.0.0" - destroy "1.2.0" - encodeurl "~1.0.2" - escape-html "~1.0.3" - etag "~1.8.1" - fresh "0.5.2" - http-errors "2.0.0" - mime "1.6.0" - ms "2.1.3" - on-finished "2.4.1" - range-parser "~1.2.1" - statuses "2.0.1" - -serialize-javascript@^6.0.0, serialize-javascript@^6.0.1: - version "6.0.2" - resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" - integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== - dependencies: - randombytes "^2.1.0" - -serve-index@^1.9.1: - version "1.9.1" - resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" - integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw== - dependencies: - accepts "~1.3.4" - batch "0.6.1" - debug "2.6.9" - escape-html "~1.0.3" - http-errors "~1.6.2" - mime-types "~2.1.17" - parseurl "~1.3.2" - -serve-static@1.15.0: - version "1.15.0" - resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" - integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== - dependencies: - encodeurl "~1.0.2" - escape-html "~1.0.3" - parseurl "~1.3.3" - send "0.18.0" - -set-blocking@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" - integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== - -set-function-length@^1.2.1: - version "1.2.2" - resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" - integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - function-bind "^1.1.2" - get-intrinsic "^1.2.4" - gopd "^1.0.1" - has-property-descriptors "^1.0.2" - -set-function-name@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" - integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== - dependencies: - define-data-property "^1.1.4" - es-errors "^1.3.0" - functions-have-names "^1.2.3" - has-property-descriptors "^1.0.2" - -set-value@^2.0.0, set-value@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" - integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== - dependencies: - extend-shallow "^2.0.1" - is-extendable "^0.1.1" - is-plain-object "^2.0.3" - split-string "^3.0.1" - -setimmediate@^1.0.5: - version "1.0.5" - resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" - integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== - -setprototypeof@1.1.0: - version "1.1.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" - integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== - -setprototypeof@1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" - integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== - -shallow-clone@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" - integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== - dependencies: - kind-of "^6.0.2" - -shebang-command@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" - integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== - dependencies: - shebang-regex "^3.0.0" - -shebang-regex@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" - integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== - -shell-quote@^1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" - integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== - -should-equal@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/should-equal/-/should-equal-2.0.0.tgz#6072cf83047360867e68e98b09d71143d04ee0c3" - integrity sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA== - dependencies: - should-type "^1.4.0" - -should-format@^3.0.3: - version "3.0.3" - resolved "https://registry.yarnpkg.com/should-format/-/should-format-3.0.3.tgz#9bfc8f74fa39205c53d38c34d717303e277124f1" - integrity sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q== - dependencies: - should-type "^1.3.0" - should-type-adaptors "^1.0.1" - -should-type-adaptors@^1.0.1: - version "1.1.0" - resolved "https://registry.yarnpkg.com/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz#401e7f33b5533033944d5cd8bf2b65027792e27a" - integrity sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA== - dependencies: - should-type "^1.3.0" - should-util "^1.0.0" - -should-type@^1.3.0, should-type@^1.4.0: - version "1.4.0" - resolved "https://registry.yarnpkg.com/should-type/-/should-type-1.4.0.tgz#0756d8ce846dfd09843a6947719dfa0d4cff5cf3" - integrity sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ== - -should-util@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.1.tgz#fb0d71338f532a3a149213639e2d32cbea8bcb28" - integrity sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g== - -should@^13.2.1: - version "13.2.3" - resolved "https://registry.yarnpkg.com/should/-/should-13.2.3.tgz#96d8e5acf3e97b49d89b51feaa5ae8d07ef58f10" - integrity sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ== - dependencies: - should-equal "^2.0.0" - should-format "^3.0.3" - should-type "^1.4.0" - should-type-adaptors "^1.0.1" - should-util "^1.0.0" - -side-channel@^1.0.4: - version "1.0.6" - resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" - integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - get-intrinsic "^1.2.4" - object-inspect "^1.13.1" - -signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: - version "3.0.7" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" - integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== - -signal-exit@^4.0.1: - version "4.1.0" - resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" - integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== - -sigstore@^2.2.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/sigstore/-/sigstore-2.3.0.tgz#c56b32818d4dc989f6ea3c0897f4d9bff5d14bed" - integrity sha512-q+o8L2ebiWD1AxD17eglf1pFrl9jtW7FHa0ygqY6EKvibK8JHyq9Z26v9MZXeDiw+RbfOJ9j2v70M10Hd6E06A== - dependencies: - "@sigstore/bundle" "^2.3.1" - "@sigstore/core" "^1.0.0" - "@sigstore/protobuf-specs" "^0.3.1" - "@sigstore/sign" "^2.3.0" - "@sigstore/tuf" "^2.3.1" - "@sigstore/verify" "^1.2.0" - -slash@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" - integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== - -slash@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" - integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== - -slash@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" - integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== - -slice-ansi@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" - integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== - dependencies: - ansi-styles "^3.2.0" - astral-regex "^1.0.0" - is-fullwidth-code-point "^2.0.0" - -slice-ansi@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" - integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== - dependencies: - ansi-styles "^4.0.0" - astral-regex "^2.0.0" - is-fullwidth-code-point "^3.0.0" - -slice-ansi@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-5.0.0.tgz#b73063c57aa96f9cd881654b15294d95d285c42a" - integrity sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ== - dependencies: - ansi-styles "^6.0.0" - is-fullwidth-code-point "^4.0.0" - -slick-carousel@1.8.1: - version "1.8.1" - resolved "https://registry.yarnpkg.com/slick-carousel/-/slick-carousel-1.8.1.tgz#a4bfb29014887bb66ce528b90bd0cda262cc8f8d" - integrity sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA== - -smart-buffer@^4.2.0: - version "4.2.0" - resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" - integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== - -snapdragon-node@^2.0.1: - version "2.1.1" - resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" - integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== - dependencies: - define-property "^1.0.0" - isobject "^3.0.0" - snapdragon-util "^3.0.1" - -snapdragon-util@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" - integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== - dependencies: - kind-of "^3.2.0" - -snapdragon@^0.8.1: - version "0.8.2" - resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" - integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== - dependencies: - base "^0.11.1" - debug "^2.2.0" - define-property "^0.2.5" - extend-shallow "^2.0.1" - map-cache "^0.2.2" - source-map "^0.5.6" - source-map-resolve "^0.5.0" - use "^3.1.0" - -socket.io-adapter@~2.5.2: - version "2.5.4" - resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-2.5.4.tgz#4fdb1358667f6d68f25343353bd99bd11ee41006" - integrity sha512-wDNHGXGewWAjQPt3pyeYBtpWSq9cLE5UW1ZUPL/2eGK9jtse/FpXib7epSTsz0Q0m+6sg6Y4KtcFTlah1bdOVg== - dependencies: - debug "~4.3.4" - ws "~8.11.0" - -socket.io-parser@~4.2.4: - version "4.2.4" - resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-4.2.4.tgz#c806966cf7270601e47469ddeec30fbdfda44c83" - integrity sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew== - dependencies: - "@socket.io/component-emitter" "~3.1.0" - debug "~4.3.1" - -socket.io@^4.4.1: - version "4.7.5" - resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-4.7.5.tgz#56eb2d976aef9d1445f373a62d781a41c7add8f8" - integrity sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA== - dependencies: - accepts "~1.3.4" - base64id "~2.0.0" - cors "~2.8.5" - debug "~4.3.2" - engine.io "~6.5.2" - socket.io-adapter "~2.5.2" - socket.io-parser "~4.2.4" - -sockjs@^0.3.24: - version "0.3.24" - resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" - integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== - dependencies: - faye-websocket "^0.11.3" - uuid "^8.3.2" - websocket-driver "^0.7.4" - -socks-proxy-agent@^8.0.3: - version "8.0.3" - resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-8.0.3.tgz#6b2da3d77364fde6292e810b496cb70440b9b89d" - integrity sha512-VNegTZKhuGq5vSD6XNKlbqWhyt/40CgoEw8XxD6dhnm8Jq9IEa3nIa4HwnM8XOqU0CdB0BwWVXusqiFXfHB3+A== - dependencies: - agent-base "^7.1.1" - debug "^4.3.4" - socks "^2.7.1" - -socks@^2.7.1: - version "2.8.3" - resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.3.tgz#1ebd0f09c52ba95a09750afe3f3f9f724a800cb5" - integrity sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw== - dependencies: - ip-address "^9.0.5" - smart-buffer "^4.2.0" - -source-map-explorer@2.5.3: - version "2.5.3" - resolved "https://registry.yarnpkg.com/source-map-explorer/-/source-map-explorer-2.5.3.tgz#33551b51e33b70f56d15e79083cdd4c43e583b69" - integrity sha512-qfUGs7UHsOBE5p/lGfQdaAj/5U/GWYBw2imEpD6UQNkqElYonkow8t+HBL1qqIl3CuGZx7n8/CQo4x1HwSHhsg== - dependencies: - btoa "^1.2.1" - chalk "^4.1.0" - convert-source-map "^1.7.0" - ejs "^3.1.5" - escape-html "^1.0.3" - glob "^7.1.6" - gzip-size "^6.0.0" - lodash "^4.17.20" - open "^7.3.1" - source-map "^0.7.4" - temp "^0.9.4" - yargs "^16.2.0" - -"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2, source-map-js@^1.2.0: - version "1.2.0" - resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" - integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== - -source-map-loader@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-5.0.0.tgz#f593a916e1cc54471cfc8851b905c8a845fc7e38" - integrity sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA== - dependencies: - iconv-lite "^0.6.3" - source-map-js "^1.0.2" - -source-map-resolve@^0.5.0: - version "0.5.3" - resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" - integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== - dependencies: - atob "^2.1.2" - decode-uri-component "^0.2.0" - resolve-url "^0.2.1" - source-map-url "^0.4.0" - urix "^0.1.0" - -source-map-support@0.5.21, source-map-support@^0.5.5, source-map-support@~0.5.20: - version "0.5.21" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" - integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== - dependencies: - buffer-from "^1.0.0" - source-map "^0.6.0" - -source-map-support@~0.4.0: - version "0.4.18" - resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" - integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== - dependencies: - source-map "^0.5.6" - -source-map-url@^0.4.0: - version "0.4.1" - resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" - integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== - -source-map@0.4.x: - version "0.4.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.4.4.tgz#eba4f5da9c0dc999de68032d8b4f76173652036b" - integrity sha512-Y8nIfcb1s/7DcobUz1yOO1GSp7gyL+D9zLHDehT7iRESqGSxjJ448Sg7rvfgsRJCnKLdSl11uGf0s9X80cH0/A== - dependencies: - amdefine ">=0.0.4" - -source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0: - version "0.6.1" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" - integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== - -source-map@0.7.4, source-map@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" - integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== - -source-map@^0.5.6: - version "0.5.7" - resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" - integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== - -spdx-correct@^3.0.0: - version "3.2.0" - resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" - integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA== - dependencies: - spdx-expression-parse "^3.0.0" - spdx-license-ids "^3.0.0" - -spdx-exceptions@^2.1.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz#5d607d27fc806f66d7b64a766650fa890f04ed66" - integrity sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w== - -spdx-expression-parse@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" - integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-expression-parse@^4.0.0: - version "4.0.0" - resolved "https://registry.npmmirror.com/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz#a23af9f3132115465dac215c099303e4ceac5794" - integrity sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ== - dependencies: - spdx-exceptions "^2.1.0" - spdx-license-ids "^3.0.0" - -spdx-license-ids@^3.0.0: - version "3.0.17" - resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.17.tgz#887da8aa73218e51a1d917502d79863161a93f9c" - integrity sha512-sh8PWc/ftMqAAdFiBu6Fy6JUOYjqDJBJvIhpfDMyHrr0Rbp5liZqd4TjtQ/RgfLjKFZb+LMx5hpml5qOWy0qvg== - -spdy-transport@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" - integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw== - dependencies: - debug "^4.1.0" - detect-node "^2.0.4" - hpack.js "^2.1.6" - obuf "^1.1.2" - readable-stream "^3.0.6" - wbuf "^1.7.3" - -spdy@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b" - integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA== - dependencies: - debug "^4.1.0" - handle-thing "^2.0.0" - http-deceiver "^1.2.7" - select-hose "^2.0.0" - spdy-transport "^3.0.0" - -specificity@^0.4.1: - version "0.4.1" - resolved "https://registry.yarnpkg.com/specificity/-/specificity-0.4.1.tgz#aab5e645012db08ba182e151165738d00887b019" - integrity sha512-1klA3Gi5PD1Wv9Q0wUoOQN1IWAuPu0D1U03ThXTr0cJ20+/iq2tHSDnK7Kk/0LXJ1ztUB2/1Os0wKmfyNgUQfg== - -split-string@^3.0.1, split-string@^3.0.2: - version "3.1.0" - resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" - integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== - dependencies: - extend-shallow "^3.0.0" - -sprintf-js@^1.1.3: - version "1.1.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a" - integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== - -sprintf-js@~1.0.2: - version "1.0.3" - resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" - integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== - -ssf@~0.11.2: - version "0.11.2" - resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.11.2.tgz#0b99698b237548d088fc43cdf2b70c1a7512c06c" - integrity sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g== - dependencies: - frac "~1.1.2" - -sshpk@^1.7.0: - version "1.18.0" - resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.18.0.tgz#1663e55cddf4d688b86a46b77f0d5fe363aba028" - integrity sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ== - dependencies: - asn1 "~0.2.3" - assert-plus "^1.0.0" - bcrypt-pbkdf "^1.0.0" - dashdash "^1.12.0" - ecc-jsbn "~0.1.1" - getpass "^0.1.1" - jsbn "~0.1.0" - safer-buffer "^2.0.2" - tweetnacl "~0.14.0" - -ssri@^10.0.0: - version "10.0.6" - resolved "https://registry.yarnpkg.com/ssri/-/ssri-10.0.6.tgz#a8aade2de60ba2bce8688e3fa349bad05c7dc1e5" - integrity sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ== - dependencies: - minipass "^7.0.3" - -state-toggle@^1.0.0: - version "1.0.3" - resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.3.tgz#e123b16a88e143139b09c6852221bc9815917dfe" - integrity sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ== - -static-extend@^0.1.1: - version "0.1.2" - resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" - integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== - dependencies: - define-property "^0.2.5" - object-copy "^0.1.0" - -statuses@2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" - integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== - -"statuses@>= 1.4.0 < 2", statuses@~1.5.0: - version "1.5.0" - resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" - integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== - -streamroller@^3.1.5: - version "3.1.5" - resolved "https://registry.yarnpkg.com/streamroller/-/streamroller-3.1.5.tgz#1263182329a45def1ffaef58d31b15d13d2ee7ff" - integrity sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw== - dependencies: - date-format "^4.0.14" - debug "^4.3.4" - fs-extra "^8.1.0" - -string-argv@0.3.2: - version "0.3.2" - resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" - integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== - -"string-width-cjs@npm:string-width@^4.2.0": - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^3.0.0: - version "3.1.0" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" - integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== - dependencies: - emoji-regex "^7.0.1" - is-fullwidth-code-point "^2.0.0" - strip-ansi "^5.1.0" - -string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: - version "4.2.3" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" - integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== - dependencies: - emoji-regex "^8.0.0" - is-fullwidth-code-point "^3.0.0" - strip-ansi "^6.0.1" - -string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2: - version "5.1.2" - resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" - integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== - dependencies: - eastasianwidth "^0.2.0" - emoji-regex "^9.2.2" - strip-ansi "^7.0.1" - -string.prototype.trim@^1.2.9: - version "1.2.9" - resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz#b6fa326d72d2c78b6df02f7759c73f8f6274faa4" - integrity sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-abstract "^1.23.0" - es-object-atoms "^1.0.0" - -string.prototype.trimend@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz#3651b8513719e8a9f48de7f2f77640b26652b229" - integrity sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string.prototype.trimstart@^1.0.8: - version "1.0.8" - resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" - integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== - dependencies: - call-bind "^1.0.7" - define-properties "^1.2.1" - es-object-atoms "^1.0.0" - -string_decoder@^1.1.1: - version "1.3.0" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" - integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== - dependencies: - safe-buffer "~5.2.0" - -string_decoder@~1.1.1: - version "1.1.1" - resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" - integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== - dependencies: - safe-buffer "~5.1.0" - -stringify-entities@^1.0.1: - version "1.3.2" - resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-1.3.2.tgz#a98417e5471fd227b3e45d3db1861c11caf668f7" - integrity sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A== - dependencies: - character-entities-html4 "^1.0.0" - character-entities-legacy "^1.0.0" - is-alphanumerical "^1.0.0" - is-hexadecimal "^1.0.0" - -"strip-ansi-cjs@npm:strip-ansi@^6.0.1": - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" - integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== - dependencies: - ansi-regex "^2.0.0" - -strip-ansi@^5.1.0: - version "5.2.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" - integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== - dependencies: - ansi-regex "^4.1.0" - -strip-ansi@^6.0.0, strip-ansi@^6.0.1: - version "6.0.1" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" - integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== - dependencies: - ansi-regex "^5.0.1" - -strip-ansi@^7.0.1: - version "7.1.0" - resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" - integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== - dependencies: - ansi-regex "^6.0.1" - -strip-bom@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" - integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== - -strip-final-newline@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" - integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== - -strip-final-newline@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" - integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== - -strip-indent@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" - integrity sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA== - -strip-indent@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" - integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== - dependencies: - min-indent "^1.0.0" - -strip-json-comments@3.1.1, strip-json-comments@^3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" - integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== - -strip-json-comments@^2.0.1: - version "2.0.1" - resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" - integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== - -strong-log-transformer@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" - integrity sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA== - dependencies: - duplexer "^0.1.1" - minimist "^1.2.0" - through "^2.3.4" - -style-search@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902" - integrity sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg== - -stylelint-config-prettier@9.0.5: - version "9.0.5" - resolved "https://registry.yarnpkg.com/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz#9f78bbf31c7307ca2df2dd60f42c7014ee9da56e" - integrity sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA== - -stylelint-config-rational-order@0.1.2: - version "0.1.2" - resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0" - integrity sha512-Qo7ZQaihCwTqijfZg4sbdQQHtugOX/B1/fYh018EiDZHW+lkqH9uHOnsDwDPGZrYJuB6CoyI7MZh2ecw2dOkew== - dependencies: - stylelint "^9.10.1" - stylelint-order "^2.2.1" - -stylelint-config-recommended@^9.0.0: - version "9.0.0" - resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz#1c9e07536a8cd875405f8ecef7314916d94e7e40" - integrity sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ== - -stylelint-config-standard@28.0.0: - version "28.0.0" - resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-28.0.0.tgz#7e1926c232631a8445eafee7b186d276d42d7b15" - integrity sha512-q/StuowDdDmFCravzGHAwgS9pjX0bdOQUEBBDIkIWsQuYGgYz/xsO8CM6eepmIQ1fc5bKdDVimlJZ6MoOUcJ5Q== - dependencies: - stylelint-config-recommended "^9.0.0" - -stylelint-declaration-block-no-ignored-properties@2.7.0: - version "2.7.0" - resolved "https://registry.yarnpkg.com/stylelint-declaration-block-no-ignored-properties/-/stylelint-declaration-block-no-ignored-properties-2.7.0.tgz#78a4a03a5ec74a06b4abb226a31ff8fc57782a0e" - integrity sha512-44SpI9+9Oc1ICuwwRfwS/3npQ2jPobDSTnwWdNgZGryGqQCp17CgEIWjCv1BgUOSzND3RqywNCNLKvO1AOxbfg== - -stylelint-order@5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-5.0.0.tgz#abd20f6b85ac640774cbe40e70d3fe9c6fdf4400" - integrity sha512-OWQ7pmicXufDw5BlRqzdz3fkGKJPgLyDwD1rFY3AIEfIH/LQY38Vu/85v8/up0I+VPiuGRwbc2Hg3zLAsJaiyw== - dependencies: - postcss "^8.3.11" - postcss-sorting "^7.0.1" - -stylelint-order@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-2.2.1.tgz#cd2d4a0d81d91c705f1d275a58487e5ad5aa5828" - integrity sha512-019KBV9j8qp1MfBjJuotse6MgaZqGVtXMc91GU9MsS9Feb+jYUvUU3Z8XiClqPdqJZQ0ryXQJGg3U3PcEjXwfg== - dependencies: - lodash "^4.17.10" - postcss "^7.0.2" - postcss-sorting "^4.1.0" - -stylelint@14.16.1: - version "14.16.1" - resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.16.1.tgz#b911063530619a1bbe44c2b875fd8181ebdc742d" - integrity sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A== - dependencies: - "@csstools/selector-specificity" "^2.0.2" - balanced-match "^2.0.0" - colord "^2.9.3" - cosmiconfig "^7.1.0" - css-functions-list "^3.1.0" - debug "^4.3.4" - fast-glob "^3.2.12" - fastest-levenshtein "^1.0.16" - file-entry-cache "^6.0.1" - global-modules "^2.0.0" - globby "^11.1.0" - globjoin "^0.1.4" - html-tags "^3.2.0" - ignore "^5.2.1" - import-lazy "^4.0.0" - imurmurhash "^0.1.4" - is-plain-object "^5.0.0" - known-css-properties "^0.26.0" - mathml-tag-names "^2.1.3" - meow "^9.0.0" - micromatch "^4.0.5" - normalize-path "^3.0.0" - picocolors "^1.0.0" - postcss "^8.4.19" - postcss-media-query-parser "^0.2.3" - postcss-resolve-nested-selector "^0.1.1" - postcss-safe-parser "^6.0.0" - postcss-selector-parser "^6.0.11" - postcss-value-parser "^4.2.0" - resolve-from "^5.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - style-search "^0.1.0" - supports-hyperlinks "^2.3.0" - svg-tags "^1.0.0" - table "^6.8.1" - v8-compile-cache "^2.3.0" - write-file-atomic "^4.0.2" - -stylelint@^9.10.1: - version "9.10.1" - resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-9.10.1.tgz#5f0ee3701461dff1d68284e1386efe8f0677a75d" - integrity sha512-9UiHxZhOAHEgeQ7oLGwrwoDR8vclBKlSX7r4fH0iuu0SfPwFaLkb1c7Q2j1cqg9P7IDXeAV2TvQML/fRQzGBBQ== - dependencies: - autoprefixer "^9.0.0" - balanced-match "^1.0.0" - chalk "^2.4.1" - cosmiconfig "^5.0.0" - debug "^4.0.0" - execall "^1.0.0" - file-entry-cache "^4.0.0" - get-stdin "^6.0.0" - global-modules "^2.0.0" - globby "^9.0.0" - globjoin "^0.1.4" - html-tags "^2.0.0" - ignore "^5.0.4" - import-lazy "^3.1.0" - imurmurhash "^0.1.4" - known-css-properties "^0.11.0" - leven "^2.1.0" - lodash "^4.17.4" - log-symbols "^2.0.0" - mathml-tag-names "^2.0.1" - meow "^5.0.0" - micromatch "^3.1.10" - normalize-selector "^0.2.0" - pify "^4.0.0" - postcss "^7.0.13" - postcss-html "^0.36.0" - postcss-jsx "^0.36.0" - postcss-less "^3.1.0" - postcss-markdown "^0.36.0" - postcss-media-query-parser "^0.2.3" - postcss-reporter "^6.0.0" - postcss-resolve-nested-selector "^0.1.1" - postcss-safe-parser "^4.0.0" - postcss-sass "^0.3.5" - postcss-scss "^2.0.0" - postcss-selector-parser "^3.1.0" - postcss-syntax "^0.36.2" - postcss-value-parser "^3.3.0" - resolve-from "^4.0.0" - signal-exit "^3.0.2" - slash "^2.0.0" - specificity "^0.4.1" - string-width "^3.0.0" - style-search "^0.1.0" - sugarss "^2.0.0" - svg-tags "^1.0.0" - table "^5.0.0" - -sugarss@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-2.0.0.tgz#ddd76e0124b297d40bf3cca31c8b22ecb43bc61d" - integrity sha512-WfxjozUk0UVA4jm+U1d736AUpzSrNsQcIbyOkoE364GrtWmIrFdk5lksEupgWMD4VaT/0kVx1dobpiDumSgmJQ== - dependencies: - postcss "^7.0.2" - -supports-color@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" - integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g== - -supports-color@^5.3.0: - version "5.5.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" - integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== - dependencies: - has-flag "^3.0.0" - -supports-color@^7.0.0, supports-color@^7.1.0: - version "7.2.0" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" - integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== - dependencies: - has-flag "^4.0.0" - -supports-color@^8.0.0: - version "8.1.1" - resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" - integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== - dependencies: - has-flag "^4.0.0" - -supports-hyperlinks@^2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" - integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== - dependencies: - has-flag "^4.0.0" - supports-color "^7.0.0" - -supports-preserve-symlinks-flag@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" - integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== - -svg-tags@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" - integrity sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA== - -swagger-schema-official@2.0.0-bab6bed: - version "2.0.0-bab6bed" - resolved "https://registry.yarnpkg.com/swagger-schema-official/-/swagger-schema-official-2.0.0-bab6bed.tgz#70070468d6d2977ca5237b2e519ca7d06a2ea3fd" - integrity sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA== - -swagger-typescript-api@^12.0.4: - version "12.0.4" - resolved "https://registry.yarnpkg.com/swagger-typescript-api/-/swagger-typescript-api-12.0.4.tgz#757bf4b2eac9acb59ffb3cf20fd14e981a61cabf" - integrity sha512-04ZxlJzu3g15TupfPhS0Yk0jzV/MM23WU4uuOl2vSi4yHrxEwnkIsoBkP084ec61q4vr2FHcI3DKxC+Mt1u10Q== - dependencies: - "@types/swagger-schema-official" "2.0.22" - cosmiconfig "7.0.1" - didyoumean "^1.2.2" - eta "^2.0.0" - js-yaml "4.1.0" - lodash "4.17.21" - make-dir "3.1.0" - nanoid "3.3.4" - node-emoji "1.11.0" - node-fetch "^3.2.10" - prettier "2.7.1" - swagger-schema-official "2.0.0-bab6bed" - swagger2openapi "7.0.8" - typescript "4.8.4" - -swagger2openapi@7.0.8: - version "7.0.8" - resolved "https://registry.yarnpkg.com/swagger2openapi/-/swagger2openapi-7.0.8.tgz#12c88d5de776cb1cbba758994930f40ad0afac59" - integrity sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g== - dependencies: - call-me-maybe "^1.0.1" - node-fetch "^2.6.1" - node-fetch-h2 "^2.3.0" - node-readfiles "^0.2.0" - oas-kit-common "^1.0.8" - oas-resolver "^2.5.6" - oas-schema-walker "^1.1.5" - oas-validator "^5.0.8" - reftools "^1.1.9" - yaml "^1.10.0" - yargs "^17.0.1" - -symbol-observable@4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" - integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== - -table@^5.0.0: - version "5.4.6" - resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" - integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== - dependencies: - ajv "^6.10.2" - lodash "^4.17.14" - slice-ansi "^2.1.0" - string-width "^3.0.0" - -table@^6.8.1: - version "6.8.2" - resolved "https://registry.yarnpkg.com/table/-/table-6.8.2.tgz#c5504ccf201213fa227248bdc8c5569716ac6c58" - integrity sha512-w2sfv80nrAh2VCbqR5AK27wswXhqcck2AhfnNW76beQXskGZ1V12GwS//yYVa3d3fcvAip2OUnbDAjW2k3v9fA== - dependencies: - ajv "^8.0.1" - lodash.truncate "^4.4.2" - slice-ansi "^4.0.0" - string-width "^4.2.3" - strip-ansi "^6.0.1" - -tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1: - version "2.2.1" - resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" - integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== - -tar-stream@~2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" - integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ== - dependencies: - bl "^4.0.3" - end-of-stream "^1.4.1" - fs-constants "^1.0.0" - inherits "^2.0.3" - readable-stream "^3.1.1" - -tar@^6.1.11, tar@^6.1.2: - version "6.2.1" - resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" - integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== - dependencies: - chownr "^2.0.0" - fs-minipass "^2.0.0" - minipass "^5.0.0" - minizlib "^2.1.1" - mkdirp "^1.0.3" - yallist "^4.0.0" - -temp@^0.9.4: - version "0.9.4" - resolved "https://registry.yarnpkg.com/temp/-/temp-0.9.4.tgz#cd20a8580cb63635d0e4e9d4bd989d44286e7620" - integrity sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA== - dependencies: - mkdirp "^0.5.1" - rimraf "~2.6.2" - -terser-webpack-plugin@^5.3.10: - version "5.3.10" - resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz#904f4c9193c6fd2a03f693a2150c62a92f40d199" - integrity sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w== - dependencies: - "@jridgewell/trace-mapping" "^0.3.20" - jest-worker "^27.4.5" - schema-utils "^3.1.1" - serialize-javascript "^6.0.1" - terser "^5.26.0" - -terser@5.29.1: - version "5.29.1" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.29.1.tgz#44e58045b70c09792ba14bfb7b4e14ca8755b9fa" - integrity sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ== - dependencies: - "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" - commander "^2.20.0" - source-map-support "~0.5.20" - -terser@^5.26.0: - version "5.31.0" - resolved "https://registry.yarnpkg.com/terser/-/terser-5.31.0.tgz#06eef86f17007dbad4593f11a574c7f5eb02c6a1" - integrity sha512-Q1JFAoUKE5IMfI4Z/lkE/E6+SwgzO+x4tq4v1AyBLRj8VSYvRO6A/rQrPg1yud4g0En9EKI1TvFRF2tQFcoUkg== - dependencies: - "@jridgewell/source-map" "^0.3.3" - acorn "^8.8.2" - commander "^2.20.0" - source-map-support "~0.5.20" - -test-exclude@^6.0.0: - version "6.0.0" - resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" - integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== - dependencies: - "@istanbuljs/schema" "^0.1.2" - glob "^7.1.4" - minimatch "^3.0.4" - -text-table@^0.2.0: - version "0.2.0" - resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" - integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== - -through@^2.3.4: - version "2.3.8" - resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" - integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== - -thunky@^1.0.2: - version "1.1.0" - resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" - integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== - -tmp@0.0.30: - version "0.0.30" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.30.tgz#72419d4a8be7d6ce75148fd8b324e593a711c2ed" - integrity sha512-HXdTB7lvMwcb55XFfrTM8CPr/IYREk4hVBFaQ4b/6nInrluSL86hfHm7vu0luYKCfyBZp2trCjpc8caC3vVM3w== - dependencies: - os-tmpdir "~1.0.1" - -tmp@0.2.3, tmp@^0.2.1, tmp@~0.2.1: - version "0.2.3" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" - integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== - -tmp@^0.0.33: - version "0.0.33" - resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" - integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== - dependencies: - os-tmpdir "~1.0.2" - -to-fast-properties@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" - integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== - -to-object-path@^0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" - integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== - dependencies: - kind-of "^3.0.2" - -to-regex-range@^2.1.0: - version "2.1.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" - integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== - dependencies: - is-number "^3.0.0" - repeat-string "^1.6.1" - -to-regex-range@^5.0.1: - version "5.0.1" - resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" - integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== - dependencies: - is-number "^7.0.0" - -to-regex@^3.0.1, to-regex@^3.0.2: - version "3.0.2" - resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" - integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== - dependencies: - define-property "^2.0.2" - extend-shallow "^3.0.2" - regex-not "^1.0.2" - safe-regex "^1.1.0" - -toidentifier@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" - integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== - -tough-cookie@~2.5.0: - version "2.5.0" - resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" - integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== - dependencies: - psl "^1.1.28" - punycode "^2.1.1" - -tr46@~0.0.3: - version "0.0.3" - resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" - integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== - -tree-kill@1.2.2: - version "1.2.2" - resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" - integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== - -trim-newlines@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" - integrity sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA== - -trim-newlines@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" - integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== - -trim-trailing-lines@^1.0.0: - version "1.1.4" - resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz#bd4abbec7cc880462f10b2c8b5ce1d8d1ec7c2c0" - integrity sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ== - -trim@0.0.1: - version "0.0.1" - resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd" - integrity sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ== - -trough@^1.0.0: - version "1.0.5" - resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" - integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== - -ts-api-utils@^1.3.0: - version "1.3.0" - resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" - integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== - -ts-node@10.9.1: - version "10.9.1" - resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" - integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== - dependencies: - "@cspotcode/source-map-support" "^0.8.0" - "@tsconfig/node10" "^1.0.7" - "@tsconfig/node12" "^1.0.7" - "@tsconfig/node14" "^1.0.0" - "@tsconfig/node16" "^1.0.2" - acorn "^8.4.1" - acorn-walk "^8.1.1" - arg "^4.1.0" - create-require "^1.1.0" - diff "^4.0.1" - make-error "^1.1.1" - v8-compile-cache-lib "^3.0.1" - yn "3.1.1" - -tsconfig-paths@^3.14.1: - version "3.15.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" - integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== - dependencies: - "@types/json5" "^0.0.29" - json5 "^1.0.2" - minimist "^1.2.6" - strip-bom "^3.0.0" - -tsconfig-paths@^4.1.2: - version "4.2.0" - resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz#ef78e19039133446d244beac0fd6a1632e2d107c" - integrity sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg== - dependencies: - json5 "^2.2.2" - minimist "^1.2.6" - strip-bom "^3.0.0" - -tslib@2.3.0: - version "2.3.0" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e" - integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== - -tslib@2.6.2, tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0: - version "2.6.2" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" - integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== - -tslib@^1.8.1: - version "1.14.1" - resolved "https://registry.yarnpkg.com/tslib/-/tslib-1.14.1.tgz#cf2d38bdc34a134bcaf1091c41f6619e2f672d00" - integrity sha512-Xni35NKzjgMrwevysHTCArtLDpPvye8zV/0E4EyYn43P7/7qvQwPh9BGkHewbMulVntbigmcT7rdX3BNo9wRJg== - -tsutils@^3.21.0: - version "3.21.0" - resolved "https://registry.yarnpkg.com/tsutils/-/tsutils-3.21.0.tgz#b48717d394cea6c1e096983eed58e9d61715b623" - integrity sha512-mHKK3iUXL+3UF6xL5k0PEhKRUBKPBCv/+RkEOpjRWxxx27KKRBmmA60A9pgOUvMi8GKhRMPEmjBRPzs2W7O1OA== - dependencies: - tslib "^1.8.1" - -tuf-js@^2.2.0: - version "2.2.0" - resolved "https://registry.yarnpkg.com/tuf-js/-/tuf-js-2.2.0.tgz#4daaa8620ba7545501d04dfa933c98abbcc959b9" - integrity sha512-ZSDngmP1z6zw+FIkIBjvOp/II/mIub/O7Pp12j1WNsiCpg5R5wAc//i555bBQsE44O94btLt0xM/Zr2LQjwdCg== - dependencies: - "@tufjs/models" "2.0.0" - debug "^4.3.4" - make-fetch-happen "^13.0.0" - -tunnel-agent@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" - integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== - dependencies: - safe-buffer "^5.0.1" - -tweetnacl@^0.14.3, tweetnacl@~0.14.0: - version "0.14.5" - resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" - integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== - -type-check@^0.4.0, type-check@~0.4.0: - version "0.4.0" - resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" - integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== - dependencies: - prelude-ls "^1.2.1" - -type-fest@^0.18.0: - version "0.18.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" - integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== - -type-fest@^0.20.2: - version "0.20.2" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" - integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== - -type-fest@^0.21.3: - version "0.21.3" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" - integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== - -type-fest@^0.6.0: - version "0.6.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" - integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== - -type-fest@^0.8.1: - version "0.8.1" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" - integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== - -type-fest@^1.0.2: - version "1.4.0" - resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" - integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== - -type-is@~1.6.18: - version "1.6.18" - resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" - integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== - dependencies: - media-typer "0.3.0" - mime-types "~2.1.24" - -typed-array-buffer@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz#1867c5d83b20fcb5ccf32649e5e2fc7424474ff3" - integrity sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ== - dependencies: - call-bind "^1.0.7" - es-errors "^1.3.0" - is-typed-array "^1.1.13" - -typed-array-byte-length@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz#d92972d3cff99a3fa2e765a28fcdc0f1d89dec67" - integrity sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw== - dependencies: - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - -typed-array-byte-offset@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz#f9ec1acb9259f395093e4567eb3c28a580d02063" - integrity sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - -typed-array-length@^1.0.6: - version "1.0.6" - resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.6.tgz#57155207c76e64a3457482dfdc1c9d1d3c4c73a3" - integrity sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g== - dependencies: - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-proto "^1.0.3" - is-typed-array "^1.1.13" - possible-typed-array-names "^1.0.0" - -typed-assert@^1.0.8: - version "1.0.9" - resolved "https://registry.yarnpkg.com/typed-assert/-/typed-assert-1.0.9.tgz#8af9d4f93432c4970ec717e3006f33f135b06213" - integrity sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg== - -typescript@4.8.4: - version "4.8.4" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" - integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== - -typescript@5.3.3: - version "5.3.3" - resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" - integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== - -ua-parser-js@^0.7.30: - version "0.7.37" - resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.37.tgz#e464e66dac2d33a7a1251d7d7a99d6157ec27832" - integrity sha512-xV8kqRKM+jhMvcHWUKthV9fNebIzrNy//2O9ZwWcfiBFR5f25XVZPLlEajk/sf3Ra15V92isyQqnIEXRDaZWEA== - -unbox-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" - integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== - dependencies: - call-bind "^1.0.2" - has-bigints "^1.0.2" - has-symbols "^1.0.3" - which-boxed-primitive "^1.0.2" - -undici-types@~5.26.4: - version "5.26.5" - resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" - integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== - -undici@6.11.1: - version "6.11.1" - resolved "https://registry.yarnpkg.com/undici/-/undici-6.11.1.tgz#75ab573677885b421ca2e6f5f17ff1185b24c68d" - integrity sha512-KyhzaLJnV1qa3BSHdj4AZ2ndqI0QWPxYzaIOio0WzcEJB9gvuysprJSLtpvc2D9mhR9jPDUk7xlJlZbH2KR5iw== - -unherit@^1.0.4: - version "1.1.3" - resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.3.tgz#6c9b503f2b41b262330c80e91c8614abdaa69c22" - integrity sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ== - dependencies: - inherits "^2.0.0" - xtend "^4.0.0" - -unicode-canonical-property-names-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" - integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== - -unicode-match-property-ecmascript@^2.0.0: - version "2.0.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" - integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== - dependencies: - unicode-canonical-property-names-ecmascript "^2.0.0" - unicode-property-aliases-ecmascript "^2.0.0" - -unicode-match-property-value-ecmascript@^2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0" - integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== - -unicode-property-aliases-ecmascript@^2.0.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" - integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== - -unified@^7.0.0: - version "7.1.0" - resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13" - integrity sha512-lbk82UOIGuCEsZhPj8rNAkXSDXd6p0QLzIuSsCdxrqnqU56St4eyOB+AlXsVgVeRmetPTYydIuvFfpDIed8mqw== - dependencies: - "@types/unist" "^2.0.0" - "@types/vfile" "^3.0.0" - bail "^1.0.0" - extend "^3.0.0" - is-plain-obj "^1.1.0" - trough "^1.0.0" - vfile "^3.0.0" - x-is-string "^0.1.0" - -union-value@^1.0.0: - version "1.0.1" - resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" - integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== - dependencies: - arr-union "^3.1.0" - get-value "^2.0.6" - is-extendable "^0.1.1" - set-value "^2.0.1" - -uniq@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" - integrity sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA== - -unique-filename@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" - integrity sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g== - dependencies: - unique-slug "^4.0.0" - -unique-slug@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" - integrity sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ== - dependencies: - imurmurhash "^0.1.4" - -unist-util-find-all-after@^1.0.2: - version "1.0.5" - resolved "https://registry.yarnpkg.com/unist-util-find-all-after/-/unist-util-find-all-after-1.0.5.tgz#5751a8608834f41d117ad9c577770c5f2f1b2899" - integrity sha512-lWgIc3rrTMTlK1Y0hEuL+k+ApzFk78h+lsaa2gHf63Gp5Ww+mt11huDniuaoq1H+XMK2lIIjjPkncxXcDp3QDw== - dependencies: - unist-util-is "^3.0.0" - -unist-util-is@^3.0.0: - version "3.0.0" - resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-3.0.0.tgz#d9e84381c2468e82629e4a5be9d7d05a2dd324cd" - integrity sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A== - -unist-util-remove-position@^1.0.0: - version "1.1.4" - resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz#ec037348b6102c897703eee6d0294ca4755a2020" - integrity sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A== - dependencies: - unist-util-visit "^1.1.0" - -unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1: - version "1.1.2" - resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6" - integrity sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ== - -unist-util-stringify-position@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2" - integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== - dependencies: - "@types/unist" "^3.0.0" - -unist-util-visit-parents@^2.0.0: - version "2.1.2" - resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz#25e43e55312166f3348cae6743588781d112c1e9" - integrity sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g== - dependencies: - unist-util-is "^3.0.0" - -unist-util-visit@^1.1.0: - version "1.4.1" - resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.1.tgz#4724aaa8486e6ee6e26d7ff3c8685960d560b1e3" - integrity sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw== - dependencies: - unist-util-visit-parents "^2.0.0" - -universalify@^0.1.0: - version "0.1.2" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" - integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== - -universalify@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" - integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== - -unpipe@1.0.0, unpipe@~1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" - integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== - -unset-value@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" - integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== - dependencies: - has-value "^0.3.1" - isobject "^3.0.0" - -update-browserslist-db@^1.0.13: - version "1.0.15" - resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.0.15.tgz#60ed9f8cba4a728b7ecf7356f641a31e3a691d97" - integrity sha512-K9HWH62x3/EalU1U6sjSZiylm9C8tgq2mSvshZpqc7QE69RaA2qjhkW2HlNA0tFpEbtyFz7HTqbSdN4MSwUodA== - dependencies: - escalade "^3.1.2" - picocolors "^1.0.0" - -uri-js@^4.2.2, uri-js@^4.4.1: - version "4.4.1" - resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" - integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== - dependencies: - punycode "^2.1.0" - -urix@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" - integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== - -url-polyfill@^1.1.12: - version "1.1.12" - resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.12.tgz#6cdaa17f6b022841b3aec0bf8dbd87ac0cd33331" - integrity sha512-mYFmBHCapZjtcNHW0MDq9967t+z4Dmg5CJ0KqysK3+ZbyoNOWQHksGCTWwDhxGXllkWlOc10Xfko6v4a3ucM6A== - -use@^3.1.0: - version "3.1.1" - resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" - integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== - -util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" - integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== - -utils-merge@1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" - integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== - -uuid@^3.3.2: - version "3.4.0" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" - integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== - -uuid@^8.3.2: - version "8.3.2" - resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" - integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== - -v8-compile-cache-lib@^3.0.1: - version "3.0.1" - resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" - integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== - -v8-compile-cache@^2.3.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz#cdada8bec61e15865f05d097c5f4fd30e94dc128" - integrity sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw== - -validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: - version "3.0.4" - resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" - integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== - dependencies: - spdx-correct "^3.0.0" - spdx-expression-parse "^3.0.0" - -validate-npm-package-name@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-5.0.0.tgz#f16afd48318e6f90a1ec101377fa0384cfc8c713" - integrity sha512-YuKoXDAhBYxY7SfOKxHBDoSyENFeW5VvIIQp2TGQuit8gpK6MnWaQelBKxso72DoxTZfZdcP3W90LqpSkgPzLQ== - dependencies: - builtins "^5.0.0" - -vary@^1, vary@~1.1.2: - version "1.1.2" - resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" - integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== - -verror@1.10.0: - version "1.10.0" - resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" - integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== - dependencies: - assert-plus "^1.0.0" - core-util-is "1.0.2" - extsprintf "^1.2.0" - -vfile-location@^2.0.0: - version "2.0.6" - resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.6.tgz#8a274f39411b8719ea5728802e10d9e0dff1519e" - integrity sha512-sSFdyCP3G6Ka0CEmN83A2YCMKIieHx0EDaj5IDP4g1pa5ZJ4FJDvpO0WODLxo4LUX4oe52gmSCK7Jw4SBghqxA== - -vfile-message@*: - version "4.0.2" - resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-4.0.2.tgz#c883c9f677c72c166362fd635f21fc165a7d1181" - integrity sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw== - dependencies: - "@types/unist" "^3.0.0" - unist-util-stringify-position "^4.0.0" - -vfile-message@^1.0.0: - version "1.1.1" - resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-1.1.1.tgz#5833ae078a1dfa2d96e9647886cd32993ab313e1" - integrity sha512-1WmsopSGhWt5laNir+633LszXvZ+Z/lxveBf6yhGsqnQIhlhzooZae7zV6YVM1Sdkw68dtAW3ow0pOdPANugvA== - dependencies: - unist-util-stringify-position "^1.1.1" - -vfile@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/vfile/-/vfile-3.0.1.tgz#47331d2abe3282424f4a4bb6acd20a44c4121803" - integrity sha512-y7Y3gH9BsUSdD4KzHsuMaCzRjglXN0W2EcMf0gpvu6+SbsGhMje7xDc8AEoeXy6mIwCKMI6BkjMsRjzQbhMEjQ== - dependencies: - is-buffer "^2.0.0" - replace-ext "1.0.0" - unist-util-stringify-position "^1.0.0" - vfile-message "^1.0.0" - -vite@5.1.7: - version "5.1.7" - resolved "https://registry.yarnpkg.com/vite/-/vite-5.1.7.tgz#9f685a2c4c70707fef6d37341b0e809c366da619" - integrity sha512-sgnEEFTZYMui/sTlH1/XEnVNHMujOahPLGMxn1+5sIT45Xjng1Ec1K78jRP15dSmVgg5WBin9yO81j3o9OxofA== - dependencies: - esbuild "^0.19.3" - postcss "^8.4.35" - rollup "^4.2.0" - optionalDependencies: - fsevents "~2.3.3" - -void-elements@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" - integrity sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung== - -watchpack@2.4.0: - version "2.4.0" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" - integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== - dependencies: - glob-to-regexp "^0.4.1" - graceful-fs "^4.1.2" - -watchpack@^2.4.0: - version "2.4.1" - resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.1.tgz#29308f2cac150fa8e4c92f90e0ec954a9fed7fff" - integrity sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg== - dependencies: - glob-to-regexp "^0.4.1" - graceful-fs "^4.1.2" - -wbuf@^1.1.0, wbuf@^1.7.3: - version "1.7.3" - resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" - integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA== - dependencies: - minimalistic-assert "^1.0.0" - -wcwidth@^1.0.1: - version "1.0.1" - resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" - integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== - dependencies: - defaults "^1.0.3" - -web-streams-polyfill@^3.0.3: - version "3.3.3" - resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" - integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== - -webdriver-js-extender@2.1.0: - version "2.1.0" - resolved "https://registry.yarnpkg.com/webdriver-js-extender/-/webdriver-js-extender-2.1.0.tgz#57d7a93c00db4cc8d556e4d3db4b5db0a80c3bb7" - integrity sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ== - dependencies: - "@types/selenium-webdriver" "^3.0.0" - selenium-webdriver "^3.0.1" - -webdriver-manager@^12.1.7: - version "12.1.9" - resolved "https://registry.yarnpkg.com/webdriver-manager/-/webdriver-manager-12.1.9.tgz#8d83543b92711b7217b39fef4cda958a4703d2df" - integrity sha512-Yl113uKm8z4m/KMUVWHq1Sjtla2uxEBtx2Ue3AmIlnlPAKloDn/Lvmy6pqWCUersVISpdMeVpAaGbNnvMuT2LQ== - dependencies: - adm-zip "^0.5.2" - chalk "^1.1.1" - del "^2.2.0" - glob "^7.0.3" - ini "^1.3.4" - minimist "^1.2.0" - q "^1.4.1" - request "^2.87.0" - rimraf "^2.5.2" - semver "^5.3.0" - xml2js "^0.4.17" - -webidl-conversions@^3.0.0: - version "3.0.1" - resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" - integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== - -webpack-dev-middleware@6.1.2: - version "6.1.2" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-6.1.2.tgz#0463232e59b7d7330fa154121528d484d36eb973" - integrity sha512-Wu+EHmX326YPYUpQLKmKbTyZZJIB8/n6R09pTmB03kJmnMsVPTo9COzHZFr01txwaCAuZvfBJE4ZCHRcKs5JaQ== - dependencies: - colorette "^2.0.10" - memfs "^3.4.12" - mime-types "^2.1.31" - range-parser "^1.2.1" - schema-utils "^4.0.0" - -webpack-dev-middleware@^5.3.1: - version "5.3.4" - resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517" - integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q== - dependencies: - colorette "^2.0.10" - memfs "^3.4.3" - mime-types "^2.1.31" - range-parser "^1.2.1" - schema-utils "^4.0.0" - -webpack-dev-server@4.15.1: - version "4.15.1" - resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz#8944b29c12760b3a45bdaa70799b17cb91b03df7" - integrity sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA== - dependencies: - "@types/bonjour" "^3.5.9" - "@types/connect-history-api-fallback" "^1.3.5" - "@types/express" "^4.17.13" - "@types/serve-index" "^1.9.1" - "@types/serve-static" "^1.13.10" - "@types/sockjs" "^0.3.33" - "@types/ws" "^8.5.5" - ansi-html-community "^0.0.8" - bonjour-service "^1.0.11" - chokidar "^3.5.3" - colorette "^2.0.10" - compression "^1.7.4" - connect-history-api-fallback "^2.0.0" - default-gateway "^6.0.3" - express "^4.17.3" - graceful-fs "^4.2.6" - html-entities "^2.3.2" - http-proxy-middleware "^2.0.3" - ipaddr.js "^2.0.1" - launch-editor "^2.6.0" - open "^8.0.9" - p-retry "^4.5.0" - rimraf "^3.0.2" - schema-utils "^4.0.0" - selfsigned "^2.1.1" - serve-index "^1.9.1" - sockjs "^0.3.24" - spdy "^4.0.2" - webpack-dev-middleware "^5.3.1" - ws "^8.13.0" - -webpack-merge@5.10.0: - version "5.10.0" - resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" - integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== - dependencies: - clone-deep "^4.0.1" - flat "^5.0.2" - wildcard "^2.0.0" - -webpack-sources@^3.0.0, webpack-sources@^3.2.3: - version "3.2.3" - resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" - integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== - -webpack-subresource-integrity@5.1.0: - version "5.1.0" - resolved "https://registry.yarnpkg.com/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz#8b7606b033c6ccac14e684267cb7fb1f5c2a132a" - integrity sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q== - dependencies: - typed-assert "^1.0.8" - -webpack@5.90.3: - version "5.90.3" - resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.90.3.tgz#37b8f74d3ded061ba789bb22b31e82eed75bd9ac" - integrity sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA== - dependencies: - "@types/eslint-scope" "^3.7.3" - "@types/estree" "^1.0.5" - "@webassemblyjs/ast" "^1.11.5" - "@webassemblyjs/wasm-edit" "^1.11.5" - "@webassemblyjs/wasm-parser" "^1.11.5" - acorn "^8.7.1" - acorn-import-assertions "^1.9.0" - browserslist "^4.21.10" - chrome-trace-event "^1.0.2" - enhanced-resolve "^5.15.0" - es-module-lexer "^1.2.1" - eslint-scope "5.1.1" - events "^3.2.0" - glob-to-regexp "^0.4.1" - graceful-fs "^4.2.9" - json-parse-even-better-errors "^2.3.1" - loader-runner "^4.2.0" - mime-types "^2.1.27" - neo-async "^2.6.2" - schema-utils "^3.2.0" - tapable "^2.1.1" - terser-webpack-plugin "^5.3.10" - watchpack "^2.4.0" - webpack-sources "^3.2.3" - -websocket-driver@>=0.5.1, websocket-driver@^0.7.4: - version "0.7.4" - resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" - integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== - dependencies: - http-parser-js ">=0.5.1" - safe-buffer ">=5.1.0" - websocket-extensions ">=0.1.1" - -websocket-extensions@>=0.1.1: - version "0.1.4" - resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" - integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== - -whatwg-url@^5.0.0: - version "5.0.0" - resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" - integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== - dependencies: - tr46 "~0.0.3" - webidl-conversions "^3.0.0" - -which-boxed-primitive@^1.0.2: - version "1.0.2" - resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" - integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== - dependencies: - is-bigint "^1.0.1" - is-boolean-object "^1.1.0" - is-number-object "^1.0.4" - is-string "^1.0.5" - is-symbol "^1.0.3" - -which-module@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" - integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== - -which-typed-array@^1.1.14, which-typed-array@^1.1.15: - version "1.1.15" - resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d" - integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA== - dependencies: - available-typed-arrays "^1.0.7" - call-bind "^1.0.7" - for-each "^0.3.3" - gopd "^1.0.1" - has-tostringtag "^1.0.2" - -which@^1.2.1, which@^1.3.1: - version "1.3.1" - resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" - integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== - dependencies: - isexe "^2.0.0" - -which@^2.0.1: - version "2.0.2" - resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" - integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== - dependencies: - isexe "^2.0.0" - -which@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a" - integrity sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg== - dependencies: - isexe "^3.1.1" - -wildcard@^2.0.0: - version "2.0.1" - resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" - integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== - -wmf@~1.0.1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wmf/-/wmf-1.0.2.tgz#7d19d621071a08c2bdc6b7e688a9c435298cc2da" - integrity sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw== - -word-wrap@^1.2.5: - version "1.2.5" - resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" - integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== - -word@~0.3.0: - version "0.3.0" - resolved "https://registry.yarnpkg.com/word/-/word-0.3.0.tgz#8542157e4f8e849f4a363a288992d47612db9961" - integrity sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA== - -"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^6.2.0: - version "6.2.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" - integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^7.0.0: - version "7.0.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" - integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== - dependencies: - ansi-styles "^4.0.0" - string-width "^4.1.0" - strip-ansi "^6.0.0" - -wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: - version "8.1.0" - resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" - integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== - dependencies: - ansi-styles "^6.1.0" - string-width "^5.0.1" - strip-ansi "^7.0.1" - -wrappy@1: - version "1.0.2" - resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" - integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== - -write-file-atomic@^4.0.2: - version "4.0.2" - resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" - integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== - dependencies: - imurmurhash "^0.1.4" - signal-exit "^3.0.7" - -write@1.0.3: - version "1.0.3" - resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" - integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== - dependencies: - mkdirp "^0.5.1" - -ws@^8.13.0: - version "8.17.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.0.tgz#d145d18eca2ed25aaf791a183903f7be5e295fea" - integrity sha512-uJq6108EgZMAl20KagGkzCKfMEjxmKvZHG7Tlq0Z6nOky7YF7aq4mOx6xK8TJ/i1LeK4Qus7INktacctDgY8Ow== - -ws@~8.11.0: - version "8.11.0" - resolved "https://registry.yarnpkg.com/ws/-/ws-8.11.0.tgz#6a0d36b8edfd9f96d8b25683db2f8d7de6e8e143" - integrity sha512-HPG3wQd9sNQoT9xHyNCXoDUa+Xw/VevmY9FoHyQ+g+rrMn4j6FB4np7Z0OhdTgjx6MgQLK7jwSy1YecU1+4Asg== - -x-is-string@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/x-is-string/-/x-is-string-0.1.0.tgz#474b50865af3a49a9c4657f05acd145458f77d82" - integrity sha512-GojqklwG8gpzOVEVki5KudKNoq7MbbjYZCbyWzEz7tyPA7eleiE0+ePwOWQQRb5fm86rD3S8Tc0tSFf3AOv50w== - -xlsx@^0.18.5: - version "0.18.5" - resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.18.5.tgz#16711b9113c848076b8a177022799ad356eba7d0" - integrity sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ== - dependencies: - adler-32 "~1.3.0" - cfb "~1.2.1" - codepage "~1.15.0" - crc-32 "~1.2.1" - ssf "~0.11.2" - wmf "~1.0.1" - word "~0.3.0" - -xml2js@^0.4.17: - version "0.4.23" - resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" - integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug== - dependencies: - sax ">=0.6.0" - xmlbuilder "~11.0.0" - -xmlbuilder@~11.0.0: - version "11.0.1" - resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3" - integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA== - -xtend@^4.0.0, xtend@^4.0.1: - version "4.0.2" - resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" - integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== - -y18n@^4.0.0: - version "4.0.3" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" - integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== - -y18n@^5.0.5: - version "5.0.8" - resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" - integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== - -yallist@^3.0.2: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" - integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== - -yallist@^4.0.0: - version "4.0.0" - resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" - integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== - -yaml@2.3.1: - version "2.3.1" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" - integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== - -yaml@^1.10.0: - version "1.10.2" - resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" - integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== - -yargs-parser@21.1.1, yargs-parser@^21.1.1: - version "21.1.1" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" - integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== - -yargs-parser@^10.0.0: - version "10.1.0" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" - integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== - dependencies: - camelcase "^4.1.0" - -yargs-parser@^18.1.2: - version "18.1.3" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" - integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== - dependencies: - camelcase "^5.0.0" - decamelize "^1.2.0" - -yargs-parser@^20.2.2, yargs-parser@^20.2.3: - version "20.2.9" - resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" - integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== - -yargs@17.7.2, yargs@^17.0.1, yargs@^17.2.1, yargs@^17.6.2: - version "17.7.2" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" - integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== - dependencies: - cliui "^8.0.1" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.3" - y18n "^5.0.5" - yargs-parser "^21.1.1" - -yargs@^15.3.1: - version "15.4.1" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" - integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== - dependencies: - cliui "^6.0.0" - decamelize "^1.2.0" - find-up "^4.1.0" - get-caller-file "^2.0.1" - require-directory "^2.1.1" - require-main-filename "^2.0.0" - set-blocking "^2.0.0" - string-width "^4.2.0" - which-module "^2.0.0" - y18n "^4.0.0" - yargs-parser "^18.1.2" - -yargs@^16.1.1, yargs@^16.2.0: - version "16.2.0" - resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" - integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== - dependencies: - cliui "^7.0.2" - escalade "^3.1.1" - get-caller-file "^2.0.5" - require-directory "^2.1.1" - string-width "^4.2.0" - y18n "^5.0.5" - yargs-parser "^20.2.2" - -yn@3.1.1: - version "3.1.1" - resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" - integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== - -yocto-queue@^0.1.0: - version "0.1.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" - integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== - -yocto-queue@^1.0.0: - version "1.0.0" - resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.0.0.tgz#7f816433fb2cbc511ec8bf7d263c3b58a1a3c251" - integrity sha512-9bnSc/HEW2uRy67wc+T8UwauLuPJVn28jb+GtJY16iiKWyvmYJRXVT4UamsAEGQfPohgr2q4Tq0sQbQlxTfi1g== - -zone.js@0.14.5: - version "0.14.5" - resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.14.5.tgz#7f3591dc4cad1a030cda86b03d10450b719dd460" - integrity sha512-9XYWZzY6PhHOSdkYryNcMm7L8EK7a4q+GbTvxbIA2a9lMdRUpGuyaYvLDcg8D6bdn+JomSsbPcilVKg6SmUx6w== - dependencies: - tslib "^2.3.0" - -zrender@5.4.4: - version "5.4.4" - resolved "https://registry.yarnpkg.com/zrender/-/zrender-5.4.4.tgz#8854f1d95ecc82cf8912f5a11f86657cb8c9e261" - integrity sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw== - dependencies: - tslib "2.3.0" +# THIS IS AN AUTOGENERATED FILE. DO NOT EDIT THIS FILE DIRECTLY. +# yarn lockfile v1 + + +"@ampproject/remapping@2.3.0", "@ampproject/remapping@^2.2.0": + version "2.3.0" + resolved "https://registry.yarnpkg.com/@ampproject/remapping/-/remapping-2.3.0.tgz#ed441b6fa600072520ce18b43d2c8cc8caecc7f4" + integrity sha512-30iZtAPgz+LTIYoeivqYo853f02jBYSd5uGnGpkFV0M3xOt9aN73erkgYAmZU43x4VfqcnLxW9Kpg3R5LC4YYw== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.24" + +"@angular-devkit/architect@0.1703.8": + version "0.1703.8" + resolved "https://registry.yarnpkg.com/@angular-devkit/architect/-/architect-0.1703.8.tgz#2b4f26d9e32ac013931631876b4a7a6926657ad3" + integrity sha512-lKxwG4/QABXZvJpqeSIn/kAwnY6MM9HdHZUV+o5o3UiTi+vO8rZApG4CCaITH3Bxebm7Nam7Xbk8RuukC5rq6g== + dependencies: + "@angular-devkit/core" "17.3.8" + rxjs "7.8.1" + +"@angular-devkit/build-angular@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@angular-devkit/build-angular/-/build-angular-17.3.8.tgz#a19f05909551f79b95711235b1141f83f96fd558" + integrity sha512-ixsdXggWaFRP7Jvxd0AMukImnePuGflT9Yy7NJ9/y0cL/k//S/3RnkQv5i411KzN+7D4RIbNkRGGTYeqH24zlg== + dependencies: + "@ampproject/remapping" "2.3.0" + "@angular-devkit/architect" "0.1703.8" + "@angular-devkit/build-webpack" "0.1703.8" + "@angular-devkit/core" "17.3.8" + "@babel/core" "7.24.0" + "@babel/generator" "7.23.6" + "@babel/helper-annotate-as-pure" "7.22.5" + "@babel/helper-split-export-declaration" "7.22.6" + "@babel/plugin-transform-async-generator-functions" "7.23.9" + "@babel/plugin-transform-async-to-generator" "7.23.3" + "@babel/plugin-transform-runtime" "7.24.0" + "@babel/preset-env" "7.24.0" + "@babel/runtime" "7.24.0" + "@discoveryjs/json-ext" "0.5.7" + "@ngtools/webpack" "17.3.8" + "@vitejs/plugin-basic-ssl" "1.1.0" + ansi-colors "4.1.3" + autoprefixer "10.4.18" + babel-loader "9.1.3" + babel-plugin-istanbul "6.1.1" + browserslist "^4.21.5" + copy-webpack-plugin "11.0.0" + critters "0.0.22" + css-loader "6.10.0" + esbuild-wasm "0.20.1" + fast-glob "3.3.2" + http-proxy-middleware "2.0.6" + https-proxy-agent "7.0.4" + inquirer "9.2.15" + jsonc-parser "3.2.1" + karma-source-map-support "1.4.0" + less "4.2.0" + less-loader "11.1.0" + license-webpack-plugin "4.0.2" + loader-utils "3.2.1" + magic-string "0.30.8" + mini-css-extract-plugin "2.8.1" + mrmime "2.0.0" + open "8.4.2" + ora "5.4.1" + parse5-html-rewriting-stream "7.0.0" + picomatch "4.0.1" + piscina "4.4.0" + postcss "8.4.35" + postcss-loader "8.1.1" + resolve-url-loader "5.0.0" + rxjs "7.8.1" + sass "1.71.1" + sass-loader "14.1.1" + semver "7.6.0" + source-map-loader "5.0.0" + source-map-support "0.5.21" + terser "5.29.1" + tree-kill "1.2.2" + tslib "2.6.2" + undici "6.11.1" + vite "5.1.7" + watchpack "2.4.0" + webpack "5.90.3" + webpack-dev-middleware "6.1.2" + webpack-dev-server "4.15.1" + webpack-merge "5.10.0" + webpack-subresource-integrity "5.1.0" + optionalDependencies: + esbuild "0.20.1" + +"@angular-devkit/build-webpack@0.1703.8": + version "0.1703.8" + resolved "https://registry.yarnpkg.com/@angular-devkit/build-webpack/-/build-webpack-0.1703.8.tgz#d157a5790d5045dd9c312936c3907bd3a184bbfc" + integrity sha512-9u6fl8VVOxcLOEMzrUeaybSvi9hSLSRucHnybneYrabsgreDo32tuy/4G8p6YAHQjpWEj9jvF9Um13ertdni5Q== + dependencies: + "@angular-devkit/architect" "0.1703.8" + rxjs "7.8.1" + +"@angular-devkit/core@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@angular-devkit/core/-/core-17.3.8.tgz#8679cacf84cf79764f027811020e235ab32016d2" + integrity sha512-Q8q0voCGudbdCgJ7lXdnyaxKHbNQBARH68zPQV72WT8NWy+Gw/tys870i6L58NWbBaCJEUcIj/kb6KoakSRu+Q== + dependencies: + ajv "8.12.0" + ajv-formats "2.1.1" + jsonc-parser "3.2.1" + picomatch "4.0.1" + rxjs "7.8.1" + source-map "0.7.4" + +"@angular-devkit/schematics@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@angular-devkit/schematics/-/schematics-17.3.8.tgz#f853eb21682aadfb6667e090b5b509fc95ce8442" + integrity sha512-QRVEYpIfgkprNHc916JlPuNbLzOgrm9DZalHasnLUz4P6g7pR21olb8YCyM2OTJjombNhya9ZpckcADU5Qyvlg== + dependencies: + "@angular-devkit/core" "17.3.8" + jsonc-parser "3.2.1" + magic-string "0.30.8" + ora "5.4.1" + rxjs "7.8.1" + +"@angular-eslint/builder@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/builder/-/builder-17.5.2.tgz#6117970311f578f44ca391d8c321554720468f9a" + integrity sha512-bvegxJuocWeHdvISPfCXeLQPSjrMCEVzxXPg16JJKksKWSeRA1JnbXnfnb7eoLdq1+riMHKqbH6Fs4rORAvUiA== + dependencies: + "@nx/devkit" "^17.2.8 || ^18.0.0 || ^19.0.0" + nx "^17.2.8 || ^18.0.0 || ^19.0.0" + +"@angular-eslint/bundled-angular-compiler@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/bundled-angular-compiler/-/bundled-angular-compiler-17.5.2.tgz#853e3b6d7be4b4adb39cbaf4f6fba34e032095d3" + integrity sha512-K4hVnMyI98faMJmsA4EOBkD0tapDjWV5gy0j/wJ2uSL46d3JgZPZNJSO1zStf/b3kT4gLOlQ/ulWFiUf1DxgIw== + +"@angular-eslint/eslint-plugin-template@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/eslint-plugin-template/-/eslint-plugin-template-17.5.2.tgz#77de90e10fb1606e51bb86e981851d0e6f7cdecc" + integrity sha512-6sxVwrJ7yElZxcjxHSA0Ujs29bCD/cMubd9n6TDFI9e3v+ktpoMW4Nv/TCHv0OuYatIOZ7bcJxi38cAO8Vhfhw== + dependencies: + "@angular-eslint/bundled-angular-compiler" "17.5.2" + "@angular-eslint/utils" "17.5.2" + "@typescript-eslint/type-utils" "7.11.0" + "@typescript-eslint/utils" "7.11.0" + aria-query "5.3.0" + axobject-query "4.0.0" + +"@angular-eslint/eslint-plugin@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/eslint-plugin/-/eslint-plugin-17.5.2.tgz#aac043b59ae27b2e0821b1f9d9e9f4ed52a24309" + integrity sha512-kzPALKyT5XIEbgoNmY/hEZWdMWKTX56Pap9fVLJSC/b+Nd+MXc7TNly2s0XoC0Ru1/kMiVzbmSGPheu/rw+9aA== + dependencies: + "@angular-eslint/bundled-angular-compiler" "17.5.2" + "@angular-eslint/utils" "17.5.2" + "@typescript-eslint/utils" "7.11.0" + +"@angular-eslint/schematics@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/schematics/-/schematics-17.5.2.tgz#99161737d48faa061e8613404bf4e94a54f4c9e0" + integrity sha512-HcvqrBEJfYMTc+fZ6YdRkb+9YcXsy2XSv59Yhd0bBqZ4ZdM4QuuVFxWlLNvhV6TF1DtO24CzpN4OyE+AO5EWBA== + dependencies: + "@angular-eslint/eslint-plugin" "17.5.2" + "@angular-eslint/eslint-plugin-template" "17.5.2" + "@nx/devkit" "^17.2.8 || ^18.0.0 || ^19.0.0" + ignore "5.3.1" + nx "^17.2.8 || ^18.0.0 || ^19.0.0" + strip-json-comments "3.1.1" + tmp "0.2.3" + +"@angular-eslint/template-parser@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/template-parser/-/template-parser-17.5.2.tgz#0306e6f49cd70a155e5dcfb33a245fefa7e474e9" + integrity sha512-46emLElmnIUzW0bpEpSf0u05ofRVUwlfttDOMLedhi700peUKbB9Y6iyz3GzAtQCMklBbJC9nR87LQRH9aSlog== + dependencies: + "@angular-eslint/bundled-angular-compiler" "17.5.2" + eslint-scope "^8.0.0" + +"@angular-eslint/utils@17.5.2": + version "17.5.2" + resolved "https://registry.yarnpkg.com/@angular-eslint/utils/-/utils-17.5.2.tgz#2cf447b17c655ba32112b8a710685447a08c90f9" + integrity sha512-bTMPFqtoetBJsYR/xqREEOCy/CdsKGf2gZkRdH73gG6pOpskWt8J/PbRcMZsC349paV4HFixByVm89inqA0TNg== + dependencies: + "@angular-eslint/bundled-angular-compiler" "17.5.2" + "@typescript-eslint/utils" "7.11.0" + +"@angular/animations@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/animations/-/animations-17.3.10.tgz#f62a728f078a586da27a36c931abb59fc7beb14e" + integrity sha512-9fR5snTuG4aM2K54TG/6DXcKXMDKZMovZhjQOxO8l68/oqn6fKrHs8DLzckFs0XGRZ+2OyURH8WggFm1Z828rA== + dependencies: + tslib "^2.3.0" + +"@angular/cdk@^17.0.0", "@angular/cdk@^17.2.0": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/cdk/-/cdk-17.3.10.tgz#4a3bab529cd65bb19cb89c89b3548dcc534d1a44" + integrity sha512-b1qktT2c1TTTe5nTji/kFAVW92fULK0YhYAvJ+BjZTPKu2FniZNe8o4qqQ0pUuvtMu+ZQxp/QqFYoidIVCjScg== + dependencies: + tslib "^2.3.0" + optionalDependencies: + parse5 "^7.1.2" + +"@angular/cli@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@angular/cli/-/cli-17.3.8.tgz#3673fd5dd4fbc96a6ed57c4e871ac5a92d5702c7" + integrity sha512-X5ZOQ6ZTKVHjhIsfl32ZRqbs+FUoeHLbT7x4fh2Os/8ObDDwrUcCJPqxe2b2RB5E2d0vepYigknHeLE7gwzlNQ== + dependencies: + "@angular-devkit/architect" "0.1703.8" + "@angular-devkit/core" "17.3.8" + "@angular-devkit/schematics" "17.3.8" + "@schematics/angular" "17.3.8" + "@yarnpkg/lockfile" "1.1.0" + ansi-colors "4.1.3" + ini "4.1.2" + inquirer "9.2.15" + jsonc-parser "3.2.1" + npm-package-arg "11.0.1" + npm-pick-manifest "9.0.0" + open "8.4.2" + ora "5.4.1" + pacote "17.0.6" + resolve "1.22.8" + semver "7.6.0" + symbol-observable "4.0.0" + yargs "17.7.2" + +"@angular/common@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/common/-/common-17.3.10.tgz#bd395d94678eba5c4ea42c6bafd8f3151c8c5dc7" + integrity sha512-6SfD21M3LujymmZsZQIxAsV8Bj5u6He6ImZ+p2rr7FAhFxpVJyKldK8LCmJcFsBD4srpQcxEZ0iDxXvg+0ihAw== + dependencies: + tslib "^2.3.0" + +"@angular/compiler-cli@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/compiler-cli/-/compiler-cli-17.3.10.tgz#84a7ee6ac0ab9e924132589a788abfd656f671a6" + integrity sha512-85SBphqRj3szac3FbeYgEZ+I6WaAlo5h7JX06BdjOLLiaoIwlFhLeAuG+jVekseV+95grFUxIsCMphWHi2e6hQ== + dependencies: + "@babel/core" "7.23.9" + "@jridgewell/sourcemap-codec" "^1.4.14" + chokidar "^3.0.0" + convert-source-map "^1.5.1" + reflect-metadata "^0.2.0" + semver "^7.0.0" + tslib "^2.3.0" + yargs "^17.2.1" + +"@angular/compiler@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/compiler/-/compiler-17.3.10.tgz#345bcdc4db45893fd0eca900181230c67499bd1d" + integrity sha512-6Ce4siHyF0fCZBDm/cz+blJByGDu1/hbPkQVGmk5HGZTmCUeKkgyjoM6bZr7ssAsyGDRwxBh2SGHO4Ce31vuPA== + dependencies: + tslib "^2.3.0" + +"@angular/core@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/core/-/core-17.3.10.tgz#129cd916e718c668b84db1cd25d227fa1cf2645a" + integrity sha512-ocEKu7X0yFCOvgJn1uZy76qjhsjKvULrO1k/BuIX0nwhp61DTGYTvCqKmwCBLM8/gvcKYH5vMKMHoQKtiSGE0A== + dependencies: + tslib "^2.3.0" + +"@angular/forms@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/forms/-/forms-17.3.10.tgz#9559ac2eb9411236375b7517c7ef9d3251c8e3c3" + integrity sha512-0VZWSXDi2M3DAGJlpdV3lo73Yo/73GPRqmfTOrvIoUIenFg5Dz6oNGzvt/1aRkRn6HKccjix6iMpH91EN65pWA== + dependencies: + tslib "^2.3.0" + +"@angular/language-service@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/language-service/-/language-service-17.3.10.tgz#935d0bcfc078fcabf685669b5d8a83229cf0b46f" + integrity sha512-6y0yEnjuKGCnH+YxmZZUC/KEb2ZuB5z7y0AOj4PwOladMWSwHv71x1rz5MokBVBf7ZTeN2w89f9jSWBzSz+fPw== + +"@angular/platform-browser-dynamic@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/platform-browser-dynamic/-/platform-browser-dynamic-17.3.10.tgz#00fa7a90919f63e314ad1d687645e5a148084698" + integrity sha512-TW6G4+isdHM2ssQTRTobeAKtR2516pJ25BSwRb+9+Jw/ZAEYOOi+KQyofIFYQccaUjb3+LpjRcaZbtZ9m/Ispg== + dependencies: + tslib "^2.3.0" + +"@angular/platform-browser@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/platform-browser/-/platform-browser-17.3.10.tgz#7c513920fa8dbf52d0f70920101aad6ec71019d4" + integrity sha512-LEhBDOKm2A7nRmZqsafVp6OinRDG1OYZBSqjnT1jZ+f0CRRFIXz6aJ0TMPoU6vq9SLRJ7vrGD9P/eBf2hW00NQ== + dependencies: + tslib "^2.3.0" + +"@angular/router@17.3.10": + version "17.3.10" + resolved "https://registry.yarnpkg.com/@angular/router/-/router-17.3.10.tgz#4cbea96eb5a11ef011a4e4e31cecb7c3c72d8fce" + integrity sha512-HlZlR9BOLoEKGOSMjmL5EfYL7F7PeDifbFi0dYWNcrG8zFrVKFklB1cuBdJhfPZgYhDEoGms/EToD71tg5wliA== + dependencies: + tslib "^2.3.0" + +"@ant-design/colors@^7.0.0": + version "7.1.0" + resolved "https://registry.yarnpkg.com/@ant-design/colors/-/colors-7.1.0.tgz#60eadfa2e21871d8948dac5d50b9f056062f8af3" + integrity sha512-MMoDGWn1y9LdQJQSHiCC20x3uZ3CwQnv9QMz6pCmJOrqdgM9YxsoVVY0wtrdXbmfSgnV0KNk6zi09NAhMR2jvg== + dependencies: + "@ctrl/tinycolor" "^3.6.1" + +"@ant-design/icons-angular@^17.0.0": + version "17.0.0" + resolved "https://registry.yarnpkg.com/@ant-design/icons-angular/-/icons-angular-17.0.0.tgz#5e072f4be7fa0bcef1498be735de8b54ada23620" + integrity sha512-MNEh3UbkSl6gkdb5MQRNHEuWI1DnU1dME9zSymnWCipEXN7MB0mcYHSfyYTqKL1j45ftp6l1UnsLvhokRYyhXA== + dependencies: + "@ant-design/colors" "^7.0.0" + tslib "^2.0.0" + +"@babel/code-frame@^7.0.0", "@babel/code-frame@^7.23.5", "@babel/code-frame@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/code-frame/-/code-frame-7.24.7.tgz#882fd9e09e8ee324e496bd040401c6f046ef4465" + integrity sha512-BcYH1CVJBO9tvyIZ2jVeXgSIMvGZ2FDRvDdOIVQyuklNKSsx+eppDEBq/g47Ayw+RqNFE+URvOShmf+f/qwAlA== + dependencies: + "@babel/highlight" "^7.24.7" + picocolors "^1.0.0" + +"@babel/compat-data@^7.22.6", "@babel/compat-data@^7.23.5", "@babel/compat-data@^7.24.8": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/compat-data/-/compat-data-7.24.9.tgz#53eee4e68f1c1d0282aa0eb05ddb02d033fc43a0" + integrity sha512-e701mcfApCJqMMueQI0Fb68Amflj83+dvAvHawoBpAz+GDjCIyGHzNwnefjsWJ3xiYAqqiQFoWbspGYBdb2/ng== + +"@babel/core@7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.23.9.tgz#b028820718000f267870822fec434820e9b1e4d1" + integrity sha512-5q0175NOjddqpvvzU+kDiSOAk4PfdO6FvwCWoQ6RO7rTzEe8vlo+4HVfcnAREhD4npMs0e9uZypjTwzZPCf/cw== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.6" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.23.9" + "@babel/parser" "^7.23.9" + "@babel/template" "^7.23.9" + "@babel/traverse" "^7.23.9" + "@babel/types" "^7.23.9" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/core@7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.0.tgz#56cbda6b185ae9d9bed369816a8f4423c5f2ff1b" + integrity sha512-fQfkg0Gjkza3nf0c7/w6Xf34BW4YvzNfACRLmmb7XRLa6XHdR+K9AlJlxneFfWYf6uhOzuzZVTjF/8KfndZANw== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.23.5" + "@babel/generator" "^7.23.6" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-module-transforms" "^7.23.3" + "@babel/helpers" "^7.24.0" + "@babel/parser" "^7.24.0" + "@babel/template" "^7.24.0" + "@babel/traverse" "^7.24.0" + "@babel/types" "^7.24.0" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/core@>=7.2.2", "@babel/core@^7.12.3": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/core/-/core-7.24.9.tgz#dc07c9d307162c97fa9484ea997ade65841c7c82" + integrity sha512-5e3FI4Q3M3Pbr21+5xJwCv6ZT6KmGkI0vw3Tozy5ODAQFTIWe37iT8Cr7Ice2Ntb+M3iSKCEWMB1MBgKrW3whg== + dependencies: + "@ampproject/remapping" "^2.2.0" + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.24.9" + "@babel/helper-compilation-targets" "^7.24.8" + "@babel/helper-module-transforms" "^7.24.9" + "@babel/helpers" "^7.24.8" + "@babel/parser" "^7.24.8" + "@babel/template" "^7.24.7" + "@babel/traverse" "^7.24.8" + "@babel/types" "^7.24.9" + convert-source-map "^2.0.0" + debug "^4.1.0" + gensync "^1.0.0-beta.2" + json5 "^2.2.3" + semver "^6.3.1" + +"@babel/generator@7.23.6": + version "7.23.6" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.23.6.tgz#9e1fca4811c77a10580d17d26b57b036133f3c2e" + integrity sha512-qrSfCYxYQB5owCmGLbl8XRpX1ytXlpueOb0N0UmQwA073KZxejgQTzAmJezxvpwQD9uGtK2shHdi55QT+MbjIw== + dependencies: + "@babel/types" "^7.23.6" + "@jridgewell/gen-mapping" "^0.3.2" + "@jridgewell/trace-mapping" "^0.3.17" + jsesc "^2.5.1" + +"@babel/generator@^7.23.6", "@babel/generator@^7.24.8", "@babel/generator@^7.24.9": + version "7.24.10" + resolved "https://registry.yarnpkg.com/@babel/generator/-/generator-7.24.10.tgz#a4ab681ec2a78bbb9ba22a3941195e28a81d8e76" + integrity sha512-o9HBZL1G2129luEUlG1hB4N/nlYNWHnpwlND9eOMclRqqu1YDy2sSYVCFUZwl8I1Gxh+QSRrP2vD7EpUmFVXxg== + dependencies: + "@babel/types" "^7.24.9" + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + jsesc "^2.5.1" + +"@babel/helper-annotate-as-pure@7.22.5": + version "7.22.5" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.22.5.tgz#e7f06737b197d580a01edf75d97e2c8be99d3882" + integrity sha512-LvBTxu8bQSQkcyKOU+a1btnNFQ1dMAd0R6PyW3arXes06F6QLWLIrd681bxRPIXlrMGR3XYnW9JyML7dP3qgxg== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-annotate-as-pure@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-annotate-as-pure/-/helper-annotate-as-pure-7.24.7.tgz#5373c7bc8366b12a033b4be1ac13a206c6656aab" + integrity sha512-BaDeOonYvhdKw+JoMVkAixAAJzG2jVPIwWoKBPdYuY9b452e2rPuI9QPYh3KpofZ3pW2akOmwZLOiOsHMiqRAg== + dependencies: + "@babel/types" "^7.24.7" + +"@babel/helper-builder-binary-assignment-operator-visitor@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-builder-binary-assignment-operator-visitor/-/helper-builder-binary-assignment-operator-visitor-7.24.7.tgz#37d66feb012024f2422b762b9b2a7cfe27c7fba3" + integrity sha512-xZeCVVdwb4MsDBkkyZ64tReWYrLRHlMN72vP7Bdm3OUOuyFZExhsHUUnuWnm2/XOlAJzR0LfPpB56WXZn0X/lA== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-compilation-targets@^7.22.6", "@babel/helper-compilation-targets@^7.23.6", "@babel/helper-compilation-targets@^7.24.7", "@babel/helper-compilation-targets@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-compilation-targets/-/helper-compilation-targets-7.24.8.tgz#b607c3161cd9d1744977d4f97139572fe778c271" + integrity sha512-oU+UoqCHdp+nWVDkpldqIQL/i/bvAv53tRqLG/s+cOXxe66zOYLU7ar/Xs3LdmBihrUMEUhwu6dMZwbNOYDwvw== + dependencies: + "@babel/compat-data" "^7.24.8" + "@babel/helper-validator-option" "^7.24.8" + browserslist "^4.23.1" + lru-cache "^5.1.1" + semver "^6.3.1" + +"@babel/helper-create-class-features-plugin@^7.24.7": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-create-class-features-plugin/-/helper-create-class-features-plugin-7.24.8.tgz#47f546408d13c200c0867f9d935184eaa0851b09" + integrity sha512-4f6Oqnmyp2PP3olgUMmOwC3akxSm5aBYraQ6YDdKy7NcAMkDECHWG0DEnV6M2UAkERgIBhYt8S27rURPg7SxWA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.7" + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-function-name" "^7.24.7" + "@babel/helper-member-expression-to-functions" "^7.24.8" + "@babel/helper-optimise-call-expression" "^7.24.7" + "@babel/helper-replace-supers" "^7.24.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/helper-split-export-declaration" "^7.24.7" + semver "^6.3.1" + +"@babel/helper-create-regexp-features-plugin@^7.18.6", "@babel/helper-create-regexp-features-plugin@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-create-regexp-features-plugin/-/helper-create-regexp-features-plugin-7.24.7.tgz#be4f435a80dc2b053c76eeb4b7d16dd22cfc89da" + integrity sha512-03TCmXy2FtXJEZfbXDTSqq1fRJArk7lX9DOFC/47VthYcxyIOx+eXQmdo6DOQvrbpIix+KfXwvuXdFDZHxt+rA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.7" + regexpu-core "^5.3.1" + semver "^6.3.1" + +"@babel/helper-define-polyfill-provider@^0.5.0": + version "0.5.0" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.5.0.tgz#465805b7361f461e86c680f1de21eaf88c25901b" + integrity sha512-NovQquuQLAQ5HuyjCz7WQP9MjRj7dx++yspwiyUiGl9ZyadHRSql1HZh5ogRd8W8w6YM6EQ/NTB8rgjLt5W65Q== + dependencies: + "@babel/helper-compilation-targets" "^7.22.6" + "@babel/helper-plugin-utils" "^7.22.5" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + +"@babel/helper-define-polyfill-provider@^0.6.2": + version "0.6.2" + resolved "https://registry.yarnpkg.com/@babel/helper-define-polyfill-provider/-/helper-define-polyfill-provider-0.6.2.tgz#18594f789c3594acb24cfdb4a7f7b7d2e8bd912d" + integrity sha512-LV76g+C502biUK6AyZ3LK10vDpDyCzZnhZFXkH1L75zHPj68+qc8Zfpx2th+gzwA2MzyK+1g/3EPl62yFnVttQ== + dependencies: + "@babel/helper-compilation-targets" "^7.22.6" + "@babel/helper-plugin-utils" "^7.22.5" + debug "^4.1.1" + lodash.debounce "^4.0.8" + resolve "^1.14.2" + +"@babel/helper-environment-visitor@^7.22.20", "@babel/helper-environment-visitor@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-environment-visitor/-/helper-environment-visitor-7.24.7.tgz#4b31ba9551d1f90781ba83491dd59cf9b269f7d9" + integrity sha512-DoiN84+4Gnd0ncbBOM9AZENV4a5ZiL39HYMyZJGZ/AZEykHYdJw0wW3kdcsh9/Kn+BRXHLkkklZ51ecPKmI1CQ== + dependencies: + "@babel/types" "^7.24.7" + +"@babel/helper-function-name@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-function-name/-/helper-function-name-7.24.7.tgz#75f1e1725742f39ac6584ee0b16d94513da38dd2" + integrity sha512-FyoJTsj/PEUWu1/TYRiXTIHc8lbw+TDYkZuoE43opPS5TrI7MyONBE1oNvfguEXAD9yhQRrVBnXdXzSLQl9XnA== + dependencies: + "@babel/template" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-hoist-variables@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-hoist-variables/-/helper-hoist-variables-7.24.7.tgz#b4ede1cde2fd89436397f30dc9376ee06b0f25ee" + integrity sha512-MJJwhkoGy5c4ehfoRyrJ/owKeMl19U54h27YYftT0o2teQ3FJ3nQUf/I3LlJsX4l3qlw7WRXUmiyajvHXoTubQ== + dependencies: + "@babel/types" "^7.24.7" + +"@babel/helper-member-expression-to-functions@^7.24.7", "@babel/helper-member-expression-to-functions@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-member-expression-to-functions/-/helper-member-expression-to-functions-7.24.8.tgz#6155e079c913357d24a4c20480db7c712a5c3fb6" + integrity sha512-LABppdt+Lp/RlBxqrh4qgf1oEH/WxdzQNDJIu5gC/W1GyvPVrOBiItmmM8wan2fm4oYqFuFfkXmlGpLQhPY8CA== + dependencies: + "@babel/traverse" "^7.24.8" + "@babel/types" "^7.24.8" + +"@babel/helper-module-imports@^7.22.15", "@babel/helper-module-imports@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-module-imports/-/helper-module-imports-7.24.7.tgz#f2f980392de5b84c3328fc71d38bd81bbb83042b" + integrity sha512-8AyH3C+74cgCVVXow/myrynrAGv+nTVg5vKu2nZph9x7RcRwzmh0VFallJuFTZ9mx6u4eSdXZfcOzSqTUm0HCA== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-module-transforms@^7.23.3", "@babel/helper-module-transforms@^7.24.7", "@babel/helper-module-transforms@^7.24.8", "@babel/helper-module-transforms@^7.24.9": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/helper-module-transforms/-/helper-module-transforms-7.24.9.tgz#e13d26306b89eea569180868e652e7f514de9d29" + integrity sha512-oYbh+rtFKj/HwBQkFlUzvcybzklmVdVV3UU+mN7n2t/q3yGHbuVdNxyFvSBO1tfvjyArpHNcWMAzsSPdyI46hw== + dependencies: + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-module-imports" "^7.24.7" + "@babel/helper-simple-access" "^7.24.7" + "@babel/helper-split-export-declaration" "^7.24.7" + "@babel/helper-validator-identifier" "^7.24.7" + +"@babel/helper-optimise-call-expression@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-optimise-call-expression/-/helper-optimise-call-expression-7.24.7.tgz#8b0a0456c92f6b323d27cfd00d1d664e76692a0f" + integrity sha512-jKiTsW2xmWwxT1ixIdfXUZp+P5yURx2suzLZr5Hi64rURpDYdMW0pv+Uf17EYk2Rd428Lx4tLsnjGJzYKDM/6A== + dependencies: + "@babel/types" "^7.24.7" + +"@babel/helper-plugin-utils@^7.0.0", "@babel/helper-plugin-utils@^7.10.4", "@babel/helper-plugin-utils@^7.12.13", "@babel/helper-plugin-utils@^7.14.5", "@babel/helper-plugin-utils@^7.18.6", "@babel/helper-plugin-utils@^7.22.5", "@babel/helper-plugin-utils@^7.24.0", "@babel/helper-plugin-utils@^7.24.7", "@babel/helper-plugin-utils@^7.24.8", "@babel/helper-plugin-utils@^7.8.0", "@babel/helper-plugin-utils@^7.8.3": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-plugin-utils/-/helper-plugin-utils-7.24.8.tgz#94ee67e8ec0e5d44ea7baeb51e571bd26af07878" + integrity sha512-FFWx5142D8h2Mgr/iPVGH5G7w6jDn4jUSpZTyDnQO0Yn7Ks2Kuz6Pci8H6MPCoUJegd/UZQ3tAvfLCxQSnWWwg== + +"@babel/helper-remap-async-to-generator@^7.22.20", "@babel/helper-remap-async-to-generator@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-remap-async-to-generator/-/helper-remap-async-to-generator-7.24.7.tgz#b3f0f203628522713849d49403f1a414468be4c7" + integrity sha512-9pKLcTlZ92hNZMQfGCHImUpDOlAgkkpqalWEeftW5FBya75k8Li2ilerxkM/uBEj01iBZXcCIB/bwvDYgWyibA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.7" + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-wrap-function" "^7.24.7" + +"@babel/helper-replace-supers@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-replace-supers/-/helper-replace-supers-7.24.7.tgz#f933b7eed81a1c0265740edc91491ce51250f765" + integrity sha512-qTAxxBM81VEyoAY0TtLrx1oAEJc09ZK67Q9ljQToqCnA+55eNwCORaxlKyu+rNfX86o8OXRUSNUnrtsAZXM9sg== + dependencies: + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-member-expression-to-functions" "^7.24.7" + "@babel/helper-optimise-call-expression" "^7.24.7" + +"@babel/helper-simple-access@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-simple-access/-/helper-simple-access-7.24.7.tgz#bcade8da3aec8ed16b9c4953b74e506b51b5edb3" + integrity sha512-zBAIvbCMh5Ts+b86r/CjU+4XGYIs+R1j951gxI3KmmxBMhCg4oQMsv6ZXQ64XOm/cvzfU1FmoCyt6+owc5QMYg== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-skip-transparent-expression-wrappers@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-skip-transparent-expression-wrappers/-/helper-skip-transparent-expression-wrappers-7.24.7.tgz#5f8fa83b69ed5c27adc56044f8be2b3ea96669d9" + integrity sha512-IO+DLT3LQUElMbpzlatRASEyQtfhSE0+m465v++3jyyXeBTBUjtVZg28/gHeV5mrTJqvEKhKroBGAvhW+qPHiQ== + dependencies: + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helper-split-export-declaration@7.22.6": + version "7.22.6" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.22.6.tgz#322c61b7310c0997fe4c323955667f18fcefb91c" + integrity sha512-AsUnxuLhRYsisFiaJwvp1QF+I3KjD5FOxut14q/GzovUe6orHLesW2C7d754kRm53h5gqrz6sFl6sxc4BVtE/g== + dependencies: + "@babel/types" "^7.22.5" + +"@babel/helper-split-export-declaration@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-split-export-declaration/-/helper-split-export-declaration-7.24.7.tgz#83949436890e07fa3d6873c61a96e3bbf692d856" + integrity sha512-oy5V7pD+UvfkEATUKvIjvIAH/xCzfsFVw7ygW2SI6NClZzquT+mwdTfgfdbUiceh6iQO0CHtCPsyze/MZ2YbAA== + dependencies: + "@babel/types" "^7.24.7" + +"@babel/helper-string-parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-string-parser/-/helper-string-parser-7.24.8.tgz#5b3329c9a58803d5df425e5785865881a81ca48d" + integrity sha512-pO9KhhRcuUyGnJWwyEgnRJTSIZHiT+vMD0kPeD+so0l7mxkMT19g3pjY9GTnHySck/hDzq+dtW/4VgnMkippsQ== + +"@babel/helper-validator-identifier@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.24.7.tgz#75b889cfaf9e35c2aaf42cf0d72c8e91719251db" + integrity sha512-rR+PBcQ1SMQDDyF6X0wxtG8QyLCgUB0eRAGguqRLfkCA87l7yAP7ehq8SNj96OOGTO8OBV70KhuFYcIkHXOg0w== + +"@babel/helper-validator-option@^7.23.5", "@babel/helper-validator-option@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helper-validator-option/-/helper-validator-option-7.24.8.tgz#3725cdeea8b480e86d34df15304806a06975e33d" + integrity sha512-xb8t9tD1MHLungh/AIoWYN+gVHaB9kwlu8gffXGSt3FFEIT7RjS+xWbc2vUD1UTZdIpKj/ab3rdqJ7ufngyi2Q== + +"@babel/helper-wrap-function@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/helper-wrap-function/-/helper-wrap-function-7.24.7.tgz#52d893af7e42edca7c6d2c6764549826336aae1f" + integrity sha512-N9JIYk3TD+1vq/wn77YnJOqMtfWhNewNE+DJV4puD2X7Ew9J4JvrzrFDfTfyv5EgEXVy9/Wt8QiOErzEmv5Ifw== + dependencies: + "@babel/helper-function-name" "^7.24.7" + "@babel/template" "^7.24.7" + "@babel/traverse" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/helpers@^7.23.9", "@babel/helpers@^7.24.0", "@babel/helpers@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/helpers/-/helpers-7.24.8.tgz#2820d64d5d6686cca8789dd15b074cd862795873" + integrity sha512-gV2265Nkcz7weJJfvDoAEVzC1e2OTDpkGbEsebse8koXUJUXPsCMi7sRo/+SPMuMZ9MtUPnGwITTnQnU5YjyaQ== + dependencies: + "@babel/template" "^7.24.7" + "@babel/types" "^7.24.8" + +"@babel/highlight@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/highlight/-/highlight-7.24.7.tgz#a05ab1df134b286558aae0ed41e6c5f731bf409d" + integrity sha512-EStJpq4OuY8xYfhGVXngigBJRWxftKX9ksiGDnmlY3o7B/V7KIAc9X4oiK87uPJSc/vs5L869bem5fhZa8caZw== + dependencies: + "@babel/helper-validator-identifier" "^7.24.7" + chalk "^2.4.2" + js-tokens "^4.0.0" + picocolors "^1.0.0" + +"@babel/parser@^7.14.7", "@babel/parser@^7.23.9", "@babel/parser@^7.24.0", "@babel/parser@^7.24.7", "@babel/parser@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/parser/-/parser-7.24.8.tgz#58a4dbbcad7eb1d48930524a3fd93d93e9084c6f" + integrity sha512-WzfbgXOkGzZiXXCqk43kKwZjzwx4oulxZi3nq2TYL9mOjQv6kYwul9mz6ID36njuL7Xkp6nJEfok848Zj10j/w== + +"@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression/-/plugin-bugfix-safari-id-destructuring-collision-in-function-expression-7.24.7.tgz#468096ca44bbcbe8fcc570574e12eb1950e18107" + integrity sha512-unaQgZ/iRu/By6tsjMZzpeBZjChYfLYry6HrEXPoz3KmfF0sVBQ1l8zKMQ4xRGLWVsjuvB8nQfjNP/DcfEOCsg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining/-/plugin-bugfix-v8-spread-parameters-in-optional-chaining-7.24.7.tgz#e4eabdd5109acc399b38d7999b2ef66fc2022f89" + integrity sha512-+izXIbke1T33mY4MSNnrqhPXDz01WYhEf3yF5NbnUtkiNnm+XBZJl3kNfoK6NKmYlz/D07+l2GWVK/QfDkNCuQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/plugin-transform-optional-chaining" "^7.24.7" + +"@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly@^7.23.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly/-/plugin-bugfix-v8-static-class-fields-redefine-readonly-7.24.7.tgz#71b21bb0286d5810e63a1538aa901c58e87375ec" + integrity sha512-utA4HuR6F4Vvcr+o4DnjL8fCOlgRFGbeeBEGNg3ZTrLFw6VWG5XmUrvcQ0FjIYMU2ST4XcR2Wsp7t9qOAPnxMg== + dependencies: + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-proposal-private-property-in-object@7.21.0-placeholder-for-preset-env.2": + version "7.21.0-placeholder-for-preset-env.2" + resolved "https://registry.yarnpkg.com/@babel/plugin-proposal-private-property-in-object/-/plugin-proposal-private-property-in-object-7.21.0-placeholder-for-preset-env.2.tgz#7844f9289546efa9febac2de4cfe358a050bd703" + integrity sha512-SOSkfJDddaM7mak6cPEpswyTRnuRltl429hMraQEglW+OkovnCzsiszTmsrlY//qLFjCpQDFRvjdm2wA5pPm9w== + +"@babel/plugin-syntax-async-generators@^7.8.4": + version "7.8.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-async-generators/-/plugin-syntax-async-generators-7.8.4.tgz#a983fb1aeb2ec3f6ed042a210f640e90e786fe0d" + integrity sha512-tycmZxkGfZaxhMRbXlPXuVFpdWlXpir2W4AMhSJgRKzk/eDlIXOhb2LHWoLpDF7TEHylV5zNhykX6KAgHJmTNw== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-class-properties@^7.12.13": + version "7.12.13" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-properties/-/plugin-syntax-class-properties-7.12.13.tgz#b5c987274c4a3a82b89714796931a6b53544ae10" + integrity sha512-fm4idjKla0YahUNgFNLCB0qySdsoPiZP3iQE3rky0mBUtMZ23yDJ9SJdg6dXTSDnulOVqiF3Hgr9nbXvXTQZYA== + dependencies: + "@babel/helper-plugin-utils" "^7.12.13" + +"@babel/plugin-syntax-class-static-block@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-class-static-block/-/plugin-syntax-class-static-block-7.14.5.tgz#195df89b146b4b78b3bf897fd7a257c84659d406" + integrity sha512-b+YyPmr6ldyNnM6sqYeMWE+bgJcJpO6yS4QD7ymxgH34GBPNDM/THBh8iunyvKIZztiwLH4CJZ0RxTk9emgpjw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-dynamic-import@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-dynamic-import/-/plugin-syntax-dynamic-import-7.8.3.tgz#62bf98b2da3cd21d626154fc96ee5b3cb68eacb3" + integrity sha512-5gdGbFon+PszYzqs83S3E5mpi7/y/8M9eC90MRTZfduQOYW76ig6SOSPNe41IG5LoP3FGBn2N0RjVDSQiS94kQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-export-namespace-from@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-export-namespace-from/-/plugin-syntax-export-namespace-from-7.8.3.tgz#028964a9ba80dbc094c915c487ad7c4e7a66465a" + integrity sha512-MXf5laXo6c1IbEbegDmzGPwGNTsHZmEy6QGznu5Sh2UCWvueywb2ee+CCE4zQiZstxU9BMoQO9i6zUFSY0Kj0Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.3" + +"@babel/plugin-syntax-import-assertions@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-assertions/-/plugin-syntax-import-assertions-7.24.7.tgz#2a0b406b5871a20a841240586b1300ce2088a778" + integrity sha512-Ec3NRUMoi8gskrkBe3fNmEQfxDvY8bgfQpz6jlk/41kX9eUjvpyqWU7PBP/pLAvMaSQjbMNKJmvX57jP+M6bPg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-syntax-import-attributes@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-attributes/-/plugin-syntax-import-attributes-7.24.7.tgz#b4f9ea95a79e6912480c4b626739f86a076624ca" + integrity sha512-hbX+lKKeUMGihnK8nvKqmXBInriT3GVjzXKFriV3YC6APGxMbP8RZNFwy91+hocLXq90Mta+HshoB31802bb8A== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-syntax-import-meta@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-import-meta/-/plugin-syntax-import-meta-7.10.4.tgz#ee601348c370fa334d2207be158777496521fd51" + integrity sha512-Yqfm+XDx0+Prh3VSeEQCPU81yC+JWZ2pDPFSS4ZdpfZhp4MkFMaDC1UqseovEKwSUpnIL7+vK+Clp7bfh0iD7g== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-json-strings@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-json-strings/-/plugin-syntax-json-strings-7.8.3.tgz#01ca21b668cd8218c9e640cb6dd88c5412b2c96a" + integrity sha512-lY6kdGpWHvjoe2vk4WrAapEuBR69EMxZl+RoGRhrFGNYVK8mOPAW8VfbT/ZgrFbXlDNiiaxQnAtgVCZ6jv30EA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-logical-assignment-operators@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-logical-assignment-operators/-/plugin-syntax-logical-assignment-operators-7.10.4.tgz#ca91ef46303530448b906652bac2e9fe9941f699" + integrity sha512-d8waShlpFDinQ5MtvGU9xDAOzKH47+FFoney2baFIoMr952hKOLp1HR7VszoZvOsV/4+RRszNY7D17ba0te0ig== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-nullish-coalescing-operator@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-nullish-coalescing-operator/-/plugin-syntax-nullish-coalescing-operator-7.8.3.tgz#167ed70368886081f74b5c36c65a88c03b66d1a9" + integrity sha512-aSff4zPII1u2QD7y+F8oDsz19ew4IGEJg9SVW+bqwpwtfFleiQDMdzA/R+UlWDzfnHFCxxleFT0PMIrR36XLNQ== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-numeric-separator@^7.10.4": + version "7.10.4" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-numeric-separator/-/plugin-syntax-numeric-separator-7.10.4.tgz#b9b070b3e33570cd9fd07ba7fa91c0dd37b9af97" + integrity sha512-9H6YdfkcK/uOnY/K7/aA2xpzaAgkQn37yzWUMRK7OaPOqOpGS1+n0H5hxT9AUw9EsSjPW8SVyMJwYRtWs3X3ug== + dependencies: + "@babel/helper-plugin-utils" "^7.10.4" + +"@babel/plugin-syntax-object-rest-spread@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-object-rest-spread/-/plugin-syntax-object-rest-spread-7.8.3.tgz#60e225edcbd98a640332a2e72dd3e66f1af55871" + integrity sha512-XoqMijGZb9y3y2XskN+P1wUGiVwWZ5JmoDRwx5+3GmEplNyVM2s2Dg8ILFQm8rWM48orGy5YpI5Bl8U1y7ydlA== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-catch-binding@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-catch-binding/-/plugin-syntax-optional-catch-binding-7.8.3.tgz#6111a265bcfb020eb9efd0fdfd7d26402b9ed6c1" + integrity sha512-6VPD0Pc1lpTqw0aKoeRTMiB+kWhAoT24PA+ksWSBrFtl5SIRVpZlwN3NNPQjehA2E/91FV3RjLWoVTglWcSV3Q== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-optional-chaining@^7.8.3": + version "7.8.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-optional-chaining/-/plugin-syntax-optional-chaining-7.8.3.tgz#4f69c2ab95167e0180cd5336613f8c5788f7d48a" + integrity sha512-KoK9ErH1MBlCPxV0VANkXW2/dw4vlbGDrFgz8bmUsBGYkFRcbRwMh6cIJubdPrkxRwuGdtCk0v/wPTKbQgBjkg== + dependencies: + "@babel/helper-plugin-utils" "^7.8.0" + +"@babel/plugin-syntax-private-property-in-object@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-private-property-in-object/-/plugin-syntax-private-property-in-object-7.14.5.tgz#0dc6671ec0ea22b6e94a1114f857970cd39de1ad" + integrity sha512-0wVnp9dxJ72ZUJDV27ZfbSj6iHLoytYZmh3rFcxNnvsJF3ktkzLDZPy/mA17HGsaQT3/DQsWYX1f1QGWkCoVUg== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-top-level-await@^7.14.5": + version "7.14.5" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-top-level-await/-/plugin-syntax-top-level-await-7.14.5.tgz#c1cfdadc35a646240001f06138247b741c34d94c" + integrity sha512-hx++upLv5U1rgYfwe1xBQUhRmU41NEvpUvrp8jkrSCdvGSnM5/qdRMtylJ6PG5OFkBaHkbTAKTnd3/YyESRHFw== + dependencies: + "@babel/helper-plugin-utils" "^7.14.5" + +"@babel/plugin-syntax-unicode-sets-regex@^7.18.6": + version "7.18.6" + resolved "https://registry.yarnpkg.com/@babel/plugin-syntax-unicode-sets-regex/-/plugin-syntax-unicode-sets-regex-7.18.6.tgz#d49a3b3e6b52e5be6740022317580234a6a47357" + integrity sha512-727YkEAPwSIQTv5im8QHz3upqp92JTWhidIC81Tdx4VJYIte/VndKf1qKrfnnhPLiPghStWfvC/iFaMCQu7Nqg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.18.6" + "@babel/helper-plugin-utils" "^7.18.6" + +"@babel/plugin-transform-arrow-functions@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-arrow-functions/-/plugin-transform-arrow-functions-7.24.7.tgz#4f6886c11e423bd69f3ce51dbf42424a5f275514" + integrity sha512-Dt9LQs6iEY++gXUwY03DNFat5C2NbO48jj+j/bSAz6b3HgPs39qcPiYt77fDObIcFwj3/C2ICX9YMwGflUoSHQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-async-generator-functions@7.23.9": + version "7.23.9" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.23.9.tgz#9adaeb66fc9634a586c5df139c6240d41ed801ce" + integrity sha512-8Q3veQEDGe14dTYuwagbRtwxQDnytyg1JFu4/HwEMETeofocrB0U0ejBJIXoeG/t2oXZ8kzCyI0ZZfbT80VFNQ== + dependencies: + "@babel/helper-environment-visitor" "^7.22.20" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-remap-async-to-generator" "^7.22.20" + "@babel/plugin-syntax-async-generators" "^7.8.4" + +"@babel/plugin-transform-async-generator-functions@^7.23.9": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-generator-functions/-/plugin-transform-async-generator-functions-7.24.7.tgz#7330a5c50e05181ca52351b8fd01642000c96cfd" + integrity sha512-o+iF77e3u7ZS4AoAuJvapz9Fm001PuD2V3Lp6OSE4FYQke+cSewYtnek+THqGRWyQloRCyvWL1OkyfNEl9vr/g== + dependencies: + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-remap-async-to-generator" "^7.24.7" + "@babel/plugin-syntax-async-generators" "^7.8.4" + +"@babel/plugin-transform-async-to-generator@7.23.3": + version "7.23.3" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.23.3.tgz#d1f513c7a8a506d43f47df2bf25f9254b0b051fa" + integrity sha512-A7LFsKi4U4fomjqXJlZg/u0ft/n8/7n7lpffUP/ZULx/DtV9SGlNKZolHH6PE8Xl1ngCc0M11OaeZptXVkfKSw== + dependencies: + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.22.5" + "@babel/helper-remap-async-to-generator" "^7.22.20" + +"@babel/plugin-transform-async-to-generator@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-async-to-generator/-/plugin-transform-async-to-generator-7.24.7.tgz#72a3af6c451d575842a7e9b5a02863414355bdcc" + integrity sha512-SQY01PcJfmQ+4Ash7NE+rpbLFbmqA2GPIgqzxfFTL4t1FKRq4zTms/7htKpoCUI9OcFYgzqfmCdH53s6/jn5fA== + dependencies: + "@babel/helper-module-imports" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-remap-async-to-generator" "^7.24.7" + +"@babel/plugin-transform-block-scoped-functions@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoped-functions/-/plugin-transform-block-scoped-functions-7.24.7.tgz#a4251d98ea0c0f399dafe1a35801eaba455bbf1f" + integrity sha512-yO7RAz6EsVQDaBH18IDJcMB1HnrUn2FJ/Jslc/WtPPWcjhpUJXU/rjbwmluzp7v/ZzWcEhTMXELnnsz8djWDwQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-block-scoping@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-block-scoping/-/plugin-transform-block-scoping-7.24.7.tgz#42063e4deb850c7bd7c55e626bf4e7ab48e6ce02" + integrity sha512-Nd5CvgMbWc+oWzBsuaMcbwjJWAcp5qzrbg69SZdHSP7AMY0AbWFqFO0WTFCA1jxhMCwodRwvRec8k0QUbZk7RQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-class-properties@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-properties/-/plugin-transform-class-properties-7.24.7.tgz#256879467b57b0b68c7ddfc5b76584f398cd6834" + integrity sha512-vKbfawVYayKcSeSR5YYzzyXvsDFWU2mD8U5TFeXtbCPLFUqe7GyCgvO6XDHzje862ODrOwy6WCPmKeWHbCFJ4w== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-class-static-block@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-class-static-block/-/plugin-transform-class-static-block-7.24.7.tgz#c82027ebb7010bc33c116d4b5044fbbf8c05484d" + integrity sha512-HMXK3WbBPpZQufbMG4B46A90PkuuhN9vBCb5T8+VAHqvAqvcLi+2cKoukcpmUYkszLhScU3l1iudhrks3DggRQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + +"@babel/plugin-transform-classes@^7.23.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-classes/-/plugin-transform-classes-7.24.8.tgz#ad23301fe5bc153ca4cf7fb572a9bc8b0b711cf7" + integrity sha512-VXy91c47uujj758ud9wx+OMgheXm4qJfyhj1P18YvlrQkNOSrwsteHk+EFS3OMGfhMhpZa0A+81eE7G4QC+3CA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.7" + "@babel/helper-compilation-targets" "^7.24.8" + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-function-name" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-replace-supers" "^7.24.7" + "@babel/helper-split-export-declaration" "^7.24.7" + globals "^11.1.0" + +"@babel/plugin-transform-computed-properties@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-computed-properties/-/plugin-transform-computed-properties-7.24.7.tgz#4cab3214e80bc71fae3853238d13d097b004c707" + integrity sha512-25cS7v+707Gu6Ds2oY6tCkUwsJ9YIDbggd9+cu9jzzDgiNq7hR/8dkzxWfKWnTic26vsI3EsCXNd4iEB6e8esQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/template" "^7.24.7" + +"@babel/plugin-transform-destructuring@^7.23.3": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-destructuring/-/plugin-transform-destructuring-7.24.8.tgz#c828e814dbe42a2718a838c2a2e16a408e055550" + integrity sha512-36e87mfY8TnRxc7yc6M9g9gOB7rKgSahqkIKwLpz4Ppk2+zC2Cy1is0uwtuSG6AE4zlTOUa+7JGz9jCJGLqQFQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" + +"@babel/plugin-transform-dotall-regex@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dotall-regex/-/plugin-transform-dotall-regex-7.24.7.tgz#5f8bf8a680f2116a7207e16288a5f974ad47a7a0" + integrity sha512-ZOA3W+1RRTSWvyqcMJDLqbchh7U4NRGqwRfFSVbOLS/ePIP4vHB5e8T8eXcuqyN1QkgKyj5wuW0lcS85v4CrSw== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-duplicate-keys@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-duplicate-keys/-/plugin-transform-duplicate-keys-7.24.7.tgz#dd20102897c9a2324e5adfffb67ff3610359a8ee" + integrity sha512-JdYfXyCRihAe46jUIliuL2/s0x0wObgwwiGxw/UbgJBr20gQBThrokO4nYKgWkD7uBaqM7+9x5TU7NkExZJyzw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-dynamic-import@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-dynamic-import/-/plugin-transform-dynamic-import-7.24.7.tgz#4d8b95e3bae2b037673091aa09cd33fecd6419f4" + integrity sha512-sc3X26PhZQDb3JhORmakcbvkeInvxz+A8oda99lj7J60QRuPZvNAk9wQlTBS1ZynelDrDmTU4pw1tyc5d5ZMUg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + +"@babel/plugin-transform-exponentiation-operator@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-exponentiation-operator/-/plugin-transform-exponentiation-operator-7.24.7.tgz#b629ee22645f412024297d5245bce425c31f9b0d" + integrity sha512-Rqe/vSc9OYgDajNIK35u7ot+KeCoetqQYFXM4Epf7M7ez3lWlOjrDjrwMei6caCVhfdw+mIKD4cgdGNy5JQotQ== + dependencies: + "@babel/helper-builder-binary-assignment-operator-visitor" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-export-namespace-from@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-export-namespace-from/-/plugin-transform-export-namespace-from-7.24.7.tgz#176d52d8d8ed516aeae7013ee9556d540c53f197" + integrity sha512-v0K9uNYsPL3oXZ/7F9NNIbAj2jv1whUEtyA6aujhekLs56R++JDQuzRcP2/z4WX5Vg/c5lE9uWZA0/iUoFhLTA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + +"@babel/plugin-transform-for-of@^7.23.6": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-for-of/-/plugin-transform-for-of-7.24.7.tgz#f25b33f72df1d8be76399e1b8f3f9d366eb5bc70" + integrity sha512-wo9ogrDG1ITTTBsy46oGiN1dS9A7MROBTcYsfS8DtsImMkHk9JXJ3EWQM6X2SUw4x80uGPlwj0o00Uoc6nEE3g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + +"@babel/plugin-transform-function-name@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-function-name/-/plugin-transform-function-name-7.24.7.tgz#6d8601fbffe665c894440ab4470bc721dd9131d6" + integrity sha512-U9FcnA821YoILngSmYkW6FjyQe2TyZD5pHt4EVIhmcTkrJw/3KqcrRSxuOo5tFZJi7TE19iDyI1u+weTI7bn2w== + dependencies: + "@babel/helper-compilation-targets" "^7.24.7" + "@babel/helper-function-name" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-json-strings@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-json-strings/-/plugin-transform-json-strings-7.24.7.tgz#f3e9c37c0a373fee86e36880d45b3664cedaf73a" + integrity sha512-2yFnBGDvRuxAaE/f0vfBKvtnvvqU8tGpMHqMNpTN2oWMKIR3NqFkjaAgGwawhqK/pIN2T3XdjGPdaG0vDhOBGw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-json-strings" "^7.8.3" + +"@babel/plugin-transform-literals@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-literals/-/plugin-transform-literals-7.24.7.tgz#36b505c1e655151a9d7607799a9988fc5467d06c" + integrity sha512-vcwCbb4HDH+hWi8Pqenwnjy+UiklO4Kt1vfspcQYFhJdpthSnW8XvWGyDZWKNVrVbVViI/S7K9PDJZiUmP2fYQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-logical-assignment-operators@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-logical-assignment-operators/-/plugin-transform-logical-assignment-operators-7.24.7.tgz#a58fb6eda16c9dc8f9ff1c7b1ba6deb7f4694cb0" + integrity sha512-4D2tpwlQ1odXmTEIFWy9ELJcZHqrStlzK/dAOWYyxX3zT0iXQB6banjgeOJQXzEc4S0E0a5A+hahxPaEFYftsw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + +"@babel/plugin-transform-member-expression-literals@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-member-expression-literals/-/plugin-transform-member-expression-literals-7.24.7.tgz#3b4454fb0e302e18ba4945ba3246acb1248315df" + integrity sha512-T/hRC1uqrzXMKLQ6UCwMT85S3EvqaBXDGf0FaMf4446Qx9vKwlghvee0+uuZcDUCZU5RuNi4781UQ7R308zzBw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-modules-amd@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-amd/-/plugin-transform-modules-amd-7.24.7.tgz#65090ed493c4a834976a3ca1cde776e6ccff32d7" + integrity sha512-9+pB1qxV3vs/8Hdmz/CulFB8w2tuu6EB94JZFsjdqxQokwGa9Unap7Bo2gGBGIvPmDIVvQrom7r5m/TCDMURhg== + dependencies: + "@babel/helper-module-transforms" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-modules-commonjs@^7.23.3": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-commonjs/-/plugin-transform-modules-commonjs-7.24.8.tgz#ab6421e564b717cb475d6fff70ae7f103536ea3c" + integrity sha512-WHsk9H8XxRs3JXKWFiqtQebdh9b/pTk4EgueygFzYlTKAg0Ud985mSevdNjdXdFBATSKVJGQXP1tv6aGbssLKA== + dependencies: + "@babel/helper-module-transforms" "^7.24.8" + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-simple-access" "^7.24.7" + +"@babel/plugin-transform-modules-systemjs@^7.23.9": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-systemjs/-/plugin-transform-modules-systemjs-7.24.7.tgz#f8012316c5098f6e8dee6ecd58e2bc6f003d0ce7" + integrity sha512-GYQE0tW7YoaN13qFh3O1NCY4MPkUiAH3fiF7UcV/I3ajmDKEdG3l+UOcbAm4zUE3gnvUU+Eni7XrVKo9eO9auw== + dependencies: + "@babel/helper-hoist-variables" "^7.24.7" + "@babel/helper-module-transforms" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-validator-identifier" "^7.24.7" + +"@babel/plugin-transform-modules-umd@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-modules-umd/-/plugin-transform-modules-umd-7.24.7.tgz#edd9f43ec549099620df7df24e7ba13b5c76efc8" + integrity sha512-3aytQvqJ/h9z4g8AsKPLvD4Zqi2qT+L3j7XoFFu1XBlZWEl2/1kWnhmAbxpLgPrHSY0M6UA02jyTiwUVtiKR6A== + dependencies: + "@babel/helper-module-transforms" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-named-capturing-groups-regex@^7.22.5": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-named-capturing-groups-regex/-/plugin-transform-named-capturing-groups-regex-7.24.7.tgz#9042e9b856bc6b3688c0c2e4060e9e10b1460923" + integrity sha512-/jr7h/EWeJtk1U/uz2jlsCioHkZk1JJZVcc8oQsJ1dUlaJD83f4/6Zeh2aHt9BIFokHIsSeDfhUmju0+1GPd6g== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-new-target@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-new-target/-/plugin-transform-new-target-7.24.7.tgz#31ff54c4e0555cc549d5816e4ab39241dfb6ab00" + integrity sha512-RNKwfRIXg4Ls/8mMTza5oPF5RkOW8Wy/WgMAp1/F1yZ8mMbtwXW+HDoJiOsagWrAhI5f57Vncrmr9XeT4CVapA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-nullish-coalescing-operator@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-nullish-coalescing-operator/-/plugin-transform-nullish-coalescing-operator-7.24.7.tgz#1de4534c590af9596f53d67f52a92f12db984120" + integrity sha512-Ts7xQVk1OEocqzm8rHMXHlxvsfZ0cEF2yomUqpKENHWMF4zKk175Y4q8H5knJes6PgYad50uuRmt3UJuhBw8pQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + +"@babel/plugin-transform-numeric-separator@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-numeric-separator/-/plugin-transform-numeric-separator-7.24.7.tgz#bea62b538c80605d8a0fac9b40f48e97efa7de63" + integrity sha512-e6q1TiVUzvH9KRvicuxdBTUj4AdKSRwzIyFFnfnezpCfP2/7Qmbb8qbU2j7GODbl4JMkblitCQjKYUaX/qkkwA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + +"@babel/plugin-transform-object-rest-spread@^7.24.0": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-rest-spread/-/plugin-transform-object-rest-spread-7.24.7.tgz#d13a2b93435aeb8a197e115221cab266ba6e55d6" + integrity sha512-4QrHAr0aXQCEFni2q4DqKLD31n2DL+RxcwnNjDFkSG0eNQ/xCavnRkfCUjsyqGC2OviNJvZOF/mQqZBw7i2C5Q== + dependencies: + "@babel/helper-compilation-targets" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-transform-parameters" "^7.24.7" + +"@babel/plugin-transform-object-super@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-object-super/-/plugin-transform-object-super-7.24.7.tgz#66eeaff7830bba945dd8989b632a40c04ed625be" + integrity sha512-A/vVLwN6lBrMFmMDmPPz0jnE6ZGx7Jq7d6sT/Ev4H65RER6pZ+kczlf1DthF5N0qaPHBsI7UXiE8Zy66nmAovg== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-replace-supers" "^7.24.7" + +"@babel/plugin-transform-optional-catch-binding@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-catch-binding/-/plugin-transform-optional-catch-binding-7.24.7.tgz#00eabd883d0dd6a60c1c557548785919b6e717b4" + integrity sha512-uLEndKqP5BfBbC/5jTwPxLh9kqPWWgzN/f8w6UwAIirAEqiIVJWWY312X72Eub09g5KF9+Zn7+hT7sDxmhRuKA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + +"@babel/plugin-transform-optional-chaining@^7.23.4", "@babel/plugin-transform-optional-chaining@^7.24.7": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-optional-chaining/-/plugin-transform-optional-chaining-7.24.8.tgz#bb02a67b60ff0406085c13d104c99a835cdf365d" + integrity sha512-5cTOLSMs9eypEy8JUVvIKOu6NgvbJMnpG62VpIHrTmROdQ+L5mDAaI40g25k5vXti55JWNX5jCkq3HZxXBQANw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + +"@babel/plugin-transform-parameters@^7.23.3", "@babel/plugin-transform-parameters@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-parameters/-/plugin-transform-parameters-7.24.7.tgz#5881f0ae21018400e320fc7eb817e529d1254b68" + integrity sha512-yGWW5Rr+sQOhK0Ot8hjDJuxU3XLRQGflvT4lhlSY0DFvdb3TwKaY26CJzHtYllU0vT9j58hc37ndFPsqT1SrzA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-private-methods@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-methods/-/plugin-transform-private-methods-7.24.7.tgz#e6318746b2ae70a59d023d5cc1344a2ba7a75f5e" + integrity sha512-COTCOkG2hn4JKGEKBADkA8WNb35TGkkRbI5iT845dB+NyqgO8Hn+ajPbSnIQznneJTa3d30scb6iz/DhH8GsJQ== + dependencies: + "@babel/helper-create-class-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-private-property-in-object@^7.23.4": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-private-property-in-object/-/plugin-transform-private-property-in-object-7.24.7.tgz#4eec6bc701288c1fab5f72e6a4bbc9d67faca061" + integrity sha512-9z76mxwnwFxMyxZWEgdgECQglF2Q7cFLm0kMf8pGwt+GSJsY0cONKj/UuO4bOH0w/uAel3ekS4ra5CEAyJRmDA== + dependencies: + "@babel/helper-annotate-as-pure" "^7.24.7" + "@babel/helper-create-class-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + +"@babel/plugin-transform-property-literals@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-property-literals/-/plugin-transform-property-literals-7.24.7.tgz#f0d2ed8380dfbed949c42d4d790266525d63bbdc" + integrity sha512-EMi4MLQSHfd2nrCqQEWxFdha2gBCqU4ZcCng4WBGZ5CJL4bBRW0ptdqqDdeirGZcpALazVVNJqRmsO8/+oNCBA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-regenerator@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-regenerator/-/plugin-transform-regenerator-7.24.7.tgz#021562de4534d8b4b1851759fd7af4e05d2c47f8" + integrity sha512-lq3fvXPdimDrlg6LWBoqj+r/DEWgONuwjuOuQCSYgRroXDH/IdM1C0IZf59fL5cHLpjEH/O6opIRBbqv7ELnuA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + regenerator-transform "^0.15.2" + +"@babel/plugin-transform-reserved-words@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-reserved-words/-/plugin-transform-reserved-words-7.24.7.tgz#80037fe4fbf031fc1125022178ff3938bb3743a4" + integrity sha512-0DUq0pHcPKbjFZCfTss/pGkYMfy3vFWydkUBd9r0GHpIyfs2eCDENvqadMycRS9wZCXR41wucAfJHJmwA0UmoQ== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-runtime@7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-runtime/-/plugin-transform-runtime-7.24.0.tgz#e308fe27d08b74027d42547081eefaf4f2ffbcc9" + integrity sha512-zc0GA5IitLKJrSfXlXmp8KDqLrnGECK7YRfQBmEKg1NmBOQ7e+KuclBEKJgzifQeUYLdNiAw4B4bjyvzWVLiSA== + dependencies: + "@babel/helper-module-imports" "^7.22.15" + "@babel/helper-plugin-utils" "^7.24.0" + babel-plugin-polyfill-corejs2 "^0.4.8" + babel-plugin-polyfill-corejs3 "^0.9.0" + babel-plugin-polyfill-regenerator "^0.5.5" + semver "^6.3.1" + +"@babel/plugin-transform-shorthand-properties@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-shorthand-properties/-/plugin-transform-shorthand-properties-7.24.7.tgz#85448c6b996e122fa9e289746140aaa99da64e73" + integrity sha512-KsDsevZMDsigzbA09+vacnLpmPH4aWjcZjXdyFKGzpplxhbeB4wYtury3vglQkg6KM/xEPKt73eCjPPf1PgXBA== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-spread@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-spread/-/plugin-transform-spread-7.24.7.tgz#e8a38c0fde7882e0fb8f160378f74bd885cc7bb3" + integrity sha512-x96oO0I09dgMDxJaANcRyD4ellXFLLiWhuwDxKZX5g2rWP1bTPkBSwCYv96VDXVT1bD9aPj8tppr5ITIh8hBng== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + "@babel/helper-skip-transparent-expression-wrappers" "^7.24.7" + +"@babel/plugin-transform-sticky-regex@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-sticky-regex/-/plugin-transform-sticky-regex-7.24.7.tgz#96ae80d7a7e5251f657b5cf18f1ea6bf926f5feb" + integrity sha512-kHPSIJc9v24zEml5geKg9Mjx5ULpfncj0wRpYtxbvKyTtHCYDkVE3aHQ03FrpEo4gEe2vrJJS1Y9CJTaThA52g== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-template-literals@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-template-literals/-/plugin-transform-template-literals-7.24.7.tgz#a05debb4a9072ae8f985bcf77f3f215434c8f8c8" + integrity sha512-AfDTQmClklHCOLxtGoP7HkeMw56k1/bTQjwsfhL6pppo/M4TOBSq+jjBUBLmV/4oeFg4GWMavIl44ZeCtmmZTw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-typeof-symbol@^7.23.3": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-typeof-symbol/-/plugin-transform-typeof-symbol-7.24.8.tgz#383dab37fb073f5bfe6e60c654caac309f92ba1c" + integrity sha512-adNTUpDCVnmAE58VEqKlAA6ZBlNkMnWD0ZcW76lyNFN3MJniyGFZfNwERVk8Ap56MCnXztmDr19T4mPTztcuaw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.8" + +"@babel/plugin-transform-unicode-escapes@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-escapes/-/plugin-transform-unicode-escapes-7.24.7.tgz#2023a82ced1fb4971630a2e079764502c4148e0e" + integrity sha512-U3ap1gm5+4edc2Q/P+9VrBNhGkfnf+8ZqppY71Bo/pzZmXhhLdqgaUl6cuB07O1+AQJtCLfaOmswiNbSQ9ivhw== + dependencies: + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-unicode-property-regex@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-property-regex/-/plugin-transform-unicode-property-regex-7.24.7.tgz#9073a4cd13b86ea71c3264659590ac086605bbcd" + integrity sha512-uH2O4OV5M9FZYQrwc7NdVmMxQJOCCzFeYudlZSzUAHRFeOujQefa92E74TQDVskNHCzOXoigEuoyzHDhaEaK5w== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-unicode-regex@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-regex/-/plugin-transform-unicode-regex-7.24.7.tgz#dfc3d4a51127108099b19817c0963be6a2adf19f" + integrity sha512-hlQ96MBZSAXUq7ltkjtu3FJCCSMx/j629ns3hA3pXnBXjanNP0LHi+JpPeA81zaWgVK1VGH95Xuy7u0RyQ8kMg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/plugin-transform-unicode-sets-regex@^7.23.3": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/plugin-transform-unicode-sets-regex/-/plugin-transform-unicode-sets-regex-7.24.7.tgz#d40705d67523803a576e29c63cef6e516b858ed9" + integrity sha512-2G8aAvF4wy1w/AGZkemprdGMRg5o6zPNhbHVImRz3lss55TYCBd6xStN19rt8XJHq20sqV0JbyWjOWwQRwV/wg== + dependencies: + "@babel/helper-create-regexp-features-plugin" "^7.24.7" + "@babel/helper-plugin-utils" "^7.24.7" + +"@babel/preset-env@7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/preset-env/-/preset-env-7.24.0.tgz#11536a7f4b977294f0bdfad780f01a8ac8e183fc" + integrity sha512-ZxPEzV9IgvGn73iK0E6VB9/95Nd7aMFpbE0l8KQFDG70cOV9IxRP7Y2FUPmlK0v6ImlLqYX50iuZ3ZTVhOF2lA== + dependencies: + "@babel/compat-data" "^7.23.5" + "@babel/helper-compilation-targets" "^7.23.6" + "@babel/helper-plugin-utils" "^7.24.0" + "@babel/helper-validator-option" "^7.23.5" + "@babel/plugin-bugfix-safari-id-destructuring-collision-in-function-expression" "^7.23.3" + "@babel/plugin-bugfix-v8-spread-parameters-in-optional-chaining" "^7.23.3" + "@babel/plugin-bugfix-v8-static-class-fields-redefine-readonly" "^7.23.7" + "@babel/plugin-proposal-private-property-in-object" "7.21.0-placeholder-for-preset-env.2" + "@babel/plugin-syntax-async-generators" "^7.8.4" + "@babel/plugin-syntax-class-properties" "^7.12.13" + "@babel/plugin-syntax-class-static-block" "^7.14.5" + "@babel/plugin-syntax-dynamic-import" "^7.8.3" + "@babel/plugin-syntax-export-namespace-from" "^7.8.3" + "@babel/plugin-syntax-import-assertions" "^7.23.3" + "@babel/plugin-syntax-import-attributes" "^7.23.3" + "@babel/plugin-syntax-import-meta" "^7.10.4" + "@babel/plugin-syntax-json-strings" "^7.8.3" + "@babel/plugin-syntax-logical-assignment-operators" "^7.10.4" + "@babel/plugin-syntax-nullish-coalescing-operator" "^7.8.3" + "@babel/plugin-syntax-numeric-separator" "^7.10.4" + "@babel/plugin-syntax-object-rest-spread" "^7.8.3" + "@babel/plugin-syntax-optional-catch-binding" "^7.8.3" + "@babel/plugin-syntax-optional-chaining" "^7.8.3" + "@babel/plugin-syntax-private-property-in-object" "^7.14.5" + "@babel/plugin-syntax-top-level-await" "^7.14.5" + "@babel/plugin-syntax-unicode-sets-regex" "^7.18.6" + "@babel/plugin-transform-arrow-functions" "^7.23.3" + "@babel/plugin-transform-async-generator-functions" "^7.23.9" + "@babel/plugin-transform-async-to-generator" "^7.23.3" + "@babel/plugin-transform-block-scoped-functions" "^7.23.3" + "@babel/plugin-transform-block-scoping" "^7.23.4" + "@babel/plugin-transform-class-properties" "^7.23.3" + "@babel/plugin-transform-class-static-block" "^7.23.4" + "@babel/plugin-transform-classes" "^7.23.8" + "@babel/plugin-transform-computed-properties" "^7.23.3" + "@babel/plugin-transform-destructuring" "^7.23.3" + "@babel/plugin-transform-dotall-regex" "^7.23.3" + "@babel/plugin-transform-duplicate-keys" "^7.23.3" + "@babel/plugin-transform-dynamic-import" "^7.23.4" + "@babel/plugin-transform-exponentiation-operator" "^7.23.3" + "@babel/plugin-transform-export-namespace-from" "^7.23.4" + "@babel/plugin-transform-for-of" "^7.23.6" + "@babel/plugin-transform-function-name" "^7.23.3" + "@babel/plugin-transform-json-strings" "^7.23.4" + "@babel/plugin-transform-literals" "^7.23.3" + "@babel/plugin-transform-logical-assignment-operators" "^7.23.4" + "@babel/plugin-transform-member-expression-literals" "^7.23.3" + "@babel/plugin-transform-modules-amd" "^7.23.3" + "@babel/plugin-transform-modules-commonjs" "^7.23.3" + "@babel/plugin-transform-modules-systemjs" "^7.23.9" + "@babel/plugin-transform-modules-umd" "^7.23.3" + "@babel/plugin-transform-named-capturing-groups-regex" "^7.22.5" + "@babel/plugin-transform-new-target" "^7.23.3" + "@babel/plugin-transform-nullish-coalescing-operator" "^7.23.4" + "@babel/plugin-transform-numeric-separator" "^7.23.4" + "@babel/plugin-transform-object-rest-spread" "^7.24.0" + "@babel/plugin-transform-object-super" "^7.23.3" + "@babel/plugin-transform-optional-catch-binding" "^7.23.4" + "@babel/plugin-transform-optional-chaining" "^7.23.4" + "@babel/plugin-transform-parameters" "^7.23.3" + "@babel/plugin-transform-private-methods" "^7.23.3" + "@babel/plugin-transform-private-property-in-object" "^7.23.4" + "@babel/plugin-transform-property-literals" "^7.23.3" + "@babel/plugin-transform-regenerator" "^7.23.3" + "@babel/plugin-transform-reserved-words" "^7.23.3" + "@babel/plugin-transform-shorthand-properties" "^7.23.3" + "@babel/plugin-transform-spread" "^7.23.3" + "@babel/plugin-transform-sticky-regex" "^7.23.3" + "@babel/plugin-transform-template-literals" "^7.23.3" + "@babel/plugin-transform-typeof-symbol" "^7.23.3" + "@babel/plugin-transform-unicode-escapes" "^7.23.3" + "@babel/plugin-transform-unicode-property-regex" "^7.23.3" + "@babel/plugin-transform-unicode-regex" "^7.23.3" + "@babel/plugin-transform-unicode-sets-regex" "^7.23.3" + "@babel/preset-modules" "0.1.6-no-external-plugins" + babel-plugin-polyfill-corejs2 "^0.4.8" + babel-plugin-polyfill-corejs3 "^0.9.0" + babel-plugin-polyfill-regenerator "^0.5.5" + core-js-compat "^3.31.0" + semver "^6.3.1" + +"@babel/preset-modules@0.1.6-no-external-plugins": + version "0.1.6-no-external-plugins" + resolved "https://registry.yarnpkg.com/@babel/preset-modules/-/preset-modules-0.1.6-no-external-plugins.tgz#ccb88a2c49c817236861fee7826080573b8a923a" + integrity sha512-HrcgcIESLm9aIR842yhJ5RWan/gebQUJ6E/E5+rf0y9o6oj7w0Br+sWuL6kEQ/o/AdfvR1Je9jG18/gnpwjEyA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@babel/types" "^7.4.4" + esutils "^2.0.2" + +"@babel/regjsgen@^0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@babel/regjsgen/-/regjsgen-0.8.0.tgz#f0ba69b075e1f05fb2825b7fad991e7adbb18310" + integrity sha512-x/rqGMdzj+fWZvCOYForTghzbtqPDZ5gPwaoNGHdgDfF2QA/XZbCBp4Moo5scrkAMPhB7z26XM/AaHuIJdgauA== + +"@babel/runtime@7.24.0": + version "7.24.0" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.0.tgz#584c450063ffda59697021430cb47101b085951e" + integrity sha512-Chk32uHMg6TnQdvw2e9IlqPpFX/6NLuK0Ys2PqLb7/gL5uFn9mXvK715FGLlOLQrcO4qIkNHkvPGktzzXexsFw== + dependencies: + regenerator-runtime "^0.14.0" + +"@babel/runtime@^7.21.0", "@babel/runtime@^7.8.4": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/runtime/-/runtime-7.24.8.tgz#5d958c3827b13cc6d05e038c07fb2e5e3420d82e" + integrity sha512-5F7SDGs1T72ZczbRwbGO9lQi0NLjQxzl6i4lJxLxfW9U5UluCSyEJeniWvnhl3/euNiqQVbo8zruhsDfid0esA== + dependencies: + regenerator-runtime "^0.14.0" + +"@babel/template@^7.23.9", "@babel/template@^7.24.0", "@babel/template@^7.24.7": + version "7.24.7" + resolved "https://registry.yarnpkg.com/@babel/template/-/template-7.24.7.tgz#02efcee317d0609d2c07117cb70ef8fb17ab7315" + integrity sha512-jYqfPrU9JTF0PmPy1tLYHW4Mp4KlgxJD9l2nP9fD6yT/ICi554DmrWBAEYpIelzjHf1msDP3PxJIRt/nFNfBig== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/parser" "^7.24.7" + "@babel/types" "^7.24.7" + +"@babel/traverse@^7.23.9", "@babel/traverse@^7.24.0", "@babel/traverse@^7.24.7", "@babel/traverse@^7.24.8": + version "7.24.8" + resolved "https://registry.yarnpkg.com/@babel/traverse/-/traverse-7.24.8.tgz#6c14ed5232b7549df3371d820fbd9abfcd7dfab7" + integrity sha512-t0P1xxAPzEDcEPmjprAQq19NWum4K0EQPjMwZQZbHt+GiZqvjCHjj755Weq1YRPVzBI+3zSfvScfpnuIecVFJQ== + dependencies: + "@babel/code-frame" "^7.24.7" + "@babel/generator" "^7.24.8" + "@babel/helper-environment-visitor" "^7.24.7" + "@babel/helper-function-name" "^7.24.7" + "@babel/helper-hoist-variables" "^7.24.7" + "@babel/helper-split-export-declaration" "^7.24.7" + "@babel/parser" "^7.24.8" + "@babel/types" "^7.24.8" + debug "^4.3.1" + globals "^11.1.0" + +"@babel/types@^7.22.5", "@babel/types@^7.23.6", "@babel/types@^7.23.9", "@babel/types@^7.24.0", "@babel/types@^7.24.7", "@babel/types@^7.24.8", "@babel/types@^7.24.9", "@babel/types@^7.4.4": + version "7.24.9" + resolved "https://registry.yarnpkg.com/@babel/types/-/types-7.24.9.tgz#228ce953d7b0d16646e755acf204f4cf3d08cc73" + integrity sha512-xm8XrMKz0IlUdocVbYJe0Z9xEgidU7msskG8BbhnTPK/HZ2z/7FP7ykqPgrUH+C+r414mNfNWam1f2vqOjqjYQ== + dependencies: + "@babel/helper-string-parser" "^7.24.8" + "@babel/helper-validator-identifier" "^7.24.7" + to-fast-properties "^2.0.0" + +"@colors/colors@1.5.0": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@colors/colors/-/colors-1.5.0.tgz#bb504579c1cae923e6576a4f5da43d25f97bdbd9" + integrity sha512-ooWCrlZP11i8GImSjTHYHLkvFDP48nS4+204nGb1RiX/WXYHmJA2III9/e2DWVabCESdW7hBAEzHRqUn9OUVvQ== + +"@cspotcode/source-map-support@^0.8.0": + version "0.8.1" + resolved "https://registry.yarnpkg.com/@cspotcode/source-map-support/-/source-map-support-0.8.1.tgz#00629c35a688e05a88b1cda684fb9d5e73f000a1" + integrity sha512-IchNf6dN4tHoMFIn/7OE8LWZ19Y6q/67Bmf6vnGREv8RSbBVb9LPJxEcnwrcwX6ixSvaiGoomAUvu4YSxXrVgw== + dependencies: + "@jridgewell/trace-mapping" "0.3.9" + +"@csstools/selector-specificity@^2.0.2": + version "2.2.0" + resolved "https://registry.yarnpkg.com/@csstools/selector-specificity/-/selector-specificity-2.2.0.tgz#2cbcf822bf3764c9658c4d2e568bd0c0cb748016" + integrity sha512-+OJ9konv95ClSTOJCmMZqpd5+YGsB2S+x6w3E1oaM8UuR5j8nTNHYSz8c9BEPGDOCMQYIEEGlVPj/VY64iTbGw== + +"@ctrl/tinycolor@^3.6.1": + version "3.6.1" + resolved "https://registry.yarnpkg.com/@ctrl/tinycolor/-/tinycolor-3.6.1.tgz#b6c75a56a1947cc916ea058772d666a2c8932f31" + integrity sha512-SITSV6aIXsuVNV3f3O0f2n/cgyEDWoSqtZMYiAmcsYHydcKrOz3gUxB/iXd/Qf08+IZX4KpgNbvUdMBmWz+kcA== + +"@delon/abc@17.0.5": + version "17.0.5" + resolved "https://registry.yarnpkg.com/@delon/abc/-/abc-17.0.5.tgz#f4eea83b563f8bcc3adc57b49726ea5f7e663531" + integrity sha512-TdQMYFZ3dBC85eH/7vZGBRsL12uP0zD5lkYEdFhCiMSnnuIdQDosufv3oScFU7yHKriDc87IdXcA+wYobzlbag== + dependencies: + "@delon/acl" "^17.0.5" + "@delon/theme" "^17.0.5" + "@delon/util" "^17.0.5" + "@github/hotkey" "^2.3.0" + file-saver "^2.0.5" + isutf8 "^4.0.0" + jszip "^3.10.1" + ngx-countdown "^17.0.0" + plyr "^3.7.8" + tslib "^2.3.0" + xlsx "^0.18.5" + +"@delon/abc@^17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/abc/-/abc-17.3.1.tgz#ed15e054dfb16694892c065dcea6815185e3a621" + integrity sha512-Gh0IwSQVFA5cgrKvGMNEupj6He2ywk3luHz9ORRa4a81+SZpvvrebIba38f9Y5ZqPovUh4PLvrK2AfqGFpPfAQ== + dependencies: + "@delon/acl" "^17.3.1" + "@delon/theme" "^17.3.1" + "@delon/util" "^17.3.1" + "@github/hotkey" "^2.3.1" + file-saver "^2.0.5" + isutf8 "^4.0.0" + jszip "^3.10.1" + ngx-countdown "^17.1.1" + plyr "^3.7.8" + tslib "^2.3.0" + xlsx "^0.18.5" + +"@delon/acl@17.3.1", "@delon/acl@^17.0.5", "@delon/acl@^17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/acl/-/acl-17.3.1.tgz#e4320fbcb18850d4ee560f1037394bbe7e7e7d1c" + integrity sha512-iiw7eCwvkG5TTJMBKAD6mHDNIYgpGLiut7nKOinybyhwWWjev5okJceZyAI1QAZx0xYSfA9BPTfkq4vrjO0HIA== + dependencies: + "@delon/util" "^17.3.1" + tslib "^2.3.0" + +"@delon/auth@17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/auth/-/auth-17.3.1.tgz#9b02fed76c5e53d5ffe8918149913d37514d3c53" + integrity sha512-rOhelX3Bcydyr9RfCvDTqBTrKJpWO+ufQto5SS6tMRG3Snsp1tfLMau9oNkwq1lwS60SvlFq6ipxG6KTuWkb8A== + dependencies: + "@delon/util" "^17.3.1" + tslib "^2.3.0" + +"@delon/cache@17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/cache/-/cache-17.3.1.tgz#3d717bafe68aa62c3bb57dddaeace05f9530fe64" + integrity sha512-vsrWHH+ndWQ9vk04GazeKTQj0+EHk5c9LlSGtRHgrD7lLwwtWAOnrr6YOp0Z0UAOAR6WFGZmDGq37gWlZu9GxA== + dependencies: + "@delon/util" "^17.3.1" + tslib "^2.3.0" + +"@delon/form@17.3.1", "@delon/form@^17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/form/-/form-17.3.1.tgz#84cc30479c83e8ab50be5e01a830edf2640867ef" + integrity sha512-cCP0HLsiQjexy4nHfu8i86X/CT7mFMIdvkDsURXXDsSygiN56IdTFkzItEIcSVveL9tEK9zay0xiLNlOykG4RQ== + dependencies: + "@delon/acl" "^17.3.1" + "@delon/theme" "^17.3.1" + "@delon/util" "^17.3.1" + ajv "^8.12.0" + ajv-formats "^2.1.1" + tslib "^2.3.0" + +"@delon/mock@17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/mock/-/mock-17.3.1.tgz#5db851dc8353e6d2cfbcbd04547aada2a55aa7f2" + integrity sha512-MAR+jc6cncpRtZ/z7l14gz+SGKs7uVkoGcrCHIzC36Sxs2q4PudxyfxvDVPGqAlkR2TDbSdjVPbO1QfZg6gdMw== + dependencies: + "@delon/util" "^17.3.1" + "@types/mockjs" "^1.0.10" + mockjs "^1.1.0" + tslib "^2.3.0" + +"@delon/testing@17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/testing/-/testing-17.3.1.tgz#51f975c25ce3a2358317028f2a4f7d79eb243c9f" + integrity sha512-TrYlHWNHQClFPMDragmYTz39iP+K4aLd4szUSuEBax/OB9Q3ejX18GQoqe0ox0A7kawVaMsyTNRIuJT1Xe4zpQ== + dependencies: + tslib "^2.3.0" + +"@delon/theme@17.3.1", "@delon/theme@^17.0.5", "@delon/theme@^17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/theme/-/theme-17.3.1.tgz#f17a6f8962d36630d27a3612d9e75b4042473b53" + integrity sha512-0pSuy13uhVfL/jOlIgY+onmZ89KYk9/NmtdRcuZ+nWfnlKh7Zj1BOtn6bShikbkGEzI3+EIzhOZAwgsMoBLSxg== + dependencies: + "@delon/abc" "^17.3.1" + "@delon/acl" "^17.3.1" + "@delon/form" "^17.3.1" + "@delon/util" "^17.3.1" + ng-zorro-antd "^17.3.0" + tslib "^2.3.0" + +"@delon/util@17.3.1", "@delon/util@^17.0.5", "@delon/util@^17.3.1": + version "17.3.1" + resolved "https://registry.yarnpkg.com/@delon/util/-/util-17.3.1.tgz#6185292831bd3e6c2076a5b4cfb53361e203f46d" + integrity sha512-4dXkfWNu4jE6e9mFYCOy1Fnr1DJubHGsWniFPg7zPRY44EC1IfQWNzKe2GB6WHxLZBU7I6UUeg0lBAYXrG+ctg== + dependencies: + extend "^3.0.2" + tslib "^2.3.0" + +"@discoveryjs/json-ext@0.5.7": + version "0.5.7" + resolved "https://registry.yarnpkg.com/@discoveryjs/json-ext/-/json-ext-0.5.7.tgz#1d572bfbbe14b7704e0ba0f39b74815b84870d70" + integrity sha512-dBVuXR082gk3jsFp7Rd/JI4kytwGHecnCoTtXFb7DB6CNHp4rg5k1bhg0nWdLGLnOV71lmDzGQaLMy8iPLY0pw== + +"@emnapi/core@^1.1.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@emnapi/core/-/core-1.2.0.tgz#7b738e5033738132bf6af0b8fae7b05249bdcbd7" + integrity sha512-E7Vgw78I93we4ZWdYCb4DGAwRROGkMIXk7/y87UmANR+J6qsWusmC3gLt0H+O0KOt5e6O38U8oJamgbudrES/w== + dependencies: + "@emnapi/wasi-threads" "1.0.1" + tslib "^2.4.0" + +"@emnapi/runtime@^1.1.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@emnapi/runtime/-/runtime-1.2.0.tgz#71d018546c3a91f3b51106530edbc056b9f2f2e3" + integrity sha512-bV21/9LQmcQeCPEg3BDFtvwL6cwiTMksYNWQQ4KOxCZikEGalWtenoZ0wCiukJINlGCIi2KXx01g4FoH/LxpzQ== + dependencies: + tslib "^2.4.0" + +"@emnapi/wasi-threads@1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@emnapi/wasi-threads/-/wasi-threads-1.0.1.tgz#d7ae71fd2166b1c916c6cd2d0df2ef565a2e1a5b" + integrity sha512-iIBu7mwkq4UQGeMEM8bLwNK962nXdhodeScX4slfQnRhEMMzvYivHhutCIk8uojvmASXXPC2WNEjwxFWk72Oqw== + dependencies: + tslib "^2.4.0" + +"@es-joy/jsdoccomment@~0.43.0": + version "0.43.1" + resolved "https://registry.yarnpkg.com/@es-joy/jsdoccomment/-/jsdoccomment-0.43.1.tgz#4b1979b7b4ff8b596fb19a3aa696a438e44608d7" + integrity sha512-I238eDtOolvCuvtxrnqtlBaw0BwdQuYqK7eA6XIonicMdOOOb75mqdIzkGDUbS04+1Di007rgm9snFRNeVrOog== + dependencies: + "@types/eslint" "^8.56.5" + "@types/estree" "^1.0.5" + "@typescript-eslint/types" "^7.2.0" + comment-parser "1.4.1" + esquery "^1.5.0" + jsdoc-type-pratt-parser "~4.0.0" + +"@esbuild/aix-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.19.12.tgz#d1bc06aedb6936b3b6d313bf809a5a40387d2b7f" + integrity sha512-bmoCYyWdEL3wDQIVbcyzRyeKLgk2WtWLTWz1ZIAZF/EGbNOwSA6ew3PftJ1PqMiOOGu0OyFMzG53L0zqIpPeNA== + +"@esbuild/aix-ppc64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/aix-ppc64/-/aix-ppc64-0.20.1.tgz#eafa8775019b3650a77e8310ba4dbd17ca7af6d5" + integrity sha512-m55cpeupQ2DbuRGQMMZDzbv9J9PgVelPjlcmM5kxHnrBdBx6REaEd7LamYV7Dm8N7rCyR/XwU6rVP8ploKtIkA== + +"@esbuild/android-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.19.12.tgz#7ad65a36cfdb7e0d429c353e00f680d737c2aed4" + integrity sha512-P0UVNGIienjZv3f5zq0DP3Nt2IE/3plFzuaS96vihvD0Hd6H/q4WXUGpCxD/E8YrSXfNyRPbpTq+T8ZQioSuPA== + +"@esbuild/android-arm64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm64/-/android-arm64-0.20.1.tgz#68791afa389550736f682c15b963a4f37ec2f5f6" + integrity sha512-hCnXNF0HM6AjowP+Zou0ZJMWWa1VkD77BXe959zERgGJBBxB+sV+J9f/rcjeg2c5bsukD/n17RKWXGFCO5dD5A== + +"@esbuild/android-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.19.12.tgz#b0c26536f37776162ca8bde25e42040c203f2824" + integrity sha512-qg/Lj1mu3CdQlDEEiWrlC4eaPZ1KztwGJ9B6J+/6G+/4ewxJg7gqj8eVYWvao1bXrqGiW2rsBZFSX3q2lcW05w== + +"@esbuild/android-arm@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-arm/-/android-arm-0.20.1.tgz#38c91d8ee8d5196f7fbbdf4f0061415dde3a473a" + integrity sha512-4j0+G27/2ZXGWR5okcJi7pQYhmkVgb4D7UKwxcqrjhvp5TKWx3cUjgB1CGj1mfdmJBQ9VnUGgUhign+FPF2Zgw== + +"@esbuild/android-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.19.12.tgz#cb13e2211282012194d89bf3bfe7721273473b3d" + integrity sha512-3k7ZoUW6Q6YqhdhIaq/WZ7HwBpnFBlW905Fa4s4qWJyiNOgT1dOqDiVAQFwBH7gBRZr17gLrlFCRzF6jFh7Kew== + +"@esbuild/android-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/android-x64/-/android-x64-0.20.1.tgz#93f6190ce997b313669c20edbf3645fc6c8d8f22" + integrity sha512-MSfZMBoAsnhpS+2yMFYIQUPs8Z19ajwfuaSZx+tSl09xrHZCjbeXXMsUF/0oq7ojxYEpsSo4c0SfjxOYXRbpaA== + +"@esbuild/darwin-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.19.12.tgz#cbee41e988020d4b516e9d9e44dd29200996275e" + integrity sha512-B6IeSgZgtEzGC42jsI+YYu9Z3HKRxp8ZT3cqhvliEHovq8HSX2YX8lNocDn79gCKJXOSaEot9MVYky7AKjCs8g== + +"@esbuild/darwin-arm64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-arm64/-/darwin-arm64-0.20.1.tgz#0d391f2e81fda833fe609182cc2fbb65e03a3c46" + integrity sha512-Ylk6rzgMD8klUklGPzS414UQLa5NPXZD5tf8JmQU8GQrj6BrFA/Ic9tb2zRe1kOZyCbGl+e8VMbDRazCEBqPvA== + +"@esbuild/darwin-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.19.12.tgz#e37d9633246d52aecf491ee916ece709f9d5f4cd" + integrity sha512-hKoVkKzFiToTgn+41qGhsUJXFlIjxI/jSYeZf3ugemDYZldIXIxhvwN6erJGlX4t5h417iFuheZ7l+YVn05N3A== + +"@esbuild/darwin-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/darwin-x64/-/darwin-x64-0.20.1.tgz#92504077424584684862f483a2242cfde4055ba2" + integrity sha512-pFIfj7U2w5sMp52wTY1XVOdoxw+GDwy9FsK3OFz4BpMAjvZVs0dT1VXs8aQm22nhwoIWUmIRaE+4xow8xfIDZA== + +"@esbuild/freebsd-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.19.12.tgz#1ee4d8b682ed363b08af74d1ea2b2b4dbba76487" + integrity sha512-4aRvFIXmwAcDBw9AueDQ2YnGmz5L6obe5kmPT8Vd+/+x/JMVKCgdcRwH6APrbpNXsPz+K653Qg8HB/oXvXVukA== + +"@esbuild/freebsd-arm64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-arm64/-/freebsd-arm64-0.20.1.tgz#a1646fa6ba87029c67ac8a102bb34384b9290774" + integrity sha512-UyW1WZvHDuM4xDz0jWun4qtQFauNdXjXOtIy7SYdf7pbxSWWVlqhnR/T2TpX6LX5NI62spt0a3ldIIEkPM6RHw== + +"@esbuild/freebsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.19.12.tgz#37a693553d42ff77cd7126764b535fb6cc28a11c" + integrity sha512-EYoXZ4d8xtBoVN7CEwWY2IN4ho76xjYXqSXMNccFSx2lgqOG/1TBPW0yPx1bJZk94qu3tX0fycJeeQsKovA8gg== + +"@esbuild/freebsd-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/freebsd-x64/-/freebsd-x64-0.20.1.tgz#41c9243ab2b3254ea7fb512f71ffdb341562e951" + integrity sha512-itPwCw5C+Jh/c624vcDd9kRCCZVpzpQn8dtwoYIt2TJF3S9xJLiRohnnNrKwREvcZYx0n8sCSbvGH349XkcQeg== + +"@esbuild/linux-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.19.12.tgz#be9b145985ec6c57470e0e051d887b09dddb2d4b" + integrity sha512-EoTjyYyLuVPfdPLsGVVVC8a0p1BFFvtpQDB/YLEhaXyf/5bczaGeN15QkR+O4S5LeJ92Tqotve7i1jn35qwvdA== + +"@esbuild/linux-arm64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm64/-/linux-arm64-0.20.1.tgz#f3c1e1269fbc9eedd9591a5bdd32bf707a883156" + integrity sha512-cX8WdlF6Cnvw/DO9/X7XLH2J6CkBnz7Twjpk56cshk9sjYVcuh4sXQBy5bmTwzBjNVZze2yaV1vtcJS04LbN8w== + +"@esbuild/linux-arm@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.19.12.tgz#207ecd982a8db95f7b5279207d0ff2331acf5eef" + integrity sha512-J5jPms//KhSNv+LO1S1TX1UWp1ucM6N6XuL6ITdKWElCu8wXP72l9MM0zDTzzeikVyqFE6U8YAV9/tFyj0ti+w== + +"@esbuild/linux-arm@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-arm/-/linux-arm-0.20.1.tgz#4503ca7001a8ee99589c072801ce9d7540717a21" + integrity sha512-LojC28v3+IhIbfQ+Vu4Ut5n3wKcgTu6POKIHN9Wpt0HnfgUGlBuyDDQR4jWZUZFyYLiz4RBBBmfU6sNfn6RhLw== + +"@esbuild/linux-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.19.12.tgz#d0d86b5ca1562523dc284a6723293a52d5860601" + integrity sha512-Thsa42rrP1+UIGaWz47uydHSBOgTUnwBwNq59khgIwktK6x60Hivfbux9iNR0eHCHzOLjLMLfUMLCypBkZXMHA== + +"@esbuild/linux-ia32@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ia32/-/linux-ia32-0.20.1.tgz#98c474e3e0cbb5bcbdd8561a6e65d18f5767ce48" + integrity sha512-4H/sQCy1mnnGkUt/xszaLlYJVTz3W9ep52xEefGtd6yXDQbz/5fZE5dFLUgsPdbUOQANcVUa5iO6g3nyy5BJiw== + +"@esbuild/linux-loong64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.19.12.tgz#9a37f87fec4b8408e682b528391fa22afd952299" + integrity sha512-LiXdXA0s3IqRRjm6rV6XaWATScKAXjI4R4LoDlvO7+yQqFdlr1Bax62sRwkVvRIrwXxvtYEHHI4dm50jAXkuAA== + +"@esbuild/linux-loong64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-loong64/-/linux-loong64-0.20.1.tgz#a8097d28d14b9165c725fe58fc438f80decd2f33" + integrity sha512-c0jgtB+sRHCciVXlyjDcWb2FUuzlGVRwGXgI+3WqKOIuoo8AmZAddzeOHeYLtD+dmtHw3B4Xo9wAUdjlfW5yYA== + +"@esbuild/linux-mips64el@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.19.12.tgz#4ddebd4e6eeba20b509d8e74c8e30d8ace0b89ec" + integrity sha512-fEnAuj5VGTanfJ07ff0gOA6IPsvrVHLVb6Lyd1g2/ed67oU1eFzL0r9WL7ZzscD+/N6i3dWumGE1Un4f7Amf+w== + +"@esbuild/linux-mips64el@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-mips64el/-/linux-mips64el-0.20.1.tgz#c44f6f0d7d017c41ad3bb15bfdb69b690656b5ea" + integrity sha512-TgFyCfIxSujyuqdZKDZ3yTwWiGv+KnlOeXXitCQ+trDODJ+ZtGOzLkSWngynP0HZnTsDyBbPy7GWVXWaEl6lhA== + +"@esbuild/linux-ppc64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.19.12.tgz#adb67dadb73656849f63cd522f5ecb351dd8dee8" + integrity sha512-nYJA2/QPimDQOh1rKWedNOe3Gfc8PabU7HT3iXWtNUbRzXS9+vgB0Fjaqr//XNbd82mCxHzik2qotuI89cfixg== + +"@esbuild/linux-ppc64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-ppc64/-/linux-ppc64-0.20.1.tgz#0765a55389a99237b3c84227948c6e47eba96f0d" + integrity sha512-b+yuD1IUeL+Y93PmFZDZFIElwbmFfIKLKlYI8M6tRyzE6u7oEP7onGk0vZRh8wfVGC2dZoy0EqX1V8qok4qHaw== + +"@esbuild/linux-riscv64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.19.12.tgz#11bc0698bf0a2abf8727f1c7ace2112612c15adf" + integrity sha512-2MueBrlPQCw5dVJJpQdUYgeqIzDQgw3QtiAHUC4RBz9FXPrskyyU3VI1hw7C0BSKB9OduwSJ79FTCqtGMWqJHg== + +"@esbuild/linux-riscv64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-riscv64/-/linux-riscv64-0.20.1.tgz#e4153b032288e3095ddf4c8be07893781b309a7e" + integrity sha512-wpDlpE0oRKZwX+GfomcALcouqjjV8MIX8DyTrxfyCfXxoKQSDm45CZr9fanJ4F6ckD4yDEPT98SrjvLwIqUCgg== + +"@esbuild/linux-s390x@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.19.12.tgz#e86fb8ffba7c5c92ba91fc3b27ed5a70196c3cc8" + integrity sha512-+Pil1Nv3Umes4m3AZKqA2anfhJiVmNCYkPchwFJNEJN5QxmTs1uzyy4TvmDrCRNT2ApwSari7ZIgrPeUx4UZDg== + +"@esbuild/linux-s390x@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-s390x/-/linux-s390x-0.20.1.tgz#b9ab8af6e4b73b26d63c1c426d7669a5d53eb5a7" + integrity sha512-5BepC2Au80EohQ2dBpyTquqGCES7++p7G+7lXe1bAIvMdXm4YYcEfZtQrP4gaoZ96Wv1Ute61CEHFU7h4FMueQ== + +"@esbuild/linux-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.19.12.tgz#5f37cfdc705aea687dfe5dfbec086a05acfe9c78" + integrity sha512-B71g1QpxfwBvNrfyJdVDexenDIt1CiDN1TIXLbhOw0KhJzE78KIFGX6OJ9MrtC0oOqMWf+0xop4qEU8JrJTwCg== + +"@esbuild/linux-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/linux-x64/-/linux-x64-0.20.1.tgz#0b25da17ac38c3e11cdd06ca3691d4d6bef2755f" + integrity sha512-5gRPk7pKuaIB+tmH+yKd2aQTRpqlf1E4f/mC+tawIm/CGJemZcHZpp2ic8oD83nKgUPMEd0fNanrnFljiruuyA== + +"@esbuild/netbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.19.12.tgz#29da566a75324e0d0dd7e47519ba2f7ef168657b" + integrity sha512-3ltjQ7n1owJgFbuC61Oj++XhtzmymoCihNFgT84UAmJnxJfm4sYCiSLTXZtE00VWYpPMYc+ZQmB6xbSdVh0JWA== + +"@esbuild/netbsd-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/netbsd-x64/-/netbsd-x64-0.20.1.tgz#3148e48406cd0d4f7ba1e0bf3f4d77d548c98407" + integrity sha512-4fL68JdrLV2nVW2AaWZBv3XEm3Ae3NZn/7qy2KGAt3dexAgSVT+Hc97JKSZnqezgMlv9x6KV0ZkZY7UO5cNLCg== + +"@esbuild/openbsd-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.19.12.tgz#306c0acbdb5a99c95be98bdd1d47c916e7dc3ff0" + integrity sha512-RbrfTB9SWsr0kWmb9srfF+L933uMDdu9BIzdA7os2t0TXhCRjrQyCeOt6wVxr79CKD4c+p+YhCj31HBkYcXebw== + +"@esbuild/openbsd-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/openbsd-x64/-/openbsd-x64-0.20.1.tgz#7b73e852986a9750192626d377ac96ac2b749b76" + integrity sha512-GhRuXlvRE+twf2ES+8REbeCb/zeikNqwD3+6S5y5/x+DYbAQUNl0HNBs4RQJqrechS4v4MruEr8ZtAin/hK5iw== + +"@esbuild/sunos-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.19.12.tgz#0933eaab9af8b9b2c930236f62aae3fc593faf30" + integrity sha512-HKjJwRrW8uWtCQnQOz9qcU3mUZhTUQvi56Q8DPTLLB+DawoiQdjsYq+j+D3s9I8VFtDr+F9CjgXKKC4ss89IeA== + +"@esbuild/sunos-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/sunos-x64/-/sunos-x64-0.20.1.tgz#402a441cdac2eee98d8be378c7bc23e00c1861c5" + integrity sha512-ZnWEyCM0G1Ex6JtsygvC3KUUrlDXqOihw8RicRuQAzw+c4f1D66YlPNNV3rkjVW90zXVsHwZYWbJh3v+oQFM9Q== + +"@esbuild/win32-arm64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.19.12.tgz#773bdbaa1971b36db2f6560088639ccd1e6773ae" + integrity sha512-URgtR1dJnmGvX864pn1B2YUYNzjmXkuJOIqG2HdU62MVS4EHpU2946OZoTMnRUHklGtJdJZ33QfzdjGACXhn1A== + +"@esbuild/win32-arm64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-arm64/-/win32-arm64-0.20.1.tgz#36c4e311085806a6a0c5fc54d1ac4d7b27e94d7b" + integrity sha512-QZ6gXue0vVQY2Oon9WyLFCdSuYbXSoxaZrPuJ4c20j6ICedfsDilNPYfHLlMH7vGfU5DQR0czHLmJvH4Nzis/A== + +"@esbuild/win32-ia32@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.19.12.tgz#000516cad06354cc84a73f0943a4aa690ef6fd67" + integrity sha512-+ZOE6pUkMOJfmxmBZElNOx72NKpIa/HFOMGzu8fqzQJ5kgf6aTGrcJaFsNiVMH4JKpMipyK+7k0n2UXN7a8YKQ== + +"@esbuild/win32-ia32@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-ia32/-/win32-ia32-0.20.1.tgz#0cf933be3fb9dc58b45d149559fe03e9e22b54fe" + integrity sha512-HzcJa1NcSWTAU0MJIxOho8JftNp9YALui3o+Ny7hCh0v5f90nprly1U3Sj1Ldj/CvKKdvvFsCRvDkpsEMp4DNw== + +"@esbuild/win32-x64@0.19.12": + version "0.19.12" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.19.12.tgz#c57c8afbb4054a3ab8317591a0b7320360b444ae" + integrity sha512-T1QyPSDCyMXaO3pzBkF96E8xMkiRYbUEZADd29SyPGabqxMViNoii+NcK7eWJAEoU6RZyEm5lVSIjTmcdoB9HA== + +"@esbuild/win32-x64@0.20.1": + version "0.20.1" + resolved "https://registry.yarnpkg.com/@esbuild/win32-x64/-/win32-x64-0.20.1.tgz#77583b6ea54cee7c1410ebbd54051b6a3fcbd8ba" + integrity sha512-0MBh53o6XtI6ctDnRMeQ+xoCN8kD2qI1rY1KgF/xdWQwoFeKou7puvDfV8/Wv4Ctx2rRpET/gGdz3YlNtNACSA== + +"@eslint-community/eslint-utils@^4.2.0", "@eslint-community/eslint-utils@^4.4.0": + version "4.4.0" + resolved "https://registry.yarnpkg.com/@eslint-community/eslint-utils/-/eslint-utils-4.4.0.tgz#a23514e8fb9af1269d5f7788aa556798d61c6b59" + integrity sha512-1/sA4dwrzBAyeUoQ6oxahHKmrZvsnLCg4RfxW3ZFGGmQkSNQPFNLV9CUEFQP1x9EYXHTo5p6xdhZM1Ne9p/AfA== + dependencies: + eslint-visitor-keys "^3.3.0" + +"@eslint-community/regexpp@^4.10.0", "@eslint-community/regexpp@^4.6.1": + version "4.11.0" + resolved "https://registry.yarnpkg.com/@eslint-community/regexpp/-/regexpp-4.11.0.tgz#b0ffd0312b4a3fd2d6f77237e7248a5ad3a680ae" + integrity sha512-G/M/tIiMrTAxEWRfLfQJMmGNX28IxBg4PBz8XqQhqUHLFI6TL2htpIB1iQCj144V5ee/JaKyT9/WZ0MGZWfA7A== + +"@eslint/eslintrc@^2.1.4": + version "2.1.4" + resolved "https://registry.yarnpkg.com/@eslint/eslintrc/-/eslintrc-2.1.4.tgz#388a269f0f25c1b6adc317b5a2c55714894c70ad" + integrity sha512-269Z39MS6wVJtsoUl10L60WdkhJVdPG24Q4eZTH3nnF6lpvSShEK3wQjDX9JRWAUPvPh7COouPpU9IrqaZFvtQ== + dependencies: + ajv "^6.12.4" + debug "^4.3.2" + espree "^9.6.0" + globals "^13.19.0" + ignore "^5.2.0" + import-fresh "^3.2.1" + js-yaml "^4.1.0" + minimatch "^3.1.2" + strip-json-comments "^3.1.1" + +"@eslint/js@8.56.0": + version "8.56.0" + resolved "https://registry.yarnpkg.com/@eslint/js/-/js-8.56.0.tgz#ef20350fec605a7f7035a01764731b2de0f3782b" + integrity sha512-gMsVel9D7f2HLkBma9VbtzZRehRogVRfbr++f06nL2vnCGCNlzOD+/MUov/F4p8myyAHspEhVobgjpX64q5m6A== + +"@exodus/schemasafe@^1.0.0-rc.2": + version "1.3.0" + resolved "https://registry.yarnpkg.com/@exodus/schemasafe/-/schemasafe-1.3.0.tgz#731656abe21e8e769a7f70a4d833e6312fe59b7f" + integrity sha512-5Aap/GaRupgNx/feGBwLLTVv8OQFfv3pq2lPRzPg9R+IOBnDgghTGW7l7EuVXOvg5cc/xSAlRW8rBrjIC3Nvqw== + +"@github/hotkey@^2.3.0", "@github/hotkey@^2.3.1": + version "2.3.1" + resolved "https://registry.yarnpkg.com/@github/hotkey/-/hotkey-2.3.1.tgz#366011806be0fe5742c13f28eb6790da4422b997" + integrity sha512-+aEUEKAsJnnZElLKW5vdXJ9o7g0PXDGN9w54kDm4BorHyQiUVXRLcaDbBS41T62iyO+tqlCO1NuQrYbrbS8Z2Q== + +"@humanwhocodes/config-array@^0.11.13": + version "0.11.14" + resolved "https://registry.yarnpkg.com/@humanwhocodes/config-array/-/config-array-0.11.14.tgz#d78e481a039f7566ecc9660b4ea7fe6b1fec442b" + integrity sha512-3T8LkOmg45BV5FICb15QQMsyUSWrQ8AygVfC7ZG32zOalnqrilm018ZVCw0eapXux8FtA33q8PSRSstjee3jSg== + dependencies: + "@humanwhocodes/object-schema" "^2.0.2" + debug "^4.3.1" + minimatch "^3.0.5" + +"@humanwhocodes/module-importer@^1.0.1": + version "1.0.1" + resolved "https://registry.yarnpkg.com/@humanwhocodes/module-importer/-/module-importer-1.0.1.tgz#af5b2691a22b44be847b0ca81641c5fb6ad0172c" + integrity sha512-bxveV4V8v5Yb4ncFTT3rPSgZBOpCkjfK0y4oVVVJwIuDVBRMDXrPyXRL988i5ap9m9bnyEEjWfm5WkBmtffLfA== + +"@humanwhocodes/object-schema@^2.0.2": + version "2.0.3" + resolved "https://registry.yarnpkg.com/@humanwhocodes/object-schema/-/object-schema-2.0.3.tgz#4a2868d75d6d6963e423bcf90b7fd1be343409d3" + integrity sha512-93zYdMES/c1D69yZiKDBj0V24vqNzB/koF26KPaagAfd3P/4gUlh3Dys5ogAK+Exi9QyzlD8x/08Zt7wIKcDcA== + +"@isaacs/cliui@^8.0.2": + version "8.0.2" + resolved "https://registry.yarnpkg.com/@isaacs/cliui/-/cliui-8.0.2.tgz#b37667b7bc181c168782259bab42474fbf52b550" + integrity sha512-O8jcjabXaleOG9DQ0+ARXWZBTfnP4WNAqzuiJK7ll44AmxGKv/J2M4TPjxjY3znBCfvBXFzucm1twdyFybFqEA== + dependencies: + string-width "^5.1.2" + string-width-cjs "npm:string-width@^4.2.0" + strip-ansi "^7.0.1" + strip-ansi-cjs "npm:strip-ansi@^6.0.1" + wrap-ansi "^8.1.0" + wrap-ansi-cjs "npm:wrap-ansi@^7.0.0" + +"@istanbuljs/load-nyc-config@^1.0.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@istanbuljs/load-nyc-config/-/load-nyc-config-1.1.0.tgz#fd3db1d59ecf7cf121e80650bb86712f9b55eced" + integrity sha512-VjeHSlIzpv/NyD3N0YuHfXOPDIixcA1q2ZV98wsMqcYlPmv2n3Yb2lYP9XMElnaFVXg5A7YLTeLu6V84uQDjmQ== + dependencies: + camelcase "^5.3.1" + find-up "^4.1.0" + get-package-type "^0.1.0" + js-yaml "^3.13.1" + resolve-from "^5.0.0" + +"@istanbuljs/schema@^0.1.2": + version "0.1.3" + resolved "https://registry.yarnpkg.com/@istanbuljs/schema/-/schema-0.1.3.tgz#e45e384e4b8ec16bce2fd903af78450f6bf7ec98" + integrity sha512-ZXRY4jNvVgSVQ8DL3LTcakaAtXwTVUxE81hslsyD2AtoXW/wVob10HkOJ1X/pAlcI7D+2YoZKg5do8G/w6RYgA== + +"@jest/schemas@^29.6.3": + version "29.6.3" + resolved "https://registry.yarnpkg.com/@jest/schemas/-/schemas-29.6.3.tgz#430b5ce8a4e0044a7e3819663305a7b3091c8e03" + integrity sha512-mo5j5X+jIZmJQveBKeS/clAueipV7KgiX1vMgCxam1RNYiqE1w62n0/tJJnHtjW8ZHcQco5gY85jA3mi0L+nSA== + dependencies: + "@sinclair/typebox" "^0.27.8" + +"@jridgewell/gen-mapping@^0.3.2", "@jridgewell/gen-mapping@^0.3.5": + version "0.3.5" + resolved "https://registry.yarnpkg.com/@jridgewell/gen-mapping/-/gen-mapping-0.3.5.tgz#dcce6aff74bdf6dad1a95802b69b04a2fcb1fb36" + integrity sha512-IzL8ZoEDIBRWEzlCcRhOaCupYyN5gdIK+Q6fbFdPDg6HqX6jpkItn7DFIpW9LQzXG6Df9sA7+OKnq0qlz/GaQg== + dependencies: + "@jridgewell/set-array" "^1.2.1" + "@jridgewell/sourcemap-codec" "^1.4.10" + "@jridgewell/trace-mapping" "^0.3.24" + +"@jridgewell/resolve-uri@^3.0.3", "@jridgewell/resolve-uri@^3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz#7a0ee601f60f99a20c7c7c5ff0c80388c1189bd6" + integrity sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw== + +"@jridgewell/set-array@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@jridgewell/set-array/-/set-array-1.2.1.tgz#558fb6472ed16a4c850b889530e6b36438c49280" + integrity sha512-R8gLRTZeyp03ymzP/6Lil/28tGeGEzhx1q2k703KGWRAI1VdvPIXdG70VJc2pAMw3NA6JKL5hhFu1sJX0Mnn/A== + +"@jridgewell/source-map@^0.3.3": + version "0.3.6" + resolved "https://registry.yarnpkg.com/@jridgewell/source-map/-/source-map-0.3.6.tgz#9d71ca886e32502eb9362c9a74a46787c36df81a" + integrity sha512-1ZJTZebgqllO79ue2bm3rIGud/bOe0pP5BjSRCRxxYkEZS8STV7zN84UBbiYu7jy+eCKSnVIUgoWWE/tt+shMQ== + dependencies: + "@jridgewell/gen-mapping" "^0.3.5" + "@jridgewell/trace-mapping" "^0.3.25" + +"@jridgewell/sourcemap-codec@^1.4.10", "@jridgewell/sourcemap-codec@^1.4.14", "@jridgewell/sourcemap-codec@^1.4.15": + version "1.5.0" + resolved "https://registry.yarnpkg.com/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.0.tgz#3188bcb273a414b0d215fd22a58540b989b9409a" + integrity sha512-gv3ZRaISU3fjPAgNsriBRqGWQL6quFx04YMPW/zD8XMLsU32mhCCbfbO6KZFLjvYpCZ8zyDEgqsgf+PwPaM7GQ== + +"@jridgewell/trace-mapping@0.3.9": + version "0.3.9" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.9.tgz#6534fd5933a53ba7cbf3a17615e273a0d1273ff9" + integrity sha512-3Belt6tdc8bPgAtbcmdtNJlirVoTmEb5e2gC94PnkwEW9jI6CAHUeoG85tjWP5WquqfavoMtMwiG4P926ZKKuQ== + dependencies: + "@jridgewell/resolve-uri" "^3.0.3" + "@jridgewell/sourcemap-codec" "^1.4.10" + +"@jridgewell/trace-mapping@^0.3.17", "@jridgewell/trace-mapping@^0.3.20", "@jridgewell/trace-mapping@^0.3.24", "@jridgewell/trace-mapping@^0.3.25": + version "0.3.25" + resolved "https://registry.yarnpkg.com/@jridgewell/trace-mapping/-/trace-mapping-0.3.25.tgz#15f190e98895f3fc23276ee14bc76b675c2e50f0" + integrity sha512-vNk6aEwybGtawWmy/PzwnGDOjCkLWSD2wqvjGGAgOAwCGWySYXfYoxt00IJkTF+8Lb57DwOb3Aa0o9CApepiYQ== + dependencies: + "@jridgewell/resolve-uri" "^3.1.0" + "@jridgewell/sourcemap-codec" "^1.4.14" + +"@kerwin612/ngx-query-builder@0.6.4": + version "0.6.4" + resolved "https://registry.yarnpkg.com/@kerwin612/ngx-query-builder/-/ngx-query-builder-0.6.4.tgz#118bd1a6409471882d6364f5000f278b98ca353b" + integrity sha512-LZ+X6EDuufOSW+AyT88cB9tqkJfTLD3RV9pSbg7ixeDENWlloeqCbRAPMaQNJfKBgdnJSDuZtI7aPVV6ryg06g== + dependencies: + tslib "^2.3.0" + +"@leichtgewicht/ip-codec@^2.0.1": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@leichtgewicht/ip-codec/-/ip-codec-2.0.5.tgz#4fc56c15c580b9adb7dc3c333a134e540b44bfb1" + integrity sha512-Vo+PSpZG2/fmgmiNzYK9qWRh8h/CHrwD0mo1h1DzL4yzHNSfWYujGTYsWGreD000gcgmZ7K4Ys6Tx9TxtsKdDw== + +"@ljharb/through@^2.3.12": + version "2.3.13" + resolved "https://registry.yarnpkg.com/@ljharb/through/-/through-2.3.13.tgz#b7e4766e0b65aa82e529be945ab078de79874edc" + integrity sha512-/gKJun8NNiWGZJkGzI/Ragc53cOdcLNdzjLaIa+GEjguQs0ulsurx8WN0jijdK9yPqDvziX995sMRLyLt1uZMQ== + dependencies: + call-bind "^1.0.7" + +"@mrmlnc/readdir-enhanced@^2.2.1": + version "2.2.1" + resolved "https://registry.yarnpkg.com/@mrmlnc/readdir-enhanced/-/readdir-enhanced-2.2.1.tgz#524af240d1a360527b730475ecfa1344aa540dde" + integrity sha512-bPHp6Ji8b41szTOcaP63VlnbbO5Ny6dwAATtY6JTjh5N2OLrb5Qk/Th5cRkRQhkWCt+EJsYrNB0MiL+Gpn6e3g== + dependencies: + call-me-maybe "^1.0.1" + glob-to-regexp "^0.3.0" + +"@napi-rs/wasm-runtime@0.2.4": + version "0.2.4" + resolved "https://registry.yarnpkg.com/@napi-rs/wasm-runtime/-/wasm-runtime-0.2.4.tgz#d27788176f250d86e498081e3c5ff48a17606918" + integrity sha512-9zESzOO5aDByvhIAsOy9TbpZ0Ur2AJbUI7UT73kcUTS2mxAMHOBaa1st/jAymNoCtvrit99kkzT1FZuXVcgfIQ== + dependencies: + "@emnapi/core" "^1.1.0" + "@emnapi/runtime" "^1.1.0" + "@tybys/wasm-util" "^0.9.0" + +"@ngtools/webpack@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@ngtools/webpack/-/webpack-17.3.8.tgz#96c0f99055910dd21438d7697d625fdeb7261015" + integrity sha512-CjSVVa/9fzMpEDQP01SC4colKCbZwj7vUq0H2bivp8jVsmd21x9Fu0gDBH0Y9NdfAIm4eGZvmiZKMII3vIOaYQ== + +"@nodelib/fs.scandir@2.1.5": + version "2.1.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.scandir/-/fs.scandir-2.1.5.tgz#7619c2eb21b25483f6d167548b4cfd5a7488c3d5" + integrity sha512-vq24Bq3ym5HEQm2NKCr3yXDwjc7vTsEThRDnkp2DK9p1uqLR+DHurm/NOTo0KG7HYHU7eppKZj3MyqYuMBf62g== + dependencies: + "@nodelib/fs.stat" "2.0.5" + run-parallel "^1.1.9" + +"@nodelib/fs.stat@2.0.5", "@nodelib/fs.stat@^2.0.2": + version "2.0.5" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-2.0.5.tgz#5bd262af94e9d25bd1e71b05deed44876a222e8b" + integrity sha512-RkhPPp2zrqDAQA/2jNhnztcPAlv64XdhIp7a7454A5ovI7Bukxgt7MX7udwAu3zg1DcpPU0rz3VV1SeaqvY4+A== + +"@nodelib/fs.stat@^1.1.2": + version "1.1.3" + resolved "https://registry.yarnpkg.com/@nodelib/fs.stat/-/fs.stat-1.1.3.tgz#2b5a3ab3f918cca48a8c754c08168e3f03eba61b" + integrity sha512-shAmDyaQC4H92APFoIaVDHCx5bStIocgvbwQyxPRrbUY20V1EYTbSDchWbuwlMG3V17cprZhA6+78JfB+3DTPw== + +"@nodelib/fs.walk@^1.2.3", "@nodelib/fs.walk@^1.2.8": + version "1.2.8" + resolved "https://registry.yarnpkg.com/@nodelib/fs.walk/-/fs.walk-1.2.8.tgz#e95737e8bb6746ddedf69c556953494f196fe69a" + integrity sha512-oGB+UxlgWcgQkgwo8GcEGwemoTFt3FIO9ababBmaGwXIoBKZ+GTy0pP185beGg7Llih/NSHSV2XAs1lnznocSg== + dependencies: + "@nodelib/fs.scandir" "2.1.5" + fastq "^1.6.0" + +"@npmcli/agent@^2.0.0": + version "2.2.2" + resolved "https://registry.yarnpkg.com/@npmcli/agent/-/agent-2.2.2.tgz#967604918e62f620a648c7975461c9c9e74fc5d5" + integrity sha512-OrcNPXdpSl9UX7qPVRWbmWMCSXrcDa2M9DvrbOTj7ao1S4PlqVFYv9/yLKMkrJKZ/V5A/kDBC690or307i26Og== + dependencies: + agent-base "^7.1.0" + http-proxy-agent "^7.0.0" + https-proxy-agent "^7.0.1" + lru-cache "^10.0.1" + socks-proxy-agent "^8.0.3" + +"@npmcli/fs@^3.1.0": + version "3.1.1" + resolved "https://registry.yarnpkg.com/@npmcli/fs/-/fs-3.1.1.tgz#59cdaa5adca95d135fc00f2bb53f5771575ce726" + integrity sha512-q9CRWjpHCMIh5sVyefoD1cA7PkvILqCZsnSOEUUivORLjxCO/Irmue2DprETiNgEqktDBZaM1Bi+jrarx1XdCg== + dependencies: + semver "^7.3.5" + +"@npmcli/git@^5.0.0": + version "5.0.8" + resolved "https://registry.yarnpkg.com/@npmcli/git/-/git-5.0.8.tgz#8ba3ff8724192d9ccb2735a2aa5380a992c5d3d1" + integrity sha512-liASfw5cqhjNW9UFd+ruwwdEf/lbOAQjLL2XY2dFW/bkJheXDYZgOyul/4gVvEV4BWkTXjYGmDqMw9uegdbJNQ== + dependencies: + "@npmcli/promise-spawn" "^7.0.0" + ini "^4.1.3" + lru-cache "^10.0.1" + npm-pick-manifest "^9.0.0" + proc-log "^4.0.0" + promise-inflight "^1.0.1" + promise-retry "^2.0.1" + semver "^7.3.5" + which "^4.0.0" + +"@npmcli/installed-package-contents@^2.0.1": + version "2.1.0" + resolved "https://registry.yarnpkg.com/@npmcli/installed-package-contents/-/installed-package-contents-2.1.0.tgz#63048e5f6e40947a3a88dcbcb4fd9b76fdd37c17" + integrity sha512-c8UuGLeZpm69BryRykLuKRyKFZYJsZSCT4aVY5ds4omyZqJ172ApzgfKJ5eV/r3HgLdUYgFVe54KSFVjKoe27w== + dependencies: + npm-bundled "^3.0.0" + npm-normalize-package-bin "^3.0.0" + +"@npmcli/node-gyp@^3.0.0": + version "3.0.0" + resolved "https://registry.yarnpkg.com/@npmcli/node-gyp/-/node-gyp-3.0.0.tgz#101b2d0490ef1aa20ed460e4c0813f0db560545a" + integrity sha512-gp8pRXC2oOxu0DUE1/M3bYtb1b3/DbJ5aM113+XJBgfXdussRAsX0YOrOhdd8WvnAR6auDBvJomGAkLKA5ydxA== + +"@npmcli/package-json@^5.0.0": + version "5.2.0" + resolved "https://registry.yarnpkg.com/@npmcli/package-json/-/package-json-5.2.0.tgz#a1429d3111c10044c7efbfb0fce9f2c501f4cfad" + integrity sha512-qe/kiqqkW0AGtvBjL8TJKZk/eBBSpnJkUWvHdQ9jM2lKHXRYYJuyNpJPlJw3c8QjC2ow6NZYiLExhUaeJelbxQ== + dependencies: + "@npmcli/git" "^5.0.0" + glob "^10.2.2" + hosted-git-info "^7.0.0" + json-parse-even-better-errors "^3.0.0" + normalize-package-data "^6.0.0" + proc-log "^4.0.0" + semver "^7.5.3" + +"@npmcli/promise-spawn@^7.0.0": + version "7.0.2" + resolved "https://registry.yarnpkg.com/@npmcli/promise-spawn/-/promise-spawn-7.0.2.tgz#1d53d34ffeb5d151bfa8ec661bcccda8bbdfd532" + integrity sha512-xhfYPXoV5Dy4UkY0D+v2KkwvnDfiA/8Mt3sWCGI/hM03NsYIH8ZaG6QzS9x7pje5vHZBZJ2v6VRFVTWACnqcmQ== + dependencies: + which "^4.0.0" + +"@npmcli/redact@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@npmcli/redact/-/redact-1.1.0.tgz#78e53a6a34f013543a73827a07ebdc3a6f10454b" + integrity sha512-PfnWuOkQgu7gCbnSsAisaX7hKOdZ4wSAhAzH3/ph5dSGau52kCRrMMGbiSQLwyTZpgldkZ49b0brkOr1AzGBHQ== + +"@npmcli/run-script@^7.0.0": + version "7.0.4" + resolved "https://registry.yarnpkg.com/@npmcli/run-script/-/run-script-7.0.4.tgz#9f29aaf4bfcf57f7de2a9e28d1ef091d14b2e6eb" + integrity sha512-9ApYM/3+rBt9V80aYg6tZfzj3UWdiYyCt7gJUD1VJKvWF5nwKDSICXbYIQbspFTq6TOpbsEtIC0LArB8d9PFmg== + dependencies: + "@npmcli/node-gyp" "^3.0.0" + "@npmcli/package-json" "^5.0.0" + "@npmcli/promise-spawn" "^7.0.0" + node-gyp "^10.0.0" + which "^4.0.0" + +"@nrwl/devkit@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nrwl/devkit/-/devkit-19.5.1.tgz#471eba99eff9806b3bc0d9f55061b13e0f9bdd90" + integrity sha512-ZsckDZszLTv3oshNsY5fZ86g8a/VcGvgDpdiP/z/A/krtOHL8iUjdT/72Eo5DIult5WcSFjnifyWcyWIGe1PeA== + dependencies: + "@nx/devkit" "19.5.1" + +"@nrwl/tao@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nrwl/tao/-/tao-19.5.1.tgz#e7c8774a90534c55671837ce99883135fe029f28" + integrity sha512-gAitJkexzI36jCNIHru1PAqNcFe17KlSwb3F4VoCArcZSJmSh5cTbxaAAWup8aavxHT6nF6G1Zm1+N0RmzRMRQ== + dependencies: + nx "19.5.1" + tslib "^2.3.0" + +"@nx/devkit@19.5.1", "@nx/devkit@^17.2.8 || ^18.0.0 || ^19.0.0": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/devkit/-/devkit-19.5.1.tgz#a30aaef06c11b2ae7745695d30f62c72a7e61eb6" + integrity sha512-Vj8wwzNIR5VIWmuLHhOi4aUVq7eVV5YTbctnEewKT+V/O4LZj+hClGyVNyT8s6b8JIjNWoIO4HXStLnH8rDOlw== + dependencies: + "@nrwl/devkit" "19.5.1" + ejs "^3.1.7" + enquirer "~2.3.6" + ignore "^5.0.4" + minimatch "9.0.3" + semver "^7.5.3" + tmp "~0.2.1" + tslib "^2.3.0" + yargs-parser "21.1.1" + +"@nx/nx-darwin-arm64@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-darwin-arm64/-/nx-darwin-arm64-19.5.1.tgz#5d2927bc397f7eeb6e58fb2a3621fd9750d1d0df" + integrity sha512-mdFSnwf+cEGZQ0HDJIzHBOWmho66VUN44qsDRPVSwpaEqlHSlcbiqKzM0+oVx9CRDLNQoYtYs1Y3hGlnag1sCQ== + +"@nx/nx-darwin-x64@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-darwin-x64/-/nx-darwin-x64-19.5.1.tgz#be6dbe7ade2851b49455087dfff3f4e9ab171a1b" + integrity sha512-ficF0T6vN0LkkYoPyEgdXEOfIR9ss0hXeG2s32SwqfjNZlbisO4fvrHM8f8WPujEJ+5nCIJ9o4jJiWBHkfUTBg== + +"@nx/nx-freebsd-x64@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-freebsd-x64/-/nx-freebsd-x64-19.5.1.tgz#c270bf2d11363407ade5e4dfe6041cc3f9fbbec1" + integrity sha512-UjquUf8N06DlAyhpvEm1D57WXWQnvvVq6vIxq6rTmK+alWjMyOUs90sPYrqvV3TARAsdkos763S8T5rAOB/xYQ== + +"@nx/nx-linux-arm-gnueabihf@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm-gnueabihf/-/nx-linux-arm-gnueabihf-19.5.1.tgz#4294b82981628add842aa6001965750fbcb9ff9c" + integrity sha512-UXBXiLEZVgHlz/iO634JQwQU/MP0Kx0tKwEzucjAryIUFTBRAZos76wTF8glBQaH4dTwWtQQObxaEVGGu+J4dA== + +"@nx/nx-linux-arm64-gnu@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-gnu/-/nx-linux-arm64-gnu-19.5.1.tgz#8a58c79f524ad007efe8890d34984fbcc3633c30" + integrity sha512-UlBq3ImnFHMsI6jLxQA97ntgBvMvtnVmL/eluGOcUres9q0IqzTOWmBDccpR3ZLbI3NBrmDRrS79aid3SuBKwA== + +"@nx/nx-linux-arm64-musl@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-arm64-musl/-/nx-linux-arm64-musl-19.5.1.tgz#141cae4dc3893df6fa3306be7522abd451ec8de4" + integrity sha512-sw0zdO9CLjDY9qiweZm5p5zrkOeRPagimHCtHw/YIuPfkBrtoazi9adD+f8OXou/jrL/f1UE2/CA3gQKDOT35Q== + +"@nx/nx-linux-x64-gnu@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-gnu/-/nx-linux-x64-gnu-19.5.1.tgz#e477c20fa5a317a6a7f570dbfc5e446a75c28b67" + integrity sha512-tHPcBgsyyLNRfJLWnDQLcWZZ69xn4Ocfnquxs30Q5gk5CZTNSVm/yA4ibYn9JGvSu0dNjzM+nJwmtEaudhtgSg== + +"@nx/nx-linux-x64-musl@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-linux-x64-musl/-/nx-linux-x64-musl-19.5.1.tgz#d7f4e7e59c51fe0b8709c35b8586c46aef5df013" + integrity sha512-dHP8GrqK05gHwq6kSjuZqaN0CQrID2OspuJ4vKd+WoelioFNmdRAQWkOyqXA5dlrJfWs/IqV+WvnexYlxG1quw== + +"@nx/nx-win32-arm64-msvc@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-win32-arm64-msvc/-/nx-win32-arm64-msvc-19.5.1.tgz#ba57d285c913dcbbc9e6a5cf29eed24590c933ec" + integrity sha512-YNhVje0gSmt7bLWDCR1Ea3vbvqF+iIeDhtpJuK7kXMbWAujZrA5sGW/xdPPShV8omlQuu1Ggms0BUCwr8Aiyig== + +"@nx/nx-win32-x64-msvc@19.5.1": + version "19.5.1" + resolved "https://registry.yarnpkg.com/@nx/nx-win32-x64-msvc/-/nx-win32-x64-msvc-19.5.1.tgz#2e1ee5f2aa1a360840150f061e68beb640c6d160" + integrity sha512-bxj12iAuyEwBCV6A+C8nXQ55KNji4L0VrL3y2KeH0wOeBMgTeKQxoMNk0/Ty2O6354YkAgwaKRHJMnM/LfO+og== + +"@pkgjs/parseargs@^0.11.0": + version "0.11.0" + resolved "https://registry.yarnpkg.com/@pkgjs/parseargs/-/parseargs-0.11.0.tgz#a77ea742fab25775145434eb1d2328cf5013ac33" + integrity sha512-+1VkjdD0QBLPodGrJUeqarH8VAIvQODIbwh9XpP5Syisf7YoQgsJKPNFoqqLQlu+VQ/tVSshMR6loPMn8U+dPg== + +"@rollup/rollup-android-arm-eabi@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.18.1.tgz#f0da481244b7d9ea15296b35f7fe39cd81157396" + integrity sha512-lncuC4aHicncmbORnx+dUaAgzee9cm/PbIqgWz1PpXuwc+sa1Ct83tnqUDy/GFKleLiN7ZIeytM6KJ4cAn1SxA== + +"@rollup/rollup-android-arm64@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.18.1.tgz#82ab3c575f4235fb647abea5e08eec6cf325964e" + integrity sha512-F/tkdw0WSs4ojqz5Ovrw5r9odqzFjb5LIgHdHZG65dFI1lWTWRVy32KDJLKRISHgJvqUeUhdIvy43fX41znyDg== + +"@rollup/rollup-darwin-arm64@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.18.1.tgz#6a530452e68a9152809ce58de1f89597632a085b" + integrity sha512-vk+ma8iC1ebje/ahpxpnrfVQJibTMyHdWpOGZ3JpQ7Mgn/3QNHmPq7YwjZbIE7km73dH5M1e6MRRsnEBW7v5CQ== + +"@rollup/rollup-darwin-x64@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.18.1.tgz#47727479f5ca292cf434d7e75af2725b724ecbc7" + integrity sha512-IgpzXKauRe1Tafcej9STjSSuG0Ghu/xGYH+qG6JwsAUxXrnkvNHcq/NL6nz1+jzvWAnQkuAJ4uIwGB48K9OCGA== + +"@rollup/rollup-linux-arm-gnueabihf@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.18.1.tgz#46193c498aa7902a8db89ac00128060320e84fef" + integrity sha512-P9bSiAUnSSM7EmyRK+e5wgpqai86QOSv8BwvkGjLwYuOpaeomiZWifEos517CwbG+aZl1T4clSE1YqqH2JRs+g== + +"@rollup/rollup-linux-arm-musleabihf@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.18.1.tgz#22d831fe239643c1d05c98906420325cee439d85" + integrity sha512-5RnjpACoxtS+aWOI1dURKno11d7krfpGDEn19jI8BuWmSBbUC4ytIADfROM1FZrFhQPSoP+KEa3NlEScznBTyQ== + +"@rollup/rollup-linux-arm64-gnu@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.18.1.tgz#19abd33695ec9d588b4a858d122631433084e4a3" + integrity sha512-8mwmGD668m8WaGbthrEYZ9CBmPug2QPGWxhJxh/vCgBjro5o96gL04WLlg5BA233OCWLqERy4YUzX3bJGXaJgQ== + +"@rollup/rollup-linux-arm64-musl@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.18.1.tgz#d60af8c0b9be424424ff96a0ba19fce65d26f6ab" + integrity sha512-dJX9u4r4bqInMGOAQoGYdwDP8lQiisWb9et+T84l2WXk41yEej8v2iGKodmdKimT8cTAYt0jFb+UEBxnPkbXEQ== + +"@rollup/rollup-linux-powerpc64le-gnu@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.18.1.tgz#b1194e5ed6d138fdde0842d126fccde74a90f457" + integrity sha512-V72cXdTl4EI0x6FNmho4D502sy7ed+LuVW6Ym8aI6DRQ9hQZdp5sj0a2usYOlqvFBNKQnLQGwmYnujo2HvjCxQ== + +"@rollup/rollup-linux-riscv64-gnu@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.18.1.tgz#f5a635c017b9bff8b856b0221fbd5c0e3373b7ec" + integrity sha512-f+pJih7sxoKmbjghrM2RkWo2WHUW8UbfxIQiWo5yeCaCM0TveMEuAzKJte4QskBp1TIinpnRcxkquY+4WuY/tg== + +"@rollup/rollup-linux-s390x-gnu@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.18.1.tgz#f1043d9f4026bf6995863cb3f8dd4732606e4baa" + integrity sha512-qb1hMMT3Fr/Qz1OKovCuUM11MUNLUuHeBC2DPPAWUYYUAOFWaxInaTwTQmc7Fl5La7DShTEpmYwgdt2hG+4TEg== + +"@rollup/rollup-linux-x64-gnu@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.18.1.tgz#1e781730be445119f06c9df5f185e193bc82c610" + integrity sha512-7O5u/p6oKUFYjRbZkL2FLbwsyoJAjyeXHCU3O4ndvzg2OFO2GinFPSJFGbiwFDaCFc+k7gs9CF243PwdPQFh5g== + +"@rollup/rollup-linux-x64-musl@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.18.1.tgz#08f12e1965d6f27d6898ff932592121cca6abc4b" + integrity sha512-pDLkYITdYrH/9Cv/Vlj8HppDuLMDUBmgsM0+N+xLtFd18aXgM9Nyqupb/Uw+HeidhfYg2lD6CXvz6CjoVOaKjQ== + +"@rollup/rollup-win32-arm64-msvc@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.18.1.tgz#4a5dcbbe7af7d41cac92b09798e7c1831da1f599" + integrity sha512-W2ZNI323O/8pJdBGil1oCauuCzmVd9lDmWBBqxYZcOqWD6aWqJtVBQ1dFrF4dYpZPks6F+xCZHfzG5hYlSHZ6g== + +"@rollup/rollup-win32-ia32-msvc@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.18.1.tgz#075b0713de627843a73b4cf0e087c56b53e9d780" + integrity sha512-ELfEX1/+eGZYMaCIbK4jqLxO1gyTSOIlZr6pbC4SRYFaSIDVKOnZNMdoZ+ON0mrFDp4+H5MhwNC1H/AhE3zQLg== + +"@rollup/rollup-win32-x64-msvc@4.18.1": + version "4.18.1" + resolved "https://registry.yarnpkg.com/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.18.1.tgz#0cb240c147c0dfd0e3eaff4cc060a772d39e155c" + integrity sha512-yjk2MAkQmoaPYCSu35RLJ62+dz358nE83VfTePJRp8CG7aMg25mEJYpXFiD+NcevhX8LxD5OP5tktPXnXN7GDw== + +"@schematics/angular@17.3.8": + version "17.3.8" + resolved "https://registry.yarnpkg.com/@schematics/angular/-/angular-17.3.8.tgz#0b4adf9d05b22176b99ad8e311a274c102d74822" + integrity sha512-2g4OmSyE9YGq50Uj7fNI26P/TSAFJ7ZuirwTF2O7Xc4XRQ29/tYIIqhezpNlTb6rlYblcQuMcUZBrMfWJHcqJw== + dependencies: + "@angular-devkit/core" "17.3.8" + "@angular-devkit/schematics" "17.3.8" + jsonc-parser "3.2.1" + +"@sigstore/bundle@^2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@sigstore/bundle/-/bundle-2.3.2.tgz#ad4dbb95d665405fd4a7a02c8a073dbd01e4e95e" + integrity sha512-wueKWDk70QixNLB363yHc2D2ItTgYiMTdPwK8D9dKQMR3ZQ0c35IxP5xnwQ8cNLoCgCRcHf14kE+CLIvNX1zmA== + dependencies: + "@sigstore/protobuf-specs" "^0.3.2" + +"@sigstore/core@^1.0.0", "@sigstore/core@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@sigstore/core/-/core-1.1.0.tgz#5583d8f7ffe599fa0a89f2bf289301a5af262380" + integrity sha512-JzBqdVIyqm2FRQCulY6nbQzMpJJpSiJ8XXWMhtOX9eKgaXXpfNOF53lzQEjIydlStnd/eFtuC1dW4VYdD93oRg== + +"@sigstore/protobuf-specs@^0.3.2": + version "0.3.2" + resolved "https://registry.yarnpkg.com/@sigstore/protobuf-specs/-/protobuf-specs-0.3.2.tgz#5becf88e494a920f548d0163e2978f81b44b7d6f" + integrity sha512-c6B0ehIWxMI8wiS/bj6rHMPqeFvngFV7cDU/MY+B16P9Z3Mp9k8L93eYZ7BYzSickzuqAQqAq0V956b3Ju6mLw== + +"@sigstore/sign@^2.3.2": + version "2.3.2" + resolved "https://registry.yarnpkg.com/@sigstore/sign/-/sign-2.3.2.tgz#d3d01e56d03af96fd5c3a9b9897516b1233fc1c4" + integrity sha512-5Vz5dPVuunIIvC5vBb0APwo7qKA4G9yM48kPWJT+OEERs40md5GoUR1yedwpekWZ4m0Hhw44m6zU+ObsON+iDA== + dependencies: + "@sigstore/bundle" "^2.3.2" + "@sigstore/core" "^1.0.0" + "@sigstore/protobuf-specs" "^0.3.2" + make-fetch-happen "^13.0.1" + proc-log "^4.2.0" + promise-retry "^2.0.1" + +"@sigstore/tuf@^2.3.4": + version "2.3.4" + resolved "https://registry.yarnpkg.com/@sigstore/tuf/-/tuf-2.3.4.tgz#da1d2a20144f3b87c0172920cbc8dcc7851ca27c" + integrity sha512-44vtsveTPUpqhm9NCrbU8CWLe3Vck2HO1PNLw7RIajbB7xhtn5RBPm1VNSCMwqGYHhDsBJG8gDF0q4lgydsJvw== + dependencies: + "@sigstore/protobuf-specs" "^0.3.2" + tuf-js "^2.2.1" + +"@sigstore/verify@^1.2.1": + version "1.2.1" + resolved "https://registry.yarnpkg.com/@sigstore/verify/-/verify-1.2.1.tgz#c7e60241b432890dcb8bd8322427f6062ef819e1" + integrity sha512-8iKx79/F73DKbGfRf7+t4dqrc0bRr0thdPrxAtCKWRm/F0tG71i6O1rvlnScncJLLBZHn3h8M3c1BSUAb9yu8g== + dependencies: + "@sigstore/bundle" "^2.3.2" + "@sigstore/core" "^1.1.0" + "@sigstore/protobuf-specs" "^0.3.2" + +"@sinclair/typebox@^0.27.8": + version "0.27.8" + resolved "https://registry.yarnpkg.com/@sinclair/typebox/-/typebox-0.27.8.tgz#6667fac16c436b5434a387a34dedb013198f6e6e" + integrity sha512-+Fj43pSMwJs4KRrH/938Uf+uAELIgVBmQzg/q1YG10djyfA3TnrU8N8XzqCh/okZdszqBQTZf96idMfE5lnwTA== + +"@socket.io/component-emitter@~3.1.0": + version "3.1.2" + resolved "https://registry.yarnpkg.com/@socket.io/component-emitter/-/component-emitter-3.1.2.tgz#821f8442f4175d8f0467b9daf26e3a18e2d02af2" + integrity sha512-9BCxFwvbGg/RsZK9tjXd8s4UcwR0MWeFQ1XEKIQVVvAGJyINdrqKMcTRyLoK8Rse1GjzLV9cwjWV1olXRWEXVA== + +"@tsconfig/node10@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node10/-/node10-1.0.11.tgz#6ee46400685f130e278128c7b38b7e031ff5b2f2" + integrity sha512-DcRjDCujK/kCk/cUe8Xz8ZSpm8mS3mNNpta+jGCA6USEDfktlNvm1+IuZ9eTcDbNk41BHwpHHeW+N1lKCz4zOw== + +"@tsconfig/node12@^1.0.7": + version "1.0.11" + resolved "https://registry.yarnpkg.com/@tsconfig/node12/-/node12-1.0.11.tgz#ee3def1f27d9ed66dac6e46a295cffb0152e058d" + integrity sha512-cqefuRsh12pWyGsIoBKJA9luFu3mRxCA+ORZvA4ktLSzIuCUtWVxGIuXigEwO5/ywWFMZ2QEGKWvkZG1zDMTag== + +"@tsconfig/node14@^1.0.0": + version "1.0.3" + resolved "https://registry.yarnpkg.com/@tsconfig/node14/-/node14-1.0.3.tgz#e4386316284f00b98435bf40f72f75a09dabf6c1" + integrity sha512-ysT8mhdixWK6Hw3i1V2AeRqZ5WfXg1G43mqoYlM2nc6388Fq5jcXyr5mRsqViLx/GJYdoL0bfXD8nmF+Zn/Iow== + +"@tsconfig/node16@^1.0.2": + version "1.0.4" + resolved "https://registry.yarnpkg.com/@tsconfig/node16/-/node16-1.0.4.tgz#0b92dcc0cc1c81f6f306a381f28e31b1a56536e9" + integrity sha512-vxhUy4J8lyeyinH7Azl1pdd43GJhZH/tP2weN8TntQblOY+A0XbT8DJk1/oCPuOOyg/Ja757rG0CgHcWC8OfMA== + +"@tufjs/canonical-json@2.0.0": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@tufjs/canonical-json/-/canonical-json-2.0.0.tgz#a52f61a3d7374833fca945b2549bc30a2dd40d0a" + integrity sha512-yVtV8zsdo8qFHe+/3kw81dSLyF7D576A5cCFCi4X7B39tWT7SekaEFUnvnWJHz+9qO7qJTah1JbrDjWKqFtdWA== + +"@tufjs/models@2.0.1": + version "2.0.1" + resolved "https://registry.yarnpkg.com/@tufjs/models/-/models-2.0.1.tgz#e429714e753b6c2469af3212e7f320a6973c2812" + integrity sha512-92F7/SFyufn4DXsha9+QfKnN03JGqtMFMXgSHbZOo8JG59WkTni7UzAouNQDf7AuP9OAMxVOPQcqG3sB7w+kkg== + dependencies: + "@tufjs/canonical-json" "2.0.0" + minimatch "^9.0.4" + +"@tybys/wasm-util@^0.9.0": + version "0.9.0" + resolved "https://registry.yarnpkg.com/@tybys/wasm-util/-/wasm-util-0.9.0.tgz#3e75eb00604c8d6db470bf18c37b7d984a0e3355" + integrity sha512-6+7nlbMVX/PVDCwaIQ8nTOPveOcFLSt8GcXdx8hD0bt39uWxYT88uXzqTd4fTvqta7oeUJqudepapKNt2DYJFw== + dependencies: + tslib "^2.4.0" + +"@types/body-parser@*": + version "1.19.5" + resolved "https://registry.yarnpkg.com/@types/body-parser/-/body-parser-1.19.5.tgz#04ce9a3b677dc8bd681a17da1ab9835dc9d3ede4" + integrity sha512-fB3Zu92ucau0iQ0JMCFQE7b/dv8Ot07NI3KaZIkIUNXq82k4eBAqUaneXfleGY9JWskeS9y+u0nXMyspcuQrCg== + dependencies: + "@types/connect" "*" + "@types/node" "*" + +"@types/bonjour@^3.5.9": + version "3.5.13" + resolved "https://registry.yarnpkg.com/@types/bonjour/-/bonjour-3.5.13.tgz#adf90ce1a105e81dd1f9c61fdc5afda1bfb92956" + integrity sha512-z9fJ5Im06zvUL548KvYNecEVlA7cVDkGUi6kZusb04mpyEFKCIZJvloCcmpmLaIahDpOQGHaHmG6imtPMmPXGQ== + dependencies: + "@types/node" "*" + +"@types/connect-history-api-fallback@^1.3.5": + version "1.5.4" + resolved "https://registry.yarnpkg.com/@types/connect-history-api-fallback/-/connect-history-api-fallback-1.5.4.tgz#7de71645a103056b48ac3ce07b3520b819c1d5b3" + integrity sha512-n6Cr2xS1h4uAulPRdlw6Jl6s1oG8KrVilPN2yUITEs+K48EzMJJ3W1xy8K5eWuFvjp3R74AOIGSmp2UfBJ8HFw== + dependencies: + "@types/express-serve-static-core" "*" + "@types/node" "*" + +"@types/connect@*": + version "3.4.38" + resolved "https://registry.yarnpkg.com/@types/connect/-/connect-3.4.38.tgz#5ba7f3bc4fbbdeaff8dded952e5ff2cc53f8d858" + integrity sha512-K6uROf1LD88uDQqJCktA4yzL1YYAK6NgfsI0v/mTgyPKWsX1CnJ0XPSDhViejru1GcRkLWb8RlzFYJRqGUbaug== + dependencies: + "@types/node" "*" + +"@types/cookie@^0.4.1": + version "0.4.1" + resolved "https://registry.yarnpkg.com/@types/cookie/-/cookie-0.4.1.tgz#bfd02c1f2224567676c1545199f87c3a861d878d" + integrity sha512-XW/Aa8APYr6jSVVA1y/DEIZX0/GMKLEVekNG727R8cs56ahETkRAy/3DR7+fJyh7oUgGwNQaRfXCun0+KbWY7Q== + +"@types/cors@^2.8.12": + version "2.8.17" + resolved "https://registry.yarnpkg.com/@types/cors/-/cors-2.8.17.tgz#5d718a5e494a8166f569d986794e49c48b216b2b" + integrity sha512-8CGDvrBj1zgo2qE+oS3pOCyYNqCPryMWY2bGfwA0dcfopWGgxs+78df0Rs3rc9THP4JkOhLsAa+15VdpAqkcUA== + dependencies: + "@types/node" "*" + +"@types/eslint-scope@^3.7.3": + version "3.7.7" + resolved "https://registry.yarnpkg.com/@types/eslint-scope/-/eslint-scope-3.7.7.tgz#3108bd5f18b0cdb277c867b3dd449c9ed7079ac5" + integrity sha512-MzMFlSLBqNF2gcHWO0G1vP/YQyfvrxZ0bF+u7mzUdZ1/xK4A4sru+nraZz5i3iEIk1l1uyicaDVTB4QbbEkAYg== + dependencies: + "@types/eslint" "*" + "@types/estree" "*" + +"@types/eslint@*", "@types/eslint@^8.56.5": + version "8.56.10" + resolved "https://registry.yarnpkg.com/@types/eslint/-/eslint-8.56.10.tgz#eb2370a73bf04a901eeba8f22595c7ee0f7eb58d" + integrity sha512-Shavhk87gCtY2fhXDctcfS3e6FdxWkCx1iUZ9eEUbh7rTqlZT0/IzOkCOVt0fCjcFuZ9FPYfuezTBImfHCDBGQ== + dependencies: + "@types/estree" "*" + "@types/json-schema" "*" + +"@types/estree@*", "@types/estree@1.0.5", "@types/estree@^1.0.5": + version "1.0.5" + resolved "https://registry.yarnpkg.com/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" + integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== + +"@types/express-serve-static-core@*", "@types/express-serve-static-core@^4.17.33": + version "4.19.5" + resolved "https://registry.yarnpkg.com/@types/express-serve-static-core/-/express-serve-static-core-4.19.5.tgz#218064e321126fcf9048d1ca25dd2465da55d9c6" + integrity sha512-y6W03tvrACO72aijJ5uF02FRq5cgDR9lUxddQ8vyF+GvmjJQqbzDcJngEjURc+ZsG31VI3hODNZJ2URj86pzmg== + dependencies: + "@types/node" "*" + "@types/qs" "*" + "@types/range-parser" "*" + "@types/send" "*" + +"@types/express@*", "@types/express@^4.17.13": + version "4.17.21" + resolved "https://registry.yarnpkg.com/@types/express/-/express-4.17.21.tgz#c26d4a151e60efe0084b23dc3369ebc631ed192d" + integrity sha512-ejlPM315qwLpaQlQDTjPdsUFSc6ZsP4AN6AlWnogPjQ7CVi7PYF3YVz+CY3jE2pwYf7E/7HlDAN0rV2GxTG0HQ== + dependencies: + "@types/body-parser" "*" + "@types/express-serve-static-core" "^4.17.33" + "@types/qs" "*" + "@types/serve-static" "*" + +"@types/glob@^7.1.1": + version "7.2.0" + resolved "https://registry.yarnpkg.com/@types/glob/-/glob-7.2.0.tgz#bc1b5bf3aa92f25bd5dd39f35c57361bdce5b2eb" + integrity sha512-ZUxbzKl0IfJILTS6t7ip5fQQM/J3TJYubDm3nMbgubNNYS62eXeUpoLUC8/7fJNiFYHTrGPQn7hspDUzIHX3UA== + dependencies: + "@types/minimatch" "*" + "@types/node" "*" + +"@types/http-errors@*": + version "2.0.4" + resolved "https://registry.yarnpkg.com/@types/http-errors/-/http-errors-2.0.4.tgz#7eb47726c391b7345a6ec35ad7f4de469cf5ba4f" + integrity sha512-D0CFMMtydbJAegzOyHjtiKPLlvnm3iTZyZRSZoLq2mRhDdmLfIWOCYPfQJ4cu2erKghU++QvjcUjp/5h7hESpA== + +"@types/http-proxy@^1.17.8": + version "1.17.14" + resolved "https://registry.yarnpkg.com/@types/http-proxy/-/http-proxy-1.17.14.tgz#57f8ccaa1c1c3780644f8a94f9c6b5000b5e2eec" + integrity sha512-SSrD0c1OQzlFX7pGu1eXxSEjemej64aaNPRhhVYUGqXh0BtldAAx37MG8btcumvpgKyZp1F5Gn3JkktdxiFv6w== + dependencies: + "@types/node" "*" + +"@types/jasmine@*", "@types/jasmine@5.1.4": + version "5.1.4" + resolved "https://registry.yarnpkg.com/@types/jasmine/-/jasmine-5.1.4.tgz#0de3f6ca753e10d1600ce1864ae42cfd47cf9924" + integrity sha512-px7OMFO/ncXxixDe1zR13V1iycqWae0MxTaw62RpFlksUi5QuNWgQJFkTQjIOvrmutJbI7Fp2Y2N1F6D2R4G6w== + +"@types/jasminewd2@2.0.13": + version "2.0.13" + resolved "https://registry.yarnpkg.com/@types/jasminewd2/-/jasminewd2-2.0.13.tgz#0b60c1fcd06277ea97efbbad5a02e0c1a4a8996a" + integrity sha512-aJ3wj8tXMpBrzQ5ghIaqMisD8C3FIrcO6sDKHqFbuqAsI7yOxj0fA7MrRCPLZHIVUjERIwsMmGn/vB0UQ9u0Hg== + dependencies: + "@types/jasmine" "*" + +"@types/json-schema@*", "@types/json-schema@^7.0.15", "@types/json-schema@^7.0.8", "@types/json-schema@^7.0.9": + version "7.0.15" + resolved "https://registry.yarnpkg.com/@types/json-schema/-/json-schema-7.0.15.tgz#596a1747233694d50f6ad8a7869fcb6f56cf5841" + integrity sha512-5+fP8P8MFNC+AyZCDxrB2pkZFPGzqQWUzpSeuuVLvm8VMcorNYavBqoFcxK8bQz4Qsbn4oUEEem4wDLfcysGHA== + +"@types/json5@^0.0.29": + version "0.0.29" + resolved "https://registry.yarnpkg.com/@types/json5/-/json5-0.0.29.tgz#ee28707ae94e11d2b827bcbe5270bcea7f3e71ee" + integrity sha512-dRLjCWHYg4oaA77cxO64oO+7JwCwnIzkZPdrrC71jQmQtlhM556pwKo5bUzqvZndkVbeFLIIi+9TC40JNF5hNQ== + +"@types/mime@^1": + version "1.3.5" + resolved "https://registry.yarnpkg.com/@types/mime/-/mime-1.3.5.tgz#1ef302e01cf7d2b5a0fa526790c9123bf1d06690" + integrity sha512-/pyBZWSLD2n0dcHE3hq8s8ZvcETHtEuF+3E7XVt0Ig2nvsVQXdghHVcEkIWjy9A0wKfTn97a/PSDYohKIlnP/w== + +"@types/minimatch@*": + version "5.1.2" + resolved "https://registry.yarnpkg.com/@types/minimatch/-/minimatch-5.1.2.tgz#07508b45797cb81ec3f273011b054cd0755eddca" + integrity sha512-K0VQKziLUWkVKiRVrx4a40iPaxTUefQmjtkQofBkYRcoaaL/8rhwDWww9qWbrgicNOgnpIsMxyNIUM4+n6dUIA== + +"@types/minimist@^1.2.0": + version "1.2.5" + resolved "https://registry.yarnpkg.com/@types/minimist/-/minimist-1.2.5.tgz#ec10755e871497bcd83efe927e43ec46e8c0747e" + integrity sha512-hov8bUuiLiyFPGyFPE1lwWhmzYbirOXQNNo40+y3zow8aFVTeyn3VWL0VFFfdNddA8S4Vf0Tc062rzyNr7Paag== + +"@types/mockjs@^1.0.10": + version "1.0.10" + resolved "https://registry.yarnpkg.com/@types/mockjs/-/mockjs-1.0.10.tgz#535e4bdc7c0e4658fc4b3696029d45ee6b053c8a" + integrity sha512-SXgrhajHG7boLv6oU93CcmdDm0HYRiceuz6b+7z+/2lCJPTWDv0V5YiwFHT2ejE4bQqgSXQiVPQYPWv7LGsK1g== + +"@types/node-forge@^1.3.0": + version "1.3.11" + resolved "https://registry.yarnpkg.com/@types/node-forge/-/node-forge-1.3.11.tgz#0972ea538ddb0f4d9c2fa0ec5db5724773a604da" + integrity sha512-FQx220y22OKNTqaByeBGqHWYz4cl94tpcxeFdvBo3wjG6XPBuZ0BNgNZRV5J5TFmmcsJ4IzsLkmGRiQbnYsBEQ== + dependencies: + "@types/node" "*" + +"@types/node@*", "@types/node@>=10.0.0": + version "20.14.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.14.11.tgz#09b300423343460455043ddd4d0ded6ac579b74b" + integrity sha512-kprQpL8MMeszbz6ojB5/tU8PLN4kesnN8Gjzw349rDlNgsSzg90lAVj3llK99Dh7JON+t9AuscPPFW6mPbTnSA== + dependencies: + undici-types "~5.26.4" + +"@types/node@20.12.11": + version "20.12.11" + resolved "https://registry.yarnpkg.com/@types/node/-/node-20.12.11.tgz#c4ef00d3507000d17690643278a60dc55a9dc9be" + integrity sha512-vDg9PZ/zi+Nqp6boSOT7plNuthRugEKixDv5sFTIpkE89MmNtEArAShI4mxuX2+UrLEe9pxC1vm2cjm9YlWbJw== + dependencies: + undici-types "~5.26.4" + +"@types/normalize-package-data@^2.4.0": + version "2.4.4" + resolved "https://registry.yarnpkg.com/@types/normalize-package-data/-/normalize-package-data-2.4.4.tgz#56e2cc26c397c038fab0e3a917a12d5c5909e901" + integrity sha512-37i+OaWTh9qeK4LSHPsyRC7NahnGotNuZvjLSgcPzblpHB3rrCJxAOgI5gCdKm7coonsaX1Of0ILiTcnZjbfxA== + +"@types/parse-json@^4.0.0": + version "4.0.2" + resolved "https://registry.yarnpkg.com/@types/parse-json/-/parse-json-4.0.2.tgz#5950e50960793055845e956c427fc2b0d70c5239" + integrity sha512-dISoDXWWQwUquiKsyZ4Ng+HX2KsPL7LyHKHQwgGFEA3IaKac4Obd+h2a/a6waisAoepJlBcx9paWqjA8/HVjCw== + +"@types/q@^0.0.32": + version "0.0.32" + resolved "https://registry.yarnpkg.com/@types/q/-/q-0.0.32.tgz#bd284e57c84f1325da702babfc82a5328190c0c5" + integrity sha512-qYi3YV9inU/REEfxwVcGZzbS3KG/Xs90lv0Pr+lDtuVjBPGd1A+eciXzVSaRvLify132BfcvhvEjeVahrUl0Ug== + +"@types/qs@*": + version "6.9.15" + resolved "https://registry.yarnpkg.com/@types/qs/-/qs-6.9.15.tgz#adde8a060ec9c305a82de1babc1056e73bd64dce" + integrity sha512-uXHQKES6DQKKCLh441Xv/dwxOq1TVS3JPUMlEqoEglvlhR6Mxnlew/Xq/LRVHpLyk7iK3zODe1qYHIMltO7XGg== + +"@types/range-parser@*": + version "1.2.7" + resolved "https://registry.yarnpkg.com/@types/range-parser/-/range-parser-1.2.7.tgz#50ae4353eaaddc04044279812f52c8c65857dbcb" + integrity sha512-hKormJbkJqzQGhziax5PItDUTMAM9uE2XXQmM37dyd4hVM+5aVl7oVxMVUiVQn2oCQFN/LKCZdvSM0pFRqbSmQ== + +"@types/retry@0.12.0": + version "0.12.0" + resolved "https://registry.yarnpkg.com/@types/retry/-/retry-0.12.0.tgz#2b35eccfcee7d38cd72ad99232fbd58bffb3c84d" + integrity sha512-wWKOClTTiizcZhXnPY4wikVAwmdYHp8q6DmC+EJUzAMsycb7HB32Kh9RN4+0gExjmPmZSAQjgURXIGATPegAvA== + +"@types/selenium-webdriver@^3.0.0": + version "3.0.26" + resolved "https://registry.yarnpkg.com/@types/selenium-webdriver/-/selenium-webdriver-3.0.26.tgz#fc7d87d580affa2e52685b2e881bc201819a5836" + integrity sha512-dyIGFKXfUFiwkMfNGn1+F6b80ZjR3uSYv1j6xVJSDlft5waZ2cwkHW4e7zNzvq7hiEackcgvBpmnXZrI1GltPg== + +"@types/semver@^7.5.8": + version "7.5.8" + resolved "https://registry.yarnpkg.com/@types/semver/-/semver-7.5.8.tgz#8268a8c57a3e4abd25c165ecd36237db7948a55e" + integrity sha512-I8EUhyrgfLrcTkzV3TSsGyl1tSuPrEDzr0yd5m90UgNxQkyDXULk3b6MlQqTCpZpNtWe1K0hzclnZkTcLBe2UQ== + +"@types/send@*": + version "0.17.4" + resolved "https://registry.yarnpkg.com/@types/send/-/send-0.17.4.tgz#6619cd24e7270793702e4e6a4b958a9010cfc57a" + integrity sha512-x2EM6TJOybec7c52BX0ZspPodMsQUd5L6PRwOunVyVUhXiBSKf3AezDL8Dgvgt5o0UfKNfuA0eMLr2wLT4AiBA== + dependencies: + "@types/mime" "^1" + "@types/node" "*" + +"@types/serve-index@^1.9.1": + version "1.9.4" + resolved "https://registry.yarnpkg.com/@types/serve-index/-/serve-index-1.9.4.tgz#e6ae13d5053cb06ed36392110b4f9a49ac4ec898" + integrity sha512-qLpGZ/c2fhSs5gnYsQxtDEq3Oy8SXPClIXkW5ghvAvsNuVSA8k+gCONcUCS/UjLEYvYps+e8uBtfgXgvhwfNug== + dependencies: + "@types/express" "*" + +"@types/serve-static@*", "@types/serve-static@^1.13.10": + version "1.15.7" + resolved "https://registry.yarnpkg.com/@types/serve-static/-/serve-static-1.15.7.tgz#22174bbd74fb97fe303109738e9b5c2f3064f714" + integrity sha512-W8Ym+h8nhuRwaKPaDw34QUkwsGi6Rc4yYqvKFo5rm2FUEhCFbzVWrxXUxuKK8TASjWsysJY0nsmNCGhCOIsrOw== + dependencies: + "@types/http-errors" "*" + "@types/node" "*" + "@types/send" "*" + +"@types/sockjs@^0.3.33": + version "0.3.36" + resolved "https://registry.yarnpkg.com/@types/sockjs/-/sockjs-0.3.36.tgz#ce322cf07bcc119d4cbf7f88954f3a3bd0f67535" + integrity sha512-MK9V6NzAS1+Ud7JV9lJLFqW85VbC9dq3LmwZCuBe4wBDgKC0Kj/jd8Xl+nSviU+Qc3+m7umHHyHg//2KSa0a0Q== + dependencies: + "@types/node" "*" + +"@types/swagger-schema-official@2.0.22": + version "2.0.22" + resolved "https://registry.yarnpkg.com/@types/swagger-schema-official/-/swagger-schema-official-2.0.22.tgz#f7e06168e6994574dfd86928ac04b196870ab043" + integrity sha512-7yQiX6MWSFSvc/1wW5smJMZTZ4fHOd+hqLr3qr/HONDxHEa2bnYAsOcGBOEqFIjd4yetwMOdEDdeW+udRAQnHA== + +"@types/swagger-schema-official@^2.0.15": + version "2.0.25" + resolved "https://registry.yarnpkg.com/@types/swagger-schema-official/-/swagger-schema-official-2.0.25.tgz#c8073914004d0a9c5412aeaf458d96e34c504840" + integrity sha512-T92Xav+Gf/Ik1uPW581nA+JftmjWPgskw/WBf4TJzxRG/SJ+DfNnNE+WuZ4mrXuzflQMqMkm1LSYjzYW7MB1Cg== + +"@types/unist@*", "@types/unist@^3.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-3.0.2.tgz#6dd61e43ef60b34086287f83683a5c1b2dc53d20" + integrity sha512-dqId9J8K/vGi5Zr7oo212BGii5m3q5Hxlkwy3WpYuKPklmBEvsbMYYyLxAQpSffdLl/gdW0XUpKWFvYmyoWCoQ== + +"@types/unist@^2.0.0": + version "2.0.10" + resolved "https://registry.yarnpkg.com/@types/unist/-/unist-2.0.10.tgz#04ffa7f406ab628f7f7e97ca23e290cd8ab15efc" + integrity sha512-IfYcSBWE3hLpBg8+X2SEa8LVkJdJEkT2Ese2aaLs3ptGdVtABxndrMaxuFlQ1qdFf9Q5rDvDpxI3WwgvKFAsQA== + +"@types/vfile-message@*": + version "2.0.0" + resolved "https://registry.yarnpkg.com/@types/vfile-message/-/vfile-message-2.0.0.tgz#690e46af0fdfc1f9faae00cd049cc888957927d5" + integrity sha512-GpTIuDpb9u4zIO165fUy9+fXcULdD8HFRNli04GehoMVbeNq7D6OBnqSmg3lxZnC+UvgUhEWKxdKiwYUkGltIw== + dependencies: + vfile-message "*" + +"@types/vfile@^3.0.0": + version "3.0.2" + resolved "https://registry.yarnpkg.com/@types/vfile/-/vfile-3.0.2.tgz#19c18cd232df11ce6fa6ad80259bc86c366b09b9" + integrity sha512-b3nLFGaGkJ9rzOcuXRfHkZMdjsawuDD0ENL9fzTophtBg8FJHSGbH7daXkEpcwy3v7Xol3pAvsmlYyFhR4pqJw== + dependencies: + "@types/node" "*" + "@types/unist" "*" + "@types/vfile-message" "*" + +"@types/ws@^8.5.5": + version "8.5.11" + resolved "https://registry.yarnpkg.com/@types/ws/-/ws-8.5.11.tgz#90ad17b3df7719ce3e6bc32f83ff954d38656508" + integrity sha512-4+q7P5h3SpJxaBft0Dzpbr6lmMaqh0Jr2tbhJZ/luAwvD7ohSCniYkwz/pLxuT2h0EOa6QADgJj1Ko+TzRfZ+w== + dependencies: + "@types/node" "*" + +"@typescript-eslint/eslint-plugin@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/eslint-plugin/-/eslint-plugin-7.8.0.tgz#c78e309fe967cb4de05b85cdc876fb95f8e01b6f" + integrity sha512-gFTT+ezJmkwutUPmB0skOj3GZJtlEGnlssems4AjkVweUPGj7jRwwqg0Hhg7++kPGJqKtTYx+R05Ftww372aIg== + dependencies: + "@eslint-community/regexpp" "^4.10.0" + "@typescript-eslint/scope-manager" "7.8.0" + "@typescript-eslint/type-utils" "7.8.0" + "@typescript-eslint/utils" "7.8.0" + "@typescript-eslint/visitor-keys" "7.8.0" + debug "^4.3.4" + graphemer "^1.4.0" + ignore "^5.3.1" + natural-compare "^1.4.0" + semver "^7.6.0" + ts-api-utils "^1.3.0" + +"@typescript-eslint/parser@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/parser/-/parser-7.8.0.tgz#1e1db30c8ab832caffee5f37e677dbcb9357ddc8" + integrity sha512-KgKQly1pv0l4ltcftP59uQZCi4HUYswCLbTqVZEJu7uLX8CTLyswqMLqLN+2QFz4jCptqWVV4SB7vdxcH2+0kQ== + dependencies: + "@typescript-eslint/scope-manager" "7.8.0" + "@typescript-eslint/types" "7.8.0" + "@typescript-eslint/typescript-estree" "7.8.0" + "@typescript-eslint/visitor-keys" "7.8.0" + debug "^4.3.4" + +"@typescript-eslint/scope-manager@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.11.0.tgz#cf5619b01de62a226a59add15a02bde457335d1d" + integrity sha512-27tGdVEiutD4POirLZX4YzT180vevUURJl4wJGmm6TrQoiYwuxTIY98PBp6L2oN+JQxzE0URvYlzJaBHIekXAw== + dependencies: + "@typescript-eslint/types" "7.11.0" + "@typescript-eslint/visitor-keys" "7.11.0" + +"@typescript-eslint/scope-manager@7.16.1": + version "7.16.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.16.1.tgz#2b43041caabf8ddd74512b8b550b9fc53ca3afa1" + integrity sha512-nYpyv6ALte18gbMz323RM+vpFpTjfNdyakbf3nsLvF43uF9KeNC289SUEW3QLZ1xPtyINJ1dIsZOuWuSRIWygw== + dependencies: + "@typescript-eslint/types" "7.16.1" + "@typescript-eslint/visitor-keys" "7.16.1" + +"@typescript-eslint/scope-manager@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/scope-manager/-/scope-manager-7.8.0.tgz#bb19096d11ec6b87fb6640d921df19b813e02047" + integrity sha512-viEmZ1LmwsGcnr85gIq+FCYI7nO90DVbE37/ll51hjv9aG+YZMb4WDE2fyWpUR4O/UrhGRpYXK/XajcGTk2B8g== + dependencies: + "@typescript-eslint/types" "7.8.0" + "@typescript-eslint/visitor-keys" "7.8.0" + +"@typescript-eslint/type-utils@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.11.0.tgz#ac216697d649084fedf4a910347b9642bd0ff099" + integrity sha512-WmppUEgYy+y1NTseNMJ6mCFxt03/7jTOy08bcg7bxJJdsM4nuhnchyBbE8vryveaJUf62noH7LodPSo5Z0WUCg== + dependencies: + "@typescript-eslint/typescript-estree" "7.11.0" + "@typescript-eslint/utils" "7.11.0" + debug "^4.3.4" + ts-api-utils "^1.3.0" + +"@typescript-eslint/type-utils@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/type-utils/-/type-utils-7.8.0.tgz#9de166f182a6e4d1c5da76e94880e91831e3e26f" + integrity sha512-H70R3AefQDQpz9mGv13Uhi121FNMh+WEaRqcXTX09YEDky21km4dV1ZXJIp8QjXc4ZaVkXVdohvWDzbnbHDS+A== + dependencies: + "@typescript-eslint/typescript-estree" "7.8.0" + "@typescript-eslint/utils" "7.8.0" + debug "^4.3.4" + ts-api-utils "^1.3.0" + +"@typescript-eslint/types@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.11.0.tgz#5e9702a5e8b424b7fc690e338d359939257d6722" + integrity sha512-MPEsDRZTyCiXkD4vd3zywDCifi7tatc4K37KqTprCvaXptP7Xlpdw0NR2hRJTetG5TxbWDB79Ys4kLmHliEo/w== + +"@typescript-eslint/types@7.16.1", "@typescript-eslint/types@^7.2.0": + version "7.16.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.16.1.tgz#bbab066276d18e398bc64067b23f1ce84dfc6d8c" + integrity sha512-AQn9XqCzUXd4bAVEsAXM/Izk11Wx2u4H3BAfQVhSfzfDOm/wAON9nP7J5rpkCxts7E5TELmN845xTUCQrD1xIQ== + +"@typescript-eslint/types@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/types/-/types-7.8.0.tgz#1fd2577b3ad883b769546e2d1ef379f929a7091d" + integrity sha512-wf0peJ+ZGlcH+2ZS23aJbOv+ztjeeP8uQ9GgwMJGVLx/Nj9CJt17GWgWWoSmoRVKAX2X+7fzEnAjxdvK2gqCLw== + +"@typescript-eslint/typescript-estree@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.11.0.tgz#7cbc569bc7336c3a494ceaf8204fdee5d5dbb7fa" + integrity sha512-cxkhZ2C/iyi3/6U9EPc5y+a6csqHItndvN/CzbNXTNrsC3/ASoYQZEt9uMaEp+xFNjasqQyszp5TumAVKKvJeQ== + dependencies: + "@typescript-eslint/types" "7.11.0" + "@typescript-eslint/visitor-keys" "7.11.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" + +"@typescript-eslint/typescript-estree@7.16.1": + version "7.16.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.16.1.tgz#9b145ba4fd1dde1986697e1ce57dc501a1736dd3" + integrity sha512-0vFPk8tMjj6apaAZ1HlwM8w7jbghC8jc1aRNJG5vN8Ym5miyhTQGMqU++kuBFDNKe9NcPeZ6x0zfSzV8xC1UlQ== + dependencies: + "@typescript-eslint/types" "7.16.1" + "@typescript-eslint/visitor-keys" "7.16.1" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" + +"@typescript-eslint/typescript-estree@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/typescript-estree/-/typescript-estree-7.8.0.tgz#b028a9226860b66e623c1ee55cc2464b95d2987c" + integrity sha512-5pfUCOwK5yjPaJQNy44prjCwtr981dO8Qo9J9PwYXZ0MosgAbfEMB008dJ5sNo3+/BN6ytBPuSvXUg9SAqB0dg== + dependencies: + "@typescript-eslint/types" "7.8.0" + "@typescript-eslint/visitor-keys" "7.8.0" + debug "^4.3.4" + globby "^11.1.0" + is-glob "^4.0.3" + minimatch "^9.0.4" + semver "^7.6.0" + ts-api-utils "^1.3.0" + +"@typescript-eslint/utils@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.11.0.tgz#524f047f2209959424c3ef689b0d83b3bc09919c" + integrity sha512-xlAWwPleNRHwF37AhrZurOxA1wyXowW4PqVXZVUNCLjB48CqdPJoJWkrpH2nij9Q3Lb7rtWindtoXwxjxlKKCA== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@typescript-eslint/scope-manager" "7.11.0" + "@typescript-eslint/types" "7.11.0" + "@typescript-eslint/typescript-estree" "7.11.0" + +"@typescript-eslint/utils@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.8.0.tgz#57a79f9c0c0740ead2f622e444cfaeeb9fd047cd" + integrity sha512-L0yFqOCflVqXxiZyXrDr80lnahQfSOfc9ELAAZ75sqicqp2i36kEZZGuUymHNFoYOqxRT05up760b4iGsl02nQ== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@types/json-schema" "^7.0.15" + "@types/semver" "^7.5.8" + "@typescript-eslint/scope-manager" "7.8.0" + "@typescript-eslint/types" "7.8.0" + "@typescript-eslint/typescript-estree" "7.8.0" + semver "^7.6.0" + +"@typescript-eslint/utils@^7.0.0": + version "7.16.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/utils/-/utils-7.16.1.tgz#df42dc8ca5a4603016fd102db0346cdab415cdb7" + integrity sha512-WrFM8nzCowV0he0RlkotGDujx78xudsxnGMBHI88l5J8wEhED6yBwaSLP99ygfrzAjsQvcYQ94quDwI0d7E1fA== + dependencies: + "@eslint-community/eslint-utils" "^4.4.0" + "@typescript-eslint/scope-manager" "7.16.1" + "@typescript-eslint/types" "7.16.1" + "@typescript-eslint/typescript-estree" "7.16.1" + +"@typescript-eslint/visitor-keys@7.11.0": + version "7.11.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.11.0.tgz#2c50cd292e67645eec05ac0830757071b4a4d597" + integrity sha512-7syYk4MzjxTEk0g/w3iqtgxnFQspDJfn6QKD36xMuuhTzjcxY7F8EmBLnALjVyaOF1/bVocu3bS/2/F7rXrveQ== + dependencies: + "@typescript-eslint/types" "7.11.0" + eslint-visitor-keys "^3.4.3" + +"@typescript-eslint/visitor-keys@7.16.1": + version "7.16.1" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.16.1.tgz#4287bcf44c34df811ff3bb4d269be6cfc7d8c74b" + integrity sha512-Qlzzx4sE4u3FsHTPQAAQFJFNOuqtuY0LFrZHwQ8IHK705XxBiWOFkfKRWu6niB7hwfgnwIpO4jTC75ozW1PHWg== + dependencies: + "@typescript-eslint/types" "7.16.1" + eslint-visitor-keys "^3.4.3" + +"@typescript-eslint/visitor-keys@7.8.0": + version "7.8.0" + resolved "https://registry.yarnpkg.com/@typescript-eslint/visitor-keys/-/visitor-keys-7.8.0.tgz#7285aab991da8bee411a42edbd5db760d22fdd91" + integrity sha512-q4/gibTNBQNA0lGyYQCmWRS5D15n8rXh4QjK3KV+MBPlTYHpfBUT3D3PaPR/HeNiI9W6R7FvlkcGhNyAoP+caA== + dependencies: + "@typescript-eslint/types" "7.8.0" + eslint-visitor-keys "^3.4.3" + +"@ungap/structured-clone@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@ungap/structured-clone/-/structured-clone-1.2.0.tgz#756641adb587851b5ccb3e095daf27ae581c8406" + integrity sha512-zuVdFrMJiuCDQUMCzQaD6KL28MjnqqN8XnAqiEq9PNm/hCPTSGfrXCOfwj1ow4LFb/tNymJPwsNbVePc1xFqrQ== + +"@vitejs/plugin-basic-ssl@1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@vitejs/plugin-basic-ssl/-/plugin-basic-ssl-1.1.0.tgz#8b840305a6b48e8764803435ec0c716fa27d3802" + integrity sha512-wO4Dk/rm8u7RNhOf95ZzcEmC9rYOncYgvq4z3duaJrCgjN8BxAnDVyndanfcJZ0O6XZzHz6Q0hTimxTg8Y9g/A== + +"@webassemblyjs/ast@1.12.1", "@webassemblyjs/ast@^1.11.5": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ast/-/ast-1.12.1.tgz#bb16a0e8b1914f979f45864c23819cc3e3f0d4bb" + integrity sha512-EKfMUOPRRUTy5UII4qJDGPpqfwjOmZ5jeGFwid9mnoqIFK+e0vqoi1qH56JpmZSzEL53jKnNzScdmftJyG5xWg== + dependencies: + "@webassemblyjs/helper-numbers" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + +"@webassemblyjs/floating-point-hex-parser@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/floating-point-hex-parser/-/floating-point-hex-parser-1.11.6.tgz#dacbcb95aff135c8260f77fa3b4c5fea600a6431" + integrity sha512-ejAj9hfRJ2XMsNHk/v6Fu2dGS+i4UaXBXGemOfQ/JfQ6mdQg/WXtwleQRLLS4OvfDhv8rYnVwH27YJLMyYsxhw== + +"@webassemblyjs/helper-api-error@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-api-error/-/helper-api-error-1.11.6.tgz#6132f68c4acd59dcd141c44b18cbebbd9f2fa768" + integrity sha512-o0YkoP4pVu4rN8aTJgAyj9hC2Sv5UlkzCHhxqWj8butaLvnpdc2jOwh4ewE6CX0txSfLn/UYaV/pheS2Txg//Q== + +"@webassemblyjs/helper-buffer@1.12.1": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-buffer/-/helper-buffer-1.12.1.tgz#6df20d272ea5439bf20ab3492b7fb70e9bfcb3f6" + integrity sha512-nzJwQw99DNDKr9BVCOZcLuJJUlqkJh+kVzVl6Fmq/tI5ZtEyWT1KZMyOXltXLZJmDtvLCDgwsyrkohEtopTXCw== + +"@webassemblyjs/helper-numbers@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-numbers/-/helper-numbers-1.11.6.tgz#cbce5e7e0c1bd32cf4905ae444ef64cea919f1b5" + integrity sha512-vUIhZ8LZoIWHBohiEObxVm6hwP034jwmc9kuq5GdHZH0wiLVLIPcMCdpJzG4C11cHoQ25TFIQj9kaVADVX7N3g== + dependencies: + "@webassemblyjs/floating-point-hex-parser" "1.11.6" + "@webassemblyjs/helper-api-error" "1.11.6" + "@xtuc/long" "4.2.2" + +"@webassemblyjs/helper-wasm-bytecode@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-bytecode/-/helper-wasm-bytecode-1.11.6.tgz#bb2ebdb3b83aa26d9baad4c46d4315283acd51e9" + integrity sha512-sFFHKwcmBprO9e7Icf0+gddyWYDViL8bpPjJJl0WHxCdETktXdmtWLGVzoHbqUcY4Be1LkNfwTmXOJUFZYSJdA== + +"@webassemblyjs/helper-wasm-section@1.12.1": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/helper-wasm-section/-/helper-wasm-section-1.12.1.tgz#3da623233ae1a60409b509a52ade9bc22a37f7bf" + integrity sha512-Jif4vfB6FJlUlSbgEMHUyk1j234GTNG9dBJ4XJdOySoj518Xj0oGsNi59cUQF4RRMS9ouBUxDDdyBVfPTypa5g== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@webassemblyjs/helper-buffer" "1.12.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/wasm-gen" "1.12.1" + +"@webassemblyjs/ieee754@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/ieee754/-/ieee754-1.11.6.tgz#bb665c91d0b14fffceb0e38298c329af043c6e3a" + integrity sha512-LM4p2csPNvbij6U1f19v6WR56QZ8JcHg3QIJTlSwzFcmx6WSORicYj6I63f9yU1kEUtrpG+kjkiIAkevHpDXrg== + dependencies: + "@xtuc/ieee754" "^1.2.0" + +"@webassemblyjs/leb128@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/leb128/-/leb128-1.11.6.tgz#70e60e5e82f9ac81118bc25381a0b283893240d7" + integrity sha512-m7a0FhE67DQXgouf1tbN5XQcdWoNgaAuoULHIfGFIEVKA6tu/edls6XnIlkmS6FrXAquJRPni3ZZKjw6FSPjPQ== + dependencies: + "@xtuc/long" "4.2.2" + +"@webassemblyjs/utf8@1.11.6": + version "1.11.6" + resolved "https://registry.yarnpkg.com/@webassemblyjs/utf8/-/utf8-1.11.6.tgz#90f8bc34c561595fe156603be7253cdbcd0fab5a" + integrity sha512-vtXf2wTQ3+up9Zsg8sa2yWiQpzSsMyXj0qViVP6xKGCUT8p8YJ6HqI7l5eCnWx1T/FYdsv07HQs2wTFbbof/RA== + +"@webassemblyjs/wasm-edit@^1.11.5": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-edit/-/wasm-edit-1.12.1.tgz#9f9f3ff52a14c980939be0ef9d5df9ebc678ae3b" + integrity sha512-1DuwbVvADvS5mGnXbE+c9NfA8QRcZ6iKquqjjmR10k6o+zzsRVesil54DKexiowcFCPdr/Q0qaMgB01+SQ1u6g== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@webassemblyjs/helper-buffer" "1.12.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/helper-wasm-section" "1.12.1" + "@webassemblyjs/wasm-gen" "1.12.1" + "@webassemblyjs/wasm-opt" "1.12.1" + "@webassemblyjs/wasm-parser" "1.12.1" + "@webassemblyjs/wast-printer" "1.12.1" + +"@webassemblyjs/wasm-gen@1.12.1": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-gen/-/wasm-gen-1.12.1.tgz#a6520601da1b5700448273666a71ad0a45d78547" + integrity sha512-TDq4Ojh9fcohAw6OIMXqiIcTq5KUXTGRkVxbSo1hQnSy6lAM5GSdfwWeSxpAo0YzgsgF182E/U0mDNhuA0tW7w== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/ieee754" "1.11.6" + "@webassemblyjs/leb128" "1.11.6" + "@webassemblyjs/utf8" "1.11.6" + +"@webassemblyjs/wasm-opt@1.12.1": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-opt/-/wasm-opt-1.12.1.tgz#9e6e81475dfcfb62dab574ac2dda38226c232bc5" + integrity sha512-Jg99j/2gG2iaz3hijw857AVYekZe2SAskcqlWIZXjji5WStnOpVoat3gQfT/Q5tb2djnCjBtMocY/Su1GfxPBg== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@webassemblyjs/helper-buffer" "1.12.1" + "@webassemblyjs/wasm-gen" "1.12.1" + "@webassemblyjs/wasm-parser" "1.12.1" + +"@webassemblyjs/wasm-parser@1.12.1", "@webassemblyjs/wasm-parser@^1.11.5": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wasm-parser/-/wasm-parser-1.12.1.tgz#c47acb90e6f083391e3fa61d113650eea1e95937" + integrity sha512-xikIi7c2FHXysxXe3COrVUPSheuBtpcfhbpFj4gmu7KRLYOzANztwUU0IbsqvMqzuNK2+glRGWCEqZo1WCLyAQ== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@webassemblyjs/helper-api-error" "1.11.6" + "@webassemblyjs/helper-wasm-bytecode" "1.11.6" + "@webassemblyjs/ieee754" "1.11.6" + "@webassemblyjs/leb128" "1.11.6" + "@webassemblyjs/utf8" "1.11.6" + +"@webassemblyjs/wast-printer@1.12.1": + version "1.12.1" + resolved "https://registry.yarnpkg.com/@webassemblyjs/wast-printer/-/wast-printer-1.12.1.tgz#bcecf661d7d1abdaf989d8341a4833e33e2b31ac" + integrity sha512-+X4WAlOisVWQMikjbcvY2e0rwPsKQ9F688lksZhBcPycBBuii3O7m8FACbDMWDojpAqvjIncrG8J0XHKyQfVeA== + dependencies: + "@webassemblyjs/ast" "1.12.1" + "@xtuc/long" "4.2.2" + +"@xtuc/ieee754@^1.2.0": + version "1.2.0" + resolved "https://registry.yarnpkg.com/@xtuc/ieee754/-/ieee754-1.2.0.tgz#eef014a3145ae477a1cbc00cd1e552336dceb790" + integrity sha512-DX8nKgqcGwsc0eJSqYt5lwP4DH5FlHnmuWWBRy7X0NcaGR0ZtuyeESgMwTYVEtxmsNGY+qit4QYT/MIYTOTPeA== + +"@xtuc/long@4.2.2": + version "4.2.2" + resolved "https://registry.yarnpkg.com/@xtuc/long/-/long-4.2.2.tgz#d291c6a4e97989b5c61d9acf396ae4fe133a718d" + integrity sha512-NuHqBY1PB/D8xU6s/thBgOAiAP7HOYDQ32+BFZILJ8ivkUkAHQnWfn6WhL79Owj1qmUnoN/YPhktdIoucipkAQ== + +"@yarnpkg/lockfile@1.1.0", "@yarnpkg/lockfile@^1.1.0": + version "1.1.0" + resolved "https://registry.yarnpkg.com/@yarnpkg/lockfile/-/lockfile-1.1.0.tgz#e77a97fbd345b76d83245edcd17d393b1b41fb31" + integrity sha512-GpSwvyXOcOOlV70vbnzjj4fW5xW/FdUF6nQEt1ENy7m4ZCczi1+/buVUPAqmGfqznsORNFzUMjctTIp8a9tuCQ== + +"@yarnpkg/parsers@3.0.0-rc.46": + version "3.0.0-rc.46" + resolved "https://registry.yarnpkg.com/@yarnpkg/parsers/-/parsers-3.0.0-rc.46.tgz#03f8363111efc0ea670e53b0282cd3ef62de4e01" + integrity sha512-aiATs7pSutzda/rq8fnuPwTglyVwjM22bNnK2ZgjrpAjQHSSl3lztd2f9evst1W/qnC58DRz7T7QndUDumAR4Q== + dependencies: + js-yaml "^3.10.0" + tslib "^2.4.0" + +"@zkochan/js-yaml@0.0.7": + version "0.0.7" + resolved "https://registry.yarnpkg.com/@zkochan/js-yaml/-/js-yaml-0.0.7.tgz#4b0cb785220d7c28ce0ec4d0804deb5d821eae89" + integrity sha512-nrUSn7hzt7J6JWgWGz78ZYI8wj+gdIJdk0Ynjpp8l+trkn58Uqsf6RYrYkEK+3X18EX+TNdtJI0WxAtc+L84SQ== + dependencies: + argparse "^2.0.1" + +abbrev@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/abbrev/-/abbrev-2.0.0.tgz#cf59829b8b4f03f89dda2771cb7f3653828c89bf" + integrity sha512-6/mh1E2u2YgEsCHdY0Yx5oW+61gZU+1vXaoiHHrpKeuRNNgFvS+/jrwHiQhB5apAf5oB7UB7E19ol2R2LKH8hQ== + +accepts@~1.3.4, accepts@~1.3.5, accepts@~1.3.8: + version "1.3.8" + resolved "https://registry.yarnpkg.com/accepts/-/accepts-1.3.8.tgz#0bf0be125b67014adcb0b0921e62db7bffe16b2e" + integrity sha512-PYAthTa2m2VKxuvSD3DPC/Gy+U+sOA1LAuT8mkmRuvw+NACSaeXEQ+NHcVF7rONl6qcaxV3Uuemwawk+7+SJLw== + dependencies: + mime-types "~2.1.34" + negotiator "0.6.3" + +acorn-import-assertions@^1.9.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/acorn-import-assertions/-/acorn-import-assertions-1.9.0.tgz#507276249d684797c84e0734ef84860334cfb1ac" + integrity sha512-cmMwop9x+8KFhxvKrKfPYmN6/pKTYYHBqLa0DfvVZcKMJWNyWLnaqND7dx/qn66R7ewM1UX5XMaDVP5wlVTaVA== + +acorn-jsx@^5.3.2: + version "5.3.2" + resolved "https://registry.yarnpkg.com/acorn-jsx/-/acorn-jsx-5.3.2.tgz#7ed5bb55908b3b2f1bc55c6af1653bada7f07937" + integrity sha512-rq9s+JNhf0IChjtDXxllJ7g41oZk5SlXtp0LHwyA5cejwn7vKmKp4pPri6YEePv2PU65sAsegbXtIinmDFDXgQ== + +acorn-walk@^8.1.1: + version "8.3.3" + resolved "https://registry.yarnpkg.com/acorn-walk/-/acorn-walk-8.3.3.tgz#9caeac29eefaa0c41e3d4c65137de4d6f34df43e" + integrity sha512-MxXdReSRhGO7VlFe1bRG/oI7/mdLV9B9JJT0N8vZOhF7gFRR5l3M8W9G8JxmKV+JC5mGqJ0QvqfSOLsCPa4nUw== + dependencies: + acorn "^8.11.0" + +acorn@^8.11.0, acorn@^8.4.1, acorn@^8.7.1, acorn@^8.8.2, acorn@^8.9.0: + version "8.12.1" + resolved "https://registry.yarnpkg.com/acorn/-/acorn-8.12.1.tgz#71616bdccbe25e27a54439e0046e89ca76df2248" + integrity sha512-tcpGyI9zbizT9JbV6oYE477V6mTlXvvi0T0G3SNIYE2apm/G5huBa1+K89VGeovbg+jycCrfhl3ADxErOuO6Jg== + +adjust-sourcemap-loader@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/adjust-sourcemap-loader/-/adjust-sourcemap-loader-4.0.0.tgz#fc4a0fd080f7d10471f30a7320f25560ade28c99" + integrity sha512-OXwN5b9pCUXNQHJpwwD2qP40byEmSgzj8B4ydSN0uMNYWiFmJ6x6KwUllMmfk8Rwu/HJDFR7U8ubsWBoN0Xp0A== + dependencies: + loader-utils "^2.0.0" + regex-parser "^2.2.11" + +adler-32@~1.3.0: + version "1.3.1" + resolved "https://registry.yarnpkg.com/adler-32/-/adler-32-1.3.1.tgz#1dbf0b36dda0012189a32b3679061932df1821e2" + integrity sha512-ynZ4w/nUUv5rrsR8UUGoe1VC9hZj6V5hU9Qw1HlMDJGEJw5S7TfTErWTjMys6M7vr0YWcPqs3qAr4ss0nDfP+A== + +adm-zip@^0.5.2: + version "0.5.14" + resolved "https://registry.yarnpkg.com/adm-zip/-/adm-zip-0.5.14.tgz#2c557c0bf12af4311cf6d32970f4060cf8133b2a" + integrity sha512-DnyqqifT4Jrcvb8USYjp6FHtBpEIz1mnXu6pTRHZ0RL69LbQYiO+0lDFg5+OKA7U29oWSs3a/i8fhn8ZcceIWg== + +agent-base@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-4.3.0.tgz#8165f01c436009bccad0b1d122f05ed770efc6ee" + integrity sha512-salcGninV0nPrwpGNn4VTXBb1SOuXQBiqbrNXoeizJsHrsL6ERFM2Ne3JUSBWRE6aeNJI2ROP/WEEIDUiDe3cg== + dependencies: + es6-promisify "^5.0.0" + +agent-base@^7.0.2, agent-base@^7.1.0, agent-base@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/agent-base/-/agent-base-7.1.1.tgz#bdbded7dfb096b751a2a087eeeb9664725b2e317" + integrity sha512-H0TSyFNDMomMNJQBn8wFV5YC/2eJ+VXECwOadZJT554xP6cODZHPX3H9QMQECxvrgiSOP1pHjy1sMWQVYJOUOA== + dependencies: + debug "^4.3.4" + +aggregate-error@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/aggregate-error/-/aggregate-error-3.1.0.tgz#92670ff50f5359bdb7a3e0d40d0ec30c5737687a" + integrity sha512-4I7Td01quW/RpocfNayFdFVk1qSuoh0E7JrbRJ16nH01HhKFQ88INq9Sd+nd72zqRySlr9BmDA8xlEJ6vJMrYA== + dependencies: + clean-stack "^2.0.0" + indent-string "^4.0.0" + +ajv-formats@2.1.1, ajv-formats@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ajv-formats/-/ajv-formats-2.1.1.tgz#6e669400659eb74973bbf2e33327180a0996b520" + integrity sha512-Wx0Kx52hxE7C18hkMEggYlEifqWZtYaRgouJor+WMdPnQyEK13vgEWyVNup7SoeeoLMsr4kf5h6dOW11I15MUA== + dependencies: + ajv "^8.0.0" + +ajv-keywords@^3.5.2: + version "3.5.2" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-3.5.2.tgz#31f29da5ab6e00d1c2d329acf7b5929614d5014d" + integrity sha512-5p6WTN0DdTGVQk6VjcEju19IgaHudalcfabD7yhDGeA6bcQnmL+CpveLJq/3hvfwd1aof6L386Ougkx6RfyMIQ== + +ajv-keywords@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/ajv-keywords/-/ajv-keywords-5.1.0.tgz#69d4d385a4733cdbeab44964a1170a88f87f0e16" + integrity sha512-YCS/JNFAUyr5vAuhk1DWm1CBxRHW9LbJ2ozWeemrIqpbsqKjHVxYPyi5GC0rjZIT5JxJ3virVTS8wk4i/Z+krw== + dependencies: + fast-deep-equal "^3.1.3" + +ajv@8.12.0: + version "8.12.0" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.12.0.tgz#d1a0527323e22f53562c567c00991577dfbe19d1" + integrity sha512-sRu1kpcO9yLtYxBKvqfTeh9KzZEwO3STyX1HT+4CaDzC6HpTGYhIhPIzj9XuKU7KYDwnaeh5hcOwjy1QuJzBPA== + dependencies: + fast-deep-equal "^3.1.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + uri-js "^4.2.2" + +ajv@^6.10.2, ajv@^6.12.3, ajv@^6.12.4, ajv@^6.12.5: + version "6.12.6" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-6.12.6.tgz#baf5a62e802b07d977034586f8c3baf5adf26df4" + integrity sha512-j3fVLgvTo527anyYyJOGTYJbG+vnnQYvE0m5mmkc1TK+nxAppkCLMIL0aZ4dblVCNoGShhm+kzE4ZUykBoMg4g== + dependencies: + fast-deep-equal "^3.1.1" + fast-json-stable-stringify "^2.0.0" + json-schema-traverse "^0.4.1" + uri-js "^4.2.2" + +ajv@^8.0.0, ajv@^8.0.1, ajv@^8.12.0, ajv@^8.9.0: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ajv/-/ajv-8.17.1.tgz#37d9a5c776af6bc92d7f4f9510eba4c0a60d11a6" + integrity sha512-B/gBuNg5SiMTrPkC+A2+cW0RszwxYmn6VYxB/inlBStS5nx6xHIt/ehKRhIMhqusl7a8LjQoZnjCs5vhwxOQ1g== + dependencies: + fast-deep-equal "^3.1.3" + fast-uri "^3.0.1" + json-schema-traverse "^1.0.0" + require-from-string "^2.0.2" + +angular-tag-cloud-module@17.0.1: + version "17.0.1" + resolved "https://registry.yarnpkg.com/angular-tag-cloud-module/-/angular-tag-cloud-module-17.0.1.tgz#44370f90f0fa01c6f4eda48cbd94f3b135b4858c" + integrity sha512-9r34krgnLhfZZWRis0Sl4VPKm0x9MGkw7bBBPSKfd5R4URizBfn2Wac0NXn1dtmavJwfqqSyq/oFJFpPS8/IUg== + dependencies: + tslib "^2.3.0" + +ansi-colors@4.1.3, ansi-colors@^4.1.1: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ansi-colors/-/ansi-colors-4.1.3.tgz#37611340eb2243e70cc604cad35d63270d48781b" + integrity sha512-/6w/C21Pm1A7aZitlI5Ni/2J6FFQN8i1Cvz3kHABAAbw93v/NlvKdVOqz7CCWz/3iv/JplRSEEZ83XION15ovw== + +ansi-escapes@^4.3.2: + version "4.3.2" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-4.3.2.tgz#6b2291d1db7d98b6521d5f1efa42d0f3a9feb65e" + integrity sha512-gKXj5ALrKWQLsYG9jlTRmR/xKluxHV+Z9QEwNIgCfM1/uwPMCuzVVnh5mwTd+OuBZcwSIMbqssNWRm1lE51QaQ== + dependencies: + type-fest "^0.21.3" + +ansi-escapes@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/ansi-escapes/-/ansi-escapes-5.0.0.tgz#b6a0caf0eef0c41af190e9a749e0c00ec04bb2a6" + integrity sha512-5GFMVX8HqE/TB+FuBJGuO5XG0WrsA6ptUqoODaT/n9mmUaZFkqnBueB4leqGBCmrUHnCnC4PCZTCd0E7QQ83bA== + dependencies: + type-fest "^1.0.2" + +ansi-html-community@^0.0.8: + version "0.0.8" + resolved "https://registry.yarnpkg.com/ansi-html-community/-/ansi-html-community-0.0.8.tgz#69fbc4d6ccbe383f9736934ae34c3f8290f1bf41" + integrity sha512-1APHAyr3+PCamwNw3bXCPp4HFLONZt/yIH0sZp0/469KWNTEy+qN5jQ3GVX6DMZ1UXAi34yVwtTeaG/HpBuuzw== + +ansi-regex@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-2.1.1.tgz#c3b33ab5ee360d86e0e628f0468ae7ef27d654df" + integrity sha512-TIGnTpdo+E3+pCyAluZvtED5p5wCqLdezCyhPZzKPcxvFplEt4i+W7OONCKgeZFT3+y5NZZfOOS/Bdcanm1MYA== + +ansi-regex@^4.1.0: + version "4.1.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-4.1.1.tgz#164daac87ab2d6f6db3a29875e2d1766582dabed" + integrity sha512-ILlv4k/3f6vfQ4OoP2AGvirOktlQ98ZEL1k9FaQjxa3L1abBgbuTDAdPOpvbGncC0BTVQrl+OM8xZGK6tWXt7g== + +ansi-regex@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-5.0.1.tgz#082cb2c89c9fe8659a311a53bd6a4dc5301db304" + integrity sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ== + +ansi-regex@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/ansi-regex/-/ansi-regex-6.0.1.tgz#3183e38fae9a65d7cb5e53945cd5897d0260a06a" + integrity sha512-n5M855fKb2SsfMIiFFoVrABHJC8QtHwVx+mHWP3QcEqBHYienj5dHSgjbxtC0WEZXYt4wcD6zrQElDPhFuZgfA== + +ansi-styles@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-2.2.1.tgz#b432dd3358b634cf75e1e4664368240533c1ddbe" + integrity sha512-kmCevFghRiWM7HB5zTPULl4r9bVFSWjz62MhqizDGUrq2NWuNMQyuv4tHHoKJHs69M/MF64lEcHdYIocrdWQYA== + +ansi-styles@^3.2.0, ansi-styles@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-3.2.1.tgz#41fbb20243e50b12be0f04b8dedbf07520ce841d" + integrity sha512-VT0ZI6kZRdTh8YyJw3SMbYm/u+NqfsAxEpWO0Pf9sq8/e94WxxOpPKx9FR1FlyCtOVDNOQ+8ntlqFxiRc+r5qA== + dependencies: + color-convert "^1.9.0" + +ansi-styles@^4.0.0, ansi-styles@^4.1.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-4.3.0.tgz#edd803628ae71c04c85ae7a0906edad34b648937" + integrity sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg== + dependencies: + color-convert "^2.0.1" + +ansi-styles@^5.0.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-5.2.0.tgz#07449690ad45777d1924ac2abb2fc8895dba836b" + integrity sha512-Cxwpt2SfTzTtXcfOlzGEee8O+c+MmUgGrNiBcXnuWxuFJHe6a5Hz7qwhwe5OgaSYI0IJvkLqWX1ASG+cJOkEiA== + +ansi-styles@^6.0.0, ansi-styles@^6.1.0: + version "6.2.1" + resolved "https://registry.yarnpkg.com/ansi-styles/-/ansi-styles-6.2.1.tgz#0e62320cf99c21afff3b3012192546aacbfb05c5" + integrity sha512-bN798gFfQX+viw3R7yrGWRqnrN2oRkEkUjjl4JNn4E8GxxbjtG3FbrEIIY3l8/hrwUwIeCZvi4QuOTP4MErVug== + +anymatch@~3.1.2: + version "3.1.3" + resolved "https://registry.yarnpkg.com/anymatch/-/anymatch-3.1.3.tgz#790c58b19ba1720a84205b57c618d5ad8524973e" + integrity sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw== + dependencies: + normalize-path "^3.0.0" + picomatch "^2.0.4" + +are-docs-informative@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/are-docs-informative/-/are-docs-informative-0.0.2.tgz#387f0e93f5d45280373d387a59d34c96db321963" + integrity sha512-ixiS0nLNNG5jNQzgZJNoUpBKdo9yTYZMGJ+QgT2jmjR7G7+QHRCc4v6LQ3NgE7EBJq+o0ams3waJwkrlBom8Ig== + +arg@^4.1.0: + version "4.1.3" + resolved "https://registry.yarnpkg.com/arg/-/arg-4.1.3.tgz#269fc7ad5b8e42cb63c896d5666017261c144089" + integrity sha512-58S9QDqG0Xx27YwPSt9fJxivjYl432YCwfDMfZ+71RAqUrZef7LrKQZ3LHLOwCS4FLNBplP533Zx895SeOCHvA== + +argparse@^1.0.7: + version "1.0.10" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-1.0.10.tgz#bcd6791ea5ae09725e17e5ad988134cd40b3d911" + integrity sha512-o5Roy6tNG4SL/FOkCAN6RzjiakZS25RLYFrcMttJqbdd8BWrnA+fGz57iN5Pb06pvBGvl5gQ0B48dJlslXvoTg== + dependencies: + sprintf-js "~1.0.2" + +argparse@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/argparse/-/argparse-2.0.1.tgz#246f50f3ca78a3240f6c997e8a9bd1eac49e4b38" + integrity sha512-8+9WqebbFzpX9OR+Wa6O29asIogeRMzcGtAINdpMHHyAg10f05aSFVBbcEqGf/PXw1EjAZ+q2/bEBg3DvurK3Q== + +aria-query@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/aria-query/-/aria-query-5.3.0.tgz#650c569e41ad90b51b3d7df5e5eed1c7549c103e" + integrity sha512-b0P0sZPKtyu8HkeRAfCq0IfURZK+SuwMjY1UXGBU27wpAiTwQAIlq56IbIO+ytk/JjS1fMR14ee5WBBfKi5J6A== + dependencies: + dequal "^2.0.3" + +arr-diff@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/arr-diff/-/arr-diff-4.0.0.tgz#d6461074febfec71e7e15235761a329a5dc7c520" + integrity sha512-YVIQ82gZPGBebQV/a8dar4AitzCQs0jjXwMPZllpXMaGjXPYVUawSxQrRsjhjupyVxEvbHgUmIhKVlND+j02kA== + +arr-flatten@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/arr-flatten/-/arr-flatten-1.1.0.tgz#36048bbff4e7b47e136644316c99669ea5ae91f1" + integrity sha512-L3hKV5R/p5o81R7O02IGnwpDmkp6E982XhtbuwSe3O4qOtMMMtodicASA1Cny2U+aCXcNpml+m4dPsvsJ3jatg== + +arr-union@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/arr-union/-/arr-union-3.1.0.tgz#e39b09aea9def866a8f206e288af63919bae39c4" + integrity sha512-sKpyeERZ02v1FeCZT8lrfJq5u6goHCtpTAzPwJYe7c8SPFOboNjNg1vz2L4VTn9T4PQxEx13TbXLmYUcS6Ug7Q== + +array-buffer-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/array-buffer-byte-length/-/array-buffer-byte-length-1.0.1.tgz#1e5583ec16763540a27ae52eed99ff899223568f" + integrity sha512-ahC5W1xgou+KTXix4sAO8Ki12Q+jf4i0+tmk3sC+zgcynshkHxzpXdImBehiUYKKKDwvfFiJl1tZt6ewscS1Mg== + dependencies: + call-bind "^1.0.5" + is-array-buffer "^3.0.4" + +array-find-index@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-find-index/-/array-find-index-1.0.2.tgz#df010aa1287e164bbda6f9723b0a96a1ec4187a1" + integrity sha512-M1HQyIXcBGtVywBt8WVdim+lrNaK7VHp99Qt5pSNziXznKHViIBbXWtfRTpEFpF/c4FdfxNAsCCwPp5phBYJtw== + +array-flatten@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/array-flatten/-/array-flatten-1.1.1.tgz#9a5f699051b1e7073328f2a008968b64ea2955d2" + integrity sha512-PCVAQswWemu6UdxsDFFX/+gVeYqKAod3D3UVm91jHwynguOwAvYPhx8nNlM++NqRcK6CxxpUafjmhIdKiHibqg== + +array-includes@^3.1.4: + version "3.1.8" + resolved "https://registry.yarnpkg.com/array-includes/-/array-includes-3.1.8.tgz#5e370cbe172fdd5dd6530c1d4aadda25281ba97d" + integrity sha512-itaWrbYbqpGXkGhZPGUulwnhVf5Hpy1xiCFsGqyIGglbBxmG5vSjxQen3/WGOjPpNEv1RtBLKxbmVXm8HpJStQ== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.2" + es-object-atoms "^1.0.0" + get-intrinsic "^1.2.4" + is-string "^1.0.7" + +array-union@^1.0.1, array-union@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-1.0.2.tgz#9a34410e4f4e3da23dea375be5be70f24778ec39" + integrity sha512-Dxr6QJj/RdU/hCaBjOfxW+q6lyuVE6JFWIrAUpuOOhoJJoQ99cUn3igRaHVB5P9WrgFVN0FfArM3x0cueOU8ng== + dependencies: + array-uniq "^1.0.1" + +array-union@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/array-union/-/array-union-2.1.0.tgz#b798420adbeb1de828d84acd8a2e23d3efe85e8d" + integrity sha512-HGyxoOTYUyCM6stUe6EJgnd4EoewAI7zMdfqO+kGjnlZmBDz/cR5pf8r/cR4Wq60sL/p0IkcjUEEPwS3GFrIyw== + +array-uniq@^1.0.1: + version "1.0.3" + resolved "https://registry.yarnpkg.com/array-uniq/-/array-uniq-1.0.3.tgz#af6ac877a25cc7f74e058894753858dfdb24fdb6" + integrity sha512-MNha4BWQ6JbwhFhj03YK552f7cb3AzoE8SzeljgChvL1dl3IcvggXVz1DilzySZkCja+CXuZbdW7yATchWn8/Q== + +array-unique@^0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/array-unique/-/array-unique-0.3.2.tgz#a894b75d4bc4f6cd679ef3244a9fd8f46ae2d428" + integrity sha512-SleRWjh9JUud2wH1hPs9rZBZ33H6T9HOiL0uwGnGx9FpE6wKGyfWugmbkEOIs6qWrZhg0LWeLziLrEwQJhs5mQ== + +array.prototype.flat@^1.2.5: + version "1.3.2" + resolved "https://registry.yarnpkg.com/array.prototype.flat/-/array.prototype.flat-1.3.2.tgz#1476217df8cff17d72ee8f3ba06738db5b387d18" + integrity sha512-djYB+Zx2vLewY8RWlNCUdHjDXs2XOgm602S9E7P/UpHgfeHL00cRiIF+IN/G/aUJ7kGPb6yO/ErDI5V2s8iycA== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + es-shim-unscopables "^1.0.0" + +arraybuffer.prototype.slice@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/arraybuffer.prototype.slice/-/arraybuffer.prototype.slice-1.0.3.tgz#097972f4255e41bc3425e37dc3f6421cf9aefde6" + integrity sha512-bMxMKAjg13EBSVscxTaYA4mRc5t1UAXa2kXiGTNfZ079HIWXEkKmkgFrh/nJqamaLSrXO5H4WFFkPEaLJWbs3A== + dependencies: + array-buffer-byte-length "^1.0.1" + call-bind "^1.0.5" + define-properties "^1.2.1" + es-abstract "^1.22.3" + es-errors "^1.2.1" + get-intrinsic "^1.2.3" + is-array-buffer "^3.0.4" + is-shared-array-buffer "^1.0.2" + +arrify@^1.0.0, arrify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/arrify/-/arrify-1.0.1.tgz#898508da2226f380df904728456849c1501a4b0d" + integrity sha512-3CYzex9M9FGQjCGMGyi6/31c8GJbgb0qGyrx5HWxPd0aCwh4cB2YjMb2Xf9UuoogrMrlO9cTqnB5rI5GHZTcUA== + +asn1@~0.2.3: + version "0.2.6" + resolved "https://registry.yarnpkg.com/asn1/-/asn1-0.2.6.tgz#0d3a7bb6e64e02a90c0303b31f292868ea09a08d" + integrity sha512-ix/FxPn0MDjeyJ7i/yoHGFt/EX6LyNbxSEhPPXODPL+KB0VPk86UYfL0lMdy+KCnv+fmvIzySwaK5COwqVbWTQ== + dependencies: + safer-buffer "~2.1.0" + +assert-plus@1.0.0, assert-plus@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assert-plus/-/assert-plus-1.0.0.tgz#f12e0f3c5d77b0b1cdd9146942e4e96c1e4dd525" + integrity sha512-NfJ4UzBCcQGLDlQq7nHxH+tv3kyZ0hHQqF5BO6J7tNJeP5do1llPr8dZ8zHonfhAu0PHAdMkSo+8o0wxg9lZWw== + +assign-symbols@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/assign-symbols/-/assign-symbols-1.0.0.tgz#59667f41fadd4f20ccbc2bb96b8d4f7f78ec0367" + integrity sha512-Q+JC7Whu8HhmTdBph/Tq59IoRtoy6KAm5zzPv00WdujX82lbAL8K7WVjne7vdCsAmbF4AYaDOPyO3k0kl8qIrw== + +astral-regex@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-1.0.0.tgz#6c8c3fb827dd43ee3918f27b82782ab7658a6fd9" + integrity sha512-+Ryf6g3BKoRc7jfp7ad8tM4TtMiaWvbF/1/sQcZPkkS7ag3D5nMBCe2UfOTONtAkaG0tO0ij3C5Lwmf1EiyjHg== + +astral-regex@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/astral-regex/-/astral-regex-2.0.0.tgz#483143c567aeed4785759c0865786dc77d7d2e31" + integrity sha512-Z7tMw1ytTXt5jqMcOP+OQteU1VuNK9Y02uuJtKQ1Sv69jXQKKg5cibLwGJow8yzZP+eAc18EmLGPal0bp36rvQ== + +async@^3.2.3: + version "3.2.5" + resolved "https://registry.yarnpkg.com/async/-/async-3.2.5.tgz#ebd52a8fdaf7a2289a24df399f8d8485c8a46b66" + integrity sha512-baNZyqaaLhyLVKm/DlvdW051MSgO6b8eVfIezl9E5PqWxFgzLm/wQntEW4zOytVburDEr0JlALEpdOFwvErLsg== + +asynckit@^0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/asynckit/-/asynckit-0.4.0.tgz#c79ed97f7f34cb8f2ba1bc9790bcc366474b4b79" + integrity sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q== + +atob@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/atob/-/atob-2.1.2.tgz#6d9517eb9e030d2436666651e86bd9f6f13533c9" + integrity sha512-Wm6ukoaOGJi/73p/cl2GvLjTI5JM1k/O14isD73YML8StrH/7/lRFgmg8nICZgD3bZZvjwCGxtMOD3wWNAu8cg== + +autoprefixer@10.4.18: + version "10.4.18" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-10.4.18.tgz#fcb171a3b017be7cb5d8b7a825f5aacbf2045163" + integrity sha512-1DKbDfsr6KUElM6wg+0zRNkB/Q7WcKYAaK+pzXn+Xqmszm/5Xa9coeNdtP88Vi+dPzZnMjhge8GIV49ZQkDa+g== + dependencies: + browserslist "^4.23.0" + caniuse-lite "^1.0.30001591" + fraction.js "^4.3.7" + normalize-range "^0.1.2" + picocolors "^1.0.0" + postcss-value-parser "^4.2.0" + +autoprefixer@^9.0.0: + version "9.8.8" + resolved "https://registry.yarnpkg.com/autoprefixer/-/autoprefixer-9.8.8.tgz#fd4bd4595385fa6f06599de749a4d5f7a474957a" + integrity sha512-eM9d/swFopRt5gdJ7jrpCwgvEMIayITpojhkkSMRsFHYuH5bkSQ4p/9qTEHtmNudUZh22Tehu7I6CxAW0IXTKA== + dependencies: + browserslist "^4.12.0" + caniuse-lite "^1.0.30001109" + normalize-range "^0.1.2" + num2fraction "^1.2.2" + picocolors "^0.2.1" + postcss "^7.0.32" + postcss-value-parser "^4.1.0" + +available-typed-arrays@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/available-typed-arrays/-/available-typed-arrays-1.0.7.tgz#a5cc375d6a03c2efc87a553f3e0b1522def14846" + integrity sha512-wvUjBtSGN7+7SjNpq/9M2Tg350UZD3q62IFZLbRAR1bSMlCo1ZaeW+BJ+D090e4hIIZLBcTDWe4Mh4jvUDajzQ== + dependencies: + possible-typed-array-names "^1.0.0" + +aws-sign2@~0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/aws-sign2/-/aws-sign2-0.7.0.tgz#b46e890934a9591f2d2f6f86d7e6a9f1b3fe76a8" + integrity sha512-08kcGqnYf/YmjoRhfxyu+CLxBjUtHLXLXX/vUfx9l2LYzG3c1m61nrpyFUZI6zeS+Li/wWMMidD9KgrqtGq3mA== + +aws4@^1.8.0: + version "1.13.0" + resolved "https://registry.yarnpkg.com/aws4/-/aws4-1.13.0.tgz#d9b802e9bb9c248d7be5f7f5ef178dc3684e9dcc" + integrity sha512-3AungXC4I8kKsS9PuS4JH2nc+0bVY/mjgrephHTIi8fpEeGsTHBUJeosp0Wc1myYMElmD0B3Oc4XL/HVJ4PV2g== + +axios@^1.6.0: + version "1.7.2" + resolved "https://registry.yarnpkg.com/axios/-/axios-1.7.2.tgz#b625db8a7051fbea61c35a3cbb3a1daa7b9c7621" + integrity sha512-2A8QhOMrbomlDuiLeK9XibIBzuHeRcqqNOHp0Cyp5EoJ1IFDh+XZH3A6BkXtv0K4gFGCI0Y4BM7B1wOEi0Rmgw== + dependencies: + follow-redirects "^1.15.6" + form-data "^4.0.0" + proxy-from-env "^1.1.0" + +axobject-query@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/axobject-query/-/axobject-query-4.0.0.tgz#04a4c90dce33cc5d606c76d6216e3b250ff70dab" + integrity sha512-+60uv1hiVFhHZeO+Lz0RYzsVHy5Wr1ayX0mwda9KPDVLNJgZ1T9Ny7VmFbLDzxsH0D87I86vgj3gFrjTJUYznw== + dependencies: + dequal "^2.0.3" + +babel-loader@9.1.3: + version "9.1.3" + resolved "https://registry.yarnpkg.com/babel-loader/-/babel-loader-9.1.3.tgz#3d0e01b4e69760cc694ee306fe16d358aa1c6f9a" + integrity sha512-xG3ST4DglodGf8qSwv0MdeWLhrDsw/32QMdTO5T1ZIp9gQur0HkCyFs7Awskr10JKXFXwpAhiCuYX5oGXnRGbw== + dependencies: + find-cache-dir "^4.0.0" + schema-utils "^4.0.0" + +babel-plugin-istanbul@6.1.1: + version "6.1.1" + resolved "https://registry.yarnpkg.com/babel-plugin-istanbul/-/babel-plugin-istanbul-6.1.1.tgz#fa88ec59232fd9b4e36dbbc540a8ec9a9b47da73" + integrity sha512-Y1IQok9821cC9onCx5otgFfRm7Lm+I+wwxOx738M/WLPZ9Q42m4IG5W0FNX8WLL2gYMZo3JkuXIH2DOpWM+qwA== + dependencies: + "@babel/helper-plugin-utils" "^7.0.0" + "@istanbuljs/load-nyc-config" "^1.0.0" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-instrument "^5.0.4" + test-exclude "^6.0.0" + +babel-plugin-polyfill-corejs2@^0.4.8: + version "0.4.11" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs2/-/babel-plugin-polyfill-corejs2-0.4.11.tgz#30320dfe3ffe1a336c15afdcdafd6fd615b25e33" + integrity sha512-sMEJ27L0gRHShOh5G54uAAPaiCOygY/5ratXuiyb2G46FmlSpc9eFCzYVyDiPxfNbwzA7mYahmjQc5q+CZQ09Q== + dependencies: + "@babel/compat-data" "^7.22.6" + "@babel/helper-define-polyfill-provider" "^0.6.2" + semver "^6.3.1" + +babel-plugin-polyfill-corejs3@^0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-corejs3/-/babel-plugin-polyfill-corejs3-0.9.0.tgz#9eea32349d94556c2ad3ab9b82ebb27d4bf04a81" + integrity sha512-7nZPG1uzK2Ymhy/NbaOWTg3uibM2BmGASS4vHS4szRZAIR8R6GwA/xAujpdrXU5iyklrimWnLWU+BLF9suPTqg== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.5.0" + core-js-compat "^3.34.0" + +babel-plugin-polyfill-regenerator@^0.5.5: + version "0.5.5" + resolved "https://registry.yarnpkg.com/babel-plugin-polyfill-regenerator/-/babel-plugin-polyfill-regenerator-0.5.5.tgz#8b0c8fc6434239e5d7b8a9d1f832bb2b0310f06a" + integrity sha512-OJGYZlhLqBh2DDHeqAxWB1XIvr49CxiJ2gIt61/PU55CQK4Z58OzMqjDe1zwQdQk+rBYsRc+1rJmdajM3gimHg== + dependencies: + "@babel/helper-define-polyfill-provider" "^0.5.0" + +bail@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/bail/-/bail-1.0.5.tgz#b6fa133404a392cbc1f8c4bf63f5953351e7a776" + integrity sha512-xFbRxM1tahm08yHBP16MMjVUAvDaBMD38zsM9EMAUN61omwLmKlOpB/Zku5QkjZ8TZ4vn53pj+t518cH0S03RQ== + +balanced-match@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-1.0.2.tgz#e83e3a7e3f300b34cb9d87f615fa0cbf357690ee" + integrity sha512-3oSeUO0TMV67hN1AmbXsK4yaqU7tjiHlbxRDZOpH0KW9+CeX4bRAaX0Anxt0tx2MrpRpWwQaPwIlISEJhYU5Pw== + +balanced-match@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/balanced-match/-/balanced-match-2.0.0.tgz#dc70f920d78db8b858535795867bf48f820633d9" + integrity sha512-1ugUSr8BHXRnK23KfuYS+gVMC3LB8QGH9W1iGtDPsNWoQbgtXSExkBu2aDR4epiGWZOjZsj6lDl/N/AqqTC3UA== + +base64-js@^1.3.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/base64-js/-/base64-js-1.5.1.tgz#1b1b440160a5bf7ad40b650f095963481903930a" + integrity sha512-AKpaYlHn8t4SVbOHCy+b5+KKgvR4vrsD8vbvrbiQJps7fKDTkjkDry6ji0rUJjC0kzbNePLwzxq8iypo41qeWA== + +base64id@2.0.0, base64id@~2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/base64id/-/base64id-2.0.0.tgz#2770ac6bc47d312af97a8bf9a634342e0cd25cb6" + integrity sha512-lGe34o6EHj9y3Kts9R4ZYs/Gr+6N7MCaMlIFA3F1R2O5/m7K06AxfSeO5530PEERE6/WyEg3lsuyw4GHlPZHog== + +base@^0.11.1: + version "0.11.2" + resolved "https://registry.yarnpkg.com/base/-/base-0.11.2.tgz#7bde5ced145b6d551a90db87f83c558b4eb48a8f" + integrity sha512-5T6P4xPgpp0YDFvSWwEZ4NoE3aM4QBQXDzmVbraCkFj8zHM+mba8SyqB5DbZWyR7mYHo6Y7BdQo3MoA4m0TeQg== + dependencies: + cache-base "^1.0.1" + class-utils "^0.3.5" + component-emitter "^1.2.1" + define-property "^1.0.0" + isobject "^3.0.1" + mixin-deep "^1.2.0" + pascalcase "^0.1.1" + +batch@0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/batch/-/batch-0.6.1.tgz#dc34314f4e679318093fc760272525f94bf25c16" + integrity sha512-x+VAiMRL6UPkx+kudNvxTl6hB2XNNCG2r+7wixVfIYwu/2HKRXimwQyaumLjMveWvT2Hkd/cAJw+QBMfJ/EKVw== + +bcrypt-pbkdf@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/bcrypt-pbkdf/-/bcrypt-pbkdf-1.0.2.tgz#a4301d389b6a43f9b67ff3ca11a3f6637e360e9e" + integrity sha512-qeFIXtP4MSoi6NLqO12WfqARWWuCKi2Rn/9hJLEmtB5yTNr9DqFWkJRCf2qShWzPeAMRnOgCrq0sg/KLv5ES9w== + dependencies: + tweetnacl "^0.14.3" + +big.js@^5.2.2: + version "5.2.2" + resolved "https://registry.yarnpkg.com/big.js/-/big.js-5.2.2.tgz#65f0af382f578bcdc742bd9c281e9cb2d7768328" + integrity sha512-vyL2OymJxmarO8gxMr0mhChsO9QGwhynfuu4+MHTAW6czfq9humCB7rKpUjDd9YUiDPU4mzpyupFSvOClAwbmQ== + +binary-extensions@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/binary-extensions/-/binary-extensions-2.3.0.tgz#f6e14a97858d327252200242d4ccfe522c445522" + integrity sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw== + +bl@^4.0.3, bl@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/bl/-/bl-4.1.0.tgz#451535264182bec2fbbc83a62ab98cf11d9f7b3a" + integrity sha512-1W07cM9gS6DcLperZfFSj+bWLtaPGSOHWhPiGzXmvVJbRLdG82sH/Kn8EtW1VqWVA54AKf2h5k5BbnIbwF3h6w== + dependencies: + buffer "^5.5.0" + inherits "^2.0.4" + readable-stream "^3.4.0" + +blocking-proxy@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/blocking-proxy/-/blocking-proxy-1.0.1.tgz#81d6fd1fe13a4c0d6957df7f91b75e98dac40cb2" + integrity sha512-KE8NFMZr3mN2E0HcvCgRtX7DjhiIQrwle+nSVJVC/yqFb9+xznHl2ZcoBp2L9qzkI4t4cBFJ1efXF8Dwi132RA== + dependencies: + minimist "^1.2.0" + +body-parser@1.20.2, body-parser@^1.19.0: + version "1.20.2" + resolved "https://registry.yarnpkg.com/body-parser/-/body-parser-1.20.2.tgz#6feb0e21c4724d06de7ff38da36dad4f57a747fd" + integrity sha512-ml9pReCu3M61kGlqoTm2umSXTlRTuGTx0bfYj+uIUKKYycG5NtSbeetV3faSU6R7ajOPw0g/J1PvK4qNy7s5bA== + dependencies: + bytes "3.1.2" + content-type "~1.0.5" + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + http-errors "2.0.0" + iconv-lite "0.4.24" + on-finished "2.4.1" + qs "6.11.0" + raw-body "2.5.2" + type-is "~1.6.18" + unpipe "1.0.0" + +bonjour-service@^1.0.11: + version "1.2.1" + resolved "https://registry.yarnpkg.com/bonjour-service/-/bonjour-service-1.2.1.tgz#eb41b3085183df3321da1264719fbada12478d02" + integrity sha512-oSzCS2zV14bh2kji6vNe7vrpJYCHGvcZnlffFQ1MEoX/WOeQ/teD8SYWKR942OI3INjq8OMNJlbPK5LLLUxFDw== + dependencies: + fast-deep-equal "^3.1.3" + multicast-dns "^7.2.5" + +boolbase@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/boolbase/-/boolbase-1.0.0.tgz#68dff5fbe60c51eb37725ea9e3ed310dcc1e776e" + integrity sha512-JZOSA7Mo9sNGB8+UjSgzdLtokWAky1zbztM3WRLCbZ70/3cTANmQmOdR7y2g+J0e2WXywy1yS468tY+IruqEww== + +brace-expansion@^1.1.7: + version "1.1.11" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-1.1.11.tgz#3c7fcbf529d87226f3d2f52b966ff5271eb441dd" + integrity sha512-iCuPHDFgrHX7H2vEI/5xpz07zSHB00TpugqhmYtVmMO6518mCuRMoOYFldEBl0g187ufozdaHgWKcYFb61qGiA== + dependencies: + balanced-match "^1.0.0" + concat-map "0.0.1" + +brace-expansion@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/brace-expansion/-/brace-expansion-2.0.1.tgz#1edc459e0f0c548486ecf9fc99f2221364b9a0ae" + integrity sha512-XnAIvQ8eM+kC6aULx6wuQiwVsnzsi9d3WxzV3FpWTGA19F621kwdbsAcFKXgKUHZWsy+mY6iL1sHTxWEFCytDA== + dependencies: + balanced-match "^1.0.0" + +braces@^2.3.1: + version "2.3.2" + resolved "https://registry.yarnpkg.com/braces/-/braces-2.3.2.tgz#5979fd3f14cd531565e5fa2df1abfff1dfaee729" + integrity sha512-aNdbnj9P8PjdXU4ybaWLK2IF3jc/EoDYbC7AazW6to3TRsfXxscC9UXOB5iDiEQrkyIbWp2SLQda4+QAa7nc3w== + dependencies: + arr-flatten "^1.1.0" + array-unique "^0.3.2" + extend-shallow "^2.0.1" + fill-range "^4.0.0" + isobject "^3.0.1" + repeat-element "^1.1.2" + snapdragon "^0.8.1" + snapdragon-node "^2.0.1" + split-string "^3.0.2" + to-regex "^3.0.1" + +braces@^3.0.2, braces@^3.0.3, braces@~3.0.2: + version "3.0.3" + resolved "https://registry.yarnpkg.com/braces/-/braces-3.0.3.tgz#490332f40919452272d55a8480adc0c441358789" + integrity sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA== + dependencies: + fill-range "^7.1.1" + +browserslist@^4.12.0, browserslist@^4.21.10, browserslist@^4.21.5, browserslist@^4.23.0, browserslist@^4.23.1: + version "4.23.2" + resolved "https://registry.yarnpkg.com/browserslist/-/browserslist-4.23.2.tgz#244fe803641f1c19c28c48c4b6ec9736eb3d32ed" + integrity sha512-qkqSyistMYdxAcw+CzbZwlBy8AGmS/eEWs+sEV5TnLRGDOL+C5M2EnH6tlZyg0YoAxGJAFKh61En9BR941GnHA== + dependencies: + caniuse-lite "^1.0.30001640" + electron-to-chromium "^1.4.820" + node-releases "^2.0.14" + update-browserslist-db "^1.1.0" + +browserstack@^1.5.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/browserstack/-/browserstack-1.6.1.tgz#e051f9733ec3b507659f395c7a4765a1b1e358b3" + integrity sha512-GxtFjpIaKdbAyzHfFDKixKO8IBT7wR3NjbzrGc78nNs/Ciys9wU3/nBtsqsWv5nDSrdI5tz0peKuzCPuNXNUiw== + dependencies: + https-proxy-agent "^2.2.1" + +btoa@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/btoa/-/btoa-1.2.1.tgz#01a9909f8b2c93f6bf680ba26131eb30f7fa3d73" + integrity sha512-SB4/MIGlsiVkMcHmT+pSmIPoNDoHg+7cMzmt3Uxt628MTz2487DKSqK/fuhFBrkuqrYv5UCEnACpF4dTFNKc/g== + +buffer-from@^1.0.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/buffer-from/-/buffer-from-1.1.2.tgz#2b146a6fd72e80b4f55d255f35ed59a3a9a41bd5" + integrity sha512-E+XQCRwSbaaiChtv6k6Dwgc+bx+Bs6vuKJHHl5kox/BaKbhiXzqQOwK4cO22yElGp2OCmjwVhT3HmxgyPGnJfQ== + +buffer@^5.5.0: + version "5.7.1" + resolved "https://registry.yarnpkg.com/buffer/-/buffer-5.7.1.tgz#ba62e7c13133053582197160851a8f648e99eed0" + integrity sha512-EHcyIPBQ4BSGlvjB16k5KgAJ27CIsHY/2JBmCRReo48y9rQ3MaUzWX3KVlBa4U7MyX02HdVj0K7C3WaB3ju7FQ== + dependencies: + base64-js "^1.3.1" + ieee754 "^1.1.13" + +builtin-modules@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/builtin-modules/-/builtin-modules-3.3.0.tgz#cae62812b89801e9656336e46223e030386be7b6" + integrity sha512-zhaCDicdLuWN5UbN5IMnFqNMhNfo919sH85y2/ea+5Yg9TsTkeZxpL+JLbp6cgYFS4sRLp3YV4S6yDuqVWHYOw== + +bytes@3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.0.0.tgz#d32815404d689699f85a4ea4fa8755dd13a96048" + integrity sha512-pMhOfFDPiv9t5jjIXkHosWmkSyQbvsgEVNkz0ERHbuLh2T/7j4Mqqpz523Fe8MVY89KC6Sh/QfS2sM+SjgFDcw== + +bytes@3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/bytes/-/bytes-3.1.2.tgz#8b0beeb98605adf1b128fa4386403c009e0221a5" + integrity sha512-/Nf7TyzTx6S3yRJObOAV7956r8cr2+Oj8AC5dt8wSP3BQAoeX58NoHyCU8P8zGkNXStjTSi6fzO6F0pBdcYbEg== + +cacache@^18.0.0: + version "18.0.4" + resolved "https://registry.yarnpkg.com/cacache/-/cacache-18.0.4.tgz#4601d7578dadb59c66044e157d02a3314682d6a5" + integrity sha512-B+L5iIa9mgcjLbliir2th36yEwPftrzteHYujzsx3dFP/31GCHcIeS8f5MGd80odLOjaOvSpU3EEAmRQptkxLQ== + dependencies: + "@npmcli/fs" "^3.1.0" + fs-minipass "^3.0.0" + glob "^10.2.2" + lru-cache "^10.0.1" + minipass "^7.0.3" + minipass-collect "^2.0.1" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + p-map "^4.0.0" + ssri "^10.0.0" + tar "^6.1.11" + unique-filename "^3.0.0" + +cache-base@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/cache-base/-/cache-base-1.0.1.tgz#0a7f46416831c8b662ee36fe4e7c59d76f666ab2" + integrity sha512-AKcdTnFSWATd5/GCPRxr2ChwIJ85CeyrEyjRHlKxQ56d4XJMGym0uAiKn0xbLOGOl3+yRpOTi484dVCEc5AUzQ== + dependencies: + collection-visit "^1.0.0" + component-emitter "^1.2.1" + get-value "^2.0.6" + has-value "^1.0.0" + isobject "^3.0.1" + set-value "^2.0.0" + to-object-path "^0.3.0" + union-value "^1.0.0" + unset-value "^1.0.0" + +call-bind@^1.0.2, call-bind@^1.0.5, call-bind@^1.0.6, call-bind@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/call-bind/-/call-bind-1.0.7.tgz#06016599c40c56498c18769d2730be242b6fa3b9" + integrity sha512-GHTSNSYICQ7scH7sZ+M2rFopRoLh8t2bLSW6BbgrtLsahOIB5iyAVJf9GjWK3cYTDaMj4XdBpM1cA6pIS0Kv2w== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + set-function-length "^1.2.1" + +call-me-maybe@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/call-me-maybe/-/call-me-maybe-1.0.2.tgz#03f964f19522ba643b1b0693acb9152fe2074baa" + integrity sha512-HpX65o1Hnr9HH25ojC1YGs7HCQLq0GCOibSaWER0eNpgJ/Z1MZv2mTc7+xh6WOPxbRVcmgbv4hGU+uSQ/2xFZQ== + +caller-callsite@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-callsite/-/caller-callsite-2.0.0.tgz#847e0fce0a223750a9a027c54b33731ad3154134" + integrity sha512-JuG3qI4QOftFsZyOn1qq87fq5grLIyk1JYd5lJmdA+fG7aQ9pA/i3JIJGcO3q0MrRcHlOt1U+ZeHW8Dq9axALQ== + dependencies: + callsites "^2.0.0" + +caller-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/caller-path/-/caller-path-2.0.0.tgz#468f83044e369ab2010fac5f06ceee15bb2cb1f4" + integrity sha512-MCL3sf6nCSXOwCTzvPKhN18TU7AHTvdtam8DAogxcrJ8Rjfbbg7Lgng64H9Iy+vUV6VGFClN/TyxBkAebLRR4A== + dependencies: + caller-callsite "^2.0.0" + +callsites@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-2.0.0.tgz#06eb84f00eea413da86affefacbffb36093b3c50" + integrity sha512-ksWePWBloaWPxJYQ8TL0JHvtci6G5QTKwQ95RcWAa/lzoAKuAOflGdAK92hpHXjkwb8zLxoLNUoNYZgVsaJzvQ== + +callsites@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/callsites/-/callsites-3.1.0.tgz#b3630abd8943432f54b3f0519238e33cd7df2f73" + integrity sha512-P8BjAsXvZS+VIDUI11hHCQEv74YT67YUi5JJFNWIqL235sBmjX4+qx9Muvls5ivyNENctx46xQLQ3aTuE7ssaQ== + +camelcase-keys@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-4.2.0.tgz#a2aa5fb1af688758259c32c141426d78923b9b77" + integrity sha512-Ej37YKYbFUI8QiYlvj9YHb6/Z60dZyPJW0Cs8sFilMbd2lP0bw3ylAq9yJkK4lcTA2dID5fG8LjmJYbO7kWb7Q== + dependencies: + camelcase "^4.1.0" + map-obj "^2.0.0" + quick-lru "^1.0.0" + +camelcase-keys@^6.2.2: + version "6.2.2" + resolved "https://registry.yarnpkg.com/camelcase-keys/-/camelcase-keys-6.2.2.tgz#5e755d6ba51aa223ec7d3d52f25778210f9dc3c0" + integrity sha512-YrwaA0vEKazPBkn0ipTiMpSajYDSe+KjQfrjhcBMxJt/znbvlHd8Pw/Vamaz5EB4Wfhs3SUR3Z9mwRu/P3s3Yg== + dependencies: + camelcase "^5.3.1" + map-obj "^4.0.0" + quick-lru "^4.0.1" + +camelcase@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-4.1.0.tgz#d545635be1e33c542649c69173e5de6acfae34dd" + integrity sha512-FxAv7HpHrXbh3aPo4o2qxHay2lkLY3x5Mw3KeE4KQE8ysVfziWeRZDwcjauvwBSGEC/nXUPzZy8zeh4HokqOnw== + +camelcase@^5.0.0, camelcase@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/camelcase/-/camelcase-5.3.1.tgz#e3c9b31569e106811df242f715725a1f4c494320" + integrity sha512-L28STB170nwWS63UjtlEOE3dldQApaJXZkOI1uMFfzf3rRuPegHaHesyee+YxQ+W6SvRDQV6UrdOdRiR153wJg== + +caniuse-lite@^1.0.30001109, caniuse-lite@^1.0.30001591, caniuse-lite@^1.0.30001640: + version "1.0.30001642" + resolved "https://registry.yarnpkg.com/caniuse-lite/-/caniuse-lite-1.0.30001642.tgz#6aa6610eb24067c246d30c57f055a9d0a7f8d05f" + integrity sha512-3XQ0DoRgLijXJErLSl+bLnJ+Et4KqV1PY6JJBGAFlsNsz31zeAIncyeZfLCabHK/jtSh+671RM9YMldxjUPZtA== + +caseless@~0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/caseless/-/caseless-0.12.0.tgz#1b681c21ff84033c826543090689420d187151dc" + integrity sha512-4tYFyifaFfGacoiObjJegolkwSU4xQNGbVgUiNYVUxbQ2x2lUsFvY4hVgVzGiIe6WLOPqycWXA40l+PWsxthUw== + +ccount@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/ccount/-/ccount-1.1.0.tgz#246687debb6014735131be8abab2d93898f8d043" + integrity sha512-vlNK021QdI7PNeiUh/lKkC/mNHHfV0m/Ad5JoI0TYtlBnJAslM/JIkm/tGC88bkLIwO6OQ5uV6ztS6kVAtCDlg== + +cfb@~1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/cfb/-/cfb-1.2.2.tgz#94e687628c700e5155436dac05f74e08df23bc44" + integrity sha512-KfdUZsSOw19/ObEWasvBP/Ac4reZvAGauZhs6S/gqNhXhI7cKwvlH7ulj+dOEYnca4bm4SGo8C1bTAQvnTjgQA== + dependencies: + adler-32 "~1.3.0" + crc-32 "~1.2.0" + +chalk@5.3.0, chalk@^5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-5.3.0.tgz#67c20a7ebef70e7f3970a01f90fa210cb6860385" + integrity sha512-dLitG79d+GV1Nb/VYcCDFivJeK1hiukt9QjRNVOsUtTy1rR1YJsmpGGTZ3qJos+uw7WmWF4wUwBd9jxjocFC2w== + +chalk@^1.1.1, chalk@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-1.1.3.tgz#a8115c55e4a702fe4d150abd3872822a7e09fc98" + integrity sha512-U3lRVLMSlsCfjqYPbLyVv11M9CPW4I728d6TCKMAOJueEeB9/8o+eSsMnxPJD+Q+K909sdESg7C+tIkoH6on1A== + dependencies: + ansi-styles "^2.2.1" + escape-string-regexp "^1.0.2" + has-ansi "^2.0.0" + strip-ansi "^3.0.0" + supports-color "^2.0.0" + +chalk@^2.0.1, chalk@^2.4.1, chalk@^2.4.2: + version "2.4.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-2.4.2.tgz#cd42541677a54333cf541a49108c1432b44c9424" + integrity sha512-Mti+f9lpJNcwF4tWV8/OrTTtF1gZi+f8FqlyAdouralcFWFQWF2+NgCHShjkCb+IFBLq9buZwE1xckQU4peSuQ== + dependencies: + ansi-styles "^3.2.1" + escape-string-regexp "^1.0.5" + supports-color "^5.3.0" + +chalk@^4.0.0, chalk@^4.0.2, chalk@^4.1.0: + version "4.1.2" + resolved "https://registry.yarnpkg.com/chalk/-/chalk-4.1.2.tgz#aac4e2b7734a740867aeb16bf02aad556a1e7a01" + integrity sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA== + dependencies: + ansi-styles "^4.1.0" + supports-color "^7.1.0" + +character-entities-html4@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-entities-html4/-/character-entities-html4-1.1.4.tgz#0e64b0a3753ddbf1fdc044c5fd01d0199a02e125" + integrity sha512-HRcDxZuZqMx3/a+qrzxdBKBPUpxWEq9xw2OPZ3a/174ihfrQKVsFhqtthBInFy1zZ9GgZyFXOatNujm8M+El3g== + +character-entities-legacy@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-entities-legacy/-/character-entities-legacy-1.1.4.tgz#94bc1845dce70a5bb9d2ecc748725661293d8fc1" + integrity sha512-3Xnr+7ZFS1uxeiUDvV02wQ+QDbc55o97tIV5zHScSPJpcLm/r0DFPcoY3tYRp+VZukxuMeKgXYmsXQHO05zQeA== + +character-entities@^1.0.0: + version "1.2.4" + resolved "https://registry.yarnpkg.com/character-entities/-/character-entities-1.2.4.tgz#e12c3939b7eaf4e5b15e7ad4c5e28e1d48c5b16b" + integrity sha512-iBMyeEHxfVnIakwOuDXpVkc54HijNgCyQB2w0VfGQThle6NXn50zU6V/u+LDhxHcDUPojn6Kpga3PTAD8W1bQw== + +character-reference-invalid@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/character-reference-invalid/-/character-reference-invalid-1.1.4.tgz#083329cda0eae272ab3dbbf37e9a382c13af1560" + integrity sha512-mKKUkUbhPpQlCOfIuZkvSEgktjPFIsZKRRbC6KWVEMvlzblj3i3asQv5ODsrwt0N3pHAEvjP8KTQPHkp0+6jOg== + +chardet@^0.7.0: + version "0.7.0" + resolved "https://registry.yarnpkg.com/chardet/-/chardet-0.7.0.tgz#90094849f0937f2eedc2425d0d28a9e5f0cbad9e" + integrity sha512-mT8iDcrh03qDGRRmoA2hmBJnxpllMR+0/0qlzjqZES6NdiWDcZkCNAk4rPFZ9Q85r27unkiNNg8ZOiwZXBHwcA== + +"chokidar@>=3.0.0 <4.0.0", chokidar@^3.0.0, chokidar@^3.5.1, chokidar@^3.5.3: + version "3.6.0" + resolved "https://registry.yarnpkg.com/chokidar/-/chokidar-3.6.0.tgz#197c6cc669ef2a8dc5e7b4d97ee4e092c3eb0d5b" + integrity sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw== + dependencies: + anymatch "~3.1.2" + braces "~3.0.2" + glob-parent "~5.1.2" + is-binary-path "~2.1.0" + is-glob "~4.0.1" + normalize-path "~3.0.0" + readdirp "~3.6.0" + optionalDependencies: + fsevents "~2.3.2" + +chownr@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/chownr/-/chownr-2.0.0.tgz#15bfbe53d2eab4cf70f18a8cd68ebe5b3cb1dece" + integrity sha512-bIomtDF5KGpdogkLd9VspvFzk9KfpyyGlS8YFVZl7TGPBHL5snIOnxeshwVgPteQ9b4Eydl+pVbIyE1DcvCWgQ== + +chrome-trace-event@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/chrome-trace-event/-/chrome-trace-event-1.0.4.tgz#05bffd7ff928465093314708c93bdfa9bd1f0f5b" + integrity sha512-rNjApaLzuwaOTjCiT8lSDdGN1APCiqkChLMJxJPWLunPAt5fy8xgU9/jNOchV84wfIxrA0lRQB7oCT8jrn/wrQ== + +class-utils@^0.3.5: + version "0.3.6" + resolved "https://registry.yarnpkg.com/class-utils/-/class-utils-0.3.6.tgz#f93369ae8b9a7ce02fd41faad0ca83033190c463" + integrity sha512-qOhPa/Fj7s6TY8H8esGu5QNpMMQxz79h+urzrNYN6mn+9BnxlDGf5QZ+XeCDsxSjPqsSR56XOZOJmpeurnLMeg== + dependencies: + arr-union "^3.1.0" + define-property "^0.2.5" + isobject "^3.0.0" + static-extend "^0.1.1" + +clean-css@5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/clean-css/-/clean-css-5.3.3.tgz#b330653cd3bd6b75009cc25c714cae7b93351ccd" + integrity sha512-D5J+kHaVb/wKSFcyyV75uCn8fiY4sV38XJoe4CUyGQ+mOU/fMVYUdH1hJC+CJQ5uY3EnW27SbJYS4X8BiLrAFg== + dependencies: + source-map "~0.6.0" + +clean-stack@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/clean-stack/-/clean-stack-2.2.0.tgz#ee8472dbb129e727b31e8a10a427dee9dfe4008b" + integrity sha512-4diC9HaTE+KRAMWhDhrGOECgWZxoevMc5TlkObMqNSsVU62PYzXZ/SMTjzyGAFF1YusgxGcSWTEXBhp0CPwQ1A== + +cli-cursor@3.1.0, cli-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-3.1.0.tgz#264305a7ae490d1d03bf0c9ba7c925d1753af307" + integrity sha512-I/zHAwsKf9FqGoXM4WWRACob9+SNukZTd94DWF57E4toouRulbCxcUh6RKUEOQlYTHJnzkPMySvPNaaSLNfLZw== + dependencies: + restore-cursor "^3.1.0" + +cli-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/cli-cursor/-/cli-cursor-4.0.0.tgz#3cecfe3734bf4fe02a8361cbdc0f6fe28c6a57ea" + integrity sha512-VGtlMu3x/4DOtIUwEkRezxUZ2lBacNJCHash0N0WeZDBS+7Ux1dm3XWAgWYxLJFMMdOeXMHXorshEFhbMSGelg== + dependencies: + restore-cursor "^4.0.0" + +cli-spinners@2.6.1: + version "2.6.1" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.6.1.tgz#adc954ebe281c37a6319bfa401e6dd2488ffb70d" + integrity sha512-x/5fWmGMnbKQAaNwN+UZlV79qBLM9JFnJuJ03gIi5whrob0xV0ofNVHy9DhwGdsMJQc2OKv0oGmLzvaqvAVv+g== + +cli-spinners@^2.5.0: + version "2.9.2" + resolved "https://registry.yarnpkg.com/cli-spinners/-/cli-spinners-2.9.2.tgz#1773a8f4b9c4d6ac31563df53b3fc1d79462fe41" + integrity sha512-ywqV+5MmyL4E7ybXgKys4DugZbX0FC6LnwrhjuykIjnK9k8OQacQ7axGKnjDXWNhns0xot3bZI5h55H8yo9cJg== + +cli-truncate@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/cli-truncate/-/cli-truncate-3.1.0.tgz#3f23ab12535e3d73e839bb43e73c9de487db1389" + integrity sha512-wfOBkjXteqSnI59oPcJkcPl/ZmwvMMOj340qUIY1SKZCv0B9Cf4D4fAucRkIKQmsIuYK3x1rrgU7MeGRruiuiA== + dependencies: + slice-ansi "^5.0.0" + string-width "^5.0.0" + +cli-width@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/cli-width/-/cli-width-4.1.0.tgz#42daac41d3c254ef38ad8ac037672130173691c5" + integrity sha512-ouuZd4/dm2Sw5Gmqy6bGyNNNe1qt9RpmxveLSO7KcgsTnU7RXfsw+/bukWGo1abgBiMAic068rclZsO4IWmmxQ== + +cliui@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-6.0.0.tgz#511d702c0c4e41ca156d7d0e96021f23e13225b1" + integrity sha512-t6wbgtoCXvAzst7QgXxJYqPt0usEfbgQdftEPbLL/cvv6HPE5VgvqCuAIDR0NgU52ds6rFwqrgakNLrHEjCbrQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^6.2.0" + +cliui@^7.0.2: + version "7.0.4" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-7.0.4.tgz#a0265ee655476fc807aea9df3df8df7783808b4f" + integrity sha512-OcRE68cOsVMXp1Yvonl/fzkQOyjLSu/8bhPDfQt0e0/Eb283TKP20Fs2MqoPsr9SwA595rRCA+QMzYc9nBP+JQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.0" + wrap-ansi "^7.0.0" + +cliui@^8.0.1: + version "8.0.1" + resolved "https://registry.yarnpkg.com/cliui/-/cliui-8.0.1.tgz#0c04b075db02cbfe60dc8e6cf2f5486b1a3608aa" + integrity sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ== + dependencies: + string-width "^4.2.0" + strip-ansi "^6.0.1" + wrap-ansi "^7.0.0" + +clone-deep@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/clone-deep/-/clone-deep-4.0.1.tgz#c19fd9bdbbf85942b4fd979c84dcf7d5f07c2387" + integrity sha512-neHB9xuzh/wk0dIHweyAXv2aPGZIVk3pLMe+/RNzINf17fe0OG96QroktYAUm7SM1PBnzTabaLboqqxDyMU+SQ== + dependencies: + is-plain-object "^2.0.4" + kind-of "^6.0.2" + shallow-clone "^3.0.0" + +clone-regexp@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/clone-regexp/-/clone-regexp-1.0.1.tgz#051805cd33173375d82118fc0918606da39fd60f" + integrity sha512-Fcij9IwRW27XedRIJnSOEupS7RVcXtObJXbcUOX93UCLqqOdRpkvzKywOOSizmEK/Is3S/RHX9dLdfo6R1Q1mw== + dependencies: + is-regexp "^1.0.0" + is-supported-regexp-flag "^1.0.0" + +clone@^1.0.2: + version "1.0.4" + resolved "https://registry.yarnpkg.com/clone/-/clone-1.0.4.tgz#da309cc263df15994c688ca902179ca3c7cd7c7e" + integrity sha512-JQHZ2QMW6l3aH/j6xCqQThY/9OH4D/9ls34cgkUBiEeocRTU04tHfKPBsUK1PqZCUQM7GiA0IIXJSuXHI64Kbg== + +codepage@~1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/codepage/-/codepage-1.15.0.tgz#2e00519024b39424ec66eeb3ec07227e692618ab" + integrity sha512-3g6NUTPd/YtuuGrhMnOMRjFc+LJw/bnMp3+0r/Wcz3IXUuCosKRJvMphm5+Q+bvTVGcJJuRvVLuYba+WojaFaA== + +collapse-white-space@^1.0.2: + version "1.0.6" + resolved "https://registry.yarnpkg.com/collapse-white-space/-/collapse-white-space-1.0.6.tgz#e63629c0016665792060dbbeb79c42239d2c5287" + integrity sha512-jEovNnrhMuqyCcjfEJA56v0Xq8SkIoPKDyaHahwo3POf4qcSXqMYuwNcOTzp74vTsR9Tn08z4MxWqAhcekogkQ== + +collection-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/collection-visit/-/collection-visit-1.0.0.tgz#4bc0373c164bc3291b4d368c829cf1a80a59dca0" + integrity sha512-lNkKvzEeMBBjUGHZ+q6z9pSJla0KWAQPvtzhEV9+iGyQYG+pBpl7xKDhxoNSOZH2hhv0v5k0y2yAM4o4SjoSkw== + dependencies: + map-visit "^1.0.0" + object-visit "^1.0.0" + +color-convert@^1.9.0: + version "1.9.3" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-1.9.3.tgz#bb71850690e1f136567de629d2d5471deda4c1e8" + integrity sha512-QfAUtd+vFdAtFQcC8CCyYt1fYWxSqAiK2cSD6zDB8N3cpsEBAvRxp9zOGg6G/SHHJYAT88/az/IuDGALsNVbGg== + dependencies: + color-name "1.1.3" + +color-convert@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/color-convert/-/color-convert-2.0.1.tgz#72d3a68d598c9bdb3af2ad1e84f21d896abd4de3" + integrity sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ== + dependencies: + color-name "~1.1.4" + +color-name@1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.3.tgz#a7d0558bd89c42f795dd42328f740831ca53bc25" + integrity sha512-72fSenhMw2HZMTVHeCA9KCmpEIbzWiQsjN+BHcBbS9vr1mtt+vJjPdksIBNUmKAW8TFUDPJK5SUU3QhE9NEXDw== + +color-name@~1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/color-name/-/color-name-1.1.4.tgz#c2a09a87acbde69543de6f63fa3995c826c536a2" + integrity sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA== + +colord@^2.9.3: + version "2.9.3" + resolved "https://registry.yarnpkg.com/colord/-/colord-2.9.3.tgz#4f8ce919de456f1d5c1c368c307fe20f3e59fb43" + integrity sha512-jeC1axXpnb0/2nn/Y1LPuLdgXBLH7aDcHu4KEKfqw3CUhX7ZpfBSlPKyqXE6btIgEzfWtrX3/tyBCaCvXvMkOw== + +colorette@^2.0.10, colorette@^2.0.20: + version "2.0.20" + resolved "https://registry.yarnpkg.com/colorette/-/colorette-2.0.20.tgz#9eb793e6833067f7235902fcd3b09917a000a95a" + integrity sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w== + +colors@1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/colors/-/colors-1.4.0.tgz#c50491479d4c1bdaed2c9ced32cf7c7dc2360f78" + integrity sha512-a+UqTh4kgZg/SlGvfbzDHpgRu7AAQOmmqRHJnxhRZICKFUT91brVhNNt58CMWU9PsBbv3PDCZUHbVxuDiH2mtA== + +combined-stream@^1.0.6, combined-stream@^1.0.8, combined-stream@~1.0.6: + version "1.0.8" + resolved "https://registry.yarnpkg.com/combined-stream/-/combined-stream-1.0.8.tgz#c3d45a8b34fd730631a110a8a2520682b31d5a7f" + integrity sha512-FQN4MRfuJeHf7cBbBMJFXhKSDq+2kAArBlmRBvcvFE5BB1HZKXtSFASDhdlz9zOYwxh8lDdnvmMOe/+5cdoEdg== + dependencies: + delayed-stream "~1.0.0" + +commander@*: + version "12.1.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-12.1.0.tgz#01423b36f501259fdaac4d0e4d60c96c991585d3" + integrity sha512-Vw8qHK3bZM9y/P10u3Vib8o/DdkvA2OtPtZvD871QKjy74Wj1WSKFILMPRPSdUSx5RFK1arlJzEtA4PkFgnbuA== + +commander@11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/commander/-/commander-11.0.0.tgz#43e19c25dbedc8256203538e8d7e9346877a6f67" + integrity sha512-9HMlXtt/BNoYr8ooyjjNRdIilOTkVJXB+GhxMTtOKwk0R4j4lS4NpjuqmRxroBfnfTSHQIHQB7wryHhXarNjmQ== + +commander@^2.20.0: + version "2.20.3" + resolved "https://registry.yarnpkg.com/commander/-/commander-2.20.3.tgz#fd485e84c03eb4881c20722ba48035e8531aeb33" + integrity sha512-GpVkmM8vF2vQUkj2LvZmD35JxeJOLCwJ9cUkugyk2nuhbv3+mJvpLYYt+0+USMxE+oj+ey/lJEnhZw75x/OMcQ== + +comment-parser@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/comment-parser/-/comment-parser-1.4.1.tgz#bdafead37961ac079be11eb7ec65c4d021eaf9cc" + integrity sha512-buhp5kePrmda3vhc5B9t7pUQXAb2Tnd0qgpkIhPhkHXxJpiPJ11H0ZEU0oBpJ2QztSbzG/ZxMj/CHsYJqRHmyg== + +common-path-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/common-path-prefix/-/common-path-prefix-3.0.0.tgz#7d007a7e07c58c4b4d5f433131a19141b29f11e0" + integrity sha512-QE33hToZseCH3jS0qN96O/bSh3kaw/h+Tq7ngyY9eWDUnTlTNUyqfqvCXioLe5Na5jFsL78ra/wuBU4iuEgd4w== + +component-emitter@^1.2.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/component-emitter/-/component-emitter-1.3.1.tgz#ef1d5796f7d93f135ee6fb684340b26403c97d17" + integrity sha512-T0+barUSQRTUQASh8bx02dl+DhF54GtIDY13Y3m9oWTklKbb3Wv974meRpeZ3lp1JpLVECWWNHC4vaG2XHXouQ== + +compressible@~2.0.16: + version "2.0.18" + resolved "https://registry.yarnpkg.com/compressible/-/compressible-2.0.18.tgz#af53cca6b070d4c3c0750fbd77286a6d7cc46fba" + integrity sha512-AF3r7P5dWxL8MxyITRMlORQNaOA2IkAFaTr4k7BUumjPtRpGDTZpl0Pb1XCO6JeDCBdp126Cgs9sMxqSjgYyRg== + dependencies: + mime-db ">= 1.43.0 < 2" + +compression@^1.7.4: + version "1.7.4" + resolved "https://registry.yarnpkg.com/compression/-/compression-1.7.4.tgz#95523eff170ca57c29a0ca41e6fe131f41e5bb8f" + integrity sha512-jaSIDzP9pZVS4ZfQ+TzvtiWhdpFhE2RDHz8QJkpX9SIpLq88VueF5jJw6t+6CUQcAoA6t+x89MLrWAqpfDE8iQ== + dependencies: + accepts "~1.3.5" + bytes "3.0.0" + compressible "~2.0.16" + debug "2.6.9" + on-headers "~1.0.2" + safe-buffer "5.1.2" + vary "~1.1.2" + +concat-map@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/concat-map/-/concat-map-0.0.1.tgz#d8a96bd77fd68df7793a73036a3ba0d5405d477b" + integrity sha512-/Srv4dswyQNBfohGpz9o6Yb3Gz3SrUDqBH5rTuhGR7ahtlbYKnVxw2bCFMRljaA7EXHaXZ8wsHdodFvbkhKmqg== + +connect-history-api-fallback@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/connect-history-api-fallback/-/connect-history-api-fallback-2.0.0.tgz#647264845251a0daf25b97ce87834cace0f5f1c8" + integrity sha512-U73+6lQFmfiNPrYbXqr6kZ1i1wiRqXnp2nhMsINseWXO8lDau0LGEffJ8kQi4EjLZympVgRdvqjAgiZ1tgzDDA== + +connect@^3.7.0: + version "3.7.0" + resolved "https://registry.yarnpkg.com/connect/-/connect-3.7.0.tgz#5d49348910caa5e07a01800b030d0c35f20484f8" + integrity sha512-ZqRXc+tZukToSNmh5C2iWMSoV3X1YUcPbqEM4DkEG5tNQXrQUZCNVGGv3IuicnkMtPfGf3Xtp8WCXs295iQ1pQ== + dependencies: + debug "2.6.9" + finalhandler "1.1.2" + parseurl "~1.3.3" + utils-merge "1.0.1" + +content-disposition@0.5.4: + version "0.5.4" + resolved "https://registry.yarnpkg.com/content-disposition/-/content-disposition-0.5.4.tgz#8b82b4efac82512a02bb0b1dcec9d2c5e8eb5bfe" + integrity sha512-FveZTNuGw04cxlAiWbzi6zTAL/lhehaWbTtgluJh4/E95DqMwTmha3KZN1aAWA8cFIhHzMZUvLevkw5Rqk+tSQ== + dependencies: + safe-buffer "5.2.1" + +content-type@~1.0.4, content-type@~1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/content-type/-/content-type-1.0.5.tgz#8b773162656d1d1086784c8f23a54ce6d73d7918" + integrity sha512-nTjqfcBFEipKdXCv4YDQWCfmcLZKm81ldF0pAopTvyrFGVbcR6P/VAAd5G7N+0tTr8QqiU0tFadD6FK4NtJwOA== + +convert-source-map@^1.5.1, convert-source-map@^1.7.0: + version "1.9.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-1.9.0.tgz#7faae62353fb4213366d0ca98358d22e8368b05f" + integrity sha512-ASFBup0Mz1uyiIjANan1jzLQami9z1PoYSZCiiYW2FczPbenXc45FZdBZLzOT+r6+iciuEModtmCti+hjaAk0A== + +convert-source-map@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/convert-source-map/-/convert-source-map-2.0.0.tgz#4b560f649fc4e918dd0ab75cf4961e8bc882d82a" + integrity sha512-Kvp459HrV2FEJ1CAsi1Ku+MY3kasH19TFykTz2xWmMeq6bk2NU3XXvfJ+Q61m0xktWwt+1HSYf3JZsTms3aRJg== + +cookie-signature@1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/cookie-signature/-/cookie-signature-1.0.6.tgz#e303a882b342cc3ee8ca513a79999734dab3ae2c" + integrity sha512-QADzlaHc8icV8I7vbaJXJwod9HWYp8uCqf1xa4OfNu1T7JVxQIrUgOWtHdNDtPiywmFbiS12VjotIXLrKM3orQ== + +cookie@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.6.0.tgz#2798b04b071b0ecbff0dbb62a505a8efa4e19051" + integrity sha512-U71cyTamuh1CRNCfpGY6to28lxvNwPG4Guz/EVjgf3Jmzv0vlDp1atT9eS5dDjMYHucpHbWns6Lwf3BKz6svdw== + +cookie@~0.4.1: + version "0.4.2" + resolved "https://registry.yarnpkg.com/cookie/-/cookie-0.4.2.tgz#0e41f24de5ecf317947c82fc789e06a884824432" + integrity sha512-aSWTXFzaKWkvHO1Ny/s+ePFpvKsPnjc551iI41v3ny/ow6tBG5Vd+FuqGNhh1LxOmVzOlGUriIlOaokOvhaStA== + +copy-anything@^2.0.1: + version "2.0.6" + resolved "https://registry.yarnpkg.com/copy-anything/-/copy-anything-2.0.6.tgz#092454ea9584a7b7ad5573062b2a87f5900fc480" + integrity sha512-1j20GZTsvKNkc4BY3NpMOM8tt///wY3FpIzozTOFO2ffuZcV61nojHXVKIy3WM+7ADCy5FVhdZYHYDdgTU0yJw== + dependencies: + is-what "^3.14.1" + +copy-descriptor@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/copy-descriptor/-/copy-descriptor-0.1.1.tgz#676f6eb3c39997c2ee1ac3a924fd6124748f578d" + integrity sha512-XgZ0pFcakEUlbwQEVNg3+QAis1FyTL3Qel9FYy8pSkQqoG3PNoT0bOCQtOXcOkur21r2Eq2kI+IE+gsmAEVlYw== + +copy-webpack-plugin@11.0.0: + version "11.0.0" + resolved "https://registry.yarnpkg.com/copy-webpack-plugin/-/copy-webpack-plugin-11.0.0.tgz#96d4dbdb5f73d02dd72d0528d1958721ab72e04a" + integrity sha512-fX2MWpamkW0hZxMEg0+mYnA40LTosOSa5TqZ9GYIBzyJa9C3QUaMPSE2xAi/buNr8u89SfD9wHSQVBzrRa/SOQ== + dependencies: + fast-glob "^3.2.11" + glob-parent "^6.0.1" + globby "^13.1.1" + normalize-path "^3.0.0" + schema-utils "^4.0.0" + serialize-javascript "^6.0.0" + +core-js-compat@^3.31.0, core-js-compat@^3.34.0: + version "3.37.1" + resolved "https://registry.yarnpkg.com/core-js-compat/-/core-js-compat-3.37.1.tgz#c844310c7852f4bdf49b8d339730b97e17ff09ee" + integrity sha512-9TNiImhKvQqSUkOvk/mMRZzOANTiEVC7WaBNhHcKM7x+/5E1l5NvsysR19zuDQScE8k+kfQXWRN3AtS/eOSHpg== + dependencies: + browserslist "^4.23.0" + +core-js@^3.26.1: + version "3.37.1" + resolved "https://registry.yarnpkg.com/core-js/-/core-js-3.37.1.tgz#d21751ddb756518ac5a00e4d66499df981a62db9" + integrity sha512-Xn6qmxrQZyB0FFY8E3bgRXei3lWDJHhvI+u0q9TKIYM49G8pAr0FgnnrFRAmsbptZL1yxRADVXn+x5AGsbBfyw== + +core-util-is@1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.2.tgz#b5fd54220aa2bc5ab57aab7140c940754503c1a7" + integrity sha512-3lqz5YjWTYnW6dlDa5TLaTCcShfar1e40rmcJVwCBJC6mWlFuj0eCHIElmG1g5kyuJ/GD+8Wn4FFCcz4gJPfaQ== + +core-util-is@~1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/core-util-is/-/core-util-is-1.0.3.tgz#a6042d3634c2b27e9328f837b965fac83808db85" + integrity sha512-ZQBvi1DcpJ4GDqanjucZ2Hj3wEO5pZDS89BWbkcrvdxksJorwUDDZamX9ldFkp9aw2lmBDLgkObEA4DWNJ9FYQ== + +cors@~2.8.5: + version "2.8.5" + resolved "https://registry.yarnpkg.com/cors/-/cors-2.8.5.tgz#eac11da51592dd86b9f06f6e7ac293b3df875d29" + integrity sha512-KIHbLJqu73RGr/hnbrO9uBeixNGuvSQjul/jdFvS/KFSIH1hWVd1ng7zOHx+YrEfInLG7q4n6GHQ9cDtxv/P6g== + dependencies: + object-assign "^4" + vary "^1" + +cosmiconfig@7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.0.1.tgz#714d756522cace867867ccb4474c5d01bbae5d6d" + integrity sha512-a1YWNUV2HwGimB7dU2s1wUMurNKjpx60HxBB6xUM8Re+2s1g1IIfJvFR0/iCF+XHdE0GMTKTuLR32UQff4TEyQ== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" + +cosmiconfig@^5.0.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-5.2.1.tgz#040f726809c591e77a17c0a3626ca45b4f168b1a" + integrity sha512-H65gsXo1SKjf8zmrJ67eJk8aIRKV5ff2D4uKZIBZShbhGSpEmsQOPW/SKMKYhSTrqR7ufy6RP69rPogdaPh/kA== + dependencies: + import-fresh "^2.0.0" + is-directory "^0.3.1" + js-yaml "^3.13.1" + parse-json "^4.0.0" + +cosmiconfig@^7.1.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-7.1.0.tgz#1443b9afa596b670082ea46cbd8f6a62b84635f6" + integrity sha512-AdmX6xUzdNASswsFtmwSt7Vj8po9IuqXm0UXz7QKPuEUmPB4XyjGfaAr2PSuELMwkRMVH1EpIkX5bTZGRB3eCA== + dependencies: + "@types/parse-json" "^4.0.0" + import-fresh "^3.2.1" + parse-json "^5.0.0" + path-type "^4.0.0" + yaml "^1.10.0" + +cosmiconfig@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/cosmiconfig/-/cosmiconfig-9.0.0.tgz#34c3fc58287b915f3ae905ab6dc3de258b55ad9d" + integrity sha512-itvL5h8RETACmOTFc4UfIyB2RfEHi71Ax6E/PivVxq9NseKbOWpeyHEOIbmAw1rs8Ak0VursQNww7lf7YtUwzg== + dependencies: + env-paths "^2.2.1" + import-fresh "^3.3.0" + js-yaml "^4.1.0" + parse-json "^5.2.0" + +crc-32@~1.2.0, crc-32@~1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/crc-32/-/crc-32-1.2.2.tgz#3cad35a934b8bf71f25ca524b6da51fb7eace2ff" + integrity sha512-ROmzCKrTnOwybPcJApAA6WBWij23HVfGVNKqqrZpuyZOHqK2CwHSvpGuyt/UNNvaIjEd8X5IFGp4Mh+Ie1IHJQ== + +create-require@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/create-require/-/create-require-1.1.1.tgz#c1d7e8f1e5f6cfc9ff65f9cd352d37348756c333" + integrity sha512-dcKFX3jn0MpIaXjisoRvexIJVEKzaq7z2rZKxf+MSr9TkdmHmsU4m2lcLojrj/FHl8mk5VxMmYA+ftRkP/3oKQ== + +critters@0.0.22: + version "0.0.22" + resolved "https://registry.yarnpkg.com/critters/-/critters-0.0.22.tgz#ce76b1cbc70078c89d23725646357e3850236dae" + integrity sha512-NU7DEcQZM2Dy8XTKFHxtdnIM/drE312j2T4PCVaSUcS0oBeyT/NImpRw/Ap0zOr/1SE7SgPK9tGPg1WK/sVakw== + dependencies: + chalk "^4.1.0" + css-select "^5.1.0" + dom-serializer "^2.0.0" + domhandler "^5.0.2" + htmlparser2 "^8.0.2" + postcss "^8.4.23" + postcss-media-query-parser "^0.2.3" + +cross-spawn@^7.0.0, cross-spawn@^7.0.2, cross-spawn@^7.0.3: + version "7.0.3" + resolved "https://registry.yarnpkg.com/cross-spawn/-/cross-spawn-7.0.3.tgz#f73a85b9d5d41d045551c177e2882d4ac85728a6" + integrity sha512-iRDPJKUPVEND7dHPO8rkbOnPpyDygcDFtWjpeWNCgy8WP2rXcxXL8TskReQl6OrB2G7+UJrags1q15Fudc7G6w== + dependencies: + path-key "^3.1.0" + shebang-command "^2.0.0" + which "^2.0.1" + +css-functions-list@^3.1.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/css-functions-list/-/css-functions-list-3.2.2.tgz#9a54c6dd8416ed25c1079cd88234e927526c1922" + integrity sha512-c+N0v6wbKVxTu5gOBBFkr9BEdBWaqqjQeiJ8QvSRIJOf+UxlJh930m8e6/WNeODIK0mYLFkoONrnj16i2EcvfQ== + +css-loader@6.10.0: + version "6.10.0" + resolved "https://registry.yarnpkg.com/css-loader/-/css-loader-6.10.0.tgz#7c172b270ec7b833951b52c348861206b184a4b7" + integrity sha512-LTSA/jWbwdMlk+rhmElbDR2vbtQoTBPr7fkJE+mxrHj+7ru0hUmHafDRzWIjIHTwpitWVaqY2/UWGRca3yUgRw== + dependencies: + icss-utils "^5.1.0" + postcss "^8.4.33" + postcss-modules-extract-imports "^3.0.0" + postcss-modules-local-by-default "^4.0.4" + postcss-modules-scope "^3.1.1" + postcss-modules-values "^4.0.0" + postcss-value-parser "^4.2.0" + semver "^7.5.4" + +css-select@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/css-select/-/css-select-5.1.0.tgz#b8ebd6554c3637ccc76688804ad3f6a6fdaea8a6" + integrity sha512-nwoRF1rvRRnnCqqY7updORDsuqKzqYJ28+oSMaJMMgOauh3fvwHqMS7EZpIPqK8GL+g9mKxF1vP/ZjSeNjEVHg== + dependencies: + boolbase "^1.0.0" + css-what "^6.1.0" + domhandler "^5.0.2" + domutils "^3.0.1" + nth-check "^2.0.1" + +css-what@^6.1.0: + version "6.1.0" + resolved "https://registry.yarnpkg.com/css-what/-/css-what-6.1.0.tgz#fb5effcf76f1ddea2c81bdfaa4de44e79bac70f4" + integrity sha512-HTUrgRJ7r4dsZKU6GjmpfRK1O76h97Z8MfS1G0FozR+oF2kG6Vfe8JE6zwrkbxigziPHinCJ+gCPjA9EaBDtRw== + +cssesc@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/cssesc/-/cssesc-3.0.0.tgz#37741919903b868565e1c09ea747445cd18983ee" + integrity sha512-/Tb/JcjK111nNScGob5MNtsntNM1aCNUDipB/TkwZFhyDrrE47SOx/18wF2bbjgc3ZzCSKW1T5nt5EbFoAz/Vg== + +currently-unhandled@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/currently-unhandled/-/currently-unhandled-0.4.1.tgz#988df33feab191ef799a61369dd76c17adf957ea" + integrity sha512-/fITjgjGU50vjQ4FH6eUoYu+iUoUKIXws2hL15JJpIR+BbTxaXQsMuuyjtNh2WqsSBS5nsaZHFsFecyw5CCAng== + dependencies: + array-find-index "^1.0.1" + +custom-event-polyfill@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/custom-event-polyfill/-/custom-event-polyfill-1.0.7.tgz#9bc993ddda937c1a30ccd335614c6c58c4f87aee" + integrity sha512-TDDkd5DkaZxZFM8p+1I3yAlvM3rSr1wbrOliG4yJiwinMZN8z/iGL7BTlDkrJcYTmgUSb4ywVCc3ZaUtOtC76w== + +custom-event@~1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/custom-event/-/custom-event-1.0.1.tgz#5d02a46850adf1b4a317946a3928fccb5bfd0425" + integrity sha512-GAj5FOq0Hd+RsCGVJxZuKaIDXDf3h6GQoNEjFgbLLI/trgtavwUbSnZ5pVfg27DVCaWjIohryS0JFwIJyT2cMg== + +dashdash@^1.12.0: + version "1.14.1" + resolved "https://registry.yarnpkg.com/dashdash/-/dashdash-1.14.1.tgz#853cfa0f7cbe2fed5de20326b8dd581035f6e2f0" + integrity sha512-jRFi8UDGo6j+odZiEpjazZaWqEal3w/basFjQHQEwVtZJGDpxbH1MeYluwCS8Xq5wmLJooDlMgvVarmWfGM44g== + dependencies: + assert-plus "^1.0.0" + +data-uri-to-buffer@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/data-uri-to-buffer/-/data-uri-to-buffer-4.0.1.tgz#d8feb2b2881e6a4f58c2e08acfd0e2834e26222e" + integrity sha512-0R9ikRb668HB7QDxT1vkpuUBtqc53YyAwMwGeUFKRojY/NWKvdZ+9UYtRfGmhqNbRkTSVpMbmyhXipFFv2cb/A== + +data-view-buffer@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-view-buffer/-/data-view-buffer-1.0.1.tgz#8ea6326efec17a2e42620696e671d7d5a8bc66b2" + integrity sha512-0lht7OugA5x3iJLOWFhWK/5ehONdprk0ISXqVFn/NFrDu+cuc8iADFrGQz5BnRK7LLU3JmkbXSxaqX+/mXYtUA== + dependencies: + call-bind "^1.0.6" + es-errors "^1.3.0" + is-data-view "^1.0.1" + +data-view-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/data-view-byte-length/-/data-view-byte-length-1.0.1.tgz#90721ca95ff280677eb793749fce1011347669e2" + integrity sha512-4J7wRJD3ABAzr8wP+OcIcqq2dlUKp4DVflx++hs5h5ZKydWMI6/D/fAot+yh6g2tHh8fLFTvNOaVN357NvSrOQ== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + is-data-view "^1.0.1" + +data-view-byte-offset@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/data-view-byte-offset/-/data-view-byte-offset-1.0.0.tgz#5e0bbfb4828ed2d1b9b400cd8a7d119bca0ff18a" + integrity sha512-t/Ygsytq+R995EJ5PZlD4Cu56sWa8InXySaViRzw9apusqsOO2bQP+SbYzAhR0pFKoB+43lYy8rWban9JSuXnA== + dependencies: + call-bind "^1.0.6" + es-errors "^1.3.0" + is-data-view "^1.0.1" + +date-fns@^2.16.1: + version "2.30.0" + resolved "https://registry.yarnpkg.com/date-fns/-/date-fns-2.30.0.tgz#f367e644839ff57894ec6ac480de40cae4b0f4d0" + integrity sha512-fnULvOpxnC5/Vg3NCiWelDsLiUc9bRwAPs/+LfTLNvetFCtCTN+yQz15C/fs4AwX1R9K5GLtLfn8QW+dWisaAw== + dependencies: + "@babel/runtime" "^7.21.0" + +date-format@^4.0.14: + version "4.0.14" + resolved "https://registry.yarnpkg.com/date-format/-/date-format-4.0.14.tgz#7a8e584434fb169a521c8b7aa481f355810d9400" + integrity sha512-39BOQLs9ZjKh0/patS9nrT8wc3ioX3/eA/zgbKNopnF2wCqJEoxywwwElATYvRsXdnOxA/OQeQoFZ3rFjVajhg== + +debug@2.6.9, debug@^2.2.0, debug@^2.3.3, debug@^2.6.9: + version "2.6.9" + resolved "https://registry.yarnpkg.com/debug/-/debug-2.6.9.tgz#5d128515df134ff327e90a4c93f4e077a536341f" + integrity sha512-bC7ElrdJaJnPbAP+1EotYvqZsb3ecl5wi6Bfi6BJTUcNowp6cvspg0jXznRTKDjm/E7AdgFBVeAPVMNcKGsHMA== + dependencies: + ms "2.0.0" + +debug@4, debug@^4.0.0, debug@^4.1.0, debug@^4.1.1, debug@^4.3.1, debug@^4.3.2, debug@^4.3.4, debug@~4.3.1, debug@~4.3.2, debug@~4.3.4: + version "4.3.5" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.5.tgz#e83444eceb9fedd4a1da56d671ae2446a01a6e1e" + integrity sha512-pt0bNEmneDIvdL1Xsd9oDQ/wrQRkXDT4AUWlNZNPKvW5x/jyO9VFXkJUP07vQ2upmw5PlaITaPKc31jK13V+jg== + dependencies: + ms "2.1.2" + +debug@4.3.4: + version "4.3.4" + resolved "https://registry.yarnpkg.com/debug/-/debug-4.3.4.tgz#1319f6579357f2338d3337d2cdd4914bb5dcc865" + integrity sha512-PRWFHuSU3eDtQJPvnNY7Jcket1j0t5OuOsFzPPzsekD52Zl8qUfFIPEiswXqIvHWGVHOgX+7G/vCNNhehwxfkQ== + dependencies: + ms "2.1.2" + +debug@^3.1.0, debug@^3.2.7: + version "3.2.7" + resolved "https://registry.yarnpkg.com/debug/-/debug-3.2.7.tgz#72580b7e9145fb39b6676f9c5e5fb100b934179a" + integrity sha512-CFjzYYAi4ThfiQvizrFQevTTXHtnCqWfe7x1AhgEscTz6ZbLbfoLRLPugTQyBth6f8ZERVUSyWHFD/7Wu4t1XQ== + dependencies: + ms "^2.1.1" + +decamelize-keys@^1.0.0, decamelize-keys@^1.1.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/decamelize-keys/-/decamelize-keys-1.1.1.tgz#04a2d523b2f18d80d0158a43b895d56dff8d19d8" + integrity sha512-WiPxgEirIV0/eIOMcnFBA3/IJZAZqKnwAwWyvvdi4lsr1WCN22nhdf/3db3DoZcUjTV2SqfzIwNyp6y2xs3nmg== + dependencies: + decamelize "^1.1.0" + map-obj "^1.0.0" + +decamelize@^1.1.0, decamelize@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/decamelize/-/decamelize-1.2.0.tgz#f6534d15148269b20352e7bee26f501f9a191290" + integrity sha512-z2S+W9X73hAUUki+N+9Za2lBlun89zigOyGrsax+KUQ6wKW4ZoWpEYBkGhQjwAjjDCkWxhY0VKEhk8wzY7F5cA== + +decode-uri-component@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/decode-uri-component/-/decode-uri-component-0.2.2.tgz#e69dbe25d37941171dd540e024c444cd5188e1e9" + integrity sha512-FqUYQ+8o158GyGTrMFJms9qh3CqTKvAqgqsTnkLI8sKu0028orqBhxNMFkFen0zGyg6epACD32pjVk58ngIErQ== + +deep-is@^0.1.3: + version "0.1.4" + resolved "https://registry.yarnpkg.com/deep-is/-/deep-is-0.1.4.tgz#a6f2dce612fadd2ef1f519b73551f17e85199831" + integrity sha512-oIPzksmTg4/MriiaYGO+okXDT7ztn/w3Eptv/+gSIdMdKsJo0u4CfYNFJPy+4SKMuCqGw2wxnA+URMg3t8a/bQ== + +default-gateway@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/default-gateway/-/default-gateway-6.0.3.tgz#819494c888053bdb743edbf343d6cdf7f2943a71" + integrity sha512-fwSOJsbbNzZ/CUFpqFBqYfYNLj1NbMPm8MMCIzHjC83iSJRBEGmDUxU+WP661BaBQImeC2yHwXtz+P/O9o+XEg== + dependencies: + execa "^5.0.0" + +defaults@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/defaults/-/defaults-1.0.4.tgz#b0b02062c1e2aa62ff5d9528f0f98baa90978d7a" + integrity sha512-eFuaLoy/Rxalv2kr+lqMlUnrDWV+3j4pljOIJgLIhI058IQfWJ7vXhyEIHu+HtC738klGALYxOKDO0bQP3tg8A== + dependencies: + clone "^1.0.2" + +define-data-property@^1.0.1, define-data-property@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/define-data-property/-/define-data-property-1.1.4.tgz#894dc141bb7d3060ae4366f6a0107e68fbe48c5e" + integrity sha512-rBMvIzlpA8v6E+SJZoo++HAYqsLrkg7MSfIinMPFhmkorw7X+dOXVJQs+QT69zGkzMyfDnIMN2Wid1+NbL3T+A== + dependencies: + es-define-property "^1.0.0" + es-errors "^1.3.0" + gopd "^1.0.1" + +define-lazy-prop@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/define-lazy-prop/-/define-lazy-prop-2.0.0.tgz#3f7ae421129bcaaac9bc74905c98a0009ec9ee7f" + integrity sha512-Ds09qNh8yw3khSjiJjiUInaGX9xlqZDY7JVryGxdxV7NPeuqQfplOpQ66yJFZut3jLa5zOwkXw1g9EI2uKh4Og== + +define-properties@^1.2.0, define-properties@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/define-properties/-/define-properties-1.2.1.tgz#10781cc616eb951a80a034bafcaa7377f6af2b6c" + integrity sha512-8QmQKqEASLd5nx0U1B1okLElbUuuttJ/AnYmRXbbbGDWh6uS208EjD4Xqq/I9wK7u0v6O08XhTWnt5XtEbR6Dg== + dependencies: + define-data-property "^1.0.1" + has-property-descriptors "^1.0.0" + object-keys "^1.1.1" + +define-property@^0.2.5: + version "0.2.5" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-0.2.5.tgz#c35b1ef918ec3c990f9a5bc57be04aacec5c8116" + integrity sha512-Rr7ADjQZenceVOAKop6ALkkRAmH1A4Gx9hV/7ZujPUN2rkATqFO0JZLZInbAjpZYoJ1gUx8MRMQVkYemcbMSTA== + dependencies: + is-descriptor "^0.1.0" + +define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-1.0.0.tgz#769ebaaf3f4a63aad3af9e8d304c9bbe79bfb0e6" + integrity sha512-cZTYKFWspt9jZsMscWo8sc/5lbPC9Q0N5nBLgb+Yd915iL3udB1uFgS3B8YCx66UVHq018DAVFoee7x+gxggeA== + dependencies: + is-descriptor "^1.0.0" + +define-property@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/define-property/-/define-property-2.0.2.tgz#d459689e8d654ba77e02a817f8710d702cb16e9d" + integrity sha512-jwK2UV4cnPpbcG7+VRARKTZPUWowwXA8bzH5NP6ud0oeAxyYPuGZUAC7hMugpCdz4BeSZl2Dl9k66CHJ/46ZYQ== + dependencies: + is-descriptor "^1.0.2" + isobject "^3.0.1" + +del@^2.2.0: + version "2.2.2" + resolved "https://registry.yarnpkg.com/del/-/del-2.2.2.tgz#c12c981d067846c84bcaf862cff930d907ffd1a8" + integrity sha512-Z4fzpbIRjOu7lO5jCETSWoqUDVe0IPOlfugBsF6suen2LKDlVb4QZpKEM9P+buNJ4KI1eN7I083w/pbKUpsrWQ== + dependencies: + globby "^5.0.0" + is-path-cwd "^1.0.0" + is-path-in-cwd "^1.0.0" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + rimraf "^2.2.8" + +delayed-stream@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/delayed-stream/-/delayed-stream-1.0.0.tgz#df3ae199acadfb7d440aaae0b29e2272b24ec619" + integrity sha512-ZySD7Nf91aLB0RxL4KGrKHBXl7Eds1DAmEdcoVawXnLD7SDhpNgtuII2aAkg7a7QS41jxPSZ17p4VdGnMHk3MQ== + +depd@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/depd/-/depd-2.0.0.tgz#b696163cc757560d09cf22cc8fad1571b79e76df" + integrity sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw== + +depd@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/depd/-/depd-1.1.2.tgz#9bcd52e14c097763e749b274c4346ed2e560b5a9" + integrity sha512-7emPTl6Dpo6JRXOXjLRxck+FlLRX5847cLKEn00PLAgc3g2hTZZgr+e4c2v6QpSmLeFP3n5yUo7ft6avBK/5jQ== + +dequal@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/dequal/-/dequal-2.0.3.tgz#2644214f1997d39ed0ee0ece72335490a7ac67be" + integrity sha512-0je+qPKHEMohvfRTCEo3CrPG6cAzAYgmzKyxRiYSSDkS6eGJdyVJm7WaYA5ECaAD9wLB2T4EEeymA5aFVcYXCA== + +destroy@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/destroy/-/destroy-1.2.0.tgz#4803735509ad8be552934c67df614f94e66fa015" + integrity sha512-2sJGJTaXIIaR1w4iJSNoN0hnMY7Gpc/n8D4qSCJw8QqFWXf7cuAgnEHxBpweaVcPevC2l3KpjYCx3NypQQgaJg== + +detect-node@^2.0.4: + version "2.1.0" + resolved "https://registry.yarnpkg.com/detect-node/-/detect-node-2.1.0.tgz#c9c70775a49c3d03bc2c06d9a73be550f978f8b1" + integrity sha512-T0NIuQpnTvFDATNuHN5roPwSBG83rFsuO+MXXH9/3N1eFbn4wcPjttvjMLEPWJ0RGUYgQE7cGgS3tNxbqCGM7g== + +di@^0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/di/-/di-0.0.1.tgz#806649326ceaa7caa3306d75d985ea2748ba913c" + integrity sha512-uJaamHkagcZtHPqCIHZxnFrXlunQXgBOsZSUOWwFw31QJCAbyTBoHMW75YOTur5ZNx8pIeAKgf6GWIgaqqiLhA== + +didyoumean@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/didyoumean/-/didyoumean-1.2.2.tgz#989346ffe9e839b4555ecf5666edea0d3e8ad037" + integrity sha512-gxtyfqMg7GKyhQmb056K7M3xszy/myH8w+B4RT+QXBQsvAOdc3XymqDDPHx1BgPgsdAA5SIifona89YtRATDzw== + +diff-sequences@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/diff-sequences/-/diff-sequences-29.6.3.tgz#4deaf894d11407c51efc8418012f9e70b84ea921" + integrity sha512-EjePK1srD3P08o2j4f0ExnylqRs5B9tJjcp9t1krH2qRi8CCdsYfwe9JgSLurFBWwq4uOlipzfk5fHNvwFKr8Q== + +diff@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/diff/-/diff-4.0.2.tgz#60f3aecb89d5fae520c11aa19efc2bb982aade7d" + integrity sha512-58lmxKSA4BNyLz+HHMUzlOEpg09FV+ev6ZMe3vJihgdxzgcwZ8VoEEPmALCZG9LmqfVoNMMKpttIYTVG6uDY7A== + +dir-glob@^2.2.2: + version "2.2.2" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-2.2.2.tgz#fa09f0694153c8918b18ba0deafae94769fc50c4" + integrity sha512-f9LBi5QWzIW3I6e//uxZoLBlUt9kcp66qo0sSCxL6YZKc75R1c4MFCoe/LaZiBGmgujvQdxc5Bn3QhfyvK5Hsw== + dependencies: + path-type "^3.0.0" + +dir-glob@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/dir-glob/-/dir-glob-3.0.1.tgz#56dbf73d992a4a93ba1584f4534063fd2e41717f" + integrity sha512-WkrWp9GR4KXfKGYzOLmTuGVi1UWFfws377n9cc55/tb6DuqyF6pcQ5AbiHEshaDpY9v6oaSr2XCDidGmMwdzIA== + dependencies: + path-type "^4.0.0" + +dns-packet@^5.2.2: + version "5.6.1" + resolved "https://registry.yarnpkg.com/dns-packet/-/dns-packet-5.6.1.tgz#ae888ad425a9d1478a0674256ab866de1012cf2f" + integrity sha512-l4gcSouhcgIKRvyy99RNVOgxXiicE+2jZoNmaNmZ6JXiGajBOJAesk1OBlJuM5k2c+eudGdLxDqXuPCKIj6kpw== + dependencies: + "@leichtgewicht/ip-codec" "^2.0.1" + +doctrine@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-2.1.0.tgz#5cd01fc101621b42c4cd7f5d1a66243716d3f39d" + integrity sha512-35mSku4ZXK0vfCuHEDAwt55dg2jNajHZ1odvF+8SSr82EsZY4QmXfuWso8oEd8zRhVObSN18aM0CjSdoBX7zIw== + dependencies: + esutils "^2.0.2" + +doctrine@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/doctrine/-/doctrine-3.0.0.tgz#addebead72a6574db783639dc87a121773973961" + integrity sha512-yS+Q5i3hBf7GBkd4KG8a7eBNNWNGLTaEwwYWUijIYM7zrlYDM0BFXHjjPWlWZ1Rg7UaddZeIDmi9jF3HmqiQ2w== + dependencies: + esutils "^2.0.2" + +dom-serialize@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/dom-serialize/-/dom-serialize-2.2.1.tgz#562ae8999f44be5ea3076f5419dcd59eb43ac95b" + integrity sha512-Yra4DbvoW7/Z6LBN560ZwXMjoNOSAN2wRsKFGc4iBeso+mpIA6qj1vfdf9HpMaKAqG6wXTy+1SYEzmNpKXOSsQ== + dependencies: + custom-event "~1.0.0" + ent "~2.2.0" + extend "^3.0.0" + void-elements "^2.0.0" + +dom-serializer@0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-0.2.2.tgz#1afb81f533717175d478655debc5e332d9f9bb51" + integrity sha512-2/xPb3ORsQ42nHYiSunXkDjPLBaEj/xTwUO4B7XCZQTRk7EBtTOPaygh10YAAh2OI1Qrp6NWfpAhzswj0ydt9g== + dependencies: + domelementtype "^2.0.1" + entities "^2.0.0" + +dom-serializer@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/dom-serializer/-/dom-serializer-2.0.0.tgz#e41b802e1eedf9f6cae183ce5e622d789d7d8e53" + integrity sha512-wIkAryiqt/nV5EQKqQpo3SToSOV9J0DnbJqwK7Wv/Trc92zIAYZ4FlMu+JPFW1DfGFt81ZTCGgDEabffXeLyJg== + dependencies: + domelementtype "^2.3.0" + domhandler "^5.0.2" + entities "^4.2.0" + +domelementtype@1, domelementtype@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-1.3.1.tgz#d048c44b37b0d10a7f2a3d5fee3f4333d790481f" + integrity sha512-BSKB+TSpMpFI/HOxCNr1O8aMOTZ8hT3pM3GQ0w/mWRmkhEDSFJkkyzz4XQsBV44BChwGkrDfMyjVD0eA2aFV3w== + +domelementtype@^2.0.1, domelementtype@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/domelementtype/-/domelementtype-2.3.0.tgz#5c45e8e869952626331d7aab326d01daf65d589d" + integrity sha512-OLETBj6w0OsagBwdXnPdN0cnMfF9opN69co+7ZrbfPGrdpPVNBUj02spi6B1N7wChLQiPn4CSH/zJvXw56gmHw== + +domhandler@^2.3.0: + version "2.4.2" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-2.4.2.tgz#8805097e933d65e85546f726d60f5eb88b44f803" + integrity sha512-JiK04h0Ht5u/80fdLMCEmV4zkNh2BcoMFBmZ/91WtYZ8qVXSKjiw7fXMgFPnHcSZgOo3XdinHvmnDUeMf5R4wA== + dependencies: + domelementtype "1" + +domhandler@^5.0.2, domhandler@^5.0.3: + version "5.0.3" + resolved "https://registry.yarnpkg.com/domhandler/-/domhandler-5.0.3.tgz#cc385f7f751f1d1fc650c21374804254538c7d31" + integrity sha512-cgwlv/1iFQiFnU96XXgROh8xTeetsnJiDsTc7TYCLFd9+/WNkIqPTxiM/8pSd8VIrhXGTf1Ny1q1hquVqDJB5w== + dependencies: + domelementtype "^2.3.0" + +domutils@^1.5.1: + version "1.7.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-1.7.0.tgz#56ea341e834e06e6748af7a1cb25da67ea9f8c2a" + integrity sha512-Lgd2XcJ/NjEw+7tFvfKxOzCYKZsdct5lczQ2ZaQY8Djz7pfAD3Gbp8ySJWtreII/vDlMVmxwa6pHmdxIYgttDg== + dependencies: + dom-serializer "0" + domelementtype "1" + +domutils@^3.0.1: + version "3.1.0" + resolved "https://registry.yarnpkg.com/domutils/-/domutils-3.1.0.tgz#c47f551278d3dc4b0b1ab8cbb42d751a6f0d824e" + integrity sha512-H78uMmQtI2AhgDJjWeQmHwJJ2bLPD3GMmO7Zja/ZZh84wkm+4ut+IUnUdRa8uCGX88DiVx1j6FRe1XfxEgjEZA== + dependencies: + dom-serializer "^2.0.0" + domelementtype "^2.3.0" + domhandler "^5.0.3" + +dot-prop@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/dot-prop/-/dot-prop-5.3.0.tgz#90ccce708cd9cd82cc4dc8c3ddd9abdd55b20e88" + integrity sha512-QM8q3zDe58hqUqjraQOmzZ1LIH9SWQJTlEKCH4kJ2oQvLZk7RbQXvtDM2XEq3fwkV9CCvvH4LA0AV+ogFsBM2Q== + dependencies: + is-obj "^2.0.0" + +dotenv-expand@~11.0.6: + version "11.0.6" + resolved "https://registry.yarnpkg.com/dotenv-expand/-/dotenv-expand-11.0.6.tgz#f2c840fd924d7c77a94eff98f153331d876882d3" + integrity sha512-8NHi73otpWsZGBSZwwknTXS5pqMOrk9+Ssrna8xCaxkzEpU9OTf9R5ArQGVw03//Zmk9MOwLPng9WwndvpAJ5g== + dependencies: + dotenv "^16.4.4" + +dotenv@^16.4.4, dotenv@~16.4.5: + version "16.4.5" + resolved "https://registry.yarnpkg.com/dotenv/-/dotenv-16.4.5.tgz#cdd3b3b604cb327e286b4762e13502f717cb099f" + integrity sha512-ZmdL2rui+eB2YwhsWzjInR8LldtZHGDoQ1ugH85ppHKwpUHL7j7rN0Ti9NCnGiQbhaZ11FpR+7ao1dNsmduNUg== + +duplexer@^0.1.1, duplexer@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/duplexer/-/duplexer-0.1.2.tgz#3abe43aef3835f8ae077d136ddce0f276b0400e6" + integrity sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg== + +eastasianwidth@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/eastasianwidth/-/eastasianwidth-0.2.0.tgz#696ce2ec0aa0e6ea93a397ffcf24aa7840c827cb" + integrity sha512-I88TYZWc9XiYHRQ4/3c5rjjfgkjhLyW2luGIheGERbNQ6OY7yTybanSpDXZa8y7VUP9YmDcYa+eyq4ca7iLqWA== + +ecc-jsbn@~0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/ecc-jsbn/-/ecc-jsbn-0.1.2.tgz#3a83a904e54353287874c564b7549386849a98c9" + integrity sha512-eh9O+hwRHNbG4BLTjEl3nw044CkGm5X6LoaCf7LPp7UU8Qrt47JYNi6nPX8xjW97TKGKm1ouctg0QSpZe9qrnw== + dependencies: + jsbn "~0.1.0" + safer-buffer "^2.1.0" + +echarts@5.4.3: + version "5.4.3" + resolved "https://registry.yarnpkg.com/echarts/-/echarts-5.4.3.tgz#f5522ef24419164903eedcfd2b506c6fc91fb20c" + integrity sha512-mYKxLxhzy6zyTi/FaEbJMOZU1ULGEQHaeIeuMR5L+JnJTpz+YR03mnnpBhbR4+UYJAgiXgpyTVLffPAjOTLkZA== + dependencies: + tslib "2.3.0" + zrender "5.4.4" + +ee-first@1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/ee-first/-/ee-first-1.1.1.tgz#590c61156b0ae2f4f0255732a158b266bc56b21d" + integrity sha512-WMwm9LhRUo+WUaRN+vRuETqG89IgZphVSNkdFgeb6sS/E4OrDIN7t48CAewSHXc6C8lefD8KKfr5vY61brQlow== + +ejs@^3.1.5, ejs@^3.1.7: + version "3.1.10" + resolved "https://registry.yarnpkg.com/ejs/-/ejs-3.1.10.tgz#69ab8358b14e896f80cc39e62087b88500c3ac3b" + integrity sha512-UeJmFfOrAQS8OJWPZ4qtgHyWExa088/MtK5UEyoJGFH67cDEXkZSviOiKRCZ4Xij0zxI3JECgYs3oKx+AizQBA== + dependencies: + jake "^10.8.5" + +electron-to-chromium@^1.4.820: + version "1.4.830" + resolved "https://registry.yarnpkg.com/electron-to-chromium/-/electron-to-chromium-1.4.830.tgz#a11899bc3343bc28f57a87fcf83060e0d28038d4" + integrity sha512-TrPKKH20HeN0J1LHzsYLs2qwXrp8TF4nHdu4sq61ozGbzMpWhI7iIOPYPPkxeq1azMT9PZ8enPFcftbs/Npcjg== + +emoji-regex@^7.0.1: + version "7.0.3" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-7.0.3.tgz#933a04052860c85e83c122479c4748a8e4c72156" + integrity sha512-CwBLREIQ7LvYFB0WyRvwhq5N5qPhc6PMjD6bYggFlI5YyDgl+0vxq5VHbMOFqLg7hfWzmu8T5Z1QofhmTIhItA== + +emoji-regex@^8.0.0: + version "8.0.0" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-8.0.0.tgz#e818fd69ce5ccfcb404594f842963bf53164cc37" + integrity sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A== + +emoji-regex@^9.2.2: + version "9.2.2" + resolved "https://registry.yarnpkg.com/emoji-regex/-/emoji-regex-9.2.2.tgz#840c8803b0d8047f4ff0cf963176b32d4ef3ed72" + integrity sha512-L18DaJsXSUk2+42pv8mLs5jJT2hqFkFE4j21wOmgbUqsZ2hL72NsUU785g9RXgo3s0ZNgVl42TiHp3ZtOv/Vyg== + +emojis-list@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/emojis-list/-/emojis-list-3.0.0.tgz#5570662046ad29e2e916e71aae260abdff4f6a78" + integrity sha512-/kyM18EfinwXZbno9FyUGeFh87KC8HRQBQGildHZbEuRyWFOmv1U10o9BBp8XVZDVNNuQKyIGIu5ZYAAXJ0V2Q== + +encodeurl@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/encodeurl/-/encodeurl-1.0.2.tgz#ad3ff4c86ec2d029322f5a02c3a9a606c95b3f59" + integrity sha512-TPJXq8JqFaVYm2CWmPvnP2Iyo4ZSM7/QKcSmuMLDObfpH5fi7RUGmd/rTDf+rut/saiDiQEeVTNgAmJEdAOx0w== + +encoding@^0.1.13: + version "0.1.13" + resolved "https://registry.yarnpkg.com/encoding/-/encoding-0.1.13.tgz#56574afdd791f54a8e9b2785c0582a2d26210fa9" + integrity sha512-ETBauow1T35Y/WZMkio9jiM0Z5xjHHmJ4XmjZOq1l/dXz3lr2sRn87nJy20RupqSh1F2m3HHPSp8ShIPQJrJ3A== + dependencies: + iconv-lite "^0.6.2" + +end-of-stream@^1.4.1: + version "1.4.4" + resolved "https://registry.yarnpkg.com/end-of-stream/-/end-of-stream-1.4.4.tgz#5ae64a5f45057baf3626ec14da0ca5e4b2431eb0" + integrity sha512-+uw1inIHVPQoaVuHzRyXd21icM+cnt4CzD5rW+NC1wjOUSTOs+Te7FOv7AhN7vS9x/oIyhLP5PR1H+phQAHu5Q== + dependencies: + once "^1.4.0" + +engine.io-parser@~5.2.1: + version "5.2.3" + resolved "https://registry.yarnpkg.com/engine.io-parser/-/engine.io-parser-5.2.3.tgz#00dc5b97b1f233a23c9398d0209504cf5f94d92f" + integrity sha512-HqD3yTBfnBxIrbnM1DoD6Pcq8NECnh8d4As1Qgh0z5Gg3jRRIqijury0CL3ghu/edArpUYiYqQiDUQBIs4np3Q== + +engine.io@~6.5.2: + version "6.5.5" + resolved "https://registry.yarnpkg.com/engine.io/-/engine.io-6.5.5.tgz#430b80d8840caab91a50e9e23cb551455195fc93" + integrity sha512-C5Pn8Wk+1vKBoHghJODM63yk8MvrO9EWZUfkAt5HAqIgPE4/8FF0PEGHXtEd40l223+cE5ABWuPzm38PHFXfMA== + dependencies: + "@types/cookie" "^0.4.1" + "@types/cors" "^2.8.12" + "@types/node" ">=10.0.0" + accepts "~1.3.4" + base64id "2.0.0" + cookie "~0.4.1" + cors "~2.8.5" + debug "~4.3.1" + engine.io-parser "~5.2.1" + ws "~8.17.1" + +enhanced-resolve@^5.15.0: + version "5.17.0" + resolved "https://registry.yarnpkg.com/enhanced-resolve/-/enhanced-resolve-5.17.0.tgz#d037603789dd9555b89aaec7eb78845c49089bc5" + integrity sha512-dwDPwZL0dmye8Txp2gzFmA6sxALaSvdRDjPH0viLcKrtlOL3tw62nWWweVD1SdILDTJrbrL6tdWVN58Wo6U3eA== + dependencies: + graceful-fs "^4.2.4" + tapable "^2.2.0" + +enquirer@~2.3.6: + version "2.3.6" + resolved "https://registry.yarnpkg.com/enquirer/-/enquirer-2.3.6.tgz#2a7fe5dd634a1e4125a975ec994ff5456dc3734d" + integrity sha512-yjNnPr315/FjS4zIsUxYguYUPP2e1NK4d7E7ZOLiyYCcbFBiTMyID+2wvm2w6+pZ/odMA7cRkjhsPbltwBOrLg== + dependencies: + ansi-colors "^4.1.1" + +ent@~2.2.0: + version "2.2.1" + resolved "https://registry.yarnpkg.com/ent/-/ent-2.2.1.tgz#68dc99a002f115792c26239baedaaea9e70c0ca2" + integrity sha512-QHuXVeZx9d+tIQAz/XztU0ZwZf2Agg9CcXcgE1rurqvdBeDBrpSwjl8/6XUqMg7tw2Y7uAdKb2sRv+bSEFqQ5A== + dependencies: + punycode "^1.4.1" + +entities@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/entities/-/entities-1.1.2.tgz#bdfa735299664dfafd34529ed4f8522a275fea56" + integrity sha512-f2LZMYl1Fzu7YSBKg+RoROelpOaNrcGmE9AZubeDfrCEia483oW4MI4VyFd5VNHIgQ/7qm1I0wUHK1eJnn2y2w== + +entities@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-2.2.0.tgz#098dc90ebb83d8dffa089d55256b351d34c4da55" + integrity sha512-p92if5Nz619I0w+akJrLZH0MX0Pb5DX39XOwQTtXSdQQOaYH03S1uIQp4mhOZtAXrxq4ViO67YTiLBo2638o9A== + +entities@^4.2.0, entities@^4.3.0, entities@^4.4.0: + version "4.5.0" + resolved "https://registry.yarnpkg.com/entities/-/entities-4.5.0.tgz#5d268ea5e7113ec74c4d033b79ea5a35a488fb48" + integrity sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw== + +env-paths@^2.2.0, env-paths@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/env-paths/-/env-paths-2.2.1.tgz#420399d416ce1fbe9bc0a07c62fa68d67fd0f8f2" + integrity sha512-+h1lkLKhZMTYjog1VEpJNG7NZJWcuc2DDk/qsqSTRRCOXiLjeQ1d1/udrUGhqMxUgAlwKNZ0cf2uqan5GLuS2A== + +err-code@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/err-code/-/err-code-2.0.3.tgz#23c2f3b756ffdfc608d30e27c9a941024807e7f9" + integrity sha512-2bmlRpNKBxT/CRmPOlyISQpNj+qSeYvcym/uT0Jx2bMOlKLtSy1ZmLuVxSEKKyor/N5yhvp/ZiG1oE3DEYMSFA== + +errno@^0.1.1: + version "0.1.8" + resolved "https://registry.yarnpkg.com/errno/-/errno-0.1.8.tgz#8bb3e9c7d463be4976ff888f76b4809ebc2e811f" + integrity sha512-dJ6oBr5SQ1VSd9qkk7ByRgb/1SH4JZjCHSW/mr63/QcXO9zLVxvJ6Oy13nio03rxpSnVDDjFor75SjVeZWPW/A== + dependencies: + prr "~1.0.1" + +error-ex@^1.3.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/error-ex/-/error-ex-1.3.2.tgz#b4ac40648107fdcdcfae242f428bea8a14d4f1bf" + integrity sha512-7dFHNmqeFSEt2ZBsCriorKnn3Z2pj+fd9kmI6QoWw4//DL+icEBfc0U7qJCisqrTsKTjw4fNFy2pW9OqStD84g== + dependencies: + is-arrayish "^0.2.1" + +es-abstract@^1.22.1, es-abstract@^1.22.3, es-abstract@^1.23.0, es-abstract@^1.23.2: + version "1.23.3" + resolved "https://registry.yarnpkg.com/es-abstract/-/es-abstract-1.23.3.tgz#8f0c5a35cd215312573c5a27c87dfd6c881a0aa0" + integrity sha512-e+HfNH61Bj1X9/jLc5v1owaLYuHdeHHSQlkhCBiTK8rBvKaULl/beGMxwrMXjpYrv4pz22BlY570vVePA2ho4A== + dependencies: + array-buffer-byte-length "^1.0.1" + arraybuffer.prototype.slice "^1.0.3" + available-typed-arrays "^1.0.7" + call-bind "^1.0.7" + data-view-buffer "^1.0.1" + data-view-byte-length "^1.0.1" + data-view-byte-offset "^1.0.0" + es-define-property "^1.0.0" + es-errors "^1.3.0" + es-object-atoms "^1.0.0" + es-set-tostringtag "^2.0.3" + es-to-primitive "^1.2.1" + function.prototype.name "^1.1.6" + get-intrinsic "^1.2.4" + get-symbol-description "^1.0.2" + globalthis "^1.0.3" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + has-proto "^1.0.3" + has-symbols "^1.0.3" + hasown "^2.0.2" + internal-slot "^1.0.7" + is-array-buffer "^3.0.4" + is-callable "^1.2.7" + is-data-view "^1.0.1" + is-negative-zero "^2.0.3" + is-regex "^1.1.4" + is-shared-array-buffer "^1.0.3" + is-string "^1.0.7" + is-typed-array "^1.1.13" + is-weakref "^1.0.2" + object-inspect "^1.13.1" + object-keys "^1.1.1" + object.assign "^4.1.5" + regexp.prototype.flags "^1.5.2" + safe-array-concat "^1.1.2" + safe-regex-test "^1.0.3" + string.prototype.trim "^1.2.9" + string.prototype.trimend "^1.0.8" + string.prototype.trimstart "^1.0.8" + typed-array-buffer "^1.0.2" + typed-array-byte-length "^1.0.1" + typed-array-byte-offset "^1.0.2" + typed-array-length "^1.0.6" + unbox-primitive "^1.0.2" + which-typed-array "^1.1.15" + +es-define-property@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-define-property/-/es-define-property-1.0.0.tgz#c7faefbdff8b2696cf5f46921edfb77cc4ba3845" + integrity sha512-jxayLKShrEqqzJ0eumQbVhTYQM27CfT1T35+gCgDFoL82JLsXqTJ76zv6A0YLOgEnLUMvLzsDsGIrl8NFpT2gQ== + dependencies: + get-intrinsic "^1.2.4" + +es-errors@^1.2.1, es-errors@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/es-errors/-/es-errors-1.3.0.tgz#05f75a25dab98e4fb1dcd5e1472c0546d5057c8f" + integrity sha512-Zf5H2Kxt2xjTvbJvP2ZWLEICxA6j+hAmMzIlypy4xcBg1vKVnx89Wy0GbS+kf5cwCVFFzdCFh2XSCFNULS6csw== + +es-module-lexer@^1.2.1: + version "1.5.4" + resolved "https://registry.yarnpkg.com/es-module-lexer/-/es-module-lexer-1.5.4.tgz#a8efec3a3da991e60efa6b633a7cad6ab8d26b78" + integrity sha512-MVNK56NiMrOwitFB7cqDwq0CQutbw+0BvLshJSse0MUNU+y1FC3bUS/AQg7oUng+/wKrrki7JfmwtVHkVfPLlw== + +es-object-atoms@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/es-object-atoms/-/es-object-atoms-1.0.0.tgz#ddb55cd47ac2e240701260bc2a8e31ecb643d941" + integrity sha512-MZ4iQ6JwHOBQjahnjwaC1ZtIBH+2ohjamzAO3oaHcXYup7qxjF2fixyH+Q71voWHeOkI2q/TnJao/KfXYIZWbw== + dependencies: + es-errors "^1.3.0" + +es-set-tostringtag@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/es-set-tostringtag/-/es-set-tostringtag-2.0.3.tgz#8bb60f0a440c2e4281962428438d58545af39777" + integrity sha512-3T8uNMC3OQTHkFUsFq8r/BwAXLHvU/9O9mE0fBc/MY5iq/8H7ncvO947LmYA6ldWw9Uh8Yhf25zu6n7nML5QWQ== + dependencies: + get-intrinsic "^1.2.4" + has-tostringtag "^1.0.2" + hasown "^2.0.1" + +es-shim-unscopables@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/es-shim-unscopables/-/es-shim-unscopables-1.0.2.tgz#1f6942e71ecc7835ed1c8a83006d8771a63a3763" + integrity sha512-J3yBRXCzDu4ULnQwxyToo/OjdMx6akgVC7K6few0a7F/0wLtmKKN7I73AH5T2836UuXRqN7Qg+IIUw/+YJksRw== + dependencies: + hasown "^2.0.0" + +es-to-primitive@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/es-to-primitive/-/es-to-primitive-1.2.1.tgz#e55cd4c9cdc188bcefb03b366c736323fc5c898a" + integrity sha512-QCOllgZJtaUo9miYBcLChTUaHNjJF3PYs1VidD7AwiEj1kYxKeQTctLAezAOH5ZKRH0g2IgPn6KwB4IT8iRpvA== + dependencies: + is-callable "^1.1.4" + is-date-object "^1.0.1" + is-symbol "^1.0.2" + +es6-promise@^3.2.1: + version "3.3.1" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-3.3.1.tgz#a08cdde84ccdbf34d027a1451bc91d4bcd28a613" + integrity sha512-SOp9Phqvqn7jtEUxPWdWfWoLmyt2VaJ6MpvP9Comy1MceMXqE6bxvaTu4iaxpYYPzhny28Lc+M87/c2cPK6lDg== + +es6-promise@^4.0.3: + version "4.2.8" + resolved "https://registry.yarnpkg.com/es6-promise/-/es6-promise-4.2.8.tgz#4eb21594c972bc40553d276e510539143db53e0a" + integrity sha512-HJDGx5daxeIvxdBxvG2cb9g4tEvwIk3i8+nhX0yGrYmZUzbkdg8QbDevheDB8gd0//uPj4c1EQua8Q+MViT0/w== + +es6-promisify@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/es6-promisify/-/es6-promisify-5.0.0.tgz#5109d62f3e56ea967c4b63505aef08291c8a5203" + integrity sha512-C+d6UdsYDk0lMebHNR4S2NybQMMngAOnOwYBQjTOiv0MkoJMP0Myw2mgpDLBcpfCmRLxyFqYhS/CfOENq4SJhQ== + dependencies: + es6-promise "^4.0.3" + +esbuild-wasm@0.20.1: + version "0.20.1" + resolved "https://registry.yarnpkg.com/esbuild-wasm/-/esbuild-wasm-0.20.1.tgz#fdc14b95e3e16ec8e082dd641edb96140c1723f7" + integrity sha512-6v/WJubRsjxBbQdz6izgvx7LsVFvVaGmSdwrFHmEzoVgfXL89hkKPoQHsnVI2ngOkcBUQT9kmAM1hVL1k/Av4A== + +esbuild@0.20.1: + version "0.20.1" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.20.1.tgz#1e4cbb380ad1959db7609cb9573ee77257724a3e" + integrity sha512-OJwEgrpWm/PCMsLVWXKqvcjme3bHNpOgN7Tb6cQnR5n0TPbQx1/Xrn7rqM+wn17bYeT6MGB5sn1Bh5YiGi70nA== + optionalDependencies: + "@esbuild/aix-ppc64" "0.20.1" + "@esbuild/android-arm" "0.20.1" + "@esbuild/android-arm64" "0.20.1" + "@esbuild/android-x64" "0.20.1" + "@esbuild/darwin-arm64" "0.20.1" + "@esbuild/darwin-x64" "0.20.1" + "@esbuild/freebsd-arm64" "0.20.1" + "@esbuild/freebsd-x64" "0.20.1" + "@esbuild/linux-arm" "0.20.1" + "@esbuild/linux-arm64" "0.20.1" + "@esbuild/linux-ia32" "0.20.1" + "@esbuild/linux-loong64" "0.20.1" + "@esbuild/linux-mips64el" "0.20.1" + "@esbuild/linux-ppc64" "0.20.1" + "@esbuild/linux-riscv64" "0.20.1" + "@esbuild/linux-s390x" "0.20.1" + "@esbuild/linux-x64" "0.20.1" + "@esbuild/netbsd-x64" "0.20.1" + "@esbuild/openbsd-x64" "0.20.1" + "@esbuild/sunos-x64" "0.20.1" + "@esbuild/win32-arm64" "0.20.1" + "@esbuild/win32-ia32" "0.20.1" + "@esbuild/win32-x64" "0.20.1" + +esbuild@^0.19.3: + version "0.19.12" + resolved "https://registry.yarnpkg.com/esbuild/-/esbuild-0.19.12.tgz#dc82ee5dc79e82f5a5c3b4323a2a641827db3e04" + integrity sha512-aARqgq8roFBj054KvQr5f1sFu0D65G+miZRCuJyJ0G13Zwx7vRar5Zhn2tkQNzIXcBrNVsv/8stehpj+GAjgbg== + optionalDependencies: + "@esbuild/aix-ppc64" "0.19.12" + "@esbuild/android-arm" "0.19.12" + "@esbuild/android-arm64" "0.19.12" + "@esbuild/android-x64" "0.19.12" + "@esbuild/darwin-arm64" "0.19.12" + "@esbuild/darwin-x64" "0.19.12" + "@esbuild/freebsd-arm64" "0.19.12" + "@esbuild/freebsd-x64" "0.19.12" + "@esbuild/linux-arm" "0.19.12" + "@esbuild/linux-arm64" "0.19.12" + "@esbuild/linux-ia32" "0.19.12" + "@esbuild/linux-loong64" "0.19.12" + "@esbuild/linux-mips64el" "0.19.12" + "@esbuild/linux-ppc64" "0.19.12" + "@esbuild/linux-riscv64" "0.19.12" + "@esbuild/linux-s390x" "0.19.12" + "@esbuild/linux-x64" "0.19.12" + "@esbuild/netbsd-x64" "0.19.12" + "@esbuild/openbsd-x64" "0.19.12" + "@esbuild/sunos-x64" "0.19.12" + "@esbuild/win32-arm64" "0.19.12" + "@esbuild/win32-ia32" "0.19.12" + "@esbuild/win32-x64" "0.19.12" + +escalade@^3.1.1, escalade@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/escalade/-/escalade-3.1.2.tgz#54076e9ab29ea5bf3d8f1ed62acffbb88272df27" + integrity sha512-ErCHMCae19vR8vQGe50xIsVomy19rg6gFu3+r3jkEO46suLMWBksvVyoGgQV+jOfl84ZSOSlmv6Gxa89PmTGmA== + +escape-html@^1.0.3, escape-html@~1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/escape-html/-/escape-html-1.0.3.tgz#0258eae4d3d0c0974de1c169188ef0051d1d1988" + integrity sha512-NiSupZ4OeuGwr68lGIeym/ksIZMJodUGOSCZ/FSnTxcrekbvqrgdUxlJOMpijaKZVjAJrWrGs/6Jy8OMuyj9ow== + +escape-string-regexp@^1.0.2, escape-string-regexp@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-1.0.5.tgz#1b61c0562190a8dff6ae3bb2cf0200ca130b86d4" + integrity sha512-vbRorB5FUQWvla16U8R/qgaFIya2qGzwDrNmCZuYKrbdSUMG6I1ZCGQRefkRVhuOkIGVne7BQ35DSfo1qvJqFg== + +escape-string-regexp@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/escape-string-regexp/-/escape-string-regexp-4.0.0.tgz#14ba83a5d373e3d311e5afca29cf5bfad965bf34" + integrity sha512-TtpcNJ3XAzx3Gq8sWRzJaVajRs0uVxA2YAkdb1jm2YkPz4G6egUFAyA3n5vtEIZefPk5Wa4UXbKuS5fKkJWdgA== + +eslint-config-prettier@8.6.0: + version "8.6.0" + resolved "https://registry.yarnpkg.com/eslint-config-prettier/-/eslint-config-prettier-8.6.0.tgz#dec1d29ab728f4fa63061774e1672ac4e363d207" + integrity sha512-bAF0eLpLVqP5oEVUFKpMA+NnRFICwn9X8B5jrR9FcqnYBuPbqWEjTEspPWMj5ye6czoSLDweCzSo3Ko7gGrZaA== + +eslint-import-resolver-node@^0.3.6: + version "0.3.9" + resolved "https://registry.yarnpkg.com/eslint-import-resolver-node/-/eslint-import-resolver-node-0.3.9.tgz#d4eaac52b8a2e7c3cd1903eb00f7e053356118ac" + integrity sha512-WFj2isz22JahUv+B788TlO3N6zL3nNJGU8CcZbPZvVEkBPaJdCV4vy5wyghty5ROFbCRnm132v8BScu5/1BQ8g== + dependencies: + debug "^3.2.7" + is-core-module "^2.13.0" + resolve "^1.22.4" + +eslint-module-utils@^2.7.3: + version "2.8.1" + resolved "https://registry.yarnpkg.com/eslint-module-utils/-/eslint-module-utils-2.8.1.tgz#52f2404300c3bd33deece9d7372fb337cc1d7c34" + integrity sha512-rXDXR3h7cs7dy9RNpUlQf80nX31XWJEyGq1tRMo+6GsO5VmTe4UTwtmonAD4ZkAsrfMVDA2wlGJ3790Ys+D49Q== + dependencies: + debug "^3.2.7" + +eslint-plugin-deprecation@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-deprecation/-/eslint-plugin-deprecation-3.0.0.tgz#c0b6bce543c2a01f231d39a1c54fdfebf3560d48" + integrity sha512-JuVLdNg/uf0Adjg2tpTyYoYaMbwQNn/c78P1HcccokvhtRphgnRjZDKmhlxbxYptppex03zO76f97DD/yQHv7A== + dependencies: + "@typescript-eslint/utils" "^7.0.0" + ts-api-utils "^1.3.0" + tslib "^2.3.1" + +eslint-plugin-import@2.26.0: + version "2.26.0" + resolved "https://registry.yarnpkg.com/eslint-plugin-import/-/eslint-plugin-import-2.26.0.tgz#f812dc47be4f2b72b478a021605a59fc6fe8b88b" + integrity sha512-hYfi3FXaM8WPLf4S1cikh/r4IxnO6zrhZbEGz2b660EJRbuxgpDS5gkCuYgGWg2xxh2rBuIr4Pvhve/7c31koA== + dependencies: + array-includes "^3.1.4" + array.prototype.flat "^1.2.5" + debug "^2.6.9" + doctrine "^2.1.0" + eslint-import-resolver-node "^0.3.6" + eslint-module-utils "^2.7.3" + has "^1.0.3" + is-core-module "^2.8.1" + is-glob "^4.0.3" + minimatch "^3.1.2" + object.values "^1.1.5" + resolve "^1.22.0" + tsconfig-paths "^3.14.1" + +eslint-plugin-jsdoc@48.2.5: + version "48.2.5" + resolved "https://registry.yarnpkg.com/eslint-plugin-jsdoc/-/eslint-plugin-jsdoc-48.2.5.tgz#66ec712632852faa15065a094342786858f13c49" + integrity sha512-ZeTfKV474W1N9niWfawpwsXGu+ZoMXu4417eBROX31d7ZuOk8zyG66SO77DpJ2+A9Wa2scw/jRqBPnnQo7VbcQ== + dependencies: + "@es-joy/jsdoccomment" "~0.43.0" + are-docs-informative "^0.0.2" + comment-parser "1.4.1" + debug "^4.3.4" + escape-string-regexp "^4.0.0" + esquery "^1.5.0" + is-builtin-module "^3.2.1" + semver "^7.6.1" + spdx-expression-parse "^4.0.0" + +eslint-plugin-prefer-arrow@1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/eslint-plugin-prefer-arrow/-/eslint-plugin-prefer-arrow-1.2.3.tgz#e7fbb3fa4cd84ff1015b9c51ad86550e55041041" + integrity sha512-J9I5PKCOJretVuiZRGvPQxCbllxGAV/viI20JO3LYblAodofBxyMnZAJ+WGeClHgANnSJberTNoFWWjrWKBuXQ== + +eslint-plugin-prettier@4.2.1: + version "4.2.1" + resolved "https://registry.yarnpkg.com/eslint-plugin-prettier/-/eslint-plugin-prettier-4.2.1.tgz#651cbb88b1dab98bfd42f017a12fa6b2d993f94b" + integrity sha512-f/0rXLXUt0oFYs8ra4w49wYZBG5GKZpAYsJSm6rnYL5uVDjd+zowwMwVZHnAjf4edNrKpCDYfXDgmRE/Ak7QyQ== + dependencies: + prettier-linter-helpers "^1.0.0" + +eslint-scope@5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-5.1.1.tgz#e786e59a66cb92b3f6c1fb0d508aab174848f48c" + integrity sha512-2NxwbF/hZ0KpepYN0cNbo+FN6XoK7GaHlQhgx/hIZl6Va0bF45RQOOwhLIy8lQDbuCiadSLCBnH2CFYquit5bw== + dependencies: + esrecurse "^4.3.0" + estraverse "^4.1.1" + +eslint-scope@^7.2.2: + version "7.2.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-7.2.2.tgz#deb4f92563390f32006894af62a22dba1c46423f" + integrity sha512-dOt21O7lTMhDM+X9mB4GX+DZrZtCUJPL/wlcTqxyrx5IvO0IYtILdtrQGQp+8n5S0gwSVmOf9NQrjMOgfQZlIg== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-scope@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/eslint-scope/-/eslint-scope-8.0.2.tgz#5cbb33d4384c9136083a71190d548158fe128f94" + integrity sha512-6E4xmrTw5wtxnLA5wYL3WDfhZ/1bUBGOXV0zQvVRDOtrR8D0p6W7fs3JweNYhwRYeGvd/1CKX2se0/2s7Q/nJA== + dependencies: + esrecurse "^4.3.0" + estraverse "^5.2.0" + +eslint-visitor-keys@^3.3.0, eslint-visitor-keys@^3.4.1, eslint-visitor-keys@^3.4.3: + version "3.4.3" + resolved "https://registry.yarnpkg.com/eslint-visitor-keys/-/eslint-visitor-keys-3.4.3.tgz#0cd72fe8550e3c2eae156a96a4dddcd1c8ac5800" + integrity sha512-wpc+LXeiyiisxPlEkUzU6svyS1frIO3Mgxj1fdy7Pm8Ygzguax2N3Fa/D/ag1WqbOprdI+uY6wMUl8/a2G+iag== + +eslint@8.56.0: + version "8.56.0" + resolved "https://registry.yarnpkg.com/eslint/-/eslint-8.56.0.tgz#4957ce8da409dc0809f99ab07a1b94832ab74b15" + integrity sha512-Go19xM6T9puCOWntie1/P997aXxFsOi37JIHRWI514Hc6ZnaHGKY9xFhrU65RT6CcBEzZoGG1e6Nq+DT04ZtZQ== + dependencies: + "@eslint-community/eslint-utils" "^4.2.0" + "@eslint-community/regexpp" "^4.6.1" + "@eslint/eslintrc" "^2.1.4" + "@eslint/js" "8.56.0" + "@humanwhocodes/config-array" "^0.11.13" + "@humanwhocodes/module-importer" "^1.0.1" + "@nodelib/fs.walk" "^1.2.8" + "@ungap/structured-clone" "^1.2.0" + ajv "^6.12.4" + chalk "^4.0.0" + cross-spawn "^7.0.2" + debug "^4.3.2" + doctrine "^3.0.0" + escape-string-regexp "^4.0.0" + eslint-scope "^7.2.2" + eslint-visitor-keys "^3.4.3" + espree "^9.6.1" + esquery "^1.4.2" + esutils "^2.0.2" + fast-deep-equal "^3.1.3" + file-entry-cache "^6.0.1" + find-up "^5.0.0" + glob-parent "^6.0.2" + globals "^13.19.0" + graphemer "^1.4.0" + ignore "^5.2.0" + imurmurhash "^0.1.4" + is-glob "^4.0.0" + is-path-inside "^3.0.3" + js-yaml "^4.1.0" + json-stable-stringify-without-jsonify "^1.0.1" + levn "^0.4.1" + lodash.merge "^4.6.2" + minimatch "^3.1.2" + natural-compare "^1.4.0" + optionator "^0.9.3" + strip-ansi "^6.0.1" + text-table "^0.2.0" + +espree@^9.6.0, espree@^9.6.1: + version "9.6.1" + resolved "https://registry.yarnpkg.com/espree/-/espree-9.6.1.tgz#a2a17b8e434690a5432f2f8018ce71d331a48c6f" + integrity sha512-oruZaFkjorTpF32kDSI5/75ViwGeZginGGy2NoOSg3Q9bnwlnmDm4HLnkl0RE3n+njDXR037aY1+x58Z/zFdwQ== + dependencies: + acorn "^8.9.0" + acorn-jsx "^5.3.2" + eslint-visitor-keys "^3.4.1" + +esprima@^4.0.0: + version "4.0.1" + resolved "https://registry.yarnpkg.com/esprima/-/esprima-4.0.1.tgz#13b04cdb3e6c5d19df91ab6987a8695619b0aa71" + integrity sha512-eGuFFw7Upda+g4p+QHvnW0RyTX/SVeJBDM/gCtMARO0cLuT2HcEKnTPvhjV6aGeqrCB/sbNop0Kszm0jsaWU4A== + +esquery@^1.4.2, esquery@^1.5.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/esquery/-/esquery-1.6.0.tgz#91419234f804d852a82dceec3e16cdc22cf9dae7" + integrity sha512-ca9pw9fomFcKPvFLXhBKUK90ZvGibiGOvRJNbjljY7s7uq/5YO4BOzcYtJqExdx99rF6aAcnRxHmcUHcz6sQsg== + dependencies: + estraverse "^5.1.0" + +esrecurse@^4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/esrecurse/-/esrecurse-4.3.0.tgz#7ad7964d679abb28bee72cec63758b1c5d2c9921" + integrity sha512-KmfKL3b6G+RXvP8N1vr3Tq1kL/oCFgn2NYXEtqP8/L3pKapUA4G8cFVaoF3SU323CD4XypR/ffioHmkti6/Tag== + dependencies: + estraverse "^5.2.0" + +estraverse@^4.1.1: + version "4.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-4.3.0.tgz#398ad3f3c5a24948be7725e83d11a7de28cdbd1d" + integrity sha512-39nnKffWz8xN1BU/2c79n9nB9HDzo0niYUqx6xyqUnyoAnQyyWpOTdZEeiCch8BBu515t4wp9ZmgVfVhn9EBpw== + +estraverse@^5.1.0, estraverse@^5.2.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/estraverse/-/estraverse-5.3.0.tgz#2eea5290702f26ab8fe5370370ff86c965d21123" + integrity sha512-MMdARuVEQziNTeJD8DgMqmhwR11BRQ/cBP+pLtYdSTnf3MIO8fFeiINEbX36ZdNlfU/7A9f3gUw49B3oQsvwBA== + +esutils@^2.0.2: + version "2.0.3" + resolved "https://registry.yarnpkg.com/esutils/-/esutils-2.0.3.tgz#74d2eb4de0b8da1293711910d50775b9b710ef64" + integrity sha512-kVscqXk4OCp68SZ0dkgEKVi6/8ij300KBWTJq32P/dYeWTSwK41WyTxalN1eRmA5Z9UU/LX9D7FWSmV9SAYx6g== + +eta@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/eta/-/eta-2.2.0.tgz#eb8b5f8c4e8b6306561a455e62cd7492fe3a9b8a" + integrity sha512-UVQ72Rqjy/ZKQalzV5dCCJP80GrmPrMxh6NlNf+erV6ObL0ZFkhCstWRawS85z3smdr3d2wXPsZEY7rDPfGd2g== + +etag@~1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/etag/-/etag-1.8.1.tgz#41ae2eeb65efa62268aebfea83ac7d79299b0887" + integrity sha512-aIL5Fx7mawVa300al2BnEE4iNvo1qETxLrPI/o05L7z6go7fCw1J6EQmbK4FmJ2AS7kgVF/KEZWufBfdClMcPg== + +eventemitter3@^4.0.0: + version "4.0.7" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-4.0.7.tgz#2de9b68f6528d5644ef5c59526a1b4a07306169f" + integrity sha512-8guHBZCwKnFhYdHr2ysuRWErTwhoN2X8XELRlrRwpmfeY2jjuUN4taQMsULKUVo1K4DvZl+0pgfyoysHxvmvEw== + +eventemitter3@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/eventemitter3/-/eventemitter3-5.0.1.tgz#53f5ffd0a492ac800721bb42c66b841de96423c4" + integrity sha512-GWkBvjiSZK87ELrYOSESUYeVIc9mvLLf/nXalMOS5dYrgZq9o5OVkbZAVM06CVxYsCwH9BDZFPlQTlPA1j4ahA== + +events@^3.2.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/events/-/events-3.3.0.tgz#31a95ad0a924e2d2c419a813aeb2c4e878ea7400" + integrity sha512-mQw+2fkQbALzQ7V0MY0IqdnXNOeTtP4r0lN9z7AAawCXgqea7bDii20AYrIBrFd/Hx0M2Ocz6S111CaFkUcb0Q== + +execa@7.2.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/execa/-/execa-7.2.0.tgz#657e75ba984f42a70f38928cedc87d6f2d4fe4e9" + integrity sha512-UduyVP7TLB5IcAQl+OzLyLcS/l32W/GLg+AhHJ+ow40FOk2U3SAllPwR44v4vmdFwIWqpdwxxpQbF1n5ta9seA== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.1" + human-signals "^4.3.0" + is-stream "^3.0.0" + merge-stream "^2.0.0" + npm-run-path "^5.1.0" + onetime "^6.0.0" + signal-exit "^3.0.7" + strip-final-newline "^3.0.0" + +execa@^5.0.0: + version "5.1.1" + resolved "https://registry.yarnpkg.com/execa/-/execa-5.1.1.tgz#f80ad9cbf4298f7bd1d4c9555c21e93741c411dd" + integrity sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg== + dependencies: + cross-spawn "^7.0.3" + get-stream "^6.0.0" + human-signals "^2.1.0" + is-stream "^2.0.0" + merge-stream "^2.0.0" + npm-run-path "^4.0.1" + onetime "^5.1.2" + signal-exit "^3.0.3" + strip-final-newline "^2.0.0" + +execall@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/execall/-/execall-1.0.0.tgz#73d0904e395b3cab0658b08d09ec25307f29bb73" + integrity sha512-/J0Q8CvOvlAdpvhfkD/WnTQ4H1eU0exze2nFGPj/RSC7jpQ0NkKe2r28T5eMkhEEs+fzepMZNy1kVRKNlC04nQ== + dependencies: + clone-regexp "^1.0.0" + +exit@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/exit/-/exit-0.1.2.tgz#0632638f8d877cc82107d30a0fff1a17cba1cd0c" + integrity sha512-Zk/eNKV2zbjpKzrsQ+n1G6poVbErQxJ0LBOJXaKZ1EViLzH+hrLu9cdXI4zw9dBQJslwBEpbQ2P1oS7nDxs6jQ== + +expand-brackets@^2.1.4: + version "2.1.4" + resolved "https://registry.yarnpkg.com/expand-brackets/-/expand-brackets-2.1.4.tgz#b77735e315ce30f6b6eff0f83b04151a22449622" + integrity sha512-w/ozOKR9Obk3qoWeY/WDi6MFta9AoMR+zud60mdnbniMcBxRuFJyDt2LdX/14A1UABeqk+Uk+LDfUpvoGKppZA== + dependencies: + debug "^2.3.3" + define-property "^0.2.5" + extend-shallow "^2.0.1" + posix-character-classes "^0.1.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +exponential-backoff@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/exponential-backoff/-/exponential-backoff-3.1.1.tgz#64ac7526fe341ab18a39016cd22c787d01e00bf6" + integrity sha512-dX7e/LHVJ6W3DE1MHWi9S1EYzDESENfLrYohG2G++ovZrYOkm4Knwa0mc1cn84xJOR4KEU0WSchhLbd0UklbHw== + +express@^4.17.3: + version "4.19.2" + resolved "https://registry.yarnpkg.com/express/-/express-4.19.2.tgz#e25437827a3aa7f2a827bc8171bbbb664a356465" + integrity sha512-5T6nhjsT+EOMzuck8JjBHARTHfMht0POzlA60WV2pMD3gyXw2LZnZ+ueGdNxG+0calOJcWKbpFcuzLZ91YWq9Q== + dependencies: + accepts "~1.3.8" + array-flatten "1.1.1" + body-parser "1.20.2" + content-disposition "0.5.4" + content-type "~1.0.4" + cookie "0.6.0" + cookie-signature "1.0.6" + debug "2.6.9" + depd "2.0.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + finalhandler "1.2.0" + fresh "0.5.2" + http-errors "2.0.0" + merge-descriptors "1.0.1" + methods "~1.1.2" + on-finished "2.4.1" + parseurl "~1.3.3" + path-to-regexp "0.1.7" + proxy-addr "~2.0.7" + qs "6.11.0" + range-parser "~1.2.1" + safe-buffer "5.2.1" + send "0.18.0" + serve-static "1.15.0" + setprototypeof "1.2.0" + statuses "2.0.1" + type-is "~1.6.18" + utils-merge "1.0.1" + vary "~1.1.2" + +extend-shallow@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-2.0.1.tgz#51af7d614ad9a9f610ea1bafbb989d6b1c56890f" + integrity sha512-zCnTtlxNoAiDc3gqY2aYAWFx7XWWiasuF2K8Me5WbN8otHKTUKBwjPtNpRs/rbUZm7KxWAaNj7P1a/p52GbVug== + dependencies: + is-extendable "^0.1.0" + +extend-shallow@^3.0.0, extend-shallow@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend-shallow/-/extend-shallow-3.0.2.tgz#26a71aaf073b39fb2127172746131c2704028db8" + integrity sha512-BwY5b5Ql4+qZoefgMj2NUmx+tehVTH/Kf4k1ZEtOHNFcm2wSxMRo992l6X3TIgni2eZVTZ85xMOjF31fwZAj6Q== + dependencies: + assign-symbols "^1.0.0" + is-extendable "^1.0.1" + +extend@^3.0.0, extend@^3.0.2, extend@~3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/extend/-/extend-3.0.2.tgz#f8b1136b4071fbd8eb140aff858b1019ec2915fa" + integrity sha512-fjquC59cD7CyW6urNXK0FBufkZcoiGG80wTuPujX590cB5Ttln20E2UB4S/WARVqhXffZl2LNgS+gQdPIIim/g== + +external-editor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/external-editor/-/external-editor-3.1.0.tgz#cb03f740befae03ea4d283caed2741a83f335495" + integrity sha512-hMQ4CX1p1izmuLYyZqLMO/qGNw10wSv9QDCPfzXfyFrOaCSSoRfqE1Kf1s5an66J5JZC62NewG+mK49jOCtQew== + dependencies: + chardet "^0.7.0" + iconv-lite "^0.4.24" + tmp "^0.0.33" + +extglob@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/extglob/-/extglob-2.0.4.tgz#ad00fe4dc612a9232e8718711dc5cb5ab0285543" + integrity sha512-Nmb6QXkELsuBr24CJSkilo6UHHgbekK5UiZgfE6UHD3Eb27YC6oD+bhcT+tJ6cl8dmsgdQxnWlcry8ksBIBLpw== + dependencies: + array-unique "^0.3.2" + define-property "^1.0.0" + expand-brackets "^2.1.4" + extend-shallow "^2.0.1" + fragment-cache "^0.2.1" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +extsprintf@1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.3.0.tgz#96918440e3041a7a414f8c52e3c574eb3c3e1e05" + integrity sha512-11Ndz7Nv+mvAC1j0ktTa7fAb0vLyGGX+rMHNBYQviQDGU0Hw7lhctJANqbPhu9nV9/izT/IntTgZ7Im/9LJs9g== + +extsprintf@^1.2.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/extsprintf/-/extsprintf-1.4.1.tgz#8d172c064867f235c0c84a596806d279bf4bcc07" + integrity sha512-Wrk35e8ydCKDj/ArClo1VrPVmN8zph5V4AtHwIuHhvMXsKf73UT3BOD+azBIW+3wOJ4FhEH7zyaJCFvChjYvMA== + +fast-deep-equal@^3.1.1, fast-deep-equal@^3.1.3: + version "3.1.3" + resolved "https://registry.yarnpkg.com/fast-deep-equal/-/fast-deep-equal-3.1.3.tgz#3a7d56b559d6cbc3eb512325244e619a65c6c525" + integrity sha512-f3qQ9oQy9j2AhBe/H9VC91wLmKBCCU/gDOnKNAYG5hswO7BLKj09Hc5HYNz9cGI++xlpDCIgDaitVs03ATR84Q== + +fast-diff@^1.1.2: + version "1.3.0" + resolved "https://registry.yarnpkg.com/fast-diff/-/fast-diff-1.3.0.tgz#ece407fa550a64d638536cd727e129c61616e0f0" + integrity sha512-VxPP4NqbUjj6MaAOafWeUn2cXWLcCtljklUtZf0Ind4XQ+QPtmA0b18zZy0jIQx+ExRVCR/ZQpBmik5lXshNsw== + +fast-glob@3.3.2, fast-glob@^3.2.11, fast-glob@^3.2.12, fast-glob@^3.2.9, fast-glob@^3.3.0: + version "3.3.2" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-3.3.2.tgz#a904501e57cfdd2ffcded45e99a54fef55e46129" + integrity sha512-oX2ruAFQwf/Orj8m737Y5adxDQO0LAB7/S5MnxCdTNDd4p6BsyIVsv9JQsATbTSq8KHRpLwIHbVlUNatxd+1Ow== + dependencies: + "@nodelib/fs.stat" "^2.0.2" + "@nodelib/fs.walk" "^1.2.3" + glob-parent "^5.1.2" + merge2 "^1.3.0" + micromatch "^4.0.4" + +fast-glob@^2.2.6: + version "2.2.7" + resolved "https://registry.yarnpkg.com/fast-glob/-/fast-glob-2.2.7.tgz#6953857c3afa475fff92ee6015d52da70a4cd39d" + integrity sha512-g1KuQwHOZAmOZMuBtHdxDtju+T2RT8jgCC9aANsbpdiDDTSnjgfuVsIBNKbUeJI3oKMRExcfNDtJl4OhbffMsw== + dependencies: + "@mrmlnc/readdir-enhanced" "^2.2.1" + "@nodelib/fs.stat" "^1.1.2" + glob-parent "^3.1.0" + is-glob "^4.0.0" + merge2 "^1.2.3" + micromatch "^3.1.10" + +fast-json-stable-stringify@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fast-json-stable-stringify/-/fast-json-stable-stringify-2.1.0.tgz#874bf69c6f404c2b5d99c481341399fd55892633" + integrity sha512-lhd/wF+Lk98HZoTCtlVraHtfh5XYijIjalXck7saUtuanSDyLMxnHhSXEDJqHxD7msR8D0uCmqlkwjCV8xvwHw== + +fast-levenshtein@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/fast-levenshtein/-/fast-levenshtein-2.0.6.tgz#3d8a5c66883a16a30ca8643e851f19baa7797917" + integrity sha512-DCXu6Ifhqcks7TZKY3Hxp3y6qphY5SJZmrWMDrKcERSOXWQdMhU9Ig/PYrzyw/ul9jOIyh0N4M0tbC5hodg8dw== + +fast-safe-stringify@^2.0.7: + version "2.1.1" + resolved "https://registry.yarnpkg.com/fast-safe-stringify/-/fast-safe-stringify-2.1.1.tgz#c406a83b6e70d9e35ce3b30a81141df30aeba884" + integrity sha512-W+KJc2dmILlPplD/H4K9l9LcAHAfPtP6BY84uVLXQ6Evcz9Lcg33Y2z1IVblT6xdY54PXYVHEv+0Wpq8Io6zkA== + +fast-uri@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/fast-uri/-/fast-uri-3.0.1.tgz#cddd2eecfc83a71c1be2cc2ef2061331be8a7134" + integrity sha512-MWipKbbYiYI0UC7cl8m/i/IWTqfC8YXsqjzybjddLsFjStroQzsHXkc73JutMvBiXmOvapk+axIl79ig5t55Bw== + +fastest-levenshtein@^1.0.16: + version "1.0.16" + resolved "https://registry.yarnpkg.com/fastest-levenshtein/-/fastest-levenshtein-1.0.16.tgz#210e61b6ff181de91ea9b3d1b84fdedd47e034e5" + integrity sha512-eRnCtTTtGZFpQCwhJiUOuxPQWRXVKYDn0b2PeHfXL6/Zi53SLAzAHfVhVWK2AryC/WH05kGfxhFIPvTF0SXQzg== + +fastq@^1.6.0: + version "1.17.1" + resolved "https://registry.yarnpkg.com/fastq/-/fastq-1.17.1.tgz#2a523f07a4e7b1e81a42b91b8bf2254107753b47" + integrity sha512-sRVD3lWVIXWg6By68ZN7vho9a1pQcN/WBFaAAsDDFzlJjvoGx0P8z7V1t72grFJfJhu3YPZBuu25f7Kaw2jN1w== + dependencies: + reusify "^1.0.4" + +faye-websocket@^0.11.3: + version "0.11.4" + resolved "https://registry.yarnpkg.com/faye-websocket/-/faye-websocket-0.11.4.tgz#7f0d9275cfdd86a1c963dc8b65fcc451edcbb1da" + integrity sha512-CzbClwlXAuiRQAlUyfqPgvPoNKTckTPGfwZV4ZdAhVcP2lh9KUxJg2b5GkE7XbjKQ3YJnQ9z6D9ntLAlB+tP8g== + dependencies: + websocket-driver ">=0.5.1" + +fetch-blob@^3.1.2, fetch-blob@^3.1.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/fetch-blob/-/fetch-blob-3.2.0.tgz#f09b8d4bbd45adc6f0c20b7e787e793e309dcce9" + integrity sha512-7yAQpD2UMJzLi1Dqv7qFYnPbaPx7ZfFK6PiIxQ4PfkGPyNyl2Ugx+a/umUonmKqjhM4DnfbMvdX6otXq83soQQ== + dependencies: + node-domexception "^1.0.0" + web-streams-polyfill "^3.0.3" + +figures@3.2.0, figures@^3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/figures/-/figures-3.2.0.tgz#625c18bd293c604dc4a8ddb2febf0c88341746af" + integrity sha512-yaduQFRKLXYOGgEn6AZau90j3ggSOyiqXU0F9JZfeXYhNa+Jk4X+s45A2zg5jns87GAFa34BBm2kXw4XpNcbdg== + dependencies: + escape-string-regexp "^1.0.5" + +file-entry-cache@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-4.0.0.tgz#633567d15364aefe0b299e1e217735e8f3a9f6e8" + integrity sha512-AVSwsnbV8vH/UVbvgEhf3saVQXORNv0ZzSkvkhQIaia5Tia+JhGTaa/ePUSVoPHQyGayQNmYfkzFi3WZV5zcpA== + dependencies: + flat-cache "^2.0.1" + +file-entry-cache@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/file-entry-cache/-/file-entry-cache-6.0.1.tgz#211b2dd9659cb0394b073e7323ac3c933d522027" + integrity sha512-7Gps/XWymbLk2QLYK4NzpMOrYjMhdIxXuIvy2QBsLE6ljuodKvdkWs/cpyJJ3CVIVpH0Oi1Hvg1ovbMzLdFBBg== + dependencies: + flat-cache "^3.0.4" + +file-saver@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/file-saver/-/file-saver-2.0.5.tgz#d61cfe2ce059f414d899e9dd6d4107ee25670c38" + integrity sha512-P9bmyZ3h/PRG+Nzga+rbdI4OEpNDzAVyy74uVO9ATgzLK6VtAsYybF/+TOCvrc0MO793d6+42lLyZTw7/ArVzA== + +filelist@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/filelist/-/filelist-1.0.4.tgz#f78978a1e944775ff9e62e744424f215e58352b5" + integrity sha512-w1cEuf3S+DrLCQL7ET6kz+gmlJdbq9J7yXCSjK/OZCPA+qEN1WyF4ZAf0YYJa4/shHJra2t/d/r8SV4Ji+x+8Q== + dependencies: + minimatch "^5.0.1" + +fill-range@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-4.0.0.tgz#d544811d428f98eb06a63dc402d2403c328c38f7" + integrity sha512-VcpLTWqWDiTerugjj8e3+esbg+skS3M9e54UuR3iCeIDMXCLTsAH8hTSzDQU/X6/6t3eYkOKoZSef2PlU6U1XQ== + dependencies: + extend-shallow "^2.0.1" + is-number "^3.0.0" + repeat-string "^1.6.1" + to-regex-range "^2.1.0" + +fill-range@^7.1.1: + version "7.1.1" + resolved "https://registry.yarnpkg.com/fill-range/-/fill-range-7.1.1.tgz#44265d3cac07e3ea7dc247516380643754a05292" + integrity sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg== + dependencies: + to-regex-range "^5.0.1" + +finalhandler@1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.1.2.tgz#b7e7d000ffd11938d0fdb053506f6ebabe9f587d" + integrity sha512-aAWcW57uxVNrQZqFXjITpW3sIUQmHGG3qSb9mUah9MgMC4NeWhNOlNjXEYq3HjRAvL6arUviZGGJsBg6z0zsWA== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "~2.3.0" + parseurl "~1.3.3" + statuses "~1.5.0" + unpipe "~1.0.0" + +finalhandler@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/finalhandler/-/finalhandler-1.2.0.tgz#7d23fe5731b207b4640e4fcd00aec1f9207a7b32" + integrity sha512-5uXcUVftlQMFnWC9qu/svkWv3GTd2PfUhK/3PLkYNAe7FbqJMt3515HaxE6eRL74GdsriiwujiawdaB1BpEISg== + dependencies: + debug "2.6.9" + encodeurl "~1.0.2" + escape-html "~1.0.3" + on-finished "2.4.1" + parseurl "~1.3.3" + statuses "2.0.1" + unpipe "~1.0.0" + +find-cache-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/find-cache-dir/-/find-cache-dir-4.0.0.tgz#a30ee0448f81a3990708f6453633c733e2f6eec2" + integrity sha512-9ZonPT4ZAK4a+1pUPVPZJapbi7O5qbbJPdYw/NOQWZZbVLdDTYM3A4R9z/DpAM08IDaFGsvPgiGZ82WEwUDWjg== + dependencies: + common-path-prefix "^3.0.0" + pkg-dir "^7.0.0" + +find-up@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-2.1.0.tgz#45d1b7e506c717ddd482775a2b77920a3c0c57a7" + integrity sha512-NWzkk0jSJtTt08+FBFMvXoeZnOJD+jTtsRmBYbAIzJdX6l7dLgR7CTubCM5/eDdPUBvLCeVasP1brfVR/9/EZQ== + dependencies: + locate-path "^2.0.0" + +find-up@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-4.1.0.tgz#97afe7d6cdc0bc5928584b7c8d7b16e8a9aa5d19" + integrity sha512-PpOwAdQ/YlXQ2vj8a3h8IipDuYRi3wceVQQGYWxNINccq40Anw7BlsEXCMbt1Zt+OLA6Fq9suIpIWD0OsnISlw== + dependencies: + locate-path "^5.0.0" + path-exists "^4.0.0" + +find-up@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-5.0.0.tgz#4c92819ecb7083561e4f4a240a86be5198f536fc" + integrity sha512-78/PXT1wlLLDgTzDs7sjq9hzz0vXD+zn+7wypEe4fXQxCmdmqfGsEPQxmiCSQI3ajFV91bVSsvNtrJRiW6nGng== + dependencies: + locate-path "^6.0.0" + path-exists "^4.0.0" + +find-up@^6.3.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/find-up/-/find-up-6.3.0.tgz#2abab3d3280b2dc7ac10199ef324c4e002c8c790" + integrity sha512-v2ZsoEuVHYy8ZIlYqwPe/39Cy+cFDzp4dXPaxNvkEuouymu+2Jbz0PxpKarJHYJTmv2HWT3O382qY8l4jMWthw== + dependencies: + locate-path "^7.1.0" + path-exists "^5.0.0" + +flat-cache@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-2.0.1.tgz#5d296d6f04bda44a4630a301413bdbc2ec085ec0" + integrity sha512-LoQe6yDuUMDzQAEH8sgmh4Md6oZnc/7PjtwjNFSzveXqSHt6ka9fPBuso7IGf9Rz4uqnSnWiFH2B/zj24a5ReA== + dependencies: + flatted "^2.0.0" + rimraf "2.6.3" + write "1.0.3" + +flat-cache@^3.0.4: + version "3.2.0" + resolved "https://registry.yarnpkg.com/flat-cache/-/flat-cache-3.2.0.tgz#2c0c2d5040c99b1632771a9d105725c0115363ee" + integrity sha512-CYcENa+FtcUKLmhhqyctpclsq7QF38pKjZHsGNiSQF5r4FtoKDWabFDl3hzaEQMvT1LHEysw5twgLvpYYb4vbw== + dependencies: + flatted "^3.2.9" + keyv "^4.5.3" + rimraf "^3.0.2" + +flat@^5.0.2: + version "5.0.2" + resolved "https://registry.yarnpkg.com/flat/-/flat-5.0.2.tgz#8ca6fe332069ffa9d324c327198c598259ceb241" + integrity sha512-b6suED+5/3rTpUBdG1gupIl8MPFCAMA0QXwmljLhvCUKcUvdE4gWky9zpuGCcXHOsz4J9wPGNWq6OKpmIzz3hQ== + +flatted@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138" + integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA== + +flatted@^3.2.7, flatted@^3.2.9: + version "3.3.1" + resolved "https://registry.yarnpkg.com/flatted/-/flatted-3.3.1.tgz#21db470729a6734d4997002f439cb308987f567a" + integrity sha512-X8cqMLLie7KsNUDSdzeN8FYK9rEt4Dt67OsG/DNGnYTSDBG4uFAJFBnUeiV+zCVAvwFy56IjM9sH51jVaEhNxw== + +follow-redirects@^1.0.0, follow-redirects@^1.15.6: + version "1.15.6" + resolved "https://registry.yarnpkg.com/follow-redirects/-/follow-redirects-1.15.6.tgz#7f815c0cda4249c74ff09e95ef97c23b5fd0399b" + integrity sha512-wWN62YITEaOpSK584EZXJafH1AGpO8RVgElfkuXbTOrPX4fIfOyEpW/CsiNd8JdYrAoOvafRTOEnvsO++qCqFA== + +for-each@^0.3.3: + version "0.3.3" + resolved "https://registry.yarnpkg.com/for-each/-/for-each-0.3.3.tgz#69b447e88a0a5d32c3e7084f3f1710034b21376e" + integrity sha512-jqYfLp7mo9vIyQf8ykW2v7A+2N4QjeCeI5+Dz9XraiO1ign81wjiH7Fb9vSOWvQfNtmSa4H2RoQTrrXivdUZmw== + dependencies: + is-callable "^1.1.3" + +for-in@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/for-in/-/for-in-1.0.2.tgz#81068d295a8142ec0ac726c6e2200c30fb6d5e80" + integrity sha512-7EwmXrOjyL+ChxMhmG5lnW9MPt1aIeZEwKhQzoBUdTV0N3zuwWDZYVJatDvZ2OyzPUvdIAZDsCetk3coyMfcnQ== + +foreground-child@^3.1.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/foreground-child/-/foreground-child-3.2.1.tgz#767004ccf3a5b30df39bed90718bab43fe0a59f7" + integrity sha512-PXUUyLqrR2XCWICfv6ukppP96sdFwWbNEnfEMt7jNsISjMsvaLNinAHNDYyvkyU+SZG2BTSbT5NjG+vZslfGTA== + dependencies: + cross-spawn "^7.0.0" + signal-exit "^4.0.1" + +forever-agent@~0.6.1: + version "0.6.1" + resolved "https://registry.yarnpkg.com/forever-agent/-/forever-agent-0.6.1.tgz#fbc71f0c41adeb37f96c577ad1ed42d8fdacca91" + integrity sha512-j0KLYPhm6zeac4lz3oJ3o65qvgQCcPubiyotZrXqEaG4hNagNYO8qdlUrX5vwqv9ohqeT/Z3j6+yW067yWWdUw== + +form-data@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-4.0.0.tgz#93919daeaf361ee529584b9b31664dc12c9fa452" + integrity sha512-ETEklSGi5t0QMZuiXoA/Q6vcnxcLQP5vdugSpuAyi6SVGi2clPPp+xgEhuMaHC+zGgn31Kd235W35f7Hykkaww== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.8" + mime-types "^2.1.12" + +form-data@~2.3.2: + version "2.3.3" + resolved "https://registry.yarnpkg.com/form-data/-/form-data-2.3.3.tgz#dcce52c05f644f298c6a7ab936bd724ceffbf3a6" + integrity sha512-1lLKB2Mu3aGP1Q/2eCOx0fNbRMe7XdwktwOruhfqqd0rIJWwN4Dh+E3hrPSlDCXnSR7UtZ1N38rVXm+6+MEhJQ== + dependencies: + asynckit "^0.4.0" + combined-stream "^1.0.6" + mime-types "^2.1.12" + +formdata-polyfill@^4.0.10: + version "4.0.10" + resolved "https://registry.yarnpkg.com/formdata-polyfill/-/formdata-polyfill-4.0.10.tgz#24807c31c9d402e002ab3d8c720144ceb8848423" + integrity sha512-buewHzMvYL29jdeQTVILecSaZKnt/RJWjoZCF5OW60Z67/GmSLBkOFM7qh1PI3zFNtJbaZL5eQu1vLfazOwj4g== + dependencies: + fetch-blob "^3.1.2" + +forwarded@0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/forwarded/-/forwarded-0.2.0.tgz#2269936428aad4c15c7ebe9779a84bf0b2a81811" + integrity sha512-buRG0fpBtRHSTCOASe6hD258tEubFoRLb4ZNA6NxMVHNw2gOcwHo9wyablzMzOA5z9xA9L1KNjk/Nt6MT9aYow== + +frac@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/frac/-/frac-1.1.2.tgz#3d74f7f6478c88a1b5020306d747dc6313c74d0b" + integrity sha512-w/XBfkibaTl3YDqASwfDUqkna4Z2p9cFSr1aHDt0WoMTECnRfBOv2WArlZILlqgWlmdIlALXGpM2AOhEk5W3IA== + +fraction.js@^4.3.7: + version "4.3.7" + resolved "https://registry.yarnpkg.com/fraction.js/-/fraction.js-4.3.7.tgz#06ca0085157e42fda7f9e726e79fefc4068840f7" + integrity sha512-ZsDfxO51wGAXREY55a7la9LScWpwv9RxIrYABrlvOFBlH/ShPnrtsXeuUIfXKKOVicNxQ+o8JTbJvjS4M89yew== + +fragment-cache@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/fragment-cache/-/fragment-cache-0.2.1.tgz#4290fad27f13e89be7f33799c6bc5a0abfff0d19" + integrity sha512-GMBAbW9antB8iZRHLoGw0b3HANt57diZYFO/HL1JGIC1MjKrdmhxvrJbupnVvpys0zsz7yBApXdQyfepKly2kA== + dependencies: + map-cache "^0.2.2" + +fresh@0.5.2: + version "0.5.2" + resolved "https://registry.yarnpkg.com/fresh/-/fresh-0.5.2.tgz#3d8cadd90d976569fa835ab1f8e4b23a105605a7" + integrity sha512-zJ2mQYM18rEFOudeV4GShTGIQ7RbzA7ozbU9I/XBpm7kqgMywgmylMwXHxZJmkVoYkna9d2pVXVXPdYTP9ej8Q== + +front-matter@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/front-matter/-/front-matter-4.0.2.tgz#b14e54dc745cfd7293484f3210d15ea4edd7f4d5" + integrity sha512-I8ZuJ/qG92NWX8i5x1Y8qyj3vizhXS31OxjKDu3LKP+7/qBgfIKValiZIEwoVoJKUHlhWtYrktkxV1XsX+pPlg== + dependencies: + js-yaml "^3.13.1" + +fs-constants@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs-constants/-/fs-constants-1.0.0.tgz#6be0de9be998ce16af8afc24497b9ee9b7ccd9ad" + integrity sha512-y6OAwoSIf7FyjMIv94u+b5rdheZEjzR63GTyZJm5qh4Bi+2YgwLCcI/fPFZkL5PSixOt6ZNKm+w+Hfp/Bciwow== + +fs-extra@^11.1.0: + version "11.2.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-11.2.0.tgz#e70e17dfad64232287d01929399e0ea7c86b0e5b" + integrity sha512-PmDi3uwK5nFuXh7XDTlVnS17xJS7vW36is2+w3xcv8SVxiB4NyATf4ctkVY5bkSjX0Y4nbvZCq1/EjtEyr9ktw== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^6.0.1" + universalify "^2.0.0" + +fs-extra@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/fs-extra/-/fs-extra-8.1.0.tgz#49d43c45a88cd9677668cb7be1b46efdb8d2e1c0" + integrity sha512-yhlQgA6mnOJUKOsRUFsgJdQCvkKhcz8tlZG5HBQfReYZy46OwLcY+Zia0mtdHsOo9y/hP+CxMN0TU9QxoOtG4g== + dependencies: + graceful-fs "^4.2.0" + jsonfile "^4.0.0" + universalify "^0.1.0" + +fs-minipass@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-2.1.0.tgz#7f5036fdbf12c63c169190cbe4199c852271f9fb" + integrity sha512-V/JgOLFCS+R6Vcq0slCuaeWEdNC3ouDlJMNIsacH2VtALiu9mV4LPrHc5cDl8k5aw6J8jwgWWpiTo5RYhmIzvg== + dependencies: + minipass "^3.0.0" + +fs-minipass@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/fs-minipass/-/fs-minipass-3.0.3.tgz#79a85981c4dc120065e96f62086bf6f9dc26cc54" + integrity sha512-XUBA9XClHbnJWSfBzjkm6RvPsyg3sryZt06BEQoXcF7EK/xpGaQYJgQKDJSUH5SGZ76Y7pFx1QBnXz09rU5Fbw== + dependencies: + minipass "^7.0.3" + +fs-monkey@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/fs-monkey/-/fs-monkey-1.0.6.tgz#8ead082953e88d992cf3ff844faa907b26756da2" + integrity sha512-b1FMfwetIKymC0eioW7mTywihSQE4oLzQn1dB6rZB5fx/3NpNEdAWeCSMB+60/AeT0TCXsxzAlcYVEFCTAksWg== + +fs.realpath@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/fs.realpath/-/fs.realpath-1.0.0.tgz#1504ad2523158caa40db4a2787cb01411994ea4f" + integrity sha512-OO0pH2lK6a0hZnAdau5ItzHPI6pUlvI7jMVnxUQRtw4owF2wk8lOSabtGDCTP4Ggrg2MbGnWO9X8K1t4+fGMDw== + +fsevents@~2.3.2, fsevents@~2.3.3: + version "2.3.3" + resolved "https://registry.yarnpkg.com/fsevents/-/fsevents-2.3.3.tgz#cac6407785d03675a2a5e1a5305c697b347d90d6" + integrity sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw== + +function-bind@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/function-bind/-/function-bind-1.1.2.tgz#2c02d864d97f3ea6c8830c464cbd11ab6eab7a1c" + integrity sha512-7XHNxH7qX9xG5mIwxkhumTox/MIRNcOgDrxWsMt2pAr23WHp6MrRlN7FBSFpCpr+oVO0F744iUgR82nJMfG2SA== + +function.prototype.name@^1.1.6: + version "1.1.6" + resolved "https://registry.yarnpkg.com/function.prototype.name/-/function.prototype.name-1.1.6.tgz#cdf315b7d90ee77a4c6ee216c3c3362da07533fd" + integrity sha512-Z5kx79swU5P27WEayXM1tBi5Ze/lbIyiNgU3qyXUOf9b2rgXYyF9Dy9Cx+IQv/Lc8WCG6L82zwUPpSS9hGehIg== + dependencies: + call-bind "^1.0.2" + define-properties "^1.2.0" + es-abstract "^1.22.1" + functions-have-names "^1.2.3" + +functions-have-names@^1.2.3: + version "1.2.3" + resolved "https://registry.yarnpkg.com/functions-have-names/-/functions-have-names-1.2.3.tgz#0404fe4ee2ba2f607f0e0ec3c80bae994133b834" + integrity sha512-xckBUXyTIqT97tq2x2AMb+g163b5JFysYk0x4qxNFwbfQkmNZoiRHb6sPzI9/QV33WeuvVYBUIiD4NzNIyqaRQ== + +gensync@^1.0.0-beta.2: + version "1.0.0-beta.2" + resolved "https://registry.yarnpkg.com/gensync/-/gensync-1.0.0-beta.2.tgz#32a6ee76c3d7f52d46b2b1ae5d93fea8580a25e0" + integrity sha512-3hN7NaskYvMDLQY55gnW3NQ+mesEAepTqlg+VEbj7zzqEMBVNhzcGYYeqFo/TlYz6eQiFcp1HcsCZO+nGgS8zg== + +get-caller-file@^2.0.1, get-caller-file@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/get-caller-file/-/get-caller-file-2.0.5.tgz#4f94412a82db32f36e3b0b9741f8a97feb031f7e" + integrity sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg== + +get-intrinsic@^1.1.3, get-intrinsic@^1.2.1, get-intrinsic@^1.2.3, get-intrinsic@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/get-intrinsic/-/get-intrinsic-1.2.4.tgz#e385f5a4b5227d449c3eabbad05494ef0abbeadd" + integrity sha512-5uYhsJH8VJBTv7oslg4BznJYhDoRI6waYCxMmCdnTrcCrHA/fCFKoTFz2JKKE0HdDFUF7/oQuhzumXJK7paBRQ== + dependencies: + es-errors "^1.3.0" + function-bind "^1.1.2" + has-proto "^1.0.1" + has-symbols "^1.0.3" + hasown "^2.0.0" + +get-package-type@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/get-package-type/-/get-package-type-0.1.0.tgz#8de2d803cff44df3bc6c456e6668b36c3926e11a" + integrity sha512-pjzuKtY64GYfWizNAJ0fr9VqttZkNiK2iS430LtIHzjBEr6bX8Am2zm4sW4Ro5wjWW5cAlRL1qAMTcXbjNAO2Q== + +get-stdin@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/get-stdin/-/get-stdin-6.0.0.tgz#9e09bf712b360ab9225e812048f71fde9c89657b" + integrity sha512-jp4tHawyV7+fkkSKyvjuLZswblUtz+SQKzSWnBbii16BuZksJlU1wuBYXY75r+duh/llF1ur6oNwi+2ZzjKZ7g== + +get-stream@^6.0.0, get-stream@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/get-stream/-/get-stream-6.0.1.tgz#a262d8eef67aced57c2852ad6167526a43cbf7b7" + integrity sha512-ts6Wi+2j3jQjqi70w5AlN8DFnkSwC+MqmxEzdEALB2qXZYV3X/b1CTfgPLGJNMeAWxdPfU8FO1ms3NUfaHCPYg== + +get-symbol-description@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/get-symbol-description/-/get-symbol-description-1.0.2.tgz#533744d5aa20aca4e079c8e5daf7fd44202821f5" + integrity sha512-g0QYk1dZBxGwk+Ngc+ltRH2IBp2f7zBkBMBJZCDerh6EhlhSR6+9irMCuT/09zD6qkarHUSn529sK/yL4S27mg== + dependencies: + call-bind "^1.0.5" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + +get-value@^2.0.3, get-value@^2.0.6: + version "2.0.6" + resolved "https://registry.yarnpkg.com/get-value/-/get-value-2.0.6.tgz#dc15ca1c672387ca76bd37ac0a395ba2042a2c28" + integrity sha512-Ln0UQDlxH1BapMu3GPtf7CuYNwRZf2gwCuPqbyG6pB8WfmFpzqcy4xtAaAMUhnNqjMKTiCPZG2oMT3YSx8U2NA== + +getpass@^0.1.1: + version "0.1.7" + resolved "https://registry.yarnpkg.com/getpass/-/getpass-0.1.7.tgz#5eff8e3e684d569ae4cb2b1282604e8ba62149fa" + integrity sha512-0fzj9JxOLfJ+XGLhR8ze3unN0KZCgZwiSSDz168VERjK8Wl8kVSdcu2kspd4s4wtAa1y/qrVRiAA0WclVsu0ng== + dependencies: + assert-plus "^1.0.0" + +glob-parent@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-3.1.0.tgz#9e6af6299d8d3bd2bd40430832bd113df906c5ae" + integrity sha512-E8Ak/2+dZY6fnzlR7+ueWvhsH1SjHr4jjss4YS/h4py44jY9MhK/VFdaZJAWDz6BbL21KeteKxFSFpq8OS5gVA== + dependencies: + is-glob "^3.1.0" + path-dirname "^1.0.0" + +glob-parent@^5.1.2, glob-parent@~5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-5.1.2.tgz#869832c58034fe68a4093c17dc15e8340d8401c4" + integrity sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow== + dependencies: + is-glob "^4.0.1" + +glob-parent@^6.0.1, glob-parent@^6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/glob-parent/-/glob-parent-6.0.2.tgz#6d237d99083950c79290f24c7642a3de9a28f9e3" + integrity sha512-XxwI8EOhVQgWp6iDL+3b0r86f4d6AX6zSU55HfB4ydCEuXLXc5FcYeOu+nnGftS4TEju/11rt4KJPTMgbfmv4A== + dependencies: + is-glob "^4.0.3" + +glob-to-regexp@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.3.0.tgz#8c5a1494d2066c570cc3bfe4496175acc4d502ab" + integrity sha512-Iozmtbqv0noj0uDDqoL0zNq0VBEfK2YFoMAZoxJe4cwphvLR+JskfF30QhXHOR4m3KrE6NLRYw+U9MRXvifyig== + +glob-to-regexp@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/glob-to-regexp/-/glob-to-regexp-0.4.1.tgz#c75297087c851b9a578bd217dd59a92f59fe546e" + integrity sha512-lkX1HJXwyMcprw/5YUZc2s7DrpAiHB21/V+E1rHUrVNokkvB6bqMzT0VfV6/86ZNabt1k14YOIaT7nDvOX3Iiw== + +glob@^10.2.2, glob@^10.3.10: + version "10.4.5" + resolved "https://registry.yarnpkg.com/glob/-/glob-10.4.5.tgz#f4d9f0b90ffdbab09c9d77f5f29b4262517b0956" + integrity sha512-7Bv8RF0k6xjo7d4A/PxYLbUCfb6c+Vpd2/mB2yRDlew7Jb5hEXiCD9ibfO7wpk8i4sevK6DFny9h7EYbM3/sHg== + dependencies: + foreground-child "^3.1.0" + jackspeak "^3.1.2" + minimatch "^9.0.4" + minipass "^7.1.2" + package-json-from-dist "^1.0.0" + path-scurry "^1.11.1" + +glob@^7.0.3, glob@^7.0.6, glob@^7.1.3, glob@^7.1.4, glob@^7.1.6, glob@^7.1.7: + version "7.2.3" + resolved "https://registry.yarnpkg.com/glob/-/glob-7.2.3.tgz#b8df0fb802bbfa8e89bd1d938b4e16578ed44f2b" + integrity sha512-nFR0zLpU2YCaRxwoCJvL6UvCH2JFyFVIvwTLsIf21AuHlMskA1hhTdk+LlYJtOlYt9v6dvszD2BGRqBL+iQK9Q== + dependencies: + fs.realpath "^1.0.0" + inflight "^1.0.4" + inherits "2" + minimatch "^3.1.1" + once "^1.3.0" + path-is-absolute "^1.0.0" + +global-modules@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/global-modules/-/global-modules-2.0.0.tgz#997605ad2345f27f51539bea26574421215c7780" + integrity sha512-NGbfmJBp9x8IxyJSd1P+otYK8vonoJactOogrVfFRIAEY1ukil8RSKDz2Yo7wh1oihl51l/r6W4epkeKJHqL8A== + dependencies: + global-prefix "^3.0.0" + +global-prefix@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/global-prefix/-/global-prefix-3.0.0.tgz#fc85f73064df69f50421f47f883fe5b913ba9b97" + integrity sha512-awConJSVCHVGND6x3tmMaKcQvwXLhjdkmomy2W+Goaui8YPgYgXJZewhg3fWC+DlfqqQuWg8AwqjGTD2nAPVWg== + dependencies: + ini "^1.3.5" + kind-of "^6.0.2" + which "^1.3.1" + +globals@^11.1.0: + version "11.12.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-11.12.0.tgz#ab8795338868a0babd8525758018c2a7eb95c42e" + integrity sha512-WOBp/EEGUiIsJSp7wcv/y6MO+lV9UoncWqxuFfm8eBwzWNgyfBd6Gz+IeKQ9jCmyhoH99g15M3T+QaVHFjizVA== + +globals@^13.19.0: + version "13.24.0" + resolved "https://registry.yarnpkg.com/globals/-/globals-13.24.0.tgz#8432a19d78ce0c1e833949c36adb345400bb1171" + integrity sha512-AhO5QUcj8llrbG09iWhPU2B204J1xnPeL8kQmVorSsy+Sjj1sk8gIyh6cUocGmH4L0UuhAJy+hJMRA4mgA4mFQ== + dependencies: + type-fest "^0.20.2" + +globalthis@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/globalthis/-/globalthis-1.0.4.tgz#7430ed3a975d97bfb59bcce41f5cabbafa651236" + integrity sha512-DpLKbNU4WylpxJykQujfCcwYWiV/Jhm50Goo0wrVILAv5jOr9d+H+UR3PhSCD2rCCEIg0uc+G+muBTwD54JhDQ== + dependencies: + define-properties "^1.2.1" + gopd "^1.0.1" + +globby@^11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-11.1.0.tgz#bd4be98bb042f83d796f7e3811991fbe82a0d34b" + integrity sha512-jhIXaOzy1sb8IyocaruWSn1TjmnBVs8Ayhcy83rmxNJ8q2uWKCAj3CnJY+KpGSXCueAPc0i05kVvVKtP1t9S3g== + dependencies: + array-union "^2.1.0" + dir-glob "^3.0.1" + fast-glob "^3.2.9" + ignore "^5.2.0" + merge2 "^1.4.1" + slash "^3.0.0" + +globby@^13.1.1: + version "13.2.2" + resolved "https://registry.yarnpkg.com/globby/-/globby-13.2.2.tgz#63b90b1bf68619c2135475cbd4e71e66aa090592" + integrity sha512-Y1zNGV+pzQdh7H39l9zgB4PJqjRNqydvdYCDG4HFXM4XuvSaQQlEc91IU1yALL8gUTDomgBAfz3XJdmUS+oo0w== + dependencies: + dir-glob "^3.0.1" + fast-glob "^3.3.0" + ignore "^5.2.4" + merge2 "^1.4.1" + slash "^4.0.0" + +globby@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-5.0.0.tgz#ebd84667ca0dbb330b99bcfc68eac2bc54370e0d" + integrity sha512-HJRTIH2EeH44ka+LWig+EqT2ONSYpVlNfx6pyd592/VF1TbfljJ7elwie7oSwcViLGqOdWocSdu2txwBF9bjmQ== + dependencies: + array-union "^1.0.1" + arrify "^1.0.0" + glob "^7.0.3" + object-assign "^4.0.1" + pify "^2.0.0" + pinkie-promise "^2.0.0" + +globby@^9.0.0: + version "9.2.0" + resolved "https://registry.yarnpkg.com/globby/-/globby-9.2.0.tgz#fd029a706c703d29bdd170f4b6db3a3f7a7cb63d" + integrity sha512-ollPHROa5mcxDEkwg6bPt3QbEf4pDQSNtd6JPL1YvOvAo/7/0VAm9TccUeoTmarjPw4pfUthSCqcyfNB1I3ZSg== + dependencies: + "@types/glob" "^7.1.1" + array-union "^1.0.2" + dir-glob "^2.2.2" + fast-glob "^2.2.6" + glob "^7.1.3" + ignore "^4.0.3" + pify "^4.0.1" + slash "^2.0.0" + +globjoin@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/globjoin/-/globjoin-0.1.4.tgz#2f4494ac8919e3767c5cbb691e9f463324285d43" + integrity sha512-xYfnw62CKG8nLkZBfWbhWwDw02CHty86jfPcc2cr3ZfeuK9ysoVPPEUxf21bAD/rWAgk52SuBrLJlefNy8mvFg== + +gonzales-pe@^4.2.3: + version "4.3.0" + resolved "https://registry.yarnpkg.com/gonzales-pe/-/gonzales-pe-4.3.0.tgz#fe9dec5f3c557eead09ff868c65826be54d067b3" + integrity sha512-otgSPpUmdWJ43VXyiNgEYE4luzHCL2pz4wQ0OnDluC6Eg4Ko3Vexy/SrSynglw/eR+OhkzmqFCZa/OFa/RgAOQ== + dependencies: + minimist "^1.2.5" + +gopd@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/gopd/-/gopd-1.0.1.tgz#29ff76de69dac7489b7c0918a5788e56477c332c" + integrity sha512-d65bNlIadxvpb/A2abVdlqKqV563juRnZ1Wtk6s1sIR8uNsXR70xqIzVqxVf1eTqDunwT2MkczEeaezCKTZhwA== + dependencies: + get-intrinsic "^1.1.3" + +graceful-fs@^4.1.2, graceful-fs@^4.1.6, graceful-fs@^4.2.0, graceful-fs@^4.2.4, graceful-fs@^4.2.6, graceful-fs@^4.2.9: + version "4.2.11" + resolved "https://registry.yarnpkg.com/graceful-fs/-/graceful-fs-4.2.11.tgz#4183e4e8bf08bb6e05bbb2f7d2e0c8f712ca40e3" + integrity sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ== + +graphemer@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/graphemer/-/graphemer-1.4.0.tgz#fb2f1d55e0e3a1849aeffc90c4fa0dd53a0e66c6" + integrity sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag== + +gzip-size@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/gzip-size/-/gzip-size-6.0.0.tgz#065367fd50c239c0671cbcbad5be3e2eeb10e462" + integrity sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q== + dependencies: + duplexer "^0.1.2" + +handle-thing@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/handle-thing/-/handle-thing-2.0.1.tgz#857f79ce359580c340d43081cc648970d0bb234e" + integrity sha512-9Qn4yBxelxoh2Ow62nP+Ka/kMnOXRi8BXnRaUwezLNhqelnN49xKz4F/dPP8OYLxLxq6JDtZb2i9XznUQbNPTg== + +har-schema@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/har-schema/-/har-schema-2.0.0.tgz#a94c2224ebcac04782a0d9035521f24735b7ec92" + integrity sha512-Oqluz6zhGX8cyRaTQlFMPw80bSJVG2x/cFb8ZPhUILGgHka9SsokCCOQgpveePerqidZOrT14ipqfJb7ILcW5Q== + +har-validator@~5.1.3: + version "5.1.5" + resolved "https://registry.yarnpkg.com/har-validator/-/har-validator-5.1.5.tgz#1f0803b9f8cb20c0fa13822df1ecddb36bde1efd" + integrity sha512-nmT2T0lljbxdQZfspsno9hgrG3Uir6Ks5afism62poxqBM6sDnMEuPmzTq8XN0OEwqKLLdh1jQI3qyE66Nzb3w== + dependencies: + ajv "^6.12.3" + har-schema "^2.0.0" + +hard-rejection@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/hard-rejection/-/hard-rejection-2.1.0.tgz#1c6eda5c1685c63942766d79bb40ae773cecd883" + integrity sha512-VIZB+ibDhx7ObhAe7OVtoEbuP4h/MuOTHJ+J8h/eBXotJYl0fBgR72xDFCKgIh22OJZIOVNxBMWuhAr10r8HdA== + +has-ansi@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/has-ansi/-/has-ansi-2.0.0.tgz#34f5049ce1ecdf2b0649af3ef24e45ed35416d91" + integrity sha512-C8vBJ8DwUCx19vhm7urhTuUsr4/IyP6l4VzNQDv+ryHQObW3TTTp9yB68WpYgRe2bbaGuZ/se74IqFeVnMnLZg== + dependencies: + ansi-regex "^2.0.0" + +has-bigints@^1.0.1, has-bigints@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-bigints/-/has-bigints-1.0.2.tgz#0871bd3e3d51626f6ca0966668ba35d5602d6eaa" + integrity sha512-tSvCKtBr9lkF0Ex0aQiP9N+OpV4zi2r/Nee5VkRDbaqv35RLYMzbwQfFSZZH0kR+Rd6302UJZ2p/bJCEoR3VoQ== + +has-flag@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-3.0.0.tgz#b5d454dc2199ae225699f3467e5a07f3b955bafd" + integrity sha512-sKJf1+ceQBr4SMkvQnBDNDtf4TXpVhVGateu0t918bl30FnbE2m4vNLX+VWe/dpjlb+HugGYzW7uQXH98HPEYw== + +has-flag@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/has-flag/-/has-flag-4.0.0.tgz#944771fd9c81c81265c4d6941860da06bb59479b" + integrity sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ== + +has-property-descriptors@^1.0.0, has-property-descriptors@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-property-descriptors/-/has-property-descriptors-1.0.2.tgz#963ed7d071dc7bf5f084c5bfbe0d1b6222586854" + integrity sha512-55JNKuIW+vq4Ke1BjOTjM2YctQIvCT7GFzHwmfZPGo5wnrgkid0YQtnAleFSqumZm4az3n2BS+erby5ipJdgrg== + dependencies: + es-define-property "^1.0.0" + +has-proto@^1.0.1, has-proto@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-proto/-/has-proto-1.0.3.tgz#b31ddfe9b0e6e9914536a6ab286426d0214f77fd" + integrity sha512-SJ1amZAJUiZS+PhsVLf5tGydlaVB8EdFpaSO4gmiUKUOxk8qzn5AIy4ZeJUmh22znIdk/uMAUT2pl3FxzVUH+Q== + +has-symbols@^1.0.2, has-symbols@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/has-symbols/-/has-symbols-1.0.3.tgz#bb7b2c4349251dce87b125f7bdf874aa7c8b39f8" + integrity sha512-l3LCuF6MgDNwTDKkdYGEihYjt5pRPbEg46rtlmnSPlUbgmB8LOIrKJbYYFBSbnPaJexMKtiPO8hmeRjRz2Td+A== + +has-tostringtag@^1.0.0, has-tostringtag@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/has-tostringtag/-/has-tostringtag-1.0.2.tgz#2cdc42d40bef2e5b4eeab7c01a73c54ce7ab5abc" + integrity sha512-NqADB8VjPFLM2V0VvHUewwwsw0ZWBaIdgo+ieHtK3hasLz4qeCRjYcqfB6AQrBggRKppKF8L52/VqdVsO47Dlw== + dependencies: + has-symbols "^1.0.3" + +has-value@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-0.3.1.tgz#7b1f58bada62ca827ec0a2078025654845995e1f" + integrity sha512-gpG936j8/MzaeID5Yif+577c17TxaDmhuyVgSwtnL/q8UUTySg8Mecb+8Cf1otgLoD7DDH75axp86ER7LFsf3Q== + dependencies: + get-value "^2.0.3" + has-values "^0.1.4" + isobject "^2.0.0" + +has-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-value/-/has-value-1.0.0.tgz#18b281da585b1c5c51def24c930ed29a0be6b177" + integrity sha512-IBXk4GTsLYdQ7Rvt+GRBrFSVEkmuOUy4re0Xjd9kJSUQpnTrWR4/y9RpfexN9vkAPMFuQoeWKwqzPozRTlasGw== + dependencies: + get-value "^2.0.6" + has-values "^1.0.0" + isobject "^3.0.0" + +has-values@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-0.1.4.tgz#6d61de95d91dfca9b9a02089ad384bff8f62b771" + integrity sha512-J8S0cEdWuQbqD9//tlZxiMuMNmxB8PlEwvYwuxsTmR1G5RXUePEX/SJn7aD0GMLieuZYSwNH0cQuJGwnYunXRQ== + +has-values@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/has-values/-/has-values-1.0.0.tgz#95b0b63fec2146619a6fe57fe75628d5a39efe4f" + integrity sha512-ODYZC64uqzmtfGMEAX/FvZiRyWLpAC3vYnNunURUnkGVTS+mI0smVsWaPydRBsE3g+ok7h960jChO8mFcWlHaQ== + dependencies: + is-number "^3.0.0" + kind-of "^4.0.0" + +has@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/has/-/has-1.0.4.tgz#2eb2860e000011dae4f1406a86fe80e530fb2ec6" + integrity sha512-qdSAmqLF6209RFj4VVItywPMbm3vWylknmB3nvNiUIs72xAimcM8nVYxYr7ncvZq5qzk9MKIZR8ijqD/1QuYjQ== + +hasown@^2.0.0, hasown@^2.0.1, hasown@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/hasown/-/hasown-2.0.2.tgz#003eaf91be7adc372e84ec59dc37252cedb80003" + integrity sha512-0hJU9SCPvmMzIBdZFqNPXWa6dqh7WdH0cII9y+CyS8rG3nL48Bclra9HmKhVVUHyPWNH5Y7xDwAB7bfgSjkUMQ== + dependencies: + function-bind "^1.1.2" + +hosted-git-info@^2.1.4: + version "2.8.9" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-2.8.9.tgz#dffc0bf9a21c02209090f2aa69429e1414daf3f9" + integrity sha512-mxIDAb9Lsm6DoOJ7xH+5+X4y1LU/4Hi50L9C5sIswK3JzULS4bwk1FvjdBgvYR4bzT4tuUQiC15FE2f5HbLvYw== + +hosted-git-info@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-4.1.0.tgz#827b82867e9ff1c8d0c4d9d53880397d2c86d224" + integrity sha512-kyCuEOWjJqZuDbRHzL8V93NzQhwIB71oFWSyzVo+KPZI+pnQPPxucdkrOZvkLRnrf5URsQM+IJ09Dw29cRALIA== + dependencies: + lru-cache "^6.0.0" + +hosted-git-info@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/hosted-git-info/-/hosted-git-info-7.0.2.tgz#9b751acac097757667f30114607ef7b661ff4f17" + integrity sha512-puUZAUKT5m8Zzvs72XWy3HtvVbTWljRE66cP60bxJzAqf2DgICo7lYTY2IHUmLnNpjYvw5bvmoHvPc0QO2a62w== + dependencies: + lru-cache "^10.0.1" + +hpack.js@^2.1.6: + version "2.1.6" + resolved "https://registry.yarnpkg.com/hpack.js/-/hpack.js-2.1.6.tgz#87774c0949e513f42e84575b3c45681fade2a0b2" + integrity sha512-zJxVehUdMGIKsRaNt7apO2Gqp0BdqW5yaiGHXXmbpvxgBYVZnAql+BJb4RO5ad2MgpbZKn5G6nMnegrH1FcNYQ== + dependencies: + inherits "^2.0.1" + obuf "^1.0.0" + readable-stream "^2.0.1" + wbuf "^1.1.0" + +html-entities@^2.3.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/html-entities/-/html-entities-2.5.2.tgz#201a3cf95d3a15be7099521620d19dfb4f65359f" + integrity sha512-K//PSRMQk4FZ78Kyau+mZurHn3FH0Vwr+H36eE0rPbeYkRRi9YxceYPhuN60UwWorxyKHhqoAJl2OFKa4BVtaA== + +html-escaper@^2.0.0: + version "2.0.2" + resolved "https://registry.yarnpkg.com/html-escaper/-/html-escaper-2.0.2.tgz#dfd60027da36a36dfcbe236262c00a5822681453" + integrity sha512-H2iMtd0I4Mt5eYiapRdIDjp+XzelXQ0tFE4JS7YFwFevXXMmOp9myNrUvCg0D6ws8iqkRPBfKHgbwig1SmlLfg== + +html-tags@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-2.0.0.tgz#10b30a386085f43cede353cc8fa7cb0deeea668b" + integrity sha512-+Il6N8cCo2wB/Vd3gqy/8TZhTD3QvcVeQLCnZiGkGCH3JP28IgGAY41giccp2W4R3jfyJPAP318FQTa1yU7K7g== + +html-tags@^3.2.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/html-tags/-/html-tags-3.3.1.tgz#a04026a18c882e4bba8a01a3d39cfe465d40b5ce" + integrity sha512-ztqyC3kLto0e9WbNp0aeP+M3kTt+nbaIveGmUxAtZa+8iFgKLUOD4YKM5j+f3QD89bra7UeumolZHKuOXnTmeQ== + +htmlparser2@^3.10.0: + version "3.10.1" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-3.10.1.tgz#bd679dc3f59897b6a34bb10749c855bb53a9392f" + integrity sha512-IgieNijUMbkDovyoKObU1DUhm1iwNYE/fuifEoEHfd1oZKZDaONBSkal7Y01shxsM49R4XaMdGez3WnF9UfiCQ== + dependencies: + domelementtype "^1.3.1" + domhandler "^2.3.0" + domutils "^1.5.1" + entities "^1.1.1" + inherits "^2.0.1" + readable-stream "^3.1.1" + +htmlparser2@^8.0.2: + version "8.0.2" + resolved "https://registry.yarnpkg.com/htmlparser2/-/htmlparser2-8.0.2.tgz#f002151705b383e62433b5cf466f5b716edaec21" + integrity sha512-GYdjWKDkbRLkZ5geuHs5NY1puJ+PXwP7+fHPRz06Eirsb9ugf6d8kkXav6ADhcODhFFPMIXyxkxSuMf3D6NCFA== + dependencies: + domelementtype "^2.3.0" + domhandler "^5.0.3" + domutils "^3.0.1" + entities "^4.4.0" + +http-cache-semantics@^4.1.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/http-cache-semantics/-/http-cache-semantics-4.1.1.tgz#abe02fcb2985460bf0323be664436ec3476a6d5a" + integrity sha512-er295DKPVsV82j5kw1Gjt+ADA/XYHsajl82cGNQG2eyoPkvgUhX+nDIyelzhIWbbsXP39EHcI6l5tYs2FYqYXQ== + +http-deceiver@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/http-deceiver/-/http-deceiver-1.2.7.tgz#fa7168944ab9a519d337cb0bec7284dc3e723d87" + integrity sha512-LmpOGxTfbpgtGVxJrj5k7asXHCgNZp5nLfp+hWc8QQRqtb7fUy6kRY3BO1h9ddF6yIPYUARgxGOwB42DnxIaNw== + +http-errors@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-2.0.0.tgz#b7774a1486ef73cf7667ac9ae0858c012c57b9d3" + integrity sha512-FtwrG/euBzaEjYeRqOgly7G0qviiXoJWnvEH2Z1plBdXgbyjv34pHTSb9zoeHMyDy33+DWy5Wt9Wo+TURtOYSQ== + dependencies: + depd "2.0.0" + inherits "2.0.4" + setprototypeof "1.2.0" + statuses "2.0.1" + toidentifier "1.0.1" + +http-errors@~1.6.2: + version "1.6.3" + resolved "https://registry.yarnpkg.com/http-errors/-/http-errors-1.6.3.tgz#8b55680bb4be283a0b5bf4ea2e38580be1d9320d" + integrity sha512-lks+lVC8dgGyh97jxvxeYTWQFvh4uw4yC12gVl63Cg30sjPX4wuGcdkICVXDAESr6OJGjqGA8Iz5mkeN6zlD7A== + dependencies: + depd "~1.1.2" + inherits "2.0.3" + setprototypeof "1.1.0" + statuses ">= 1.4.0 < 2" + +http-parser-js@>=0.5.1: + version "0.5.8" + resolved "https://registry.yarnpkg.com/http-parser-js/-/http-parser-js-0.5.8.tgz#af23090d9ac4e24573de6f6aecc9d84a48bf20e3" + integrity sha512-SGeBX54F94Wgu5RH3X5jsDtf4eHyRogWX1XGT3b4HuW3tQPM4AaBzoUji/4AAJNXCEOWZ5O0DgZmJw1947gD5Q== + +http-proxy-agent@^7.0.0: + version "7.0.2" + resolved "https://registry.yarnpkg.com/http-proxy-agent/-/http-proxy-agent-7.0.2.tgz#9a8b1f246866c028509486585f62b8f2c18c270e" + integrity sha512-T1gkAiYYDWYx3V5Bmyu7HcfcvL7mUrTWiM6yOfa3PIphViJ/gFPbvidQ+veqSOHci/PxBcDabeUNCzpOODJZig== + dependencies: + agent-base "^7.1.0" + debug "^4.3.4" + +http-proxy-middleware@2.0.6, http-proxy-middleware@^2.0.3: + version "2.0.6" + resolved "https://registry.yarnpkg.com/http-proxy-middleware/-/http-proxy-middleware-2.0.6.tgz#e1a4dd6979572c7ab5a4e4b55095d1f32a74963f" + integrity sha512-ya/UeJ6HVBYxrgYotAZo1KvPWlgB48kUJLDePFeneHsVujFaW5WNj2NgWCAE//B1Dl02BIfYlpNgBy8Kf8Rjmw== + dependencies: + "@types/http-proxy" "^1.17.8" + http-proxy "^1.18.1" + is-glob "^4.0.1" + is-plain-obj "^3.0.0" + micromatch "^4.0.2" + +http-proxy@^1.18.1: + version "1.18.1" + resolved "https://registry.yarnpkg.com/http-proxy/-/http-proxy-1.18.1.tgz#401541f0534884bbf95260334e72f88ee3976549" + integrity sha512-7mz/721AbnJwIVbnaSv1Cz3Am0ZLT/UBwkC92VlxhXv/k/BBQfM2fXElQNC27BVGr0uwUpplYPQM9LnaBMR5NQ== + dependencies: + eventemitter3 "^4.0.0" + follow-redirects "^1.0.0" + requires-port "^1.0.0" + +http-signature@~1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/http-signature/-/http-signature-1.2.0.tgz#9aecd925114772f3d95b65a60abb8f7c18fbace1" + integrity sha512-CAbnr6Rz4CYQkLYUtSNXxQPUH2gK8f3iWexVlsnMeD+GjlsQ0Xsy1cOX+mN3dtxYomRy21CiOzU8Uhw6OwncEQ== + dependencies: + assert-plus "^1.0.0" + jsprim "^1.2.2" + sshpk "^1.7.0" + +http2-client@^1.2.5: + version "1.3.5" + resolved "https://registry.yarnpkg.com/http2-client/-/http2-client-1.3.5.tgz#20c9dc909e3cc98284dd20af2432c524086df181" + integrity sha512-EC2utToWl4RKfs5zd36Mxq7nzHHBuomZboI0yYL6Y0RmBgT7Sgkq4rQ0ezFTYoIsSs7Tm9SJe+o2FcAg6GBhGA== + +https-proxy-agent@7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.4.tgz#8e97b841a029ad8ddc8731f26595bad868cb4168" + integrity sha512-wlwpilI7YdjSkWaQ/7omYBMTliDcmCN8OLihO6I9B86g06lMyAoqgoDpV0XqoaPOKj+0DIdAvnsWfyAAhmimcg== + dependencies: + agent-base "^7.0.2" + debug "4" + +https-proxy-agent@^2.2.1: + version "2.2.4" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-2.2.4.tgz#4ee7a737abd92678a293d9b34a1af4d0d08c787b" + integrity sha512-OmvfoQ53WLjtA9HeYP9RNrWMJzzAz1JGaSFr1nijg0PVR1JaD/xbJq1mdEIIlxGpXp9eSe/O2LgU9DJmTPd0Eg== + dependencies: + agent-base "^4.3.0" + debug "^3.1.0" + +https-proxy-agent@^7.0.1: + version "7.0.5" + resolved "https://registry.yarnpkg.com/https-proxy-agent/-/https-proxy-agent-7.0.5.tgz#9e8b5013873299e11fab6fd548405da2d6c602b2" + integrity sha512-1e4Wqeblerz+tMKPIq2EMGiiWW1dIjZOksyHWSUm1rmuvw/how9hBHZ38lAGj5ID4Ik6EdkOw7NmWPy6LAwalw== + dependencies: + agent-base "^7.0.2" + debug "4" + +human-signals@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-2.1.0.tgz#dc91fcba42e4d06e4abaed33b3e7a3c02f514ea0" + integrity sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw== + +human-signals@^4.3.0: + version "4.3.1" + resolved "https://registry.yarnpkg.com/human-signals/-/human-signals-4.3.1.tgz#ab7f811e851fca97ffbd2c1fe9a958964de321b2" + integrity sha512-nZXjEF2nbo7lIw3mgYjItAfgQXog3OjJogSbKa2CQIIvSGWcKgeJnQlNXip6NglNzYH45nSRiEVimMvYL8DDqQ== + +husky@7.0.4: + version "7.0.4" + resolved "https://registry.yarnpkg.com/husky/-/husky-7.0.4.tgz#242048245dc49c8fb1bf0cc7cfb98dd722531535" + integrity sha512-vbaCKN2QLtP/vD4yvs6iz6hBEo6wkSzs8HpRah1Z6aGmF2KW5PdYuAd7uX5a+OyBZHBhd+TFLqgjUgytQr4RvQ== + +iconv-lite@0.4.24, iconv-lite@^0.4.24: + version "0.4.24" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.4.24.tgz#2022b4b25fbddc21d2f524974a474aafe733908b" + integrity sha512-v3MXnZAcvnywkTUEZomIActle7RXXeedOR31wwl7VlyoXO4Qi9arvSenNQWne1TcRwhCL1HwLI21bEqdpj8/rA== + dependencies: + safer-buffer ">= 2.1.2 < 3" + +iconv-lite@^0.6.2, iconv-lite@^0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/iconv-lite/-/iconv-lite-0.6.3.tgz#a52f80bf38da1952eb5c681790719871a1a72501" + integrity sha512-4fCk79wshMdzMp2rH06qWrJE4iolqLhCUH+OiuIgU++RB0+94NlDL81atO7GX55uUKueo0txHNtvEyI6D7WdMw== + dependencies: + safer-buffer ">= 2.1.2 < 3.0.0" + +icss-utils@^5.0.0, icss-utils@^5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/icss-utils/-/icss-utils-5.1.0.tgz#c6be6858abd013d768e98366ae47e25d5887b1ae" + integrity sha512-soFhflCVWLfRNOPU3iv5Z9VUdT44xFRbzjLsEzSr5AQmgqPMTHdU3PMT1Cf1ssx8fLNJDA1juftYl+PUcv3MqA== + +ieee754@^1.1.13: + version "1.2.1" + resolved "https://registry.yarnpkg.com/ieee754/-/ieee754-1.2.1.tgz#8eb7a10a63fff25d15a57b001586d177d1b0d352" + integrity sha512-dcyqhDvX1C46lXZcVqCpK+FtMRQVdIMN6/Df5js2zouUsqG7I6sFxitIC+7KYK29KdXOLHdu9zL4sFnoVQnqaA== + +ignore-walk@^6.0.4: + version "6.0.5" + resolved "https://registry.yarnpkg.com/ignore-walk/-/ignore-walk-6.0.5.tgz#ef8d61eab7da169078723d1f82833b36e200b0dd" + integrity sha512-VuuG0wCnjhnylG1ABXT3dAuIpTNDs/G8jlpmwXY03fXoXy/8ZK8/T+hMzt8L4WnrLCJgdybqgPagnF/f97cg3A== + dependencies: + minimatch "^9.0.0" + +ignore@5.3.1, ignore@^5.0.4, ignore@^5.2.0, ignore@^5.2.1, ignore@^5.2.4, ignore@^5.3.1: + version "5.3.1" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-5.3.1.tgz#5073e554cd42c5b33b394375f538b8593e34d4ef" + integrity sha512-5Fytz/IraMjqpwfd34ke28PTVMjZjJG2MPn5t7OE4eUCUNf8BAa7b5WUS9/Qvr6mwOQS7Mk6vdsMno5he+T8Xw== + +ignore@^4.0.3: + version "4.0.6" + resolved "https://registry.yarnpkg.com/ignore/-/ignore-4.0.6.tgz#750e3db5862087b4737ebac8207ffd1ef27b25fc" + integrity sha512-cyFDKrqc/YdcWFniJhzI42+AzS+gNwmUzOSFcRCQYwySuBBBy/KjuxWLZ/FHEH6Moq1NizMOBWyTcv8O4OZIMg== + +image-size@~0.5.0: + version "0.5.5" + resolved "https://registry.yarnpkg.com/image-size/-/image-size-0.5.5.tgz#09dfd4ab9d20e29eb1c3e80b8990378df9e3cb9c" + integrity sha512-6TDAlDPZxUFCv+fuOkIoXT/V/f3Qbq8e37p+YOiYrUv3v9cc3/6x78VdfPgFVaB9dZYeLUfKgHRebpkm/oP2VQ== + +immediate@~3.0.5: + version "3.0.6" + resolved "https://registry.yarnpkg.com/immediate/-/immediate-3.0.6.tgz#9db1dbd0faf8de6fbe0f5dd5e56bb606280de69b" + integrity sha512-XXOFtyqDjNDAQxVfYxuF7g9Il/IbWmmlQg2MYKOH8ExIT1qg6xc4zyS3HaEEATgs1btfzxq15ciUiY7gjSXRGQ== + +immutable@^4.0.0: + version "4.3.6" + resolved "https://registry.yarnpkg.com/immutable/-/immutable-4.3.6.tgz#6a05f7858213238e587fb83586ffa3b4b27f0447" + integrity sha512-Ju0+lEMyzMVZarkTn/gqRpdqd5dOPaz1mCZ0SH3JV6iFw81PldE/PEB1hWVEA288HPt4WXW8O7AWxB10M+03QQ== + +import-fresh@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-2.0.0.tgz#d81355c15612d386c61f9ddd3922d4304822a546" + integrity sha512-eZ5H8rcgYazHbKC3PG4ClHNykCSxtAhxSSEM+2mb+7evD2CKF5V7c0dNum7AdpDh0ZdICwZY9sRSn8f+KH96sg== + dependencies: + caller-path "^2.0.0" + resolve-from "^3.0.0" + +import-fresh@^3.2.1, import-fresh@^3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/import-fresh/-/import-fresh-3.3.0.tgz#37162c25fcb9ebaa2e6e53d5b4d88ce17d9e0c2b" + integrity sha512-veYYhQa+D1QBKznvhUHxb8faxlrwUnxseDAbAp457E0wLNio2bOSKnjYDhMj+YiAq61xrMGhQk9iXVk5FzgQMw== + dependencies: + parent-module "^1.0.0" + resolve-from "^4.0.0" + +import-lazy@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-3.1.0.tgz#891279202c8a2280fdbd6674dbd8da1a1dfc67cc" + integrity sha512-8/gvXvX2JMn0F+CDlSC4l6kOmVaLOO3XLkksI7CI3Ud95KDYJuYur2b9P/PUt/i/pDAMd/DulQsNbbbmRRsDIQ== + +import-lazy@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/import-lazy/-/import-lazy-4.0.0.tgz#e8eb627483a0a43da3c03f3e35548be5cb0cc153" + integrity sha512-rKtvo6a868b5Hu3heneU+L4yEQ4jYKLtjpnPeUdK7h0yzXGmyBTypknlkCvHFBqfX9YlorEiMM6Dnq/5atfHkw== + +imurmurhash@^0.1.4: + version "0.1.4" + resolved "https://registry.yarnpkg.com/imurmurhash/-/imurmurhash-0.1.4.tgz#9218b9b2b928a238b13dc4fb6b6d576f231453ea" + integrity sha512-JmXMZ6wuvDmLiHEml9ykzqO6lwFbof0GG4IkcGaENdCRDDmMVnny7s5HsIgHCbaq0w2MyPhDqkhTUgS2LU2PHA== + +indent-string@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-3.2.0.tgz#4a5fd6d27cc332f37e5419a504dbb837105c9289" + integrity sha512-BYqTHXTGUIvg7t1r4sJNKcbDZkL92nkXA8YtRpbjFHRHGDL/NtUeiBJMeE60kIFN/Mg8ESaWQvftaYMGJzQZCQ== + +indent-string@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/indent-string/-/indent-string-4.0.0.tgz#624f8f4497d619b2d9768531d58f4122854d7251" + integrity sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg== + +indexes-of@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/indexes-of/-/indexes-of-1.0.1.tgz#f30f716c8e2bd346c7b67d3df3915566a7c05607" + integrity sha512-bup+4tap3Hympa+JBJUG7XuOsdNQ6fxt0MHyXMKuLBKn0OqsTfvUxkUrroEX1+B2VsSHvCjiIcZVxRtYa4nllA== + +inflight@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/inflight/-/inflight-1.0.6.tgz#49bd6331d7d02d0c09bc910a1075ba8165b56df9" + integrity sha512-k92I/b08q4wvFscXCLvqfsHCrjrF7yiXsQuIVvVE7N82W3+aqpzuUdBbfhWcy/FZR3/4IgflMgKLOsvPDrGCJA== + dependencies: + once "^1.3.0" + wrappy "1" + +inherits@2, inherits@2.0.4, inherits@^2.0.0, inherits@^2.0.1, inherits@^2.0.3, inherits@^2.0.4, inherits@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.4.tgz#0fa2c64f932917c3433a0ded55363aae37416b7c" + integrity sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ== + +inherits@2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/inherits/-/inherits-2.0.3.tgz#633c2c83e3da42a502f52466022480f4208261de" + integrity sha512-x00IRNXNy63jwGkJmzPigoySHbaqpNuzKbBOmzK+g2OdZpQ9w+sxCN+VSB3ja7IAge2OP2qpfxTjeNcyjmW1uw== + +ini@4.1.2: + version "4.1.2" + resolved "https://registry.yarnpkg.com/ini/-/ini-4.1.2.tgz#7f646dbd9caea595e61f88ef60bfff8b01f8130a" + integrity sha512-AMB1mvwR1pyBFY/nSevUX6y8nJWS63/SzUKD3JyQn97s4xgIdgQPT75IRouIiBAN4yLQBUShNYVW0+UG25daCw== + +ini@^1.3.4, ini@^1.3.5: + version "1.3.8" + resolved "https://registry.yarnpkg.com/ini/-/ini-1.3.8.tgz#a29da425b48806f34767a4efce397269af28432c" + integrity sha512-JV/yugV2uzW5iMRSiZAyDtQd+nxtUnjeLt0acNdw98kKLrvuRVyB80tsREOE7yvGVgalhZ6RNXCmEHkUKBKxew== + +ini@^4.1.3: + version "4.1.3" + resolved "https://registry.yarnpkg.com/ini/-/ini-4.1.3.tgz#4c359675a6071a46985eb39b14e4a2c0ec98a795" + integrity sha512-X7rqawQBvfdjS10YU1y1YVreA3SsLrW9dX2CewP2EbBJM4ypVNLDkO5y04gejPwKIY9lR+7r9gn3rFPt/kmWFg== + +inquirer@9.2.15: + version "9.2.15" + resolved "https://registry.yarnpkg.com/inquirer/-/inquirer-9.2.15.tgz#2135a36190a6e5c92f5d205e0af1fea36b9d3492" + integrity sha512-vI2w4zl/mDluHt9YEQ/543VTCwPKWiHzKtm9dM2V0NdFcqEexDAjUHzO1oA60HRNaVifGXXM1tRRNluLVHa0Kg== + dependencies: + "@ljharb/through" "^2.3.12" + ansi-escapes "^4.3.2" + chalk "^5.3.0" + cli-cursor "^3.1.0" + cli-width "^4.1.0" + external-editor "^3.1.0" + figures "^3.2.0" + lodash "^4.17.21" + mute-stream "1.0.0" + ora "^5.4.1" + run-async "^3.0.0" + rxjs "^7.8.1" + string-width "^4.2.3" + strip-ansi "^6.0.1" + wrap-ansi "^6.2.0" + +internal-slot@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/internal-slot/-/internal-slot-1.0.7.tgz#c06dcca3ed874249881007b0a5523b172a190802" + integrity sha512-NGnrKwXzSms2qUUih/ILZ5JBqNTSa1+ZmP6flaIp6KmSElgE9qdndzS3cqjrDovwFdmwsGsLdeFgB6suw+1e9g== + dependencies: + es-errors "^1.3.0" + hasown "^2.0.0" + side-channel "^1.0.4" + +ip-address@^9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/ip-address/-/ip-address-9.0.5.tgz#117a960819b08780c3bd1f14ef3c1cc1d3f3ea5a" + integrity sha512-zHtQzGojZXTwZTHQqra+ETKd4Sn3vgi7uBmlPoXVWZqYvuKmtI0l/VZTjqGmJY9x88GGOaZ9+G9ES8hC4T4X8g== + dependencies: + jsbn "1.1.0" + sprintf-js "^1.1.3" + +ipaddr.js@1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-1.9.1.tgz#bff38543eeb8984825079ff3a2a8e6cbd46781b3" + integrity sha512-0KI/607xoxSToH7GjN1FfSbLoU0+btTicjsQSWQlh/hZykN8KpmMf7uYwPW3R+akZ6R/w18ZlXSHBYXiYUPO3g== + +ipaddr.js@^2.0.1: + version "2.2.0" + resolved "https://registry.yarnpkg.com/ipaddr.js/-/ipaddr.js-2.2.0.tgz#d33fa7bac284f4de7af949638c9d68157c6b92e8" + integrity sha512-Ag3wB2o37wslZS19hZqorUnrnzSkpOVy+IiiDEiTqNubEYpYuHWIf6K4psgN2ZWKExS4xhVCrRVfb/wfW8fWJA== + +is-accessor-descriptor@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-accessor-descriptor/-/is-accessor-descriptor-1.0.1.tgz#3223b10628354644b86260db29b3e693f5ceedd4" + integrity sha512-YBUanLI8Yoihw923YeFUS5fs0fF2f5TSFTNiYAAzhhDscDa3lEqYuz1pDOEP5KvX94I9ey3vsqjJcLVFVU+3QA== + dependencies: + hasown "^2.0.0" + +is-alphabetical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphabetical/-/is-alphabetical-1.0.4.tgz#9e7d6b94916be22153745d184c298cbf986a686d" + integrity sha512-DwzsA04LQ10FHTZuL0/grVDk4rFoVH1pjAToYwBrHSxcrBIGQuXrQMtD5U1b0U2XVgKZCTLLP8u2Qxqhy3l2Vg== + +is-alphanumeric@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-alphanumeric/-/is-alphanumeric-1.0.0.tgz#4a9cef71daf4c001c1d81d63d140cf53fd6889f4" + integrity sha512-ZmRL7++ZkcMOfDuWZuMJyIVLr2keE1o/DeNWh1EmgqGhUcV+9BIVsx0BcSBOHTZqzjs4+dISzr2KAeBEWGgXeA== + +is-alphanumerical@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-alphanumerical/-/is-alphanumerical-1.0.4.tgz#7eb9a2431f855f6b1ef1a78e326df515696c4dbf" + integrity sha512-UzoZUr+XfVz3t3v4KyGEniVL9BDRoQtY7tOyrRybkVNjDFWyo1yhXNGrrBTQxp3ib9BLAWs7k2YKBQsFRkZG9A== + dependencies: + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + +is-array-buffer@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/is-array-buffer/-/is-array-buffer-3.0.4.tgz#7a1f92b3d61edd2bc65d24f130530ea93d7fae98" + integrity sha512-wcjaerHw0ydZwfhiKbXJWLDY8A7yV7KhjQOpb83hGgGfId/aQa4TOvwyzn2PuswW2gPCYEL/nEAiSVpdOj1lXw== + dependencies: + call-bind "^1.0.2" + get-intrinsic "^1.2.1" + +is-arrayish@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/is-arrayish/-/is-arrayish-0.2.1.tgz#77c99840527aa8ecb1a8ba697b80645a7a926a9d" + integrity sha512-zz06S8t0ozoDXMG+ube26zeCTNXcKIPJZJi8hBrF4idCLms4CG9QtK7qBl1boi5ODzFpjswb5JPmHCbMpjaYzg== + +is-bigint@^1.0.1: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-bigint/-/is-bigint-1.0.4.tgz#08147a1875bc2b32005d41ccd8291dffc6691df3" + integrity sha512-zB9CruMamjym81i2JZ3UMn54PKGsQzsJeo6xvN3HJJ4CAsQNB6iRutp2To77OfCNuoxspsIhzaPoO1zyCEhFOg== + dependencies: + has-bigints "^1.0.1" + +is-binary-path@~2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/is-binary-path/-/is-binary-path-2.1.0.tgz#ea1f7f3b80f064236e83470f86c09c254fb45b09" + integrity sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw== + dependencies: + binary-extensions "^2.0.0" + +is-boolean-object@^1.1.0: + version "1.1.2" + resolved "https://registry.yarnpkg.com/is-boolean-object/-/is-boolean-object-1.1.2.tgz#5c6dc200246dd9321ae4b885a114bb1f75f63719" + integrity sha512-gDYaKHJmnj4aWxyj6YHyXVpdQawtVLHU5cb+eztPGczf6cjuTdwve5ZIEfgXqH4e57An1D1AKf8CZ3kYrQRqYA== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-buffer@^1.1.5: + version "1.1.6" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-1.1.6.tgz#efaa2ea9daa0d7ab2ea13a97b2b8ad51fefbe8be" + integrity sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w== + +is-buffer@^2.0.0: + version "2.0.5" + resolved "https://registry.yarnpkg.com/is-buffer/-/is-buffer-2.0.5.tgz#ebc252e400d22ff8d77fa09888821a24a658c191" + integrity sha512-i2R6zNFDwgEHJyQUtJEk0XFi1i0dPFn/oqjK3/vPCcDeJvW5NQ83V8QbicfF1SupOaB0h8ntgBC2YiE7dfyctQ== + +is-builtin-module@^3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/is-builtin-module/-/is-builtin-module-3.2.1.tgz#f03271717d8654cfcaf07ab0463faa3571581169" + integrity sha512-BSLE3HnV2syZ0FK0iMA/yUGplUeMmNz4AW5fnTunbCIqZi4vG3WjJT9FHMy5D69xmAYBHXQhJdALdpwVxV501A== + dependencies: + builtin-modules "^3.3.0" + +is-callable@^1.1.3, is-callable@^1.1.4, is-callable@^1.2.7: + version "1.2.7" + resolved "https://registry.yarnpkg.com/is-callable/-/is-callable-1.2.7.tgz#3bc2a85ea742d9e36205dcacdd72ca1fdc51b055" + integrity sha512-1BC0BVFhS/p0qtw6enp8e+8OD0UrK0oFLztSjNzhcKA3WDuJxxAPXzPuPtKkjEY9UUoEWlX/8fgKeu2S8i9JTA== + +is-core-module@^2.13.0, is-core-module@^2.5.0, is-core-module@^2.8.1: + version "2.15.0" + resolved "https://registry.yarnpkg.com/is-core-module/-/is-core-module-2.15.0.tgz#71c72ec5442ace7e76b306e9d48db361f22699ea" + integrity sha512-Dd+Lb2/zvk9SKy1TGCt1wFJFo/MWBPMX5x7KcvLajWTGuomczdQX61PvY5yK6SVACwpoexWo81IfFyoKY2QnTA== + dependencies: + hasown "^2.0.2" + +is-data-descriptor@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-data-descriptor/-/is-data-descriptor-1.0.1.tgz#2109164426166d32ea38c405c1e0945d9e6a4eeb" + integrity sha512-bc4NlCDiCr28U4aEsQ3Qs2491gVq4V8G7MQyws968ImqjKuYtTJXrl7Vq7jsN7Ly/C3xj5KWFrY7sHNeDkAzXw== + dependencies: + hasown "^2.0.0" + +is-data-view@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-data-view/-/is-data-view-1.0.1.tgz#4b4d3a511b70f3dc26d42c03ca9ca515d847759f" + integrity sha512-AHkaJrsUVW6wq6JS8y3JnM/GJF/9cf+k20+iDzlSaJrinEo5+7vRiteOSwBhHRiAyQATN1AmY4hwzxJKPmYf+w== + dependencies: + is-typed-array "^1.1.13" + +is-date-object@^1.0.1: + version "1.0.5" + resolved "https://registry.yarnpkg.com/is-date-object/-/is-date-object-1.0.5.tgz#0841d5536e724c25597bf6ea62e1bd38298df31f" + integrity sha512-9YQaSxsAiSwcvS33MBk3wTCVnWK+HhF8VZR2jRxehM16QcVOdHqPn4VPHmRK4lSr38n9JriurInLcP90xsYNfQ== + dependencies: + has-tostringtag "^1.0.0" + +is-decimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-decimal/-/is-decimal-1.0.4.tgz#65a3a5958a1c5b63a706e1b333d7cd9f630d3fa5" + integrity sha512-RGdriMmQQvZ2aqaQq3awNA6dCGtKpiDFcOzrTWrDAT2MiWrKQVPmxLGHl7Y2nNu6led0kEyoX0enY0qXYsv9zw== + +is-descriptor@^0.1.0: + version "0.1.7" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-0.1.7.tgz#2727eb61fd789dcd5bdf0ed4569f551d2fe3be33" + integrity sha512-C3grZTvObeN1xud4cRWl366OMXZTj0+HGyk4hvfpx4ZHt1Pb60ANSXqCK7pdOTeUQpRzECBSTphqvD7U+l22Eg== + dependencies: + is-accessor-descriptor "^1.0.1" + is-data-descriptor "^1.0.1" + +is-descriptor@^1.0.0, is-descriptor@^1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-descriptor/-/is-descriptor-1.0.3.tgz#92d27cb3cd311c4977a4db47df457234a13cb306" + integrity sha512-JCNNGbwWZEVaSPtS45mdtrneRWJFp07LLmykxeFV5F6oBvNF8vHSfJuJgoT472pSfk+Mf8VnlrspaFBHWM8JAw== + dependencies: + is-accessor-descriptor "^1.0.1" + is-data-descriptor "^1.0.1" + +is-directory@^0.3.1: + version "0.3.1" + resolved "https://registry.yarnpkg.com/is-directory/-/is-directory-0.3.1.tgz#61339b6f2475fc772fd9c9d83f5c8575dc154ae1" + integrity sha512-yVChGzahRFvbkscn2MlwGismPO12i9+znNruC5gVEntG3qu0xQMzsGg/JFbrsqDOHtHFPci+V5aP5T9I+yeKqw== + +is-docker@^2.0.0, is-docker@^2.1.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/is-docker/-/is-docker-2.2.1.tgz#33eeabe23cfe86f14bde4408a02c0cfb853acdaa" + integrity sha512-F+i2BKsFrH66iaUFc0woD8sLy8getkwTwtOBjvs56Cx4CgJDeKQeqfz8wAYiSb8JOprWhHH5p77PbmYCvvUuXQ== + +is-extendable@^0.1.0, is-extendable@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-0.1.1.tgz#62b110e289a471418e3ec36a617d472e301dfc89" + integrity sha512-5BMULNob1vgFX6EjQw5izWDxrecWK9AM72rugNr0TFldMOi0fj6Jk+zeKIt0xGj4cEfQIJth4w3OKWOJ4f+AFw== + +is-extendable@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-extendable/-/is-extendable-1.0.1.tgz#a7470f9e426733d81bd81e1155264e3a3507cab4" + integrity sha512-arnXMxT1hhoKo9k1LZdmlNyJdDDfy2v0fXjFlmok4+i8ul/6WlbVge9bhM74OpNPQPMGUToDtz+KXa1PneJxOA== + dependencies: + is-plain-object "^2.0.4" + +is-extglob@^2.1.0, is-extglob@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/is-extglob/-/is-extglob-2.1.1.tgz#a88c02535791f02ed37c76a1b9ea9773c833f8c2" + integrity sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ== + +is-fullwidth-code-point@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-2.0.0.tgz#a3b30a5c4f199183167aaab93beefae3ddfb654f" + integrity sha512-VHskAKYM8RfSFXwee5t5cbN5PZeq1Wrh6qd5bkyiXIf6UQcN6w/A0eXM9r6t8d+GYOh+o6ZhiEnb88LN/Y8m2w== + +is-fullwidth-code-point@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz#f116f8064fe90b3f7844a38997c0b75051269f1d" + integrity sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg== + +is-fullwidth-code-point@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/is-fullwidth-code-point/-/is-fullwidth-code-point-4.0.0.tgz#fae3167c729e7463f8461ce512b080a49268aa88" + integrity sha512-O4L094N2/dZ7xqVdrXhh9r1KODPJpFms8B5sGdJLPy664AgvXsreZUyCQQNItZRDlYug4xStLjNp/sz3HvBowQ== + +is-glob@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-3.1.0.tgz#7ba5ae24217804ac70707b96922567486cc3e84a" + integrity sha512-UFpDDrPgM6qpnFNI+rh/p3bUaq9hKLZN8bMUWzxmcnZVS3omf4IPK+BrewlnWjO1WmUsMYuSjKh4UJuV4+Lqmw== + dependencies: + is-extglob "^2.1.0" + +is-glob@^4.0.0, is-glob@^4.0.1, is-glob@^4.0.3, is-glob@~4.0.1: + version "4.0.3" + resolved "https://registry.yarnpkg.com/is-glob/-/is-glob-4.0.3.tgz#64f61e42cbbb2eec2071a9dac0b28ba1e65d5084" + integrity sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg== + dependencies: + is-extglob "^2.1.1" + +is-hexadecimal@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-hexadecimal/-/is-hexadecimal-1.0.4.tgz#cc35c97588da4bd49a8eedd6bc4082d44dcb23a7" + integrity sha512-gyPJuv83bHMpocVYoqof5VDiZveEoGoFL8m3BXNb2VW8Xs+rz9kqO8LOQ5DH6EsuvilT1ApazU0pyl+ytbPtlw== + +is-interactive@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-interactive/-/is-interactive-1.0.0.tgz#cea6e6ae5c870a7b0a0004070b7b587e0252912e" + integrity sha512-2HvIEKRoqS62guEC+qBjpvRubdX910WCMuJTZ+I9yvqKU2/12eSL549HMwtabb4oupdj2sMP50k+XJfB/8JE6w== + +is-lambda@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-lambda/-/is-lambda-1.0.1.tgz#3d9877899e6a53efc0160504cde15f82e6f061d5" + integrity sha512-z7CMFGNrENq5iFB9Bqo64Xk6Y9sg+epq1myIcdHaGnbMTYOxvzsEtdYqQUylB7LxfkvgrrjP32T6Ywciio9UIQ== + +is-negative-zero@^2.0.3: + version "2.0.3" + resolved "https://registry.yarnpkg.com/is-negative-zero/-/is-negative-zero-2.0.3.tgz#ced903a027aca6381b777a5743069d7376a49747" + integrity sha512-5KoIu2Ngpyek75jXodFvnafB6DJgr3u8uuK0LEZJjrU19DrMD3EVERaR8sjz8CCGgpZvxPl9SuE1GMVPFHx1mw== + +is-number-object@^1.0.4: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-number-object/-/is-number-object-1.0.7.tgz#59d50ada4c45251784e9904f5246c742f07a42fc" + integrity sha512-k1U0IRzLMo7ZlYIfzRu23Oh6MiIFasgpb9X76eqfFZAqwH44UI4KTBvBYIZ1dSL9ZzChTB9ShHfLkR4pdW5krQ== + dependencies: + has-tostringtag "^1.0.0" + +is-number@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-3.0.0.tgz#24fd6201a4782cf50561c810276afc7d12d71195" + integrity sha512-4cboCqIpliH+mAvFNegjZQ4kgKc3ZUhQVr3HvWbSh5q3WH2v82ct+T2Y1hdU5Gdtorx/cLifQjqCbL7bpznLTg== + dependencies: + kind-of "^3.0.2" + +is-number@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/is-number/-/is-number-7.0.0.tgz#7535345b896734d5f80c4d06c50955527a14f12b" + integrity sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng== + +is-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/is-obj/-/is-obj-2.0.0.tgz#473fb05d973705e3fd9620545018ca8e22ef4982" + integrity sha512-drqDG3cbczxxEJRoOXcOjtdp1J/lyp1mNn0xaznRs8+muBhgQcrnbspox5X5fOw0HnMnbfDzvnEMEtqDEJEo8w== + +is-path-cwd@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-path-cwd/-/is-path-cwd-1.0.0.tgz#d225ec23132e89edd38fda767472e62e65f1106d" + integrity sha512-cnS56eR9SPAscL77ik76ATVqoPARTqPIVkMDVxRaWH06zT+6+CzIroYRJ0VVvm0Z1zfAvxvz9i/D3Ppjaqt5Nw== + +is-path-in-cwd@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-in-cwd/-/is-path-in-cwd-1.0.1.tgz#5ac48b345ef675339bd6c7a48a912110b241cf52" + integrity sha512-FjV1RTW48E7CWM7eE/J2NJvAEEVektecDBVBE5Hh3nM1Jd0kvhHtX68Pr3xsDf857xt3Y4AkwVULK1Vku62aaQ== + dependencies: + is-path-inside "^1.0.0" + +is-path-inside@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-1.0.1.tgz#8ef5b7de50437a3fdca6b4e865ef7aa55cb48036" + integrity sha512-qhsCR/Esx4U4hg/9I19OVUAJkGWtjRYHMRgUMZE2TDdj+Ag+kttZanLupfddNyglzz50cUlmWzUaI37GDfNx/g== + dependencies: + path-is-inside "^1.0.1" + +is-path-inside@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/is-path-inside/-/is-path-inside-3.0.3.tgz#d231362e53a07ff2b0e0ea7fed049161ffd16283" + integrity sha512-Fd4gABb+ycGAmKou8eMftCupSir5lRxqf4aD/vd0cD2qc4HL07OjCeuHMr8Ro4CoMaeCKDB0/ECBOVWjTwUvPQ== + +is-plain-obj@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-1.1.0.tgz#71a50c8429dfca773c92a390a4a03b39fcd51d3e" + integrity sha512-yvkRyxmFKEOQ4pNXCmJG5AEQNlXJS5LaONXo5/cLdTZdWvsZ1ioJEonLGAosKlMWE8lwUy/bJzMjcw8az73+Fg== + +is-plain-obj@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-plain-obj/-/is-plain-obj-3.0.0.tgz#af6f2ea14ac5a646183a5bbdb5baabbc156ad9d7" + integrity sha512-gwsOE28k+23GP1B6vFl1oVh/WOzmawBrKwo5Ev6wMKzPkaXaCDIQKzLnvsA42DRlbVTWorkgTKIviAKCWkfUwA== + +is-plain-object@^2.0.3, is-plain-object@^2.0.4: + version "2.0.4" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-2.0.4.tgz#2c163b3fafb1b606d9d17928f05c2a1c38e07677" + integrity sha512-h5PpgXkWitc38BBMYawTYMWJHFZJVnBquFE57xFpjB8pJFiF6gZ+bU+WyI/yqXiFR5mdLsgYNaPe8uao6Uv9Og== + dependencies: + isobject "^3.0.1" + +is-plain-object@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/is-plain-object/-/is-plain-object-5.0.0.tgz#4427f50ab3429e9025ea7d52e9043a9ef4159344" + integrity sha512-VRSzKkbMm5jMDoKLbltAkFQ5Qr7VDiTFGXxYFXXowVj387GeGNOCsOH6Msy00SGZ3Fp84b1Naa1psqgcCIEP5Q== + +is-regex@^1.1.4: + version "1.1.4" + resolved "https://registry.yarnpkg.com/is-regex/-/is-regex-1.1.4.tgz#eef5663cd59fa4c0ae339505323df6854bb15958" + integrity sha512-kvRdxDsxZjhzUX07ZnLydzS1TU/TJlTUHHY4YLL87e37oUA49DfkLqgy+VjFocowy29cKvcSiu+kIv728jTTVg== + dependencies: + call-bind "^1.0.2" + has-tostringtag "^1.0.0" + +is-regexp@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-regexp/-/is-regexp-1.0.0.tgz#fd2d883545c46bac5a633e7b9a09e87fa2cb5069" + integrity sha512-7zjFAPO4/gwyQAAgRRmqeEeyIICSdmCqa3tsVHMdBzaXXRiqopZL4Cyghg/XulGWrtABTpbnYYzzIRffLkP4oA== + +is-shared-array-buffer@^1.0.2, is-shared-array-buffer@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/is-shared-array-buffer/-/is-shared-array-buffer-1.0.3.tgz#1237f1cba059cdb62431d378dcc37d9680181688" + integrity sha512-nA2hv5XIhLR3uVzDDfCIknerhx8XUKnstuOERPNNIinXG7v9u+ohXF67vxm4TPTEPU6lm61ZkwP3c9PCB97rhg== + dependencies: + call-bind "^1.0.7" + +is-stream@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-2.0.1.tgz#fac1e3d53b97ad5a9d0ae9cef2389f5810a5c077" + integrity sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg== + +is-stream@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/is-stream/-/is-stream-3.0.0.tgz#e6bfd7aa6bef69f4f472ce9bb681e3e57b4319ac" + integrity sha512-LnQR4bZ9IADDRSkvpqMGvt/tEJWclzklNgSw48V5EAaAeDd6qGvN8ei6k5p0tvxSR171VmGyHuTiAOfxAbr8kA== + +is-string@^1.0.5, is-string@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/is-string/-/is-string-1.0.7.tgz#0dd12bf2006f255bb58f695110eff7491eebc0fd" + integrity sha512-tE2UXzivje6ofPW7l23cjDOMa09gb7xlAqG6jG5ej6uPV32TlWP3NKPigtaGeHNu9fohccRYvIiZMfOOnOYUtg== + dependencies: + has-tostringtag "^1.0.0" + +is-supported-regexp-flag@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/is-supported-regexp-flag/-/is-supported-regexp-flag-1.0.1.tgz#21ee16518d2c1dd3edd3e9a0d57e50207ac364ca" + integrity sha512-3vcJecUUrpgCqc/ca0aWeNu64UGgxcvO60K/Fkr1N6RSvfGCTU60UKN68JDmKokgba0rFFJs12EnzOQa14ubKQ== + +is-symbol@^1.0.2, is-symbol@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-symbol/-/is-symbol-1.0.4.tgz#a6dac93b635b063ca6872236de88910a57af139c" + integrity sha512-C/CPBqKWnvdcxqIARxyOh4v1UUEOCHpgDa0WYgpKDFMszcrPcffg5uhwSgPCLD2WWxmq6isisz87tzT01tuGhg== + dependencies: + has-symbols "^1.0.2" + +is-typed-array@^1.1.13: + version "1.1.13" + resolved "https://registry.yarnpkg.com/is-typed-array/-/is-typed-array-1.1.13.tgz#d6c5ca56df62334959322d7d7dd1cca50debe229" + integrity sha512-uZ25/bUAlUY5fR4OKT4rZQEBrzQWYV9ZJYGGsUmEJ6thodVJ1HX64ePQ6Z0qPWP+m+Uq6e9UugrE38jeYsDSMw== + dependencies: + which-typed-array "^1.1.14" + +is-typedarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/is-typedarray/-/is-typedarray-1.0.0.tgz#e479c80858df0c1b11ddda6940f96011fcda4a9a" + integrity sha512-cyA56iCMHAh5CdzjJIa4aohJyeO1YbwLi3Jc35MmRU6poroFjIGZzUzupGiRPOjgHg9TLu43xbpwXk523fMxKA== + +is-unicode-supported@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/is-unicode-supported/-/is-unicode-supported-0.1.0.tgz#3f26c76a809593b52bfa2ecb5710ed2779b522a7" + integrity sha512-knxG2q4UC3u8stRGyAVJCOdxFmv5DZiRcdlIaAQXAbSfJya+OhopNotLQrstBhququ4ZpuKbDc/8S6mgXgPFPw== + +is-weakref@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-weakref/-/is-weakref-1.0.2.tgz#9529f383a9338205e89765e0392efc2f100f06f2" + integrity sha512-qctsuLZmIQ0+vSSMfoVvyFe2+GSEvnmZ2ezTup1SBse9+twCCeial6EEi3Nc2KFcf6+qz2FBPnjXsk8xhKSaPQ== + dependencies: + call-bind "^1.0.2" + +is-what@^3.14.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/is-what/-/is-what-3.14.1.tgz#e1222f46ddda85dead0fd1c9df131760e77755c1" + integrity sha512-sNxgpk9793nzSs7bA6JQJGeIuRBQhAaNGG77kzYQgMkrID+lS6SlK07K5LaptscDlSaIgH+GPFzf+d75FVxozA== + +is-whitespace-character@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-whitespace-character/-/is-whitespace-character-1.0.4.tgz#0858edd94a95594c7c9dd0b5c174ec6e45ee4aa7" + integrity sha512-SDweEzfIZM0SJV0EUga669UTKlmL0Pq8Lno0QDQsPnvECB3IM2aP0gdx5TrU0A01MAPfViaZiI2V1QMZLaKK5w== + +is-windows@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/is-windows/-/is-windows-1.0.2.tgz#d1850eb9791ecd18e6182ce12a30f396634bb19d" + integrity sha512-eXK1UInq2bPmjyX6e3VHIzMLobc4J94i4AWn+Hpq3OU5KkrRC96OAcR3PRJ/pGu6m8TRnBHP9dkXQVsT/COVIA== + +is-word-character@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/is-word-character/-/is-word-character-1.0.4.tgz#ce0e73216f98599060592f62ff31354ddbeb0230" + integrity sha512-5SMO8RVennx3nZrqtKwCGyyetPE9VDba5ugvKLaD4KopPG5kR4mQ7tNt/r7feL5yt5h3lpuBbIUmCOG2eSzXHA== + +is-wsl@^2.1.1, is-wsl@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/is-wsl/-/is-wsl-2.2.0.tgz#74a4c76e77ca9fd3f932f290c17ea326cd157271" + integrity sha512-fKzAra0rGJUUBwGBgNkHZuToZcn+TtXHpeCgmkMJMMYx1sQDYaCSyjJBSCa2nH1DGm7s3n1oBnohoVTBaN7Lww== + dependencies: + is-docker "^2.0.0" + +isarray@1.0.0, isarray@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-1.0.0.tgz#bb935d48582cba168c06834957a54a3e07124f11" + integrity sha512-VLghIWNM6ELQzo7zwmcg0NmTVyWKYjvIeM83yjp0wRDTmUnrM678fQbcKBo6n2CJEF0szoG//ytg+TKla89ALQ== + +isarray@^2.0.5: + version "2.0.5" + resolved "https://registry.yarnpkg.com/isarray/-/isarray-2.0.5.tgz#8af1e4c1221244cc62459faf38940d4e644a5723" + integrity sha512-xHjhDr3cNBK0BzdUJSPXZntQUx/mwMS5Rw4A7lPJ90XGAO6ISP/ePDNuo0vhqOZU+UD5JoodwCAAoZQd3FeAKw== + +isbinaryfile@^4.0.8: + version "4.0.10" + resolved "https://registry.yarnpkg.com/isbinaryfile/-/isbinaryfile-4.0.10.tgz#0c5b5e30c2557a2f06febd37b7322946aaee42b3" + integrity sha512-iHrqe5shvBUcFbmZq9zOQHBoeOhZJu6RQGrDpBgenUm/Am+F3JM2MgQj+rK3Z601fzrL5gLZWtAPH2OBaSVcyw== + +isexe@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-2.0.0.tgz#e8fbf374dc556ff8947a10dcb0572d633f2cfa10" + integrity sha512-RHxMLp9lnKHGHRng9QFhRCMbYAcVpn69smSGcq3f36xjgVVWThj4qqLbTLlq7Ssj8B+fIQ1EuCEGI2lKsyQeIw== + +isexe@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/isexe/-/isexe-3.1.1.tgz#4a407e2bd78ddfb14bea0c27c6f7072dde775f0d" + integrity sha512-LpB/54B+/2J5hqQ7imZHfdU31OlgQqx7ZicVlkm9kzg9/w8GKLEcFfJl/t7DCEDueOyBAD6zCCwTO6Fzs0NoEQ== + +isobject@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-2.1.0.tgz#f065561096a3f1da2ef46272f815c840d87e0c89" + integrity sha512-+OUdGJlgjOBZDfxnDjYYG6zp487z0JGNQq3cYQYg5f5hKR+syHMsaztzGeml/4kGG55CSpKSpWTY+jYGgsHLgA== + dependencies: + isarray "1.0.0" + +isobject@^3.0.0, isobject@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/isobject/-/isobject-3.0.1.tgz#4e431e92b11a9731636aa1f9c8d1ccbcfdab78df" + integrity sha512-WhB9zCku7EGTj/HQQRz5aUQEUeoQZH2bWcltRErOpymJ4boYE6wL9Tbr23krRPSZ+C5zqNSrSw+Cc7sZZ4b7vg== + +isstream@~0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/isstream/-/isstream-0.1.2.tgz#47e63f7af55afa6f92e1500e690eb8b8529c099a" + integrity sha512-Yljz7ffyPbrLpLngrMtZ7NduUgVvi6wG9RJ9IUcyCd59YQ911PBJphODUcbOVbqYfxe1wuYf/LJ8PauMRwsM/g== + +istanbul-lib-coverage@^3.0.0, istanbul-lib-coverage@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/istanbul-lib-coverage/-/istanbul-lib-coverage-3.2.2.tgz#2d166c4b0644d43a39f04bf6c2edd1e585f31756" + integrity sha512-O8dpsF+r0WV/8MNRKfnmrtCWhuKjxrq2w+jpzBL5UZKTi2LeVWnWOmWRxFlesJONmc+wLAGvKQZEOanko0LFTg== + +istanbul-lib-instrument@^5.0.4, istanbul-lib-instrument@^5.1.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-instrument/-/istanbul-lib-instrument-5.2.1.tgz#d10c8885c2125574e1c231cacadf955675e1ce3d" + integrity sha512-pzqtp31nLv/XFOzXGuvhCb8qhjmTVo5vjVk19XE4CRlSWz0KoeJ3bw9XsA7nOp9YBf4qHjwBxkDzKcME/J29Yg== + dependencies: + "@babel/core" "^7.12.3" + "@babel/parser" "^7.14.7" + "@istanbuljs/schema" "^0.1.2" + istanbul-lib-coverage "^3.2.0" + semver "^6.3.0" + +istanbul-lib-report@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-report/-/istanbul-lib-report-3.0.1.tgz#908305bac9a5bd175ac6a74489eafd0fc2445a7d" + integrity sha512-GCfE1mtsHGOELCU8e/Z7YWzpmybrx/+dSTfLrvY8qRmaY6zXTKWn6WQIjaAFw069icm6GVMNkgu0NzI4iPZUNw== + dependencies: + istanbul-lib-coverage "^3.0.0" + make-dir "^4.0.0" + supports-color "^7.1.0" + +istanbul-lib-source-maps@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/istanbul-lib-source-maps/-/istanbul-lib-source-maps-4.0.1.tgz#895f3a709fcfba34c6de5a42939022f3e4358551" + integrity sha512-n3s8EwkdFIJCG3BPKBYvskgXGoy88ARzvegkitk60NxRdwltLOTaH7CUiMRXvwYorl0Q712iEjcWB+fK/MrWVw== + dependencies: + debug "^4.1.1" + istanbul-lib-coverage "^3.0.0" + source-map "^0.6.1" + +istanbul-reports@^3.0.5: + version "3.1.7" + resolved "https://registry.yarnpkg.com/istanbul-reports/-/istanbul-reports-3.1.7.tgz#daed12b9e1dca518e15c056e1e537e741280fa0b" + integrity sha512-BewmUXImeuRk2YY0PVbxgKAysvhRPUQE0h5QRM++nVWyubKGV0l8qQ5op8+B2DOmwSe63Jivj0BjkPQVf8fP5g== + dependencies: + html-escaper "^2.0.0" + istanbul-lib-report "^3.0.0" + +isutf8@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/isutf8/-/isutf8-4.0.0.tgz#8b0061a96cf896faff3f086d7efa4ae93be8a872" + integrity sha512-mJtsQGFfAphKdVuRitEpc0eon4v5fuaB6v9ZJIrLnIyybh02sIIwJ2RQbLMp6UICVCfquezllupZIVcqzGzCPg== + +jackspeak@^3.1.2: + version "3.4.3" + resolved "https://registry.yarnpkg.com/jackspeak/-/jackspeak-3.4.3.tgz#8833a9d89ab4acde6188942bd1c53b6390ed5a8a" + integrity sha512-OGlZQpz2yfahA/Rd1Y8Cd9SIEsqvXkLVoSw/cgwhnhFMDbsQFeZYoJJ7bIZBS9BcamUW96asq/npPWugM+RQBw== + dependencies: + "@isaacs/cliui" "^8.0.2" + optionalDependencies: + "@pkgjs/parseargs" "^0.11.0" + +jake@^10.8.5: + version "10.9.2" + resolved "https://registry.yarnpkg.com/jake/-/jake-10.9.2.tgz#6ae487e6a69afec3a5e167628996b59f35ae2b7f" + integrity sha512-2P4SQ0HrLQ+fw6llpLnOaGAvN2Zu6778SJMrCUwns4fOoG9ayrTiZk3VV8sCPkVZF8ab0zksVpS8FDY5pRCNBA== + dependencies: + async "^3.2.3" + chalk "^4.0.2" + filelist "^1.0.4" + minimatch "^3.1.2" + +jasmine-core@4.3.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-4.3.0.tgz#aee841fbe7373c2586ed8d8d48f5cc4a88be8390" + integrity sha512-qybtBUesniQdW6n+QIHMng2vDOHscIC/dEXjW+JzO9+LoAZMb03RCUC5xFOv/btSKPm1xL42fn+RjlU4oB42Lg== + +jasmine-core@^4.1.0: + version "4.6.1" + resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-4.6.1.tgz#5ebb8afa07282078f8d7b15871737a83b74e58f2" + integrity sha512-VYz/BjjmC3klLJlLwA4Kw8ytk0zDSmbbDLNs794VnWmkcCB7I9aAL/D48VNQtmITyPvea2C3jdUMfc3kAoy0PQ== + +jasmine-core@~2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/jasmine-core/-/jasmine-core-2.8.0.tgz#bcc979ae1f9fd05701e45e52e65d3a5d63f1a24e" + integrity sha512-SNkOkS+/jMZvLhuSx1fjhcNWUC/KG6oVyFUGkSBEr9n1axSNduWU8GlI7suaHXr4yxjet6KjrUZxUTE5WzzWwQ== + +jasmine-spec-reporter@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/jasmine-spec-reporter/-/jasmine-spec-reporter-7.0.0.tgz#94b939448e63d4e2bd01668142389f20f0a8ea49" + integrity sha512-OtC7JRasiTcjsaCBPtMO0Tl8glCejM4J4/dNuOJdA8lBjz4PmWjYQ6pzb0uzpBNAWJMDudYuj9OdXJWqM2QTJg== + dependencies: + colors "1.4.0" + +jasmine@2.8.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/jasmine/-/jasmine-2.8.0.tgz#6b089c0a11576b1f16df11b80146d91d4e8b8a3e" + integrity sha512-KbdGQTf5jbZgltoHs31XGiChAPumMSY64OZMWLNYnEnMfG5uwGBhffePwuskexjT+/Jea/gU3qAU8344hNohSw== + dependencies: + exit "^0.1.2" + glob "^7.0.6" + jasmine-core "~2.8.0" + +jasminewd2@^2.1.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/jasminewd2/-/jasminewd2-2.2.0.tgz#e37cf0b17f199cce23bea71b2039395246b4ec4e" + integrity sha512-Rn0nZe4rfDhzA63Al3ZGh0E+JTmM6ESZYXJGKuqKGZObsAB9fwXPD03GjtIEvJBDOhN94T5MzbwZSqzFHSQPzg== + +jest-diff@^29.4.1: + version "29.7.0" + resolved "https://registry.yarnpkg.com/jest-diff/-/jest-diff-29.7.0.tgz#017934a66ebb7ecf6f205e84699be10afd70458a" + integrity sha512-LMIgiIrhigmPrs03JHpxUh2yISK3vLFPkAodPeo0+BuF7wA2FoQbkEg1u8gBYBThncu7e1oEDUfIXVuTqLRUjw== + dependencies: + chalk "^4.0.0" + diff-sequences "^29.6.3" + jest-get-type "^29.6.3" + pretty-format "^29.7.0" + +jest-get-type@^29.6.3: + version "29.6.3" + resolved "https://registry.yarnpkg.com/jest-get-type/-/jest-get-type-29.6.3.tgz#36f499fdcea197c1045a127319c0481723908fd1" + integrity sha512-zrteXnqYxfQh7l5FHyL38jL39di8H8rHoecLH3JNxH3BwOrBsNeabdap5e0I23lD4HHI8W5VFBZqG4Eaq5LNcw== + +jest-worker@^27.4.5: + version "27.5.1" + resolved "https://registry.yarnpkg.com/jest-worker/-/jest-worker-27.5.1.tgz#8d146f0900e8973b106b6f73cc1e9a8cb86f8db0" + integrity sha512-7vuh85V5cdDofPyxn58nrPjBktZo0u9x1g8WtjQol+jZDaE+fhN+cIvTj11GndBnMnyfrUOG1sZQxCdjKh+DKg== + dependencies: + "@types/node" "*" + merge-stream "^2.0.0" + supports-color "^8.0.0" + +jiti@^1.20.0: + version "1.21.6" + resolved "https://registry.yarnpkg.com/jiti/-/jiti-1.21.6.tgz#6c7f7398dd4b3142767f9a168af2f317a428d268" + integrity sha512-2yTgeWTWzMWkHu6Jp9NKgePDaYHbntiwvYuuJLbbN9vl7DC9DvXKOB2BC3ZZ92D3cvV/aflH0osDfwpHepQ53w== + +jquery@3.7.1: + version "3.7.1" + resolved "https://registry.yarnpkg.com/jquery/-/jquery-3.7.1.tgz#083ef98927c9a6a74d05a6af02806566d16274de" + integrity sha512-m4avr8yL8kmFN8psrbFFFmB/If14iN5o9nw/NgnnM+kybDJpRsAynV2BsfpTYrTRysYUdADVD7CkUUizgkpLfg== + +js-tokens@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/js-tokens/-/js-tokens-4.0.0.tgz#19203fb59991df98e3a287050d4647cdeaf32499" + integrity sha512-RdJUflcE3cUzKiMqQgsCu06FPu9UdIJO0beYbPhHN4k6apgJtifcoCtT9bcxOpYBtpD2kCM6Sbzg4CausW/PKQ== + +js-yaml@4.1.0, js-yaml@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-4.1.0.tgz#c1fb65f8f5017901cdd2c951864ba18458a10602" + integrity sha512-wpxZs9NoxZaJESJGIZTyDEaYpl0FKSA+FB9aJiyemKhMwkxQg63h4T1KJgUGHpTqPDNRcmmYLugrRjJlBtWvRA== + dependencies: + argparse "^2.0.1" + +js-yaml@^3.10.0, js-yaml@^3.13.1: + version "3.14.1" + resolved "https://registry.yarnpkg.com/js-yaml/-/js-yaml-3.14.1.tgz#dae812fdb3825fa306609a8717383c50c36a0537" + integrity sha512-okMH7OXXJ7YrN9Ok3/SXrnu4iX9yOk+25nqX4imS2npuvTYDmo/QEZoqwZkYaIDk3jVvBOTOIEgEhaLOynBS9g== + dependencies: + argparse "^1.0.7" + esprima "^4.0.0" + +jsbn@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-1.1.0.tgz#b01307cb29b618a1ed26ec79e911f803c4da0040" + integrity sha512-4bYVV3aAMtDTTu4+xsDYa6sy9GyJ69/amsu9sYF2zqjiEoZA5xJi3BrfX3uY+/IekIu7MwdObdbDWpoZdBv3/A== + +jsbn@~0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/jsbn/-/jsbn-0.1.1.tgz#a5e654c2e5a2deb5f201d96cefbca80c0ef2f513" + integrity sha512-UVU9dibq2JcFWxQPA6KCqj5O42VOmAY3zQUfEKxU0KpTGXwNoCjkX1e13eHNvw/xPynt6pU0rZ1htjWTNTSXsg== + +jsdoc-type-pratt-parser@~4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsdoc-type-pratt-parser/-/jsdoc-type-pratt-parser-4.0.0.tgz#136f0571a99c184d84ec84662c45c29ceff71114" + integrity sha512-YtOli5Cmzy3q4dP26GraSOeAhqecewG04hoO8DY56CH4KJ9Fvv5qKWUCCo3HZob7esJQHCv6/+bnTy72xZZaVQ== + +jsesc@^2.5.1: + version "2.5.2" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-2.5.2.tgz#80564d2e483dacf6e8ef209650a67df3f0c283a4" + integrity sha512-OYu7XEzjkCQ3C5Ps3QIZsQfNpqoJyZZA99wd9aWd05NCtC5pWOkShK2mkL6HXQR6/Cy2lbNdPlZBpuQHXE63gA== + +jsesc@~0.5.0: + version "0.5.0" + resolved "https://registry.yarnpkg.com/jsesc/-/jsesc-0.5.0.tgz#e7dee66e35d6fc16f710fe91d5cf69f70f08911d" + integrity sha512-uZz5UnB7u4T9LvwmFqXii7pZSouaRPorGs5who1Ip7VO0wxanFvBL7GkM6dTHlgX+jhBApRetaWpnDabOeTcnA== + +json-buffer@3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/json-buffer/-/json-buffer-3.0.1.tgz#9338802a30d3b6605fbe0613e094008ca8c05a13" + integrity sha512-4bV5BfR2mqfQTJm+V5tPPdf+ZpuhiIvTuAB5g8kcrXOZpTT/QwwVRWBywX1ozr6lEuPdbHxwaJlm9G6mI2sfSQ== + +json-parse-better-errors@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json-parse-better-errors/-/json-parse-better-errors-1.0.2.tgz#bb867cfb3450e69107c131d1c514bab3dc8bcaa9" + integrity sha512-mrqyZKfX5EhL7hvqcV6WG1yYjnjeuYDzDhhcAAUrq8Po85NBQBJP+ZDUT75qZQ98IkUoBqdkExkukOU7Ts2wrw== + +json-parse-even-better-errors@^2.3.0, json-parse-even-better-errors@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-2.3.1.tgz#7c47805a94319928e05777405dc12e1f7a4ee02d" + integrity sha512-xyFwyhro/JEof6Ghe2iz2NcXoj2sloNsWr/XsERDK/oiPCfaNhl5ONfp+jQdAZRQQ0IJWNzH9zIZF7li91kh2w== + +json-parse-even-better-errors@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/json-parse-even-better-errors/-/json-parse-even-better-errors-3.0.2.tgz#b43d35e89c0f3be6b5fbbe9dc6c82467b30c28da" + integrity sha512-fi0NG4bPjCHunUJffmLd0gxssIgkNmArMvis4iNah6Owg1MCJjWhEcDLmsK6iGkJq3tHwbDkTlce70/tmXN4cQ== + +json-schema-traverse@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-0.4.1.tgz#69f6a87d9513ab8bb8fe63bdb0979c448e684660" + integrity sha512-xbbCH5dCYU5T8LcEhhuh7HJ88HXuW3qsI3Y0zOZFKfZEHcpWiHU/Jxzk629Brsab/mMiHQti9wMP+845RPe3Vg== + +json-schema-traverse@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/json-schema-traverse/-/json-schema-traverse-1.0.0.tgz#ae7bcb3656ab77a73ba5c49bf654f38e6b6860e2" + integrity sha512-NM8/P9n3XjXhIZn1lLhkFaACTOURQXjWhV4BA/RnOv8xvgqtqpAX9IO4mRQxSx1Rlo4tqzeqb0sOlruaOy3dug== + +json-schema@0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/json-schema/-/json-schema-0.4.0.tgz#f7de4cf6efab838ebaeb3236474cbba5a1930ab5" + integrity sha512-es94M3nTIfsEPisRafak+HDLfHXnKBhV3vU5eqPcS3flIWqcxJWgXHXiey3YrpaNsanY5ei1VoYEbOzijuq9BA== + +json-stable-stringify-without-jsonify@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/json-stable-stringify-without-jsonify/-/json-stable-stringify-without-jsonify-1.0.1.tgz#9db7b59496ad3f3cfef30a75142d2d930ad72651" + integrity sha512-Bdboy+l7tA3OGW6FjyFHWkP5LuByj1Tk33Ljyq0axyzdk9//JSi2u3fP1QSmd1KNwq6VOKYGlAu87CisVir6Pw== + +json-stringify-safe@~5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/json-stringify-safe/-/json-stringify-safe-5.0.1.tgz#1296a2d58fd45f19a0f6ce01d65701e2c735b6eb" + integrity sha512-ZClg6AaYvamvYEE82d3Iyd3vSSIjQ+odgjaTzRuO3s7toCdFKczob2i0zCh7JE8kWn17yvAWhUVxvqGwUalsRA== + +json5@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/json5/-/json5-1.0.2.tgz#63d98d60f21b313b77c4d6da18bfa69d80e1d593" + integrity sha512-g1MWMLBiz8FKi1e4w0UyVL3w+iJceWAFBAaBnnGKOpNa5f8TLktkbre1+s6oICydWAm+HRUGTmI+//xv2hvXYA== + dependencies: + minimist "^1.2.0" + +json5@^2.1.2, json5@^2.2.2, json5@^2.2.3: + version "2.2.3" + resolved "https://registry.yarnpkg.com/json5/-/json5-2.2.3.tgz#78cd6f1a19bdc12b73db5ad0c61efd66c1e29283" + integrity sha512-XmOWe7eyHYH14cLdVPoyg+GOH3rYX++KpzrylJwSW98t3Nk+U8XOl8FWKOgwtzdb8lXGf6zYwDUzeHMWfxasyg== + +jsonc-parser@3.2.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.0.tgz#31ff3f4c2b9793f89c67212627c51c6394f88e76" + integrity sha512-gfFQZrcTc8CnKXp6Y4/CBT3fTc0OVuDofpre4aEeEpSBPV5X5v4+Vmx+8snU7RLPrNHPKSgLxGo9YuQzz20o+w== + +jsonc-parser@3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.2.1.tgz#031904571ccf929d7670ee8c547545081cb37f1a" + integrity sha512-AilxAyFOAcK5wA1+LeaySVBrHsGQvUFCDWXKpZjzaL0PqW+xfBOttn8GNtWKFWqneyMZj41MWF9Kl6iPWLwgOA== + +jsonc-parser@^3.2.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/jsonc-parser/-/jsonc-parser-3.3.1.tgz#f2a524b4f7fd11e3d791e559977ad60b98b798b4" + integrity sha512-HUgH65KyejrUFPvHFPbqOY0rsFip3Bo5wb4ngvdi1EpCYWUQDC5V+Y7mZws+DLkr4M//zQJoanu1SP+87Dv1oQ== + +jsonfile@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-4.0.0.tgz#8771aae0799b64076b76640fca058f9c10e33ecb" + integrity sha512-m6F1R3z8jjlf2imQHS2Qez5sjKWQzbuuhuJ/FKYFRZvPE3PuHcSMVZzfsLhGVOkfd20obL5SWEBew5ShlquNxg== + optionalDependencies: + graceful-fs "^4.1.6" + +jsonfile@^6.0.1: + version "6.1.0" + resolved "https://registry.yarnpkg.com/jsonfile/-/jsonfile-6.1.0.tgz#bc55b2634793c679ec6403094eb13698a6ec0aae" + integrity sha512-5dgndWOriYSm5cnYaJNhalLNDKOqFwyDB/rr1E9ZsGciGvKPs8R2xYGCacuf3z6K1YKDz182fd+fY3cn3pMqXQ== + dependencies: + universalify "^2.0.0" + optionalDependencies: + graceful-fs "^4.1.6" + +jsonparse@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/jsonparse/-/jsonparse-1.3.1.tgz#3f4dae4a91fac315f71062f8521cc239f1366280" + integrity sha512-POQXvpdL69+CluYsillJ7SUhKvytYjW9vG/GKpnf+xP8UWgYEM/RaMzHHofbALDiKbbP1W8UEYmgGl39WkPZsg== + +jsprim@^1.2.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/jsprim/-/jsprim-1.4.2.tgz#712c65533a15c878ba59e9ed5f0e26d5b77c5feb" + integrity sha512-P2bSOMAc/ciLz6DzgjVlGJP9+BrJWu5UDGK70C2iweC5QBIeFf0ZXRvGjEj2uYgrY2MkAAhsSWHDWlFtEroZWw== + dependencies: + assert-plus "1.0.0" + extsprintf "1.3.0" + json-schema "0.4.0" + verror "1.10.0" + +jszip@^3.1.3, jszip@^3.10.1: + version "3.10.1" + resolved "https://registry.yarnpkg.com/jszip/-/jszip-3.10.1.tgz#34aee70eb18ea1faec2f589208a157d1feb091c2" + integrity sha512-xXDvecyTpGLrqFrvkrUSoxxfJI5AH7U8zxxtVclpsUtMCq4JQ290LY8AW5c7Ggnr/Y/oK+bQMbqK2qmtk3pN4g== + dependencies: + lie "~3.3.0" + pako "~1.0.2" + readable-stream "~2.3.6" + setimmediate "^1.0.5" + +karma-chrome-launcher@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/karma-chrome-launcher/-/karma-chrome-launcher-3.1.1.tgz#baca9cc071b1562a1db241827257bfe5cab597ea" + integrity sha512-hsIglcq1vtboGPAN+DGCISCFOxW+ZVnIqhDQcCMqqCp+4dmJ0Qpq5QAjkbA0X2L9Mi6OBkHi2Srrbmm7pUKkzQ== + dependencies: + which "^1.2.1" + +karma-coverage@2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/karma-coverage/-/karma-coverage-2.2.1.tgz#e1cc074f93ace9dc4fb7e7aeca7135879c2e358c" + integrity sha512-yj7hbequkQP2qOSb20GuNSIyE//PgJWHwC2IydLE6XRtsnaflv+/OSGNssPjobYUlhVVagy99TQpqUt3vAUG7A== + dependencies: + istanbul-lib-coverage "^3.2.0" + istanbul-lib-instrument "^5.1.0" + istanbul-lib-report "^3.0.0" + istanbul-lib-source-maps "^4.0.1" + istanbul-reports "^3.0.5" + minimatch "^3.0.4" + +karma-jasmine-html-reporter@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/karma-jasmine-html-reporter/-/karma-jasmine-html-reporter-2.0.0.tgz#76c26ce40e217dc36a630fbcd7b31c3462948bf2" + integrity sha512-SB8HNNiazAHXM1vGEzf8/tSyEhkfxuDdhYdPBX2Mwgzt0OuF2gicApQ+uvXLID/gXyJQgvrM9+1/2SxZFUUDIA== + +karma-jasmine@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/karma-jasmine/-/karma-jasmine-5.1.0.tgz#3af4558a6502fa16856a0f346ec2193d4b884b2f" + integrity sha512-i/zQLFrfEpRyQoJF9fsCdTMOF5c2dK7C7OmsuKg2D0YSsuZSfQDiLuaiktbuio6F2wiCsZSnSnieIQ0ant/uzQ== + dependencies: + jasmine-core "^4.1.0" + +karma-source-map-support@1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/karma-source-map-support/-/karma-source-map-support-1.4.0.tgz#58526ceccf7e8730e56effd97a4de8d712ac0d6b" + integrity sha512-RsBECncGO17KAoJCYXjv+ckIz+Ii9NCi+9enk+rq6XC81ezYkb4/RHE6CTXdA7IOJqoF3wcaLfVG0CPmE5ca6A== + dependencies: + source-map-support "^0.5.5" + +karma@6.4.2: + version "6.4.2" + resolved "https://registry.yarnpkg.com/karma/-/karma-6.4.2.tgz#a983f874cee6f35990c4b2dcc3d274653714de8e" + integrity sha512-C6SU/53LB31BEgRg+omznBEMY4SjHU3ricV6zBcAe1EeILKkeScr+fZXtaI5WyDbkVowJxxAI6h73NcFPmXolQ== + dependencies: + "@colors/colors" "1.5.0" + body-parser "^1.19.0" + braces "^3.0.2" + chokidar "^3.5.1" + connect "^3.7.0" + di "^0.0.1" + dom-serialize "^2.2.1" + glob "^7.1.7" + graceful-fs "^4.2.6" + http-proxy "^1.18.1" + isbinaryfile "^4.0.8" + lodash "^4.17.21" + log4js "^6.4.1" + mime "^2.5.2" + minimatch "^3.0.4" + mkdirp "^0.5.5" + qjobs "^1.2.0" + range-parser "^1.2.1" + rimraf "^3.0.2" + socket.io "^4.4.1" + source-map "^0.6.1" + tmp "^0.2.1" + ua-parser-js "^0.7.30" + yargs "^16.1.1" + +keyv@^4.5.3: + version "4.5.4" + resolved "https://registry.yarnpkg.com/keyv/-/keyv-4.5.4.tgz#a879a99e29452f942439f2a405e3af8b31d4de93" + integrity sha512-oxVHkHR/EJf2CNXnWxRLW6mg7JyCCUcG0DtEGmL2ctUo1PNTin1PUil+r/+4r5MpVgC/fn1kjsx7mjSujKqIpw== + dependencies: + json-buffer "3.0.1" + +kind-of@^3.0.2, kind-of@^3.0.3, kind-of@^3.2.0: + version "3.2.2" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-3.2.2.tgz#31ea21a734bab9bbb0f32466d893aea51e4a3c64" + integrity sha512-NOW9QQXMoZGg/oqnVNoNTTIFEIid1627WCffUBJEdMxYApq7mNE7CpzucIPc+ZQg25Phej7IJSmX3hO+oblOtQ== + dependencies: + is-buffer "^1.1.5" + +kind-of@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-4.0.0.tgz#20813df3d712928b207378691a45066fae72dd57" + integrity sha512-24XsCxmEbRwEDbz/qz3stgin8TTzZ1ESR56OMCN0ujYg+vRutNSiOj9bHH9u85DKgXguraugV5sFuvbD4FW/hw== + dependencies: + is-buffer "^1.1.5" + +kind-of@^6.0.2, kind-of@^6.0.3: + version "6.0.3" + resolved "https://registry.yarnpkg.com/kind-of/-/kind-of-6.0.3.tgz#07c05034a6c349fa06e24fa35aa76db4580ce4dd" + integrity sha512-dcS1ul+9tmeD95T+x28/ehLgd9mENa3LsvDTtzm3vyBEO7RPptvAD+t44WVXaUjTBRcrpFeFlC8WCruUR456hw== + +klona@^2.0.4: + version "2.0.6" + resolved "https://registry.yarnpkg.com/klona/-/klona-2.0.6.tgz#85bffbf819c03b2f53270412420a4555ef882e22" + integrity sha512-dhG34DXATL5hSxJbIexCft8FChFXtmskoZYnoPWjXQuebWYCNkVeV3KkGegCK9CP1oswI/vQibS2GY7Em/sJJA== + +known-css-properties@^0.11.0: + version "0.11.0" + resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.11.0.tgz#0da784f115ea77c76b81536d7052e90ee6c86a8a" + integrity sha512-bEZlJzXo5V/ApNNa5z375mJC6Nrz4vG43UgcSCrg2OHC+yuB6j0iDSrY7RQ/+PRofFB03wNIIt9iXIVLr4wc7w== + +known-css-properties@^0.26.0: + version "0.26.0" + resolved "https://registry.yarnpkg.com/known-css-properties/-/known-css-properties-0.26.0.tgz#008295115abddc045a9f4ed7e2a84dc8b3a77649" + integrity sha512-5FZRzrZzNTBruuurWpvZnvP9pum+fe0HcK8z/ooo+U+Hmp4vtbyp1/QDsqmufirXy4egGzbaH/y2uCZf+6W5Kg== + +launch-editor@^2.6.0: + version "2.8.0" + resolved "https://registry.yarnpkg.com/launch-editor/-/launch-editor-2.8.0.tgz#7255d90bdba414448e2138faa770a74f28451305" + integrity sha512-vJranOAJrI/llyWGRQqiDM+adrw+k83fvmmx3+nV47g3+36xM15jE+zyZ6Ffel02+xSvuM0b2GDRosXZkbb6wA== + dependencies: + picocolors "^1.0.0" + shell-quote "^1.8.1" + +less-loader@11.1.0: + version "11.1.0" + resolved "https://registry.yarnpkg.com/less-loader/-/less-loader-11.1.0.tgz#a452384259bdf8e4f6d5fdcc39543609e6313f82" + integrity sha512-C+uDBV7kS7W5fJlUjq5mPBeBVhYpTIm5gB09APT9o3n/ILeaXVsiSFTbZpTJCJwQ/Crczfn3DmfQFwxYusWFug== + dependencies: + klona "^2.0.4" + +less-plugin-clean-css@^1.5.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/less-plugin-clean-css/-/less-plugin-clean-css-1.6.0.tgz#befc051436759c1bb1f13d026e39f735f7ba0185" + integrity sha512-jwXX6WlXT57OVCXa5oBJBaJq1b4s1BOKeEEoAL2UTeEitogQWfTcBbLT/vow9pl0N0MXV8Mb4KyhTGG0YbEKyQ== + dependencies: + clean-css "5.3.3" + +less-vars-to-js@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/less-vars-to-js/-/less-vars-to-js-1.3.0.tgz#c322cf43a3c8fc3fab655da3e51a14c1499ab571" + integrity sha512-xeiLLn/IMCGtdyCkYQnW8UuzoW2oYMCKg9boZRaGI58fLz5r90bNJDlqGzmVt/1Uqk75/DxIVtQSNCMkE5fRZQ== + dependencies: + strip-json-comments "^2.0.1" + +less@4.2.0, less@^4.1.3: + version "4.2.0" + resolved "https://registry.yarnpkg.com/less/-/less-4.2.0.tgz#cbefbfaa14a4cd388e2099b2b51f956e1465c450" + integrity sha512-P3b3HJDBtSzsXUl0im2L7gTO5Ubg8mEN6G8qoTS77iXxXX4Hvu4Qj540PZDvQ8V6DmX6iXo98k7Md0Cm1PrLaA== + dependencies: + copy-anything "^2.0.1" + parse-node-version "^1.0.1" + tslib "^2.3.0" + optionalDependencies: + errno "^0.1.1" + graceful-fs "^4.1.2" + image-size "~0.5.0" + make-dir "^2.1.0" + mime "^1.4.1" + needle "^3.1.0" + source-map "~0.6.0" + +leven@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/leven/-/leven-2.1.0.tgz#c2e7a9f772094dee9d34202ae8acce4687875580" + integrity sha512-nvVPLpIHUxCUoRLrFqTgSxXJ614d8AgQoWl7zPe/2VadE8+1dpU3LBhowRuBAcuwruWtOdD8oYC9jDNJjXDPyA== + +levn@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/levn/-/levn-0.4.1.tgz#ae4562c007473b932a6200d403268dd2fffc6ade" + integrity sha512-+bT2uH4E5LGE7h/n3evcS/sQlJXCpIp6ym8OWJ5eV6+67Dsql/LaaT7qJBAt2rzfoa/5QBGBhxDix1dMt2kQKQ== + dependencies: + prelude-ls "^1.2.1" + type-check "~0.4.0" + +license-webpack-plugin@4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/license-webpack-plugin/-/license-webpack-plugin-4.0.2.tgz#1e18442ed20b754b82f1adeff42249b81d11aec6" + integrity sha512-771TFWFD70G1wLTC4oU2Cw4qvtmNrIw+wRvBtn+okgHl7slJVi7zfNcdmqDL72BojM30VNJ2UHylr1o77U37Jw== + dependencies: + webpack-sources "^3.0.0" + +lie@~3.3.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/lie/-/lie-3.3.0.tgz#dcf82dee545f46074daf200c7c1c5a08e0f40f6a" + integrity sha512-UaiMJzeWRlEujzAuw5LokY1L5ecNQYZKfmyZ9L7wDHb/p5etKaxXhohBcrw0EYby+G/NA52vRSN4N39dxHAIwQ== + dependencies: + immediate "~3.0.5" + +lilconfig@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/lilconfig/-/lilconfig-2.1.0.tgz#78e23ac89ebb7e1bfbf25b18043de756548e7f52" + integrity sha512-utWOt/GHzuUxnLKxB6dk81RoOeoNeHgbrXiuGk4yyF5qlRz+iIVWu56E2fqGHFrXz0QNUhLB/8nKqvRH66JKGQ== + +lines-and-columns@^1.1.6: + version "1.2.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-1.2.4.tgz#eca284f75d2965079309dc0ad9255abb2ebc1632" + integrity sha512-7ylylesZQ/PV29jhEDl3Ufjo6ZX7gCqJr5F7PKrqc93v7fzSymt1BpwEU8nAUXs8qzzvqhbjhK5QZg6Mt/HkBg== + +lines-and-columns@~2.0.3: + version "2.0.4" + resolved "https://registry.yarnpkg.com/lines-and-columns/-/lines-and-columns-2.0.4.tgz#d00318855905d2660d8c0822e3f5a4715855fc42" + integrity sha512-wM1+Z03eypVAVUCE7QdSqpVIvelbOakn1M0bPDoA4SGWPx3sNDVUiMo3L6To6WWGClB7VyXnhQ4Sn7gxiJbE6A== + +lint-staged@13.3.0: + version "13.3.0" + resolved "https://registry.yarnpkg.com/lint-staged/-/lint-staged-13.3.0.tgz#7965d72a8d6a6c932f85e9c13ccf3596782d28a5" + integrity sha512-mPRtrYnipYYv1FEE134ufbWpeggNTo+O/UPzngoaKzbzHAthvR55am+8GfHTnqNRQVRRrYQLGW9ZyUoD7DsBHQ== + dependencies: + chalk "5.3.0" + commander "11.0.0" + debug "4.3.4" + execa "7.2.0" + lilconfig "2.1.0" + listr2 "6.6.1" + micromatch "4.0.5" + pidtree "0.6.0" + string-argv "0.3.2" + yaml "2.3.1" + +listr2@6.6.1: + version "6.6.1" + resolved "https://registry.yarnpkg.com/listr2/-/listr2-6.6.1.tgz#08b2329e7e8ba6298481464937099f4a2cd7f95d" + integrity sha512-+rAXGHh0fkEWdXBmX+L6mmfmXmXvDGEKzkjxO+8mP3+nI/r/CWznVBvsibXdxda9Zz0OW2e2ikphN3OwCT/jSg== + dependencies: + cli-truncate "^3.1.0" + colorette "^2.0.20" + eventemitter3 "^5.0.1" + log-update "^5.0.1" + rfdc "^1.3.0" + wrap-ansi "^8.1.0" + +load-json-file@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/load-json-file/-/load-json-file-4.0.0.tgz#2f5f45ab91e33216234fd53adab668eb4ec0993b" + integrity sha512-Kx8hMakjX03tiGTLAIdJ+lL0htKnXjEZN6hk/tozf/WOuYGdZBJrZ+rCJRbVCugsjB3jMLn9746NsQIf5VjBMw== + dependencies: + graceful-fs "^4.1.2" + parse-json "^4.0.0" + pify "^3.0.0" + strip-bom "^3.0.0" + +loader-runner@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/loader-runner/-/loader-runner-4.3.0.tgz#c1b4a163b99f614830353b16755e7149ac2314e1" + integrity sha512-3R/1M+yS3j5ou80Me59j7F9IMs4PXs3VqRrm0TU3AbKPxlmpoY1TNscJV/oGJXo8qCatFGTfDbY6W6ipGOYXfg== + +loader-utils@3.2.1: + version "3.2.1" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-3.2.1.tgz#4fb104b599daafd82ef3e1a41fb9265f87e1f576" + integrity sha512-ZvFw1KWS3GVyYBYb7qkmRM/WwL2TQQBxgCK62rlvm4WpVQ23Nb4tYjApUlfjrEGvOs7KHEsmyUn75OHZrJMWPw== + +loader-utils@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/loader-utils/-/loader-utils-2.0.4.tgz#8b5cb38b5c34a9a018ee1fc0e6a066d1dfcc528c" + integrity sha512-xXqpXoINfFhgua9xiqD8fPFHgkoq1mmmpE92WlDbm9rNRd/EbRb+Gqf908T2DMfuHjjJlksiK2RbHVOdD/MqSw== + dependencies: + big.js "^5.2.2" + emojis-list "^3.0.0" + json5 "^2.1.2" + +loadjs@^4.2.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/loadjs/-/loadjs-4.3.0.tgz#38c578cbb2e08835aa4407bd4ac6507dd1f7ed10" + integrity sha512-vNX4ZZLJBeDEOBvdr2v/F+0aN5oMuPu7JTqrMwp+DtgK+AryOlpy6Xtm2/HpNr+azEa828oQjOtWsB6iDtSfSQ== + +locate-path@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-2.0.0.tgz#2b568b265eec944c6d9c0de9c3dbbbca0354cd8e" + integrity sha512-NCI2kiDkyR7VeEKm27Kda/iQHyKJe1Bu0FlTbYp3CqJu+9IFe9bLyAjMxf5ZDDbEg+iMPzB5zYyUTSm8wVTKmA== + dependencies: + p-locate "^2.0.0" + path-exists "^3.0.0" + +locate-path@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-5.0.0.tgz#1afba396afd676a6d42504d0a67a3a7eb9f62aa0" + integrity sha512-t7hw9pI+WvuwNJXwk5zVHpyhIqzg2qTlklJOf0mVxGSbe3Fp2VieZcduNYjaLDoy6p9uGpQEGWG87WpMKlNq8g== + dependencies: + p-locate "^4.1.0" + +locate-path@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-6.0.0.tgz#55321eb309febbc59c4801d931a72452a681d286" + integrity sha512-iPZK6eYjbxRu3uB4/WZ3EsEIMJFMqAoopl3R+zuq0UjcAm/MO6KCweDgPfP3elTztoKP3KtnVHxTn2NHBSDVUw== + dependencies: + p-locate "^5.0.0" + +locate-path@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/locate-path/-/locate-path-7.2.0.tgz#69cb1779bd90b35ab1e771e1f2f89a202c2a8a8a" + integrity sha512-gvVijfZvn7R+2qyPX8mAuKcFGDf6Nc61GdvGafQsHL0sBIxfKzA+usWn4GFC/bk+QdwPUD4kWFJLhElipq+0VA== + dependencies: + p-locate "^6.0.0" + +lodash.debounce@^4.0.8: + version "4.0.8" + resolved "https://registry.yarnpkg.com/lodash.debounce/-/lodash.debounce-4.0.8.tgz#82d79bff30a67c4005ffd5e2515300ad9ca4d7af" + integrity sha512-FT1yDzDYEoYWhnSGnpE/4Kj1fLZkDFyqRb7fNt6FdYOSxlUWAtp42Eh6Wb0rGIv/m9Bgo7x4GhQbm5Ys4SG5ow== + +lodash.merge@^4.6.2: + version "4.6.2" + resolved "https://registry.yarnpkg.com/lodash.merge/-/lodash.merge-4.6.2.tgz#558aa53b43b661e1925a0afdfa36a9a1085fe57a" + integrity sha512-0KpjqXRVvrYyCsX1swR/XTK0va6VQkQM6MNo7PqW77ByjAhoARA8EfrP1N4+KlKj8YS0ZUCtRT/YUuhyYDujIQ== + +lodash.truncate@^4.4.2: + version "4.4.2" + resolved "https://registry.yarnpkg.com/lodash.truncate/-/lodash.truncate-4.4.2.tgz#5a350da0b1113b837ecfffd5812cbe58d6eae193" + integrity sha512-jttmRe7bRse52OsWIMDLaXxWqRAmtIUccAQ3garviCqJjafXOfNMO0yMfNpdD6zbGaTU0P5Nz7e7gAT6cKmJRw== + +lodash@4.17.21, lodash@^4.17.10, lodash@^4.17.11, lodash@^4.17.14, lodash@^4.17.20, lodash@^4.17.21, lodash@^4.17.4: + version "4.17.21" + resolved "https://registry.yarnpkg.com/lodash/-/lodash-4.17.21.tgz#679591c564c3bffaae8454cf0b3df370c3d6911c" + integrity sha512-v2kDEe57lecTulaDIuNTPy3Ry4gLGJ6Z1O3vE1krgXZNrsQ+LFTGHVxVjcXPs17LhbZVGedAJv8XZ1tvj5FvSg== + +log-symbols@^2.0.0, log-symbols@^2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-2.2.0.tgz#5740e1c5d6f0dfda4ad9323b5332107ef6b4c40a" + integrity sha512-VeIAFslyIerEJLXHziedo2basKbMKtTw3vfn5IzG0XTjhAVEJyNHnL2p7vc+wBDSdQuUpNw3M2u6xb9QsAY5Eg== + dependencies: + chalk "^2.0.1" + +log-symbols@^4.0.0, log-symbols@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/log-symbols/-/log-symbols-4.1.0.tgz#3fbdbb95b4683ac9fc785111e792e558d4abd503" + integrity sha512-8XPvpAA8uyhfteu8pIvQxpJZ7SYYdpUivZpGy6sFsBuKRY/7rQGavedeB8aK+Zkyq6upMFVL/9AW6vOYzfRyLg== + dependencies: + chalk "^4.1.0" + is-unicode-supported "^0.1.0" + +log-update@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/log-update/-/log-update-5.0.1.tgz#9e928bf70cb183c1f0c9e91d9e6b7115d597ce09" + integrity sha512-5UtUDQ/6edw4ofyljDNcOVJQ4c7OjDro4h3y8e1GQL5iYElYclVHJ3zeWchylvMaKnDbDilC8irOVyexnA/Slw== + dependencies: + ansi-escapes "^5.0.0" + cli-cursor "^4.0.0" + slice-ansi "^5.0.0" + strip-ansi "^7.0.1" + wrap-ansi "^8.0.1" + +log4js@^6.4.1: + version "6.9.1" + resolved "https://registry.yarnpkg.com/log4js/-/log4js-6.9.1.tgz#aba5a3ff4e7872ae34f8b4c533706753709e38b6" + integrity sha512-1somDdy9sChrr9/f4UlzhdaGfDR2c/SaD2a4T7qEkG4jTS57/B3qmnjLYePwQ8cqWnUHZI0iAKxMBpCZICiZ2g== + dependencies: + date-format "^4.0.14" + debug "^4.3.4" + flatted "^3.2.7" + rfdc "^1.3.0" + streamroller "^3.1.5" + +longest-streak@^2.0.1: + version "2.0.4" + resolved "https://registry.yarnpkg.com/longest-streak/-/longest-streak-2.0.4.tgz#b8599957da5b5dab64dee3fe316fa774597d90e4" + integrity sha512-vM6rUVCVUJJt33bnmHiZEvr7wPT78ztX7rojL+LW51bHtLh6HTjx84LA5W4+oa6aKEJA7jJu5LR6vQRBpA5DVg== + +loud-rejection@^1.0.0: + version "1.6.0" + resolved "https://registry.yarnpkg.com/loud-rejection/-/loud-rejection-1.6.0.tgz#5b46f80147edee578870f086d04821cf998e551f" + integrity sha512-RPNliZOFkqFumDhvYqOaNY4Uz9oJM2K9tC6JWsJJsNdhuONW4LQHRBpb0qf4pJApVffI5N39SwzWZJuEhfd7eQ== + dependencies: + currently-unhandled "^0.4.1" + signal-exit "^3.0.0" + +lru-cache@^10.0.1, lru-cache@^10.2.0: + version "10.4.3" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-10.4.3.tgz#410fc8a17b70e598013df257c2446b7f3383f119" + integrity sha512-JNAzZcXrCt42VGLuYz0zfAzDfAvJWW6AfYlDBQyDV5DClI2m5sAmK+OIO7s59XfsRsWHp02jAJrRadPRGTt6SQ== + +lru-cache@^5.1.1: + version "5.1.1" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-5.1.1.tgz#1da27e6710271947695daf6848e847f01d84b920" + integrity sha512-KpNARQA3Iwv+jTA0utUVVbrh+Jlrr1Fv0e56GGzAFOXN7dk/FviaDW8LHmK52DlcH4WP2n6gI8vN1aesBFgo9w== + dependencies: + yallist "^3.0.2" + +lru-cache@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/lru-cache/-/lru-cache-6.0.0.tgz#6d6fe6570ebd96aaf90fcad1dafa3b2566db3a94" + integrity sha512-Jo6dJ04CmSjuznwJSS3pUeWmd/H0ffTlkXXgwZi+eq1UCmqQwCh+eLsYOYCwY991i2Fah4h1BEMCx4qThGbsiA== + dependencies: + yallist "^4.0.0" + +magic-string@0.30.8: + version "0.30.8" + resolved "https://registry.yarnpkg.com/magic-string/-/magic-string-0.30.8.tgz#14e8624246d2bedba70d5462aa99ac9681844613" + integrity sha512-ISQTe55T2ao7XtlAStud6qwYPZjE4GK1S/BeVPus4jrq6JuOnQ00YKQC581RWhR122W7msZV263KzVeLoqidyQ== + dependencies: + "@jridgewell/sourcemap-codec" "^1.4.15" + +make-dir@3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-3.1.0.tgz#415e967046b3a7f1d185277d84aa58203726a13f" + integrity sha512-g3FeP20LNwhALb/6Cz6Dd4F2ngze0jz7tbzrD2wAV+o9FeNHe4rL+yK2md0J/fiSf1sa1ADhXqi5+oVwOM/eGw== + dependencies: + semver "^6.0.0" + +make-dir@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-2.1.0.tgz#5f0310e18b8be898cc07009295a30ae41e91e6f5" + integrity sha512-LS9X+dc8KLxXCb8dni79fLIIUA5VyZoyjSMCwTluaXA0o27cCK0bhXkpgw+sTXVpPy/lSO57ilRixqk0vDmtRA== + dependencies: + pify "^4.0.1" + semver "^5.6.0" + +make-dir@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/make-dir/-/make-dir-4.0.0.tgz#c3c2307a771277cd9638305f915c29ae741b614e" + integrity sha512-hXdUTZYIVOt1Ex//jAQi+wTZZpUpwBj/0QsOzqegb3rGMMeJiSEu5xLHnYfBrRV4RH2+OCSOO95Is/7x1WJ4bw== + dependencies: + semver "^7.5.3" + +make-error@^1.1.1: + version "1.3.6" + resolved "https://registry.yarnpkg.com/make-error/-/make-error-1.3.6.tgz#2eb2e37ea9b67c4891f684a1394799af484cf7a2" + integrity sha512-s8UhlNe7vPKomQhC1qFelMokr/Sc3AgNbso3n74mVPA5LTZwkB9NlXf4XPamLxJE8h0gh73rM94xvwRT2CVInw== + +make-fetch-happen@^13.0.0, make-fetch-happen@^13.0.1: + version "13.0.1" + resolved "https://registry.yarnpkg.com/make-fetch-happen/-/make-fetch-happen-13.0.1.tgz#273ba2f78f45e1f3a6dca91cede87d9fa4821e36" + integrity sha512-cKTUFc/rbKUd/9meOvgrpJ2WrNzymt6jfRDdwg5UCnVzv9dTpEj9JS5m3wtziXVCjluIXyL8pcaukYqezIzZQA== + dependencies: + "@npmcli/agent" "^2.0.0" + cacache "^18.0.0" + http-cache-semantics "^4.1.1" + is-lambda "^1.0.1" + minipass "^7.0.2" + minipass-fetch "^3.0.0" + minipass-flush "^1.0.5" + minipass-pipeline "^1.2.4" + negotiator "^0.6.3" + proc-log "^4.2.0" + promise-retry "^2.0.1" + ssri "^10.0.0" + +map-cache@^0.2.2: + version "0.2.2" + resolved "https://registry.yarnpkg.com/map-cache/-/map-cache-0.2.2.tgz#c32abd0bd6525d9b051645bb4f26ac5dc98a0dbf" + integrity sha512-8y/eV9QQZCiyn1SprXSrCmqJN0yNRATe+PO8ztwqrvrbdRLA3eYJF0yaR0YayLWkMbsQSKWS9N2gPcGEc4UsZg== + +map-obj@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-1.0.1.tgz#d933ceb9205d82bdcf4886f6742bdc2b4dea146d" + integrity sha512-7N/q3lyZ+LVCp7PzuxrJr4KMbBE2hW7BT7YNia330OFxIf4d3r5zVpicP2650l7CPN6RM9zOJRl3NGpqSiw3Eg== + +map-obj@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-2.0.0.tgz#a65cd29087a92598b8791257a523e021222ac1f9" + integrity sha512-TzQSV2DiMYgoF5RycneKVUzIa9bQsj/B3tTgsE3dOGqlzHnGIDaC7XBE7grnA+8kZPnfqSGFe95VHc2oc0VFUQ== + +map-obj@^4.0.0: + version "4.3.0" + resolved "https://registry.yarnpkg.com/map-obj/-/map-obj-4.3.0.tgz#9304f906e93faae70880da102a9f1df0ea8bb05a" + integrity sha512-hdN1wVrZbb29eBGiGjJbeP8JbKjq1urkHJ/LIP/NY48MZ1QVXUsQBV1G1zvYFHn1XE06cwjBsOI2K3Ulnj1YXQ== + +map-visit@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/map-visit/-/map-visit-1.0.0.tgz#ecdca8f13144e660f1b5bd41f12f3479d98dfb8f" + integrity sha512-4y7uGv8bd2WdM9vpQsiQNo41Ln1NvhvDRuVt0k2JZQ+ezN2uaQes7lZeZ+QQUHOLQAtDaBJ+7wCbi+ab/KFs+w== + dependencies: + object-visit "^1.0.0" + +markdown-escapes@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/markdown-escapes/-/markdown-escapes-1.0.4.tgz#c95415ef451499d7602b91095f3c8e8975f78535" + integrity sha512-8z4efJYk43E0upd0NbVXwgSTQs6cT3T06etieCMEg7dRbzCbxUCK/GHlX8mhHRDcp+OLlHkPKsvqQTCvsRl2cg== + +markdown-table@^1.1.0: + version "1.1.3" + resolved "https://registry.yarnpkg.com/markdown-table/-/markdown-table-1.1.3.tgz#9fcb69bcfdb8717bfd0398c6ec2d93036ef8de60" + integrity sha512-1RUZVgQlpJSPWYbFSpmudq5nHY1doEIv89gBtF0s4gW1GF2XorxcA/70M5vq7rLv0a6mhOUccRsqkwhwLCIQ2Q== + +mathml-tag-names@^2.0.1, mathml-tag-names@^2.1.3: + version "2.1.3" + resolved "https://registry.yarnpkg.com/mathml-tag-names/-/mathml-tag-names-2.1.3.tgz#4ddadd67308e780cf16a47685878ee27b736a0a3" + integrity sha512-APMBEanjybaPzUrfqU0IMU5I0AswKMH7k8OTLs0vvV4KZpExkTkY87nR/zpbuTPj+gARop7aGUbl11pnDfW6xg== + +mdast-util-compact@^1.0.0: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mdast-util-compact/-/mdast-util-compact-1.0.4.tgz#d531bb7667b5123abf20859be086c4d06c894593" + integrity sha512-3YDMQHI5vRiS2uygEFYaqckibpJtKq5Sj2c8JioeOQBU6INpKbdWzfyLqFFnDwEcEnRFIdMsguzs5pC1Jp4Isg== + dependencies: + unist-util-visit "^1.1.0" + +media-typer@0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/media-typer/-/media-typer-0.3.0.tgz#8710d7af0aa626f8fffa1ce00168545263255748" + integrity sha512-dq+qelQ9akHpcOl/gUVRTxVIOkAJ1wR3QAvb4RsVjS8oVoFjDGTc679wJYmUmknUF5HwMLOgb5O+a3KxfWapPQ== + +memfs@^3.4.12, memfs@^3.4.3: + version "3.6.0" + resolved "https://registry.yarnpkg.com/memfs/-/memfs-3.6.0.tgz#d7a2110f86f79dd950a8b6df6d57bc984aa185f6" + integrity sha512-EGowvkkgbMcIChjMTMkESFDbZeSh8xZ7kNSF0hAiAN4Jh6jgHCRS0Ga/+C8y6Au+oqpezRHCfPsmJ2+DwAgiwQ== + dependencies: + fs-monkey "^1.0.4" + +meow@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-5.0.0.tgz#dfc73d63a9afc714a5e371760eb5c88b91078aa4" + integrity sha512-CbTqYU17ABaLefO8vCU153ZZlprKYWDljcndKKDCFcYQITzWCXZAVk4QMFZPgvzrnUQ3uItnIE/LoUOwrT15Ig== + dependencies: + camelcase-keys "^4.0.0" + decamelize-keys "^1.0.0" + loud-rejection "^1.0.0" + minimist-options "^3.0.1" + normalize-package-data "^2.3.4" + read-pkg-up "^3.0.0" + redent "^2.0.0" + trim-newlines "^2.0.0" + yargs-parser "^10.0.0" + +meow@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/meow/-/meow-9.0.0.tgz#cd9510bc5cac9dee7d03c73ee1f9ad959f4ea364" + integrity sha512-+obSblOQmRhcyBt62furQqRAQpNyWXo8BuQ5bN7dG8wmwQ+vwHKp/rCFD4CrTP8CsDQD1sjoZ94K417XEUk8IQ== + dependencies: + "@types/minimist" "^1.2.0" + camelcase-keys "^6.2.2" + decamelize "^1.2.0" + decamelize-keys "^1.1.0" + hard-rejection "^2.1.0" + minimist-options "4.1.0" + normalize-package-data "^3.0.0" + read-pkg-up "^7.0.1" + redent "^3.0.0" + trim-newlines "^3.0.0" + type-fest "^0.18.0" + yargs-parser "^20.2.3" + +merge-descriptors@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/merge-descriptors/-/merge-descriptors-1.0.1.tgz#b00aaa556dd8b44568150ec9d1b953f3f90cbb61" + integrity sha512-cCi6g3/Zr1iqQi6ySbseM1Xvooa98N0w31jzUYrXPX2xqObmFGHJ0tQ5u74H3mVh7wLouTseZyYIq39g8cNp1w== + +merge-stream@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/merge-stream/-/merge-stream-2.0.0.tgz#52823629a14dd00c9770fb6ad47dc6310f2c1f60" + integrity sha512-abv/qOcuPfk3URPfDzmZU1LKmuw8kT+0nIHvKrKgFrwifol/doWcdA4ZqsWQ8ENrFKkd67Mfpo/LovbIUsbt3w== + +merge2@^1.2.3, merge2@^1.3.0, merge2@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/merge2/-/merge2-1.4.1.tgz#4368892f885e907455a6fd7dc55c0c9d404990ae" + integrity sha512-8q7VEgMJW4J8tcfVPy8g09NcQwZdbwFEqhe/WZkoIzjn/3TGDwtOCYtXGxA3O8tPzpczCCDgv+P2P5y00ZJOOg== + +methods@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/methods/-/methods-1.1.2.tgz#5529a4d67654134edcc5266656835b0f851afcee" + integrity sha512-iclAHeNqNm68zFtnZ0e+1L2yUIdvzNoauKU4WBA3VvH/vPFieF7qfRlwUZU+DA9P9bPXIS90ulxoUoCH23sV2w== + +micromatch@4.0.5: + version "4.0.5" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.5.tgz#bc8999a7cbbf77cdc89f132f6e467051b49090c6" + integrity sha512-DMy+ERcEW2q8Z2Po+WNXuw3c5YaUSFjAO5GsJqfEl7UjvtIuFKO6ZrKvcItdy98dwFI2N1tg3zNIdKaQT+aNdA== + dependencies: + braces "^3.0.2" + picomatch "^2.3.1" + +micromatch@^3.1.10: + version "3.1.10" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-3.1.10.tgz#70859bc95c9840952f359a068a3fc49f9ecfac23" + integrity sha512-MWikgl9n9M3w+bpsY3He8L+w9eF9338xRl8IAO5viDizwSzziFEyUzo2xrrloB64ADbTf8uA8vRqqttDTOmccg== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + braces "^2.3.1" + define-property "^2.0.2" + extend-shallow "^3.0.2" + extglob "^2.0.4" + fragment-cache "^0.2.1" + kind-of "^6.0.2" + nanomatch "^1.2.9" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.2" + +micromatch@^4.0.2, micromatch@^4.0.4, micromatch@^4.0.5: + version "4.0.7" + resolved "https://registry.yarnpkg.com/micromatch/-/micromatch-4.0.7.tgz#33e8190d9fe474a9895525f5618eee136d46c2e5" + integrity sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q== + dependencies: + braces "^3.0.3" + picomatch "^2.3.1" + +mime-db@1.52.0: + version "1.52.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.52.0.tgz#bbabcdc02859f4987301c856e3387ce5ec43bf70" + integrity sha512-sPU4uV7dYlvtWJxwwxHD0PuihVNiE7TyAbQ5SWxDCB9mUYvOgroQOwYQQOKPJ8CIbE+1ETVlOoK1UC2nU3gYvg== + +"mime-db@>= 1.43.0 < 2": + version "1.53.0" + resolved "https://registry.yarnpkg.com/mime-db/-/mime-db-1.53.0.tgz#3cb63cd820fc29896d9d4e8c32ab4fcd74ccb447" + integrity sha512-oHlN/w+3MQ3rba9rqFr6V/ypF10LSkdwUysQL7GkXoTgIWeV+tcXGA852TBxH+gsh8UWoyhR1hKcoMJTuWflpg== + +mime-types@^2.1.12, mime-types@^2.1.27, mime-types@^2.1.31, mime-types@~2.1.17, mime-types@~2.1.19, mime-types@~2.1.24, mime-types@~2.1.34: + version "2.1.35" + resolved "https://registry.yarnpkg.com/mime-types/-/mime-types-2.1.35.tgz#381a871b62a734450660ae3deee44813f70d959a" + integrity sha512-ZDY+bPm5zTTF+YpCrAU9nK0UgICYPT0QtT1NZWFv4s++TNkcgVaT0g6+4R2uI4MjQjzysHB1zxuWL50hzaeXiw== + dependencies: + mime-db "1.52.0" + +mime@1.6.0, mime@^1.4.1: + version "1.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-1.6.0.tgz#32cd9e5c64553bd58d19a568af452acff04981b1" + integrity sha512-x0Vn8spI+wuJ1O6S7gnbaQg8Pxh4NNHb7KSINmEWKiPE4RKOplvijn+NkmYmmRgP68mc70j2EbeTFRsrswaQeg== + +mime@^2.5.2: + version "2.6.0" + resolved "https://registry.yarnpkg.com/mime/-/mime-2.6.0.tgz#a2a682a95cd4d0cb1d6257e28f83da7e35800367" + integrity sha512-USPkMeET31rOMiarsBNIHZKLGgvKc/LrjofAnBlOttf5ajRvqiRA8QsenbcooctK6d6Ts6aqZXBA+XbkKthiQg== + +mimic-fn@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-2.1.0.tgz#7ed2c2ccccaf84d3ffcb7a69b57711fc2083401b" + integrity sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg== + +mimic-fn@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/mimic-fn/-/mimic-fn-4.0.0.tgz#60a90550d5cb0b239cca65d893b1a53b29871ecc" + integrity sha512-vqiC06CuhBTUdZH+RYl8sFrL096vA45Ok5ISO6sE/Mr1jRbGH4Csnhi8f3wKVl7x8mO4Au7Ir9D3Oyv1VYMFJw== + +min-indent@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/min-indent/-/min-indent-1.0.1.tgz#a63f681673b30571fbe8bc25686ae746eefa9869" + integrity sha512-I9jwMn07Sy/IwOj3zVkVik2JTvgpaykDZEigL6Rx6N9LbMywwUSMtxET+7lVoDLLd3O3IXwJwvuuns8UB/HeAg== + +mini-css-extract-plugin@2.8.1: + version "2.8.1" + resolved "https://registry.yarnpkg.com/mini-css-extract-plugin/-/mini-css-extract-plugin-2.8.1.tgz#75245f3f30ce3a56dbdd478084df6fe475f02dc7" + integrity sha512-/1HDlyFRxWIZPI1ZpgqlZ8jMw/1Dp/dl3P0L1jtZ+zVcHqwPhGwaJwKL00WVgfnBy6PWCde9W65or7IIETImuA== + dependencies: + schema-utils "^4.0.0" + tapable "^2.2.1" + +minimalistic-assert@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minimalistic-assert/-/minimalistic-assert-1.0.1.tgz#2e194de044626d4a10e7f7fbc00ce73e83e4d5c7" + integrity sha512-UtJcAD4yEaGtjPezWuO9wC4nwUnVH/8/Im3yEHQP4b67cXlD/Qr9hdITCU1xDbSEXg2XKNaP8jsReV7vQd00/A== + +minimatch@9.0.3: + version "9.0.3" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.3.tgz#a6e00c3de44c3a542bfaae70abfc22420a6da825" + integrity sha512-RHiac9mvaRw0x3AYRgDC1CxAP7HTcNrrECeA8YYJeWnpo+2Q5CegtZjaotWTWxDG3UeGA1coE05iH1mPjT/2mg== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^3.0.4, minimatch@^3.0.5, minimatch@^3.1.1, minimatch@^3.1.2: + version "3.1.2" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-3.1.2.tgz#19cd194bfd3e428f049a70817c038d89ab4be35b" + integrity sha512-J7p63hRiAjw1NDEww1W7i37+ByIrOWO5XQQAzZ3VOcL0PNybwpfmV/N05zFAzwQ9USyEcX6t3UO+K5aqBQOIHw== + dependencies: + brace-expansion "^1.1.7" + +minimatch@^5.0.1: + version "5.1.6" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-5.1.6.tgz#1cfcb8cf5522ea69952cd2af95ae09477f122a96" + integrity sha512-lKwV/1brpG6mBUFHtb7NUmtABCb2WZZmm2wNiOA5hAb8VdCS4B3dtMWyvcoViccwAW/COERjXLt0zP1zXUN26g== + dependencies: + brace-expansion "^2.0.1" + +minimatch@^9.0.0, minimatch@^9.0.4: + version "9.0.5" + resolved "https://registry.yarnpkg.com/minimatch/-/minimatch-9.0.5.tgz#d74f9dd6b57d83d8e98cfb82133b03978bc929e5" + integrity sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow== + dependencies: + brace-expansion "^2.0.1" + +minimist-options@4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-4.1.0.tgz#c0655713c53a8a2ebd77ffa247d342c40f010619" + integrity sha512-Q4r8ghd80yhO/0j1O3B2BjweX3fiHg9cdOwjJd2J76Q135c+NDxGCqdYKQ1SKBuFfgWbAUzBfvYjPUEeNgqN1A== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + kind-of "^6.0.3" + +minimist-options@^3.0.1: + version "3.0.2" + resolved "https://registry.yarnpkg.com/minimist-options/-/minimist-options-3.0.2.tgz#fba4c8191339e13ecf4d61beb03f070103f3d954" + integrity sha512-FyBrT/d0d4+uiZRbqznPXqw3IpZZG3gl3wKWiX784FycUKVwBt0uLBFkQrtE4tZOrgo78nZp2jnKz3L65T5LdQ== + dependencies: + arrify "^1.0.1" + is-plain-obj "^1.1.0" + +minimist@^1.2.0, minimist@^1.2.5, minimist@^1.2.6: + version "1.2.8" + resolved "https://registry.yarnpkg.com/minimist/-/minimist-1.2.8.tgz#c1a464e7693302e082a075cee0c057741ac4772c" + integrity sha512-2yyAR8qBkN3YuheJanUpWC5U3bb5osDywNB8RzDVlDwDHbocAJveqqj1u8+SVD7jkWT4yvsHCpWqqWqAxb0zCA== + +minipass-collect@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/minipass-collect/-/minipass-collect-2.0.1.tgz#1621bc77e12258a12c60d34e2276ec5c20680863" + integrity sha512-D7V8PO9oaz7PWGLbCACuI1qEOsq7UKfLotx/C0Aet43fCUB/wfQ7DYeq2oR/svFJGYDHPr38SHATeaj/ZoKHKw== + dependencies: + minipass "^7.0.3" + +minipass-fetch@^3.0.0: + version "3.0.5" + resolved "https://registry.yarnpkg.com/minipass-fetch/-/minipass-fetch-3.0.5.tgz#f0f97e40580affc4a35cc4a1349f05ae36cb1e4c" + integrity sha512-2N8elDQAtSnFV0Dk7gt15KHsS0Fyz6CbYZ360h0WTYV1Ty46li3rAXVOQj1THMNLdmrD9Vt5pBPtWtVkpwGBqg== + dependencies: + minipass "^7.0.3" + minipass-sized "^1.0.3" + minizlib "^2.1.2" + optionalDependencies: + encoding "^0.1.13" + +minipass-flush@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/minipass-flush/-/minipass-flush-1.0.5.tgz#82e7135d7e89a50ffe64610a787953c4c4cbb373" + integrity sha512-JmQSYYpPUqX5Jyn1mXaRwOda1uQ8HP5KAT/oDSLCzt1BYRhQU0/hDtsB1ufZfEEzMZ9aAVmsBw8+FWsIXlClWw== + dependencies: + minipass "^3.0.0" + +minipass-json-stream@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/minipass-json-stream/-/minipass-json-stream-1.0.1.tgz#7edbb92588fbfc2ff1db2fc10397acb7b6b44aa7" + integrity sha512-ODqY18UZt/I8k+b7rl2AENgbWE8IDYam+undIJONvigAz8KR5GWblsFTEfQs0WODsjbSXWlm+JHEv8Gr6Tfdbg== + dependencies: + jsonparse "^1.3.1" + minipass "^3.0.0" + +minipass-pipeline@^1.2.4: + version "1.2.4" + resolved "https://registry.yarnpkg.com/minipass-pipeline/-/minipass-pipeline-1.2.4.tgz#68472f79711c084657c067c5c6ad93cddea8214c" + integrity sha512-xuIq7cIOt09RPRJ19gdi4b+RiNvDFYe5JH+ggNvBqGqpQXcru3PcRmOZuHBKWK1Txf9+cQ+HMVN4d6z46LZP7A== + dependencies: + minipass "^3.0.0" + +minipass-sized@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/minipass-sized/-/minipass-sized-1.0.3.tgz#70ee5a7c5052070afacfbc22977ea79def353b70" + integrity sha512-MbkQQ2CTiBMlA2Dm/5cY+9SWFEN8pzzOXi6rlM5Xxq0Yqbda5ZQy9sU75a673FE9ZK0Zsbr6Y5iP6u9nktfg2g== + dependencies: + minipass "^3.0.0" + +minipass@^3.0.0: + version "3.3.6" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-3.3.6.tgz#7bba384db3a1520d18c9c0e5251c3444e95dd94a" + integrity sha512-DxiNidxSEK+tHG6zOIklvNOwm3hvCrbUrdtzY74U6HKTJxvIDfOUL5W5P2Ghd3DTkhhKPYGqeNUIh5qcM4YBfw== + dependencies: + yallist "^4.0.0" + +minipass@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-5.0.0.tgz#3e9788ffb90b694a5d0ec94479a45b5d8738133d" + integrity sha512-3FnjYuehv9k6ovOEbyOswadCDPX1piCfhV8ncmYtHOjuPwylVWsghTLo7rabjC3Rx5xD4HDx8Wm1xnMF7S5qFQ== + +"minipass@^5.0.0 || ^6.0.2 || ^7.0.0", minipass@^7.0.2, minipass@^7.0.3, minipass@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/minipass/-/minipass-7.1.2.tgz#93a9626ce5e5e66bd4db86849e7515e92340a707" + integrity sha512-qOOzS1cBTWYF4BH8fVePDBOO9iptMnGUEZwNc/cMWnTV2nVLZ7VoNWEPHkYczZA0pdoA7dl6e7FL659nX9S2aw== + +minizlib@^2.1.1, minizlib@^2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/minizlib/-/minizlib-2.1.2.tgz#e90d3466ba209b932451508a11ce3d3632145931" + integrity sha512-bAxsR8BVfj60DWXHE3u30oHzfl4G7khkSuPW+qvpd7jFRHm7dLxOjUk1EHACJ/hxLY8phGJ0YhYHZo7jil7Qdg== + dependencies: + minipass "^3.0.0" + yallist "^4.0.0" + +mixin-deep@^1.2.0: + version "1.3.2" + resolved "https://registry.yarnpkg.com/mixin-deep/-/mixin-deep-1.3.2.tgz#1120b43dc359a785dce65b55b82e257ccf479566" + integrity sha512-WRoDn//mXBiJ1H40rqa3vH0toePwSsGb45iInWlTySa+Uu4k3tYUSxa2v1KqAiLtvlrSzaExqS1gtk96A9zvEA== + dependencies: + for-in "^1.0.2" + is-extendable "^1.0.1" + +mkdirp@^0.5.1, mkdirp@^0.5.5: + version "0.5.6" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-0.5.6.tgz#7def03d2432dcae4ba1d611445c48396062255f6" + integrity sha512-FP+p8RB8OWpF3YZBCrP5gtADmtXApB5AMLn+vdyA+PyxCjrCs00mjyUozssO33cwDeT3wNGdLxJ5M//YqtHAJw== + dependencies: + minimist "^1.2.6" + +mkdirp@^1.0.3: + version "1.0.4" + resolved "https://registry.yarnpkg.com/mkdirp/-/mkdirp-1.0.4.tgz#3eb5ed62622756d79a5f0e2a221dfebad75c2f7e" + integrity sha512-vVqVZQyf3WLx2Shd0qJ9xuvqgAyKPLAiqITEtqW0oIUjzo3PePDd6fW9iFz30ef7Ysp/oiWqbhszeGWW2T6Gzw== + +mockjs@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/mockjs/-/mockjs-1.1.0.tgz#e6a0c378e91906dbaff20911cc0273b3c7d75b06" + integrity sha512-eQsKcWzIaZzEZ07NuEyO4Nw65g0hdWAyurVol1IPl1gahRwY+svqzfgfey8U8dahLwG44d6/RwEzuK52rSa/JQ== + dependencies: + commander "*" + +monaco-editor@0.36.1: + version "0.36.1" + resolved "https://registry.yarnpkg.com/monaco-editor/-/monaco-editor-0.36.1.tgz#aad528c815605307473a1634612946921d8079b5" + integrity sha512-/CaclMHKQ3A6rnzBzOADfwdSJ25BFoFT0Emxsc4zYVyav5SkK9iA6lEtIeuN/oRYbwPgviJT+t3l+sjFa28jYg== + +mrmime@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/mrmime/-/mrmime-2.0.0.tgz#151082a6e06e59a9a39b46b3e14d5cfe92b3abb4" + integrity sha512-eu38+hdgojoyq63s+yTpN4XMBdt5l8HhMhc4VKLO9KM5caLIBvUm4thi7fFaxyTmCKeNnXZ5pAlBwCUnhA09uw== + +ms@2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.0.0.tgz#5608aeadfc00be6c2901df5f9861788de0d597c8" + integrity sha512-Tpp60P6IUJDTuOq/5Z8cdskzJujfwqfOTkrwIwj7IRISpnkJnT6SyJ4PCPnGMoFjC9ddhal5KVIYtAt97ix05A== + +ms@2.1.2: + version "2.1.2" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.2.tgz#d09d1f357b443f493382a8eb3ccd183872ae6009" + integrity sha512-sGkPx+VjMtmA6MX27oA4FBFELFCZZ4S4XqeGOXCv68tT+jb3vk/RyaKWP0PTKyWtmLSM0b+adUTEvbs1PEaH2w== + +ms@2.1.3, ms@^2.1.1: + version "2.1.3" + resolved "https://registry.yarnpkg.com/ms/-/ms-2.1.3.tgz#574c8138ce1d2b5861f0b44579dbadd60c6615b2" + integrity sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA== + +multicast-dns@^7.2.5: + version "7.2.5" + resolved "https://registry.yarnpkg.com/multicast-dns/-/multicast-dns-7.2.5.tgz#77eb46057f4d7adbd16d9290fa7299f6fa64cced" + integrity sha512-2eznPJP8z2BFLX50tf0LuODrpINqP1RVIm/CObbTcBRITQgmC/TjcREF1NeTBzIcR5XO/ukWo+YHOjBbFwIupg== + dependencies: + dns-packet "^5.2.2" + thunky "^1.0.2" + +mute-stream@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/mute-stream/-/mute-stream-1.0.0.tgz#e31bd9fe62f0aed23520aa4324ea6671531e013e" + integrity sha512-avsJQhyd+680gKXyG/sQc0nXaC6rBkPOfyHYcFb9+hdkqQkR9bdnkJ0AMZhke0oesPqIO+mFFJ+IdBc7mst4IA== + +nanoid@3.3.4: + version "3.3.4" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.4.tgz#730b67e3cd09e2deacf03c027c81c9d9dbc5e8ab" + integrity sha512-MqBkQh/OHTS2egovRtLk45wEyNXwF+cokD+1YPf9u5VfJiRdAiRwB2froX5Co9Rh20xs4siNPm8naNotSD6RBw== + +nanoid@^3.3.7: + version "3.3.7" + resolved "https://registry.yarnpkg.com/nanoid/-/nanoid-3.3.7.tgz#d0c301a691bc8d54efa0a2226ccf3fe2fd656bd8" + integrity sha512-eSRppjcPIatRIMC1U6UngP8XFcz8MQWGQdt1MTBQ7NaAmvXDfvNxbvWV3x2y6CdEUciCSsDHDQZbhYaB8QEo2g== + +nanomatch@^1.2.9: + version "1.2.13" + resolved "https://registry.yarnpkg.com/nanomatch/-/nanomatch-1.2.13.tgz#b87a8aa4fc0de8fe6be88895b38983ff265bd119" + integrity sha512-fpoe2T0RbHwBTBUOftAfBPaDEi06ufaUai0mE6Yn1kacc3SnTErfb/h+X94VXzI64rKFHYImXSvdwGGCmwOqCA== + dependencies: + arr-diff "^4.0.0" + array-unique "^0.3.2" + define-property "^2.0.2" + extend-shallow "^3.0.2" + fragment-cache "^0.2.1" + is-windows "^1.0.2" + kind-of "^6.0.2" + object.pick "^1.3.0" + regex-not "^1.0.0" + snapdragon "^0.8.1" + to-regex "^3.0.1" + +natural-compare@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/natural-compare/-/natural-compare-1.4.0.tgz#4abebfeed7541f2c27acfb29bdbbd15c8d5ba4f7" + integrity sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw== + +needle@^3.1.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/needle/-/needle-3.3.1.tgz#63f75aec580c2e77e209f3f324e2cdf3d29bd049" + integrity sha512-6k0YULvhpw+RoLNiQCRKOl09Rv1dPLr8hHnVjHqdolKwDrdNyk+Hmrthi4lIGPPz3r39dLx0hsF5s40sZ3Us4Q== + dependencies: + iconv-lite "^0.6.3" + sax "^1.2.4" + +negotiator@0.6.3, negotiator@^0.6.3: + version "0.6.3" + resolved "https://registry.yarnpkg.com/negotiator/-/negotiator-0.6.3.tgz#58e323a72fedc0d6f9cd4d31fe49f51479590ccd" + integrity sha512-+EUsqGPLsM+j/zdChZjsnX51g4XrHFOIXwfnCVPGlQk/k5giakcKsuxCObBRu6DSm9opw/O6slWbJdghQM4bBg== + +neo-async@^2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/neo-async/-/neo-async-2.6.2.tgz#b4aafb93e3aeb2d8174ca53cf163ab7d7308305f" + integrity sha512-Yd3UES5mWCSqR+qNT93S3UoYUkqAZ9lLg8a7g9rimsWmYGK8cVToA4/sF3RrshdyV3sAGMXVUmpMYOw+dLpOuw== + +ng-alain-plugin-theme@^16.0.2: + version "16.0.2" + resolved "https://registry.yarnpkg.com/ng-alain-plugin-theme/-/ng-alain-plugin-theme-16.0.2.tgz#9cc1c9bf49289ff2a8eb3232b62fd5167b7bb639" + integrity sha512-8PsBnym4+qigDkQBbUbNjpCPpZC2vfStPORIpz6k8qV+2BkfJOxxqgGxqGey8p/f5JJ+SKFU+szFyGikdb6New== + dependencies: + jsonc-parser "^3.2.0" + less "^4.1.3" + less-plugin-clean-css "^1.5.1" + less-vars-to-js "^1.3.0" + meow "^9.0.0" + postcss "^8.4.18" + postcss-less "^6.0.0" + +ng-alain-sts@^0.0.2: + version "0.0.2" + resolved "https://registry.yarnpkg.com/ng-alain-sts/-/ng-alain-sts-0.0.2.tgz#d8294ab940f50d2bfc668a885869d7dcf85dae08" + integrity sha512-ZvNLFY75lGCuXIQZKKnKQ9bopKh3FLnSY7xUtvS1ga4m+hLiex2P7dat5bpJyEogA9l8s5Utrj+lNZjQ34Ed0Q== + dependencies: + "@types/swagger-schema-official" "^2.0.15" + extend "^3.0.2" + meow "^5.0.0" + +ng-alain@17.3.1: + version "17.3.1" + resolved "https://registry.yarnpkg.com/ng-alain/-/ng-alain-17.3.1.tgz#68ba6b7fba5156de84c47db8845d49929c732e0c" + integrity sha512-C+JthG3QYijeEcXq4iQzfpvdcueZndccbqQwzXyCvyNPPS1Y9gP/u0+EYRaU3AKRR6L1Nem0IXVlChH0xzfIRg== + dependencies: + "@angular/cdk" "^17.2.0" + ng-alain-plugin-theme "^16.0.2" + ng-alain-sts "^0.0.2" + swagger-typescript-api "^12.0.4" + +ng-zorro-antd@17.4.1, ng-zorro-antd@^17.3.0: + version "17.4.1" + resolved "https://registry.yarnpkg.com/ng-zorro-antd/-/ng-zorro-antd-17.4.1.tgz#af7b35dae00c8de6dcc3eacc6cc6c338236a6ec5" + integrity sha512-KsMYFlRBFPK5FPPoaYIS/uzQ4400WFMLcA9/1LmYZcSgmeINlCvgfiitNcOVLsRyQYlpdIQyOo9z5Ue2SS9ypg== + dependencies: + "@angular/cdk" "^17.0.0" + "@ant-design/icons-angular" "^17.0.0" + date-fns "^2.16.1" + tslib "^2.3.0" + +ngx-color-picker@16.0.0: + version "16.0.0" + resolved "https://registry.yarnpkg.com/ngx-color-picker/-/ngx-color-picker-16.0.0.tgz#b962588644fbb67bbbcffaf3252ed340884cdfe7" + integrity sha512-Dk2FvcbebD6STZSVzkI5oFHOlTrrNC5bOHh+YVaFgaWuWrVUdVIJm68ocUvTgr/qxTEJjrfcnRnS4wi7BJ2hKg== + dependencies: + tslib "^2.3.0" + +ngx-countdown@^17.0.0, ngx-countdown@^17.1.1: + version "17.1.1" + resolved "https://registry.yarnpkg.com/ngx-countdown/-/ngx-countdown-17.1.1.tgz#46a9a0d1d83b44c1dac3373f0af25f91b87ed725" + integrity sha512-ItZokeKc3QAYxLIZ96eD2mI6IZ5oEmKzFLIx94wjrLfZER1XRxUu+agHc+CnNmWEOmPWNn4ZtA5AUSawAcWZNQ== + dependencies: + tslib "^2.3.0" + +ngx-echarts@17.2.0: + version "17.2.0" + resolved "https://registry.yarnpkg.com/ngx-echarts/-/ngx-echarts-17.2.0.tgz#df56d8822e45f4a2d487a08cee6717dcd0e883e1" + integrity sha512-i3XDE9d53zmJH4bp8RQ/271oPlhBkczO1M3VtWk8nCXdxQq9qx8UckjWEQ7oV1AbSDLGK5sRiFu5EaY5hvdWPA== + dependencies: + tslib "^2.3.0" + +ngx-slick-carousel@17.0.0: + version "17.0.0" + resolved "https://registry.yarnpkg.com/ngx-slick-carousel/-/ngx-slick-carousel-17.0.0.tgz#3123f44a05f6608d69434ce92138fc52759508e6" + integrity sha512-4GS13vjbfEUzQR6St9tq9ms69ODSxkPR0HhXJ97YhDlOlbirk9wHxnSKNneutitlKIt9G/MCrIV4u0L3wiC8rQ== + dependencies: + tslib "^2.3.0" + +nice-napi@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/nice-napi/-/nice-napi-1.0.2.tgz#dc0ab5a1eac20ce548802fc5686eaa6bc654927b" + integrity sha512-px/KnJAJZf5RuBGcfD+Sp2pAKq0ytz8j+1NehvgIGFkvtvFrDM3T8E4x/JJODXK9WZow8RRGrbA9QQ3hs+pDhA== + dependencies: + node-addon-api "^3.0.0" + node-gyp-build "^4.2.2" + +node-addon-api@^3.0.0: + version "3.2.1" + resolved "https://registry.yarnpkg.com/node-addon-api/-/node-addon-api-3.2.1.tgz#81325e0a2117789c0128dab65e7e38f07ceba161" + integrity sha512-mmcei9JghVNDYydghQmeDX8KoAm0FAiYyIcUt/N4nhyAipB17pllZQDOJD2fotxABnt4Mdz+dKTO7eftLg4d0A== + +node-domexception@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/node-domexception/-/node-domexception-1.0.0.tgz#6888db46a1f71c0b76b3f7555016b63fe64766e5" + integrity sha512-/jKZoMpw0F8GRwl4/eLROPA3cfcXtLApP0QzLmUT/HuPCZWyB7IY9ZrMeKw2O/nFIqPQB3PVM9aYm0F312AXDQ== + +node-emoji@1.11.0: + version "1.11.0" + resolved "https://registry.yarnpkg.com/node-emoji/-/node-emoji-1.11.0.tgz#69a0150e6946e2f115e9d7ea4df7971e2628301c" + integrity sha512-wo2DpQkQp7Sjm2A0cq+sN7EHKO6Sl0ctXeBdFZrL9T9+UywORbufTcTZxom8YqpLQt/FqNMUkOpkZrJVYSKD3A== + dependencies: + lodash "^4.17.21" + +node-fetch-h2@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/node-fetch-h2/-/node-fetch-h2-2.3.0.tgz#c6188325f9bd3d834020bf0f2d6dc17ced2241ac" + integrity sha512-ofRW94Ab0T4AOh5Fk8t0h8OBWrmjb0SSB20xh1H8YnPV9EJ+f5AMoYSUQ2zgJ4Iq2HAK0I2l5/Nequ8YzFS3Hg== + dependencies: + http2-client "^1.2.5" + +node-fetch@2.7.0, node-fetch@^2.6.1: + version "2.7.0" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-2.7.0.tgz#d0f0fa6e3e2dc1d27efcd8ad99d550bda94d187d" + integrity sha512-c4FRfUm/dbcWZ7U+1Wq0AwCyFL+3nt2bEw05wfxSz+DWpWsitgmSgYmy2dQdWyKC1694ELPqMs/YzUSNozLt8A== + dependencies: + whatwg-url "^5.0.0" + +node-fetch@^3.2.10: + version "3.3.2" + resolved "https://registry.yarnpkg.com/node-fetch/-/node-fetch-3.3.2.tgz#d1e889bacdf733b4ff3b2b243eb7a12866a0b78b" + integrity sha512-dRB78srN/l6gqWulah9SrxeYnxeddIG30+GOqK/9OlLVyLg3HPnr6SqOWTWOXKRwC2eGYCkZ59NNuSgvSrpgOA== + dependencies: + data-uri-to-buffer "^4.0.0" + fetch-blob "^3.1.4" + formdata-polyfill "^4.0.10" + +node-forge@^1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/node-forge/-/node-forge-1.3.1.tgz#be8da2af243b2417d5f646a770663a92b7e9ded3" + integrity sha512-dPEtOeMvF9VMcYV/1Wb8CPoVAXtp6MKMlcbAt4ddqmGqUJ6fQZFXkNZNkNlfevtNkGtaSoXf/vNNNSvgrdXwtA== + +node-gyp-build@^4.2.2: + version "4.8.1" + resolved "https://registry.yarnpkg.com/node-gyp-build/-/node-gyp-build-4.8.1.tgz#976d3ad905e71b76086f4f0b0d3637fe79b6cda5" + integrity sha512-OSs33Z9yWr148JZcbZd5WiAXhh/n9z8TxQcdMhIOlpN9AhWpLfvVFO73+m77bBABQMaY9XSvIa+qk0jlI7Gcaw== + +node-gyp@^10.0.0: + version "10.2.0" + resolved "https://registry.yarnpkg.com/node-gyp/-/node-gyp-10.2.0.tgz#80101c4aa4f7ab225f13fcc8daaaac4eb1a8dd86" + integrity sha512-sp3FonBAaFe4aYTcFdZUn2NYkbP7xroPGYvQmP4Nl5PxamznItBnNCgjrVTKrEfQynInMsJvZrdmqUnysCJ8rw== + dependencies: + env-paths "^2.2.0" + exponential-backoff "^3.1.1" + glob "^10.3.10" + graceful-fs "^4.2.6" + make-fetch-happen "^13.0.0" + nopt "^7.0.0" + proc-log "^4.1.0" + semver "^7.3.5" + tar "^6.2.1" + which "^4.0.0" + +node-machine-id@1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/node-machine-id/-/node-machine-id-1.1.12.tgz#37904eee1e59b320bb9c5d6c0a59f3b469cb6267" + integrity sha512-QNABxbrPa3qEIfrE6GOJ7BYIuignnJw7iQ2YPbc3Nla1HzRJjXzZOiikfF8m7eAMfichLt3M4VgLOetqgDmgGQ== + +node-readfiles@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/node-readfiles/-/node-readfiles-0.2.0.tgz#dbbd4af12134e2e635c245ef93ffcf6f60673a5d" + integrity sha512-SU00ZarexNlE4Rjdm83vglt5Y9yiQ+XI1XpflWlb7q7UTN1JUItm69xMeiQCTxtTfnzt+83T8Cx+vI2ED++VDA== + dependencies: + es6-promise "^3.2.1" + +node-releases@^2.0.14: + version "2.0.17" + resolved "https://registry.yarnpkg.com/node-releases/-/node-releases-2.0.17.tgz#d74bc4fec38d839eec5db2a3c9c963d4f33cb366" + integrity sha512-Ww6ZlOiEQfPfXM45v17oabk77Z7mg5bOt7AjDyzy7RjK9OrLrLC8dyZQoAPEOtFX9SaNf1Tdvr5gRJWdTJj7GA== + +nopt@^7.0.0: + version "7.2.1" + resolved "https://registry.yarnpkg.com/nopt/-/nopt-7.2.1.tgz#1cac0eab9b8e97c9093338446eddd40b2c8ca1e7" + integrity sha512-taM24ViiimT/XntxbPyJQzCG+p4EKOpgD3mxFwW38mGjVUrfERQOeY4EDHjdnptttfHuHQXFx+lTP08Q+mLa/w== + dependencies: + abbrev "^2.0.0" + +normalize-package-data@^2.3.2, normalize-package-data@^2.3.4, normalize-package-data@^2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-2.5.0.tgz#e66db1838b200c1dfc233225d12cb36520e234a8" + integrity sha512-/5CMN3T0R4XTj4DcGaexo+roZSdSFW/0AOOTROrjxzCG1wrWXEsGbRKevjlIL+ZDE4sZlJr5ED4YW0yqmkK+eA== + dependencies: + hosted-git-info "^2.1.4" + resolve "^1.10.0" + semver "2 || 3 || 4 || 5" + validate-npm-package-license "^3.0.1" + +normalize-package-data@^3.0.0: + version "3.0.3" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-3.0.3.tgz#dbcc3e2da59509a0983422884cd172eefdfa525e" + integrity sha512-p2W1sgqij3zMMyRC067Dg16bfzVH+w7hyegmpIvZ4JNjqtGOVAIvLmjBx3yP7YTe9vKJgkoNOPjwQGogDoMXFA== + dependencies: + hosted-git-info "^4.0.1" + is-core-module "^2.5.0" + semver "^7.3.4" + validate-npm-package-license "^3.0.1" + +normalize-package-data@^6.0.0: + version "6.0.2" + resolved "https://registry.yarnpkg.com/normalize-package-data/-/normalize-package-data-6.0.2.tgz#a7bc22167fe24025412bcff0a9651eb768b03506" + integrity sha512-V6gygoYb/5EmNI+MEGrWkC+e6+Rr7mTmfHrxDbLzxQogBkgzo76rkok0Am6thgSF7Mv2nLOajAJj5vDJZEFn7g== + dependencies: + hosted-git-info "^7.0.0" + semver "^7.3.5" + validate-npm-package-license "^3.0.4" + +normalize-path@^3.0.0, normalize-path@~3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/normalize-path/-/normalize-path-3.0.0.tgz#0dcd69ff23a1c9b11fd0978316644a0388216a65" + integrity sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA== + +normalize-range@^0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/normalize-range/-/normalize-range-0.1.2.tgz#2d10c06bdfd312ea9777695a4d28439456b75942" + integrity sha512-bdok/XvKII3nUpklnV6P2hxtMNrCboOjAcyBuQnWEhO665FwrSNRxU+AqpsyvO6LgGYPspN+lu5CLtw4jPRKNA== + +normalize-selector@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/normalize-selector/-/normalize-selector-0.2.0.tgz#d0b145eb691189c63a78d201dc4fdb1293ef0c03" + integrity sha512-dxvWdI8gw6eAvk9BlPffgEoGfM7AdijoCwOEJge3e3ulT2XLgmU7KvvxprOaCu05Q1uGRHmOhHe1r6emZoKyFw== + +npm-bundled@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-bundled/-/npm-bundled-3.0.1.tgz#cca73e15560237696254b10170d8f86dad62da25" + integrity sha512-+AvaheE/ww1JEwRHOrn4WHNzOxGtVp+adrg2AeZS/7KuxGUYFuBta98wYpfHBbJp6Tg6j1NKSEVHNcfZzJHQwQ== + dependencies: + npm-normalize-package-bin "^3.0.0" + +npm-install-checks@^6.0.0: + version "6.3.0" + resolved "https://registry.yarnpkg.com/npm-install-checks/-/npm-install-checks-6.3.0.tgz#046552d8920e801fa9f919cad569545d60e826fe" + integrity sha512-W29RiK/xtpCGqn6f3ixfRYGk+zRyr+Ew9F2E20BfXxT5/euLdA/Nm7fO7OeTGuAmTs30cpgInyJ0cYe708YTZw== + dependencies: + semver "^7.1.1" + +npm-normalize-package-bin@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/npm-normalize-package-bin/-/npm-normalize-package-bin-3.0.1.tgz#25447e32a9a7de1f51362c61a559233b89947832" + integrity sha512-dMxCf+zZ+3zeQZXKxmyuCKlIDPGuv8EF940xbkC4kQVDTtqoh6rJFO+JTKSA6/Rwi0getWmtuy4Itup0AMcaDQ== + +npm-package-arg@11.0.1: + version "11.0.1" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.1.tgz#f208b0022c29240a1c532a449bdde3f0a4708ebc" + integrity sha512-M7s1BD4NxdAvBKUPqqRW957Xwcl/4Zvo8Aj+ANrzvIPzGJZElrH7Z//rSaec2ORcND6FHHLnZeY8qgTpXDMFQQ== + dependencies: + hosted-git-info "^7.0.0" + proc-log "^3.0.0" + semver "^7.3.5" + validate-npm-package-name "^5.0.0" + +npm-package-arg@^11.0.0: + version "11.0.2" + resolved "https://registry.yarnpkg.com/npm-package-arg/-/npm-package-arg-11.0.2.tgz#1ef8006c4a9e9204ddde403035f7ff7d718251ca" + integrity sha512-IGN0IAwmhDJwy13Wc8k+4PEbTPhpJnMtfR53ZbOyjkvmEcLS4nCwp6mvMWjS5sUjeiW3mpx6cHmuhKEu9XmcQw== + dependencies: + hosted-git-info "^7.0.0" + proc-log "^4.0.0" + semver "^7.3.5" + validate-npm-package-name "^5.0.0" + +npm-packlist@^8.0.0: + version "8.0.2" + resolved "https://registry.yarnpkg.com/npm-packlist/-/npm-packlist-8.0.2.tgz#5b8d1d906d96d21c85ebbeed2cf54147477c8478" + integrity sha512-shYrPFIS/JLP4oQmAwDyk5HcyysKW8/JLTEA32S0Z5TzvpaeeX2yMFfoK1fjEBnCBvVyIB/Jj/GBFdm0wsgzbA== + dependencies: + ignore-walk "^6.0.4" + +npm-pick-manifest@9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.0.0.tgz#f87a4c134504a2c7931f2bb8733126e3c3bb7e8f" + integrity sha512-VfvRSs/b6n9ol4Qb+bDwNGUXutpy76x6MARw/XssevE0TnctIKcmklJZM5Z7nqs5z5aW+0S63pgCNbpkUNNXBg== + dependencies: + npm-install-checks "^6.0.0" + npm-normalize-package-bin "^3.0.0" + npm-package-arg "^11.0.0" + semver "^7.3.5" + +npm-pick-manifest@^9.0.0: + version "9.1.0" + resolved "https://registry.yarnpkg.com/npm-pick-manifest/-/npm-pick-manifest-9.1.0.tgz#83562afde52b0b07cb6244361788d319ce7e8636" + integrity sha512-nkc+3pIIhqHVQr085X9d2JzPzLyjzQS96zbruppqC9aZRm/x8xx6xhI98gHtsfELP2bE+loHq8ZaHFHhe+NauA== + dependencies: + npm-install-checks "^6.0.0" + npm-normalize-package-bin "^3.0.0" + npm-package-arg "^11.0.0" + semver "^7.3.5" + +npm-registry-fetch@^16.0.0: + version "16.2.1" + resolved "https://registry.yarnpkg.com/npm-registry-fetch/-/npm-registry-fetch-16.2.1.tgz#c367df2d770f915da069ff19fd31762f4bca3ef1" + integrity sha512-8l+7jxhim55S85fjiDGJ1rZXBWGtRLi1OSb4Z3BPLObPuIaeKRlPRiYMSHU4/81ck3t71Z+UwDDl47gcpmfQQA== + dependencies: + "@npmcli/redact" "^1.1.0" + make-fetch-happen "^13.0.0" + minipass "^7.0.2" + minipass-fetch "^3.0.0" + minipass-json-stream "^1.0.1" + minizlib "^2.1.2" + npm-package-arg "^11.0.0" + proc-log "^4.0.0" + +npm-run-path@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-4.0.1.tgz#b7ecd1e5ed53da8e37a55e1c2269e0b97ed748ea" + integrity sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw== + dependencies: + path-key "^3.0.0" + +npm-run-path@^5.1.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/npm-run-path/-/npm-run-path-5.3.0.tgz#e23353d0ebb9317f174e93417e4a4d82d0249e9f" + integrity sha512-ppwTtiJZq0O/ai0z7yfudtBpWIoxM8yE6nHi1X47eFR2EWORqfbu6CnPlNsjeN683eT0qG6H/Pyf9fCcvjnnnQ== + dependencies: + path-key "^4.0.0" + +nth-check@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/nth-check/-/nth-check-2.1.1.tgz#c9eab428effce36cd6b92c924bdb000ef1f1ed1d" + integrity sha512-lqjrjmaOoAnWfMmBPL+XNnynZh2+swxiX3WUE0s4yEHI6m+AwrK2UZOimIRl3X/4QctVqS8AiZjFqyOGrMXb/w== + dependencies: + boolbase "^1.0.0" + +num2fraction@^1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/num2fraction/-/num2fraction-1.2.2.tgz#6f682b6a027a4e9ddfa4564cd2589d1d4e669ede" + integrity sha512-Y1wZESM7VUThYY+4W+X4ySH2maqcA+p7UR+w8VWNWVAd6lwuXXWz/w/Cz43J/dI2I+PS6wD5N+bJUF+gjWvIqg== + +nx@19.5.1, "nx@^17.2.8 || ^18.0.0 || ^19.0.0": + version "19.5.1" + resolved "https://registry.yarnpkg.com/nx/-/nx-19.5.1.tgz#9711624bff202d6501fc4d9b0bec7b96684bb059" + integrity sha512-aKctNLiK2hXl2536/qwnAqvSzNlIGwJdTBl2ajOnSyNrGWuLDMllTNTdp0/lU0QBJ2NSod3JbBQFV7cc9ILs4w== + dependencies: + "@napi-rs/wasm-runtime" "0.2.4" + "@nrwl/tao" "19.5.1" + "@yarnpkg/lockfile" "^1.1.0" + "@yarnpkg/parsers" "3.0.0-rc.46" + "@zkochan/js-yaml" "0.0.7" + axios "^1.6.0" + chalk "^4.1.0" + cli-cursor "3.1.0" + cli-spinners "2.6.1" + cliui "^8.0.1" + dotenv "~16.4.5" + dotenv-expand "~11.0.6" + enquirer "~2.3.6" + figures "3.2.0" + flat "^5.0.2" + front-matter "^4.0.2" + fs-extra "^11.1.0" + ignore "^5.0.4" + jest-diff "^29.4.1" + jsonc-parser "3.2.0" + lines-and-columns "~2.0.3" + minimatch "9.0.3" + node-machine-id "1.1.12" + npm-run-path "^4.0.1" + open "^8.4.0" + ora "5.3.0" + semver "^7.5.3" + string-width "^4.2.3" + strong-log-transformer "^2.1.0" + tar-stream "~2.2.0" + tmp "~0.2.1" + tsconfig-paths "^4.1.2" + tslib "^2.3.0" + yargs "^17.6.2" + yargs-parser "21.1.1" + optionalDependencies: + "@nx/nx-darwin-arm64" "19.5.1" + "@nx/nx-darwin-x64" "19.5.1" + "@nx/nx-freebsd-x64" "19.5.1" + "@nx/nx-linux-arm-gnueabihf" "19.5.1" + "@nx/nx-linux-arm64-gnu" "19.5.1" + "@nx/nx-linux-arm64-musl" "19.5.1" + "@nx/nx-linux-x64-gnu" "19.5.1" + "@nx/nx-linux-x64-musl" "19.5.1" + "@nx/nx-win32-arm64-msvc" "19.5.1" + "@nx/nx-win32-x64-msvc" "19.5.1" + +oas-kit-common@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/oas-kit-common/-/oas-kit-common-1.0.8.tgz#6d8cacf6e9097967a4c7ea8bcbcbd77018e1f535" + integrity sha512-pJTS2+T0oGIwgjGpw7sIRU8RQMcUoKCDWFLdBqKB2BNmGpbBMH2sdqAaOXUg8OzonZHU0L7vfJu1mJFEiYDWOQ== + dependencies: + fast-safe-stringify "^2.0.7" + +oas-linter@^3.2.2: + version "3.2.2" + resolved "https://registry.yarnpkg.com/oas-linter/-/oas-linter-3.2.2.tgz#ab6a33736313490659035ca6802dc4b35d48aa1e" + integrity sha512-KEGjPDVoU5K6swgo9hJVA/qYGlwfbFx+Kg2QB/kd7rzV5N8N5Mg6PlsoCMohVnQmo+pzJap/F610qTodKzecGQ== + dependencies: + "@exodus/schemasafe" "^1.0.0-rc.2" + should "^13.2.1" + yaml "^1.10.0" + +oas-resolver@^2.5.6: + version "2.5.6" + resolved "https://registry.yarnpkg.com/oas-resolver/-/oas-resolver-2.5.6.tgz#10430569cb7daca56115c915e611ebc5515c561b" + integrity sha512-Yx5PWQNZomfEhPPOphFbZKi9W93CocQj18NlD2Pa4GWZzdZpSJvYwoiuurRI7m3SpcChrnO08hkuQDL3FGsVFQ== + dependencies: + node-fetch-h2 "^2.3.0" + oas-kit-common "^1.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + +oas-schema-walker@^1.1.5: + version "1.1.5" + resolved "https://registry.yarnpkg.com/oas-schema-walker/-/oas-schema-walker-1.1.5.tgz#74c3cd47b70ff8e0b19adada14455b5d3ac38a22" + integrity sha512-2yucenq1a9YPmeNExoUa9Qwrt9RFkjqaMAA1X+U7sbb0AqBeTIdMHky9SQQ6iN94bO5NW0W4TRYXerG+BdAvAQ== + +oas-validator@^5.0.8: + version "5.0.8" + resolved "https://registry.yarnpkg.com/oas-validator/-/oas-validator-5.0.8.tgz#387e90df7cafa2d3ffc83b5fb976052b87e73c28" + integrity sha512-cu20/HE5N5HKqVygs3dt94eYJfBi0TsZvPVXDhbXQHiEityDN+RROTleefoKRKKJ9dFAF2JBkDHgvWj0sjKGmw== + dependencies: + call-me-maybe "^1.0.1" + oas-kit-common "^1.0.8" + oas-linter "^3.2.2" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + reftools "^1.1.9" + should "^13.2.1" + yaml "^1.10.0" + +oauth-sign@~0.9.0: + version "0.9.0" + resolved "https://registry.yarnpkg.com/oauth-sign/-/oauth-sign-0.9.0.tgz#47a7b016baa68b5fa0ecf3dee08a85c679ac6455" + integrity sha512-fexhUFFPTGV8ybAtSIGbV6gOkSv8UtRbDBnAyLQw4QPKkgNlsH2ByPGtMUqdWkos6YCRmAqViwgZrJc/mRDzZQ== + +object-assign@^4, object-assign@^4.0.1: + version "4.1.1" + resolved "https://registry.yarnpkg.com/object-assign/-/object-assign-4.1.1.tgz#2109adc7965887cfc05cbbd442cac8bfbb360863" + integrity sha512-rJgTQnkUnH1sFw8yT6VSU3zD3sWmu6sZhIseY8VX+GRu3P6F7Fu+JNDoXfklElbLJSnc3FUQHVe4cU5hj+BcUg== + +object-copy@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/object-copy/-/object-copy-0.1.0.tgz#7e7d858b781bd7c991a41ba975ed3812754e998c" + integrity sha512-79LYn6VAb63zgtmAteVOWo9Vdj71ZVBy3Pbse+VqxDpEP83XuujMrGqHIwAXJ5I/aM0zU7dIyIAhifVTPrNItQ== + dependencies: + copy-descriptor "^0.1.0" + define-property "^0.2.5" + kind-of "^3.0.3" + +object-inspect@^1.13.1: + version "1.13.2" + resolved "https://registry.yarnpkg.com/object-inspect/-/object-inspect-1.13.2.tgz#dea0088467fb991e67af4058147a24824a3043ff" + integrity sha512-IRZSRuzJiynemAXPYtPe5BoI/RESNYR7TYm50MC5Mqbd3Jmw5y790sErYw3V6SryFJD64b74qQQs9wn5Bg/k3g== + +object-keys@^1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/object-keys/-/object-keys-1.1.1.tgz#1c47f272df277f3b1daf061677d9c82e2322c60e" + integrity sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA== + +object-visit@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/object-visit/-/object-visit-1.0.1.tgz#f79c4493af0c5377b59fe39d395e41042dd045bb" + integrity sha512-GBaMwwAVK9qbQN3Scdo0OyvgPW7l3lnaVMj84uTOZlswkX0KpF6fyDBJhtTthf7pymztoN36/KEr1DyhF96zEA== + dependencies: + isobject "^3.0.0" + +object.assign@^4.1.5: + version "4.1.5" + resolved "https://registry.yarnpkg.com/object.assign/-/object.assign-4.1.5.tgz#3a833f9ab7fdb80fc9e8d2300c803d216d8fdbb0" + integrity sha512-byy+U7gp+FVwmyzKPYhW2h5l3crpmGsxl7X2s8y43IgxvG4g3QZ6CffDtsNQy1WsmZpQbO+ybo0AlW7TY6DcBQ== + dependencies: + call-bind "^1.0.5" + define-properties "^1.2.1" + has-symbols "^1.0.3" + object-keys "^1.1.1" + +object.pick@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/object.pick/-/object.pick-1.3.0.tgz#87a10ac4c1694bd2e1cbf53591a66141fb5dd747" + integrity sha512-tqa/UMy/CCoYmj+H5qc07qvSL9dqcs/WZENZ1JbtWBlATP+iVOe778gE6MSijnyCnORzDuX6hU+LA4SZ09YjFQ== + dependencies: + isobject "^3.0.1" + +object.values@^1.1.5: + version "1.2.0" + resolved "https://registry.yarnpkg.com/object.values/-/object.values-1.2.0.tgz#65405a9d92cee68ac2d303002e0b8470a4d9ab1b" + integrity sha512-yBYjY9QX2hnRmZHAjG/f13MzmBzxzYgQhFrke06TTyKY5zSTEqkOeukBzIdVA3j3ulu8Qa3MbVFShV7T2RmGtQ== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +obuf@^1.0.0, obuf@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/obuf/-/obuf-1.1.2.tgz#09bea3343d41859ebd446292d11c9d4db619084e" + integrity sha512-PX1wu0AmAdPqOL1mWhqmlOd8kOIZQwGZw6rh7uby9fTc5lhaOWFLX3I6R1hrF9k3zUY40e6igsLGkDXK92LJNg== + +on-finished@2.4.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.4.1.tgz#58c8c44116e54845ad57f14ab10b03533184ac3f" + integrity sha512-oVlzkg3ENAhCk2zdv7IJwd/QUD4z2RxRwpkcGY8psCVcCYZNq4wYnVWALHM+brtuJjePWiYF/ClmuDr8Ch5+kg== + dependencies: + ee-first "1.1.1" + +on-finished@~2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/on-finished/-/on-finished-2.3.0.tgz#20f1336481b083cd75337992a16971aa2d906947" + integrity sha512-ikqdkGAAyf/X/gPhXGvfgAytDZtDbr+bkNUJ0N9h5MI/dmdgCs3l6hoHrcUv41sRKew3jIwrp4qQDXiK99Utww== + dependencies: + ee-first "1.1.1" + +on-headers@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/on-headers/-/on-headers-1.0.2.tgz#772b0ae6aaa525c399e489adfad90c403eb3c28f" + integrity sha512-pZAE+FJLoyITytdqK0U5s+FIpjN0JP3OzFi/u8Rx+EV5/W+JTWGXG8xFzevE7AjBfDqHv/8vL8qQsIhHnqRkrA== + +once@^1.3.0, once@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/once/-/once-1.4.0.tgz#583b1aa775961d4b113ac17d9c50baef9dd76bd1" + integrity sha512-lNaJgI+2Q5URQBkccEKHTQOPaXdUxnZZElQTZY0MFUAuaEqe1E+Nyvgdz/aIyNi6Z9MzO5dv1H8n58/GELp3+w== + dependencies: + wrappy "1" + +onetime@^5.1.0, onetime@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-5.1.2.tgz#d0e96ebb56b07476df1dd9c4806e5237985ca45e" + integrity sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg== + dependencies: + mimic-fn "^2.1.0" + +onetime@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/onetime/-/onetime-6.0.0.tgz#7c24c18ed1fd2e9bca4bd26806a33613c77d34b4" + integrity sha512-1FlR+gjXK7X+AsAHso35MnyN5KqGwJRi/31ft6x0M194ht7S+rWAvd7PHss9xSKMzE0asv1pyIHaJYq+BbacAQ== + dependencies: + mimic-fn "^4.0.0" + +open@8.4.2, open@^8.0.9, open@^8.4.0: + version "8.4.2" + resolved "https://registry.yarnpkg.com/open/-/open-8.4.2.tgz#5b5ffe2a8f793dcd2aad73e550cb87b59cb084f9" + integrity sha512-7x81NCL719oNbsq/3mh+hVrAWmFuEYUqrq/Iw3kUzH8ReypT9QQ0BLoJS7/G9k6N81XjW4qHWtjWwe/9eLy1EQ== + dependencies: + define-lazy-prop "^2.0.0" + is-docker "^2.1.1" + is-wsl "^2.2.0" + +open@^7.3.1: + version "7.4.2" + resolved "https://registry.yarnpkg.com/open/-/open-7.4.2.tgz#b8147e26dcf3e426316c730089fd71edd29c2321" + integrity sha512-MVHddDVweXZF3awtlAS+6pgKLlm/JgxZ90+/NBurBoQctVOOB/zDdVjcyPzQ+0laDGbsWgrRkflI65sQeOgT9Q== + dependencies: + is-docker "^2.0.0" + is-wsl "^2.1.1" + +optionator@^0.9.3: + version "0.9.4" + resolved "https://registry.yarnpkg.com/optionator/-/optionator-0.9.4.tgz#7ea1c1a5d91d764fb282139c88fe11e182a3a734" + integrity sha512-6IpQ7mKUxRcZNLIObR0hz7lxsapSSIYNZJwXPGeF0mTVqGKFIXj1DQcMoT22S3ROcLyY/rz0PWaWZ9ayWmad9g== + dependencies: + deep-is "^0.1.3" + fast-levenshtein "^2.0.6" + levn "^0.4.1" + prelude-ls "^1.2.1" + type-check "^0.4.0" + word-wrap "^1.2.5" + +ora@5.3.0: + version "5.3.0" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.3.0.tgz#fb832899d3a1372fe71c8b2c534bbfe74961bb6f" + integrity sha512-zAKMgGXUim0Jyd6CXK9lraBnD3H5yPGBPPOkC23a2BG6hsm4Zu6OQSjQuEtV0BHDf4aKHcUFvJiGRrFuW3MG8g== + dependencies: + bl "^4.0.3" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + log-symbols "^4.0.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +ora@5.4.1, ora@^5.4.1: + version "5.4.1" + resolved "https://registry.yarnpkg.com/ora/-/ora-5.4.1.tgz#1b2678426af4ac4a509008e5e4ac9e9959db9e18" + integrity sha512-5b6Y85tPxZZ7QytO+BQzysW31HJku27cRIlkbAXaNx+BdcVi+LlRFmVXzeF6a7JCwJpyw5c4b+YSVImQIrBpuQ== + dependencies: + bl "^4.1.0" + chalk "^4.1.0" + cli-cursor "^3.1.0" + cli-spinners "^2.5.0" + is-interactive "^1.0.0" + is-unicode-supported "^0.1.0" + log-symbols "^4.1.0" + strip-ansi "^6.0.0" + wcwidth "^1.0.1" + +os-tmpdir@~1.0.1, os-tmpdir@~1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/os-tmpdir/-/os-tmpdir-1.0.2.tgz#bbe67406c79aa85c5cfec766fe5734555dfa1274" + integrity sha512-D2FR03Vir7FIu45XBY20mTb+/ZSWB00sjU9jdQXt83gDrI4Ztz5Fs7/yy74g2N5SVQY4xY1qDr4rNddwYRVX0g== + +p-limit@^1.1.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-1.3.0.tgz#b86bd5f0c25690911c7590fcbfc2010d54b3ccb8" + integrity sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q== + dependencies: + p-try "^1.0.0" + +p-limit@^2.2.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-2.3.0.tgz#3dd33c647a214fdfffd835933eb086da0dc21db1" + integrity sha512-//88mFWSJx8lxCzwdAABTJL2MyWB12+eIY7MDL2SqLmAkeKU9qxRvWuSyTjm3FUmpBEMuFfckAIqEaVGUDxb6w== + dependencies: + p-try "^2.0.0" + +p-limit@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-3.1.0.tgz#e1daccbe78d0d1388ca18c64fea38e3e57e3706b" + integrity sha512-TYOanM3wGwNGsZN2cVTYPArw454xnXj5qmWF1bEoAc4+cU/ol7GVh7odevjp1FNHduHc3KZMcFduxU5Xc6uJRQ== + dependencies: + yocto-queue "^0.1.0" + +p-limit@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/p-limit/-/p-limit-4.0.0.tgz#914af6544ed32bfa54670b061cafcbd04984b644" + integrity sha512-5b0R4txpzjPWVw/cXXUResoD4hb6U/x9BH08L7nw+GN1sezDzPdxeRvpc9c433fZhBan/wusjbCsqwqm4EIBIQ== + dependencies: + yocto-queue "^1.0.0" + +p-locate@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-2.0.0.tgz#20a0103b222a70c8fd39cc2e580680f3dde5ec43" + integrity sha512-nQja7m7gSKuewoVRen45CtVfODR3crN3goVQ0DDZ9N3yHxgpkuBhZqsaiotSQRrADUrne346peY7kT3TSACykg== + dependencies: + p-limit "^1.1.0" + +p-locate@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-4.1.0.tgz#a3428bb7088b3a60292f66919278b7c297ad4f07" + integrity sha512-R79ZZ/0wAxKGu3oYMlz8jy/kbhsNrS7SKZ7PxEHBgJ5+F2mtFW2fK2cOtBh1cHYkQsbzFV7I+EoRKe6Yt0oK7A== + dependencies: + p-limit "^2.2.0" + +p-locate@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-5.0.0.tgz#83c8315c6785005e3bd021839411c9e110e6d834" + integrity sha512-LaNjtRWUBY++zB5nE/NwcaoMylSPk+S+ZHNB1TzdbMJMny6dynpAGt7X/tl/QYq3TIeE6nxHppbo2LGymrG5Pw== + dependencies: + p-limit "^3.0.2" + +p-locate@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/p-locate/-/p-locate-6.0.0.tgz#3da9a49d4934b901089dca3302fa65dc5a05c04f" + integrity sha512-wPrq66Llhl7/4AGC6I+cqxT07LhXvWL08LNXz1fENOw0Ap4sRZZ/gZpTTJ5jpurzzzfS2W/Ge9BY3LgLjCShcw== + dependencies: + p-limit "^4.0.0" + +p-map@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/p-map/-/p-map-4.0.0.tgz#bb2f95a5eda2ec168ec9274e06a747c3e2904d2b" + integrity sha512-/bjOqmgETBYB5BoEeGVea8dmvHb2m9GLy1E9W43yeyfP6QQCZGFNa+XRceJEuDB6zqr+gKpIAmlLebMpykw/MQ== + dependencies: + aggregate-error "^3.0.0" + +p-retry@^4.5.0: + version "4.6.2" + resolved "https://registry.yarnpkg.com/p-retry/-/p-retry-4.6.2.tgz#9baae7184057edd4e17231cee04264106e092a16" + integrity sha512-312Id396EbJdvRONlngUx0NydfrIQ5lsYu0znKVUzVvArzEIt08V1qhtyESbGVd1FGX7UKtiFp5uwKZdM8wIuQ== + dependencies: + "@types/retry" "0.12.0" + retry "^0.13.1" + +p-try@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-1.0.0.tgz#cbc79cdbaf8fd4228e13f621f2b1a237c1b207b3" + integrity sha512-U1etNYuMJoIz3ZXSrrySFjsXQTWOx2/jdi86L+2pRvph/qMKL6sbcCYdH23fqsbm8TH2Gn0OybpT4eSFlCVHww== + +p-try@^2.0.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/p-try/-/p-try-2.2.0.tgz#cb2868540e313d61de58fafbe35ce9004d5540e6" + integrity sha512-R4nPAVTAU0B9D35/Gk3uJf/7XYbQcyohSKdvAxIRSNghFl4e71hVoGnBNQz9cWaXxO2I10KTC+3jMdvvoKw6dQ== + +package-json-from-dist@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/package-json-from-dist/-/package-json-from-dist-1.0.0.tgz#e501cd3094b278495eb4258d4c9f6d5ac3019f00" + integrity sha512-dATvCeZN/8wQsGywez1mzHtTlP22H8OEfPrVMLNr4/eGa+ijtLn/6M5f0dY8UKNrC2O9UCU6SSoG3qRKnt7STw== + +pacote@17.0.6: + version "17.0.6" + resolved "https://registry.yarnpkg.com/pacote/-/pacote-17.0.6.tgz#874bb59cda5d44ab784d0b6530fcb4a7d9b76a60" + integrity sha512-cJKrW21VRE8vVTRskJo78c/RCvwJCn1f4qgfxL4w77SOWrTCRcmfkYHlHtS0gqpgjv3zhXflRtgsrUCX5xwNnQ== + dependencies: + "@npmcli/git" "^5.0.0" + "@npmcli/installed-package-contents" "^2.0.1" + "@npmcli/promise-spawn" "^7.0.0" + "@npmcli/run-script" "^7.0.0" + cacache "^18.0.0" + fs-minipass "^3.0.0" + minipass "^7.0.2" + npm-package-arg "^11.0.0" + npm-packlist "^8.0.0" + npm-pick-manifest "^9.0.0" + npm-registry-fetch "^16.0.0" + proc-log "^3.0.0" + promise-retry "^2.0.1" + read-package-json "^7.0.0" + read-package-json-fast "^3.0.0" + sigstore "^2.2.0" + ssri "^10.0.0" + tar "^6.1.11" + +pako@~1.0.2: + version "1.0.11" + resolved "https://registry.yarnpkg.com/pako/-/pako-1.0.11.tgz#6c9599d340d54dfd3946380252a35705a6b992bf" + integrity sha512-4hLB8Py4zZce5s4yd9XzopqwVv/yGNhV1Bl8NTmCq1763HeK2+EwVTv+leGeL13Dnh2wfbqowVPXCIO0z4taYw== + +parent-module@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parent-module/-/parent-module-1.0.1.tgz#691d2709e78c79fae3a156622452d00762caaaa2" + integrity sha512-GQ2EWRpQV8/o+Aw8YqtfZZPfNRWZYkbidE9k5rpl/hC3vtHHBfGm2Ifi6qWV+coDGkrUKZAxE3Lot5kcsRlh+g== + dependencies: + callsites "^3.0.0" + +parse-entities@^1.0.2, parse-entities@^1.1.0: + version "1.2.2" + resolved "https://registry.yarnpkg.com/parse-entities/-/parse-entities-1.2.2.tgz#c31bf0f653b6661354f8973559cb86dd1d5edf50" + integrity sha512-NzfpbxW/NPrzZ/yYSoQxyqUZMZXIdCfE0OIN4ESsnptHJECoUk3FZktxNuzQf4tjt5UEopnxpYJbvYuxIFDdsg== + dependencies: + character-entities "^1.0.0" + character-entities-legacy "^1.0.0" + character-reference-invalid "^1.0.0" + is-alphanumerical "^1.0.0" + is-decimal "^1.0.0" + is-hexadecimal "^1.0.0" + +parse-json@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-4.0.0.tgz#be35f5425be1f7f6c747184f98a788cb99477ee0" + integrity sha512-aOIos8bujGN93/8Ox/jPLh7RwVnPEysynVFE+fQZyg6jKELEHwzgKdLRFHUgXJL6kylijVSBC4BvN9OmsB48Rw== + dependencies: + error-ex "^1.3.1" + json-parse-better-errors "^1.0.1" + +parse-json@^5.0.0, parse-json@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/parse-json/-/parse-json-5.2.0.tgz#c76fc66dee54231c962b22bcc8a72cf2f99753cd" + integrity sha512-ayCKvm/phCGxOkYRSCM82iDwct8/EonSEgCSxWxD7ve6jHggsFl4fZVQBPRNgQoKiuV/odhFrGzQXZwbifC8Rg== + dependencies: + "@babel/code-frame" "^7.0.0" + error-ex "^1.3.1" + json-parse-even-better-errors "^2.3.0" + lines-and-columns "^1.1.6" + +parse-node-version@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/parse-node-version/-/parse-node-version-1.0.1.tgz#e2b5dbede00e7fa9bc363607f53327e8b073189b" + integrity sha512-3YHlOa/JgH6Mnpr05jP9eDG254US9ek25LyIxZlDItp2iJtwyaXQb57lBYLdT3MowkUFYEV2XXNAYIPlESvJlA== + +parse5-html-rewriting-stream@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/parse5-html-rewriting-stream/-/parse5-html-rewriting-stream-7.0.0.tgz#e376d3e762d2950ccbb6bb59823fc1d7e9fdac36" + integrity sha512-mazCyGWkmCRWDI15Zp+UiCqMp/0dgEmkZRvhlsqqKYr4SsVm/TvnSpD9fCvqCA2zoWJcfRym846ejWBBHRiYEg== + dependencies: + entities "^4.3.0" + parse5 "^7.0.0" + parse5-sax-parser "^7.0.0" + +parse5-sax-parser@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/parse5-sax-parser/-/parse5-sax-parser-7.0.0.tgz#4c05064254f0488676aca75fb39ca069ec96dee5" + integrity sha512-5A+v2SNsq8T6/mG3ahcz8ZtQ0OUFTatxPbeidoMB7tkJSGDY3tdfl4MHovtLQHkEn5CGxijNWRQHhRQ6IRpXKg== + dependencies: + parse5 "^7.0.0" + +parse5@^7.0.0, parse5@^7.1.2: + version "7.1.2" + resolved "https://registry.yarnpkg.com/parse5/-/parse5-7.1.2.tgz#0736bebbfd77793823240a23b7fc5e010b7f8e32" + integrity sha512-Czj1WaSVpaoj0wbhMzLmWD69anp2WH7FXMB9n1Sy8/ZFF9jolSQVMu1Ij5WIyGmcBmhk7EOndpO4mIpihVqAXw== + dependencies: + entities "^4.4.0" + +parseurl@~1.3.2, parseurl@~1.3.3: + version "1.3.3" + resolved "https://registry.yarnpkg.com/parseurl/-/parseurl-1.3.3.tgz#9da19e7bee8d12dff0513ed5b76957793bc2e8d4" + integrity sha512-CiyeOxFT/JZyN5m0z9PfXw4SCBJ6Sygz1Dpl0wqjlhDEGGBP1GnsUVEL0p63hoG1fcj3fHynXi9NYO4nWOL+qQ== + +pascalcase@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/pascalcase/-/pascalcase-0.1.1.tgz#b363e55e8006ca6fe21784d2db22bd15d7917f14" + integrity sha512-XHXfu/yOQRy9vYOtUDVMN60OEJjW013GoObG1o+xwQTpB9eYJX/BjXMsdW13ZDPruFhYYn0AG22w0xgQMwl3Nw== + +path-dirname@^1.0.0: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-dirname/-/path-dirname-1.0.2.tgz#cc33d24d525e099a5388c0336c6e32b9160609e0" + integrity sha512-ALzNPpyNq9AqXMBjeymIjFDAkAFH06mHJH/cSBHAgU0s4vfpBn6b2nf8tiRLvagKD8RbTpq2FKTBg7cl9l3c7Q== + +path-exists@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-3.0.0.tgz#ce0ebeaa5f78cb18925ea7d810d7b59b010fd515" + integrity sha512-bpC7GYwiDYQ4wYLe+FA8lhRjhQCMcQGuSgGGqDkg/QerRWw9CmGRT0iSOVRSZJ29NMLZgIzqaljJ63oaL4NIJQ== + +path-exists@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-4.0.0.tgz#513bdbe2d3b95d7762e8c1137efa195c6c61b5b3" + integrity sha512-ak9Qy5Q7jYb2Wwcey5Fpvg2KoAc/ZIhLSLOSBmRmygPsGwkVVt0fZa0qrtMz+m6tJTAHfZQ8FnmB4MG4LWy7/w== + +path-exists@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/path-exists/-/path-exists-5.0.0.tgz#a6aad9489200b21fab31e49cf09277e5116fb9e7" + integrity sha512-RjhtfwJOxzcFmNOi6ltcbcu4Iu+FL3zEj83dk4kAS+fVpTxXLO1b38RvJgT/0QwvV/L3aY9TAnyv0EOqW4GoMQ== + +path-is-absolute@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/path-is-absolute/-/path-is-absolute-1.0.1.tgz#174b9268735534ffbc7ace6bf53a5a9e1b5c5f5f" + integrity sha512-AVbw3UJ2e9bq64vSaS9Am0fje1Pa8pbGqTTsmXfaIiMpnr5DlDhfJOuLj9Sf95ZPVDAUerDfEk88MPmPe7UCQg== + +path-is-inside@^1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/path-is-inside/-/path-is-inside-1.0.2.tgz#365417dede44430d1c11af61027facf074bdfc53" + integrity sha512-DUWJr3+ULp4zXmol/SZkFf3JGsS9/SIv+Y3Rt93/UjPpDpklB5f1er4O3POIbUuUJ3FXgqte2Q7SrU6zAqwk8w== + +path-key@^3.0.0, path-key@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-3.1.1.tgz#581f6ade658cbba65a0d3380de7753295054f375" + integrity sha512-ojmeN0qd+y0jszEtoY48r0Peq5dwMEkIlCOu6Q5f41lfkswXuKtYrhgoTpLnyIcHm24Uhqx+5Tqm2InSwLhE6Q== + +path-key@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-key/-/path-key-4.0.0.tgz#295588dc3aee64154f877adb9d780b81c554bf18" + integrity sha512-haREypq7xkM7ErfgIyA0z+Bj4AGKlMSdlQE2jvJo6huWD1EdkKYV+G/T4nq0YEF2vgTT8kqMFKo1uHn950r4SQ== + +path-parse@^1.0.7: + version "1.0.7" + resolved "https://registry.yarnpkg.com/path-parse/-/path-parse-1.0.7.tgz#fbc114b60ca42b30d9daf5858e4bd68bbedb6735" + integrity sha512-LDJzPVEEEPR+y48z93A0Ed0yXb8pAByGWo/k5YYdYgpY2/2EsOsksJrq7lOHxryrVOn1ejG6oAp8ahvOIQD8sw== + +path-scurry@^1.11.1: + version "1.11.1" + resolved "https://registry.yarnpkg.com/path-scurry/-/path-scurry-1.11.1.tgz#7960a668888594a0720b12a911d1a742ab9f11d2" + integrity sha512-Xa4Nw17FS9ApQFJ9umLiJS4orGjm7ZzwUrwamcGQuHSzDyth9boKDaycYdDcZDuqYATXw4HFXgaqWTctW/v1HA== + dependencies: + lru-cache "^10.2.0" + minipass "^5.0.0 || ^6.0.2 || ^7.0.0" + +path-to-regexp@0.1.7: + version "0.1.7" + resolved "https://registry.yarnpkg.com/path-to-regexp/-/path-to-regexp-0.1.7.tgz#df604178005f522f15eb4490e7247a1bfaa67f8c" + integrity sha512-5DFkuoqlv1uYQKxy8omFBeJPQcdoE07Kv2sferDCrAq1ohOU+MSDswDIbnx3YAM60qIOnYa53wBhXW0EbMonrQ== + +path-type@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-3.0.0.tgz#cef31dc8e0a1a3bb0d105c0cd97cf3bf47f4e36f" + integrity sha512-T2ZUsdZFHgA3u4e5PfPbjd7HDDpxPnQb5jN0SrDsjNSuVXHJqtwTnWqG0B1jZrgmJ/7lj1EmVIByWt1gxGkWvg== + dependencies: + pify "^3.0.0" + +path-type@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/path-type/-/path-type-4.0.0.tgz#84ed01c0a7ba380afe09d90a8c180dcd9d03043b" + integrity sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw== + +performance-now@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/performance-now/-/performance-now-2.1.0.tgz#6309f4e0e5fa913ec1c69307ae364b4b377c9e7b" + integrity sha512-7EAHlyLHI56VEIdK57uwHdHKIaAGbnXPiw0yWbarQZOKaKpvUIgW0jWRVLiatnM+XXlSwsanIBH/hzGMJulMow== + +picocolors@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-0.2.1.tgz#570670f793646851d1ba135996962abad587859f" + integrity sha512-cMlDqaLEqfSaW8Z7N5Jw+lyIW869EzT73/F5lhtY9cLGoVxSXznfgfXMO0Z5K0o0Q2TkTXq+0KFsdnSe3jDViA== + +picocolors@^1.0.0, picocolors@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" + integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== + +picomatch@4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-4.0.1.tgz#68c26c8837399e5819edce48590412ea07f17a07" + integrity sha512-xUXwsxNjwTQ8K3GnT4pCJm+xq3RUPQbmkYJTP5aFIfNIvbcc/4MUxgBaaRSZJ6yGJZiGSyYlM6MzwTsRk8SYCg== + +picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" + integrity sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA== + +pidtree@0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/pidtree/-/pidtree-0.6.0.tgz#90ad7b6d42d5841e69e0a2419ef38f8883aa057c" + integrity sha512-eG2dWTVw5bzqGRztnHExczNxt5VGsE6OwTeCG3fdUf9KBsZzO3R5OIIIzWR+iZA0NtZ+RDVdaoE2dK1cn6jH4g== + +pify@^2.0.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-2.3.0.tgz#ed141a6ac043a849ea588498e7dca8b15330e90c" + integrity sha512-udgsAY+fTnvv7kI7aaxbqwWNb0AHiB0qBO89PZKPkoTmGOgdbrHDKD+0B2X4uTfJ/FT1R09r9gTsjUjNJotuog== + +pify@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/pify/-/pify-3.0.0.tgz#e5a4acd2c101fdf3d9a4d07f0dbc4db49dd28176" + integrity sha512-C3FsVNH1udSEX48gGX1xfvwTWfsYWj5U+8/uK15BGzIGrKoUpghX8hWZwa/OFnakBiiVNmBvemTJR5mcy7iPcg== + +pify@^4.0.0, pify@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/pify/-/pify-4.0.1.tgz#4b2cd25c50d598735c50292224fd8c6df41e3231" + integrity sha512-uB80kBFb/tfd68bVleG9T5GGsGPjJrLAUpR5PZIrhBnIaRTQRjqdJSsIKkOP6OAIFbj7GOrcudc5pNjZ+geV2g== + +pinkie-promise@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/pinkie-promise/-/pinkie-promise-2.0.1.tgz#2135d6dfa7a358c069ac9b178776288228450ffa" + integrity sha512-0Gni6D4UcLTbv9c57DfxDGdr41XfgUjqWZu492f0cIGr16zDU06BWP/RAEvOuo7CQ0CNjHaLlM59YJJFm3NWlw== + dependencies: + pinkie "^2.0.0" + +pinkie@^2.0.0: + version "2.0.4" + resolved "https://registry.yarnpkg.com/pinkie/-/pinkie-2.0.4.tgz#72556b80cfa0d48a974e80e77248e80ed4f7f870" + integrity sha512-MnUuEycAemtSaeFSjXKW/aroV7akBbY+Sv+RkyqFjgAe73F+MR0TBWKBRDkmfWq/HiFmdavfZ1G7h4SPZXaCSg== + +piscina@4.4.0: + version "4.4.0" + resolved "https://registry.yarnpkg.com/piscina/-/piscina-4.4.0.tgz#e3af8e5721d8fad08c6ccaf8a64f9f42279efbb5" + integrity sha512-+AQduEJefrOApE4bV7KRmp3N2JnnyErlVqq4P/jmko4FPz9Z877BCccl/iB3FdrWSUkvbGV9Kan/KllJgat3Vg== + optionalDependencies: + nice-napi "^1.0.2" + +pkg-dir@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/pkg-dir/-/pkg-dir-7.0.0.tgz#8f0c08d6df4476756c5ff29b3282d0bab7517d11" + integrity sha512-Ie9z/WINcxxLp27BKOCHGde4ITq9UklYKDzVo1nhk5sqGEXU3FpkwP5GM2voTGJkGd9B3Otl+Q4uwSOeSUtOBA== + dependencies: + find-up "^6.3.0" + +plyr@^3.7.8: + version "3.7.8" + resolved "https://registry.yarnpkg.com/plyr/-/plyr-3.7.8.tgz#b79bccc23687705b5d9a283b2a88c124bf7471ed" + integrity sha512-yG/EHDobwbB/uP+4Bm6eUpJ93f8xxHjjk2dYcD1Oqpe1EcuQl5tzzw9Oq+uVAzd2lkM11qZfydSiyIpiB8pgdA== + dependencies: + core-js "^3.26.1" + custom-event-polyfill "^1.0.7" + loadjs "^4.2.0" + rangetouch "^2.0.1" + url-polyfill "^1.1.12" + +posix-character-classes@^0.1.0: + version "0.1.1" + resolved "https://registry.yarnpkg.com/posix-character-classes/-/posix-character-classes-0.1.1.tgz#01eac0fe3b5af71a2a6c02feabb8c1fef7e00eab" + integrity sha512-xTgYBc3fuo7Yt7JbiuFxSYGToMoz8fLoE6TC9Wx1P/u+LfeThMOAqmuyECnlBaaJb+u1m9hHiXUEtwW4OzfUJg== + +possible-typed-array-names@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/possible-typed-array-names/-/possible-typed-array-names-1.0.0.tgz#89bb63c6fada2c3e90adc4a647beeeb39cc7bf8f" + integrity sha512-d7Uw+eZoloe0EHDIYoe+bQ5WXnGMOpmiZFTuMWCwpjzzkL2nTjcKiAk4hh8TjnGye2TwWOk3UXucZ+3rbmBa8Q== + +postcss-html@^0.36.0: + version "0.36.0" + resolved "https://registry.yarnpkg.com/postcss-html/-/postcss-html-0.36.0.tgz#b40913f94eaacc2453fd30a1327ad6ee1f88b204" + integrity sha512-HeiOxGcuwID0AFsNAL0ox3mW6MHH5cstWN1Z3Y+n6H+g12ih7LHdYxWwEA/QmrebctLjo79xz9ouK3MroHwOJw== + dependencies: + htmlparser2 "^3.10.0" + +postcss-jsx@^0.36.0: + version "0.36.4" + resolved "https://registry.yarnpkg.com/postcss-jsx/-/postcss-jsx-0.36.4.tgz#37a68f300a39e5748d547f19a747b3257240bd50" + integrity sha512-jwO/7qWUvYuWYnpOb0+4bIIgJt7003pgU3P6nETBLaOyBXuTD55ho21xnals5nBrlpTIFodyd3/jBi6UO3dHvA== + dependencies: + "@babel/core" ">=7.2.2" + +postcss-less@^3.1.0: + version "3.1.4" + resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-3.1.4.tgz#369f58642b5928ef898ffbc1a6e93c958304c5ad" + integrity sha512-7TvleQWNM2QLcHqvudt3VYjULVB49uiW6XzEUFmvwHzvsOEF5MwBrIXZDJQvJNFGjJQTzSzZnDoCJ8h/ljyGXA== + dependencies: + postcss "^7.0.14" + +postcss-less@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/postcss-less/-/postcss-less-6.0.0.tgz#463b34c60f53b648c237f569aeb2e09149d85af4" + integrity sha512-FPX16mQLyEjLzEuuJtxA8X3ejDLNGGEG503d2YGZR5Ask1SpDN8KmZUMpzCvyalWRywAn1n1VOA5dcqfCLo5rg== + +postcss-loader@8.1.1: + version "8.1.1" + resolved "https://registry.yarnpkg.com/postcss-loader/-/postcss-loader-8.1.1.tgz#2822589e7522927344954acb55bbf26e8b195dfe" + integrity sha512-0IeqyAsG6tYiDRCYKQJLAmgQr47DX6N7sFSWvQxt6AcupX8DIdmykuk/o/tx0Lze3ErGHJEp5OSRxrelC6+NdQ== + dependencies: + cosmiconfig "^9.0.0" + jiti "^1.20.0" + semver "^7.5.4" + +postcss-markdown@^0.36.0: + version "0.36.0" + resolved "https://registry.yarnpkg.com/postcss-markdown/-/postcss-markdown-0.36.0.tgz#7f22849ae0e3db18820b7b0d5e7833f13a447560" + integrity sha512-rl7fs1r/LNSB2bWRhyZ+lM/0bwKv9fhl38/06gF6mKMo/NPnp55+K1dSTosSVjFZc0e1ppBlu+WT91ba0PMBfQ== + dependencies: + remark "^10.0.1" + unist-util-find-all-after "^1.0.2" + +postcss-media-query-parser@^0.2.3: + version "0.2.3" + resolved "https://registry.yarnpkg.com/postcss-media-query-parser/-/postcss-media-query-parser-0.2.3.tgz#27b39c6f4d94f81b1a73b8f76351c609e5cef244" + integrity sha512-3sOlxmbKcSHMjlUXQZKQ06jOswE7oVkXPxmZdoB1r5l0q6gTFTQSHxNxOrCccElbW7dxNytifNEo8qidX2Vsig== + +postcss-modules-extract-imports@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/postcss-modules-extract-imports/-/postcss-modules-extract-imports-3.1.0.tgz#b4497cb85a9c0c4b5aabeb759bb25e8d89f15002" + integrity sha512-k3kNe0aNFQDAZGbin48pL2VNidTF0w4/eASDsxlyspobzU3wZQLOGj7L9gfRe0Jo9/4uud09DsjFNH7winGv8Q== + +postcss-modules-local-by-default@^4.0.4: + version "4.0.5" + resolved "https://registry.yarnpkg.com/postcss-modules-local-by-default/-/postcss-modules-local-by-default-4.0.5.tgz#f1b9bd757a8edf4d8556e8d0f4f894260e3df78f" + integrity sha512-6MieY7sIfTK0hYfafw1OMEG+2bg8Q1ocHCpoWLqOKj3JXlKu4G7btkmM/B7lFubYkYWmRSPLZi5chid63ZaZYw== + dependencies: + icss-utils "^5.0.0" + postcss-selector-parser "^6.0.2" + postcss-value-parser "^4.1.0" + +postcss-modules-scope@^3.1.1: + version "3.2.0" + resolved "https://registry.yarnpkg.com/postcss-modules-scope/-/postcss-modules-scope-3.2.0.tgz#a43d28289a169ce2c15c00c4e64c0858e43457d5" + integrity sha512-oq+g1ssrsZOsx9M96c5w8laRmvEu9C3adDSjI8oTcbfkrTE8hx/zfyobUoWIxaKPO8bt6S62kxpw5GqypEw1QQ== + dependencies: + postcss-selector-parser "^6.0.4" + +postcss-modules-values@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/postcss-modules-values/-/postcss-modules-values-4.0.0.tgz#d7c5e7e68c3bb3c9b27cbf48ca0bb3ffb4602c9c" + integrity sha512-RDxHkAiEGI78gS2ofyvCsu7iycRv7oqw5xMWn9iMoR0N/7mf9D50ecQqUo5BZ9Zh2vH4bCUR/ktCqbB9m8vJjQ== + dependencies: + icss-utils "^5.0.0" + +postcss-reporter@^6.0.0: + version "6.0.1" + resolved "https://registry.yarnpkg.com/postcss-reporter/-/postcss-reporter-6.0.1.tgz#7c055120060a97c8837b4e48215661aafb74245f" + integrity sha512-LpmQjfRWyabc+fRygxZjpRxfhRf9u/fdlKf4VHG4TSPbV2XNsuISzYW1KL+1aQzx53CAppa1bKG4APIB/DOXXw== + dependencies: + chalk "^2.4.1" + lodash "^4.17.11" + log-symbols "^2.2.0" + postcss "^7.0.7" + +postcss-resolve-nested-selector@^0.1.1: + version "0.1.1" + resolved "https://registry.yarnpkg.com/postcss-resolve-nested-selector/-/postcss-resolve-nested-selector-0.1.1.tgz#29ccbc7c37dedfac304e9fff0bf1596b3f6a0e4e" + integrity sha512-HvExULSwLqHLgUy1rl3ANIqCsvMS0WHss2UOsXhXnQaZ9VCc2oBvIpXrl00IUFT5ZDITME0o6oiXeiHr2SAIfw== + +postcss-safe-parser@^4.0.0: + version "4.0.2" + resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-4.0.2.tgz#a6d4e48f0f37d9f7c11b2a581bf00f8ba4870b96" + integrity sha512-Uw6ekxSWNLCPesSv/cmqf2bY/77z11O7jZGPax3ycZMFU/oi2DMH9i89AdHc1tRwFg/arFoEwX0IS3LCUxJh1g== + dependencies: + postcss "^7.0.26" + +postcss-safe-parser@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/postcss-safe-parser/-/postcss-safe-parser-6.0.0.tgz#bb4c29894171a94bc5c996b9a30317ef402adaa1" + integrity sha512-FARHN8pwH+WiS2OPCxJI8FuRJpTVnn6ZNFiqAM2aeW2LwTHWWmWgIyKC6cUo0L8aeKiF/14MNvnpls6R2PBeMQ== + +postcss-sass@^0.3.5: + version "0.3.5" + resolved "https://registry.yarnpkg.com/postcss-sass/-/postcss-sass-0.3.5.tgz#6d3e39f101a53d2efa091f953493116d32beb68c" + integrity sha512-B5z2Kob4xBxFjcufFnhQ2HqJQ2y/Zs/ic5EZbCywCkxKd756Q40cIQ/veRDwSrw1BF6+4wUgmpm0sBASqVi65A== + dependencies: + gonzales-pe "^4.2.3" + postcss "^7.0.1" + +postcss-scss@^2.0.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/postcss-scss/-/postcss-scss-2.1.1.tgz#ec3a75fa29a55e016b90bf3269026c53c1d2b383" + integrity sha512-jQmGnj0hSGLd9RscFw9LyuSVAa5Bl1/KBPqG1NQw9w8ND55nY4ZEsdlVuYJvLPpV+y0nwTV5v/4rHPzZRihQbA== + dependencies: + postcss "^7.0.6" + +postcss-selector-parser@^3.1.0: + version "3.1.2" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-3.1.2.tgz#b310f5c4c0fdaf76f94902bbaa30db6aa84f5270" + integrity sha512-h7fJ/5uWuRVyOtkO45pnt1Ih40CEleeyCHzipqAZO2e5H20g25Y48uYnFUiShvY4rZWNJ/Bib/KVPmanaCtOhA== + dependencies: + dot-prop "^5.2.0" + indexes-of "^1.0.1" + uniq "^1.0.1" + +postcss-selector-parser@^6.0.11, postcss-selector-parser@^6.0.2, postcss-selector-parser@^6.0.4: + version "6.1.1" + resolved "https://registry.yarnpkg.com/postcss-selector-parser/-/postcss-selector-parser-6.1.1.tgz#5be94b277b8955904476a2400260002ce6c56e38" + integrity sha512-b4dlw/9V8A71rLIDsSwVmak9z2DuBUB7CA1/wSdelNEzqsjoSPeADTWNO09lpH49Diy3/JIZ2bSPB1dI3LJCHg== + dependencies: + cssesc "^3.0.0" + util-deprecate "^1.0.2" + +postcss-sorting@^4.1.0: + version "4.1.0" + resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-4.1.0.tgz#a107f0bf3852977fa64e4442bc340c88d5aacdb3" + integrity sha512-r4T2oQd1giURJdHQ/RMb72dKZCuLOdWx2B/XhXN1Y1ZdnwXsKH896Qz6vD4tFy9xSjpKNYhlZoJmWyhH/7JUQw== + dependencies: + lodash "^4.17.4" + postcss "^7.0.0" + +postcss-sorting@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/postcss-sorting/-/postcss-sorting-7.0.1.tgz#923b5268451cf2d93ebf8835e17a6537757049a5" + integrity sha512-iLBFYz6VRYyLJEJsBJ8M3TCqNcckVzz4wFounSc5Oez35ogE/X+aoC5fFu103Ot7NyvjU3/xqIXn93Gp3kJk4g== + +postcss-syntax@^0.36.2: + version "0.36.2" + resolved "https://registry.yarnpkg.com/postcss-syntax/-/postcss-syntax-0.36.2.tgz#f08578c7d95834574e5593a82dfbfa8afae3b51c" + integrity sha512-nBRg/i7E3SOHWxF3PpF5WnJM/jQ1YpY9000OaVXlAQj6Zp/kIqJxEDWIZ67tAd7NLuk7zqN4yqe9nc0oNAOs1w== + +postcss-value-parser@^3.3.0: + version "3.3.1" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-3.3.1.tgz#9ff822547e2893213cf1c30efa51ac5fd1ba8281" + integrity sha512-pISE66AbVkp4fDQ7VHBwRNXzAAKJjw4Vw7nWI/+Q3vuly7SNfgYXvm6i5IgFylHGK5sP/xHAbB7N49OS4gWNyQ== + +postcss-value-parser@^4.1.0, postcss-value-parser@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/postcss-value-parser/-/postcss-value-parser-4.2.0.tgz#723c09920836ba6d3e5af019f92bc0971c02e514" + integrity sha512-1NNCs6uurfkVbeXG4S8JFT9t19m45ICnif8zWLd5oPSZ50QnwMfK+H3jv408d4jw/7Bttv5axS5IiHoLaVNHeQ== + +postcss@8.4.35: + version "8.4.35" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.35.tgz#60997775689ce09011edf083a549cea44aabe2f7" + integrity sha512-u5U8qYpBCpN13BsiEB0CbR1Hhh4Gc0zLFuedrHJKMctHCHAGrMdG0PRM/KErzAL3CU6/eckEtmHNB3x6e3c0vA== + dependencies: + nanoid "^3.3.7" + picocolors "^1.0.0" + source-map-js "^1.0.2" + +postcss@^7.0.0, postcss@^7.0.1, postcss@^7.0.13, postcss@^7.0.14, postcss@^7.0.2, postcss@^7.0.26, postcss@^7.0.32, postcss@^7.0.6, postcss@^7.0.7: + version "7.0.39" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-7.0.39.tgz#9624375d965630e2e1f2c02a935c82a59cb48309" + integrity sha512-yioayjNbHn6z1/Bywyb2Y4s3yvDAeXGOyxqD+LnVOinq6Mdmd++SW2wUNVzavyyHxd6+DxzWGIuosg6P1Rj8uA== + dependencies: + picocolors "^0.2.1" + source-map "^0.6.1" + +postcss@^8.2.14, postcss@^8.3.11, postcss@^8.4.18, postcss@^8.4.19, postcss@^8.4.23, postcss@^8.4.33, postcss@^8.4.35: + version "8.4.39" + resolved "https://registry.yarnpkg.com/postcss/-/postcss-8.4.39.tgz#aa3c94998b61d3a9c259efa51db4b392e1bde0e3" + integrity sha512-0vzE+lAiG7hZl1/9I8yzKLx3aR9Xbof3fBHKunvMfOCYAtMhrsnccJY2iTURb9EZd5+pLuiNV9/c/GZJOHsgIw== + dependencies: + nanoid "^3.3.7" + picocolors "^1.0.1" + source-map-js "^1.2.0" + +prelude-ls@^1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/prelude-ls/-/prelude-ls-1.2.1.tgz#debc6489d7a6e6b0e7611888cec880337d316396" + integrity sha512-vkcDPrRZo1QZLbn5RLGPpg/WmIQ65qoWWhcGKf/b5eplkkarX0m9z8ppCat4mlOqUsWpyNuYgO3VRyrYHSzX5g== + +prettier-linter-helpers@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/prettier-linter-helpers/-/prettier-linter-helpers-1.0.0.tgz#d23d41fe1375646de2d0104d3454a3008802cf7b" + integrity sha512-GbK2cP9nraSSUF9N2XwUwqfzlAFlMNYYl+ShE/V+H8a9uNl/oUqB1w2EL54Jh0OlyRSd8RfWYJ3coVS4TROP2w== + dependencies: + fast-diff "^1.1.2" + +prettier@2.7.1: + version "2.7.1" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.7.1.tgz#e235806850d057f97bb08368a4f7d899f7760c64" + integrity sha512-ujppO+MkdPqoVINuDFDRLClm7D78qbDt0/NR+wp5FqEZOoTNAjPHWj17QRhu7geIHJfcNhRk1XVQmF8Bp3ye+g== + +prettier@2.8.8: + version "2.8.8" + resolved "https://registry.yarnpkg.com/prettier/-/prettier-2.8.8.tgz#e8c5d7e98a4305ffe3de2e1fc4aca1a71c28b1da" + integrity sha512-tdN8qQGvNjw4CHbY+XXk0JgCXn9QiF21a55rBe5LJAU+kDyC4WQn4+awm2Xfk2lQMk5fKup9XgzTZtGkjBdP9Q== + +pretty-format@^29.7.0: + version "29.7.0" + resolved "https://registry.yarnpkg.com/pretty-format/-/pretty-format-29.7.0.tgz#ca42c758310f365bfa71a0bda0a807160b776812" + integrity sha512-Pdlw/oPxN+aXdmM9R00JVC9WVFoCLTKJvDVLgmJ+qAffBMxsV85l/Lu7sNx4zSzPyoL2euImuEwHhOXdEgNFZQ== + dependencies: + "@jest/schemas" "^29.6.3" + ansi-styles "^5.0.0" + react-is "^18.0.0" + +proc-log@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-3.0.0.tgz#fb05ef83ccd64fd7b20bbe9c8c1070fc08338dd8" + integrity sha512-++Vn7NS4Xf9NacaU9Xq3URUuqZETPsf8L4j5/ckhaRYsfPeRyzGw+iDjFhV/Jr3uNmTvvddEJFWh5R1gRgUH8A== + +proc-log@^4.0.0, proc-log@^4.1.0, proc-log@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/proc-log/-/proc-log-4.2.0.tgz#b6f461e4026e75fdfe228b265e9f7a00779d7034" + integrity sha512-g8+OnU/L2v+wyiVK+D5fA34J7EH8jZ8DDlvwhRCMxmMj7UCBvxiO1mGeN+36JXIKF4zevU4kRBd8lVgG9vLelA== + +process-nextick-args@~2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/process-nextick-args/-/process-nextick-args-2.0.1.tgz#7820d9b16120cc55ca9ae7792680ae7dba6d7fe2" + integrity sha512-3ouUOpQhtgrbOa17J7+uxOTpITYWaGP7/AhoR3+A+/1e9skrzelGi/dXzEYyvbxubEF6Wn2ypscTKiKJFFn1ag== + +promise-inflight@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/promise-inflight/-/promise-inflight-1.0.1.tgz#98472870bf228132fcbdd868129bad12c3c029e3" + integrity sha512-6zWPyEOFaQBJYcGMHBKTKJ3u6TBsnMFOIZSa6ce1e/ZrrsOlnHRHbabMjLiBYKp+n44X9eUI6VUPaukCXHuG4g== + +promise-retry@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/promise-retry/-/promise-retry-2.0.1.tgz#ff747a13620ab57ba688f5fc67855410c370da22" + integrity sha512-y+WKFlBR8BGXnsNlIHFGPZmyDf3DFMoLhaflAnyZgV6rG6xu+JwesTo2Q9R6XwYmtmwAFCkAk3e35jEdoeh/3g== + dependencies: + err-code "^2.0.2" + retry "^0.12.0" + +protractor@7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/protractor/-/protractor-7.0.0.tgz#c3e263608bd72e2c2dc802b11a772711a4792d03" + integrity sha512-UqkFjivi4GcvUQYzqGYNe0mLzfn5jiLmO8w9nMhQoJRLhy2grJonpga2IWhI6yJO30LibWXJJtA4MOIZD2GgZw== + dependencies: + "@types/q" "^0.0.32" + "@types/selenium-webdriver" "^3.0.0" + blocking-proxy "^1.0.0" + browserstack "^1.5.1" + chalk "^1.1.3" + glob "^7.0.3" + jasmine "2.8.0" + jasminewd2 "^2.1.0" + q "1.4.1" + saucelabs "^1.5.0" + selenium-webdriver "3.6.0" + source-map-support "~0.4.0" + webdriver-js-extender "2.1.0" + webdriver-manager "^12.1.7" + yargs "^15.3.1" + +proxy-addr@~2.0.7: + version "2.0.7" + resolved "https://registry.yarnpkg.com/proxy-addr/-/proxy-addr-2.0.7.tgz#f19fe69ceab311eeb94b42e70e8c2070f9ba1025" + integrity sha512-llQsMLSUDUPT44jdrU/O37qlnifitDP+ZwrmmZcoSKyLKvtZxpyV0n2/bD/N4tBAAZ/gJEdZU7KMraoK1+XYAg== + dependencies: + forwarded "0.2.0" + ipaddr.js "1.9.1" + +proxy-from-env@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/proxy-from-env/-/proxy-from-env-1.1.0.tgz#e102f16ca355424865755d2c9e8ea4f24d58c3e2" + integrity sha512-D+zkORCbA9f1tdWRK0RaCR3GPv50cMxcrz4X8k5LTSUD1Dkw47mKJEZQNunItRTkWwgtaUSo1RVFRIG9ZXiFYg== + +prr@~1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" + integrity sha512-yPw4Sng1gWghHQWj0B3ZggWUm4qVbPwPFcRG8KyxiU7J2OHFSoEHKS+EZ3fv5l1t9CyCiop6l/ZYeWbrgoQejw== + +psl@^1.1.28: + version "1.9.0" + resolved "https://registry.yarnpkg.com/psl/-/psl-1.9.0.tgz#d0df2a137f00794565fcaf3b2c00cd09f8d5a5a7" + integrity sha512-E/ZsdU4HLs/68gYzgGTkMicWTLPdAftJLfJFlLUAAKZGkStNU72sZjT66SnMDVOfOWY/YAoiD7Jxa9iHvngcag== + +punycode@^1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-1.4.1.tgz#c0d5a63b2718800ad8e1eb0fa5269c84dd41845e" + integrity sha512-jmYNElW7yvO7TV33CjSmvSiE2yco3bV2czu/OzDKdMNVZQWfxCblURLhf+47syQRBntjfLdd/H0egrzIG+oaFQ== + +punycode@^2.1.0, punycode@^2.1.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/punycode/-/punycode-2.3.1.tgz#027422e2faec0b25e1549c3e1bd8309b9133b6e5" + integrity sha512-vYt7UD1U9Wg6138shLtLOvdAu+8DsC/ilFtEVHcH+wydcSpNE20AfSOduf6MkRFahL5FY7X1oU7nKVZFtfq8Fg== + +q@1.4.1: + version "1.4.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.4.1.tgz#55705bcd93c5f3673530c2c2cbc0c2b3addc286e" + integrity sha512-/CdEdaw49VZVmyIDGUQKDDT53c7qBkO6g5CefWz91Ae+l4+cRtcDYwMTXh6me4O8TMldeGHG3N2Bl84V78Ywbg== + +q@^1.4.1: + version "1.5.1" + resolved "https://registry.yarnpkg.com/q/-/q-1.5.1.tgz#7e32f75b41381291d04611f1bf14109ac00651d7" + integrity sha512-kV/CThkXo6xyFEZUugw/+pIOywXcDbFYgSct5cT3gqlbkBE1SJdwy6UQoZvodiWF/ckQLZyDE/Bu1M6gVu5lVw== + +qjobs@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/qjobs/-/qjobs-1.2.0.tgz#c45e9c61800bd087ef88d7e256423bdd49e5d071" + integrity sha512-8YOJEHtxpySA3fFDyCRxA+UUV+fA+rTWnuWvylOK/NCjhY+b4ocCtmu8TtsWb+mYeU+GCHf/S66KZF/AsteKHg== + +qs@6.11.0: + version "6.11.0" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.11.0.tgz#fd0d963446f7a65e1367e01abd85429453f0c37a" + integrity sha512-MvjoMCJwEarSbUYk5O+nmoSzSutSsTwF85zcHPQ9OrlFoZOYIjaqBAJIqIXjptyD5vThxGq52Xu/MaJzRkIk4Q== + dependencies: + side-channel "^1.0.4" + +qs@~6.5.2: + version "6.5.3" + resolved "https://registry.yarnpkg.com/qs/-/qs-6.5.3.tgz#3aeeffc91967ef6e35c0e488ef46fb296ab76aad" + integrity sha512-qxXIEh4pCGfHICj1mAJQ2/2XVZkjCDTcEgfoSQxc/fYivUZxTkk7L3bDBJSoNrEzXI17oUO5Dp07ktqE5KzczA== + +queue-microtask@^1.2.2: + version "1.2.3" + resolved "https://registry.yarnpkg.com/queue-microtask/-/queue-microtask-1.2.3.tgz#4929228bbc724dfac43e0efb058caf7b6cfb6243" + integrity sha512-NuaNSa6flKT5JaSYQzJok04JzTL1CA6aGhv5rfLW3PgqA+M2ChpZQnAC8h8i4ZFkBS8X5RqkDBHA7r4hej3K9A== + +quick-lru@^1.0.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-1.1.0.tgz#4360b17c61136ad38078397ff11416e186dcfbb8" + integrity sha512-tRS7sTgyxMXtLum8L65daJnHUhfDUgboRdcWW2bR9vBfrj2+O5HSMbQOJfJJjIVSPFqbBCF37FpwWXGitDc5tA== + +quick-lru@^4.0.1: + version "4.0.1" + resolved "https://registry.yarnpkg.com/quick-lru/-/quick-lru-4.0.1.tgz#5b8878f113a58217848c6482026c73e1ba57727f" + integrity sha512-ARhCpm70fzdcvNQfPoy49IaanKkTlRWF2JMzqhcJbhSFRZv7nPTvZJdcY7301IPmvW+/p0RgIWnQDLJxifsQ7g== + +randombytes@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/randombytes/-/randombytes-2.1.0.tgz#df6f84372f0270dc65cdf6291349ab7a473d4f2a" + integrity sha512-vYl3iOX+4CKUWuxGi9Ukhie6fsqXqS9FE2Zaic4tNFD2N2QQaXOMFbuKK4QmDHC0JO6B1Zp41J0LpT0oR68amQ== + dependencies: + safe-buffer "^5.1.0" + +range-parser@^1.2.1, range-parser@~1.2.1: + version "1.2.1" + resolved "https://registry.yarnpkg.com/range-parser/-/range-parser-1.2.1.tgz#3cf37023d199e1c24d1a55b84800c2f3e6468031" + integrity sha512-Hrgsx+orqoygnmhFbKaHE6c296J+HTAQXoxEF6gNupROmmGJRoyzfG3ccAveqCBrwr/2yxQ5BVd/GTl5agOwSg== + +rangetouch@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/rangetouch/-/rangetouch-2.0.1.tgz#c01105110fd3afca2adcb1a580692837d883cb70" + integrity sha512-sln+pNSc8NGaHoLzwNBssFSf/rSYkqeBXzX1AtJlkJiUaVSJSbRAWJk+4omsXkN+EJalzkZhWQ3th1m0FpR5xA== + +raw-body@2.5.2: + version "2.5.2" + resolved "https://registry.yarnpkg.com/raw-body/-/raw-body-2.5.2.tgz#99febd83b90e08975087e8f1f9419a149366b68a" + integrity sha512-8zGqypfENjCIqGhgXToC8aB2r7YrBX+AQAfIPs/Mlk+BtPTztOvTS01NRW/3Eh60J+a48lt8qsCzirQ6loCVfA== + dependencies: + bytes "3.1.2" + http-errors "2.0.0" + iconv-lite "0.4.24" + unpipe "1.0.0" + +react-is@^18.0.0: + version "18.3.1" + resolved "https://registry.yarnpkg.com/react-is/-/react-is-18.3.1.tgz#e83557dc12eae63a99e003a46388b1dcbb44db7e" + integrity sha512-/LLMVyas0ljjAtoYiPqYiL8VWXzUUdThrmU5+n20DZv+a+ClRoevUzw5JxU+Ieh5/c87ytoTBV9G1FiKfNJdmg== + +read-package-json-fast@^3.0.0: + version "3.0.2" + resolved "https://registry.yarnpkg.com/read-package-json-fast/-/read-package-json-fast-3.0.2.tgz#394908a9725dc7a5f14e70c8e7556dff1d2b1049" + integrity sha512-0J+Msgym3vrLOUB3hzQCuZHII0xkNGCtz/HJH9xZshwv9DbDwkw1KaE3gx/e2J5rpEY5rtOy6cyhKOPrkP7FZw== + dependencies: + json-parse-even-better-errors "^3.0.0" + npm-normalize-package-bin "^3.0.0" + +read-package-json@^7.0.0: + version "7.0.1" + resolved "https://registry.yarnpkg.com/read-package-json/-/read-package-json-7.0.1.tgz#8b5f6aab97a796cfb436516ade24c011d10964a9" + integrity sha512-8PcDiZ8DXUjLf687Ol4BR8Bpm2umR7vhoZOzNRt+uxD9GpBh/K+CAAALVIiYFknmvlmyg7hM7BSNUXPaCCqd0Q== + dependencies: + glob "^10.2.2" + json-parse-even-better-errors "^3.0.0" + normalize-package-data "^6.0.0" + npm-normalize-package-bin "^3.0.0" + +read-pkg-up@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-3.0.0.tgz#3ed496685dba0f8fe118d0691dc51f4a1ff96f07" + integrity sha512-YFzFrVvpC6frF1sz8psoHDBGF7fLPc+llq/8NB43oagqWkx8ar5zYtsTORtOjw9W2RHLpWP+zTWwBvf1bCmcSw== + dependencies: + find-up "^2.0.0" + read-pkg "^3.0.0" + +read-pkg-up@^7.0.1: + version "7.0.1" + resolved "https://registry.yarnpkg.com/read-pkg-up/-/read-pkg-up-7.0.1.tgz#f3a6135758459733ae2b95638056e1854e7ef507" + integrity sha512-zK0TB7Xd6JpCLmlLmufqykGE+/TlOePD6qKClNW7hHDKFh/J7/7gCWGR7joEQEW1bKq3a3yUZSObOoWLFQ4ohg== + dependencies: + find-up "^4.1.0" + read-pkg "^5.2.0" + type-fest "^0.8.1" + +read-pkg@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-3.0.0.tgz#9cbc686978fee65d16c00e2b19c237fcf6e38389" + integrity sha512-BLq/cCO9two+lBgiTYNqD6GdtK8s4NpaWrl6/rCO9w0TUS8oJl7cmToOZfRYllKTISY6nt1U7jQ53brmKqY6BA== + dependencies: + load-json-file "^4.0.0" + normalize-package-data "^2.3.2" + path-type "^3.0.0" + +read-pkg@^5.2.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/read-pkg/-/read-pkg-5.2.0.tgz#7bf295438ca5a33e56cd30e053b34ee7250c93cc" + integrity sha512-Ug69mNOpfvKDAc2Q8DRpMjjzdtrnv9HcSMX+4VsZxD1aZ6ZzrIE7rlzXBtWTyhULSMKg076AW6WR5iZpD0JiOg== + dependencies: + "@types/normalize-package-data" "^2.4.0" + normalize-package-data "^2.5.0" + parse-json "^5.0.0" + type-fest "^0.6.0" + +readable-stream@^2.0.1, readable-stream@~2.3.6: + version "2.3.8" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-2.3.8.tgz#91125e8042bba1b9887f49345f6277027ce8be9b" + integrity sha512-8p0AUk4XODgIewSi0l8Epjs+EVnWiK7NoDIEGU0HhE7+ZyY8D1IMY7odu5lRrFXGg71L15KG8QrPmum45RTtdA== + dependencies: + core-util-is "~1.0.0" + inherits "~2.0.3" + isarray "~1.0.0" + process-nextick-args "~2.0.0" + safe-buffer "~5.1.1" + string_decoder "~1.1.1" + util-deprecate "~1.0.1" + +readable-stream@^3.0.6, readable-stream@^3.1.1, readable-stream@^3.4.0: + version "3.6.2" + resolved "https://registry.yarnpkg.com/readable-stream/-/readable-stream-3.6.2.tgz#56a9b36ea965c00c5a93ef31eb111a0f11056967" + integrity sha512-9u/sniCrY3D5WdsERHzHE4G2YCXqoG5FTHUiCC4SIbr6XcLZBY05ya9EKjYek9O5xOAwjGq+1JdGBAS7Q9ScoA== + dependencies: + inherits "^2.0.3" + string_decoder "^1.1.1" + util-deprecate "^1.0.1" + +readdirp@~3.6.0: + version "3.6.0" + resolved "https://registry.yarnpkg.com/readdirp/-/readdirp-3.6.0.tgz#74a370bd857116e245b29cc97340cd431a02a6c7" + integrity sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA== + dependencies: + picomatch "^2.2.1" + +redent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-2.0.0.tgz#c1b2007b42d57eb1389079b3c8333639d5e1ccaa" + integrity sha512-XNwrTx77JQCEMXTeb8movBKuK75MgH0RZkujNuDKCezemx/voapl9i2gCSi8WWm8+ox5ycJi1gxF22fR7c0Ciw== + dependencies: + indent-string "^3.0.0" + strip-indent "^2.0.0" + +redent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/redent/-/redent-3.0.0.tgz#e557b7998316bb53c9f1f56fa626352c6963059f" + integrity sha512-6tDA8g98We0zd0GvVeMT9arEOnTw9qM03L9cJXaCjrip1OO764RDBLBfrB4cwzNGDj5OA5ioymC9GkizgWJDUg== + dependencies: + indent-string "^4.0.0" + strip-indent "^3.0.0" + +reflect-metadata@^0.2.0: + version "0.2.2" + resolved "https://registry.yarnpkg.com/reflect-metadata/-/reflect-metadata-0.2.2.tgz#400c845b6cba87a21f2c65c4aeb158f4fa4d9c5b" + integrity sha512-urBwgfrvVP/eAyXx4hluJivBKzuEbSQs9rKWCrCkbSxNv8mxPcUZKeuoF3Uy4mJl3Lwprp6yy5/39VWigZ4K6Q== + +reftools@^1.1.9: + version "1.1.9" + resolved "https://registry.yarnpkg.com/reftools/-/reftools-1.1.9.tgz#e16e19f662ccd4648605312c06d34e5da3a2b77e" + integrity sha512-OVede/NQE13xBQ+ob5CKd5KyeJYU2YInb1bmV4nRoOfquZPkAkxuOXicSe1PvqIuZZ4kD13sPKBbR7UFDmli6w== + +regenerate-unicode-properties@^10.1.0: + version "10.1.1" + resolved "https://registry.yarnpkg.com/regenerate-unicode-properties/-/regenerate-unicode-properties-10.1.1.tgz#6b0e05489d9076b04c436f318d9b067bba459480" + integrity sha512-X007RyZLsCJVVrjgEFVpLUTZwyOZk3oiL75ZcuYjlIWd6rNJtOjkBwQc5AsRrpbKVkxN6sklw/k/9m2jJYOf8Q== + dependencies: + regenerate "^1.4.2" + +regenerate@^1.4.2: + version "1.4.2" + resolved "https://registry.yarnpkg.com/regenerate/-/regenerate-1.4.2.tgz#b9346d8827e8f5a32f7ba29637d398b69014848a" + integrity sha512-zrceR/XhGYU/d/opr2EKO7aRHUeiBI8qjtfHqADTwZd6Szfy16la6kqD0MIUs5z5hx6AaKa+PixpPrR289+I0A== + +regenerator-runtime@^0.14.0: + version "0.14.1" + resolved "https://registry.yarnpkg.com/regenerator-runtime/-/regenerator-runtime-0.14.1.tgz#356ade10263f685dda125100cd862c1db895327f" + integrity sha512-dYnhHh0nJoMfnkZs6GmmhFknAGRrLznOu5nc9ML+EJxGvrx6H7teuevqVqCuPcPK//3eDrrjQhehXVx9cnkGdw== + +regenerator-transform@^0.15.2: + version "0.15.2" + resolved "https://registry.yarnpkg.com/regenerator-transform/-/regenerator-transform-0.15.2.tgz#5bbae58b522098ebdf09bca2f83838929001c7a4" + integrity sha512-hfMp2BoF0qOk3uc5V20ALGDS2ddjQaLrdl7xrGXvAIow7qeWRM2VA2HuCHkUKk9slq3VwEwLNK3DFBqDfPGYtg== + dependencies: + "@babel/runtime" "^7.8.4" + +regex-not@^1.0.0, regex-not@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/regex-not/-/regex-not-1.0.2.tgz#1f4ece27e00b0b65e0247a6810e6a85d83a5752c" + integrity sha512-J6SDjUgDxQj5NusnOtdFxDwN/+HWykR8GELwctJ7mdqhcyy1xEc4SRFHUXvxTp661YaVKAjfRLZ9cCqS6tn32A== + dependencies: + extend-shallow "^3.0.2" + safe-regex "^1.1.0" + +regex-parser@^2.2.11: + version "2.3.0" + resolved "https://registry.yarnpkg.com/regex-parser/-/regex-parser-2.3.0.tgz#4bb61461b1a19b8b913f3960364bb57887f920ee" + integrity sha512-TVILVSz2jY5D47F4mA4MppkBrafEaiUWJO/TcZHEIuI13AqoZMkK1WMA4Om1YkYbTx+9Ki1/tSUXbceyr9saRg== + +regexp.prototype.flags@^1.5.2: + version "1.5.2" + resolved "https://registry.yarnpkg.com/regexp.prototype.flags/-/regexp.prototype.flags-1.5.2.tgz#138f644a3350f981a858c44f6bb1a61ff59be334" + integrity sha512-NcDiDkTLuPR+++OCKB0nWafEmhg/Da8aUPLPMQbK+bxKKCm1/S5he+AqYa4PlMCVBalb4/yxIRub6qkEx5yJbw== + dependencies: + call-bind "^1.0.6" + define-properties "^1.2.1" + es-errors "^1.3.0" + set-function-name "^2.0.1" + +regexpu-core@^5.3.1: + version "5.3.2" + resolved "https://registry.yarnpkg.com/regexpu-core/-/regexpu-core-5.3.2.tgz#11a2b06884f3527aec3e93dbbf4a3b958a95546b" + integrity sha512-RAM5FlZz+Lhmo7db9L298p2vHP5ZywrVXmVXpmAD9GuL5MPH6t9ROw1iA/wfHkQ76Qe7AaPF0nGuim96/IrQMQ== + dependencies: + "@babel/regjsgen" "^0.8.0" + regenerate "^1.4.2" + regenerate-unicode-properties "^10.1.0" + regjsparser "^0.9.1" + unicode-match-property-ecmascript "^2.0.0" + unicode-match-property-value-ecmascript "^2.1.0" + +regjsparser@^0.9.1: + version "0.9.1" + resolved "https://registry.yarnpkg.com/regjsparser/-/regjsparser-0.9.1.tgz#272d05aa10c7c1f67095b1ff0addae8442fc5709" + integrity sha512-dQUtn90WanSNl+7mQKcXAgZxvUe7Z0SqXlgzv0za4LwiUhyzBC58yQO3liFoUgu8GiJVInAhJjkj1N0EtQ5nkQ== + dependencies: + jsesc "~0.5.0" + +remark-parse@^6.0.0: + version "6.0.3" + resolved "https://registry.yarnpkg.com/remark-parse/-/remark-parse-6.0.3.tgz#c99131052809da482108413f87b0ee7f52180a3a" + integrity sha512-QbDXWN4HfKTUC0hHa4teU463KclLAnwpn/FBn87j9cKYJWWawbiLgMfP2Q4XwhxxuuuOxHlw+pSN0OKuJwyVvg== + dependencies: + collapse-white-space "^1.0.2" + is-alphabetical "^1.0.0" + is-decimal "^1.0.0" + is-whitespace-character "^1.0.0" + is-word-character "^1.0.0" + markdown-escapes "^1.0.0" + parse-entities "^1.1.0" + repeat-string "^1.5.4" + state-toggle "^1.0.0" + trim "0.0.1" + trim-trailing-lines "^1.0.0" + unherit "^1.0.4" + unist-util-remove-position "^1.0.0" + vfile-location "^2.0.0" + xtend "^4.0.1" + +remark-stringify@^6.0.0: + version "6.0.4" + resolved "https://registry.yarnpkg.com/remark-stringify/-/remark-stringify-6.0.4.tgz#16ac229d4d1593249018663c7bddf28aafc4e088" + integrity sha512-eRWGdEPMVudijE/psbIDNcnJLRVx3xhfuEsTDGgH4GsFF91dVhw5nhmnBppafJ7+NWINW6C7ZwWbi30ImJzqWg== + dependencies: + ccount "^1.0.0" + is-alphanumeric "^1.0.0" + is-decimal "^1.0.0" + is-whitespace-character "^1.0.0" + longest-streak "^2.0.1" + markdown-escapes "^1.0.0" + markdown-table "^1.1.0" + mdast-util-compact "^1.0.0" + parse-entities "^1.0.2" + repeat-string "^1.5.4" + state-toggle "^1.0.0" + stringify-entities "^1.0.1" + unherit "^1.0.4" + xtend "^4.0.1" + +remark@^10.0.1: + version "10.0.1" + resolved "https://registry.yarnpkg.com/remark/-/remark-10.0.1.tgz#3058076dc41781bf505d8978c291485fe47667df" + integrity sha512-E6lMuoLIy2TyiokHprMjcWNJ5UxfGQjaMSMhV+f4idM625UjjK4j798+gPs5mfjzDE6vL0oFKVeZM6gZVSVrzQ== + dependencies: + remark-parse "^6.0.0" + remark-stringify "^6.0.0" + unified "^7.0.0" + +repeat-element@^1.1.2: + version "1.1.4" + resolved "https://registry.yarnpkg.com/repeat-element/-/repeat-element-1.1.4.tgz#be681520847ab58c7568ac75fbfad28ed42d39e9" + integrity sha512-LFiNfRcSu7KK3evMyYOuCzv3L10TW7yC1G2/+StMjK8Y6Vqd2MG7r/Qjw4ghtuCOjFvlnms/iMmLqpvW/ES/WQ== + +repeat-string@^1.5.4, repeat-string@^1.6.1: + version "1.6.1" + resolved "https://registry.yarnpkg.com/repeat-string/-/repeat-string-1.6.1.tgz#8dcae470e1c88abc2d600fff4a776286da75e637" + integrity sha512-PV0dzCYDNfRi1jCDbJzpW7jNNDRuCOG/jI5ctQcGKt/clZD+YcPS3yIlWuTJMmESC8aevCFmWJy5wjAFgNqN6w== + +replace-ext@1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/replace-ext/-/replace-ext-1.0.0.tgz#de63128373fcbf7c3ccfa4de5a480c45a67958eb" + integrity sha512-vuNYXC7gG7IeVNBC1xUllqCcZKRbJoSPOBhnTEcAIiKCsbuef6zO3F0Rve3isPMMoNoQRWjQwbAgAjHUHniyEA== + +request@^2.87.0: + version "2.88.2" + resolved "https://registry.yarnpkg.com/request/-/request-2.88.2.tgz#d73c918731cb5a87da047e207234146f664d12b3" + integrity sha512-MsvtOrfG9ZcrOwAW+Qi+F6HbD0CWXEh9ou77uOb7FM2WPhwT7smM833PzanhJLsgXjN89Ir6V2PczXNnMpwKhw== + dependencies: + aws-sign2 "~0.7.0" + aws4 "^1.8.0" + caseless "~0.12.0" + combined-stream "~1.0.6" + extend "~3.0.2" + forever-agent "~0.6.1" + form-data "~2.3.2" + har-validator "~5.1.3" + http-signature "~1.2.0" + is-typedarray "~1.0.0" + isstream "~0.1.2" + json-stringify-safe "~5.0.1" + mime-types "~2.1.19" + oauth-sign "~0.9.0" + performance-now "^2.1.0" + qs "~6.5.2" + safe-buffer "^5.1.2" + tough-cookie "~2.5.0" + tunnel-agent "^0.6.0" + uuid "^3.3.2" + +require-directory@^2.1.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/require-directory/-/require-directory-2.1.1.tgz#8c64ad5fd30dab1c976e2344ffe7f792a6a6df42" + integrity sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q== + +require-from-string@^2.0.2: + version "2.0.2" + resolved "https://registry.yarnpkg.com/require-from-string/-/require-from-string-2.0.2.tgz#89a7fdd938261267318eafe14f9c32e598c36909" + integrity sha512-Xf0nWe6RseziFMu+Ap9biiUbmplq6S9/p+7w7YXP/JBHhrUDDUhwa+vANyubuqfZWTveU//DYVGsDG7RKL/vEw== + +require-main-filename@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/require-main-filename/-/require-main-filename-2.0.0.tgz#d0b329ecc7cc0f61649f62215be69af54aa8989b" + integrity sha512-NKN5kMDylKuldxYLSUfrbo5Tuzh4hd+2E8NPPX02mZtn1VuREQToYe/ZdlJy+J3uCpfaiGF05e7B8W0iXbQHmg== + +requires-port@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/requires-port/-/requires-port-1.0.0.tgz#925d2601d39ac485e091cf0da5c6e694dc3dcaff" + integrity sha512-KigOCHcocU3XODJxsu8i/j8T9tzT4adHiecwORRQ0ZZFcp7ahwXuRU1m+yuO90C5ZUyGeGfocHDI14M3L3yDAQ== + +resolve-from@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-3.0.0.tgz#b22c7af7d9d6881bc8b6e653335eebcb0a188748" + integrity sha512-GnlH6vxLymXJNMBo7XP1fJIzBFbdYt49CuTwmB/6N53t+kMPRMFKz783LlQ4tv28XoQfMWinAJX6WCGf2IlaIw== + +resolve-from@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-4.0.0.tgz#4abcd852ad32dd7baabfe9b40e00a36db5f392e6" + integrity sha512-pb/MYmXstAkysRFx8piNI1tGFNQIFA3vkE3Gq4EuA1dF6gHp/+vgZqsCGJapvy8N3Q+4o7FwvquPJcnZ7RYy4g== + +resolve-from@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-from/-/resolve-from-5.0.0.tgz#c35225843df8f776df21c57557bc087e9dfdfc69" + integrity sha512-qYg9KP24dD5qka9J47d0aVky0N+b4fTU89LN9iDnjB5waksiC49rvMB0PrUJQGoTmH50XPiqOvAjDfaijGxYZw== + +resolve-url-loader@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/resolve-url-loader/-/resolve-url-loader-5.0.0.tgz#ee3142fb1f1e0d9db9524d539cfa166e9314f795" + integrity sha512-uZtduh8/8srhBoMx//5bwqjQ+rfYOUq8zC9NrMUGtjBiGTtFJM42s58/36+hTqeqINcnYe08Nj3LkK9lW4N8Xg== + dependencies: + adjust-sourcemap-loader "^4.0.0" + convert-source-map "^1.7.0" + loader-utils "^2.0.0" + postcss "^8.2.14" + source-map "0.6.1" + +resolve-url@^0.2.1: + version "0.2.1" + resolved "https://registry.yarnpkg.com/resolve-url/-/resolve-url-0.2.1.tgz#2c637fe77c893afd2a663fe21aa9080068e2052a" + integrity sha512-ZuF55hVUQaaczgOIwqWzkEcEidmlD/xl44x1UZnhOXcYuFN2S6+rcxpG+C1N3So0wvNI3DmJICUFfu2SxhBmvg== + +resolve@1.22.8, resolve@^1.10.0, resolve@^1.14.2, resolve@^1.22.0, resolve@^1.22.4: + version "1.22.8" + resolved "https://registry.yarnpkg.com/resolve/-/resolve-1.22.8.tgz#b6c87a9f2aa06dfab52e3d70ac8cde321fa5a48d" + integrity sha512-oKWePCxqpd6FlLvGV1VU0x7bkPmmCNolxzjMf4NczoDnQcIWrAF+cPtZn5i6n+RfD2d9i0tzpKnG6Yk168yIyw== + dependencies: + is-core-module "^2.13.0" + path-parse "^1.0.7" + supports-preserve-symlinks-flag "^1.0.0" + +restore-cursor@^3.1.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-3.1.0.tgz#39f67c54b3a7a58cea5236d95cf0034239631f7e" + integrity sha512-l+sSefzHpj5qimhFSE5a8nufZYAM3sBSVMAPtYkmC+4EH2anSGaEMXSD0izRQbu9nfyQ9y5JrVmp7E8oZrUjvA== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +restore-cursor@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/restore-cursor/-/restore-cursor-4.0.0.tgz#519560a4318975096def6e609d44100edaa4ccb9" + integrity sha512-I9fPXU9geO9bHOt9pHHOhOkYerIMsmVaWB0rA2AI9ERh/+x/i7MV5HKBNrg+ljO5eoPVgCcnFuRjJ9uH6I/3eg== + dependencies: + onetime "^5.1.0" + signal-exit "^3.0.2" + +ret@~0.1.10: + version "0.1.15" + resolved "https://registry.yarnpkg.com/ret/-/ret-0.1.15.tgz#b8a4825d5bdb1fc3f6f53c2bc33f81388681c7bc" + integrity sha512-TTlYpa+OL+vMMNG24xSlQGEJ3B/RzEfUlLct7b5G/ytav+wPrplCpVMFuwzXbkecJrb6IYo1iFb0S9v37754mg== + +retry@^0.12.0: + version "0.12.0" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.12.0.tgz#1b42a6266a21f07421d1b0b54b7dc167b01c013b" + integrity sha512-9LkiTwjUh6rT555DtE9rTX+BKByPfrMzEAtnlEtdEwr3Nkffwiihqe2bWADg+OQRjt9gl6ICdmB/ZFDCGAtSow== + +retry@^0.13.1: + version "0.13.1" + resolved "https://registry.yarnpkg.com/retry/-/retry-0.13.1.tgz#185b1587acf67919d63b357349e03537b2484658" + integrity sha512-XQBQ3I8W1Cge0Seh+6gjj03LbmRFWuoszgK9ooCpwYIrhhoO80pfq4cUkU5DkknwfOfFteRwlZ56PYOGYyFWdg== + +reusify@^1.0.4: + version "1.0.4" + resolved "https://registry.yarnpkg.com/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" + integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== + +rfdc@^1.3.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/rfdc/-/rfdc-1.4.1.tgz#778f76c4fb731d93414e8f925fbecf64cce7f6ca" + integrity sha512-q1b3N5QkRUWUl7iyylaaj3kOpIT0N2i9MqIEQXP73GVsN9cw3fdx8X63cEmWhJGi2PPCF23Ijp7ktmd39rawIA== + +rimraf@2.6.3, rimraf@~2.6.2: + version "2.6.3" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.6.3.tgz#b2d104fe0d8fb27cf9e0a1cda8262dd3833c6cab" + integrity sha512-mwqeW5XsA2qAejG46gYdENaxXjx9onRNCfn7L0duuP4hCuTIi/QO7PDK07KJfp1d+izWPrzEJDcSqBa0OZQriA== + dependencies: + glob "^7.1.3" + +rimraf@^2.2.8, rimraf@^2.5.2, rimraf@^2.5.4: + version "2.7.1" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-2.7.1.tgz#35797f13a7fdadc566142c29d4f07ccad483e3ec" + integrity sha512-uWjbaKIK3T1OSVptzX7Nl6PvQ3qAGtKEtVRjRuazjfL3Bx5eI409VZSqgND+4UNnmzLVdPj9FqFJNPqBZFve4w== + dependencies: + glob "^7.1.3" + +rimraf@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/rimraf/-/rimraf-3.0.2.tgz#f1a5402ba6220ad52cc1282bac1ae3aa49fd061a" + integrity sha512-JZkJMZkAGFFPP2YqXZXPbMlMBgsxzE8ILs4lMIX/2o0L9UBw9O/Y3o6wFw/i9YLapcUJWwqbi3kdxIPdC62TIA== + dependencies: + glob "^7.1.3" + +rollup@^4.2.0: + version "4.18.1" + resolved "https://registry.yarnpkg.com/rollup/-/rollup-4.18.1.tgz#18a606df5e76ca53b8a69f2d8eab256d69dda851" + integrity sha512-Elx2UT8lzxxOXMpy5HWQGZqkrQOtrVDDa/bm9l10+U4rQnVzbL/LgZ4NOM1MPIDyHk69W4InuYDF5dzRh4Kw1A== + dependencies: + "@types/estree" "1.0.5" + optionalDependencies: + "@rollup/rollup-android-arm-eabi" "4.18.1" + "@rollup/rollup-android-arm64" "4.18.1" + "@rollup/rollup-darwin-arm64" "4.18.1" + "@rollup/rollup-darwin-x64" "4.18.1" + "@rollup/rollup-linux-arm-gnueabihf" "4.18.1" + "@rollup/rollup-linux-arm-musleabihf" "4.18.1" + "@rollup/rollup-linux-arm64-gnu" "4.18.1" + "@rollup/rollup-linux-arm64-musl" "4.18.1" + "@rollup/rollup-linux-powerpc64le-gnu" "4.18.1" + "@rollup/rollup-linux-riscv64-gnu" "4.18.1" + "@rollup/rollup-linux-s390x-gnu" "4.18.1" + "@rollup/rollup-linux-x64-gnu" "4.18.1" + "@rollup/rollup-linux-x64-musl" "4.18.1" + "@rollup/rollup-win32-arm64-msvc" "4.18.1" + "@rollup/rollup-win32-ia32-msvc" "4.18.1" + "@rollup/rollup-win32-x64-msvc" "4.18.1" + fsevents "~2.3.2" + +run-async@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/run-async/-/run-async-3.0.0.tgz#42a432f6d76c689522058984384df28be379daad" + integrity sha512-540WwVDOMxA6dN6We19EcT9sc3hkXPw5mzRNGM3FkdN/vtE9NFvj5lFAPNwUDmJjXidm3v7TC1cTE7t17Ulm1Q== + +run-parallel@^1.1.9: + version "1.2.0" + resolved "https://registry.yarnpkg.com/run-parallel/-/run-parallel-1.2.0.tgz#66d1368da7bdf921eb9d95bd1a9229e7f21a43ee" + integrity sha512-5l4VyZR86LZ/lDxZTR6jqL8AFE2S0IFLMP26AbjsLVADxHdhB/c0GUsH+y39UfCi3dzz8OlQuPmnaJOMoDHQBA== + dependencies: + queue-microtask "^1.2.2" + +rxjs@7.8.1, rxjs@^7.8.1: + version "7.8.1" + resolved "https://registry.yarnpkg.com/rxjs/-/rxjs-7.8.1.tgz#6f6f3d99ea8044291efd92e7c7fcf562c4057543" + integrity sha512-AA3TVj+0A2iuIoQkWEK/tqFjBq2j+6PO6Y0zJcvzLAFhEFIO3HL0vls9hWLncZbAAbK0mar7oZ4V079I/qPMxg== + dependencies: + tslib "^2.1.0" + +safe-array-concat@^1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/safe-array-concat/-/safe-array-concat-1.1.2.tgz#81d77ee0c4e8b863635227c721278dd524c20edb" + integrity sha512-vj6RsCsWBCf19jIeHEfkRMw8DPiBb+DMXklQ/1SGDHOMlHdPUkZXFQ2YdplS23zESTijAcurb1aSgJA3AgMu1Q== + dependencies: + call-bind "^1.0.7" + get-intrinsic "^1.2.4" + has-symbols "^1.0.3" + isarray "^2.0.5" + +safe-buffer@5.1.2, safe-buffer@~5.1.0, safe-buffer@~5.1.1: + version "5.1.2" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.1.2.tgz#991ec69d296e0313747d59bdfd2b745c35f8828d" + integrity sha512-Gd2UZBJDkXlY7GbJxfsE8/nvKkUEU1G38c1siN6QP6a9PT9MmHB8GnpscSmMJSoF8LOIrt8ud/wPtojys4G6+g== + +safe-buffer@5.2.1, safe-buffer@>=5.1.0, safe-buffer@^5.0.1, safe-buffer@^5.1.0, safe-buffer@^5.1.2, safe-buffer@~5.2.0: + version "5.2.1" + resolved "https://registry.yarnpkg.com/safe-buffer/-/safe-buffer-5.2.1.tgz#1eaf9fa9bdb1fdd4ec75f58f9cdb4e6b7827eec6" + integrity sha512-rp3So07KcdmmKbGvgaNxQSJr7bGVSVk5S9Eq1F+ppbRo70+YeaDxkw5Dd8NPN+GD6bjnYm2VuPuCXmpuYvmCXQ== + +safe-regex-test@^1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/safe-regex-test/-/safe-regex-test-1.0.3.tgz#a5b4c0f06e0ab50ea2c395c14d8371232924c377" + integrity sha512-CdASjNJPvRa7roO6Ra/gLYBTzYzzPyyBXxIMdGW3USQLyjWEls2RgW5UBTXaQVp+OrpeCK3bLem8smtmheoRuw== + dependencies: + call-bind "^1.0.6" + es-errors "^1.3.0" + is-regex "^1.1.4" + +safe-regex@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/safe-regex/-/safe-regex-1.1.0.tgz#40a3669f3b077d1e943d44629e157dd48023bf2e" + integrity sha512-aJXcif4xnaNUzvUuC5gcb46oTS7zvg4jpMTnuqtrEPlR3vFr4pxtdTwaF1Qs3Enjn9HK+ZlwQui+a7z0SywIzg== + dependencies: + ret "~0.1.10" + +"safer-buffer@>= 2.1.2 < 3", "safer-buffer@>= 2.1.2 < 3.0.0", safer-buffer@^2.0.2, safer-buffer@^2.1.0, safer-buffer@~2.1.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/safer-buffer/-/safer-buffer-2.1.2.tgz#44fa161b0187b9549dd84bb91802f9bd8385cd6a" + integrity sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg== + +sass-loader@14.1.1: + version "14.1.1" + resolved "https://registry.yarnpkg.com/sass-loader/-/sass-loader-14.1.1.tgz#2c9d2277c5b1c5fe789cd0570c046d8ad23cb7ca" + integrity sha512-QX8AasDg75monlybel38BZ49JP5Z+uSKfKwF2rO7S74BywaRmGQMUBw9dtkS+ekyM/QnP+NOrRYq8ABMZ9G8jw== + dependencies: + neo-async "^2.6.2" + +sass@1.71.1: + version "1.71.1" + resolved "https://registry.yarnpkg.com/sass/-/sass-1.71.1.tgz#dfb09c63ce63f89353777bbd4a88c0a38386ee54" + integrity sha512-wovtnV2PxzteLlfNzbgm1tFXPLoZILYAMJtvoXXkD7/+1uP41eKkIt1ypWq5/q2uT94qHjXehEYfmjKOvjL9sg== + dependencies: + chokidar ">=3.0.0 <4.0.0" + immutable "^4.0.0" + source-map-js ">=0.6.2 <2.0.0" + +saucelabs@^1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/saucelabs/-/saucelabs-1.5.0.tgz#9405a73c360d449b232839919a86c396d379fd9d" + integrity sha512-jlX3FGdWvYf4Q3LFfFWS1QvPg3IGCGWxIc8QBFdPTbpTJnt/v17FHXYVAn7C8sHf1yUXo2c7yIM0isDryfYtHQ== + dependencies: + https-proxy-agent "^2.2.1" + +sax@>=0.6.0, sax@^1.2.4: + version "1.4.1" + resolved "https://registry.yarnpkg.com/sax/-/sax-1.4.1.tgz#44cc8988377f126304d3b3fc1010c733b929ef0f" + integrity sha512-+aWOz7yVScEGoKNd4PA10LZ8sk0A/z5+nXQG5giUO5rprX9jgYsTdov9qCchZiPIZezbZH+jRut8nPodFAX4Jg== + +schema-utils@^3.1.1, schema-utils@^3.2.0: + version "3.3.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-3.3.0.tgz#f50a88877c3c01652a15b622ae9e9795df7a60fe" + integrity sha512-pN/yOAvcC+5rQ5nERGuwrjLlYvLTbCibnZ1I7B1LaiAz9BRBlE9GMgE/eqV30P7aJQUf7Ddimy/RsbYO/GrVGg== + dependencies: + "@types/json-schema" "^7.0.8" + ajv "^6.12.5" + ajv-keywords "^3.5.2" + +schema-utils@^4.0.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/schema-utils/-/schema-utils-4.2.0.tgz#70d7c93e153a273a805801882ebd3bff20d89c8b" + integrity sha512-L0jRsrPpjdckP3oPug3/VxNKt2trR8TcabrM6FOAAlvC/9Phcmm+cuAgTlxBqdBR1WJx7Naj9WHw+aOmheSVbw== + dependencies: + "@types/json-schema" "^7.0.9" + ajv "^8.9.0" + ajv-formats "^2.1.1" + ajv-keywords "^5.1.0" + +screenfull@6.0.2: + version "6.0.2" + resolved "https://registry.yarnpkg.com/screenfull/-/screenfull-6.0.2.tgz#3dbe4b8c4f8f49fb8e33caa8f69d0bca730ab238" + integrity sha512-AQdy8s4WhNvUZ6P8F6PB21tSPIYKniic+Ogx0AacBMjKP1GUHN2E9URxQHtCusiwxudnCKkdy4GrHXPPJSkCCw== + +select-hose@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/select-hose/-/select-hose-2.0.0.tgz#625d8658f865af43ec962bfc376a37359a4994ca" + integrity sha512-mEugaLK+YfkijB4fx0e6kImuJdCIt2LxCRcbEYPqRGCs4F2ogyfZU5IAZRdjCP8JPq2AtdNoC/Dux63d9Kiryg== + +selenium-webdriver@3.6.0, selenium-webdriver@^3.0.1: + version "3.6.0" + resolved "https://registry.yarnpkg.com/selenium-webdriver/-/selenium-webdriver-3.6.0.tgz#2ba87a1662c020b8988c981ae62cb2a01298eafc" + integrity sha512-WH7Aldse+2P5bbFBO4Gle/nuQOdVwpHMTL6raL3uuBj/vPG07k6uzt3aiahu352ONBr5xXh0hDlM3LhtXPOC4Q== + dependencies: + jszip "^3.1.3" + rimraf "^2.5.4" + tmp "0.0.30" + xml2js "^0.4.17" + +selfsigned@^2.1.1: + version "2.4.1" + resolved "https://registry.yarnpkg.com/selfsigned/-/selfsigned-2.4.1.tgz#560d90565442a3ed35b674034cec4e95dceb4ae0" + integrity sha512-th5B4L2U+eGLq1TVh7zNRGBapioSORUeymIydxgFpwww9d2qyKvtuPU2jJuHvYAwwqi2Y596QBL3eEqcPEYL8Q== + dependencies: + "@types/node-forge" "^1.3.0" + node-forge "^1" + +"semver@2 || 3 || 4 || 5", semver@^5.3.0, semver@^5.6.0: + version "5.7.2" + resolved "https://registry.yarnpkg.com/semver/-/semver-5.7.2.tgz#48d55db737c3287cd4835e17fa13feace1c41ef8" + integrity sha512-cBznnQ9KjJqU67B52RMC65CMarK2600WFnbkcaiwWq3xy/5haFJlshgnpjovMVJ+Hff49d8GEn0b87C5pDQ10g== + +semver@7.6.0: + version "7.6.0" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.0.tgz#1a46a4db4bffcccd97b743b5005c8325f23d4e2d" + integrity sha512-EnwXhrlwXMk9gKu5/flx5sv/an57AkRplG3hTK68W7FRDN+k+OWBj65M7719OkA82XLBxrcX0KSHj+X5COhOVg== + dependencies: + lru-cache "^6.0.0" + +semver@^6.0.0, semver@^6.3.0, semver@^6.3.1: + version "6.3.1" + resolved "https://registry.yarnpkg.com/semver/-/semver-6.3.1.tgz#556d2ef8689146e46dcea4bfdd095f3434dffcb4" + integrity sha512-BR7VvDCVHO+q2xBEWskxS6DJE1qRnb7DxzUrogb71CWoSficBxYsiAGd+Kl0mmq/MprG9yArRkyrQxTO6XjMzA== + +semver@^7.0.0, semver@^7.1.1, semver@^7.3.4, semver@^7.3.5, semver@^7.5.3, semver@^7.5.4, semver@^7.6.0, semver@^7.6.1: + version "7.6.3" + resolved "https://registry.yarnpkg.com/semver/-/semver-7.6.3.tgz#980f7b5550bc175fb4dc09403085627f9eb33143" + integrity sha512-oVekP1cKtI+CTDvHWYFUcMtsK/00wmAEfyqKfNdARm8u1wNVhSgaX7A8d4UuIlUI5e84iEwOhs7ZPYRmzU9U6A== + +send@0.18.0: + version "0.18.0" + resolved "https://registry.yarnpkg.com/send/-/send-0.18.0.tgz#670167cc654b05f5aa4a767f9113bb371bc706be" + integrity sha512-qqWzuOjSFOuqPjFe4NOsMLafToQQwBSOEpS+FwEt3A2V3vKubTquT3vmLTQpFgMXp8AlFWFuP1qKaJZOtPpVXg== + dependencies: + debug "2.6.9" + depd "2.0.0" + destroy "1.2.0" + encodeurl "~1.0.2" + escape-html "~1.0.3" + etag "~1.8.1" + fresh "0.5.2" + http-errors "2.0.0" + mime "1.6.0" + ms "2.1.3" + on-finished "2.4.1" + range-parser "~1.2.1" + statuses "2.0.1" + +serialize-javascript@^6.0.0, serialize-javascript@^6.0.1: + version "6.0.2" + resolved "https://registry.yarnpkg.com/serialize-javascript/-/serialize-javascript-6.0.2.tgz#defa1e055c83bf6d59ea805d8da862254eb6a6c2" + integrity sha512-Saa1xPByTTq2gdeFZYLLo+RFE35NHZkAbqZeWNd3BpzppeVisAqpDjcp8dyf6uIvEqJRd46jemmyA4iFIeVk8g== + dependencies: + randombytes "^2.1.0" + +serve-index@^1.9.1: + version "1.9.1" + resolved "https://registry.yarnpkg.com/serve-index/-/serve-index-1.9.1.tgz#d3768d69b1e7d82e5ce050fff5b453bea12a9239" + integrity sha512-pXHfKNP4qujrtteMrSBb0rc8HJ9Ms/GrXwcUtUtD5s4ewDJI8bT3Cz2zTVRMKtri49pLx2e0Ya8ziP5Ya2pZZw== + dependencies: + accepts "~1.3.4" + batch "0.6.1" + debug "2.6.9" + escape-html "~1.0.3" + http-errors "~1.6.2" + mime-types "~2.1.17" + parseurl "~1.3.2" + +serve-static@1.15.0: + version "1.15.0" + resolved "https://registry.yarnpkg.com/serve-static/-/serve-static-1.15.0.tgz#faaef08cffe0a1a62f60cad0c4e513cff0ac9540" + integrity sha512-XGuRDNjXUijsUL0vl6nSD7cwURuzEgglbOaFuZM9g3kwDXOWVTck0jLzjPzGD+TazWbboZYu52/9/XPdUgne9g== + dependencies: + encodeurl "~1.0.2" + escape-html "~1.0.3" + parseurl "~1.3.3" + send "0.18.0" + +set-blocking@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/set-blocking/-/set-blocking-2.0.0.tgz#045f9782d011ae9a6803ddd382b24392b3d890f7" + integrity sha512-KiKBS8AnWGEyLzofFfmvKwpdPzqiy16LvQfK3yv/fVH7Bj13/wl3JSR1J+rfgRE9q7xUJK4qvgS8raSOeLUehw== + +set-function-length@^1.2.1: + version "1.2.2" + resolved "https://registry.yarnpkg.com/set-function-length/-/set-function-length-1.2.2.tgz#aac72314198eaed975cf77b2c3b6b880695e5449" + integrity sha512-pgRc4hJ4/sNjWCSS9AmnS40x3bNMDTknHgL5UaMBTMyJnU90EgWh1Rz+MC9eFu4BuN/UwZjKQuY/1v3rM7HMfg== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + function-bind "^1.1.2" + get-intrinsic "^1.2.4" + gopd "^1.0.1" + has-property-descriptors "^1.0.2" + +set-function-name@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/set-function-name/-/set-function-name-2.0.2.tgz#16a705c5a0dc2f5e638ca96d8a8cd4e1c2b90985" + integrity sha512-7PGFlmtwsEADb0WYyvCMa1t+yke6daIG4Wirafur5kcf+MhUnPms1UeR0CKQdTZD81yESwMHbtn+TR+dMviakQ== + dependencies: + define-data-property "^1.1.4" + es-errors "^1.3.0" + functions-have-names "^1.2.3" + has-property-descriptors "^1.0.2" + +set-value@^2.0.0, set-value@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/set-value/-/set-value-2.0.1.tgz#a18d40530e6f07de4228c7defe4227af8cad005b" + integrity sha512-JxHc1weCN68wRY0fhCoXpyK55m/XPHafOmK4UWD7m2CI14GMcFypt4w/0+NV5f/ZMby2F6S2wwA7fgynh9gWSw== + dependencies: + extend-shallow "^2.0.1" + is-extendable "^0.1.1" + is-plain-object "^2.0.3" + split-string "^3.0.1" + +setimmediate@^1.0.5: + version "1.0.5" + resolved "https://registry.yarnpkg.com/setimmediate/-/setimmediate-1.0.5.tgz#290cbb232e306942d7d7ea9b83732ab7856f8285" + integrity sha512-MATJdZp8sLqDl/68LfQmbP8zKPLQNV6BIZoIgrscFDQ+RsvK/BxeDQOgyxKKoh0y/8h3BqVFnCqQ/gd+reiIXA== + +setprototypeof@1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.1.0.tgz#d0bd85536887b6fe7c0d818cb962d9d91c54e656" + integrity sha512-BvE/TwpZX4FXExxOxZyRGQQv651MSwmWKZGqvmPcRIjDqWub67kTKuIMx43cZZrS/cBBzwBcNDWoFxt2XEFIpQ== + +setprototypeof@1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/setprototypeof/-/setprototypeof-1.2.0.tgz#66c9a24a73f9fc28cbe66b09fed3d33dcaf1b424" + integrity sha512-E5LDX7Wrp85Kil5bhZv46j8jOeboKq5JMmYM3gVGdGH8xFpPWXUMsNrlODCrkoxMEeNi/XZIwuRvY4XNwYMJpw== + +shallow-clone@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/shallow-clone/-/shallow-clone-3.0.1.tgz#8f2981ad92531f55035b01fb230769a40e02efa3" + integrity sha512-/6KqX+GVUdqPuPPd2LxDDxzX6CAbjJehAAOKlNpqqUpAqPM6HeL8f+o3a+JsyGjn2lv0WY8UsTgUJjU9Ok55NA== + dependencies: + kind-of "^6.0.2" + +shebang-command@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/shebang-command/-/shebang-command-2.0.0.tgz#ccd0af4f8835fbdc265b82461aaf0c36663f34ea" + integrity sha512-kHxr2zZpYtdmrN1qDjrrX/Z1rR1kG8Dx+gkpK1G4eXmvXswmcE1hTWBWYUzlraYw1/yZp6YuDY77YtvbN0dmDA== + dependencies: + shebang-regex "^3.0.0" + +shebang-regex@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/shebang-regex/-/shebang-regex-3.0.0.tgz#ae16f1644d873ecad843b0307b143362d4c42172" + integrity sha512-7++dFhtcx3353uBaq8DDR4NuxBetBzC7ZQOhmTQInHEd6bSrXdiEyzCvG07Z44UYdLShWUyXt5M/yhz8ekcb1A== + +shell-quote@^1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/shell-quote/-/shell-quote-1.8.1.tgz#6dbf4db75515ad5bac63b4f1894c3a154c766680" + integrity sha512-6j1W9l1iAs/4xYBI1SYOVZyFcCis9b4KCLQ8fgAGG07QvzaRLVVRQvAy85yNmmZSjYjg4MWh4gNvlPujU/5LpA== + +should-equal@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/should-equal/-/should-equal-2.0.0.tgz#6072cf83047360867e68e98b09d71143d04ee0c3" + integrity sha512-ZP36TMrK9euEuWQYBig9W55WPC7uo37qzAEmbjHz4gfyuXrEUgF8cUvQVO+w+d3OMfPvSRQJ22lSm8MQJ43LTA== + dependencies: + should-type "^1.4.0" + +should-format@^3.0.3: + version "3.0.3" + resolved "https://registry.yarnpkg.com/should-format/-/should-format-3.0.3.tgz#9bfc8f74fa39205c53d38c34d717303e277124f1" + integrity sha512-hZ58adtulAk0gKtua7QxevgUaXTTXxIi8t41L3zo9AHvjXO1/7sdLECuHeIN2SRtYXpNkmhoUP2pdeWgricQ+Q== + dependencies: + should-type "^1.3.0" + should-type-adaptors "^1.0.1" + +should-type-adaptors@^1.0.1: + version "1.1.0" + resolved "https://registry.yarnpkg.com/should-type-adaptors/-/should-type-adaptors-1.1.0.tgz#401e7f33b5533033944d5cd8bf2b65027792e27a" + integrity sha512-JA4hdoLnN+kebEp2Vs8eBe9g7uy0zbRo+RMcU0EsNy+R+k049Ki+N5tT5Jagst2g7EAja+euFuoXFCa8vIklfA== + dependencies: + should-type "^1.3.0" + should-util "^1.0.0" + +should-type@^1.3.0, should-type@^1.4.0: + version "1.4.0" + resolved "https://registry.yarnpkg.com/should-type/-/should-type-1.4.0.tgz#0756d8ce846dfd09843a6947719dfa0d4cff5cf3" + integrity sha512-MdAsTu3n25yDbIe1NeN69G4n6mUnJGtSJHygX3+oN0ZbO3DTiATnf7XnYJdGT42JCXurTb1JI0qOBR65shvhPQ== + +should-util@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/should-util/-/should-util-1.0.1.tgz#fb0d71338f532a3a149213639e2d32cbea8bcb28" + integrity sha512-oXF8tfxx5cDk8r2kYqlkUJzZpDBqVY/II2WhvU0n9Y3XYvAYRmeaf1PvvIvTgPnv4KJ+ES5M0PyDq5Jp+Ygy2g== + +should@^13.2.1: + version "13.2.3" + resolved "https://registry.yarnpkg.com/should/-/should-13.2.3.tgz#96d8e5acf3e97b49d89b51feaa5ae8d07ef58f10" + integrity sha512-ggLesLtu2xp+ZxI+ysJTmNjh2U0TsC+rQ/pfED9bUZZ4DKefP27D+7YJVVTvKsmjLpIi9jAa7itwDGkDDmt1GQ== + dependencies: + should-equal "^2.0.0" + should-format "^3.0.3" + should-type "^1.4.0" + should-type-adaptors "^1.0.1" + should-util "^1.0.0" + +side-channel@^1.0.4: + version "1.0.6" + resolved "https://registry.yarnpkg.com/side-channel/-/side-channel-1.0.6.tgz#abd25fb7cd24baf45466406b1096b7831c9215f2" + integrity sha512-fDW/EZ6Q9RiO8eFG8Hj+7u/oW+XrPTIChwCOM2+th2A6OblDtYYIpve9m+KvI9Z4C9qSEXlaGR6bTEYHReuglA== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + get-intrinsic "^1.2.4" + object-inspect "^1.13.1" + +signal-exit@^3.0.0, signal-exit@^3.0.2, signal-exit@^3.0.3, signal-exit@^3.0.7: + version "3.0.7" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-3.0.7.tgz#a9a1767f8af84155114eaabd73f99273c8f59ad9" + integrity sha512-wnD2ZE+l+SPC/uoS0vXeE9L1+0wuaMqKlfz9AMUo38JsyLSBWSFcHR1Rri62LZc12vLr1gb3jl7iwQhgwpAbGQ== + +signal-exit@^4.0.1: + version "4.1.0" + resolved "https://registry.yarnpkg.com/signal-exit/-/signal-exit-4.1.0.tgz#952188c1cbd546070e2dd20d0f41c0ae0530cb04" + integrity sha512-bzyZ1e88w9O1iNJbKnOlvYTrWPDl46O1bG0D3XInv+9tkPrxrN8jUUTiFlDkkmKWgn1M6CfIA13SuGqOa9Korw== + +sigstore@^2.2.0: + version "2.3.1" + resolved "https://registry.yarnpkg.com/sigstore/-/sigstore-2.3.1.tgz#0755dd2cc4820f2e922506da54d3d628e13bfa39" + integrity sha512-8G+/XDU8wNsJOQS5ysDVO0Etg9/2uA5gR9l4ZwijjlwxBcrU6RPfwi2+jJmbP+Ap1Hlp/nVAaEO4Fj22/SL2gQ== + dependencies: + "@sigstore/bundle" "^2.3.2" + "@sigstore/core" "^1.0.0" + "@sigstore/protobuf-specs" "^0.3.2" + "@sigstore/sign" "^2.3.2" + "@sigstore/tuf" "^2.3.4" + "@sigstore/verify" "^1.2.1" + +slash@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-2.0.0.tgz#de552851a1759df3a8f206535442f5ec4ddeab44" + integrity sha512-ZYKh3Wh2z1PpEXWr0MpSBZ0V6mZHAQfYevttO11c51CaWjGTaadiKZ+wVt1PbMlDV5qhMFslpZCemhwOK7C89A== + +slash@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-3.0.0.tgz#6539be870c165adbd5240220dbe361f1bc4d4634" + integrity sha512-g9Q1haeby36OSStwb4ntCGGGaKsaVSjQ68fBxoQcutl5fS1vuY18H3wSt3jFyFtrkx+Kz0V1G85A4MyAdDMi2Q== + +slash@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slash/-/slash-4.0.0.tgz#2422372176c4c6c5addb5e2ada885af984b396a7" + integrity sha512-3dOsAHXXUkQTpOYcoAxLIorMTp4gIQr5IW3iVb7A7lFIp0VHhnynm9izx6TssdrIcVIESAlVjtnO2K8bg+Coew== + +slice-ansi@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-2.1.0.tgz#cacd7693461a637a5788d92a7dd4fba068e81636" + integrity sha512-Qu+VC3EwYLldKa1fCxuuvULvSJOKEgk9pi8dZeCVK7TqBfUNTH4sFkk4joj8afVSfAYgJoSOetjx9QWOJ5mYoQ== + dependencies: + ansi-styles "^3.2.0" + astral-regex "^1.0.0" + is-fullwidth-code-point "^2.0.0" + +slice-ansi@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-4.0.0.tgz#500e8dd0fd55b05815086255b3195adf2a45fe6b" + integrity sha512-qMCMfhY040cVHT43K9BFygqYbUPFZKHOg7K73mtTWJRb8pyP3fzf4Ixd5SzdEJQ6MRUg/WBnOLxghZtKKurENQ== + dependencies: + ansi-styles "^4.0.0" + astral-regex "^2.0.0" + is-fullwidth-code-point "^3.0.0" + +slice-ansi@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/slice-ansi/-/slice-ansi-5.0.0.tgz#b73063c57aa96f9cd881654b15294d95d285c42a" + integrity sha512-FC+lgizVPfie0kkhqUScwRu1O/lF6NOgJmlCgK+/LYxDCTk8sGelYaHDhFcDN+Sn3Cv+3VSa4Byeo+IMCzpMgQ== + dependencies: + ansi-styles "^6.0.0" + is-fullwidth-code-point "^4.0.0" + +slick-carousel@1.8.1: + version "1.8.1" + resolved "https://registry.yarnpkg.com/slick-carousel/-/slick-carousel-1.8.1.tgz#a4bfb29014887bb66ce528b90bd0cda262cc8f8d" + integrity sha512-XB9Ftrf2EEKfzoQXt3Nitrt/IPbT+f1fgqBdoxO3W/+JYvtEOW6EgxnWfr9GH6nmULv7Y2tPmEX3koxThVmebA== + +smart-buffer@^4.2.0: + version "4.2.0" + resolved "https://registry.yarnpkg.com/smart-buffer/-/smart-buffer-4.2.0.tgz#6e1d71fa4f18c05f7d0ff216dd16a481d0e8d9ae" + integrity sha512-94hK0Hh8rPqQl2xXc3HsaBoOXKV20MToPkcXvwbISWLEs+64sBq5kFgn2kJDHb1Pry9yrP0dxrCI9RRci7RXKg== + +snapdragon-node@^2.0.1: + version "2.1.1" + resolved "https://registry.yarnpkg.com/snapdragon-node/-/snapdragon-node-2.1.1.tgz#6c175f86ff14bdb0724563e8f3c1b021a286853b" + integrity sha512-O27l4xaMYt/RSQ5TR3vpWCAB5Kb/czIcqUFOM/C4fYcLnbZUc1PkjTAMjof2pBWaSTwOUd6qUHcFGVGj7aIwnw== + dependencies: + define-property "^1.0.0" + isobject "^3.0.0" + snapdragon-util "^3.0.1" + +snapdragon-util@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/snapdragon-util/-/snapdragon-util-3.0.1.tgz#f956479486f2acd79700693f6f7b805e45ab56e2" + integrity sha512-mbKkMdQKsjX4BAL4bRYTj21edOf8cN7XHdYUJEe+Zn99hVEYcMvKPct1IqNe7+AZPirn8BCDOQBHQZknqmKlZQ== + dependencies: + kind-of "^3.2.0" + +snapdragon@^0.8.1: + version "0.8.2" + resolved "https://registry.yarnpkg.com/snapdragon/-/snapdragon-0.8.2.tgz#64922e7c565b0e14204ba1aa7d6964278d25182d" + integrity sha512-FtyOnWN/wCHTVXOMwvSv26d+ko5vWlIDD6zoUJ7LW8vh+ZBC8QdljveRP+crNrtBwioEUWy/4dMtbBjA4ioNlg== + dependencies: + base "^0.11.1" + debug "^2.2.0" + define-property "^0.2.5" + extend-shallow "^2.0.1" + map-cache "^0.2.2" + source-map "^0.5.6" + source-map-resolve "^0.5.0" + use "^3.1.0" + +socket.io-adapter@~2.5.2: + version "2.5.5" + resolved "https://registry.yarnpkg.com/socket.io-adapter/-/socket.io-adapter-2.5.5.tgz#c7a1f9c703d7756844751b6ff9abfc1780664082" + integrity sha512-eLDQas5dzPgOWCk9GuuJC2lBqItuhKI4uxGgo9aIV7MYbk2h9Q6uULEh8WBzThoI7l+qU9Ast9fVUmkqPP9wYg== + dependencies: + debug "~4.3.4" + ws "~8.17.1" + +socket.io-parser@~4.2.4: + version "4.2.4" + resolved "https://registry.yarnpkg.com/socket.io-parser/-/socket.io-parser-4.2.4.tgz#c806966cf7270601e47469ddeec30fbdfda44c83" + integrity sha512-/GbIKmo8ioc+NIWIhwdecY0ge+qVBSMdgxGygevmdHj24bsfgtCmcUUcQ5ZzcylGFHsN3k4HB4Cgkl96KVnuew== + dependencies: + "@socket.io/component-emitter" "~3.1.0" + debug "~4.3.1" + +socket.io@^4.4.1: + version "4.7.5" + resolved "https://registry.yarnpkg.com/socket.io/-/socket.io-4.7.5.tgz#56eb2d976aef9d1445f373a62d781a41c7add8f8" + integrity sha512-DmeAkF6cwM9jSfmp6Dr/5/mfMwb5Z5qRrSXLpo3Fq5SqyU8CMF15jIN4ZhfSwu35ksM1qmHZDQ/DK5XTccSTvA== + dependencies: + accepts "~1.3.4" + base64id "~2.0.0" + cors "~2.8.5" + debug "~4.3.2" + engine.io "~6.5.2" + socket.io-adapter "~2.5.2" + socket.io-parser "~4.2.4" + +sockjs@^0.3.24: + version "0.3.24" + resolved "https://registry.yarnpkg.com/sockjs/-/sockjs-0.3.24.tgz#c9bc8995f33a111bea0395ec30aa3206bdb5ccce" + integrity sha512-GJgLTZ7vYb/JtPSSZ10hsOYIvEYsjbNU+zPdIHcUaWVNUEPivzxku31865sSSud0Da0W4lEeOPlmw93zLQchuQ== + dependencies: + faye-websocket "^0.11.3" + uuid "^8.3.2" + websocket-driver "^0.7.4" + +socks-proxy-agent@^8.0.3: + version "8.0.4" + resolved "https://registry.yarnpkg.com/socks-proxy-agent/-/socks-proxy-agent-8.0.4.tgz#9071dca17af95f483300316f4b063578fa0db08c" + integrity sha512-GNAq/eg8Udq2x0eNiFkr9gRg5bA7PXEWagQdeRX4cPSG+X/8V38v637gim9bjFptMk1QWsCTr0ttrJEiXbNnRw== + dependencies: + agent-base "^7.1.1" + debug "^4.3.4" + socks "^2.8.3" + +socks@^2.8.3: + version "2.8.3" + resolved "https://registry.yarnpkg.com/socks/-/socks-2.8.3.tgz#1ebd0f09c52ba95a09750afe3f3f9f724a800cb5" + integrity sha512-l5x7VUUWbjVFbafGLxPWkYsHIhEvmF85tbIeFZWc8ZPtoMyybuEhL7Jye/ooC4/d48FgOjSJXgsF/AJPYCW8Zw== + dependencies: + ip-address "^9.0.5" + smart-buffer "^4.2.0" + +source-map-explorer@2.5.3: + version "2.5.3" + resolved "https://registry.yarnpkg.com/source-map-explorer/-/source-map-explorer-2.5.3.tgz#33551b51e33b70f56d15e79083cdd4c43e583b69" + integrity sha512-qfUGs7UHsOBE5p/lGfQdaAj/5U/GWYBw2imEpD6UQNkqElYonkow8t+HBL1qqIl3CuGZx7n8/CQo4x1HwSHhsg== + dependencies: + btoa "^1.2.1" + chalk "^4.1.0" + convert-source-map "^1.7.0" + ejs "^3.1.5" + escape-html "^1.0.3" + glob "^7.1.6" + gzip-size "^6.0.0" + lodash "^4.17.20" + open "^7.3.1" + source-map "^0.7.4" + temp "^0.9.4" + yargs "^16.2.0" + +"source-map-js@>=0.6.2 <2.0.0", source-map-js@^1.0.2, source-map-js@^1.2.0: + version "1.2.0" + resolved "https://registry.yarnpkg.com/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" + integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== + +source-map-loader@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/source-map-loader/-/source-map-loader-5.0.0.tgz#f593a916e1cc54471cfc8851b905c8a845fc7e38" + integrity sha512-k2Dur7CbSLcAH73sBcIkV5xjPV4SzqO1NJ7+XaQl8if3VODDUj3FNchNGpqgJSKbvUfJuhVdv8K2Eu8/TNl2eA== + dependencies: + iconv-lite "^0.6.3" + source-map-js "^1.0.2" + +source-map-resolve@^0.5.0: + version "0.5.3" + resolved "https://registry.yarnpkg.com/source-map-resolve/-/source-map-resolve-0.5.3.tgz#190866bece7553e1f8f267a2ee82c606b5509a1a" + integrity sha512-Htz+RnsXWk5+P2slx5Jh3Q66vhQj1Cllm0zvnaY98+NFx+Dv2CF/f5O/t8x+KaNdrdIAsruNzoh/KpialbqAnw== + dependencies: + atob "^2.1.2" + decode-uri-component "^0.2.0" + resolve-url "^0.2.1" + source-map-url "^0.4.0" + urix "^0.1.0" + +source-map-support@0.5.21, source-map-support@^0.5.5, source-map-support@~0.5.20: + version "0.5.21" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" + integrity sha512-uBHU3L3czsIyYXKX88fdrGovxdSCoTGDRZ6SYXtSRxLZUzHg5P/66Ht6uoUlHu9EZod+inXhKo3qQgwXUT/y1w== + dependencies: + buffer-from "^1.0.0" + source-map "^0.6.0" + +source-map-support@~0.4.0: + version "0.4.18" + resolved "https://registry.yarnpkg.com/source-map-support/-/source-map-support-0.4.18.tgz#0286a6de8be42641338594e97ccea75f0a2c585f" + integrity sha512-try0/JqxPLF9nOjvSta7tVondkP5dwgyLDjVoyMDlmjugT2lRZ1OfsrYTkCd2hkDnJTKRbO/Rl3orm8vlsUzbA== + dependencies: + source-map "^0.5.6" + +source-map-url@^0.4.0: + version "0.4.1" + resolved "https://registry.yarnpkg.com/source-map-url/-/source-map-url-0.4.1.tgz#0af66605a745a5a2f91cf1bbf8a7afbc283dec56" + integrity sha512-cPiFOTLUKvJFIg4SKVScy4ilPPW6rFgMgfuZJPNoDuMs3nC1HbMUycBoJw77xFIp6z1UJQJOfx6C9GMH80DiTw== + +source-map@0.6.1, source-map@^0.6.0, source-map@^0.6.1, source-map@~0.6.0: + version "0.6.1" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.6.1.tgz#74722af32e9614e9c287a8d0bbde48b5e2f1a263" + integrity sha512-UjgapumWlbMhkBgzT7Ykc5YXUT46F0iKu8SGXq0bcwP5dz/h0Plj6enJqjz1Zbq2l5WaqYnrVbwWOWMyF3F47g== + +source-map@0.7.4, source-map@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.7.4.tgz#a9bbe705c9d8846f4e08ff6765acf0f1b0898656" + integrity sha512-l3BikUxvPOcn5E74dZiq5BGsTb5yEwhaTSzccU6t4sDOH8NWJCstKO5QT2CvtFoK6F0saL7p9xHAqHOlCPJygA== + +source-map@^0.5.6: + version "0.5.7" + resolved "https://registry.yarnpkg.com/source-map/-/source-map-0.5.7.tgz#8a039d2d1021d22d1ea14c80d8ea468ba2ef3fcc" + integrity sha512-LbrmJOMUSdEVxIKvdcJzQC+nQhe8FUZQTXQy6+I75skNgn3OoQ0DZA8YnFa7gp8tqtL3KPf1kmo0R5DoApeSGQ== + +spdx-correct@^3.0.0: + version "3.2.0" + resolved "https://registry.yarnpkg.com/spdx-correct/-/spdx-correct-3.2.0.tgz#4f5ab0668f0059e34f9c00dce331784a12de4e9c" + integrity sha512-kN9dJbvnySHULIluDHy32WHRUu3Og7B9sbY7tsFLctQkIqnMh3hErYgdMjTYuqmcXX+lK5T1lnUt3G7zNswmZA== + dependencies: + spdx-expression-parse "^3.0.0" + spdx-license-ids "^3.0.0" + +spdx-exceptions@^2.1.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/spdx-exceptions/-/spdx-exceptions-2.5.0.tgz#5d607d27fc806f66d7b64a766650fa890f04ed66" + integrity sha512-PiU42r+xO4UbUS1buo3LPJkjlO7430Xn5SVAhdpzzsPHsjbYVflnnFdATgabnLude+Cqu25p6N+g2lw/PFsa4w== + +spdx-expression-parse@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-3.0.1.tgz#cf70f50482eefdc98e3ce0a6833e4a53ceeba679" + integrity sha512-cbqHunsQWnJNE6KhVSMsMeH5H/L9EpymbzqTQ3uLwNCLZ1Q481oWaofqH7nO6V07xlXwY6PhQdQ2IedWx/ZK4Q== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-expression-parse@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/spdx-expression-parse/-/spdx-expression-parse-4.0.0.tgz#a23af9f3132115465dac215c099303e4ceac5794" + integrity sha512-Clya5JIij/7C6bRR22+tnGXbc4VKlibKSVj2iHvVeX5iMW7s1SIQlqu699JkODJJIhh/pUu8L0/VLh8xflD+LQ== + dependencies: + spdx-exceptions "^2.1.0" + spdx-license-ids "^3.0.0" + +spdx-license-ids@^3.0.0: + version "3.0.18" + resolved "https://registry.yarnpkg.com/spdx-license-ids/-/spdx-license-ids-3.0.18.tgz#22aa922dcf2f2885a6494a261f2d8b75345d0326" + integrity sha512-xxRs31BqRYHwiMzudOrpSiHtZ8i/GeionCBDSilhYRj+9gIcI8wCZTlXZKu9vZIVqViP3dcp9qE5G6AlIaD+TQ== + +spdy-transport@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/spdy-transport/-/spdy-transport-3.0.0.tgz#00d4863a6400ad75df93361a1608605e5dcdcf31" + integrity sha512-hsLVFE5SjA6TCisWeJXFKniGGOpBgMLmerfO2aCyCU5s7nJ/rpAepqmFifv/GCbSbueEeAJJnmSQ2rKC/g8Fcw== + dependencies: + debug "^4.1.0" + detect-node "^2.0.4" + hpack.js "^2.1.6" + obuf "^1.1.2" + readable-stream "^3.0.6" + wbuf "^1.7.3" + +spdy@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/spdy/-/spdy-4.0.2.tgz#b74f466203a3eda452c02492b91fb9e84a27677b" + integrity sha512-r46gZQZQV+Kl9oItvl1JZZqJKGr+oEkB08A6BzkiR7593/7IbtuncXHd2YoYeTsG4157ZssMu9KYvUHLcjcDoA== + dependencies: + debug "^4.1.0" + handle-thing "^2.0.0" + http-deceiver "^1.2.7" + select-hose "^2.0.0" + spdy-transport "^3.0.0" + +specificity@^0.4.1: + version "0.4.1" + resolved "https://registry.yarnpkg.com/specificity/-/specificity-0.4.1.tgz#aab5e645012db08ba182e151165738d00887b019" + integrity sha512-1klA3Gi5PD1Wv9Q0wUoOQN1IWAuPu0D1U03ThXTr0cJ20+/iq2tHSDnK7Kk/0LXJ1ztUB2/1Os0wKmfyNgUQfg== + +split-string@^3.0.1, split-string@^3.0.2: + version "3.1.0" + resolved "https://registry.yarnpkg.com/split-string/-/split-string-3.1.0.tgz#7cb09dda3a86585705c64b39a6466038682e8fe2" + integrity sha512-NzNVhJDYpwceVVii8/Hu6DKfD2G+NrQHlS/V/qgv763EYudVwEcMQNxd2lh+0VrUByXN/oJkl5grOhYWvQUYiw== + dependencies: + extend-shallow "^3.0.0" + +sprintf-js@^1.1.3: + version "1.1.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.1.3.tgz#4914b903a2f8b685d17fdf78a70e917e872e444a" + integrity sha512-Oo+0REFV59/rz3gfJNKQiBlwfHaSESl1pcGyABQsnnIfWOFt6JNj5gCog2U6MLZ//IGYD+nA8nI+mTShREReaA== + +sprintf-js@~1.0.2: + version "1.0.3" + resolved "https://registry.yarnpkg.com/sprintf-js/-/sprintf-js-1.0.3.tgz#04e6926f662895354f3dd015203633b857297e2c" + integrity sha512-D9cPgkvLlV3t3IzL0D0YLvGA9Ahk4PcvVwUbN0dSGr1aP0Nrt4AEnTUbuGvquEC0mA64Gqt1fzirlRs5ibXx8g== + +ssf@~0.11.2: + version "0.11.2" + resolved "https://registry.yarnpkg.com/ssf/-/ssf-0.11.2.tgz#0b99698b237548d088fc43cdf2b70c1a7512c06c" + integrity sha512-+idbmIXoYET47hH+d7dfm2epdOMUDjqcB4648sTZ+t2JwoyBFL/insLfB/racrDmsKB3diwsDA696pZMieAC5g== + dependencies: + frac "~1.1.2" + +sshpk@^1.7.0: + version "1.18.0" + resolved "https://registry.yarnpkg.com/sshpk/-/sshpk-1.18.0.tgz#1663e55cddf4d688b86a46b77f0d5fe363aba028" + integrity sha512-2p2KJZTSqQ/I3+HX42EpYOa2l3f8Erv8MWKsy2I9uf4wA7yFIkXRffYdsx86y6z4vHtV8u7g+pPlr8/4ouAxsQ== + dependencies: + asn1 "~0.2.3" + assert-plus "^1.0.0" + bcrypt-pbkdf "^1.0.0" + dashdash "^1.12.0" + ecc-jsbn "~0.1.1" + getpass "^0.1.1" + jsbn "~0.1.0" + safer-buffer "^2.0.2" + tweetnacl "~0.14.0" + +ssri@^10.0.0: + version "10.0.6" + resolved "https://registry.yarnpkg.com/ssri/-/ssri-10.0.6.tgz#a8aade2de60ba2bce8688e3fa349bad05c7dc1e5" + integrity sha512-MGrFH9Z4NP9Iyhqn16sDtBpRRNJ0Y2hNa6D65h736fVSaPCHr4DM4sWUNvVaSuC+0OBGhwsrydQwmgfg5LncqQ== + dependencies: + minipass "^7.0.3" + +state-toggle@^1.0.0: + version "1.0.3" + resolved "https://registry.yarnpkg.com/state-toggle/-/state-toggle-1.0.3.tgz#e123b16a88e143139b09c6852221bc9815917dfe" + integrity sha512-d/5Z4/2iiCnHw6Xzghyhb+GcmF89bxwgXG60wjIiZaxnymbyOmI8Hk4VqHXiVVp6u2ysaskFfXg3ekCj4WNftQ== + +static-extend@^0.1.1: + version "0.1.2" + resolved "https://registry.yarnpkg.com/static-extend/-/static-extend-0.1.2.tgz#60809c39cbff55337226fd5e0b520f341f1fb5c6" + integrity sha512-72E9+uLc27Mt718pMHt9VMNiAL4LMsmDbBva8mxWUCkT07fSzEGMYUCk0XWY6lp0j6RBAG4cJ3mWuZv2OE3s0g== + dependencies: + define-property "^0.2.5" + object-copy "^0.1.0" + +statuses@2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-2.0.1.tgz#55cb000ccf1d48728bd23c685a063998cf1a1b63" + integrity sha512-RwNA9Z/7PrK06rYLIzFMlaF+l73iwpzsqRIFgbMLbTcLD6cOao82TaWefPXQvB2fOC4AjuYSEndS7N/mTCbkdQ== + +"statuses@>= 1.4.0 < 2", statuses@~1.5.0: + version "1.5.0" + resolved "https://registry.yarnpkg.com/statuses/-/statuses-1.5.0.tgz#161c7dac177659fd9811f43771fa99381478628c" + integrity sha512-OpZ3zP+jT1PI7I8nemJX4AKmAX070ZkYPVWV/AaKTJl+tXCTGyVdC1a4SL8RUQYEwk/f34ZX8UTykN68FwrqAA== + +streamroller@^3.1.5: + version "3.1.5" + resolved "https://registry.yarnpkg.com/streamroller/-/streamroller-3.1.5.tgz#1263182329a45def1ffaef58d31b15d13d2ee7ff" + integrity sha512-KFxaM7XT+irxvdqSP1LGLgNWbYN7ay5owZ3r/8t77p+EtSUAfUgtl7be3xtqtOmGUl9K9YPO2ca8133RlTjvKw== + dependencies: + date-format "^4.0.14" + debug "^4.3.4" + fs-extra "^8.1.0" + +string-argv@0.3.2: + version "0.3.2" + resolved "https://registry.yarnpkg.com/string-argv/-/string-argv-0.3.2.tgz#2b6d0ef24b656274d957d54e0a4bbf6153dc02b6" + integrity sha512-aqD2Q0144Z+/RqG52NeHEkZauTAUWJO8c6yTftGJKO3Tja5tUgIfmIl6kExvhtxSDP7fXB6DvzkfMpCd/F3G+Q== + +"string-width-cjs@npm:string-width@^4.2.0": + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^3.0.0: + version "3.1.0" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-3.1.0.tgz#22767be21b62af1081574306f69ac51b62203961" + integrity sha512-vafcv6KjVZKSgz06oM/H6GDBrAtz8vdhQakGjFIvNrHA6y3HCF1CInLy+QLq8dTJPQ1b+KDUqDFctkdRW44e1w== + dependencies: + emoji-regex "^7.0.1" + is-fullwidth-code-point "^2.0.0" + strip-ansi "^5.1.0" + +string-width@^4.1.0, string-width@^4.2.0, string-width@^4.2.3: + version "4.2.3" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-4.2.3.tgz#269c7117d27b05ad2e536830a8ec895ef9c6d010" + integrity sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g== + dependencies: + emoji-regex "^8.0.0" + is-fullwidth-code-point "^3.0.0" + strip-ansi "^6.0.1" + +string-width@^5.0.0, string-width@^5.0.1, string-width@^5.1.2: + version "5.1.2" + resolved "https://registry.yarnpkg.com/string-width/-/string-width-5.1.2.tgz#14f8daec6d81e7221d2a357e668cab73bdbca794" + integrity sha512-HnLOCR3vjcY8beoNLtcjZ5/nxn2afmME6lhrDrebokqMap+XbeW8n9TXpPDOqdGK5qcI3oT0GKTW6wC7EMiVqA== + dependencies: + eastasianwidth "^0.2.0" + emoji-regex "^9.2.2" + strip-ansi "^7.0.1" + +string.prototype.trim@^1.2.9: + version "1.2.9" + resolved "https://registry.yarnpkg.com/string.prototype.trim/-/string.prototype.trim-1.2.9.tgz#b6fa326d72d2c78b6df02f7759c73f8f6274faa4" + integrity sha512-klHuCNxiMZ8MlsOihJhJEBJAiMVqU3Z2nEXWfWnIqjN0gEFS9J9+IxKozWWtQGcgoa1WUZzLjKPTr4ZHNFTFxw== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-abstract "^1.23.0" + es-object-atoms "^1.0.0" + +string.prototype.trimend@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/string.prototype.trimend/-/string.prototype.trimend-1.0.8.tgz#3651b8513719e8a9f48de7f2f77640b26652b229" + integrity sha512-p73uL5VCHCO2BZZ6krwwQE3kCzM7NKmis8S//xEC6fQonchbum4eP6kR4DLEjQFO3Wnj3Fuo8NM0kOSjVdHjZQ== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +string.prototype.trimstart@^1.0.8: + version "1.0.8" + resolved "https://registry.yarnpkg.com/string.prototype.trimstart/-/string.prototype.trimstart-1.0.8.tgz#7ee834dda8c7c17eff3118472bb35bfedaa34dde" + integrity sha512-UXSH262CSZY1tfu3G3Secr6uGLCFVPMhIqHjlgCUtCCcgihYc/xKs9djMTMUOb2j1mVSeU8EU6NWc/iQKU6Gfg== + dependencies: + call-bind "^1.0.7" + define-properties "^1.2.1" + es-object-atoms "^1.0.0" + +string_decoder@^1.1.1: + version "1.3.0" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.3.0.tgz#42f114594a46cf1a8e30b0a84f56c78c3edac21e" + integrity sha512-hkRX8U1WjJFd8LsDJ2yQ/wWWxaopEsABU1XfkM8A+j0+85JAGppt16cr1Whg6KIbb4okU6Mql6BOj+uup/wKeA== + dependencies: + safe-buffer "~5.2.0" + +string_decoder@~1.1.1: + version "1.1.1" + resolved "https://registry.yarnpkg.com/string_decoder/-/string_decoder-1.1.1.tgz#9cf1611ba62685d7030ae9e4ba34149c3af03fc8" + integrity sha512-n/ShnvDi6FHbbVfviro+WojiFzv+s8MPMHBczVePfUpDJLwoLT0ht1l4YwBCbi8pJAveEEdnkHyPyTP/mzRfwg== + dependencies: + safe-buffer "~5.1.0" + +stringify-entities@^1.0.1: + version "1.3.2" + resolved "https://registry.yarnpkg.com/stringify-entities/-/stringify-entities-1.3.2.tgz#a98417e5471fd227b3e45d3db1861c11caf668f7" + integrity sha512-nrBAQClJAPN2p+uGCVJRPIPakKeKWZ9GtBCmormE7pWOSlHat7+x5A8gx85M7HM5Dt0BP3pP5RhVW77WdbJJ3A== + dependencies: + character-entities-html4 "^1.0.0" + character-entities-legacy "^1.0.0" + is-alphanumerical "^1.0.0" + is-hexadecimal "^1.0.0" + +"strip-ansi-cjs@npm:strip-ansi@^6.0.1": + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-3.0.1.tgz#6a385fb8853d952d5ff05d0e8aaf94278dc63dcf" + integrity sha512-VhumSSbBqDTP8p2ZLKj40UjBCV4+v8bUSEpUb4KjRgWk9pbqGF4REFj6KEagidb2f/M6AzC0EmFyDNGaw9OCzg== + dependencies: + ansi-regex "^2.0.0" + +strip-ansi@^5.1.0: + version "5.2.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-5.2.0.tgz#8c9a536feb6afc962bdfa5b104a5091c1ad9c0ae" + integrity sha512-DuRs1gKbBqsMKIZlrffwlug8MHkcnpjs5VPmL1PAh+mA30U0DTotfDZ0d2UUsXpPmPmMMJ6W773MaA3J+lbiWA== + dependencies: + ansi-regex "^4.1.0" + +strip-ansi@^6.0.0, strip-ansi@^6.0.1: + version "6.0.1" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-6.0.1.tgz#9e26c63d30f53443e9489495b2105d37b67a85d9" + integrity sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A== + dependencies: + ansi-regex "^5.0.1" + +strip-ansi@^7.0.1: + version "7.1.0" + resolved "https://registry.yarnpkg.com/strip-ansi/-/strip-ansi-7.1.0.tgz#d5b6568ca689d8561370b0707685d22434faff45" + integrity sha512-iq6eVVI64nQQTRYq2KtEg2d2uU7LElhTJwsH4YzIHZshxlgZms/wIc4VoDQTlG/IvVIrBKG06CrZnp0qv7hkcQ== + dependencies: + ansi-regex "^6.0.1" + +strip-bom@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-bom/-/strip-bom-3.0.0.tgz#2334c18e9c759f7bdd56fdef7e9ae3d588e68ed3" + integrity sha512-vavAMRXOgBVNF6nyEEmL3DBK19iRpDcoIwW+swQ+CbGiu7lju6t+JklA1MHweoWtadgt4ISVUsXLyDq34ddcwA== + +strip-final-newline@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-2.0.0.tgz#89b852fb2fcbe936f6f4b3187afb0a12c1ab58ad" + integrity sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA== + +strip-final-newline@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-final-newline/-/strip-final-newline-3.0.0.tgz#52894c313fbff318835280aed60ff71ebf12b8fd" + integrity sha512-dOESqjYr96iWYylGObzd39EuNTa5VJxyvVAEm5Jnh7KGo75V43Hk1odPQkNDyXNmUR6k+gEiDVXnjB8HJ3crXw== + +strip-indent@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-2.0.0.tgz#5ef8db295d01e6ed6cbf7aab96998d7822527b68" + integrity sha512-RsSNPLpq6YUL7QYy44RnPVTn/lcVZtb48Uof3X5JLbF4zD/Gs7ZFDv2HWol+leoQN2mT86LAzSshGfkTlSOpsA== + +strip-indent@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/strip-indent/-/strip-indent-3.0.0.tgz#c32e1cee940b6b3432c771bc2c54bcce73cd3001" + integrity sha512-laJTa3Jb+VQpaC6DseHhF7dXVqHTfJPCRDaEbid/drOhgitgYku/letMUqOXFoWV0zIIUbjpdH2t+tYj4bQMRQ== + dependencies: + min-indent "^1.0.0" + +strip-json-comments@3.1.1, strip-json-comments@^3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-3.1.1.tgz#31f1281b3832630434831c310c01cccda8cbe006" + integrity sha512-6fPc+R4ihwqP6N/aIv2f1gMH8lOVtWQHoqC4yK6oSDVVocumAsfCqjkXnqiYMhmMwS/mEHLp7Vehlt3ql6lEig== + +strip-json-comments@^2.0.1: + version "2.0.1" + resolved "https://registry.yarnpkg.com/strip-json-comments/-/strip-json-comments-2.0.1.tgz#3c531942e908c2697c0ec344858c286c7ca0a60a" + integrity sha512-4gB8na07fecVVkOI6Rs4e7T6NOTki5EmL7TUduTs6bu3EdnSycntVJ4re8kgZA+wx9IueI2Y11bfbgwtzuE0KQ== + +strong-log-transformer@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/strong-log-transformer/-/strong-log-transformer-2.1.0.tgz#0f5ed78d325e0421ac6f90f7f10e691d6ae3ae10" + integrity sha512-B3Hgul+z0L9a236FAUC9iZsL+nVHgoCJnqCbN588DjYxvGXaXaaFbfmQ/JhvKjZwsOukuR72XbHv71Qkug0HxA== + dependencies: + duplexer "^0.1.1" + minimist "^1.2.0" + through "^2.3.4" + +style-search@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/style-search/-/style-search-0.1.0.tgz#7958c793e47e32e07d2b5cafe5c0bf8e12e77902" + integrity sha512-Dj1Okke1C3uKKwQcetra4jSuk0DqbzbYtXipzFlFMZtowbF1x7BKJwB9AayVMyFARvU8EDrZdcax4At/452cAg== + +stylelint-config-prettier@9.0.5: + version "9.0.5" + resolved "https://registry.yarnpkg.com/stylelint-config-prettier/-/stylelint-config-prettier-9.0.5.tgz#9f78bbf31c7307ca2df2dd60f42c7014ee9da56e" + integrity sha512-U44lELgLZhbAD/xy/vncZ2Pq8sh2TnpiPvo38Ifg9+zeioR+LAkHu0i6YORIOxFafZoVg0xqQwex6e6F25S5XA== + +stylelint-config-rational-order@0.1.2: + version "0.1.2" + resolved "https://registry.yarnpkg.com/stylelint-config-rational-order/-/stylelint-config-rational-order-0.1.2.tgz#4e98e390783d437f0ec41fb73bc41992e78d02a0" + integrity sha512-Qo7ZQaihCwTqijfZg4sbdQQHtugOX/B1/fYh018EiDZHW+lkqH9uHOnsDwDPGZrYJuB6CoyI7MZh2ecw2dOkew== + dependencies: + stylelint "^9.10.1" + stylelint-order "^2.2.1" + +stylelint-config-recommended@^9.0.0: + version "9.0.0" + resolved "https://registry.yarnpkg.com/stylelint-config-recommended/-/stylelint-config-recommended-9.0.0.tgz#1c9e07536a8cd875405f8ecef7314916d94e7e40" + integrity sha512-9YQSrJq4NvvRuTbzDsWX3rrFOzOlYBmZP+o513BJN/yfEmGSr0AxdvrWs0P/ilSpVV/wisamAHu5XSk8Rcf4CQ== + +stylelint-config-standard@28.0.0: + version "28.0.0" + resolved "https://registry.yarnpkg.com/stylelint-config-standard/-/stylelint-config-standard-28.0.0.tgz#7e1926c232631a8445eafee7b186d276d42d7b15" + integrity sha512-q/StuowDdDmFCravzGHAwgS9pjX0bdOQUEBBDIkIWsQuYGgYz/xsO8CM6eepmIQ1fc5bKdDVimlJZ6MoOUcJ5Q== + dependencies: + stylelint-config-recommended "^9.0.0" + +stylelint-declaration-block-no-ignored-properties@2.7.0: + version "2.7.0" + resolved "https://registry.yarnpkg.com/stylelint-declaration-block-no-ignored-properties/-/stylelint-declaration-block-no-ignored-properties-2.7.0.tgz#78a4a03a5ec74a06b4abb226a31ff8fc57782a0e" + integrity sha512-44SpI9+9Oc1ICuwwRfwS/3npQ2jPobDSTnwWdNgZGryGqQCp17CgEIWjCv1BgUOSzND3RqywNCNLKvO1AOxbfg== + +stylelint-order@5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-5.0.0.tgz#abd20f6b85ac640774cbe40e70d3fe9c6fdf4400" + integrity sha512-OWQ7pmicXufDw5BlRqzdz3fkGKJPgLyDwD1rFY3AIEfIH/LQY38Vu/85v8/up0I+VPiuGRwbc2Hg3zLAsJaiyw== + dependencies: + postcss "^8.3.11" + postcss-sorting "^7.0.1" + +stylelint-order@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/stylelint-order/-/stylelint-order-2.2.1.tgz#cd2d4a0d81d91c705f1d275a58487e5ad5aa5828" + integrity sha512-019KBV9j8qp1MfBjJuotse6MgaZqGVtXMc91GU9MsS9Feb+jYUvUU3Z8XiClqPdqJZQ0ryXQJGg3U3PcEjXwfg== + dependencies: + lodash "^4.17.10" + postcss "^7.0.2" + postcss-sorting "^4.1.0" + +stylelint@14.16.1: + version "14.16.1" + resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-14.16.1.tgz#b911063530619a1bbe44c2b875fd8181ebdc742d" + integrity sha512-ErlzR/T3hhbV+a925/gbfc3f3Fep9/bnspMiJPorfGEmcBbXdS+oo6LrVtoUZ/w9fqD6o6k7PtUlCOsCRdjX/A== + dependencies: + "@csstools/selector-specificity" "^2.0.2" + balanced-match "^2.0.0" + colord "^2.9.3" + cosmiconfig "^7.1.0" + css-functions-list "^3.1.0" + debug "^4.3.4" + fast-glob "^3.2.12" + fastest-levenshtein "^1.0.16" + file-entry-cache "^6.0.1" + global-modules "^2.0.0" + globby "^11.1.0" + globjoin "^0.1.4" + html-tags "^3.2.0" + ignore "^5.2.1" + import-lazy "^4.0.0" + imurmurhash "^0.1.4" + is-plain-object "^5.0.0" + known-css-properties "^0.26.0" + mathml-tag-names "^2.1.3" + meow "^9.0.0" + micromatch "^4.0.5" + normalize-path "^3.0.0" + picocolors "^1.0.0" + postcss "^8.4.19" + postcss-media-query-parser "^0.2.3" + postcss-resolve-nested-selector "^0.1.1" + postcss-safe-parser "^6.0.0" + postcss-selector-parser "^6.0.11" + postcss-value-parser "^4.2.0" + resolve-from "^5.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + style-search "^0.1.0" + supports-hyperlinks "^2.3.0" + svg-tags "^1.0.0" + table "^6.8.1" + v8-compile-cache "^2.3.0" + write-file-atomic "^4.0.2" + +stylelint@^9.10.1: + version "9.10.1" + resolved "https://registry.yarnpkg.com/stylelint/-/stylelint-9.10.1.tgz#5f0ee3701461dff1d68284e1386efe8f0677a75d" + integrity sha512-9UiHxZhOAHEgeQ7oLGwrwoDR8vclBKlSX7r4fH0iuu0SfPwFaLkb1c7Q2j1cqg9P7IDXeAV2TvQML/fRQzGBBQ== + dependencies: + autoprefixer "^9.0.0" + balanced-match "^1.0.0" + chalk "^2.4.1" + cosmiconfig "^5.0.0" + debug "^4.0.0" + execall "^1.0.0" + file-entry-cache "^4.0.0" + get-stdin "^6.0.0" + global-modules "^2.0.0" + globby "^9.0.0" + globjoin "^0.1.4" + html-tags "^2.0.0" + ignore "^5.0.4" + import-lazy "^3.1.0" + imurmurhash "^0.1.4" + known-css-properties "^0.11.0" + leven "^2.1.0" + lodash "^4.17.4" + log-symbols "^2.0.0" + mathml-tag-names "^2.0.1" + meow "^5.0.0" + micromatch "^3.1.10" + normalize-selector "^0.2.0" + pify "^4.0.0" + postcss "^7.0.13" + postcss-html "^0.36.0" + postcss-jsx "^0.36.0" + postcss-less "^3.1.0" + postcss-markdown "^0.36.0" + postcss-media-query-parser "^0.2.3" + postcss-reporter "^6.0.0" + postcss-resolve-nested-selector "^0.1.1" + postcss-safe-parser "^4.0.0" + postcss-sass "^0.3.5" + postcss-scss "^2.0.0" + postcss-selector-parser "^3.1.0" + postcss-syntax "^0.36.2" + postcss-value-parser "^3.3.0" + resolve-from "^4.0.0" + signal-exit "^3.0.2" + slash "^2.0.0" + specificity "^0.4.1" + string-width "^3.0.0" + style-search "^0.1.0" + sugarss "^2.0.0" + svg-tags "^1.0.0" + table "^5.0.0" + +sugarss@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/sugarss/-/sugarss-2.0.0.tgz#ddd76e0124b297d40bf3cca31c8b22ecb43bc61d" + integrity sha512-WfxjozUk0UVA4jm+U1d736AUpzSrNsQcIbyOkoE364GrtWmIrFdk5lksEupgWMD4VaT/0kVx1dobpiDumSgmJQ== + dependencies: + postcss "^7.0.2" + +supports-color@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-2.0.0.tgz#535d045ce6b6363fa40117084629995e9df324c7" + integrity sha512-KKNVtd6pCYgPIKU4cp2733HWYCpplQhddZLBUryaAHou723x+FRzQ5Df824Fj+IyyuiQTRoub4SnIFfIcrp70g== + +supports-color@^5.3.0: + version "5.5.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-5.5.0.tgz#e2e69a44ac8772f78a1ec0b35b689df6530efc8f" + integrity sha512-QjVjwdXIt408MIiAqCX4oUKsgU2EqAGzs2Ppkm4aQYbjm+ZEWEcW4SfFNTr4uMNZma0ey4f5lgLrkB0aX0QMow== + dependencies: + has-flag "^3.0.0" + +supports-color@^7.0.0, supports-color@^7.1.0: + version "7.2.0" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-7.2.0.tgz#1b7dcdcb32b8138801b3e478ba6a51caa89648da" + integrity sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw== + dependencies: + has-flag "^4.0.0" + +supports-color@^8.0.0: + version "8.1.1" + resolved "https://registry.yarnpkg.com/supports-color/-/supports-color-8.1.1.tgz#cd6fc17e28500cff56c1b86c0a7fd4a54a73005c" + integrity sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q== + dependencies: + has-flag "^4.0.0" + +supports-hyperlinks@^2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/supports-hyperlinks/-/supports-hyperlinks-2.3.0.tgz#3943544347c1ff90b15effb03fc14ae45ec10624" + integrity sha512-RpsAZlpWcDwOPQA22aCH4J0t7L8JmAvsCxfOSEwm7cQs3LshN36QaTkwd70DnBOXDWGssw2eUoc8CaRWT0XunA== + dependencies: + has-flag "^4.0.0" + supports-color "^7.0.0" + +supports-preserve-symlinks-flag@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" + integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== + +svg-tags@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/svg-tags/-/svg-tags-1.0.0.tgz#58f71cee3bd519b59d4b2a843b6c7de64ac04764" + integrity sha512-ovssysQTa+luh7A5Weu3Rta6FJlFBBbInjOh722LIt6klpU2/HtdUbszju/G4devcvk8PGt7FCLv5wftu3THUA== + +swagger-schema-official@2.0.0-bab6bed: + version "2.0.0-bab6bed" + resolved "https://registry.yarnpkg.com/swagger-schema-official/-/swagger-schema-official-2.0.0-bab6bed.tgz#70070468d6d2977ca5237b2e519ca7d06a2ea3fd" + integrity sha512-rCC0NWGKr/IJhtRuPq/t37qvZHI/mH4I4sxflVM+qgVe5Z2uOCivzWaVbuioJaB61kvm5UvB7b49E+oBY0M8jA== + +swagger-typescript-api@^12.0.4: + version "12.0.4" + resolved "https://registry.yarnpkg.com/swagger-typescript-api/-/swagger-typescript-api-12.0.4.tgz#757bf4b2eac9acb59ffb3cf20fd14e981a61cabf" + integrity sha512-04ZxlJzu3g15TupfPhS0Yk0jzV/MM23WU4uuOl2vSi4yHrxEwnkIsoBkP084ec61q4vr2FHcI3DKxC+Mt1u10Q== + dependencies: + "@types/swagger-schema-official" "2.0.22" + cosmiconfig "7.0.1" + didyoumean "^1.2.2" + eta "^2.0.0" + js-yaml "4.1.0" + lodash "4.17.21" + make-dir "3.1.0" + nanoid "3.3.4" + node-emoji "1.11.0" + node-fetch "^3.2.10" + prettier "2.7.1" + swagger-schema-official "2.0.0-bab6bed" + swagger2openapi "7.0.8" + typescript "4.8.4" + +swagger2openapi@7.0.8: + version "7.0.8" + resolved "https://registry.yarnpkg.com/swagger2openapi/-/swagger2openapi-7.0.8.tgz#12c88d5de776cb1cbba758994930f40ad0afac59" + integrity sha512-upi/0ZGkYgEcLeGieoz8gT74oWHA0E7JivX7aN9mAf+Tc7BQoRBvnIGHoPDw+f9TXTW4s6kGYCZJtauP6OYp7g== + dependencies: + call-me-maybe "^1.0.1" + node-fetch "^2.6.1" + node-fetch-h2 "^2.3.0" + node-readfiles "^0.2.0" + oas-kit-common "^1.0.8" + oas-resolver "^2.5.6" + oas-schema-walker "^1.1.5" + oas-validator "^5.0.8" + reftools "^1.1.9" + yaml "^1.10.0" + yargs "^17.0.1" + +symbol-observable@4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/symbol-observable/-/symbol-observable-4.0.0.tgz#5b425f192279e87f2f9b937ac8540d1984b39205" + integrity sha512-b19dMThMV4HVFynSAM1++gBHAbk2Tc/osgLIBZMKsyqh34jb2e8Os7T6ZW/Bt3pJFdBTd2JwAnAAEQV7rSNvcQ== + +table@^5.0.0: + version "5.4.6" + resolved "https://registry.yarnpkg.com/table/-/table-5.4.6.tgz#1292d19500ce3f86053b05f0e8e7e4a3bb21079e" + integrity sha512-wmEc8m4fjnob4gt5riFRtTu/6+4rSe12TpAELNSqHMfF3IqnA+CH37USM6/YR3qRZv7e56kAEAtd6nKZaxe0Ug== + dependencies: + ajv "^6.10.2" + lodash "^4.17.14" + slice-ansi "^2.1.0" + string-width "^3.0.0" + +table@^6.8.1: + version "6.8.2" + resolved "https://registry.yarnpkg.com/table/-/table-6.8.2.tgz#c5504ccf201213fa227248bdc8c5569716ac6c58" + integrity sha512-w2sfv80nrAh2VCbqR5AK27wswXhqcck2AhfnNW76beQXskGZ1V12GwS//yYVa3d3fcvAip2OUnbDAjW2k3v9fA== + dependencies: + ajv "^8.0.1" + lodash.truncate "^4.4.2" + slice-ansi "^4.0.0" + string-width "^4.2.3" + strip-ansi "^6.0.1" + +tapable@^2.1.1, tapable@^2.2.0, tapable@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tapable/-/tapable-2.2.1.tgz#1967a73ef4060a82f12ab96af86d52fdb76eeca0" + integrity sha512-GNzQvQTOIP6RyTfE2Qxb8ZVlNmw0n88vp1szwWRimP02mnTsx3Wtn5qRdqY9w2XduFNUgvOwhNnQsjwCp+kqaQ== + +tar-stream@~2.2.0: + version "2.2.0" + resolved "https://registry.yarnpkg.com/tar-stream/-/tar-stream-2.2.0.tgz#acad84c284136b060dc3faa64474aa9aebd77287" + integrity sha512-ujeqbceABgwMZxEJnk2HDY2DlnUZ+9oEcb1KzTVfYHio0UE6dG71n60d8D2I4qNvleWrrXpmjpt7vZeF1LnMZQ== + dependencies: + bl "^4.0.3" + end-of-stream "^1.4.1" + fs-constants "^1.0.0" + inherits "^2.0.3" + readable-stream "^3.1.1" + +tar@^6.1.11, tar@^6.2.1: + version "6.2.1" + resolved "https://registry.yarnpkg.com/tar/-/tar-6.2.1.tgz#717549c541bc3c2af15751bea94b1dd068d4b03a" + integrity sha512-DZ4yORTwrbTj/7MZYq2w+/ZFdI6OZ/f9SFHR+71gIVUZhOQPHzVCLpvRnPgyaMpfWxxk/4ONva3GQSyNIKRv6A== + dependencies: + chownr "^2.0.0" + fs-minipass "^2.0.0" + minipass "^5.0.0" + minizlib "^2.1.1" + mkdirp "^1.0.3" + yallist "^4.0.0" + +temp@^0.9.4: + version "0.9.4" + resolved "https://registry.yarnpkg.com/temp/-/temp-0.9.4.tgz#cd20a8580cb63635d0e4e9d4bd989d44286e7620" + integrity sha512-yYrrsWnrXMcdsnu/7YMYAofM1ktpL5By7vZhf15CrXijWWrEYZks5AXBudalfSWJLlnen/QUJUB5aoB0kqZUGA== + dependencies: + mkdirp "^0.5.1" + rimraf "~2.6.2" + +terser-webpack-plugin@^5.3.10: + version "5.3.10" + resolved "https://registry.yarnpkg.com/terser-webpack-plugin/-/terser-webpack-plugin-5.3.10.tgz#904f4c9193c6fd2a03f693a2150c62a92f40d199" + integrity sha512-BKFPWlPDndPs+NGGCr1U59t0XScL5317Y0UReNrHaw9/FwhPENlq6bfgs+4yPfyP51vqC1bQ4rp1EfXW5ZSH9w== + dependencies: + "@jridgewell/trace-mapping" "^0.3.20" + jest-worker "^27.4.5" + schema-utils "^3.1.1" + serialize-javascript "^6.0.1" + terser "^5.26.0" + +terser@5.29.1: + version "5.29.1" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.29.1.tgz#44e58045b70c09792ba14bfb7b4e14ca8755b9fa" + integrity sha512-lZQ/fyaIGxsbGxApKmoPTODIzELy3++mXhS5hOqaAWZjQtpq/hFHAc+rm29NND1rYRxRWKcjuARNwULNXa5RtQ== + dependencies: + "@jridgewell/source-map" "^0.3.3" + acorn "^8.8.2" + commander "^2.20.0" + source-map-support "~0.5.20" + +terser@^5.26.0: + version "5.31.3" + resolved "https://registry.yarnpkg.com/terser/-/terser-5.31.3.tgz#b24b7beb46062f4653f049eea4f0cd165d0f0c38" + integrity sha512-pAfYn3NIZLyZpa83ZKigvj6Rn9c/vd5KfYGX7cN1mnzqgDcxWvrU5ZtAfIKhEXz9nRecw4z3LXkjaq96/qZqAA== + dependencies: + "@jridgewell/source-map" "^0.3.3" + acorn "^8.8.2" + commander "^2.20.0" + source-map-support "~0.5.20" + +test-exclude@^6.0.0: + version "6.0.0" + resolved "https://registry.yarnpkg.com/test-exclude/-/test-exclude-6.0.0.tgz#04a8698661d805ea6fa293b6cb9e63ac044ef15e" + integrity sha512-cAGWPIyOHU6zlmg88jwm7VRyXnMN7iV68OGAbYDk/Mh/xC/pzVPlQtY6ngoIH/5/tciuhGfvESU8GrHrcxD56w== + dependencies: + "@istanbuljs/schema" "^0.1.2" + glob "^7.1.4" + minimatch "^3.0.4" + +text-table@^0.2.0: + version "0.2.0" + resolved "https://registry.yarnpkg.com/text-table/-/text-table-0.2.0.tgz#7f5ee823ae805207c00af2df4a84ec3fcfa570b4" + integrity sha512-N+8UisAXDGk8PFXP4HAzVR9nbfmVJ3zYLAWiTIoqC5v5isinhr+r5uaO8+7r3BMfuNIufIsA7RdpVgacC2cSpw== + +through@^2.3.4: + version "2.3.8" + resolved "https://registry.yarnpkg.com/through/-/through-2.3.8.tgz#0dd4c9ffaabc357960b1b724115d7e0e86a2e1f5" + integrity sha512-w89qg7PI8wAdvX60bMDP+bFoD5Dvhm9oLheFp5O4a2QF0cSBGsBX4qZmadPMvVqlLJBBci+WqGGOAPvcDeNSVg== + +thunky@^1.0.2: + version "1.1.0" + resolved "https://registry.yarnpkg.com/thunky/-/thunky-1.1.0.tgz#5abaf714a9405db0504732bbccd2cedd9ef9537d" + integrity sha512-eHY7nBftgThBqOyHGVN+l8gF0BucP09fMo0oO/Lb0w1OF80dJv+lDVpXG60WMQvkcxAkNybKsrEIE3ZtKGmPrA== + +tmp@0.0.30: + version "0.0.30" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.30.tgz#72419d4a8be7d6ce75148fd8b324e593a711c2ed" + integrity sha512-HXdTB7lvMwcb55XFfrTM8CPr/IYREk4hVBFaQ4b/6nInrluSL86hfHm7vu0luYKCfyBZp2trCjpc8caC3vVM3w== + dependencies: + os-tmpdir "~1.0.1" + +tmp@0.2.3, tmp@^0.2.1, tmp@~0.2.1: + version "0.2.3" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.2.3.tgz#eb783cc22bc1e8bebd0671476d46ea4eb32a79ae" + integrity sha512-nZD7m9iCPC5g0pYmcaxogYKggSfLsdxl8of3Q/oIbqCqLLIO9IAF0GWjX1z9NZRHPiXv8Wex4yDCaZsgEw0Y8w== + +tmp@^0.0.33: + version "0.0.33" + resolved "https://registry.yarnpkg.com/tmp/-/tmp-0.0.33.tgz#6d34335889768d21b2bcda0aa277ced3b1bfadf9" + integrity sha512-jRCJlojKnZ3addtTOjdIqoRuPEKBvNXcGYqzO6zWZX8KfKEpnGY5jfggJQ3EjKuu8D4bJRr0y+cYJFmYbImXGw== + dependencies: + os-tmpdir "~1.0.2" + +to-fast-properties@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/to-fast-properties/-/to-fast-properties-2.0.0.tgz#dc5e698cbd079265bc73e0377681a4e4e83f616e" + integrity sha512-/OaKK0xYrs3DmxRYqL/yDc+FxFUVYhDlXMhRmv3z915w2HF1tnN1omB354j8VUGO/hbRzyD6Y3sA7v7GS/ceog== + +to-object-path@^0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/to-object-path/-/to-object-path-0.3.0.tgz#297588b7b0e7e0ac08e04e672f85c1f4999e17af" + integrity sha512-9mWHdnGRuh3onocaHzukyvCZhzvr6tiflAy/JRFXcJX0TjgfWA9pk9t8CMbzmBE4Jfw58pXbkngtBtqYxzNEyg== + dependencies: + kind-of "^3.0.2" + +to-regex-range@^2.1.0: + version "2.1.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-2.1.1.tgz#7c80c17b9dfebe599e27367e0d4dd5590141db38" + integrity sha512-ZZWNfCjUokXXDGXFpZehJIkZqq91BcULFq/Pi7M5i4JnxXdhMKAK682z8bCW3o8Hj1wuuzoKcW3DfVzaP6VuNg== + dependencies: + is-number "^3.0.0" + repeat-string "^1.6.1" + +to-regex-range@^5.0.1: + version "5.0.1" + resolved "https://registry.yarnpkg.com/to-regex-range/-/to-regex-range-5.0.1.tgz#1648c44aae7c8d988a326018ed72f5b4dd0392e4" + integrity sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ== + dependencies: + is-number "^7.0.0" + +to-regex@^3.0.1, to-regex@^3.0.2: + version "3.0.2" + resolved "https://registry.yarnpkg.com/to-regex/-/to-regex-3.0.2.tgz#13cfdd9b336552f30b51f33a8ae1b42a7a7599ce" + integrity sha512-FWtleNAtZ/Ki2qtqej2CXTOayOH9bHDQF+Q48VpWyDXjbYxA4Yz8iDB31zXOBUlOHHKidDbqGVrTUvQMPmBGBw== + dependencies: + define-property "^2.0.2" + extend-shallow "^3.0.2" + regex-not "^1.0.2" + safe-regex "^1.1.0" + +toidentifier@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/toidentifier/-/toidentifier-1.0.1.tgz#3be34321a88a820ed1bd80dfaa33e479fbb8dd35" + integrity sha512-o5sSPKEkg/DIQNmH43V0/uerLrpzVedkUh8tGNvaeXpfpuwjKenlSox/2O/BTlZUtEe+JG7s5YhEz608PlAHRA== + +tough-cookie@~2.5.0: + version "2.5.0" + resolved "https://registry.yarnpkg.com/tough-cookie/-/tough-cookie-2.5.0.tgz#cd9fb2a0aa1d5a12b473bd9fb96fa3dcff65ade2" + integrity sha512-nlLsUzgm1kfLXSXfRZMc1KLAugd4hqJHDTvc2hDIwS3mZAfMEuMbc03SujMF+GEcpaX/qboeycw6iO8JwVv2+g== + dependencies: + psl "^1.1.28" + punycode "^2.1.1" + +tr46@~0.0.3: + version "0.0.3" + resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" + integrity sha512-N3WMsuqV66lT30CrXNbEjx4GEwlow3v6rr4mCcv6prnfwhS01rkgyFdjPNBYd9br7LpXV1+Emh01fHnq2Gdgrw== + +tree-kill@1.2.2: + version "1.2.2" + resolved "https://registry.yarnpkg.com/tree-kill/-/tree-kill-1.2.2.tgz#4ca09a9092c88b73a7cdc5e8a01b507b0790a0cc" + integrity sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A== + +trim-newlines@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-2.0.0.tgz#b403d0b91be50c331dfc4b82eeceb22c3de16d20" + integrity sha512-MTBWv3jhVjTU7XR3IQHllbiJs8sc75a80OEhB6or/q7pLTWgQ0bMGQXXYQSrSuXe6WiKWDZ5txXY5P59a/coVA== + +trim-newlines@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/trim-newlines/-/trim-newlines-3.0.1.tgz#260a5d962d8b752425b32f3a7db0dcacd176c144" + integrity sha512-c1PTsA3tYrIsLGkJkzHF+w9F2EyxfXGo4UyJc4pFL++FMjnq0HJS69T3M7d//gKrFKwy429bouPescbjecU+Zw== + +trim-trailing-lines@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/trim-trailing-lines/-/trim-trailing-lines-1.1.4.tgz#bd4abbec7cc880462f10b2c8b5ce1d8d1ec7c2c0" + integrity sha512-rjUWSqnfTNrjbB9NQWfPMH/xRK1deHeGsHoVfpxJ++XeYXE0d6B1En37AHfw3jtfTU7dzMzZL2jjpe8Qb5gLIQ== + +trim@0.0.1: + version "0.0.1" + resolved "https://registry.yarnpkg.com/trim/-/trim-0.0.1.tgz#5858547f6b290757ee95cccc666fb50084c460dd" + integrity sha512-YzQV+TZg4AxpKxaTHK3c3D+kRDCGVEE7LemdlQZoQXn0iennk10RsIoY6ikzAqJTc9Xjl9C1/waHom/J86ziAQ== + +trough@^1.0.0: + version "1.0.5" + resolved "https://registry.yarnpkg.com/trough/-/trough-1.0.5.tgz#b8b639cefad7d0bb2abd37d433ff8293efa5f406" + integrity sha512-rvuRbTarPXmMb79SmzEp8aqXNKcK+y0XaB298IXueQ8I2PsrATcPBCSPyK/dDNa2iWOhKlfNnOjdAOTBU/nkFA== + +ts-api-utils@^1.3.0: + version "1.3.0" + resolved "https://registry.yarnpkg.com/ts-api-utils/-/ts-api-utils-1.3.0.tgz#4b490e27129f1e8e686b45cc4ab63714dc60eea1" + integrity sha512-UQMIo7pb8WRomKR1/+MFVLTroIvDVtMX3K6OUir8ynLyzB8Jeriont2bTAtmNPa1ekAgN7YPDyf6V+ygrdU+eQ== + +ts-node@10.9.1: + version "10.9.1" + resolved "https://registry.yarnpkg.com/ts-node/-/ts-node-10.9.1.tgz#e73de9102958af9e1f0b168a6ff320e25adcff4b" + integrity sha512-NtVysVPkxxrwFGUUxGYhfux8k78pQB3JqYBXlLRZgdGUqTO5wU/UyHop5p70iEbGhB7q5KmiZiU0Y3KlJrScEw== + dependencies: + "@cspotcode/source-map-support" "^0.8.0" + "@tsconfig/node10" "^1.0.7" + "@tsconfig/node12" "^1.0.7" + "@tsconfig/node14" "^1.0.0" + "@tsconfig/node16" "^1.0.2" + acorn "^8.4.1" + acorn-walk "^8.1.1" + arg "^4.1.0" + create-require "^1.1.0" + diff "^4.0.1" + make-error "^1.1.1" + v8-compile-cache-lib "^3.0.1" + yn "3.1.1" + +tsconfig-paths@^3.14.1: + version "3.15.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-3.15.0.tgz#5299ec605e55b1abb23ec939ef15edaf483070d4" + integrity sha512-2Ac2RgzDe/cn48GvOe3M+o82pEFewD3UPbyoUHHdKasHwJKjds4fLXWf/Ux5kATBKN20oaFGu+jbElp1pos0mg== + dependencies: + "@types/json5" "^0.0.29" + json5 "^1.0.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + +tsconfig-paths@^4.1.2: + version "4.2.0" + resolved "https://registry.yarnpkg.com/tsconfig-paths/-/tsconfig-paths-4.2.0.tgz#ef78e19039133446d244beac0fd6a1632e2d107c" + integrity sha512-NoZ4roiN7LnbKn9QqE1amc9DJfzvZXxF4xDavcOWt1BPkdx+m+0gJuPM+S0vCe7zTJMYUP0R8pO2XMr+Y8oLIg== + dependencies: + json5 "^2.2.2" + minimist "^1.2.6" + strip-bom "^3.0.0" + +tslib@2.3.0: + version "2.3.0" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.3.0.tgz#803b8cdab3e12ba581a4ca41c8839bbb0dacb09e" + integrity sha512-N82ooyxVNm6h1riLCoyS9e3fuJ3AMG2zIZs2Gd1ATcSFjSA23Q0fzjjZeh0jbJvWVDZ0cJT8yaNNaaXHzueNjg== + +tslib@2.6.2: + version "2.6.2" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.2.tgz#703ac29425e7b37cd6fd456e92404d46d1f3e4ae" + integrity sha512-AEYxH93jGFPn/a2iVAwW87VuUIkR1FVUKB77NwMF7nBTDkDrrT/Hpt/IrCJ0QXhW27jTBDcf5ZY7w6RiqTMw2Q== + +tslib@^2.0.0, tslib@^2.1.0, tslib@^2.3.0, tslib@^2.3.1, tslib@^2.4.0: + version "2.6.3" + resolved "https://registry.yarnpkg.com/tslib/-/tslib-2.6.3.tgz#0438f810ad7a9edcde7a241c3d80db693c8cbfe0" + integrity sha512-xNvxJEOUiWPGhUuUdQgAJPKOOJfGnIyKySOc09XkKsgdUV/3E2zvwZYdejjmRgPCgcym1juLH3226yA7sEFJKQ== + +tuf-js@^2.2.1: + version "2.2.1" + resolved "https://registry.yarnpkg.com/tuf-js/-/tuf-js-2.2.1.tgz#fdd8794b644af1a75c7aaa2b197ddffeb2911b56" + integrity sha512-GwIJau9XaA8nLVbUXsN3IlFi7WmQ48gBUrl3FTkkL/XLu/POhBzfmX9hd33FNMX1qAsfl6ozO1iMmW9NC8YniA== + dependencies: + "@tufjs/models" "2.0.1" + debug "^4.3.4" + make-fetch-happen "^13.0.1" + +tunnel-agent@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/tunnel-agent/-/tunnel-agent-0.6.0.tgz#27a5dea06b36b04a0a9966774b290868f0fc40fd" + integrity sha512-McnNiV1l8RYeY8tBgEpuodCC1mLUdbSN+CYBL7kJsJNInOP8UjDDEwdk6Mw60vdLLrr5NHKZhMAOSrR2NZuQ+w== + dependencies: + safe-buffer "^5.0.1" + +tweetnacl@^0.14.3, tweetnacl@~0.14.0: + version "0.14.5" + resolved "https://registry.yarnpkg.com/tweetnacl/-/tweetnacl-0.14.5.tgz#5ae68177f192d4456269d108afa93ff8743f4f64" + integrity sha512-KXXFFdAbFXY4geFIwoyNK+f5Z1b7swfXABfL7HXCmoIWMKU3dmS26672A4EeQtDzLKy7SXmfBu51JolvEKwtGA== + +type-check@^0.4.0, type-check@~0.4.0: + version "0.4.0" + resolved "https://registry.yarnpkg.com/type-check/-/type-check-0.4.0.tgz#07b8203bfa7056c0657050e3ccd2c37730bab8f1" + integrity sha512-XleUoc9uwGXqjWwXaUTZAmzMcFZ5858QA2vvx1Ur5xIcixXIP+8LnFDgRplU30us6teqdlskFfu+ae4K79Ooew== + dependencies: + prelude-ls "^1.2.1" + +type-fest@^0.18.0: + version "0.18.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.18.1.tgz#db4bc151a4a2cf4eebf9add5db75508db6cc841f" + integrity sha512-OIAYXk8+ISY+qTOwkHtKqzAuxchoMiD9Udx+FSGQDuiRR+PJKJHc2NJAXlbhkGwTt/4/nKZxELY1w3ReWOL8mw== + +type-fest@^0.20.2: + version "0.20.2" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.20.2.tgz#1bf207f4b28f91583666cb5fbd327887301cd5f4" + integrity sha512-Ne+eE4r0/iWnpAxD852z3A+N0Bt5RN//NjJwRd2VFHEmrywxf5vsZlh4R6lixl6B+wz/8d+maTSAkN1FIkI3LQ== + +type-fest@^0.21.3: + version "0.21.3" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.21.3.tgz#d260a24b0198436e133fa26a524a6d65fa3b2e37" + integrity sha512-t0rzBq87m3fVcduHDUFhKmyyX+9eo6WQjZvf51Ea/M0Q7+T374Jp1aUiyUl0GKxp8M/OETVHSDvmkyPgvX+X2w== + +type-fest@^0.6.0: + version "0.6.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.6.0.tgz#8d2a2370d3df886eb5c90ada1c5bf6188acf838b" + integrity sha512-q+MB8nYR1KDLrgr4G5yemftpMC7/QLqVndBmEEdqzmNj5dcFOO4Oo8qlwZE3ULT3+Zim1F8Kq4cBnikNhlCMlg== + +type-fest@^0.8.1: + version "0.8.1" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-0.8.1.tgz#09e249ebde851d3b1e48d27c105444667f17b83d" + integrity sha512-4dbzIzqvjtgiM5rw1k5rEHtBANKmdudhGyBEajN01fEyhaAIhsoKNy6y7+IN93IfpFtwY9iqi7kD+xwKhQsNJA== + +type-fest@^1.0.2: + version "1.4.0" + resolved "https://registry.yarnpkg.com/type-fest/-/type-fest-1.4.0.tgz#e9fb813fe3bf1744ec359d55d1affefa76f14be1" + integrity sha512-yGSza74xk0UG8k+pLh5oeoYirvIiWo5t0/o3zHHAO2tRDiZcxWP7fywNlXhqb6/r6sWvwi+RsyQMWhVLe4BVuA== + +type-is@~1.6.18: + version "1.6.18" + resolved "https://registry.yarnpkg.com/type-is/-/type-is-1.6.18.tgz#4e552cd05df09467dcbc4ef739de89f2cf37c131" + integrity sha512-TkRKr9sUTxEH8MdfuCSP7VizJyzRNMjj2J2do2Jr3Kym598JVdEksuzPQCnlFPW4ky9Q+iA+ma9BGm06XQBy8g== + dependencies: + media-typer "0.3.0" + mime-types "~2.1.24" + +typed-array-buffer@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/typed-array-buffer/-/typed-array-buffer-1.0.2.tgz#1867c5d83b20fcb5ccf32649e5e2fc7424474ff3" + integrity sha512-gEymJYKZtKXzzBzM4jqa9w6Q1Jjm7x2d+sh19AdsD4wqnMPDYyvwpsIc2Q/835kHuo3BEQ7CjelGhfTsoBb2MQ== + dependencies: + call-bind "^1.0.7" + es-errors "^1.3.0" + is-typed-array "^1.1.13" + +typed-array-byte-length@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/typed-array-byte-length/-/typed-array-byte-length-1.0.1.tgz#d92972d3cff99a3fa2e765a28fcdc0f1d89dec67" + integrity sha512-3iMJ9q0ao7WE9tWcaYKIptkNBuOIcZCCT0d4MRvuuH88fEoEH62IuQe0OtraD3ebQEoTRk8XCBoknUNc1Y67pw== + dependencies: + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" + +typed-array-byte-offset@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/typed-array-byte-offset/-/typed-array-byte-offset-1.0.2.tgz#f9ec1acb9259f395093e4567eb3c28a580d02063" + integrity sha512-Ous0vodHa56FviZucS2E63zkgtgrACj7omjwd/8lTEMEPFFyjfixMZ1ZXenpgCFBBt4EC1J2XsyVS2gkG0eTFA== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" + +typed-array-length@^1.0.6: + version "1.0.6" + resolved "https://registry.yarnpkg.com/typed-array-length/-/typed-array-length-1.0.6.tgz#57155207c76e64a3457482dfdc1c9d1d3c4c73a3" + integrity sha512-/OxDN6OtAk5KBpGb28T+HZc2M+ADtvRxXrKKbUwtsLgdoxgX13hyy7ek6bFRl5+aBs2yZzB0c4CnQfAtVypW/g== + dependencies: + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + has-proto "^1.0.3" + is-typed-array "^1.1.13" + possible-typed-array-names "^1.0.0" + +typed-assert@^1.0.8: + version "1.0.9" + resolved "https://registry.yarnpkg.com/typed-assert/-/typed-assert-1.0.9.tgz#8af9d4f93432c4970ec717e3006f33f135b06213" + integrity sha512-KNNZtayBCtmnNmbo5mG47p1XsCyrx6iVqomjcZnec/1Y5GGARaxPs6r49RnSPeUP3YjNYiU9sQHAtY4BBvnZwg== + +typescript@4.8.4: + version "4.8.4" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.8.4.tgz#c464abca159669597be5f96b8943500b238e60e6" + integrity sha512-QCh+85mCy+h0IGff8r5XWzOVSbBO+KfeYrMQh7NJ58QujwcE22u+NUSmUxqF+un70P9GXKxa2HCNiTTMJknyjQ== + +typescript@5.3.3: + version "5.3.3" + resolved "https://registry.yarnpkg.com/typescript/-/typescript-5.3.3.tgz#b3ce6ba258e72e6305ba66f5c9b452aaee3ffe37" + integrity sha512-pXWcraxM0uxAS+tN0AG/BF2TyqmHO014Z070UsJ+pFvYuRSq8KH8DmWpnbXe0pEPDHXZV3FcAbJkijJ5oNEnWw== + +ua-parser-js@^0.7.30: + version "0.7.38" + resolved "https://registry.yarnpkg.com/ua-parser-js/-/ua-parser-js-0.7.38.tgz#f497d8a4dc1fec6e854e5caa4b2f9913422ef054" + integrity sha512-fYmIy7fKTSFAhG3fuPlubeGaMoAd6r0rSnfEsO5nEY55i26KSLt9EH7PLQiiqPUhNqYIJvSkTy1oArIcXAbPbA== + +unbox-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/unbox-primitive/-/unbox-primitive-1.0.2.tgz#29032021057d5e6cdbd08c5129c226dff8ed6f9e" + integrity sha512-61pPlCD9h51VoreyJ0BReideM3MDKMKnh6+V9L08331ipq6Q8OFXZYiqP6n/tbHx4s5I9uRhcye6BrbkizkBDw== + dependencies: + call-bind "^1.0.2" + has-bigints "^1.0.2" + has-symbols "^1.0.3" + which-boxed-primitive "^1.0.2" + +undici-types@~5.26.4: + version "5.26.5" + resolved "https://registry.yarnpkg.com/undici-types/-/undici-types-5.26.5.tgz#bcd539893d00b56e964fd2657a4866b221a65617" + integrity sha512-JlCMO+ehdEIKqlFxk6IfVoAUVmgz7cU7zD/h9XZ0qzeosSHmUJVOzSQvvYSYWXkFXC+IfLKSIffhv0sVZup6pA== + +undici@6.11.1: + version "6.11.1" + resolved "https://registry.yarnpkg.com/undici/-/undici-6.11.1.tgz#75ab573677885b421ca2e6f5f17ff1185b24c68d" + integrity sha512-KyhzaLJnV1qa3BSHdj4AZ2ndqI0QWPxYzaIOio0WzcEJB9gvuysprJSLtpvc2D9mhR9jPDUk7xlJlZbH2KR5iw== + +unherit@^1.0.4: + version "1.1.3" + resolved "https://registry.yarnpkg.com/unherit/-/unherit-1.1.3.tgz#6c9b503f2b41b262330c80e91c8614abdaa69c22" + integrity sha512-Ft16BJcnapDKp0+J/rqFC3Rrk6Y/Ng4nzsC028k2jdDII/rdZ7Wd3pPT/6+vIIxRagwRc9K0IUX0Ra4fKvw+WQ== + dependencies: + inherits "^2.0.0" + xtend "^4.0.0" + +unicode-canonical-property-names-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-canonical-property-names-ecmascript/-/unicode-canonical-property-names-ecmascript-2.0.0.tgz#301acdc525631670d39f6146e0e77ff6bbdebddc" + integrity sha512-yY5PpDlfVIU5+y/BSCxAJRBIS1Zc2dDG3Ujq+sR0U+JjUevW2JhocOF+soROYDSaAezOzOKuyyixhD6mBknSmQ== + +unicode-match-property-ecmascript@^2.0.0: + version "2.0.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-ecmascript/-/unicode-match-property-ecmascript-2.0.0.tgz#54fd16e0ecb167cf04cf1f756bdcc92eba7976c3" + integrity sha512-5kaZCrbp5mmbz5ulBkDkbY0SsPOjKqVS35VpL9ulMPfSl0J0Xsm+9Evphv9CoIZFwre7aJoa94AY6seMKGVN5Q== + dependencies: + unicode-canonical-property-names-ecmascript "^2.0.0" + unicode-property-aliases-ecmascript "^2.0.0" + +unicode-match-property-value-ecmascript@^2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-match-property-value-ecmascript/-/unicode-match-property-value-ecmascript-2.1.0.tgz#cb5fffdcd16a05124f5a4b0bf7c3770208acbbe0" + integrity sha512-qxkjQt6qjg/mYscYMC0XKRn3Rh0wFPlfxB0xkt9CfyTvpX1Ra0+rAmdX2QyAobptSEvuy4RtpPRui6XkV+8wjA== + +unicode-property-aliases-ecmascript@^2.0.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/unicode-property-aliases-ecmascript/-/unicode-property-aliases-ecmascript-2.1.0.tgz#43d41e3be698bd493ef911077c9b131f827e8ccd" + integrity sha512-6t3foTQI9qne+OZoVQB/8x8rk2k1eVy1gRXhV3oFQ5T6R1dqQ1xtin3XqSlx3+ATBkliTaR/hHyJBm+LVPNM8w== + +unified@^7.0.0: + version "7.1.0" + resolved "https://registry.yarnpkg.com/unified/-/unified-7.1.0.tgz#5032f1c1ee3364bd09da12e27fdd4a7553c7be13" + integrity sha512-lbk82UOIGuCEsZhPj8rNAkXSDXd6p0QLzIuSsCdxrqnqU56St4eyOB+AlXsVgVeRmetPTYydIuvFfpDIed8mqw== + dependencies: + "@types/unist" "^2.0.0" + "@types/vfile" "^3.0.0" + bail "^1.0.0" + extend "^3.0.0" + is-plain-obj "^1.1.0" + trough "^1.0.0" + vfile "^3.0.0" + x-is-string "^0.1.0" + +union-value@^1.0.0: + version "1.0.1" + resolved "https://registry.yarnpkg.com/union-value/-/union-value-1.0.1.tgz#0b6fe7b835aecda61c6ea4d4f02c14221e109847" + integrity sha512-tJfXmxMeWYnczCVs7XAEvIV7ieppALdyepWMkHkwciRpZraG/xwT+s2JN8+pr1+8jCRf80FFzvr+MpQeeoF4Xg== + dependencies: + arr-union "^3.1.0" + get-value "^2.0.6" + is-extendable "^0.1.1" + set-value "^2.0.1" + +uniq@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/uniq/-/uniq-1.0.1.tgz#b31c5ae8254844a3a8281541ce2b04b865a734ff" + integrity sha512-Gw+zz50YNKPDKXs+9d+aKAjVwpjNwqzvNpLigIruT4HA9lMZNdMqs9x07kKHB/L9WRzqp4+DlTU5s4wG2esdoA== + +unique-filename@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unique-filename/-/unique-filename-3.0.0.tgz#48ba7a5a16849f5080d26c760c86cf5cf05770ea" + integrity sha512-afXhuC55wkAmZ0P18QsVE6kp8JaxrEokN2HGIoIVv2ijHQd419H0+6EigAFcIzXeMIkcIkNBpB3L/DXB3cTS/g== + dependencies: + unique-slug "^4.0.0" + +unique-slug@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/unique-slug/-/unique-slug-4.0.0.tgz#6bae6bb16be91351badd24cdce741f892a6532e3" + integrity sha512-WrcA6AyEfqDX5bWige/4NQfPZMtASNVxdmWR76WESYQVAACSgWcR6e9i0mofqqBxYFtL4oAxPIptY73/0YE1DQ== + dependencies: + imurmurhash "^0.1.4" + +unist-util-find-all-after@^1.0.2: + version "1.0.5" + resolved "https://registry.yarnpkg.com/unist-util-find-all-after/-/unist-util-find-all-after-1.0.5.tgz#5751a8608834f41d117ad9c577770c5f2f1b2899" + integrity sha512-lWgIc3rrTMTlK1Y0hEuL+k+ApzFk78h+lsaa2gHf63Gp5Ww+mt11huDniuaoq1H+XMK2lIIjjPkncxXcDp3QDw== + dependencies: + unist-util-is "^3.0.0" + +unist-util-is@^3.0.0: + version "3.0.0" + resolved "https://registry.yarnpkg.com/unist-util-is/-/unist-util-is-3.0.0.tgz#d9e84381c2468e82629e4a5be9d7d05a2dd324cd" + integrity sha512-sVZZX3+kspVNmLWBPAB6r+7D9ZgAFPNWm66f7YNb420RlQSbn+n8rG8dGZSkrER7ZIXGQYNm5pqC3v3HopH24A== + +unist-util-remove-position@^1.0.0: + version "1.1.4" + resolved "https://registry.yarnpkg.com/unist-util-remove-position/-/unist-util-remove-position-1.1.4.tgz#ec037348b6102c897703eee6d0294ca4755a2020" + integrity sha512-tLqd653ArxJIPnKII6LMZwH+mb5q+n/GtXQZo6S6csPRs5zB0u79Yw8ouR3wTw8wxvdJFhpP6Y7jorWdCgLO0A== + dependencies: + unist-util-visit "^1.1.0" + +unist-util-stringify-position@^1.0.0, unist-util-stringify-position@^1.1.1: + version "1.1.2" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-1.1.2.tgz#3f37fcf351279dcbca7480ab5889bb8a832ee1c6" + integrity sha512-pNCVrk64LZv1kElr0N1wPiHEUoXNVFERp+mlTg/s9R5Lwg87f9bM/3sQB99w+N9D/qnM9ar3+AKDBwo/gm/iQQ== + +unist-util-stringify-position@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/unist-util-stringify-position/-/unist-util-stringify-position-4.0.0.tgz#449c6e21a880e0855bf5aabadeb3a740314abac2" + integrity sha512-0ASV06AAoKCDkS2+xw5RXJywruurpbC4JZSm7nr7MOt1ojAzvyyaO+UxZf18j8FCF6kmzCZKcAgN/yu2gm2XgQ== + dependencies: + "@types/unist" "^3.0.0" + +unist-util-visit-parents@^2.0.0: + version "2.1.2" + resolved "https://registry.yarnpkg.com/unist-util-visit-parents/-/unist-util-visit-parents-2.1.2.tgz#25e43e55312166f3348cae6743588781d112c1e9" + integrity sha512-DyN5vD4NE3aSeB+PXYNKxzGsfocxp6asDc2XXE3b0ekO2BaRUpBicbbUygfSvYfUz1IkmjFR1YF7dPklraMZ2g== + dependencies: + unist-util-is "^3.0.0" + +unist-util-visit@^1.1.0: + version "1.4.1" + resolved "https://registry.yarnpkg.com/unist-util-visit/-/unist-util-visit-1.4.1.tgz#4724aaa8486e6ee6e26d7ff3c8685960d560b1e3" + integrity sha512-AvGNk7Bb//EmJZyhtRUnNMEpId/AZ5Ph/KUpTI09WHQuDZHKovQ1oEv3mfmKpWKtoMzyMC4GLBm1Zy5k12fjIw== + dependencies: + unist-util-visit-parents "^2.0.0" + +universalify@^0.1.0: + version "0.1.2" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-0.1.2.tgz#b646f69be3942dabcecc9d6639c80dc105efaa66" + integrity sha512-rBJeI5CXAlmy1pV+617WB9J63U6XcazHHF2f2dbJix4XzpUF0RS3Zbj0FGIOCAva5P/d/GBOYaACQ1w+0azUkg== + +universalify@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/universalify/-/universalify-2.0.1.tgz#168efc2180964e6386d061e094df61afe239b18d" + integrity sha512-gptHNQghINnc/vTGIk0SOFGFNXw7JVrlRUtConJRlvaw6DuX0wO5Jeko9sWrMBhh+PsYAZ7oXAiOnf/UKogyiw== + +unpipe@1.0.0, unpipe@~1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unpipe/-/unpipe-1.0.0.tgz#b2bf4ee8514aae6165b4817829d21b2ef49904ec" + integrity sha512-pjy2bYhSsufwWlKwPc+l3cN7+wuJlK6uz0YdJEOlQDbl6jo/YlPi4mb8agUkVC8BF7V8NuzeyPNqRksA3hztKQ== + +unset-value@^1.0.0: + version "1.0.0" + resolved "https://registry.yarnpkg.com/unset-value/-/unset-value-1.0.0.tgz#8376873f7d2335179ffb1e6fc3a8ed0dfc8ab559" + integrity sha512-PcA2tsuGSF9cnySLHTLSh2qrQiJ70mn+r+Glzxv2TWZblxsxCC52BDlZoPCsz7STd9pN7EZetkWZBAvk4cgZdQ== + dependencies: + has-value "^0.3.1" + isobject "^3.0.0" + +update-browserslist-db@^1.1.0: + version "1.1.0" + resolved "https://registry.yarnpkg.com/update-browserslist-db/-/update-browserslist-db-1.1.0.tgz#7ca61c0d8650766090728046e416a8cde682859e" + integrity sha512-EdRAaAyk2cUE1wOf2DkEhzxqOQvFOoRJFNS6NeyJ01Gp2beMRpBAINjM2iDXE3KCuKhwnvHIQCJm6ThL2Z+HzQ== + dependencies: + escalade "^3.1.2" + picocolors "^1.0.1" + +uri-js@^4.2.2: + version "4.4.1" + resolved "https://registry.yarnpkg.com/uri-js/-/uri-js-4.4.1.tgz#9b1a52595225859e55f669d928f88c6c57f2a77e" + integrity sha512-7rKUyy33Q1yc98pQ1DAmLtwX109F7TIfWlW1Ydo8Wl1ii1SeHieeh0HHfPeL2fMXK6z0s8ecKs9frCuLJvndBg== + dependencies: + punycode "^2.1.0" + +urix@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/urix/-/urix-0.1.0.tgz#da937f7a62e21fec1fd18d49b35c2935067a6c72" + integrity sha512-Am1ousAhSLBeB9cG/7k7r2R0zj50uDRlZHPGbazid5s9rlF1F/QKYObEKSIunSjIOkJZqwRRLpvewjEkM7pSqg== + +url-polyfill@^1.1.12: + version "1.1.12" + resolved "https://registry.yarnpkg.com/url-polyfill/-/url-polyfill-1.1.12.tgz#6cdaa17f6b022841b3aec0bf8dbd87ac0cd33331" + integrity sha512-mYFmBHCapZjtcNHW0MDq9967t+z4Dmg5CJ0KqysK3+ZbyoNOWQHksGCTWwDhxGXllkWlOc10Xfko6v4a3ucM6A== + +use@^3.1.0: + version "3.1.1" + resolved "https://registry.yarnpkg.com/use/-/use-3.1.1.tgz#d50c8cac79a19fbc20f2911f56eb973f4e10070f" + integrity sha512-cwESVXlO3url9YWlFW/TA9cshCEhtu7IKJ/p5soJ/gGpj7vbvFrAY/eIioQ6Dw23KjZhYgiIo8HOs1nQ2vr/oQ== + +util-deprecate@^1.0.1, util-deprecate@^1.0.2, util-deprecate@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/util-deprecate/-/util-deprecate-1.0.2.tgz#450d4dc9fa70de732762fbd2d4a28981419a0ccf" + integrity sha512-EPD5q1uXyFxJpCrLnCc1nHnq3gOa6DZBocAIiI2TaSCA7VCJ1UJDMagCzIkXNsUYfD1daK//LTEQ8xiIbrHtcw== + +utils-merge@1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/utils-merge/-/utils-merge-1.0.1.tgz#9f95710f50a267947b2ccc124741c1028427e713" + integrity sha512-pMZTvIkT1d+TFGvDOqodOclx0QWkkgi6Tdoa8gC8ffGAAqz9pzPTZWAybbsHHoED/ztMtkv/VoYTYyShUn81hA== + +uuid@^3.3.2: + version "3.4.0" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-3.4.0.tgz#b23e4358afa8a202fe7a100af1f5f883f02007ee" + integrity sha512-HjSDRw6gZE5JMggctHBcjVak08+KEVhSIiDzFnT9S9aegmp85S/bReBVTb4QTFaRNptJ9kuYaNhnbNEOkbKb/A== + +uuid@^8.3.2: + version "8.3.2" + resolved "https://registry.yarnpkg.com/uuid/-/uuid-8.3.2.tgz#80d5b5ced271bb9af6c445f21a1a04c606cefbe2" + integrity sha512-+NYs2QeMWy+GWFOEm9xnn6HCDp0l7QBD7ml8zLUmJ+93Q5NF0NocErnwkTkXVFNiX3/fpC6afS8Dhb/gz7R7eg== + +v8-compile-cache-lib@^3.0.1: + version "3.0.1" + resolved "https://registry.yarnpkg.com/v8-compile-cache-lib/-/v8-compile-cache-lib-3.0.1.tgz#6336e8d71965cb3d35a1bbb7868445a7c05264bf" + integrity sha512-wa7YjyUGfNZngI/vtK0UHAN+lgDCxBPCylVXGp0zu59Fz5aiGtNXaq3DhIov063MorB+VfufLh3JlF2KdTK3xg== + +v8-compile-cache@^2.3.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/v8-compile-cache/-/v8-compile-cache-2.4.0.tgz#cdada8bec61e15865f05d097c5f4fd30e94dc128" + integrity sha512-ocyWc3bAHBB/guyqJQVI5o4BZkPhznPYUG2ea80Gond/BgNWpap8TOmLSeeQG7bnh2KMISxskdADG59j7zruhw== + +validate-npm-package-license@^3.0.1, validate-npm-package-license@^3.0.4: + version "3.0.4" + resolved "https://registry.yarnpkg.com/validate-npm-package-license/-/validate-npm-package-license-3.0.4.tgz#fc91f6b9c7ba15c857f4cb2c5defeec39d4f410a" + integrity sha512-DpKm2Ui/xN7/HQKCtpZxoRWBhZ9Z0kqtygG8XCgNQ8ZlDnxuQmWhj566j8fN4Cu3/JmbhsDo7fcAJq4s9h27Ew== + dependencies: + spdx-correct "^3.0.0" + spdx-expression-parse "^3.0.0" + +validate-npm-package-name@^5.0.0: + version "5.0.1" + resolved "https://registry.yarnpkg.com/validate-npm-package-name/-/validate-npm-package-name-5.0.1.tgz#a316573e9b49f3ccd90dbb6eb52b3f06c6d604e8" + integrity sha512-OljLrQ9SQdOUqTaQxqL5dEfZWrXExyyWsozYlAWFawPVNuD83igl7uJD2RTkNMbniIYgt8l81eCJGIdQF7avLQ== + +vary@^1, vary@~1.1.2: + version "1.1.2" + resolved "https://registry.yarnpkg.com/vary/-/vary-1.1.2.tgz#2299f02c6ded30d4a5961b0b9f74524a18f634fc" + integrity sha512-BNGbWLfd0eUPabhkXUVm0j8uuvREyTh5ovRa/dyow/BqAbZJyC+5fU+IzQOzmAKzYqYRAISoRhdQr3eIZ/PXqg== + +verror@1.10.0: + version "1.10.0" + resolved "https://registry.yarnpkg.com/verror/-/verror-1.10.0.tgz#3a105ca17053af55d6e270c1f8288682e18da400" + integrity sha512-ZZKSmDAEFOijERBLkmYfJ+vmk3w+7hOLYDNkRCuRuMJGEmqYNCNLyBBFwWKVMhfwaEF3WOd0Zlw86U/WC/+nYw== + dependencies: + assert-plus "^1.0.0" + core-util-is "1.0.2" + extsprintf "^1.2.0" + +vfile-location@^2.0.0: + version "2.0.6" + resolved "https://registry.yarnpkg.com/vfile-location/-/vfile-location-2.0.6.tgz#8a274f39411b8719ea5728802e10d9e0dff1519e" + integrity sha512-sSFdyCP3G6Ka0CEmN83A2YCMKIieHx0EDaj5IDP4g1pa5ZJ4FJDvpO0WODLxo4LUX4oe52gmSCK7Jw4SBghqxA== + +vfile-message@*: + version "4.0.2" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-4.0.2.tgz#c883c9f677c72c166362fd635f21fc165a7d1181" + integrity sha512-jRDZ1IMLttGj41KcZvlrYAaI3CfqpLpfpf+Mfig13viT6NKvRzWZ+lXz0Y5D60w6uJIBAOGq9mSHf0gktF0duw== + dependencies: + "@types/unist" "^3.0.0" + unist-util-stringify-position "^4.0.0" + +vfile-message@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/vfile-message/-/vfile-message-1.1.1.tgz#5833ae078a1dfa2d96e9647886cd32993ab313e1" + integrity sha512-1WmsopSGhWt5laNir+633LszXvZ+Z/lxveBf6yhGsqnQIhlhzooZae7zV6YVM1Sdkw68dtAW3ow0pOdPANugvA== + dependencies: + unist-util-stringify-position "^1.1.1" + +vfile@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/vfile/-/vfile-3.0.1.tgz#47331d2abe3282424f4a4bb6acd20a44c4121803" + integrity sha512-y7Y3gH9BsUSdD4KzHsuMaCzRjglXN0W2EcMf0gpvu6+SbsGhMje7xDc8AEoeXy6mIwCKMI6BkjMsRjzQbhMEjQ== + dependencies: + is-buffer "^2.0.0" + replace-ext "1.0.0" + unist-util-stringify-position "^1.0.0" + vfile-message "^1.0.0" + +vite@5.1.7: + version "5.1.7" + resolved "https://registry.yarnpkg.com/vite/-/vite-5.1.7.tgz#9f685a2c4c70707fef6d37341b0e809c366da619" + integrity sha512-sgnEEFTZYMui/sTlH1/XEnVNHMujOahPLGMxn1+5sIT45Xjng1Ec1K78jRP15dSmVgg5WBin9yO81j3o9OxofA== + dependencies: + esbuild "^0.19.3" + postcss "^8.4.35" + rollup "^4.2.0" + optionalDependencies: + fsevents "~2.3.3" + +void-elements@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/void-elements/-/void-elements-2.0.1.tgz#c066afb582bb1cb4128d60ea92392e94d5e9dbec" + integrity sha512-qZKX4RnBzH2ugr8Lxa7x+0V6XD9Sb/ouARtiasEQCHB1EVU4NXtmHsDDrx1dO4ne5fc3J6EW05BP1Dl0z0iung== + +watchpack@2.4.0: + version "2.4.0" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.0.tgz#fa33032374962c78113f93c7f2fb4c54c9862a5d" + integrity sha512-Lcvm7MGST/4fup+ifyKi2hjyIAwcdI4HRgtvTpIUxBRhB+RFtUh8XtDOxUfctVCnhVi+QQj49i91OyvzkJl6cg== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + +watchpack@^2.4.0: + version "2.4.1" + resolved "https://registry.yarnpkg.com/watchpack/-/watchpack-2.4.1.tgz#29308f2cac150fa8e4c92f90e0ec954a9fed7fff" + integrity sha512-8wrBCMtVhqcXP2Sup1ctSkga6uc2Bx0IIvKyT7yTFier5AXHooSI+QyQQAtTb7+E0IUCCKyTFmXqdqgum2XWGg== + dependencies: + glob-to-regexp "^0.4.1" + graceful-fs "^4.1.2" + +wbuf@^1.1.0, wbuf@^1.7.3: + version "1.7.3" + resolved "https://registry.yarnpkg.com/wbuf/-/wbuf-1.7.3.tgz#c1d8d149316d3ea852848895cb6a0bfe887b87df" + integrity sha512-O84QOnr0icsbFGLS0O3bI5FswxzRr8/gHwWkDlQFskhSPryQXvrTMxjxGP4+iWYoauLoBvfDpkrOauZ+0iZpDA== + dependencies: + minimalistic-assert "^1.0.0" + +wcwidth@^1.0.1: + version "1.0.1" + resolved "https://registry.yarnpkg.com/wcwidth/-/wcwidth-1.0.1.tgz#f0b0dcf915bc5ff1528afadb2c0e17b532da2fe8" + integrity sha512-XHPEwS0q6TaxcvG85+8EYkbiCux2XtWG2mkc47Ng2A77BQu9+DqIOJldST4HgPkuea7dvKSj5VgX3P1d4rW8Tg== + dependencies: + defaults "^1.0.3" + +web-streams-polyfill@^3.0.3: + version "3.3.3" + resolved "https://registry.yarnpkg.com/web-streams-polyfill/-/web-streams-polyfill-3.3.3.tgz#2073b91a2fdb1fbfbd401e7de0ac9f8214cecb4b" + integrity sha512-d2JWLCivmZYTSIoge9MsgFCZrt571BikcWGYkjC1khllbTeDlGqZ2D8vD8E/lJa8WGWbb7Plm8/XJYV7IJHZZw== + +webdriver-js-extender@2.1.0: + version "2.1.0" + resolved "https://registry.yarnpkg.com/webdriver-js-extender/-/webdriver-js-extender-2.1.0.tgz#57d7a93c00db4cc8d556e4d3db4b5db0a80c3bb7" + integrity sha512-lcUKrjbBfCK6MNsh7xaY2UAUmZwe+/ib03AjVOpFobX4O7+83BUveSrLfU0Qsyb1DaKJdQRbuU+kM9aZ6QUhiQ== + dependencies: + "@types/selenium-webdriver" "^3.0.0" + selenium-webdriver "^3.0.1" + +webdriver-manager@^12.1.7: + version "12.1.9" + resolved "https://registry.yarnpkg.com/webdriver-manager/-/webdriver-manager-12.1.9.tgz#8d83543b92711b7217b39fef4cda958a4703d2df" + integrity sha512-Yl113uKm8z4m/KMUVWHq1Sjtla2uxEBtx2Ue3AmIlnlPAKloDn/Lvmy6pqWCUersVISpdMeVpAaGbNnvMuT2LQ== + dependencies: + adm-zip "^0.5.2" + chalk "^1.1.1" + del "^2.2.0" + glob "^7.0.3" + ini "^1.3.4" + minimist "^1.2.0" + q "^1.4.1" + request "^2.87.0" + rimraf "^2.5.2" + semver "^5.3.0" + xml2js "^0.4.17" + +webidl-conversions@^3.0.0: + version "3.0.1" + resolved "https://registry.yarnpkg.com/webidl-conversions/-/webidl-conversions-3.0.1.tgz#24534275e2a7bc6be7bc86611cc16ae0a5654871" + integrity sha512-2JAn3z8AR6rjK8Sm8orRC0h/bcl/DqL7tRPdGZ4I1CjdF+EaMLmYxBHyXuKL849eucPFhvBoxMsflfOb8kxaeQ== + +webpack-dev-middleware@6.1.2: + version "6.1.2" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-6.1.2.tgz#0463232e59b7d7330fa154121528d484d36eb973" + integrity sha512-Wu+EHmX326YPYUpQLKmKbTyZZJIB8/n6R09pTmB03kJmnMsVPTo9COzHZFr01txwaCAuZvfBJE4ZCHRcKs5JaQ== + dependencies: + colorette "^2.0.10" + memfs "^3.4.12" + mime-types "^2.1.31" + range-parser "^1.2.1" + schema-utils "^4.0.0" + +webpack-dev-middleware@^5.3.1: + version "5.3.4" + resolved "https://registry.yarnpkg.com/webpack-dev-middleware/-/webpack-dev-middleware-5.3.4.tgz#eb7b39281cbce10e104eb2b8bf2b63fce49a3517" + integrity sha512-BVdTqhhs+0IfoeAf7EoH5WE+exCmqGerHfDM0IL096Px60Tq2Mn9MAbnaGUe6HiMa41KMCYF19gyzZmBcq/o4Q== + dependencies: + colorette "^2.0.10" + memfs "^3.4.3" + mime-types "^2.1.31" + range-parser "^1.2.1" + schema-utils "^4.0.0" + +webpack-dev-server@4.15.1: + version "4.15.1" + resolved "https://registry.yarnpkg.com/webpack-dev-server/-/webpack-dev-server-4.15.1.tgz#8944b29c12760b3a45bdaa70799b17cb91b03df7" + integrity sha512-5hbAst3h3C3L8w6W4P96L5vaV0PxSmJhxZvWKYIdgxOQm8pNZ5dEOmmSLBVpP85ReeyRt6AS1QJNyo/oFFPeVA== + dependencies: + "@types/bonjour" "^3.5.9" + "@types/connect-history-api-fallback" "^1.3.5" + "@types/express" "^4.17.13" + "@types/serve-index" "^1.9.1" + "@types/serve-static" "^1.13.10" + "@types/sockjs" "^0.3.33" + "@types/ws" "^8.5.5" + ansi-html-community "^0.0.8" + bonjour-service "^1.0.11" + chokidar "^3.5.3" + colorette "^2.0.10" + compression "^1.7.4" + connect-history-api-fallback "^2.0.0" + default-gateway "^6.0.3" + express "^4.17.3" + graceful-fs "^4.2.6" + html-entities "^2.3.2" + http-proxy-middleware "^2.0.3" + ipaddr.js "^2.0.1" + launch-editor "^2.6.0" + open "^8.0.9" + p-retry "^4.5.0" + rimraf "^3.0.2" + schema-utils "^4.0.0" + selfsigned "^2.1.1" + serve-index "^1.9.1" + sockjs "^0.3.24" + spdy "^4.0.2" + webpack-dev-middleware "^5.3.1" + ws "^8.13.0" + +webpack-merge@5.10.0: + version "5.10.0" + resolved "https://registry.yarnpkg.com/webpack-merge/-/webpack-merge-5.10.0.tgz#a3ad5d773241e9c682803abf628d4cd62b8a4177" + integrity sha512-+4zXKdx7UnO+1jaN4l2lHVD+mFvnlZQP/6ljaJVb4SZiwIKeUnrT5l0gkT8z+n4hKpC+jpOv6O9R+gLtag7pSA== + dependencies: + clone-deep "^4.0.1" + flat "^5.0.2" + wildcard "^2.0.0" + +webpack-sources@^3.0.0, webpack-sources@^3.2.3: + version "3.2.3" + resolved "https://registry.yarnpkg.com/webpack-sources/-/webpack-sources-3.2.3.tgz#2d4daab8451fd4b240cc27055ff6a0c2ccea0cde" + integrity sha512-/DyMEOrDgLKKIG0fmvtz+4dUX/3Ghozwgm6iPp8KRhvn+eQf9+Q7GWxVNMk3+uCPWfdXYC4ExGBckIXdFEfH1w== + +webpack-subresource-integrity@5.1.0: + version "5.1.0" + resolved "https://registry.yarnpkg.com/webpack-subresource-integrity/-/webpack-subresource-integrity-5.1.0.tgz#8b7606b033c6ccac14e684267cb7fb1f5c2a132a" + integrity sha512-sacXoX+xd8r4WKsy9MvH/q/vBtEHr86cpImXwyg74pFIpERKt6FmB8cXpeuh0ZLgclOlHI4Wcll7+R5L02xk9Q== + dependencies: + typed-assert "^1.0.8" + +webpack@5.90.3: + version "5.90.3" + resolved "https://registry.yarnpkg.com/webpack/-/webpack-5.90.3.tgz#37b8f74d3ded061ba789bb22b31e82eed75bd9ac" + integrity sha512-h6uDYlWCctQRuXBs1oYpVe6sFcWedl0dpcVaTf/YF67J9bKvwJajFulMVSYKHrksMB3I/pIagRzDxwxkebuzKA== + dependencies: + "@types/eslint-scope" "^3.7.3" + "@types/estree" "^1.0.5" + "@webassemblyjs/ast" "^1.11.5" + "@webassemblyjs/wasm-edit" "^1.11.5" + "@webassemblyjs/wasm-parser" "^1.11.5" + acorn "^8.7.1" + acorn-import-assertions "^1.9.0" + browserslist "^4.21.10" + chrome-trace-event "^1.0.2" + enhanced-resolve "^5.15.0" + es-module-lexer "^1.2.1" + eslint-scope "5.1.1" + events "^3.2.0" + glob-to-regexp "^0.4.1" + graceful-fs "^4.2.9" + json-parse-even-better-errors "^2.3.1" + loader-runner "^4.2.0" + mime-types "^2.1.27" + neo-async "^2.6.2" + schema-utils "^3.2.0" + tapable "^2.1.1" + terser-webpack-plugin "^5.3.10" + watchpack "^2.4.0" + webpack-sources "^3.2.3" + +websocket-driver@>=0.5.1, websocket-driver@^0.7.4: + version "0.7.4" + resolved "https://registry.yarnpkg.com/websocket-driver/-/websocket-driver-0.7.4.tgz#89ad5295bbf64b480abcba31e4953aca706f5760" + integrity sha512-b17KeDIQVjvb0ssuSDF2cYXSg2iztliJ4B9WdsuB6J952qCPKmnVq4DyW5motImXHDC1cBT/1UezrJVsKw5zjg== + dependencies: + http-parser-js ">=0.5.1" + safe-buffer ">=5.1.0" + websocket-extensions ">=0.1.1" + +websocket-extensions@>=0.1.1: + version "0.1.4" + resolved "https://registry.yarnpkg.com/websocket-extensions/-/websocket-extensions-0.1.4.tgz#7f8473bc839dfd87608adb95d7eb075211578a42" + integrity sha512-OqedPIGOfsDlo31UNwYbCFMSaO9m9G/0faIHj5/dZFDMFqPTcx6UwqyOy3COEaEOg/9VsGIpdqn62W5KhoKSpg== + +whatwg-url@^5.0.0: + version "5.0.0" + resolved "https://registry.yarnpkg.com/whatwg-url/-/whatwg-url-5.0.0.tgz#966454e8765462e37644d3626f6742ce8b70965d" + integrity sha512-saE57nupxk6v3HY35+jzBwYa0rKSy0XR8JSxZPwgLr7ys0IBzhGviA1/TUGJLmSVqs8pb9AnvICXEuOHLprYTw== + dependencies: + tr46 "~0.0.3" + webidl-conversions "^3.0.0" + +which-boxed-primitive@^1.0.2: + version "1.0.2" + resolved "https://registry.yarnpkg.com/which-boxed-primitive/-/which-boxed-primitive-1.0.2.tgz#13757bc89b209b049fe5d86430e21cf40a89a8e6" + integrity sha512-bwZdv0AKLpplFY2KZRX6TvyuN7ojjr7lwkg6ml0roIy9YeuSr7JS372qlNW18UQYzgYK9ziGcerWqZOmEn9VNg== + dependencies: + is-bigint "^1.0.1" + is-boolean-object "^1.1.0" + is-number-object "^1.0.4" + is-string "^1.0.5" + is-symbol "^1.0.3" + +which-module@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/which-module/-/which-module-2.0.1.tgz#776b1fe35d90aebe99e8ac15eb24093389a4a409" + integrity sha512-iBdZ57RDvnOR9AGBhML2vFZf7h8vmBjhoaZqODJBFWHVtKkDmKuHai3cx5PgVMrX5YDNp27AofYbAwctSS+vhQ== + +which-typed-array@^1.1.14, which-typed-array@^1.1.15: + version "1.1.15" + resolved "https://registry.yarnpkg.com/which-typed-array/-/which-typed-array-1.1.15.tgz#264859e9b11a649b388bfaaf4f767df1f779b38d" + integrity sha512-oV0jmFtUky6CXfkqehVvBP/LSWJ2sy4vWMioiENyJLePrBO/yKyV9OyJySfAKosh+RYkIl5zJCNZ8/4JncrpdA== + dependencies: + available-typed-arrays "^1.0.7" + call-bind "^1.0.7" + for-each "^0.3.3" + gopd "^1.0.1" + has-tostringtag "^1.0.2" + +which@^1.2.1, which@^1.3.1: + version "1.3.1" + resolved "https://registry.yarnpkg.com/which/-/which-1.3.1.tgz#a45043d54f5805316da8d62f9f50918d3da70b0a" + integrity sha512-HxJdYWq1MTIQbJ3nw0cqssHoTNU267KlrDuGZ1WYlxDStUtKUhOaJmh112/TZmHxxUfuJqPXSOm7tDyas0OSIQ== + dependencies: + isexe "^2.0.0" + +which@^2.0.1: + version "2.0.2" + resolved "https://registry.yarnpkg.com/which/-/which-2.0.2.tgz#7c6a8dd0a636a0327e10b59c9286eee93f3f51b1" + integrity sha512-BLI3Tl1TW3Pvl70l3yq3Y64i+awpwXqsGBYWkkqMtnbXgrMD+yj7rhW0kuEDxzJaYXGjEW5ogapKNMEKNMjibA== + dependencies: + isexe "^2.0.0" + +which@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/which/-/which-4.0.0.tgz#cd60b5e74503a3fbcfbf6cd6b4138a8bae644c1a" + integrity sha512-GlaYyEb07DPxYCKhKzplCWBJtvxZcZMrL+4UkrTSJHHPyZU4mYYTv3qaOe77H7EODLSSopAUFAc6W8U4yqvscg== + dependencies: + isexe "^3.1.1" + +wildcard@^2.0.0: + version "2.0.1" + resolved "https://registry.yarnpkg.com/wildcard/-/wildcard-2.0.1.tgz#5ab10d02487198954836b6349f74fff961e10f67" + integrity sha512-CC1bOL87PIWSBhDcTrdeLo6eGT7mCFtrg0uIJtqJUFyK+eJnzl8A1niH56uu7KMa5XFrtiV+AQuHO3n7DsHnLQ== + +wmf@~1.0.1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wmf/-/wmf-1.0.2.tgz#7d19d621071a08c2bdc6b7e688a9c435298cc2da" + integrity sha512-/p9K7bEh0Dj6WbXg4JG0xvLQmIadrner1bi45VMJTfnbVHsc7yIajZyoSoK60/dtVBs12Fm6WkUI5/3WAVsNMw== + +word-wrap@^1.2.5: + version "1.2.5" + resolved "https://registry.yarnpkg.com/word-wrap/-/word-wrap-1.2.5.tgz#d2c45c6dd4fbce621a66f136cbe328afd0410b34" + integrity sha512-BN22B5eaMMI9UMtjrGd5g5eCYPpCPDUy0FJXbYsaT5zYxjFOckS53SQDE3pWkVoWpHXVb3BrYcEN4Twa55B5cA== + +word@~0.3.0: + version "0.3.0" + resolved "https://registry.yarnpkg.com/word/-/word-0.3.0.tgz#8542157e4f8e849f4a363a288992d47612db9961" + integrity sha512-OELeY0Q61OXpdUfTp+oweA/vtLVg5VDOXh+3he3PNzLGG/y0oylSOC1xRVj0+l4vQ3tj/bB1HVHv1ocXkQceFA== + +"wrap-ansi-cjs@npm:wrap-ansi@^7.0.0": + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^6.2.0: + version "6.2.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-6.2.0.tgz#e9393ba07102e6c91a3b221478f0257cd2856e53" + integrity sha512-r6lPcBGxZXlIcymEu7InxDMhdW0KDxpLgoFLcguasxCaJ/SOIZwINatK9KY/tf+ZrlywOKU0UDj3ATXUBfxJXA== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^7.0.0: + version "7.0.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-7.0.0.tgz#67e145cff510a6a6984bdf1152911d69d2eb9e43" + integrity sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q== + dependencies: + ansi-styles "^4.0.0" + string-width "^4.1.0" + strip-ansi "^6.0.0" + +wrap-ansi@^8.0.1, wrap-ansi@^8.1.0: + version "8.1.0" + resolved "https://registry.yarnpkg.com/wrap-ansi/-/wrap-ansi-8.1.0.tgz#56dc22368ee570face1b49819975d9b9a5ead214" + integrity sha512-si7QWI6zUMq56bESFvagtmzMdGOtoxfR+Sez11Mobfc7tm+VkUckk9bW2UeffTGVUbOksxmSw0AA2gs8g71NCQ== + dependencies: + ansi-styles "^6.1.0" + string-width "^5.0.1" + strip-ansi "^7.0.1" + +wrappy@1: + version "1.0.2" + resolved "https://registry.yarnpkg.com/wrappy/-/wrappy-1.0.2.tgz#b5243d8f3ec1aa35f1364605bc0d1036e30ab69f" + integrity sha512-l4Sp/DRseor9wL6EvV2+TuQn63dMkPjZ/sp9XkghTEbV9KlPS1xUsZ3u7/IQO4wxtcFB4bgpQPRcR3QCvezPcQ== + +write-file-atomic@^4.0.2: + version "4.0.2" + resolved "https://registry.yarnpkg.com/write-file-atomic/-/write-file-atomic-4.0.2.tgz#a9df01ae5b77858a027fd2e80768ee433555fcfd" + integrity sha512-7KxauUdBmSdWnmpaGFg+ppNjKF8uNLry8LyzjauQDOVONfFLNKrKvQOxZ/VuTIcS/gge/YNahf5RIIQWTSarlg== + dependencies: + imurmurhash "^0.1.4" + signal-exit "^3.0.7" + +write@1.0.3: + version "1.0.3" + resolved "https://registry.yarnpkg.com/write/-/write-1.0.3.tgz#0800e14523b923a387e415123c865616aae0f5c3" + integrity sha512-/lg70HAjtkUgWPVZhZcm+T4hkL8Zbtp1nFNOn3lRrxnlv50SRBv7cR7RqR+GMsd3hUXy9hWBo4CHTbFTcOYwig== + dependencies: + mkdirp "^0.5.1" + +ws@^8.13.0: + version "8.18.0" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.18.0.tgz#0d7505a6eafe2b0e712d232b42279f53bc289bbc" + integrity sha512-8VbfWfHLbbwu3+N6OKsOMpBdT4kXPDDB9cJk2bJ6mh9ucxdlnNvH1e+roYkKmN9Nxw2yjz7VzeO9oOz2zJ04Pw== + +ws@~8.17.1: + version "8.17.1" + resolved "https://registry.yarnpkg.com/ws/-/ws-8.17.1.tgz#9293da530bb548febc95371d90f9c878727d919b" + integrity sha512-6XQFvXTkbfUOZOKKILFG1PDK2NDQs4azKQl26T0YS5CxqWLgXajbPZ+h4gZekJyRqFU8pvnbAbbs/3TgRPy+GQ== + +x-is-string@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/x-is-string/-/x-is-string-0.1.0.tgz#474b50865af3a49a9c4657f05acd145458f77d82" + integrity sha512-GojqklwG8gpzOVEVki5KudKNoq7MbbjYZCbyWzEz7tyPA7eleiE0+ePwOWQQRb5fm86rD3S8Tc0tSFf3AOv50w== + +xlsx@^0.18.5: + version "0.18.5" + resolved "https://registry.yarnpkg.com/xlsx/-/xlsx-0.18.5.tgz#16711b9113c848076b8a177022799ad356eba7d0" + integrity sha512-dmg3LCjBPHZnQp5/F/+nnTa+miPJxUXB6vtk42YjBBKayDNagxGEeIdWApkYPOf3Z3pm3k62Knjzp7lMeTEtFQ== + dependencies: + adler-32 "~1.3.0" + cfb "~1.2.1" + codepage "~1.15.0" + crc-32 "~1.2.1" + ssf "~0.11.2" + wmf "~1.0.1" + word "~0.3.0" + +xml2js@^0.4.17: + version "0.4.23" + resolved "https://registry.yarnpkg.com/xml2js/-/xml2js-0.4.23.tgz#a0c69516752421eb2ac758ee4d4ccf58843eac66" + integrity sha512-ySPiMjM0+pLDftHgXY4By0uswI3SPKLDw/i3UXbnO8M/p28zqexCUoPmQFrYD+/1BzhGJSs2i1ERWKJAtiLrug== + dependencies: + sax ">=0.6.0" + xmlbuilder "~11.0.0" + +xmlbuilder@~11.0.0: + version "11.0.1" + resolved "https://registry.yarnpkg.com/xmlbuilder/-/xmlbuilder-11.0.1.tgz#be9bae1c8a046e76b31127726347d0ad7002beb3" + integrity sha512-fDlsI/kFEx7gLvbecc0/ohLG50fugQp8ryHzMTuW9vSa1GJ0XYWKnhsUx7oie3G98+r56aTQIUB4kht42R3JvA== + +xtend@^4.0.0, xtend@^4.0.1: + version "4.0.2" + resolved "https://registry.yarnpkg.com/xtend/-/xtend-4.0.2.tgz#bb72779f5fa465186b1f438f674fa347fdb5db54" + integrity sha512-LKYU1iAXJXUgAXn9URjiu+MWhyUXHsvfp7mcuYm9dSUKK0/CjtrUwFAxD82/mCWbtLsGjFIad0wIsod4zrTAEQ== + +y18n@^4.0.0: + version "4.0.3" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-4.0.3.tgz#b5f259c82cd6e336921efd7bfd8bf560de9eeedf" + integrity sha512-JKhqTOwSrqNA1NY5lSztJ1GrBiUodLMmIZuLiDaMRJ+itFd+ABVE8XBjOvIWL+rSqNDC74LCSFmlb/U4UZ4hJQ== + +y18n@^5.0.5: + version "5.0.8" + resolved "https://registry.yarnpkg.com/y18n/-/y18n-5.0.8.tgz#7f4934d0f7ca8c56f95314939ddcd2dd91ce1d55" + integrity sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA== + +yallist@^3.0.2: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-3.1.1.tgz#dbb7daf9bfd8bac9ab45ebf602b8cbad0d5d08fd" + integrity sha512-a4UGQaWPH59mOXUYnAG2ewncQS4i4F43Tv3JoAM+s2VDAmS9NsK8GpDMLrCHPksFT7h3K6TOoUNn2pb7RoXx4g== + +yallist@^4.0.0: + version "4.0.0" + resolved "https://registry.yarnpkg.com/yallist/-/yallist-4.0.0.tgz#9bb92790d9c0effec63be73519e11a35019a3a72" + integrity sha512-3wdGidZyq5PB084XLES5TpOSRA3wjXAlIWMhum2kRcv/41Sn2emQ0dycQW4uZXLejwKvg6EsvbdlVL+FYEct7A== + +yaml@2.3.1: + version "2.3.1" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-2.3.1.tgz#02fe0975d23cd441242aa7204e09fc28ac2ac33b" + integrity sha512-2eHWfjaoXgTBC2jNM1LRef62VQa0umtvRiDSk6HSzW7RvS5YtkabJrwYLLEKWBc8a5U2PTSCs+dJjUTJdlHsWQ== + +yaml@^1.10.0: + version "1.10.2" + resolved "https://registry.yarnpkg.com/yaml/-/yaml-1.10.2.tgz#2301c5ffbf12b467de8da2333a459e29e7920e4b" + integrity sha512-r3vXyErRCYJ7wg28yvBY5VSoAF8ZvlcW9/BwUzEtUsjvX/DKs24dIkuwjtuprwJJHsbyUbLApepYTR1BN4uHrg== + +yargs-parser@21.1.1, yargs-parser@^21.1.1: + version "21.1.1" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-21.1.1.tgz#9096bceebf990d21bb31fa9516e0ede294a77d35" + integrity sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw== + +yargs-parser@^10.0.0: + version "10.1.0" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-10.1.0.tgz#7202265b89f7e9e9f2e5765e0fe735a905edbaa8" + integrity sha512-VCIyR1wJoEBZUqk5PA+oOBF6ypbwh5aNB3I50guxAL/quggdfs4TtNHQrSazFA3fYZ+tEqfs0zIGlv0c/rgjbQ== + dependencies: + camelcase "^4.1.0" + +yargs-parser@^18.1.2: + version "18.1.3" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-18.1.3.tgz#be68c4975c6b2abf469236b0c870362fab09a7b0" + integrity sha512-o50j0JeToy/4K6OZcaQmW6lyXXKhq7csREXcDwk2omFPJEwUNOVtJKvmDr9EI1fAJZUyZcRF7kxGBWmRXudrCQ== + dependencies: + camelcase "^5.0.0" + decamelize "^1.2.0" + +yargs-parser@^20.2.2, yargs-parser@^20.2.3: + version "20.2.9" + resolved "https://registry.yarnpkg.com/yargs-parser/-/yargs-parser-20.2.9.tgz#2eb7dc3b0289718fc295f362753845c41a0c94ee" + integrity sha512-y11nGElTIV+CT3Zv9t7VKl+Q3hTQoT9a1Qzezhhl6Rp21gJ/IVTW7Z3y9EWXhuUBC2Shnf+DX0antecpAwSP8w== + +yargs@17.7.2, yargs@^17.0.1, yargs@^17.2.1, yargs@^17.6.2: + version "17.7.2" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-17.7.2.tgz#991df39aca675a192b816e1e0363f9d75d2aa269" + integrity sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w== + dependencies: + cliui "^8.0.1" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.3" + y18n "^5.0.5" + yargs-parser "^21.1.1" + +yargs@^15.3.1: + version "15.4.1" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-15.4.1.tgz#0d87a16de01aee9d8bec2bfbf74f67851730f4f8" + integrity sha512-aePbxDmcYW++PaqBsJ+HYUFwCdv4LVvdnhBy78E57PIor8/OVvhMrADFFEDh8DHDFRv/O9i3lPhsENjO7QX0+A== + dependencies: + cliui "^6.0.0" + decamelize "^1.2.0" + find-up "^4.1.0" + get-caller-file "^2.0.1" + require-directory "^2.1.1" + require-main-filename "^2.0.0" + set-blocking "^2.0.0" + string-width "^4.2.0" + which-module "^2.0.0" + y18n "^4.0.0" + yargs-parser "^18.1.2" + +yargs@^16.1.1, yargs@^16.2.0: + version "16.2.0" + resolved "https://registry.yarnpkg.com/yargs/-/yargs-16.2.0.tgz#1c82bf0f6b6a66eafce7ef30e376f49a12477f66" + integrity sha512-D1mvvtDG0L5ft/jGWkLpG1+m0eQxOfaBvTNELraWj22wSVUMWxZUvYgJYcKh6jGGIkJFhH4IZPQhR4TKpc8mBw== + dependencies: + cliui "^7.0.2" + escalade "^3.1.1" + get-caller-file "^2.0.5" + require-directory "^2.1.1" + string-width "^4.2.0" + y18n "^5.0.5" + yargs-parser "^20.2.2" + +yn@3.1.1: + version "3.1.1" + resolved "https://registry.yarnpkg.com/yn/-/yn-3.1.1.tgz#1e87401a09d767c1d5eab26a6e4c185182d2eb50" + integrity sha512-Ux4ygGWsu2c7isFWe8Yu1YluJmqVhxqK2cLXNQA5AcC3QfbGNpM7fu0Y8b/z16pXLnFxZYvWhd3fhBY9DLmC6Q== + +yocto-queue@^0.1.0: + version "0.1.0" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-0.1.0.tgz#0294eb3dee05028d31ee1a5fa2c556a6aaf10a1b" + integrity sha512-rVksvsnNCdJ/ohGc6xgPwyN8eheCxsiLM8mxuE/t/mOVqJewPuO1miLpTHQiRgTKCLexL4MeAFVagts7HmNZ2Q== + +yocto-queue@^1.0.0: + version "1.1.1" + resolved "https://registry.yarnpkg.com/yocto-queue/-/yocto-queue-1.1.1.tgz#fef65ce3ac9f8a32ceac5a634f74e17e5b232110" + integrity sha512-b4JR1PFR10y1mKjhHY9LaGo6tmrgjit7hxVIeAmyMw3jegXR4dhYqLaQF5zMXZxY7tLpMyJeLjr1C4rLmkVe8g== + +zone.js@0.14.5: + version "0.14.5" + resolved "https://registry.yarnpkg.com/zone.js/-/zone.js-0.14.5.tgz#7f3591dc4cad1a030cda86b03d10450b719dd460" + integrity sha512-9XYWZzY6PhHOSdkYryNcMm7L8EK7a4q+GbTvxbIA2a9lMdRUpGuyaYvLDcg8D6bdn+JomSsbPcilVKg6SmUx6w== + dependencies: + tslib "^2.3.0" + +zrender@5.4.4: + version "5.4.4" + resolved "https://registry.yarnpkg.com/zrender/-/zrender-5.4.4.tgz#8854f1d95ecc82cf8912f5a11f86657cb8c9e261" + integrity sha512-0VxCNJ7AGOMCWeHVyTrGzUgrK4asT4ml9PEkeGirAkKNYXYzoPJCLvmyfdoOXcjTHPs10OZVMfD1Rwg16AZyYw== + dependencies: + tslib "2.3.0"