> For the complete documentation index, see [llms.txt](https://ilogtail.gitbook.io/ilogtail-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://ilogtail.gitbook.io/ilogtail-docs/pre-release/plugins/shu-ru-cha-jian/yuan-sheng-shu-ru-cha-jian/input-internal-alarms.md).

# 自监控告警数据

## 简介

`input_internal_alarms` 插件收集 LoongCollector 自身运行时的告警数据，并以[LogEvent](/ilogtail-docs/pre-release/developer-guide/data-model-cpp.md)的格式暴露出去。

## 事件能力

列含义见 [概览 · 事件能力列说明](https://ilogtail.gitbook.io/ilogtail-docs/pre-release/plugins/shu-ru-cha-jian/yuan-sheng-shu-ru-cha-jian/pages/V3l051tHPlzCBkmzOfvu#事件能力列说明)。

| Log | Metric | Span |
| --- | ------ | ---- |
| ✓   | —      | —    |

## 版本

[Stable](/ilogtail-docs/pre-release/plugins/stability-level.md)

## 版本说明

* 推荐版本：LoongCollector v3.0.5 及以上

## 配置参数

关于具体告警的详情，请参见[自监控告警说明](/ilogtail-docs/pre-release/developer-guide/zi-jian-kong/gao-jing/internal-alarms-description.md)。

| **参数** | **类型** | **是否必填** | **默认值** | **说明**                           |
| ------ | ------ | -------- | ------- | -------------------------------- |
| Type   | string | 是        | /       | 插件类型。固定为input\_internal\_alarms。 |

## 样例

采集LoongCollector所有自监控告警，并将采集结果写到本地文件。

```yaml
enable: true
inputs:
  - Type: input_internal_alarms
flushers:
  - Type: flusher_file
    FilePath: self_monitor/self_alarms.log
```

输出到 LoongCollector 的 `self_monitor/self_alarms.log` 文件中，每行均为一条json格式的告警。
