简体   繁体   English

将 JSON 文件中的数据公开给 Prometheus

[英]Expose data from JSON file to Prometheus

Is there any way to expose data from JSON file to Prometheus, so later it can be visualized in Grafana?有什么方法可以将 JSON 文件中的数据暴露给 Prometheus,以便以后可以在 Grafana 中可视化?

If you need importing historical data in JSON format into Prometheus, then you need converting this data to Prometheus remote_write format and then pushing it to /api/v1/write handler.如果您需要将 JSON 格式的历史数据导入 Prometheus,则需要将此数据转换为 Prometheus remote_write 格式,然后将其推送到/api/v1/write处理程序。 See these docs .请参阅 这些文档

Another option is to import the data to Prometheus-compatible system, so it could be queried later with PromQL in Grafana.另一种选择是将数据导入与 Prometheus 兼容的系统,以便稍后在 Grafana 中使用 PromQL 进行查询。 See, for example, how to import data in various formats into VictoriaMetrics .例如,请参阅如何将各种格式的数据导入 VictoriaMetrics (I'm the author of VictoriaMetrics). (我是 VictoriaMetrics 的作者)。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 将 prometheus 数据暴露在集群外 - Expose prometheus data outside the cluster 如何在 Prometheus 中公开 arangoDB 数据 - How to expose arangoDB data in Prometheus 如何从 Java (Spring boot) 应用程序向 Prometheus 公开指标 - How to expose metrics to Prometheus from a Java (Spring boot) application 如何从多个子流程公开普罗米修斯指标? - How can I expose prometheus metrics from multiple subprocesses? 如何通过 JMX 将 SpringBoot 应用程序中的 Kafka 指标公开给 Prometheus? - How to expose Kafka metrics from SpringBoot application through JMX to Prometheus? 向Prometheus公开多个指标 - Expose multiple metrics to Prometheus 如何从Springboot应用程序CF集群向Prometheus公开指标 - How to expose metrics to Prometheus from springboot application CF cluster 创建一个 API 来连接 ArangoDB 和 Prometheus 以获取 ArangoDB 内部数据的指标并在 Prometheus 中公开 - Creating an API to connect between ArangoDB and Prometheus to get the metrics of the data inside ArangoDB and expose it in Prometheus Prometheus 导出器 - 读取 CSV 文件,其中包含过去一天的数据 - Prometheus exporter - reading CSV file having data from the past day 使用 prometheus_client 向 Prometheus 公开包指标 - Expose package metrics to Prometheus with prometheus_client
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM