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

The collection configuration in the infrastructure can remotely distribute the collection configuration to the categraf on the machine, enabling convenient centralized management of the collection. Below is an example of configuring MySQL collection to illustrate how to configure collection rules.

Parameter Description

1. Rule Name & Business Group

The corresponding rule name and business group will be displayed in the highlighted area on the front page.

cj01

2. Filtering Conditions

Only machines belonging to the business group of the current collection configuration will be filtered. Machines can be matched by tags and machine identifiers. After matching the conditions, you can use machine preview to confirm whether the matching rules are correct.

cj02

3. Component & Plugin Type

Select the component from the drop-down menu according to the collection requirements. The example here is MySQL.

cj03

4. Template Configuration

If you want to adjust the collection template of a component, you can edit it in the Template Center. Here, taking MySQL as an example, you can modify the specified fields according to the annotated prompts. For the MySQL plugin, you only need to modify the address, username, and password to collect common metrics.

cj04

5. Testing

After the configuration is completed, click Test to find the corresponding data. The collection distribution test function requires version ent-v0.3.125 or above.

cj05

Creating Collection Templates

  1. Integration Center - Template Center —> Create in the upper right corner

cj06

  1. Fill in the corresponding template name and select the template icon. Custom images can be placed in ../flashcat/integrations/$DIR/icon/$FILE.png

cj07

  1. Select the newly created template —> Collection Template —> Create —> Fill in the custom configuration template content

cj08

How to Use Collection Templates

Note: The plugin type of custom collection templates must be the input plugin type supported by the categraf collector. The plugin types provided by default in the Template Center are all supported. If needed, you can learn and use the plugins provided by default.

Here is an example. If we want to configure process monitoring for Nginx, Docker, and Prometheus, each time a process is added for collection using the default template, the process name in the collection template needs to be modified. At this time, we can create multiple process collection templates, write the process name in the template, and directly select the corresponding template later.

1. Create Process Monitoring Template

cj09

In the Custom Template Collection —> Create Collection Template

cj10

In the example below, services such as Nginx, Docker, and Prometheus need to be monitored. Replace the service names in the configuration below and create three different Procstat process collection configurations for different service names.

cj11

Finally, three different process monitoring collection templates are generated.

cj13

2. Custom Template Data Collection

Using the custom template configuration above, you can directly select the template of the corresponding process and save it when configuring data collection.

cj12

In addition to the process collection mentioned above, network devices can also be configured with different monitoring templates according to different network devices, achieving templated management in the same way.

开源版
Flashcat
Flashduty