InfluxDB의 경우 ns 단위로 시간 결과를 입력할 수 있다고 한다. 나의 경우에는 ms도 과할 정도고 s 단위 정도면 충분하다.
기본적으로 다음과 같은 식으로 데이터를 준비해야 한다.

Line protocol | InfluxDB OSS 2.7 Documentation
InfluxDB uses line protocol to write data points. It is a text-based format that provides the measurement, tag set, field set, and timestamp of a data point.

빈 칸(white space)는 두 번 들어갈 수 있다. 첫 번째는 tag와 field 사이이고 두 번째는 field와 timestamp 사이이다.
꼭 필요한 값은 measurement 와 field 이다. timestamp 의 경우 입력하지 않으면 host 시간을 기준으로 입력된다.
curl --request POST \
"http://localhost:8086/api/v2/write?org=rcc&bucket=measurements&precision=s" \
--header "Authorization: Token MY_TOKEN_HERE" \
--header "Content-Type: text/plain; charset=utf-8" \
--header "Accept: application/json" \
--data-binary '
vital,bed=ICU01 spo2=99
'
curl 로 입력하려면 위와 같은 식으로 준비하면 된다.
Python의 Requests로 입력하려면 다음과 같이 하면 된다. 준비 과정에서 따옴표가 지나치게 많이 들어가기 때문에 최대한 dictionary 타입으로 준비하는 것이 좋다. 위에서 언급했지만 precision은 second로 하도록 한다.
headers = {
"Authorization": "Token My_TOKEN_HERE",
"Content-Type": "text/plain; charset=utf-8",
"Accept": "application/json"
}
requests.post(
"http://rcc.work:8086/api/v2/write?org=rcc&bucket=measurements&precision=s",
headers=headers,
data=data_influx_3
)