首页 > 解决方案 > 从 S3 将 .csv 格式的指标读入 prometheus

问题描述

我有数百台 IOT 设备以 .csv 格式将性能指标上传到 s3 存储桶中。我需要将这些指标纳入我现有的 prometheus/alertmanager 监控解决方案中。我正在尝试使用一个名为 mtail ( https://github.com/google/mtail ) 的现有导出器,但对于我来说,我无法弄清楚如何使用它来解析 CSV 文件。文档说要使用 awk 语言,但是在 awk 中设置自定义分隔符的方法是使用 -f,但这与 mtail 程序无关(或者是吗?)。

如果有更好的方法将 .csv 格式的指标从 S3 获取到 prometheus,我愿意接受建议。

标签: csvamazon-s3prometheus

解决方案


I think VictoriaMetrics might be a good option for You https://docs.victoriametrics.com/?highlight=Import#how-to-import-csv-data

Also You might consider its agent for scraping on iot devices.


推荐阅读