首页 > 解决方案 > 如何将整个 JSON 对象(详细数据)存储到 Prometheus Timeseries 数据库中

问题描述

根据研究 Prometheus 数据库,我们可以根据时间序列存储数值。我的要求是“我想存储整个 JSON 对象 wrt Timeseries 并且在绘制图形时我可以从 JSON 对象中获取一个维度并针对时间进行绘图。

你能帮助如何实现这一目标。

标签: prometheus

解决方案


您不能将 JSON 对象存储在 prometheus 中。但是您可以尝试将您的 JSON 对象转换为 Prometheus 指标。

<metric name>{<label name>=<label value>, ...}

https://prometheus.io/docs/concepts/data_model/


推荐阅读