简体   繁体   中英

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?

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. See these docs .

Another option is to import the data to Prometheus-compatible system, so it could be queried later with PromQL in Grafana. See, for example, how to import data in various formats into VictoriaMetrics . (I'm the author of VictoriaMetrics).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM