From 813d8515cbda0df05fd1e3263c656ea509579021 Mon Sep 17 00:00:00 2001 From: Takahiro Yamashita Date: Sun, 4 Feb 2024 08:52:22 +0900 Subject: [PATCH] in_disk: add examples for yaml configuration Signed-off-by: Takahiro Yamashita --- pipeline/inputs/disk-io-metrics.md | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/pipeline/inputs/disk-io-metrics.md b/pipeline/inputs/disk-io-metrics.md index 6be694147..024399314 100644 --- a/pipeline/inputs/disk-io-metrics.md +++ b/pipeline/inputs/disk-io-metrics.md @@ -39,6 +39,8 @@ Fluent Bit v1.x.x In your main configuration file append the following _Input_ & _Output_ sections: +{% tabs %} +{% tab title="fluent-bit.conf" %} ```python [INPUT] Name disk @@ -49,6 +51,23 @@ In your main configuration file append the following _Input_ & _Output_ sections Name stdout Match * ``` +{% endtab %} + +{% tab title="fluent-bit.yaml" %} +```yaml +pipeline: + inputs: + - name: disk + tag: disk + interval_sec: 1 + interval_nsec: 0 + outputs: + - name: stdout + match: '*' +``` +{% endtab %} +{% endtabs %} + Note: Total interval \(sec\) = Interval\_Sec + \(Interval\_Nsec / 1000000000\).