Install
openclaw skills install influxdbStore and query time-series data with proper schema design and retention.
openclaw skills install influxdbSHOW CARDINALITY (1.x) or influx bucket inspect (2.x)measurement,tag1=v1,tag2=v2 field1=1,field2="str" timestamp= in tags—space separates tags from fieldsfield="text" vs tag=textprecision=s for seconds, precision=ms for millisecondsfrom(bucket:) then |> range(start:)—range is required|> filter(fn: (r) => r._measurement == "cpu") for filtering|> aggregateWindow(every: 1h, fn: mean) for time-based aggregation|> pipe operator—order matters for performanceSELECT mean("value") FROM "measurement" WHERE time > now() - 1h GROUP BY time(5m)GROUP BY time() for time-based aggregation—required for most dashboardsFILL(none) to skip empty intervals, FILL(previous) to carry forwardcpu.host1 wrong, cpu + host=host1 rightasync writes in client libraries—don't block on each writeLIMIT or |> limit()—dashboard doesn't need 1M pointsGROUP BY / aggregateWindow to reduce data before returning