Datahub Influx DB
3 min
influxdb / time series query historical time series data from the litmus edge tsdata influxdb tool description get historical data from influxdb query historical time series data by measurement and time range list influxdb measurements list all measurement names in tsdata use for discovery before more specific queries get device historical data fuzzy match device names to influxdb measurements and pull historical data per match query tag data query historical data for a specific tag by resolving its output topic newest first get tag statistics aggregate stats for a tag mean, min, max, stddev, count, plus baseline range ( mean +/ 2 sigma ) get device data for inference composite payload for ai inference device metadata, all tags, per tag stats, and recent samples when to use which discovery list influxdb measurements to see what's actually being recorded before querying by measurement (raw) get historical data from influxdb if you already know the measurement name and time range by device (fuzzy) get device historical data when you have a human readable device name and want everything related by tag query tag data for the per tag time series summary stats for a tag get tag statistics includes a mean +/ 2 sigma baseline range that's handy for anomaly checks ai inference input get device data for inference returns a composite payload (device + tags + stats + recent samples) suitable for handing to a model in one shot requirements influx host , influx port (default 8086 ), influx db name (default tsdata ), influx username , influx password litmus edge must allow port 8086/tcp under system > network > firewall for query tag data and similar tag resolving tools, edge headers are also required to look up the tag's output topic from devicehub setting up firewall access navigate to litmus edge > system > network > firewall add a firewall rule to allow port 8086 on tcp confirm influxdb is reachable from the mcp server host ( curl http //\<edge> 8086/ping ) related devicehub, tags # current value vs historical nats topics # live streams (no persistence) get device connection status in devicehub, devices # uses influxdb recency to infer connection health