Prometheus remote read influxdb

元气小坏坏 提交于 2021-01-26 22:42:44

问题


I'm new to Prometheus but familiar with Influx (currently running 1.6).

My understanding is it's possible to configure Prometheus to remotely read data from influx with the following configuration in prometheus.yml:

remote_read:
  url: "http://localhost:8086/api/v1/prom/read?db=bulkstats"

"bulkstats" is the database I'm trying to read data from in Prometheus. An example query that would work in influx would be:

SELECT "sess-curaaaactive" FROM "PDSNSYSTEM1" WHERE ("Nodename" = 'ALPRGAGQPNC') AND time >= now() - 6h"

However I cannot find one example of how to query that data from PromQL. Please help!


回答1:


Here is the link which matches prometheus format with influxdb's one.

In terms of prometheus's jargon, in your example, sess-curaaaactive is the metric name (measurement in influx) and ("Nodename" = 'ALPRGAGQPNC') is just a label which prometheus attaches to the measurement to create a time series.



来源:https://stackoverflow.com/questions/52882413/prometheus-remote-read-influxdb

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!