【问题标题】:Cannot find data in Prometheus with InfluxDB remote write/read api使用 InfluxDB 远程写入/读取 api 在 Prometheus 中找不到数据
【发布时间】:2018-01-12 08:04:11
【问题描述】:

InfluxDB 在 1.4 版本中宣布了 Prometheus 远程写入/读取 api。

https://docs.influxdata.com/influxdb/v1.4/supported_protocols/prometheus/https://www.influxdata.com/blog/influxdb-now-supports-prometheus-remote-read-write-natively/

我部署了一个新的 InfluxDB,创建了一个名为“paul”的用户,密码为“foo”,创建了一个名为“prometheus”的数据库并填充了示例数据:

然后,我修改了Prometheus的config yml(我发现influx doc示例中的'*'应该替换为'-')

我相信 Prometheus 和 InfluxDB 正在沟通:

但是,我找不到我在 InfluxDB 中插入的样本测量值。

我确定我一定错过了一些简单的事情......我犯了什么愚蠢的错误吗?谢谢

【问题讨论】:

    标签: influxdb prometheus remotestorage


    【解决方案1】:

    我们发现所有指标都放入了我们选择的 INfluxDB 数据库中的一个名为“_”的单一度量中(在我们的例子中称为“指标”),字段为“f64”(我假设为 float64)。 Prometheus 测量名称作为标签附加:'name'。因此,根据我的经验,上述测量的 InfluxDB 查询可能类似于:

    select "f64" from "prometheus"."_" where "__name__" = "prometheus_target_interval_length_seconds_count"
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2018-12-29
      • 1970-01-01
      • 2017-10-13
      • 1970-01-01
      • 2017-05-26
      相关资源
      最近更新 更多