fluent / fluent-bit

Fast and Lightweight Logs and Metrics processor for Linux, BSD, OSX and Windows
https://fluentbit.io
Apache License 2.0
5.54k stars 1.51k forks source link

Support for ROUND or Significance on AVG values of stream processor #8008

Closed ftasbasi closed 4 hours ago

ftasbasi commented 9 months ago
[STREAM_TASK]
    Name   nic_eth_1g0_metrics
    Exec   CREATE STREAM netif WITH (tag='netif_metrics') AS SELECT ROUND(AVG(eth1.rx.bytes),2) AS rx.bytes, ROUND(AVG(eth1.tx.bytes),2) AS tx.bytes FROM STREAM:mem_data WINDOW TUMBLING (90 SECOND);

Existing:

{
"@timestamp":1696539372.341829
"eth1.rx.bytes":7270.37353515625
"eth1.tx.bytes":1187.637329101562
}

Support for ROUND or Significance operation in SQL would be very helpful. AVG values are generating too much data at large scale monitoring data.

Suggested:

{
"@timestamp":1696539372.341829
"eth1.rx.bytes":7270.37
"eth1.tx.bytes":1187.63
}
github-actions[bot] commented 6 months ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] commented 2 weeks ago

This issue is stale because it has been open 90 days with no activity. Remove stale label or comment or this will be closed in 5 days. Maintainers can add the exempt-stale label.

github-actions[bot] commented 4 hours ago

This issue was closed because it has been stalled for 5 days with no activity.