Influxdb Cheatsheet
曾经使用过prometheus
,以及Influxdb
,比较之下,还是更喜欢influxdb
这种push
的方式。prometheus
以pull
方式为主,pull
的主要问题,就是内网机器不能开箱即用,还要再配个push gateway
。而push
方式,开箱即用。就这个简单的差别,用了几个月的promethues
之后,就切换到influxdb
上了。确实用到现在,很省心。这里把我使用中常用的命令,记录下。
进数据库并浏览基本信息
influxdb -username <username> -password <password>
show databases
use telegraf
show measurements
show series
某服务器下线删除监控数据
drop series where device='mneo4j'