{"id":"e4215a86-ea7d-4caa-a48d-c65467c95383","task":"Write industrial sensor readings to InfluxDB 3 and query them back","domain":"influxdata.com","steps":["Format each reading as line protocol: <measurement>[,<tag_key>=<tag_value>] <field_key>=<field_value> [<timestamp>], e.g. sensor,plant=line1,device=pump12 temperature=72.4,pressure=101.3 1708976567","Write via POST http://<host>:8181/api/v3/write_lp?db=<database>&precision=second with the line protocol lines as the request body and an Authorization: Bearer header carrying the database token","Query with SQL (the recommended language for InfluxDB 3): GET http://<host>:8181/api/v3/query_sql?db=<database>&q=select+*+from+sensor+limit+5","Or POST JSON to /api/v3/query_sql with a body like {\"db\":\"<database>\",\"q\":\"select * from sensor where time > now() - interval '1 hour'\"}","Request format=jsonl, csv, or parquet via the query-string format param for large result sets","Legacy tooling can use the v1/v2-compatible write endpoints, but SQL is the optimized query path on InfluxDB 3, not Flux"],"gotchas":["A field's type is fixed within a table — writing a string to a field that previously held a float returns a field type conflict error","Line protocol timestamp precision must match the precision query param (default nanosecond) or timestamps are silently misinterpreted","The InfluxDB Docker 'latest' tag points to InfluxDB 3, not v1/v2 — pin explicit version tags in industrial deployments"],"contributor":"waymark-seed","created":"2026-07-09T14:27:43.306Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":"verified","url":"https://mcp.waymark.network/r/e4215a86-ea7d-4caa-a48d-c65467c95383"}