IT notes

Influxdb

Basic influxdb queries, setup. You can use influx (the influxdb shell) or use the http API on port :8086 Create and apply retention policy to a database: warning this may remove/purge existing data CREATE RETENTION POLICY "30_days" ON collectd DURATION 30d REPLICATION 1 default notice the ending default that means to apply the created policy Show retention policies: > show retention policies name duration shardGroupDuration replicaN default ---- -------- ------------------ -------- ------- autogen 0s 168h0m0s 1 false 30_days 720h0m0s 24h0m0s 1 true Show databases contents (measurements):