csv - 从 S3 将 .csv 格式的指标读入 prometheus
问题描述
我有数百台 IOT 设备以 .csv 格式将性能指标上传到 s3 存储桶中。我需要将这些指标纳入我现有的 prometheus/alertmanager 监控解决方案中。我正在尝试使用一个名为 mtail ( https://github.com/google/mtail ) 的现有导出器,但对于我来说,我无法弄清楚如何使用它来解析 CSV 文件。文档说要使用 awk 语言,但是在 awk 中设置自定义分隔符的方法是使用 -f,但这与 mtail 程序无关(或者是吗?)。
如果有更好的方法将 .csv 格式的指标从 S3 获取到 prometheus,我愿意接受建议。
解决方案
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.
推荐阅读
- save - 任何人都知道 Skimage TIfffile 保存中的内容,未知错误“类型 b”。?
- arduino - 使用 Arduino 在 LCD 屏幕上显示来自键盘的输入
- terraform - Terraform - 对模块的资源依赖
- swift - Swift NOT 运算符 (~) 打印的值与使用时不同
- kubernetes - 跟踪使用 HPA 和 CA 在 Kubernetes 中扩展所需的时间
- haskell - 使用 Haskell 获取从绝对文件路径到另一个文件的相对路径
- python - 尝试/排除 ...AttributeError:只能将 .str 访问器与字符串值一起使用
- python - PubSub + GCF 不可靠?
- java - 迭代两个列表并从第一个列表中设置元素
- javascript - 为什么常见网站的 HTML/CSS/Javascript 代码如此复杂?