TDengine/tests/script/telemetry/crash-report
2025-04-03 17:25:47 +08:00
..
.env.example enh: add statistics for crash count in different versions 2025-04-03 17:20:59 +08:00
CrashCounter.py enh: add statistics for crash count in different versions 2025-04-03 17:20:59 +08:00
CrashCounter.py.old enh: rename 2025-01-23 13:45:56 +08:00
filter1.sh enh: change path 2025-01-23 11:24:38 +08:00
filter2.sh enh: change path 2025-01-23 11:24:38 +08:00
filter_assert.sh enh: change path 2025-01-23 11:24:38 +08:00
filter_nassert.sh enh: change path 2025-01-23 11:24:38 +08:00
README-CN.md docs: update README 2025-04-03 17:25:47 +08:00
README.md docs: update README 2025-04-03 17:25:47 +08:00

Table of Contents

  1. Introduction
  2. Prerequisites
  3. Running

1. Introduction

This manual is intended to give developers comprehensive guidance to collect crash information from the past 7 days and report it to the FeiShu notification group.

Note

  • The commands and scripts below are verified on Linux (CentOs 7.9.2009).

2. Prerequisites

  • Install Python3
yum install python3
yum install python3-pip
  • Install Python dependencies
pip3 install requests python-dotenv
  • Adjust .env file
cd $DIR/telemetry/crash-report
cp .env.example .env
vim .env
...
  • Example for .env
# Statistics of detailed crash information for the version
VERSION="3.3.2.*"
# Statistics of crash counts for different versions
VERSION_LIST=3.3.5.*,3.3.6.*
# Filter to exclude IP (Company network export IP)
EXCLUDE_IP="192.168.1.10"
# Official website server IP
SERVER_IP="192.168.1.11"
# Internal network providing HTTP service IP and port, used for HTML report browsing
HTTP_SERV_IP="192.168.1.12"
HTTP_SERV_PORT=8080
# Webhook address for feiShu group bot
FEISHU_MSG_URL="https://open.feishu.cn/open-apis/bot/v2/hook/*******"
# Owner
OWNER="Jayden Jia"

3. Running

In $DIR/telemetry/crash-report directory, there are several files with names like 202501**.txt. The python script will collect crash information from these text files and send report to your Feishu bot group.

cd $DIR/telemetry/crash-report
python3 CrashCounter.py