prometheus存数据到influxdb数据库

Posted

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了prometheus存数据到influxdb数据库相关的知识,希望对你有一定的参考价值。

prometheus存数据到influxdb数据库:

注:
1、influxdb要求1.4以上版本
2、prometheus用默认的存储方式在grafana上可方便计算空间使用率等的信息(涉及计算),切到influxdb后目前还不知道如何转换

rpm -i influxdb-1.6.3.x86_64.rpm

service influxdb start

chkconfig --level 35 influxdb on

influx

create database prometheus;
create user icinga2 with password ‘xxxx‘;
grant all on prometheus to icinga;
show retention policies on prometheus;
alter retention policy "autogen" on "prometheus" duration 365d default;
quit

vi /space/prometheus/prometheus.yml

remote_write:

remote_read:

:wq

/space/prometheus/prometheus --config.file=/space/prometheus/prometheus.yml

以上是关于prometheus存数据到influxdb数据库的主要内容,如果未能解决你的问题,请参考以下文章

influxdb filed最大存多少数据

针对prometheus监控系统的influxdb数据库内存优化 #yyds干货盘点#

针对prometheus监控系统的influxdb数据库内存优化 #yyds干货盘点#

Prometheus 通过 Telegraf 将数据远程写入 InfluxDB 2.x 存储(InfluxDB 2.x 不同于 1.x)

Prometheus 通过 Telegraf 将数据远程写入 InfluxDB 2.x 存储(InfluxDB 2.x 不同于 1.x)

用例:InfluxDB 与 Prometheus [关闭]