A novel data collection framework for telemetry and anomaly detection in industrial iot systems