夜莺-Nightingale
夜莺V6
项目介绍 架构介绍
快速开始
黄埔营
安装部署
升级
采集器
使用手册
API
数据库表结构
FAQ
开源生态
Prometheus
版权声明
第1章:天降奇兵
第2章:探索PromQL
第3章:Prometheus告警处理
第4章:Exporter详解
第5章:数据与可视化
第6章:集群与高可用
第7章:Prometheus服务发现
第8章:监控Kubernetes
第9章:Prometheus Operator
参考资料

FlashCat supports using Tencent Cloud Voice for alert notifications. Below are the steps to configure and connect to Tencent Cloud Voice.

Configuration Fields Description

Nightingale Template Parameter Tencent Cloud Description
TcSecretId SecretId The cloud API key is an important credential for constructing Tencent Cloud API requests. It is used to generate signatures when calling Tencent Cloud APIs. Can only be viewed at creation, please save the SecretKey in time.
TcSecretKey SecretKey Same as above
TcSdkAppId SDK AppID The unique identifier of the voice application, required when calling the voice API interface.
TcTplId Voice Template ID The ID of the template approved by the console.
TcEndpoint “vms.tencentcloudapi.com” Domain name for the closest region access. Refer to Service Address for specific region access.
TcRegion Region The region parameter is used to identify which region’s data you want to operate. The optional values for the Region field are as follows: North China (Beijing) ap-beijing; South China (Guangzhou) ap-guangzhou

Usage Configuration Example

1. Create SecretId & SecretKey

In the Tencent Cloud Console API key management, create a new key.

Note: The newly created key only provides the SecretKey at the time of creation, it cannot be queried later. Please save the SecretKey.

sms001

sms002

2. Create SDK AppID

In the Tencent Cloud Console App Management —> Application List —> Create Application. After creation, you can see the SDKAppID.

sms003

sms004

3. Create a Voice Template to Obtain the Template ID

In the Tencent Cloud Console App Management —> Voice Template —> Create Voice Template.

Note:

● Select the corresponding application before creating the voice template.

● Voice templates do not support any variables.

● After creating the voice template, it needs to be approved by Tencent Cloud. Refer to Tencent Cloud’s review guidelines.

sms005

Fill in the template content with the text you want to be read aloud.

Standard Template (No Variables)

sms006

Variable Voice Template

When creating a voice template, use variables like {1}. During alert notifications, {1} will be replaced with the tx-voice notification template content.

sms013

After creation, you can see the Voice Template ID on the page. The voice template must be approved before it can be used.

sms014

4. Fill in Tencent Cloud Voice Configuration in FlashCat

Fill in the corresponding fields with the parameter values obtained from Tencent Cloud.

Note:

TcEndpoint: vms.tencentcloudapi.com is the closest region access domain name. Refer to Service Address for specific region access.

TcRegion: The region parameter, optional values are ap-beijing or ap-guangzhou.

sms007

5. Configure Notification Template

In the system settings, choose the tx-voice template. You can customize the alert display information in the tx-voice template. If a variable is used in the voice template, {1} will be replaced by the variable content S{{.Severity}}{{if .IsRecovered}}Recovered{{else}}Triggered{{end}}{{.RuleName}}. Refer to this document for notification template writing: https://flashcat.cloud/docs/content/flashcat-monitor/nightingale-v6/faq/go-template/

sms008

6. Configure Tencent Cloud Voice

  1. Select tx-voice in the notification medium.
  2. Choose the alert receiving group (group members must fill in the correct mobile contact to receive SMS notifications).

sms009

Configure the user’s mobile number in Personnel Organization —> User Management.

sms010

Log Troubleshooting

If messages cannot be sent normally, you can check the relevant error information in the FlashCat’s ERROR.log by filtering the keyword sender.

sms012

开源版
Flashcat
Flashduty