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'