aschuma

INFLUXDB :: FINE DUST

May 18th, 2019
203
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.04 KB | None | 0 0
  1. influx
  2.  
  3. > precision rfc3339
  4.  
  5. > show databases
  6. name: databases
  7. name
  8. ----
  9. _internal
  10. luftdaten
  11.  
  12. > use luftdaten
  13. Using database luftdaten
  14.  
  15. > show measurements
  16. name: measurements
  17. name
  18. ----
  19. feinstaub
  20.  
  21. > select * from feinstaub limit 1
  22. name: feinstaub
  23. time SDS_P1 SDS_P2 humidity max_micro min_micro node samples signal temperature
  24. ---- ------ ------ -------- --------- --------- ---- ------- ------ -----------
  25. 2019-05-18T06:01:18.601462447Z 13.03 11.8 99.9 404499 76 esp8266-99999999 1819630 -65 15.2
  26.  
  27. > SHOW SERIES
  28. key
  29. ---
  30. feinstaub,node=esp8266-99999999
  31.  
  32. > SHOW RETENTION POLICIES
  33. name duration shardGroupDuration replicaN default
  34. ---- -------- ------------------ -------- -------
  35. autogen 96h0m0s 24h0m0s 1 true
  36.  
  37. # ALTER RETENTION POLICIES
  38. # --> https://docs.influxdata.com/influxdb/v1.7/query_language/database_management/#modify-retention-policies-with-alter-retention-policy
  39.  
  40. > DROP MEASUREMENT feinstaub
Advertisement
Add Comment
Please, Sign In to add comment