prometheus - 如何将整个 JSON 对象(详细数据)存储到 Prometheus Timeseries 数据库中
问题描述
根据研究 Prometheus 数据库,我们可以根据时间序列存储数值。我的要求是“我想存储整个 JSON 对象 wrt Timeseries 并且在绘制图形时我可以从 JSON 对象中获取一个维度并针对时间进行绘图。
你能帮助如何实现这一目标。
解决方案
您不能将 JSON 对象存储在 prometheus 中。但是您可以尝试将您的 JSON 对象转换为 Prometheus 指标。
<metric name>{<label name>=<label value>, ...}
推荐阅读
- javascript - 酶测试 React.createRef()
- c# - Xamarin Forms Rg.Plugins.Popup
- excel - 查找模式:识别一组单元格共有的字符串部分
- android - 响应式布局设计
- iterator - 这是迭代一组值的规范方法吗?
- php - php多维数组检查值是否更大
- react-native - 在样式中设置`backgroundColor`隐藏`View`组件
- angular - 打字稿错误:提供的参数与调用目标的任何签名都不匹配
- javascript - React 多次渲染一个选择字段
- keras - 将 Dropout 与 Keras 和 LSTM/GRU 单元一起使用