| 
 | 1 | +apiVersion: v1  | 
 | 2 | +kind: Alert  | 
 | 3 | +app: Fluentd  | 
 | 4 | +version: 1.0.0  | 
 | 5 | +appVersion:  | 
 | 6 | +- '1.12.4'  | 
 | 7 | +descriptionFile: ALERTS.md  | 
 | 8 | +configurations:  | 
 | 9 | +- kind: Prometheus  | 
 | 10 | +  data: |-  | 
 | 11 | +    groups:  | 
 | 12 | +    - name: Fluentd  | 
 | 13 | +      rules:  | 
 | 14 | +      - alert: '[Fluentd] No Input From Container'  | 
 | 15 | +        expr: |  | 
 | 16 | +          sum by (input_namespace, input_container)(rate(fluentd_input_status_num_records_total[1m])) == 0  | 
 | 17 | +        for: 5m  | 
 | 18 | +        labels:  | 
 | 19 | +          severity: warning  | 
 | 20 | +        annotations:  | 
 | 21 | +          description: No Input From Container.  | 
 | 22 | +      - alert: '[Fluentd] Increased Error Ratio'  | 
 | 23 | +        expr: |  | 
 | 24 | +          sum by (type, plugin_id)(rate(fluentd_output_status_num_errors[1m])) /sum by (type, plugin_id)(rate(fluentd_output_status_emit_count[1m]))> 0.05  | 
 | 25 | +        for: 5m  | 
 | 26 | +        labels:  | 
 | 27 | +          severity: critical  | 
 | 28 | +        annotations:  | 
 | 29 | +          description: Increased Error Ratio.  | 
 | 30 | +      - alert: '[Fluentd] Increased Retry Ratio'  | 
 | 31 | +        expr: |  | 
 | 32 | +          sum by (type, plugin_id)(rate(fluentd_output_status_retry_count[1m])) /sum by (type, plugin_id)(rate(fluentd_output_status_emit_count[1m]))> 0.05  | 
 | 33 | +        for: 5m  | 
 | 34 | +        labels:  | 
 | 35 | +          severity: critical  | 
 | 36 | +        annotations:  | 
 | 37 | +          description: Increased Retry Ratio.  | 
 | 38 | +      - alert: '[Fluentd] Increased Retry Wait'  | 
 | 39 | +        expr: |  | 
 | 40 | +          sum by (type, plugin_id)(max_over_time(fluentd_output_status_retry_wait[1m])) > 60  | 
 | 41 | +        for: 5m  | 
 | 42 | +        labels:  | 
 | 43 | +          severity: critical  | 
 | 44 | +        annotations:  | 
 | 45 | +          description: Increased Retry Wait.  | 
 | 46 | +      - alert: '[Fluentd] Low Buffer Available Space'  | 
 | 47 | +        expr: |  | 
 | 48 | +          fluentd_output_status_buffer_available_space_ratio < 10  | 
 | 49 | +        for: 5m  | 
 | 50 | +        labels:  | 
 | 51 | +          severity: warning  | 
 | 52 | +        annotations:  | 
 | 53 | +          description: Low Buffer Available Space.  | 
 | 54 | +      - alert: '[Fluentd] Buffer Queue Length Increasing'  | 
 | 55 | +        expr: |  | 
 | 56 | +          avg_over_time(fluentd_output_status_buffer_queue_length[5m]) - avg_over_time(fluentd_output_status_buffer_queue_length[5m] offset 5m)> 0  | 
 | 57 | +        for: 5m  | 
 | 58 | +        labels:  | 
 | 59 | +          severity: critical  | 
 | 60 | +        annotations:  | 
 | 61 | +          description: Buffer Queue Length Increasing.  | 
 | 62 | +      - alert: '[Fluentd] Buffer Total Bytes Increasing'  | 
 | 63 | +        expr: |  | 
 | 64 | +          avg_over_time(fluentd_output_status_buffer_total_bytes[5m]) - avg_over_time(fluentd_output_status_buffer_total_bytes[5m] offset 5m)> 0  | 
 | 65 | +        for: 15m  | 
 | 66 | +        labels:  | 
 | 67 | +          severity: warning  | 
 | 68 | +        annotations:  | 
 | 69 | +          description: Buffer Total Bytes Increasing.  | 
 | 70 | +      - alert: '[Fluentd] Increased Slow Flush Ratio'  | 
 | 71 | +        expr: |  | 
 | 72 | +          sum by (type, plugin_id)(rate(fluentd_output_status_slow_flush_count[1m])) /sum by (type, plugin_id)(rate(fluentd_output_status_emit_count[1m]))> 0.05  | 
 | 73 | +        for: 5m  | 
 | 74 | +        labels:  | 
 | 75 | +          severity: warning  | 
 | 76 | +        annotations:  | 
 | 77 | +          description: Increased Slow Flush Ratio.  | 
 | 78 | +      - alert: '[Fluentd] No Output Records From Plugin'  | 
 | 79 | +        expr: |  | 
 | 80 | +          rate(fluentd_output_status_emit_records[1m]) == 0  | 
 | 81 | +        for: 5m  | 
 | 82 | +        labels:  | 
 | 83 | +          severity: warning  | 
 | 84 | +        annotations:  | 
 | 85 | +          description: No Output Records From Plugin.  | 
0 commit comments