Skip to content
monstruooo edited this page Jun 12, 2018 · 10 revisions

Running command from CLI

influx -database chronos -execute show databases

Host names in records of the last day

cmd='SHOW TAG VALUES FROM system WITH KEY=host WHERE time > now() - 1d'
influx -database chronos -execute "$cmd"
> SHOW TAG VALUES FROM system WITH KEY=host WHERE time > now() - 1d and host =~ /ip-.*stag/
name: system
key  value
---  -----
host ip-172-31-19-14.worker.stag
host ip-172-31-23-22.webapp.stag
host ip-172-31-29-157.worker.stag
host ip-172-31-31-5.webapp.stag

Clone this wiki locally