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

Creating a Custom Collection Template

Collection templates allow users to configure, reuse, and deploy collection configurations conveniently, improving monitoring efficiency at work. Configuring custom collection templates offers more flexibility to adapt to tailored monitoring needs. This article provides an example using the mtail plugin monitoring scenario.

Use Case: Deploying batch collection rules for different application logs in different directories during work.

Select Template Center —> Mtail Plugin —> Collection Template

Collection Template001

In the upper right corner, select Create —> Fill in the custom monitoring collection configuration.

Here’s a brief explanation of the collection configuration below, monitoring the occurrence of the keyword aerror in the /opt/a.log file.

Collection Template002

Next, create another collection configuration for /opt/b.log.

Collection Template003

Using the Collection Template

Select the collection template to use —> Choose Create Collection from the drop-down menu on the right.

Collection Template004

Select the effective business group for the collection.

Collection Template005

Enter the collection configuration page, filter the collection deployment nodes, and click Save.

Collection Template006

You will soon be able to query the corresponding indicator values. This article only deployed log collection for one server; in practice, you can deploy application log collection for a batch of application hosts. After configuring another type of log collection according to the above process, you can achieve batch monitoring of logs in different directories for different applications.

Collection Template007

快猫星云 联系方式 快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云 联系方式
快猫星云
OpenSource
开源版
Flashcat
Flashcat
FlashDuty
Flashduty