Hi again
Fixed it - it was simply because I was not aware how InfluxDB drops/merges duplicated datapoints.
I added a unique tag, and now all datapoints are there after the call to write_points():
measurement = {
"measurement": table,
"tags": {
"customer": customer,
"stg_vendor": stg_vendor,
"stg_type" : stg_type,
"stg_model": stg_model,
"stg_name": stg_name,
"unique": loop_runs # Needed to avoid data-points beeing overwritten because of equality.
},
"time": timestamp,
"fields": {"stg_node": node_name, "metric": metric_name, "value": value}
}